diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/assets/_...all_-fbNppPCv.js b/assets/_...all_-fbNppPCv.js new file mode 100644 index 00000000..37aa9015 --- /dev/null +++ b/assets/_...all_-fbNppPCv.js @@ -0,0 +1 @@ +import{d as l,r,g as i,h as u,j as _,b as o,a as t,w as d,k as m,f,o as x,e as v,t as p,u as w,_ as h}from"./index-DpnASd8N.js";const N={class:"min-h-screen flex flex-col items-center justify-center"},g={class:"flex flex-col items-center gap-4"},k=t("h1",{class:"m-0 text-6xl font-sans"}," 404 ",-1),B=t("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你访问的页面不存在 ",-1),j=l({__name:"[...all]",setup(I){const s=m(),e=r({inter:Number.NaN,countdown:5});i(()=>{e.value.inter&&window.clearInterval(e.value.inter)}),u(()=>{e.value.inter=window.setInterval(()=>{e.value.countdown--,e.value.countdown===0&&(e.value.inter&&window.clearInterval(e.value.inter),n())},1e3)});function n(){s.push("/")}return(C,V)=>{const a=h,c=f;return x(),_("div",N,[o(a,{name:"404",class:"text-[300px] -mt-9xl"}),t("div",g,[k,B,o(c,{onClick:n},{default:d(()=>[v(p(w(e).countdown)+" 秒后,返回首页 ",1)]),_:1})])])}}});export{j as default}; diff --git a/assets/_...all_-fbNppPCv.js.br b/assets/_...all_-fbNppPCv.js.br new file mode 100644 index 00000000..c24c3a6e Binary files /dev/null and b/assets/_...all_-fbNppPCv.js.br differ diff --git a/assets/_...all_-fbNppPCv.js.gz b/assets/_...all_-fbNppPCv.js.gz new file mode 100644 index 00000000..e691e41c Binary files /dev/null and b/assets/_...all_-fbNppPCv.js.gz differ diff --git a/assets/animation-DjlLcNUL.js b/assets/animation-DjlLcNUL.js new file mode 100644 index 00000000..cceea429 --- /dev/null +++ b/assets/animation-DjlLcNUL.js @@ -0,0 +1 @@ +import{_ as S}from"./index-Cwg3TLNR.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as $,r as i,c as y,w as o,m as l,o as w,a as m,b as n,e as p,u as a,i as r,t as O,ac as V,j as X,p as Y,_ as j}from"./index-DpnASd8N.js";const N={class:"whitespace-break-spaces p-4 space-y-2"},P=m("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),E=m("div",null,"安装命令:",-1),M={class:"space-x-2"},q={class:"m-4"},A={key:0,class:"mt-2 h-100px w-100px bg-blue"},K=$({__name:"animation",setup(F){const f=i(!1),v=i([{text:"bounce",value:"animate__bounce"},{text:"flash",value:"animate__flash"},{text:"pulse",value:"animate__pulse"},{text:"rubberBand",value:"animate__rubberBand"},{text:"shakeX",value:"animate__shakeX"},{text:"shakeY",value:"animate__shakeY"},{text:"headShake",value:"animate__headShake"},{text:"swing",value:"animate__swing"},{text:"tada",value:"animate__tada"},{text:"wobble",value:"animate__wobble"},{text:"jello",value:"animate__jello"},{text:"heartBeat",value:"animate__heartBeat"},{text:"backInDown",value:"animate__backInDown"},{text:"backInLeft",value:"animate__backInLeft"},{text:"backInRight",value:"animate__backInRight"},{text:"backInUp",value:"animate__backInUp"},{text:"backOutDown",value:"animate__backOutDown"},{text:"backOutLeft",value:"animate__backOutLeft"},{text:"backOutRight",value:"animate__backOutRight"},{text:"backOutUp",value:"animate__backOutUp"},{text:"bounceIn",value:"animate__bounceIn"},{text:"bounceInDown",value:"animate__bounceInDown"},{text:"bounceInLeft",value:"animate__bounceInLeft"},{text:"bounceInRight",value:"animate__bounceInRight"},{text:"bounceInUp",value:"animate__bounceInUp"},{text:"bounceOut",value:"animate__bounceOut"},{text:"bounceOutDown",value:"animate__bounceOutDown"},{text:"bounceOutLeft",value:"animate__bounceOutLeft"},{text:"bounceOutRight",value:"animate__bounceOutRight"},{text:"bounceOutUp",value:"animate__bounceOutUp"},{text:"fadeIn",value:"animate__fadeIn"},{text:"fadeInDown",value:"animate__fadeInDown"},{text:"fadeInDownBig",value:"animate__fadeInDownBig"},{text:"fadeInLeft",value:"animate__fadeInLeft"},{text:"fadeInLeftBig",value:"animate__fadeInLeftBig"},{text:"fadeInRight",value:"animate__fadeInRight"},{text:"fadeInRightBig",value:"animate__fadeInRightBig"},{text:"fadeInUp",value:"animate__fadeInUp"},{text:"fadeInUpBig",value:"animate__fadeInUpBig"},{text:"fadeInTopLeft",value:"animate__fadeInTopLeft"},{text:"fadeInTopRight",value:"animate__fadeInTopRight"},{text:"fadeInBottomLeft",value:"animate__fadeInBottomLeft"},{text:"fadeInBottomRight",value:"animate__fadeInBottomRight"},{text:"fadeOut",value:"animate__fadeOut"},{text:"fadeOutDown",value:"animate__fadeOutDown"},{text:"fadeOutDownBig",value:"animate__fadeOutDownBig"},{text:"fadeOutLeft",value:"animate__fadeOutLeft"},{text:"fadeOutLeftBig",value:"animate__fadeOutLeftBig"},{text:"fadeOutRight",value:"animate__fadeOutRight"},{text:"fadeOutRightBig",value:"animate__fadeOutRightBig"},{text:"fadeOutUp",value:"animate__fadeOutUp"},{text:"fadeOutUpBig",value:"animate__fadeOutUpBig"},{text:"fadeOutTopLeft",value:"animate__fadeOutTopLeft"},{text:"fadeOutTopRight",value:"animate__fadeOutTopRight"},{text:"fadeOutBottomLeft",value:"animate__fadeOutBottomLeft"},{text:"fadeOutBottomRight",value:"animate__fadeOutBottomRight"},{text:"flip",value:"animate__flip"},{text:"flipInX",value:"animate__flipInX"},{text:"flipInY",value:"animate__flipInY"},{text:"flipOutX",value:"animate__flipOutX"},{text:"flipOutY",value:"animate__flipOutY"},{text:"lightSpeedInRight",value:"animate__lightSpeedInRight"},{text:"lightSpeedInLeft",value:"animate__lightSpeedInLeft"},{text:"lightSpeedOutRight",value:"animate__lightSpeedOutRight"},{text:"lightSpeedOutLeft",value:"animate__lightSpeedOutLeft"},{text:"rotateIn",value:"animate__rotateIn"},{text:"rotateInDownLeft",value:"animate__rotateInDownLeft"},{text:"rotateInDownRight",value:"animate__rotateInDownRight"},{text:"rotateInUpLeft",value:"animate__rotateInUpLeft"},{text:"rotateInUpRight",value:"animate__rotateInUpRight"},{text:"rotateOut",value:"animate__rotateOut"},{text:"rotateOutDownLeft",value:"animate__rotateOutDownLeft"},{text:"rotateOutDownRight",value:"animate__rotateOutDownRight"},{text:"rotateOutUpLeft",value:"animate__rotateOutUpLeft"},{text:"rotateOutUpRight",value:"animate__rotateOutUpRight"},{text:"hinge",value:"animate__hinge"},{text:"jackInTheBox",value:"animate__jackInTheBox"},{text:"rollIn",value:"animate__rollIn"},{text:"rollOut",value:"animate__rollOut"},{text:"zoomIn",value:"animate__zoomIn"},{text:"zoomInDown",value:"animate__zoomInDown"},{text:"zoomInLeft",value:"animate__zoomInLeft"},{text:"zoomInRight",value:"animate__zoomInRight"},{text:"zoomInUp",value:"animate__zoomInUp"},{text:"zoomOut",value:"animate__zoomOut"},{text:"zoomOutDown",value:"animate__zoomOutDown"},{text:"zoomOutLeft",value:"animate__zoomOutLeft"},{text:"zoomOutRight",value:"animate__zoomOutRight"},{text:"zoomOutUp",value:"animate__zoomOutUp"},{text:"slideInDown",value:"animate__slideInDown"},{text:"slideInLeft",value:"animate__slideInLeft"},{text:"slideInRight",value:"animate__slideInRight"},{text:"slideInUp",value:"animate__slideInUp"},{text:"slideOutDown",value:"animate__slideOutDown"},{text:"slideOutLeft",value:"animate__slideOutLeft"},{text:"slideOutRight",value:"animate__slideOutRight"},{text:"slideOutUp",value:"animate__slideOutUp"}]),x=i("animate__bounce"),c=i("animate__bounce"),u=i(!1);function L({selectedOptions:d}){u.value=!1,x.value=d[0].value}const _=i(!1);function R({selectedOptions:d}){_.value=!1,c.value=d[0].value}const s=i(!0);return(d,t)=>{const k=j,B=l("van-tag"),U=l("van-action-sheet"),g=l("van-field"),h=l("van-picker"),b=l("van-popup"),D=l("VanButton"),z=T,C=S;return w(),y(C,{navbar:"","navbar-start-side":"back"},{"navbar-end":o(()=>[m("div",{class:"h-full flex-center px-1",onClick:t[0]||(t[0]=e=>f.value=!0)},[n(k,{name:"i-mdi:information",class:"text-4"})]),n(U,{show:a(f),"onUpdate:show":t[1]||(t[1]=e=>r(f)?f.value=e:null),teleport:"body"},{default:o(()=>[m("div",N,[P,E,m("div",M,[n(B,{type:"primary",plain:""},{default:o(()=>[p(" pnpm add animate.css ")]),_:1})])])]),_:1},8,["show"])]),default:o(()=>[m("div",q,[n(g,{"is-link":"",readonly:"",label:"进入动画(显示)","label-width":"8em",onClick:t[2]||(t[2]=e=>u.value=!0)},{input:o(()=>{var e;return[p(O((e=a(v).find(I=>I.value===a(x)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(u),"onUpdate:show":t[4]||(t[4]=e=>r(u)?u.value=e:null),round:"",position:"bottom"},{default:o(()=>[n(h,{columns:a(v),onCancel:t[3]||(t[3]=e=>u.value=!1),onConfirm:L},null,8,["columns"])]),_:1},8,["show"]),n(g,{"is-link":"",readonly:"",label:"离开动画(隐藏)","label-width":"8em",onClick:t[5]||(t[5]=e=>_.value=!0)},{input:o(()=>{var e;return[p(O((e=a(v).find(I=>I.value===a(c)))==null?void 0:e.text),1)]}),_:1}),n(b,{show:a(_),"onUpdate:show":t[7]||(t[7]=e=>r(_)?_.value=e:null),round:"",position:"bottom"},{default:o(()=>[n(h,{columns:a(v),onCancel:t[6]||(t[6]=e=>_.value=!1),onConfirm:R},null,8,["columns"])]),_:1},8,["show"])]),n(z,null,{default:o(()=>[n(D,{onClick:t[8]||(t[8]=e=>s.value=!a(s))},{default:o(()=>[p(O(a(s)?"隐藏":"显示"),1)]),_:1}),n(V,{"enter-active-class":`animate__animated ${a(x)}`,"leave-active-class":`animate__animated ${a(c)}`},{default:o(()=>[a(s)?(w(),X("div",A)):Y("",!0)]),_:1},8,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}});export{K as default}; diff --git a/assets/animation-DjlLcNUL.js.br b/assets/animation-DjlLcNUL.js.br new file mode 100644 index 00000000..53092965 Binary files /dev/null and b/assets/animation-DjlLcNUL.js.br differ diff --git a/assets/animation-DjlLcNUL.js.gz b/assets/animation-DjlLcNUL.js.gz new file mode 100644 index 00000000..291d45ad Binary files /dev/null and b/assets/animation-DjlLcNUL.js.gz differ diff --git a/assets/animation-z3KiDYMe.css b/assets/animation-z3KiDYMe.css new file mode 100644 index 00000000..bf939b01 --- /dev/null +++ b/assets/animation-z3KiDYMe.css @@ -0,0 +1,7 @@ +@charset "UTF-8";/*! +* animate.css - https://animate.style/ +* Version - 4.1.1 +* Licensed under the MIT license - http://opensource.org/licenses/MIT +* +* Copyright (c) 2020 Animate.css +*/:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1);transform:translate3d(0,max(-8vw,-48px),0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05);transform:translate3d(0,max(-4vw,-24px),0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02);transform:translate3d(0,max(-1.067vw,-6.4px),0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0);transform:translate3d(max(-2.667vw,-16px),0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(min(2.667vw,16px),0,0);transform:translate3d(min(2.667vw,16px),0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0);transform:translate3d(0,max(-2.667vw,-16px),0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,min(2.667vw,16px),0);transform:translate3d(0,min(2.667vw,16px),0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(max(-1.6vw,-9.6px)) rotateY(-9deg);transform:translate(max(-1.6vw,-9.6px)) rotateY(-9deg)}18.5%{-webkit-transform:translateX(min(1.333vw,8px)) rotateY(7deg);transform:translate(min(1.333vw,8px)) rotateY(7deg)}31.5%{-webkit-transform:translateX(max(-.8vw,-4.8px)) rotateY(-5deg);transform:translate(max(-.8vw,-4.8px)) rotateY(-5deg)}43.5%{-webkit-transform:translateX(min(.533vw,3.2px)) rotateY(3deg);transform:translate(min(.533vw,3.2px)) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(max(-320vw,-1920px)) scale(.7);transform:translateY(max(-320vw,-1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(min(320vw,1920px)) scale(.7);transform:translateY(min(320vw,1920px)) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(min(186.667vw,1120px)) scale(.7);transform:translateY(min(186.667vw,1120px)) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(max(-533.333vw,-3200px)) scale(.7);transform:translate(max(-533.333vw,-3200px)) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(min(533.333vw,3200px)) scale(.7);transform:translate(min(533.333vw,3200px)) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(max(-186.667vw,-1120px)) scale(.7);transform:translateY(max(-186.667vw,-1120px)) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3);transform:translate3d(0,max(-800vw,-4800px),0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9);transform:translate3d(0,min(6.667vw,40px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985);transform:translate3d(0,min(1.333vw,8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3);transform:translate3d(max(-800vw,-4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(min(6.667vw,40px),0,0) scaleX(1);transform:translate3d(min(6.667vw,40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98);transform:translate3d(max(-2.667vw,-16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995);transform:translate3d(min(1.333vw,8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(min(800vw,4800px),0,0) scaleX(3);transform:translate3d(min(800vw,4800px),0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1);transform:translate3d(max(-6.667vw,-40px),0,0) scaleX(1)}75%{-webkit-transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98);transform:translate3d(min(2.667vw,16px),0,0) scaleX(.98)}90%{-webkit-transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995);transform:translate3d(max(-1.333vw,-8px),0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,min(800vw,4800px),0) scaleY(5);transform:translate3d(0,min(800vw,4800px),0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}75%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.95)}90%{-webkit-transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985);transform:translate3d(0,max(-1.333vw,-8px),0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985);transform:translate3d(0,min(2.667vw,16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9);transform:translate3d(0,max(-5.333vw,-32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3);transform:translate3d(0,min(533.333vw,3200px),0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9);transform:translate3d(min(5.333vw,32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2);transform:translate3d(max(-533.333vw,-3200px),0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9);transform:translate3d(max(-5.333vw,-32px),0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2);transform:translate3d(min(533.333vw,3200px),0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985);transform:translate3d(0,max(-2.667vw,-16px),0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9);transform:translate3d(0,min(5.333vw,32px),0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3);transform:translate3d(0,max(-533.333vw,-3200px),0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,min(533.333vw,3200px),0);transform:translate3d(0,min(533.333vw,3200px),0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(max(-533.333vw,-3200px),0,0);transform:translate3d(max(-533.333vw,-3200px),0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(min(533.333vw,3200px),0,0);transform:translate3d(min(533.333vw,3200px),0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,max(-533.333vw,-3200px),0);transform:translate3d(0,max(-533.333vw,-3200px),0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-190deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,min(40vw,240px)) rotate3d(0,1,0,-170deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(min(40vw,240px)) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(min(106.667vw,640px)) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(min(106.667vw,640px)) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,10deg);transform:perspective(min(106.667vw,640px)) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateX(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,10deg);transform:perspective(min(106.667vw,640px)) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-5deg);transform:perspective(min(106.667vw,640px)) rotateY(-5deg)}to{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,-20deg);transform:perspective(min(106.667vw,640px)) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(1,0,0,90deg);transform:perspective(min(106.667vw,640px)) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(min(106.667vw,640px));transform:perspective(min(106.667vw,640px))}30%{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,-15deg);transform:perspective(min(106.667vw,640px)) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(min(106.667vw,640px)) rotate3d(0,1,0,90deg);transform:perspective(min(106.667vw,640px)) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,min(186.667vw,1120px),0);transform:translate3d(0,min(186.667vw,1120px),0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-266.667vw,-1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(max(-266.667vw,-1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(2.667vw,16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);transform:scale3d(.1,.1,.1) translate3d(min(266.667vw,1600px),0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-2.667vw,-16px),0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(266.667vw,1600px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);transform:scale3d(.475,.475,.475) translate3d(0,max(-16vw,-96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,min(533.333vw,3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(min(11.2vw,67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0);transform:scale(.1) translate3d(max(-533.333vw,-3200px),0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0);transform:scale3d(.475,.475,.475) translate3d(max(-11.2vw,-67.2px),0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(min(533.333vw,3200px),0,0);transform:scale(.1) translate3d(min(533.333vw,3200px),0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);transform:scale3d(.475,.475,.475) translate3d(0,min(16vw,96px),0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);transform:scale3d(.1,.1,.1) translate3d(0,max(-533.333vw,-3200px),0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp} diff --git a/assets/animation-z3KiDYMe.css.br b/assets/animation-z3KiDYMe.css.br new file mode 100644 index 00000000..1c81c39f Binary files /dev/null and b/assets/animation-z3KiDYMe.css.br differ diff --git a/assets/animation-z3KiDYMe.css.gz b/assets/animation-z3KiDYMe.css.gz new file mode 100644 index 00000000..dd92bb2d Binary files /dev/null and b/assets/animation-z3KiDYMe.css.gz differ diff --git a/assets/badge-DSB-TR_K.js b/assets/badge-DSB-TR_K.js new file mode 100644 index 00000000..c4074b44 --- /dev/null +++ b/assets/badge-DSB-TR_K.js @@ -0,0 +1 @@ +import{_ as c}from"./index-Cwg3TLNR.js";import{d as b,aE as v,c as k,w as e,k as x,m as _,o as C,a as m,b as n,u as o,e as s,_ as g}from"./index-DpnASd8N.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";const B={class:"flex flex-col gap-4 p-4"},N=m("div",null,"角标可以搭配 Pinia 一起使用,实现动态控制。",-1),y=b({__name:"badge",setup(V){const d=x(),a=v();return(T,t)=>{const l=_("VanButton"),r=$,i=g,f=_("van-button"),p=c;return C(),k(p,{navbar:!1,tabbar:"","tabbar-name":"third"},{default:e(()=>[m("div",B,[N,n(r,{title:"点标记",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[0]||(t[0]=u=>o(a).switchDot())},{default:e(()=>[s(" 切换 ")]),_:1})]),_:1}),n(r,{title:"数字标记,小于等于 0 时隐藏",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[1]||(t[1]=u=>o(a).setNumber(o(a).number+1))},{icon:e(()=>[n(i,{name:"i-ep:plus"})]),default:e(()=>[s(" 1 ")]),_:1}),n(l,{onClick:t[2]||(t[2]=u=>o(a).setNumber(o(a).number-1))},{icon:e(()=>[n(i,{name:"i-ep:minus"})]),default:e(()=>[s(" 1 ")]),_:1})]),_:1}),n(r,{title:"文字标记",class:"m-0!"},{default:e(()=>[n(l,{onClick:t[3]||(t[3]=u=>o(a).setText(o(a).text==="热门"?"促销":"热门"))},{default:e(()=>[s(" 切换 ")]),_:1}),n(l,{onClick:t[4]||(t[4]=u=>o(a).setText(""))},{default:e(()=>[s(" 清空 ")]),_:1})]),_:1}),n(f,{onClick:t[5]||(t[5]=u=>o(d).back())},{default:e(()=>[s(" 返回 ")]),_:1})])]),_:1})}}});export{y as default}; diff --git a/assets/badge-DSB-TR_K.js.br b/assets/badge-DSB-TR_K.js.br new file mode 100644 index 00000000..0c9f6c72 Binary files /dev/null and b/assets/badge-DSB-TR_K.js.br differ diff --git a/assets/badge-DSB-TR_K.js.gz b/assets/badge-DSB-TR_K.js.gz new file mode 100644 index 00000000..8e0485ac Binary files /dev/null and b/assets/badge-DSB-TR_K.js.gz differ diff --git a/assets/basic-C5i5Q2mp.js b/assets/basic-C5i5Q2mp.js new file mode 100644 index 00000000..8465effc --- /dev/null +++ b/assets/basic-C5i5Q2mp.js @@ -0,0 +1 @@ +import{_ as U}from"./index-Cwg3TLNR.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as B,r as d,c as C,w as t,m as n,o as R,b as e,e as o,u as s,i as r}from"./index-DpnASd8N.js";const S=B({__name:"basic",setup(N){const m=d(""),p=d(1),c=d(3),i=d(!0);return(P,a)=>{const u=k,_=n("van-button"),v=n("van-icon"),V=n("van-field"),g=n("van-cell-group"),f=n("van-radio"),b=n("van-radio-group"),y=n("van-rate"),w=n("van-switch"),x=U;return R(),C(x,{navbar:"","navbar-start-side":"back"},{default:t(()=>[e(u,null,{default:t(()=>[o(" 框架内置 Vant 组件库,本页仅展示部分组件,更多组件及使用说明请查看 Vant 官网 ")]),_:1}),e(u,{title:"Button"},{default:t(()=>[e(_,{type:"primary"},{default:t(()=>[o(" 主要按钮 ")]),_:1}),e(_,{type:"success"},{default:t(()=>[o(" 成功按钮 ")]),_:1}),e(_,{type:"default"},{default:t(()=>[o(" 默认按钮 ")]),_:1}),e(_,{type:"danger"},{default:t(()=>[o(" 危险按钮 ")]),_:1}),e(_,{type:"warning"},{default:t(()=>[o(" 警告按钮 ")]),_:1})]),_:1}),e(u,{title:"Icon"},{default:t(()=>[e(v,{name:"chat-o"})]),_:1}),e(g,{inset:""},{default:t(()=>[e(V,{modelValue:s(m),"onUpdate:modelValue":a[0]||(a[0]=l=>r(m)?m.value=l:null),label:"文本",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),e(u,{title:"Radio"},{default:t(()=>[e(b,{modelValue:s(p),"onUpdate:modelValue":a[1]||(a[1]=l=>r(p)?p.value=l:null)},{default:t(()=>[e(f,{name:1},{default:t(()=>[o(" 单选框 1 ")]),_:1}),e(f,{name:2},{default:t(()=>[o(" 单选框 2 ")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(u,{title:"Rate"},{default:t(()=>[e(y,{modelValue:s(c),"onUpdate:modelValue":a[2]||(a[2]=l=>r(c)?c.value=l:null)},null,8,["modelValue"])]),_:1}),e(u,{title:"Switch"},{default:t(()=>[e(w,{modelValue:s(i),"onUpdate:modelValue":a[3]||(a[3]=l=>r(i)?i.value=l:null)},null,8,["modelValue"])]),_:1})]),_:1})}}});export{S as default}; diff --git a/assets/basic-C5i5Q2mp.js.br b/assets/basic-C5i5Q2mp.js.br new file mode 100644 index 00000000..4b15d9bc Binary files /dev/null and b/assets/basic-C5i5Q2mp.js.br differ diff --git a/assets/basic-C5i5Q2mp.js.gz b/assets/basic-C5i5Q2mp.js.gz new file mode 100644 index 00000000..ca1ad5c2 Binary files /dev/null and b/assets/basic-C5i5Q2mp.js.gz differ diff --git a/assets/built-in-BZM_vgpN.css b/assets/built-in-BZM_vgpN.css new file mode 100644 index 00000000..0e98b068 --- /dev/null +++ b/assets/built-in-BZM_vgpN.css @@ -0,0 +1 @@ +.page-main[data-v-736f5d34] .main-container{display:flex;flex:1 1 0%;align-items:center;justify-content:center;gap:32px} diff --git a/assets/built-in-BZM_vgpN.css.br b/assets/built-in-BZM_vgpN.css.br new file mode 100644 index 00000000..8caf5375 Binary files /dev/null and b/assets/built-in-BZM_vgpN.css.br differ diff --git a/assets/built-in-C00q0YiL.js b/assets/built-in-C00q0YiL.js new file mode 100644 index 00000000..261435bc --- /dev/null +++ b/assets/built-in-C00q0YiL.js @@ -0,0 +1 @@ +import{_ as B,b as U,a as k}from"./index-Cwg3TLNR.js";import{d as I,r as _,c as T,w as l,o as C,b as e,e as n,u as s,i as d,_ as L,f as y,s as P,v as S,x as w,y as D,z as M}from"./index-DpnASd8N.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";const z=I({__name:"built-in",setup(R){const m=_(!1),r=_(""),f=_(!1),p=_(1),u=_(!1);return(j,t)=>{const o=N,c=L,v=U,i=y,g=k,b=P,$=S,H=w,V=D,x=B;return C(),T(x,{navbar:"","navbar-start-side":"back"},{default:l(()=>[e(o,null,{default:l(()=>[n(" PageMain 是最常用的页面组件,几乎所有页面都会使用到 ")]),_:1}),e(o,{title:"Badge"},{default:l(()=>[e(v,{value:!0},{default:l(()=>[e(c,{name:"i-ri:notification-3-line"})]),_:1}),e(v,{value:99},{default:l(()=>[e(c,{name:"i-ri:notification-3-line"})]),_:1}),e(v,{value:"噢"},{default:l(()=>[e(c,{name:"i-ri:notification-3-line"})]),_:1})]),_:1}),e(o,{title:"Button"},{default:l(()=>[e(i,null,{default:l(()=>[n(" 按钮 ")]),_:1}),e(i,{outline:""},{default:l(()=>[n(" 按钮 ")]),_:1}),e(i,{disabled:""},{default:l(()=>[n(" 按钮 ")]),_:1}),e(i,{disabled:"",outline:""},{default:l(()=>[n(" 按钮 ")]),_:1})]),_:1}),e(o,{title:"Dialog"},{default:l(()=>[e(i,{onClick:t[0]||(t[0]=a=>m.value=!0)},{default:l(()=>[n(" 打开 ")]),_:1}),e(g,{modelValue:s(m),"onUpdate:modelValue":t[1]||(t[1]=a=>d(m)?m.value=a:null),title:"标题"},{default:l(()=>[n(" 这里是 dialog 内容 ")]),_:1},8,["modelValue"])]),_:1}),e(o,{title:"Input"},{default:l(()=>[e(b,{modelValue:s(r),"onUpdate:modelValue":t[2]||(t[2]=a=>d(r)?r.value=a:null)},null,8,["modelValue"])]),_:1}),e(o,{title:"Slideover"},{default:l(()=>[e(i,{onClick:t[3]||(t[3]=a=>f.value=!0)},{default:l(()=>[n(" 打开 ")]),_:1}),e($,{modelValue:s(f),"onUpdate:modelValue":t[4]||(t[4]=a=>d(f)?f.value=a:null),title:"标题",overlay:!1},{default:l(()=>[n(" 这里是 slideover 内容 ")]),_:1},8,["modelValue"])]),_:1}),e(o,{title:"TabList"},{default:l(()=>[e(H,{modelValue:s(p),"onUpdate:modelValue":t[5]||(t[5]=a=>d(p)?p.value=a:null),options:[{label:"标签1",value:1},{label:"标签2",value:2},{label:"标签3",value:3}]},null,8,["modelValue"])]),_:1}),e(o,{title:"Toggle"},{default:l(()=>[e(V,{modelValue:s(u),"onUpdate:modelValue":t[6]||(t[6]=a=>d(u)?u.value=a:null)},null,8,["modelValue"]),e(V,{modelValue:s(u),"onUpdate:modelValue":t[7]||(t[7]=a=>d(u)?u.value=a:null),"on-icon":"ri:sun-line","off-icon":"ri:moon-line"},null,8,["modelValue"])]),_:1})]),_:1})}}}),F=M(z,[["__scopeId","data-v-736f5d34"]]);export{F as default}; diff --git a/assets/built-in-C00q0YiL.js.br b/assets/built-in-C00q0YiL.js.br new file mode 100644 index 00000000..0b412b54 Binary files /dev/null and b/assets/built-in-C00q0YiL.js.br differ diff --git a/assets/built-in-C00q0YiL.js.gz b/assets/built-in-C00q0YiL.js.gz new file mode 100644 index 00000000..f565cce1 Binary files /dev/null and b/assets/built-in-C00q0YiL.js.gz differ diff --git a/assets/composite-BtGdoNGI.js b/assets/composite-BtGdoNGI.js new file mode 100644 index 00000000..fdca5b98 --- /dev/null +++ b/assets/composite-BtGdoNGI.js @@ -0,0 +1 @@ +import{_ as K}from"./index-Cwg3TLNR.js";import{A as X,B as Z,S as I,C as k,M as q,D as H,E as J,G as Q,H as j,I as ee,J as L,K as O,L as ne,d as S,N as T,O as v,P as $,Q as F,r as _,m as g,o as M,j as A,b as c,R as P,u as s,i as V,F as E,w as C,c as le,e as D,t as w}from"./index-DpnASd8N.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";var oe="[object Symbol]";function N(e){return typeof e=="symbol"||X(e)&&Z(e)==oe}function ae(e,n){for(var t=-1,o=e==null?0:e.length,l=Array(o);++tx(n,["label","name","id","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["color","minDate","maxDate","formatter","showConfirm","confirmText","firstDayOfWeek","round"])),l=$(e,"modelValue"),a=v(()=>l.value&&F(l.value).format(n.format)),d=v(()=>F(l.value).toDate()),r=_(!1);function i(m){l.value=F(m).format(n.valueFormat),r.value=!1}return(m,u)=>{const f=g("van-field"),h=g("van-calendar");return M(),A(E,null,[c(f,P({"model-value":s(a)},s(t),{"is-link":"",readonly:"",onClick:u[0]||(u[0]=b=>r.value=!0)}),null,16,["model-value"]),c(h,P({show:s(r),"onUpdate:show":u[1]||(u[1]=b=>V(r)?r.value=b:null)},s(o),{"default-date":s(d),teleport:"body",onConfirm:i}),null,16,["show","default-date"])],64)}}}),Me=S({name:"VanFieldDatePicker",__name:"index",props:T({label:{},name:{},id:{},size:{},placeholder:{},border:{},colon:{},required:{},center:{},arrowDirection:{},labelClass:{},labelWidth:{},labelAlign:{},leftIcon:{},rightIcon:{},rules:{},round:{type:Boolean},columnsType:{},minDate:{},maxDate:{},formatter:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=e,t=v(()=>x(n,["label","name","id","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["round"])),l=v(()=>x(n,["columnsType","minDate","maxDate","formatter"])),a=$(e,"modelValue"),d=_(a.value??[]),r=v(()=>a.value?a.value.join("-"):""),i=_(!1);function m({selectedValues:u}){a.value=u,i.value=!1}return(u,f)=>{const h=g("van-field"),b=g("van-date-picker"),p=g("van-popup");return M(),A(E,null,[c(h,P({"model-value":s(r)},s(t),{"is-link":"",readonly:"",onClick:f[0]||(f[0]=y=>i.value=!0)}),null,16,["model-value"]),c(p,P({show:s(i),"onUpdate:show":f[3]||(f[3]=y=>V(i)?i.value=y:null)},s(o),{position:"bottom",teleport:"body"}),{default:C(()=>[c(b,P({modelValue:s(d),"onUpdate:modelValue":f[1]||(f[1]=y=>V(d)?d.value=y:null)},s(l),{onConfirm:m,onCancel:f[2]||(f[2]=y=>i.value=!1)}),null,16,["modelValue"])]),_:1},16,["show"])],64)}}}),ze=S({name:"VanFieldPicker",__name:"index",props:T({label:{},name:{},id:{},type:{},size:{},placeholder:{},border:{},colon:{},required:{},center:{},arrowDirection:{},labelClass:{},labelWidth:{},labelAlign:{},autosize:{},leftIcon:{},rightIcon:{},rules:{},round:{type:Boolean},columns:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=e,t=v(()=>x(n,["label","name","id","type","size","placeholder","border","colon","required","center","arrowDirection","labelClass","labelWidth","labelAlign","autosize","leftIcon","rightIcon","rules"])),o=v(()=>x(n,["round"])),l=v(()=>x(n,["columns"])),a=$(e,"modelValue"),d=_([a.value]),r=v(()=>{var m,u;return(u=(m=n.columns)==null?void 0:m.find(f=>f.value===a.value))==null?void 0:u.text}),i=_(!1);return(m,u)=>{const f=g("van-field"),h=g("van-picker"),b=g("van-popup");return M(),A(E,null,[c(f,P({"model-value":s(r)},s(t),{"is-link":"",readonly:"",onClick:u[0]||(u[0]=p=>i.value=!0)}),null,16,["model-value"]),c(b,P({show:s(i),"onUpdate:show":u[3]||(u[3]=p=>V(i)?i.value=p:null)},s(o),{position:"bottom",teleport:"body"}),{default:C(()=>[c(h,P({"model-value":s(d)},s(l),{onConfirm:u[1]||(u[1]=({selectedOptions:p})=>{var y;a.value=(y=p[0])==null?void 0:y.value,i.value=!1}),onCancel:u[2]||(u[2]=p=>i.value=!1)}),null,16,["model-value"])]),_:1},16,["show"])],64)}}}),Ae=S({__name:"composite",setup(e){const n=_(""),t=_([{text:"杭州",value:"Hangzhou"},{text:"宁波",value:"Ningbo"},{text:"温州",value:"Wenzhou"},{text:"绍兴",value:"Shaoxing"},{text:"湖州",value:"Huzhou"}]),o=_(),l=_(""),a=_("");return(d,r)=>{const i=te,m=ze,u=g("van-divider"),f=Me,h=Se,b=K;return M(),le(b,{navbar:"","navbar-start-side":"back"},{default:C(()=>[c(i,null,{default:C(()=>[D(" Vant 提供的组件大多数比较原子化,在实际业务开发中,往往一个功能需要通过多个组件结合使用才能实现。本框架则将一些常用的功能封装成复合组件,方便开发者使用。 ")]),_:1}),c(i,{title:"VanFieldPicker"},{default:C(()=>[c(m,{modelValue:s(n),"onUpdate:modelValue":r[0]||(r[0]=p=>V(n)?n.value=p:null),placeholder:"请选择",border:!1,columns:s(t)},null,8,["modelValue","columns"]),c(u),D(" 选中值: "+w(s(n)),1)]),_:1}),c(i,{title:"VanFieldDatePicker"},{default:C(()=>[c(f,{modelValue:s(o),"onUpdate:modelValue":r[1]||(r[1]=p=>V(o)?o.value=p:null),placeholder:"请选择",border:!1},null,8,["modelValue"]),c(u),D(" 选中值: "+w(s(o)),1)]),_:1}),c(i,{title:"VanFieldCalendar"},{default:C(()=>[c(h,{modelValue:s(l),"onUpdate:modelValue":r[2]||(r[2]=p=>V(l)?l.value=p:null),placeholder:"请选择",border:!1},null,8,["modelValue"]),c(u),D(" 选中值: "+w(s(l)),1)]),_:1}),c(i,{title:"VanFieldCalendar 格式化"},{default:C(()=>[c(h,{modelValue:s(a),"onUpdate:modelValue":r[3]||(r[3]=p=>V(a)?a.value=p:null),placeholder:"请选择",border:!1,format:"MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),c(u),D(" 选中值: "+w(s(a)),1)]),_:1})]),_:1})}}});export{Ae as default}; diff --git a/assets/composite-BtGdoNGI.js.br b/assets/composite-BtGdoNGI.js.br new file mode 100644 index 00000000..c23dec15 Binary files /dev/null and b/assets/composite-BtGdoNGI.js.br differ diff --git a/assets/composite-BtGdoNGI.js.gz b/assets/composite-BtGdoNGI.js.gz new file mode 100644 index 00000000..ee5501b6 Binary files /dev/null and b/assets/composite-BtGdoNGI.js.gz differ diff --git a/assets/custom-area-CYTopuMS.js b/assets/custom-area-CYTopuMS.js new file mode 100644 index 00000000..101f2756 --- /dev/null +++ b/assets/custom-area-CYTopuMS.js @@ -0,0 +1 @@ +import{_ as x}from"./index-Cwg3TLNR.js";import{d as h,r as i,c as V,w as t,k as C,m as u,o as g,b as s,u as l,i as m,e as _,a as p,t as B,a6 as N}from"./index-DpnASd8N.js";const S={class:"flex flex-col gap-4 p-4"},T=h({__name:"custom-area",setup(y){const a=i(!1),n=i(!1),d=[{name:"选项一"},{name:"选项二"},{name:"选项三"}];function v(r){n.value=!1,N(r.name)}const f=C();return(r,e)=>{const w=u("van-switch"),c=u("van-button"),b=u("van-action-sheet"),k=x;return g(),V(k,{navbar:""},{"navbar-start":t(()=>[s(w,{modelValue:l(a),"onUpdate:modelValue":e[0]||(e[0]=o=>m(a)?a.value=o:null),size:"16px"},null,8,["modelValue"])]),"navbar-end":t(()=>[s(c,{size:"small",onClick:e[1]||(e[1]=o=>n.value=!0)},{default:t(()=>[_(" 操作按钮 ")]),_:1}),s(b,{show:l(n),"onUpdate:show":e[2]||(e[2]=o=>m(n)?n.value=o:null),actions:d,onSelect:v},null,8,["show"])]),default:t(()=>[p("div",S,[p("div",null," Switch: "+B(l(a)),1),s(c,{onClick:e[3]||(e[3]=o=>l(f).back())},{default:t(()=>[_(" 返回 ")]),_:1})])]),_:1})}}});export{T as default}; diff --git a/assets/custom-area-CYTopuMS.js.br b/assets/custom-area-CYTopuMS.js.br new file mode 100644 index 00000000..84671c91 Binary files /dev/null and b/assets/custom-area-CYTopuMS.js.br differ diff --git a/assets/custom-area-CYTopuMS.js.gz b/assets/custom-area-CYTopuMS.js.gz new file mode 100644 index 00000000..01e735d6 Binary files /dev/null and b/assets/custom-area-CYTopuMS.js.gz differ diff --git a/assets/custom-area-DRoNMEDd.js b/assets/custom-area-DRoNMEDd.js new file mode 100644 index 00000000..f3a1bb4c --- /dev/null +++ b/assets/custom-area-DRoNMEDd.js @@ -0,0 +1 @@ +import{_ as d}from"./index-Cwg3TLNR.js";import{d as p,r as f,c as v,w as n,k as x,m as i,o as h,a as e,b as t,U as b,V as g,u as l,i as V,e as k,_ as w}from"./index-DpnASd8N.js";const C={class:"flex-center flex-1"},B={class:"flex-center flex-1"},N={class:"flex-center flex-1"},R={class:"flex flex-col gap-4 p-4"},S=e("div",null,"可以根据业务逻辑做更精细化的处理,比如动态切换显示内容。",-1),D=p({__name:"custom-area",setup(U){const _=x(),s=f(!1);return($,o)=>{const a=w,r=i("van-switch"),u=i("van-button"),m=d;return h(),v(m,{navbar:!1,tabbar:""},{tabbar:n(()=>[e("div",C,[t(a,{name:"https://fantastic-admin.hurui.me/logo.png",class:"text-8"})]),b(e("div",B,[t(a,{name:"https://fantastic-mobile.hurui.me/logo.png",class:"text-8"})],512),[[g,l(s)]]),e("div",N,[t(a,{name:"https://one-step-admin.hurui.me/logo.png",class:"text-8"})])]),default:n(()=>[e("div",R,[S,e("div",null,[t(r,{modelValue:l(s),"onUpdate:modelValue":o[0]||(o[0]=c=>V(s)?s.value=c:null),size:"16px"},null,8,["modelValue"])]),t(u,{onClick:o[1]||(o[1]=c=>l(_).back())},{default:n(()=>[k(" 返回 ")]),_:1})])]),_:1})}}});export{D as default}; diff --git a/assets/custom-area-DRoNMEDd.js.br b/assets/custom-area-DRoNMEDd.js.br new file mode 100644 index 00000000..18b2de67 Binary files /dev/null and b/assets/custom-area-DRoNMEDd.js.br differ diff --git a/assets/custom-area-DRoNMEDd.js.gz b/assets/custom-area-DRoNMEDd.js.gz new file mode 100644 index 00000000..3f5b1bcc Binary files /dev/null and b/assets/custom-area-DRoNMEDd.js.gz differ diff --git a/assets/custom-navbar-CRCCDv9B.css b/assets/custom-navbar-CRCCDv9B.css new file mode 100644 index 00000000..2e1e909f --- /dev/null +++ b/assets/custom-navbar-CRCCDv9B.css @@ -0,0 +1 @@ +header[data-v-ef732603]{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px);background-image:url(https://picsum.photos/375/60)} diff --git a/assets/custom-navbar-CRCCDv9B.css.br b/assets/custom-navbar-CRCCDv9B.css.br new file mode 100644 index 00000000..55fb030c Binary files /dev/null and b/assets/custom-navbar-CRCCDv9B.css.br differ diff --git a/assets/custom-navbar-CRCCDv9B.css.gz b/assets/custom-navbar-CRCCDv9B.css.gz new file mode 100644 index 00000000..adfa0cb6 Binary files /dev/null and b/assets/custom-navbar-CRCCDv9B.css.gz differ diff --git a/assets/custom-navbar-gMgypht4.js b/assets/custom-navbar-gMgypht4.js new file mode 100644 index 00000000..813f7ac7 --- /dev/null +++ b/assets/custom-navbar-gMgypht4.js @@ -0,0 +1 @@ +import{_ as f}from"./index-Cwg3TLNR.js";import{d as i,r as x,c as m,w as n,k as v,m as g,o as r,a as e,q as b,u as l,e as c,b as h,j as k,n as w,F as C,t as B,z as N}from"./index-DpnASd8N.js";const y={class:"h-full flex flex-col"},T={class:"mt-[80px] flex flex-1 flex-col gap-4 p-4"},V=i({__name:"custom-navbar",setup(z){const _=v(),a=x(0);function p(o){a.value=o.target.scrollTop}return(o,s)=>{const u=g("van-button"),d=f;return r(),m(d,{navbar:!1,onScroll:p},{default:n(()=>[e("div",y,[e("header",{class:b(["h-[80px] flex flex-center gap-2 bg-cover bg-center bg-no-repeat text-light text-shadow text-shadow-color-dark shadow transition-all transition-all-500",{"h-[60px]!":l(a)>50}])}," 头部导航 ",2),e("div",T,[c(" 使用自定义导航可以满足更复杂的业务场景,例如当前页面,你可以滚动页面试试。 "),h(u,{onClick:s[0]||(s[0]=t=>l(_).back())},{default:n(()=>[c(" 返回 ")]),_:1}),(r(),k(C,null,w(50,t=>e("div",{key:t,class:"text-center"},B(t),1)),64))])])]),_:1})}}}),S=N(V,[["__scopeId","data-v-ef732603"]]);export{S as default}; diff --git a/assets/custom-navbar-gMgypht4.js.br b/assets/custom-navbar-gMgypht4.js.br new file mode 100644 index 00000000..81ffd7d9 Binary files /dev/null and b/assets/custom-navbar-gMgypht4.js.br differ diff --git a/assets/custom-navbar-gMgypht4.js.gz b/assets/custom-navbar-gMgypht4.js.gz new file mode 100644 index 00000000..a88cdf0f Binary files /dev/null and b/assets/custom-navbar-gMgypht4.js.gz differ diff --git a/assets/custom-title-Cbe_yyXz.js b/assets/custom-title-Cbe_yyXz.js new file mode 100644 index 00000000..046ee559 --- /dev/null +++ b/assets/custom-title-Cbe_yyXz.js @@ -0,0 +1 @@ +import{_}from"./index-Cwg3TLNR.js";import{d as c,c as u,w as e,k as l,m as p,o as m,e as o,a,b as d,u as i}from"./index-DpnASd8N.js";const f={class:"flex flex-col gap-4 p-4"},v=a("div",null,"但也要注意,这种方式只能自定义 Navbar 区域的标题,并不会影响网页标题。如需同时修改网页标题,请参考动态标题。",-1),g=c({__name:"custom-title",setup(b){const n=l();return(x,t)=>{const s=p("van-button"),r=_;return m(),u(r,{navbar:""},{navbar:e(()=>[o(" 这是一段自定义的标题这是一段自定义的标题这是一段自定义的标题 ")]),default:e(()=>[a("div",f,[v,d(s,{onClick:t[0]||(t[0]=k=>i(n).back())},{default:e(()=>[o(" 返回 ")]),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/custom-title-Cbe_yyXz.js.br b/assets/custom-title-Cbe_yyXz.js.br new file mode 100644 index 00000000..c4215ece Binary files /dev/null and b/assets/custom-title-Cbe_yyXz.js.br differ diff --git a/assets/custom-title-Cbe_yyXz.js.gz b/assets/custom-title-Cbe_yyXz.js.gz new file mode 100644 index 00000000..ab63a02e Binary files /dev/null and b/assets/custom-title-Cbe_yyXz.js.gz differ diff --git a/assets/default-BOtOfq5q.js b/assets/default-BOtOfq5q.js new file mode 100644 index 00000000..caad3f49 --- /dev/null +++ b/assets/default-BOtOfq5q.js @@ -0,0 +1 @@ +import{_}from"./index-Cwg3TLNR.js";import{d as r,c,w as o,k as u,m as l,o as d,a as e,b as p,e as f,u as i}from"./index-DpnASd8N.js";const m={class:"flex flex-col gap-4 p-4"},b=e("div",null,"底部导航默认是全局关闭的,可以单独给指定路由设置开启底部导航。",-1),v=e("div",null,"当然也可以设置为全局开启,指定路由设置关闭。",-1),B=r({__name:"default",setup(x){const a=u();return(k,t)=>{const n=l("van-button"),s=_;return d(),c(s,{navbar:!1,tabbar:"","tabbar-name":"default"},{default:o(()=>[e("div",m,[b,v,p(n,{onClick:t[0]||(t[0]=C=>i(a).back())},{default:o(()=>[f(" 返回 ")]),_:1})])]),_:1})}}});export{B as default}; diff --git a/assets/default-BOtOfq5q.js.br b/assets/default-BOtOfq5q.js.br new file mode 100644 index 00000000..e61049de Binary files /dev/null and b/assets/default-BOtOfq5q.js.br differ diff --git a/assets/default-BOtOfq5q.js.gz b/assets/default-BOtOfq5q.js.gz new file mode 100644 index 00000000..dee00226 Binary files /dev/null and b/assets/default-BOtOfq5q.js.gz differ diff --git a/assets/default-C6BSQCLW.js b/assets/default-C6BSQCLW.js new file mode 100644 index 00000000..e264ea52 --- /dev/null +++ b/assets/default-C6BSQCLW.js @@ -0,0 +1 @@ +import{_ as s}from"./index-Cwg3TLNR.js";import{d as r,c as _,w as o,k as c,m as u,o as p,a as l,b as m,e as d,u as f}from"./index-DpnASd8N.js";const i={class:"flex flex-col gap-4 p-4"},g=r({__name:"default",setup(v){const t=c();return(x,e)=>{const a=u("van-button"),n=s;return p(),_(n,{navbar:""},{default:o(()=>[l("div",i,[m(a,{onClick:e[0]||(e[0]=b=>f(t).back())},{default:o(()=>[d(" 返回 ")]),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/default-C6BSQCLW.js.br b/assets/default-C6BSQCLW.js.br new file mode 100644 index 00000000..8b40597a Binary files /dev/null and b/assets/default-C6BSQCLW.js.br differ diff --git a/assets/default-C6BSQCLW.js.gz b/assets/default-C6BSQCLW.js.gz new file mode 100644 index 00000000..b436e228 Binary files /dev/null and b/assets/default-C6BSQCLW.js.gz differ diff --git a/assets/digital-7-webfont-Be4rWpNL.woff2 b/assets/digital-7-webfont-Be4rWpNL.woff2 new file mode 100644 index 00000000..012a409a Binary files /dev/null and b/assets/digital-7-webfont-Be4rWpNL.woff2 differ diff --git a/assets/digital-7-webfont-BjD0-cHb.eot b/assets/digital-7-webfont-BjD0-cHb.eot new file mode 100644 index 00000000..ce1a7560 Binary files /dev/null and b/assets/digital-7-webfont-BjD0-cHb.eot differ diff --git a/assets/digital-7-webfont-CsMgswhn.svg b/assets/digital-7-webfont-CsMgswhn.svg new file mode 100644 index 00000000..d02c78f0 --- /dev/null +++ b/assets/digital-7-webfont-CsMgswhn.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/digital-7-webfont-CsMgswhn.svg.br b/assets/digital-7-webfont-CsMgswhn.svg.br new file mode 100644 index 00000000..9e5bd430 Binary files /dev/null and b/assets/digital-7-webfont-CsMgswhn.svg.br differ diff --git a/assets/digital-7-webfont-CsMgswhn.svg.gz b/assets/digital-7-webfont-CsMgswhn.svg.gz new file mode 100644 index 00000000..1f6ac245 Binary files /dev/null and b/assets/digital-7-webfont-CsMgswhn.svg.gz differ diff --git a/assets/digital-7-webfont-T-2P9Ugr.woff b/assets/digital-7-webfont-T-2P9Ugr.woff new file mode 100644 index 00000000..c622d756 Binary files /dev/null and b/assets/digital-7-webfont-T-2P9Ugr.woff differ diff --git a/assets/digital-7_mono-webfont-CgIkl65M.woff2 b/assets/digital-7_mono-webfont-CgIkl65M.woff2 new file mode 100644 index 00000000..516bc56a Binary files /dev/null and b/assets/digital-7_mono-webfont-CgIkl65M.woff2 differ diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg b/assets/digital-7_mono-webfont-CgrKaJks.svg new file mode 100644 index 00000000..5ef075d0 --- /dev/null +++ b/assets/digital-7_mono-webfont-CgrKaJks.svg @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg.br b/assets/digital-7_mono-webfont-CgrKaJks.svg.br new file mode 100644 index 00000000..6eaf0592 Binary files /dev/null and b/assets/digital-7_mono-webfont-CgrKaJks.svg.br differ diff --git a/assets/digital-7_mono-webfont-CgrKaJks.svg.gz b/assets/digital-7_mono-webfont-CgrKaJks.svg.gz new file mode 100644 index 00000000..8a9b9c61 Binary files /dev/null and b/assets/digital-7_mono-webfont-CgrKaJks.svg.gz differ diff --git a/assets/digital-7_mono-webfont-DV1ffHFE.woff b/assets/digital-7_mono-webfont-DV1ffHFE.woff new file mode 100644 index 00000000..d7545f51 Binary files /dev/null and b/assets/digital-7_mono-webfont-DV1ffHFE.woff differ diff --git a/assets/digital-7_mono-webfont-p3QHBSNF.eot b/assets/digital-7_mono-webfont-p3QHBSNF.eot new file mode 100644 index 00000000..7af0eb4e Binary files /dev/null and b/assets/digital-7_mono-webfont-p3QHBSNF.eot differ diff --git a/assets/echarts-DqZtRDc9.js b/assets/echarts-DqZtRDc9.js new file mode 100644 index 00000000..32c6952e --- /dev/null +++ b/assets/echarts-DqZtRDc9.js @@ -0,0 +1,60 @@ +import{_ as H2}from"./index-Cwg3TLNR.js";import{_ as W2}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as U2,r as Do,h as Y2,g as X2,c as $2,w as _a,m as rm,o as Z2,a as Qr,b as rn,e as q2,u as K2,i as Q2,_ as J2}from"./index-DpnASd8N.js";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var op=function(r,e){return op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},op(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");op(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var j2=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),tI=function(){function r(){this.browser=new j2,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),mt=new tI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mt.wxa=!0,mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(mt.node=!0,mt.svgSupported=!0):eI(navigator.userAgent,mt);function eI(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Zd=12,sw="sans-serif",Xa=Zd+"px "+sw,rI=20,aI=100,nI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function iI(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function CI(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?om(s,o):om(o,s))}function pw(r){return r.nodeName.toUpperCase()==="CANVAS"}var DI=/([&<>"'])/g,MI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ee(r){return r==null?"":(r+"").replace(DI,function(e,t){return MI[t]})}var II=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vh=[],LI=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function cp(r,e,t,a){return t=t||{},a?lm(r,e,t):LI&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):lm(r,e,t),t}function lm(r,e,t){if(mt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(pw(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(vp(Vh,r,a,n)){t.zrX=Vh[0],t.zrY=Vh[1];return}}t.zrX=t.zrY=0}function eg(r){return r||window.event}function qe(r,e,t){if(e=eg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&cp(r,o,e,t)}else{cp(r,e,e,t);var i=PI(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&II.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PI(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function pp(r,e,t,a){r.addEventListener(e,t,a)}function RI(r,e,t,a){r.removeEventListener(e,t,a)}var sa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function um(r){return r.which===2||r.which===3}var EI=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=fm(a)/fm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=kI(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Fe(){return[1,0,0,1,0,0]}function Jf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function rg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function aa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Gr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function ui(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function ag(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ho(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function OI(r){var e=Fe();return rg(e,r),e}var ut=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),Il=Math.min,Ll=Math.max,an=new ut,nn=new ut,on=new ut,sn=new ut,Mo=new ut,Io=new ut,ht=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Il(e.x,this.x),a=Il(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ll(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ll(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Fe();return Gr(i,i,[-t.x,-t.y]),ag(i,i,[a,n]),Gr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}an.x=on.x=t.x,an.y=sn.y=t.y,nn.x=sn.x=t.x+t.width,nn.y=on.y=t.y+t.height,an.transform(a),sn.transform(a),nn.transform(a),on.transform(a),e.x=Il(an.x,nn.x,on.x,sn.x),e.y=Il(an.y,nn.y,on.y,sn.y);var l=Ll(an.x,nn.x,on.x,sn.x),u=Ll(an.y,nn.y,on.y,sn.y);e.width=l-e.x,e.height=u-e.y},r}(),dw="silent";function NI(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:BI}}function BI(){sa(this.event)}var VI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(or),Lo=function(){function r(e,t){this.x=e,this.y=t}return r}(),zI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gh=new ht(0,0,0,0),gw=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Lo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new VI,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new bI(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(zI,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=yw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Lo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Lo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=NI(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Lo(t,a);if(hm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Gh.copy(v.getBoundingRect()),v.transform&&Gh.applyTransform(v.transform),Gh.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function GI(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?dw:!0}return!1}function hm(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=GI(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==dw)){e.target=o;break}}}function yw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var mw=32,Po=7;function FI(r){for(var e=0;r>=mw;)e|=r&1,r>>=1;return r+e}function vm(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function HI(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Fh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Hh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function WI(r,e){var t=Po,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Po||w>=Po);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,A=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--p===0){D=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){D=!0;break}while((T|A)=0;y--)r[x+y]=r[b+y];if(p===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-Fh(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,b=_+1,y=0;y=Po||A>=Po);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),cm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var ze=1,as=2,Bi=4,pm=!1;function Wh(){pm||(pm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var UI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dm}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Wh(),f.z=0),isNaN(f.z2)&&(Wh(),f.z2=0),isNaN(f.zlevel)&&(Wh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ef;ef=mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var gs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-gs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?gs.bounceIn(r*2)*.5:gs.bounceOut(r*2-1)*.5+.5}},Pl=Math.pow,Ha=Math.sqrt,rf=1e-8,_w=1e-4,gm=Ha(3),Rl=1/3,Pr=li(),je=li(),Xi=li();function Na(r){return r>-rf&&rrf||r<-rf}function jt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function ym(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function af(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Na(f)&&Na(h))if(Na(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Na(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Ha(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Pl(-_,Rl):_=Pl(_,Rl),S<0?S=-Pl(-S,Rl):S=Pl(S,Rl);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Ha(f*f*f)),x=Math.acos(b)/3,w=Ha(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+gm*Math.sin(x)))/(3*o),A=(-s+w*(T-gm*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),A>=0&&A<=1&&(i[c++]=A)}}return c}function xw(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Na(o)){if(Sw(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Na(f))n[0]=-i/(2*o);else if(f>0){var h=Ha(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Za(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function bw(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Pr[0]=l,Pr[1]=u;for(var m=0;m<1;m+=.05)je[0]=jt(r,t,n,o,m),je[1]=jt(e,a,i,s,m),g=Xn(Pr,je),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Na(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Ha(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function ww(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Rs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Tw(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Pr[0]=o,Pr[1]=s;for(var v=0;v<1;v+=.05){je[0]=ie(r,t,n,v),je[1]=ie(e,a,i,v);var c=Xn(Pr,je);c=0&&c=1?1:af(0,a,i,1,l,s)&&jt(0,n,o,1,s[0])}}}var qI=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Xt,this.ondestroy=e.ondestroy||Xt,this.onrestart=e.onrestart||Xt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:gs[e]||ng(e)},r}(),Aw=function(){function r(e){this.value=e}return r}(),KI=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Aw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),il=function(){function r(e){this._list=new KI,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Aw(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),mm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yr(r){return r=Math.round(r),r<0?0:r>255?255:r}function QI(r){return r=Math.round(r),r<0?0:r>360?360:r}function Es(r){return r<0?0:r>1?1:r}function Uh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function $n(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Es(parseFloat(e)/100):Es(parseFloat(e))}function Yh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ba(r,e,t){return r+(e-r)*t}function Ze(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function gp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Cw=new il(20),El=null;function yi(r,e){El&&gp(El,e),El=Cw.put(r,El||e.slice())}function He(r,e){if(r){e=e||[];var t=Cw.get(r);if(t)return gp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in mm)return gp(e,mm[a]),yi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Ze(e,0,0,0,1);return}return Ze(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),yi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ze(e,0,0,0,1);return}return Ze(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),yi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ze(e,+u[0],+u[1],+u[2],1):Ze(e,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return Ze(e,Uh(u[0]),Uh(u[1]),Uh(u[2]),u.length===3?f:$n(u[3])),yi(r,e),e;Ze(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ze(e,0,0,0,1);return}return u[3]=$n(u[3]),yp(u,e),yi(r,e),e;case"hsl":if(u.length!==3){Ze(e,0,0,0,1);return}return yp(u,e),yi(r,e),e;default:return}}Ze(e,0,0,0,1)}}function yp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$n(r[1]),n=$n(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ze(e,yr(Yh(o,i,t+1/3)*255),yr(Yh(o,i,t)*255),yr(Yh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function JI(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function mp(r,e){var t=He(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return na(t,t.length===4?"rgba":"rgb")}}function Xh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=yr(Ba(o[0],s[0],l)),t[1]=yr(Ba(o[1],s[1],l)),t[2]=yr(Ba(o[2],s[2],l)),t[3]=Es(Ba(o[3],s[3],l)),t}}function jI(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=He(e[n]),s=He(e[i]),l=a-n,u=na([yr(Ba(o[0],s[0],l)),yr(Ba(o[1],s[1],l)),yr(Ba(o[2],s[2],l)),Es(Ba(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ys(r,e,t,a){var n=He(r);if(r)return n=JI(n),e!=null&&(n[0]=QI(e)),t!=null&&(n[1]=$n(t)),a!=null&&(n[2]=$n(a)),na(yp(n),"rgba")}function nf(r,e){var t=He(r);if(t&&e!=null)return t[3]=Es(e),na(t,"rgba")}function na(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function of(r,e){var t=He(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var _m=new il(100);function _p(r){if(U(r)){var e=_m.get(r);return e||(e=mp(r,-.1),_m.put(r,e)),e}else if(Kf(r)){var t=V({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:mp(a.color,-.1)}}),t}return r}var sf=Math.round;function ks(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=He(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Sm=1e-4;function Va(r){return r-Sm}function kl(r){return sf(r*1e3)/1e3}function Sp(r){return sf(r*1e4)/1e4}function tL(r){return"matrix("+kl(r[0])+","+kl(r[1])+","+kl(r[2])+","+kl(r[3])+","+Sp(r[4])+","+Sp(r[5])+")"}var eL={left:"start",right:"end",center:"middle",middle:"middle"};function rL(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function aL(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function nL(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Dw(r){return r&&!!r.image}function iL(r){return r&&!!r.svgElement}function ig(r){return Dw(r)||iL(r)}function Mw(r){return r.type==="linear"}function Iw(r){return r.type==="radial"}function Lw(r){return r&&(r.type==="linear"||r.type==="radial")}function jf(r){return"url(#"+r+")"}function Pw(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Rw(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Ru,n=it(r.scaleX,1),i=it(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+sf(o*Ru)+"deg, "+sf(s*Ru)+"deg)"),l.join(" ")}var oL=function(){return mt.hasGlobalWindow&&Q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),xp=Array.prototype.slice;function Jr(r,e,t){return(e-r)*t+r}function $h(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=bm,l=t;if(ge(t)){var u=fL(t);s=u,(u===1&&!Ct(t[0])||u===2&&!Ct(t[0][0]))&&(o=!0)}else if(Ct(t)&&!Ps(t))s=Nl;else if(U(t))if(!isNaN(+t))s=Nl;else{var f=He(t);f&&(l=f,s=ns)}else if(Kf(t)){var h=V({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:He(c.color)}}),Mw(t)?s=bp:Iw(t)&&(s=wp),l=h}i===0?this.valType=s:(s!==this.valType||s===bm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=Q(a)?a:gs[a]||ng(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Bl(n),u=wm(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?Ro:e[l];if((Bl(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(Bl(i))i===Bu?$h(m,c[n],p[n],y):sL(m,c[n],p[n],y);else if(wm(i)){var _=c[n],S=p[n],b=i===bp;e[l]={type:b?"linear":"radial",x:Jr(_.x,S.x,y),y:Jr(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:Jr(w.offset,A.offset,y),color:Nu($h([],w.color,A.color,y))}}),global:S.global},b?(e[l].x2=Jr(_.x2,S.x2,y),e[l].y2=Jr(_.y2,S.y2,y)):e[l].r=Jr(_.r,S.r,y)}else if(u)$h(m,c[n],p[n],y),a||(e[l]=Nu(m));else{var x=Jr(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Nl?e[a]=e[a]+n:t===ns?(He(e[a],Ro),Ol(Ro,Ro,n,1),e[a]=Nu(Ro)):t===Bu?Ol(e[a],e[a],n,1):t===Ew&&xm(e[a],e[a],n,1)},r}(),og=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Qd("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,St(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,ms(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ms(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Hi(){return new Date().getTime()}var vL=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Hi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(ef(a),!t._paused&&t.update())}ef(a)},e.prototype.start=function(){this._running||(this._time=Hi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Hi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Hi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new og(t,a.loop);return this.addAnimator(n),n},e}(or),cL=300,Zh=mt.domSupported,qh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Tm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Am=!1;function Tp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function pL(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Kh(r){r&&(r.zrByTouch=!0)}function dL(r,e){return qe(r.dom,new gL(r,e),!0)}function kw(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var gL=function(){function r(e,t){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),vr={mousedown:function(r){r=qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=qe(this.dom,r);var e=r.toElement||r.relatedTarget;kw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Am=!0,r=qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Am||(r=qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=qe(this.dom,r),Kh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),vr.mousemove.call(this,r),vr.mousedown.call(this,r)},touchmove:function(r){r=qe(this.dom,r),Kh(r),this.handler.processGesture(r,"change"),vr.mousemove.call(this,r)},touchend:function(r){r=qe(this.dom,r),Kh(r),this.handler.processGesture(r,"end"),vr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentMm||r<-Mm}var un=[],mi=[],Jh=Fe(),jh=Math.abs,xL=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Dm(a),this.invTransform=null);return}a=a||Fe(),t?this.getLocalTransform(a):Dm(a),e&&(t?aa(a,e,a):rg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(un);var a=un[0]<0?-1:1,n=un[1]<0?-1:1,i=((un[0]-a)*t+a)/un[0]||0,o=((un[1]-n)*t+n)/un[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Fe(),ho(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Fe(),aa(mi,e.invTransform,t),t=mi);var a=this.originX,n=this.originY;(a||n)&&(Jh[4]=a,Jh[5]=n,aa(mi,t,Jh),mi[4]-=a,mi[5]-=n,t=mi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ue(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ue(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&jh(e[0]-1)>1e-10&&jh(e[3]-1)>1e-10?Math.sqrt(jh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Nw(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&ui(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Fr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nw(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function uf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=_r(a[0],t.width),u+=_r(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var tv="__zr_normal__",ev=Fr.concat(["ignore"]),bL=zr(Fr,function(r,e){return r[e]=!0,r},{ignore:!1}),_i={},wL=new ht(0,0,0,0),eh=function(){function r(e){this.id=fw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=wL;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_i,a,f):uf(_i,a,f),i.x=_i.x,i.y=_i.y,o=_i.align,s=_i.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=_r(h[0],f.width),c=_r(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=ze,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mp:Dp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&He(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,na(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=St(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(tv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===tv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(vt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Qd("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ze),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ze)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=vt(n,e),o=vt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,A=void 0,D=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];A[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=d[S];D[y]=ms(t[y]),AL(t,a,y)}}var b=new og(t,!1,!1,h?Pt(p,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(u??500,s?A:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var at=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=vt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=vt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?kL(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ut(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),zw),r=(+r).toFixed(e),t?r:+r}function ar(r){return r.sort(function(e,t){return e-t}),r}function Er(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return OL(r)}function OL(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Gw(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function NL(r,e){var t=zr(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=zr(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function BL(r,e){var t=Math.max(Er(r),Er(e)),a=r+e;return t>zw?a:Ut(a,t)}var Em=9007199254740991;function Fw(r){var e=Math.PI*2;return(r%e+e)%e}function Os(r){return r>-Rm&&r=10&&e++,e}function Hw(r,e){var t=sg(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function nv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function km(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&vt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var uP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fP=ai(uP),hP=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return fP(this,e,t)},r}(),Pp=new il(50);function vP(r){if(typeof r=="string"){var e=Pp.get(r);return e&&e.image}else return r}function hg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Pp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!ah(e)&&i.pending.push(o)):(e=$a.loadImage(r,Vm,Vm),e.__zrImageSrc=r,Pp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Vm(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=We(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function eT(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=We(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?pP(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=We(r,a)}return r===""&&(r=e.placeholder),r}function pP(r,e,t,a){for(var n=0,i=0,o=r.length;ic&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&i&&f!=null)for(var d=tT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&ov(t,r.substring(s,u),e,o),ov(t,l[2],e,o,l[1]),s=iv.lastIndex}sn){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=We(x.text,D);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=vP(R),ah(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=p&&a!=null?a-S:null;E!=null&&E0&&p+a.accumWidth>a.width&&(f=e.split(` +`),u=!0),a.accumWidth=p}else{var d=rT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(` +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var SP=zr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function xP(r){return _P(r)?!!SP[r]:!0}function rT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Rp="__zr_style_"+Math.round(Math.random()*10),Zn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zn[Rp]=!0;var Gm=["z","z2","invisible"],bP=["invisible"],ir=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Vl[0]=fv(n)*t+r,Vl[1]=uv(n)*a+e,zl[0]=fv(i)*t+r,zl[1]=uv(i)*a+e,u(s,Vl,zl),f(l,Vl,zl),n=n%hn,n<0&&(n=n+hn),i=i%hn,i<0&&(i=i+hn),n>i&&!o?i+=hn:nn&&(Gl[0]=fv(c)*t+r,Gl[1]=uv(c)*a+e,u(s,Gl,s),f(l,Gl,l))}var kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vn=[],cn=[],wr=[],Sa=[],Tr=[],Ar=[],hv=Math.min,vv=Math.max,pn=Math.cos,dn=Math.sin,Zr=Math.abs,Ep=Math.PI,Ia=Ep*2,cv=typeof Float32Array<"u",Eo=[];function pv(r){var e=Math.round(r/Ep*1e8)/1e8;return e%2*Ep}function vg(r,e){var t=pv(r[0]);t<0&&(t+=Ia);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Ia?n=t+Ia:e&&t-n>=Ia?n=t-Ia:!e&&t>n?n=t+(Ia-pv(t-n)):e&&t0&&(this._ux=Zr(a/lf/e)||0,this._uy=Zr(a/lf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(kt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=Zr(e-this._xi),n=Zr(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(kt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(kt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(kt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Eo[0]=n,Eo[1]=i,vg(Eo,o),n=Eo[0],i=Eo[1];var s=i-n;return this.addData(kt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=pn(i)*a+e,this._yi=dn(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(kt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(kt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&cv&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){wr[0]=wr[1]=Tr[0]=Tr[1]=Number.MAX_VALUE,Sa[0]=Sa[1]=Ar[0]=Ar[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||Zr(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break}case kt.C:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++],x=e[v++],w=e[v++];d=YI(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case kt.Q:{var S=e[v++],b=e[v++],g=e[v++],y=e[v++];d=$I(i,o,S,b,g,y,10),i=g,o=y;break}case kt.A:var T=e[v++],A=e[v++],D=e[v++],M=e[v++],I=e[v++],L=e[v++],P=L+I;v+=1,p&&(s=pn(I)*D+T,l=dn(I)*M+A),d=vv(D,M)*hv(Ia,Math.abs(L)),i=pn(P)*D+T,o=dn(P)*M+A;break;case kt.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];d=R*2+E*2;break}case kt.Z:{var m=s-i,_=l-o;d=Math.sqrt(m*m+_*_),i=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case kt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case kt.L:{h=a[x++],v=a[x++];var A=Zr(h-u),D=Zr(v-f);if(A>n||D>i){if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var L=A*A+D*D;L>_&&(S=h,b=v,_=L)}break}case kt.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],B=a[x++];if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;Za(u,P,E,O,I,vn),Za(f,R,N,B,I,cn),e.bezierCurveTo(vn[1],cn[1],vn[2],cn[2],vn[3],cn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case kt.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;Rs(u,P,E,I,vn),Rs(f,R,N,I,cn),e.quadraticCurveTo(vn[1],cn[1],vn[2],cn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case kt.A:var F=a[x++],H=a[x++],Y=a[x++],K=a[x++],J=a[x++],ct=a[x++],xt=a[x++],pt=!a[x++],rt=Y>K?Y:K,dt=Zr(Y-K)>.001,st=J+ct,q=!1;if(c){var M=p[y++];g+M>m&&(st=J+ct*(m-g)/M,q=!0),g+=M}if(dt&&e.ellipse?e.ellipse(F,H,Y,K,xt,J,st,pt):e.arc(F,H,rt,J,st,pt),q)break t;T&&(s=pn(J)*Y+F,l=dn(J)*K+H),u=pn(st)*Y+F,f=dn(st)*K+H;break;case kt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var lt=a[x++],zt=a[x++];if(c){var M=p[y++];if(g+M>m){var Tt=m-g;e.moveTo(h,v),e.lineTo(h+hv(Tt,lt),v),Tt-=lt,Tt>0&&e.lineTo(h+lt,v+hv(Tt,zt)),Tt-=zt,Tt>0&&e.lineTo(h+vv(lt-Tt,0),v+zt),Tt-=lt,Tt>0&&e.lineTo(h,v+vv(zt-Tt,0));break t}g+=M}e.rect(h,v,lt,zt);break;case kt.Z:if(c){var M=p[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=kt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Pa(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=ko);var v=Math.atan2(l,s);return v<0&&(v+=ko),v>=a&&v<=n||v+ko>=a&&v+ko<=n}function jr(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var xa=Wr.CMD,gn=Math.PI*2,IP=1e-4;function LP(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&PP(),c=jt(e,a,i,s,Qe[0]),v>1&&(p=jt(e,a,i,s,Qe[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=ie(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);xe[0]=-l,xe[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=gn-1e-4){a=0,n=gn;var f=i?1:-1;return o>=xe[0]+r&&o<=xe[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=gn,n+=gn);for(var v=0,c=0;c<2;c++){var p=xe[c];if(p+r>o){var d=Math.atan2(s,p),f=i?1:-1;d<0&&(d=gn+d),(d>=a&&d<=n||d+gn>=a&&d+gn<=n)&&(d>Math.PI/2&&d1&&(t||(s+=jr(l,u,f,h,a,n))),g&&(l=i[p],u=i[p+1],f=l,h=u),d){case xa.M:f=i[p++],h=i[p++],l=f,u=h;break;case xa.L:if(t){if(Pa(l,u,i[p],i[p+1],e,a,n))return!0}else s+=jr(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.C:if(t){if(DP(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=RP(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.Q:if(t){if(aT(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=EP(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case xa.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=jr(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(MP(y,m,S,b,b+x,w,e,T,n))return!0}else s+=kP(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case xa.R:f=l=i[p++],h=u=i[p++];var A=i[p++],D=i[p++];if(v=f+A,c=h+D,t){if(Pa(f,h,v,h,e,a,n)||Pa(v,h,v,c,e,a,n)||Pa(v,c,f,c,e,a,n)||Pa(f,c,f,h,e,a,n))return!0}else s+=jr(v,h,v,c,a,n),s+=jr(f,c,f,h,a,n);break;case xa.Z:if(t){if(Pa(l,u,f,h,e,a,n))return!0}else s+=jr(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!LP(u,h)&&(s+=jr(l,u,f,h,a,n)||0),s!==0}function OP(r,e,t){return nT(r,0,!1,e,t)}function NP(r,e,t,a){return nT(r,e,!0,t,a)}var ff=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zn),BP={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nh.style)},dv=Fr.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Dp:a>.2?SL:Mp}else if(t)return Mp}return Dp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=of(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Bi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),NP(s,l/u,t,a)))return!0}if(this.hasFill())return OP(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:V(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Bi)},e.prototype.createStyle=function(t){return Qf(ff,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=V({},n.shape),V(u,a.shape)):(u=V({},i?this.shape:n.shape),V(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=St(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Qf(VP,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=ol(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ir);ji.prototype.type="tspan";var zP=j({x:0,y:0},Zn),GP={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nh.style)};function FP(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var se=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Qf(zP,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=FP(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return GP},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ir);se.prototype.type="image";function HP(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Wi=Math.round;function iT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Wi(a*2)===Wi(n*2)&&(r.x1=r.x2=zn(a,s,!0)),Wi(i*2)===Wi(o*2)&&(r.y1=r.y2=zn(i,s,!0))),r}}function oT(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=zn(a,s,!0),r.y=zn(n,s,!0),r.width=Math.max(zn(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(zn(n+o,s,!1)-r.y,o===0?0:1)),r}}function zn(r,e,t){if(!e)return r;var a=Wi(r*2);return(a+Wi(e))%2===0?a/2:(a+(t?1:-1))/2}var WP=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),UP={},bt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WP},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=oT(UP,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?HP(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);bt.prototype.type="rect";var Ym={fill:"#000"},Xm=2,YP={style:j({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},nh.style)},At=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Ym,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-A)/2;D<=L;)P=x[D],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&gv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Jm(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(ji),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Qm("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=Km("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Xm,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Xa,g.opacity=Br(u.opacity,a.opacity,1),Zm(g,u),b&&(g.lineWidth=Br(u.lineWidth,a.lineWidth,_),g.lineDash=it(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ht(is(g.x,w,g.textAlign),Vi(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(bt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=it(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(se),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=it(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Br(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return lT(t)&&(a=[t.fontStyle,t.fontWeight,sT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&dr(a)||t.textFont||t.font},e}(ir),XP={left:!0,right:1,center:1},$P={top:1,bottom:1,middle:1},$m=["fontStyle","fontWeight","fontSize","fontFamily"];function sT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Zd+"px":r+"px"}function Zm(r,e){for(var t=0;t<$m.length;t++){var a=$m[t],n=e[a];n!=null&&(r[a]=n)}}function lT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ZP(r){return qm(r),C(r.rich,qm),r}function qm(r){if(r){r.font=At.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||XP[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||$P[t]?t:"top";var a=r.padding;a&&(r.padding=tg(r.padding))}}function Km(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Qm(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Jm(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function jm(r){var e=r.text;return e!=null&&(e+=""),e}function gv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var nt=wt(),kp=function(r,e,t,a){if(a){var n=nt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=nt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},t0=1,e0={},uT=wt(),cg=wt(),pg=0,ll=1,oh=2,Ce=["emphasis","blur","select"],Bs=["normal","emphasis","blur","select"],co=10,qP=9,qn="highlight",Gu="downplay",xs="select",Fu="unselect",bs="toggleSelect";function Si(r){return r!=null&&r!=="none"}function sh(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function fT(r){sh(r,"emphasis",oh)}function hT(r){r.hoverState===oh&&sh(r,"normal",pg)}function dg(r){sh(r,"blur",ll)}function vT(r){r.hoverState===ll&&sh(r,"normal",pg)}function KP(r){r.selected=!0}function QP(r){r.selected=!1}function r0(r,e,t){e(r,t)}function da(r,e,t){r0(r,e,t),r.isGroup&&r.traverse(function(a){r0(a,e,t)})}function hf(r,e){switch(e){case"emphasis":r.hoverState=oh;break;case"normal":r.hoverState=pg;break;case"blur":r.hoverState=ll;break;case"select":r.selected=!0}}function JP(r,e,t,a){for(var n=r.style,i={},o=0;o=0,i=!1;if(r instanceof yt){var o=uT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Si(s)||Si(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!Si(u.fill)&&Si(s)?(i=!0,a=V({},a),u=V({},u),u.fill=_p(s)):!Si(u.stroke)&&Si(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=_p(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??co)}return a}function tR(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??qP)}return t}function eR(r,e,t){var a=vt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:JP(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?n:i.opacity*.1},o),t.style=o),t}function yv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return jP(this,r,e,t);if(r==="blur")return eR(this,r,t);if(r==="select")return tR(this,r,t)}return t}function ni(r){r.stateProxy=yv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=yv),t&&(t.stateProxy=yv)}function a0(r,e){!gT(r,e)&&!r.__highByOuter&&da(r,fT)}function n0(r,e){!gT(r,e)&&!r.__highByOuter&&da(r,hT)}function ua(r,e){r.__highByOuter|=1<<(e||0),da(r,fT)}function fa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&da(r,hT)}function cT(r){da(r,dg)}function gg(r){da(r,vT)}function pT(r){da(r,KP)}function dT(r){da(r,QP)}function gT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function yT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=cg(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){vT(u)}),s&&t.push(i)),o.isBlured=!1}),C(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Op(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Kn(r,e,t){Gn(r,!0),da(r,ni),Bp(r,e,t)}function sR(r){Gn(r,!1)}function Ht(r,e,t,a){a?sR(r):Kn(r,e,t)}function Bp(r,e,t){var a=nt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var o0=["emphasis","blur","select"],lR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fe(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=mv(p),s*=mv(p));var d=(n===i?-1:1)*mv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Hl(h)*g-Fl(h)*y,_=(e+a)/2+Fl(h)*g+Hl(h)*y,S=f0([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=f0(b,x);if(zp(b,x)<=-1&&(w=Oo),zp(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Oo*1e6)/1e6;w=Oo*2+T%2*Oo}f.addData(u,m,_,o,s,S,w,h,i)}var pR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gR(r){var e=new Wr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Wr.CMD,l=r.match(pR);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(n/b-1),y1:A*(n/b-1)}}function wR(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function TR(r,e){var t,a=os(e.r,0),n=os(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=v0(u-l),p=c>_v&&c%_v;if(p>hr&&(c=p),!(a>hr))r.moveTo(f,h);else if(c>_v-hr)r.moveTo(f+a*bi(l),h+a*yn(l)),r.arc(f,h,a,l,u,!v),n>hr&&(r.moveTo(f+n*bi(u),h+n*yn(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=a*bi(l),E=a*yn(l),N=n*bi(u),O=n*yn(u),B=c>hr;if(B){var F=e.cornerRadius;F&&(t=wR(F),d=t[0],g=t[1],y=t[2],m=t[3]);var H=v0(a-n)/2;if(_=Cr(H,y),S=Cr(H,m),b=Cr(H,d),x=Cr(H,g),A=w=os(_,S),D=T=os(b,x),(w>hr||T>hr)&&(M=a*bi(u),I=a*yn(u),L=n*bi(l),P=n*yn(l),chr){var dt=Cr(y,A),st=Cr(m,A),q=Wl(L,P,R,E,a,dt,v),lt=Wl(M,I,N,O,a,st,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),A0&&r.arc(f+q.cx,h+q.cy,dt,ce(q.y0,q.x0),ce(q.y1,q.x1),!v),r.arc(f,h,a,ce(q.cy+q.y1,q.cx+q.x1),ce(lt.cy+lt.y1,lt.cx+lt.x1),!v),st>0&&r.arc(f+lt.cx,h+lt.cy,st,ce(lt.y1,lt.x1),ce(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>hr)||!B)r.lineTo(f+N,h+O);else if(D>hr){var dt=Cr(d,D),st=Cr(g,D),q=Wl(N,O,M,I,n,-st,v),lt=Wl(R,E,L,P,n,-dt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D0&&r.arc(f+q.cx,h+q.cy,st,ce(q.y0,q.x0),ce(q.y1,q.x1),!v),r.arc(f,h,n,ce(q.cy+q.y1,q.cx+q.x1),ce(lt.cy+lt.y1,lt.cx+lt.x1),v),dt>0&&r.arc(f+lt.cx,h+lt.cy,dt,ce(lt.y1,lt.x1),ce(lt.y0,lt.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var AR=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),De=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new AR},e.prototype.buildPath=function(t,a){TR(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);De.prototype.type="sector";var CR=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ul=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new CR},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(yt);ul.prototype.type="ring";function DR(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=DR(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s_n[1]){if(s=!1,i)return s;var f=Math.abs(_n[0]-mn[1]),h=Math.abs(mn[0]-_n[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Dt(r,e,t,a,n,i){Sg("update",r,e,t,a,n,i)}function Vt(r,e,t,a,n,i){Sg("enter",r,e,t,a,n,i)}function $i(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function d0(r){return!r.isGroup}function YR(r){return r.shape!=null}function vl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){d0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return YR(o)&&(s.shape=V({},o.shape)),s}var i=a(r);e.traverse(function(o){if(d0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Dt(o,l,t,nt(o).dataIndex)}}})}function PT(r,e){return G(r,function(t){var a=t[0];a=cf(a,e.x),a=pf(a,e.x+e.width);var n=t[1];return n=cf(n,e.y),n=pf(n,e.y+e.height),[a,n]})}function XR(r,e){var t=cf(r.x,e.x),a=pf(r.x+r.width,e.x+e.width),n=cf(r.y,e.y),i=pf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function cl(r,e,t){var a=V({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,t),new se(a)):fh(r.replace("path://",""),a,t,"center")}function ss(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Sv(c,p,f,h)/v;return!(g<0||g>1)}function Sv(r,e,t,a){return r*a-t*e}function $R(r){return r<=1e-6&&r>=-1e-6}function go(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(St(l),function(f){$(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function g0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function tn(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function en(r,e){return ft(ft({},r,!0),e,!0)}const iE={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},oE={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var gf="ZH",wg="EN",Zi=wg,Wu={},Tg={},VT=mt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Zi).toUpperCase();return r.indexOf(gf)>-1?gf:Zi}():Zi;function zT(r,e){r=r.toUpperCase(),Tg[r]=new It(e),Wu[r]=e}function sE(r){if(U(r)){var e=Wu[r.toUpperCase()]||{};return r===gf||r===wg?et(e):ft(et(e),et(Wu[Zi]),!1)}else return ft(et(r),et(Wu[Zi]),!1)}function Hp(r){return Tg[r]}function lE(){return Tg[Zi]}zT(wg,iE);zT(gf,oE);var Ag=1e3,Cg=Ag*60,Ts=Cg*60,rr=Ts*24,x0=rr*365,ls={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xl="{yyyy}-{MM}-{dd}",b0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xl,hour:Xl+" "+ls.hour,minute:Xl+" "+ls.minute,second:Xl+" "+ls.second,millisecond:ls.none},wv=["year","month","day","hour","minute","second","millisecond"],GT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ba(r,e){return r+="","0000".substr(0,e-r.length)+r}function qi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function uE(r){return r===qi(r)}function fE(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ch(r,e,t,a){var n=Hr(r),i=n[Dg(t)](),o=n[Ki(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[ph(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Gs(t)](),h=(f-1)%12+1,v=n[dh(t)](),c=n[gh(t)](),p=n[yh(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=a instanceof It?a:Hp(a||VT)||lE(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ba(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ba(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ba(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ba(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ba(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ba(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ba(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ba(p,3)).replace(/{S}/g,p+"")}function hE(r,e,t,a,n){var i=null;if(U(t))i=t;else if(Q(t))i=t(r.value,e,{level:r.level});else{var o=V({},ls);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return ch(new Date(r.value),i,n,a)}function FT(r,e){var t=Hr(r),a=t[Ki(e)]()+1,n=t[ph(e)](),i=t[Gs(e)](),o=t[dh(e)](),s=t[gh(e)](),l=t[yh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,p=c&&a===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function w0(r,e,t){var a=Ct(r)?Hr(r):r;switch(e=e||FT(r,t),e){case"year":return a[Dg(t)]();case"half-year":return a[Ki(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ki(t)]()+1)/4);case"month":return a[Ki(t)]();case"day":return a[ph(t)]();case"half-day":return a[Gs(t)]()/24;case"hour":return a[Gs(t)]();case"minute":return a[dh(t)]();case"second":return a[gh(t)]();case"millisecond":return a[yh(t)]()}}function Dg(r){return r?"getUTCFullYear":"getFullYear"}function Ki(r){return r?"getUTCMonth":"getMonth"}function ph(r){return r?"getUTCDate":"getDate"}function Gs(r){return r?"getUTCHours":"getHours"}function dh(r){return r?"getUTCMinutes":"getMinutes"}function gh(r){return r?"getUTCSeconds":"getSeconds"}function yh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function vE(r){return r?"setUTCFullYear":"setFullYear"}function HT(r){return r?"setUTCMonth":"setMonth"}function WT(r){return r?"setUTCDate":"setDate"}function UT(r){return r?"setUTCHours":"setHours"}function YT(r){return r?"setUTCMinutes":"setMinutes"}function XT(r){return r?"setUTCSeconds":"setSeconds"}function $T(r){return r?"setUTCMilliseconds":"setMilliseconds"}function ZT(r){if(!Ww(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qT(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var _o=tg;function Wp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&dr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Hr(r):r;if(isNaN(+l)){if(s)return"-"}else return ch(l,a,t)}if(e==="ordinal")return sp(r)?n(r):Ct(r)&&i(r)?r+"":"-";var u=la(r);return i(u)?ZT(u):sp(r)?n(r):typeof r=="boolean"?r+"":"-"}var T0=["a","b","c","d","e","f","g"],Tv=function(r,e){return"{"+r+(e??"")+"}"};function KT(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function ii(r,e){return e=e||"transparent",U(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function yf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Uu=C,QT=["left","right","top","bottom","width","height"],Fn=[["width","left","right"],["height","top","bottom"]];function Mg(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=i+d,c>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=p+t)})}var Jn=Mg;ot(Mg,"vertical");ot(Mg,"horizontal");function dE(r,e,t){var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=_o(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Jt(r,e,t){t=_o(t||0);var a=e.width,n=e.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),f=W(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ht(i+t[3],o+t[0],u,f);return p.margin=t,p}function mh(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=Jt(j({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function gE(r,e){return r[Fn[e][0]]!=null||r[Fn[e][1]]!=null&&r[Fn[e][2]]!=null}function Fs(r){var e=r.layoutMode||r.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function Ka(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Fn[0],0),i=o(Fn[1],1);u(Fn[0],r,n),u(Fn[1],r,i);function o(f,h){var v={},c=0,p={},d=0,g=2;if(Uu(f,function(_){p[_]=r[_]}),Uu(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=ft(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return sl(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(It);jw(_t,It);rh(_t);aE(_t);nE(_t,mE);function mE(r){var e=[];return C(_t.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return kr(t).main}),r!=="dataset"&&vt(e,"dataset")<=0&&e.unshift("dataset"),e}var jT="";typeof navigator<"u"&&(jT=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)";const _E={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:jT.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var tA=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sr="original",ye="arrayRows",lr="objectRows",Ur="keyedColumns",Wa="typedArray",eA="unknown",Vr="column",xo="row",le={Must:1,Might:2,Not:3},rA=wt();function SE(r){rA(r).datasetMap=Z()}function aA(r,e,t){var a={},n=Lg(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=rA(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),C(r,function(d,g){var y=tt(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function oA(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:AE(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function CE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var $l,No,C0,D0="\0_ec_inner",DE=1,Rg=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new It(i),this._locale=new It(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=L0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,L0(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?C0(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;SE(this),C(t,function(h,v){h!=null&&(_t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?et(h):ft(n[v],h,!0))}),u&&u.each(function(h,v){_t.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),f,this);function f(h){var v=wE(this,h,Rt(t[h])),c=i.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=Zw(c,v,p);ZL(d,h,_t),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;C(d,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",A=_t.getClass(h,S.keyInfo.subType,!T);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var D=V({componentIndex:b},S.keyInfo);x=new A(w,this,this,D),V(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&$l(this)}this._seriesIndices||$l(this)},e.prototype.getOption=function(){var t=et(this.option);return C(t,function(a,n){if(_t.hasClass(n)){for(var i=Rt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ns(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[D0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function NE(r,e){return r.join(",")===e.join(",")}var ur=C,Hs=tt,P0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=P0.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=BL(v,m),d=m;break}}}return a[0]=v,a[1]=d,a})})}var _h=function(){function r(e){this.data=e.data||(e.sourceFormat===Ur?{}:[]),this.sourceFormat=e.sourceFormat||eA,this.seriesLayoutBy=e.seriesLayoutBy||Vr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};V0=(e={},e[ye+"_"+Vr]={pure:!0,appendData:i},e[ye+"_"+xo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[lr]={pure:!0,appendData:i},e[Ur]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[sr]={appendData:i},e[Wa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return eo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function H0(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function As(r){return new jE(r)}var jE=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},ek=function(){function r(e,t){if(!Ct(t)){var a="";Mt(a)}this._opFn=yA[e],this._rvalFloat=la(t)}return r.prototype.evaluate=function(e){return Ct(e)?this._opFn(e,this._rvalFloat):this._opFn(la(e),this._rvalFloat)},r}(),mA=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ct(e)?e:la(e),n=Ct(t)?t:la(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),rk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=la(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=la(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function ak(r,e){return r==="eq"||r==="ne"?new rk(r==="eq",e):$(yA,r)?new ek(r,e):null}var nk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ua(e,t)},r}();function ik(r,e){var t=new nk,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Vr&&Mt(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";$(l,y)&&Mt(_),l[y]=m}});else for(var f=0;f65535?ck:pk}function Ti(){return[1/0,-1/0]}function dk(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Y0(r,e,t,a,n){var i=xA[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;ye[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Vo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}M>0&&Mf-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Ua(t[i],this._dimensions[i])}Iv={arrayRows:e,objectRows:function(t,a,n,i){return Ua(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ua(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),bA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Zl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Wa:sr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=it(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=it(h.sourceHeader,v.sourceHeader),d=it(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;n=g?[Xp(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Xp(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&$0(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&$0(h),s.push(f),l.push(u._getVersionSign())}),a?o=hk(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[XE(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return C(r.blocks,function(n){var i=CA(n);i>=e&&(e=i+ +(a&&(!i||Zp(n)&&!n.noHeader)))}),e}return 0}function mk(r,e,t,a){var n=e.noHeader,i=Sk(CA(e)),o=[],s=e.blocks||[];Ae(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if($(u,l)){var f=new mA(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(p,d){var g=e.valueFormatter,y=AA(p)(g?V(V({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):qp(o.join(""),n?t:i.html);if(n)return h;var v=Wp(e.header,"ordinal",r.useUTC),c=TA(a,r.renderMode).nameStyle;return r.renderMode==="richText"?DA(r,v,c)+i.richText+h:qp('
'+Ee(v)+"
"+h,t)}function _k(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Wp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Wp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=TA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":DA(r,v,m))+(o?"":wk(r,p,d,g,_)):qp((s?"":h)+(i?"":xk(v,!s,m))+(o?"":bk(p,d,g,_)),t)}}function Z0(r,e,t,a,n,i){if(r){var o=AA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Sk(r){return{html:gk[r],richText:yk[r]}}function qp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function xk(r,e,t){var a=e?"margin-left:2px":"";return''+Ee(r)+""}function bk(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Ee(o)}).join("  ")+""}function DA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function wk(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function MA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return ii(a)}function IA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Lv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Uw()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=pE({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?C(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function LA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=MA(e,t),f,h,v,c;if(o>1||l&&!o){var p=Tk(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=eo(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=lg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ne("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ne("nameValue",{markerType:"item",markerColor:u,name:_,noName:!dr(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function Tk(r,e,t,a,n){var i=e.getData(),o=zr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?C(a,function(h){f(eo(i,t,h),h)}):C(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ne("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var wa=wt();function ql(r,e){return r.getName(e)||r.getId(e)}var Yu="__universalTransitionEnabled",Bt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=As({count:Ck,reset:Dk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=wa(this).sourceManager=new bA(this);i.prepareSource();var o=this.getInitialData(t,n);K0(o,this),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,q0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Fs(this),i=n?So(t):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),ft(t,a.getTheme().get(this.subType)),ft(t,this.getDefaultOption()),ei(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ka(t,i,n)},e.prototype.mergeOption=function(t,a){t=ft(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Fs(this);n&&Ka(this.option,t,n);var i=wa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);K0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,wa(this).dataBeforeProcessed=o,q0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Be(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Pg.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[ql(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Yu])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return _t.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(_t);Kt(Bt,Sh);Kt(Bt,Pg);jw(Bt,_t);function q0(r){var e=r.name;lg(r)||(r.name=Ak(r)||e)}function Ak(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return C(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function Ck(r){return r.model.getRawData().count()}function Dk(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),Mk}function Mk(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function K0(r,e){C(tf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(Ik,e))})}function Ik(r,e){var t=Kp(r);return t&&t.setOutputEnd((e||this).count()),e}function Kp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Gt=function(){function r(){this.group=new at,this.uid=mo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();fg(Gt);rh(Gt);function bo(){var r=wt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var PA=wt(),Lk=bo(),Et=function(){function r(){this.group=new at,this.uid=mo("viewChart"),this.renderTask=As({plan:Pk,reset:Rk}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&J0(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&J0(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){tn(this.group,e)},r.markUpdateMethod=function(e,t){PA(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function Q0(r,e,t){r&&Vs(r)&&(e==="emphasis"?ua:fa)(r,t)}function J0(r,e,t){var a=ri(r,e),n=e&&e.highlightKey!=null?fR(e.highlightKey):null;a!=null?C(Rt(a),function(i){Q0(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){Q0(i,t,n)})}fg(Et);rh(Et);function Pk(r){return Lk(r.model)}function Rk(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&PA(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),Ek[l]}var Ek={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mf="\0__throttleOriginMethod",j0="\0__throttleRate",t_="\0__throttleType";function Bg(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function wo(r,e,t,a){var n=r[e];if(n){var i=n[mf]||n,o=n[t_],s=n[j0];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Bg(i,t,a==="debounce"),n[mf]=i,n[t_]=a,n[j0]=t}return n}}function Ws(r,e){var t=r[e];t&&t[mf]&&(t.clear&&t.clear(),r[e]=t[mf])}var e_=wt(),r_={itemStyle:ai(BT,!0),lineStyle:ai(NT,!0)},kk={lineStyle:"stroke",itemStyle:"fill"};function RA(r,e){var t=r.visualStyleMapper||r_[e];return t||(console.warn("Unknown style type '"+e+"'."),r_.itemStyle)}function EA(r,e){var t=r.visualDrawType||kk[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ok={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=RA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=EA(r,a),u=o[l],f=Q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=V({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},zo=new It,Nk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=RA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){zo.option=l[a];var u=n(zo),f=o.ensureUniqueItemVisual(s,"style");V(f,u),zo.option.decal&&(o.setItemVisual(s,"decal",zo.option.decal),zo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Bk={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),e_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=e_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=EA(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Kl=Math.PI;function Vk(r,e){e=e||{},j(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new at,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new At({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new uh({shape:{startAngle:-Kl/2,endAngle:-Kl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Kl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kl*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var kA=function(){function r(e,t,a,n){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=Z();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;C(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Ae(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||As({plan:Wk,reset:Uk,count:Xk}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||As({reset:zk});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Ae(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,C(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,As({reset:Gk,onDirty:Hk})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:$k(e)}),e.uid=mo("stageHandler"),t&&(e.visualType=t),e},r}();function zk(r){r.overallReset(r.ecModel,r.api,r.payload)}function Gk(r){return r.overallProgress&&Fk}function Fk(){this.agent.dirty(),this.getDownstream().dirty()}function Hk(){this.agent&&this.agent.dirty()}function Wk(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Uk(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return OA(a)}):Yk}var Yk=OA(0);function OA(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Qp=["symbol","symbolSize","symbolRotate","symbolOffset"],o_=Qp.concat(["symbolKeepAspect"]),Kk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Wn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Jp(r,e,t){for(var a=e.type==="radial"?hO(r,e,t):fO(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ct(r)?[r]:z(r)?r:null}function zg(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&cO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var pO=new Wr(!0);function xf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function s_(r){return typeof r=="string"&&r!=="none"}function bf(r){var e=r.fill;return e!=null&&e!=="none"}function l_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function u_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function jp(r,e,t){var a=hg(e.image,e.__image,t);if(ah(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Ru),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function dO(r,e,t,a){var n,i=xf(t),o=bf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||pO,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?Jp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Jp(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?jp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?jp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,A;r.setLineDash&&t.lineDash&&(n=zg(e),T=n[0],A=n[1]);var D=!0;(u||h&Bi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),a||(t.strokeFirst?(i&&u_(r,t),o&&l_(r,t)):(o&&l_(r,t),i&&u_(r,t))),T&&r.setLineDash([])}function gO(r,e,t){var a=e.__image=hg(t.image,e.__image,e,e.onload);if(!(!a||!ah(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function yO(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Xa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=zg(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(xf(t)&&r.strokeText(n,t.x,t.y),bf(t)&&r.fillText(n,t.x,t.y)):(bf(t)&&r.fillText(n,t.x,t.y),xf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var f_=["shadowBlur","shadowOffsetX","shadowOffsetY"],h_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FA(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ne(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Zn.opacity:o}(a||e.blend!==t.blend)&&(i||(Ne(r,n),i=!0),r.globalCompositeOperation=e.blend||Zn.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[pe]){if(this._disposed){this.id;return}var i,o,s;if(tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[pe]=!0,!this._model||a){var l=new RE(this._api),u=this._theme,f=this._model=new Rg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},ed);var h={seriesTransition:s,optionChanged:!0};if(n)this[Re]={silent:i,updateParams:h},this[pe]=!1,this.getZr().wakeUp();else{try{Ci(this),Ta.update.call(this,null,h)}catch(v){throw this[Re]=null,this[pe]=!1,v}this._ssr||this._zr.flush(),this[Re]=null,this[pe]=!1,Go.call(this,i),Fo.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||mt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(mt.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return C(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;C(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(C_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();C(Ds,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=$a.createCanvas(),y=Pm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return C(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),C(v,function(_){var S=new se({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Ov(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Ov(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Ss(n,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Ss(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Vg(s,l,a):dl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(HO,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Hn(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=V({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),C(Cs,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),C(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),Jk(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Kw(this.getDom(),Hg,"");var a=this,n=a._api,i=a._model;C(a._componentsViews,function(o){o.dispose(i,n)}),C(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ds[a.id]},e.prototype.resize=function(t){if(!this[pe]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Re]&&(i==null&&(i=this[Re].silent),n=!0,this[Re]=null),this[pe]=!0;try{n&&Ci(this),Ta.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[pe]=!1,o}this[pe]=!1,Go.call(this,i),Fo.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!rd[t]){var n=rd[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=Cs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!wf[t.type]&&this._model){if(this[pe]){this._pendingActions.push(t);return}var n=a.silent;Bv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&mt.browser.weChat&&this._throttledZrFlush(),Go.call(this,n),Fo.call(this,n)}},e.prototype.updateLabelLayout=function(){cr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ci=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),kv(h,!0),kv(h,!1),v.plan()},kv=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!mt.node&&!mt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if($i(y))return;if(y instanceof yt&&hR(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}T_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){ua(p,d),Ue(h)},c.prototype.leaveEmphasis=function(p,d){fa(p,d),Ue(h)},c.prototype.enterBlur=function(p){cT(p),Ue(h)},c.prototype.leaveBlur=function(p){gg(p),Ue(h)},c.prototype.enterSelect=function(p){pT(p),Ue(h)},c.prototype.leaveSelect=function(p){dT(p),Ue(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(sA))(h)},rC=function(h){function v(c,p){for(var d=0;d=0)){D_.push(t);var i=kA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function lC(r,e){rd[r]=e}function qO(r,e,t){var a=DO("registerMap");a&&a(r,e,t)}var KO=fk;vi(Gg,Ok);vi(bh,Nk);vi(bh,Bk);vi(Gg,Kk);vi(bh,Qk);vi(KA,AO);oC(uA);sC(LO,UE);lC("default",Vk);Yr({type:qn,event:qn,update:qn},Xt);Yr({type:Gu,event:Gu,update:Gu},Xt);Yr({type:xs,event:xs,update:xs},Xt);Yr({type:Fu,event:Fu,update:Fu},Xt);Yr({type:bs,event:bs,update:bs},Xt);iC("light",Zk);iC("dark",VA);var M_=[],QO={registerPreprocessor:oC,registerProcessor:sC,registerPostInit:YO,registerPostUpdate:XO,registerUpdateLifecycle:Wg,registerAction:Yr,registerCoordinateSystem:$O,registerLayout:ZO,registerVisual:vi,registerTransform:KO,registerLoading:lC,registerMap:qO,registerImpl:CO,PRIORITY:zO,ComponentModel:_t,ComponentView:Gt,SeriesModel:Bt,ChartView:Et,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Gt.registerClass(r)},registerSeriesModel:function(r){Bt.registerClass(r)},registerChartView:function(r){Et.registerClass(r)},registerSubTypeDefaulter:function(r,e){_t.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){PL(r,e)}};function gt(r){if(z(r)){C(r,function(e){gt(e)});return}vt(M_,r)>=0||(M_.push(r),Q(r)&&(r={install:r}),r.install(QO))}function Ho(r){return r==null?0:r.length||1}function I_(r){return r}var ha=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||I_,this._newKeyGetter=n||I_,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Wo=tt,Aa=G,aN=typeof Int32Array>"u"?Array:Int32Array,nN="e\0\0",L_=-1,iN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],oN=["_approximateExtent"],P_,ru,Uo,Yo,Gv,au,Fv,we=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;fC(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===sr;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Wo(i)&&(i=V({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Wo(t)?V(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Wo(e)?V(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;kp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Aa(this.dimensions,this._getDimInfo,this),this.hostModel)),Gv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(jd(arguments)))})},r.internalField=function(){P_=function(e){var t=e._invertedIndicesMap;C(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new aN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();function gl(r,e){Eg(r)||(r=kg(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=lN(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cC(o),l=a===r.dimensionsDefine,u=l?vC(r):hC(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=Z(f),v=new SA(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function lN(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return C(e,function(i){var o;tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function uN(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var fN=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function hN(r){var e=r.get("coordinateSystem"),t=new fN(e),a=vN[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var vN={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Zt).models[0],i=r.getReferringComponents("yAxis",Zt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Di(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Di(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Zt).models[0];e.coordSysDims=["single"],t.set("single",n),Di(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Zt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Di(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Di(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Di(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Di(r){return r.get("type")==="category"}function cN(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;pN(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(C(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;C(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function pN(r){return!fC(r.schema)}function Qa(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function pC(r,e){return Qa(r,e)?r.getCalculationInfo("stackResultDimension"):e}function dN(r,e){var t=r.get("coordinateSystem"),a=pl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Af(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function gN(r,e,t){var a,n;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function ya(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=kg(r)):(n=a.getSource(),i=n.sourceFormat===sr);var o=hN(e),s=dN(e,o),l=t.useEncodeDefaulter,u=Q(l)?l:l?ot(aA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=gl(n,f),v=gN(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=cN(e,{schema:h,store:c}),d=new we(h,e);d.setCalculationInfo(p);var g=v!=null&&yN(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d}function yN(r){if(r.sourceFormat===sr){var e=mN(r.data||[]);return!z(vo(e))}}function mN(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();rh(Xr);var _N=0,ad=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++_N}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,SN);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function SN(r){return tt(r)&&r.value!=null?r.value:r+""}function nd(r){return r.type==="interval"||r.type==="log"}function xN(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=Hw(i/e);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=dC(o),l=n.niceTickExtent=[Ut(Math.ceil(r[0]/o)*o,s),Ut(Math.floor(r[1]/o)*o,s)];return bN(l,r),n}function Hv(r){var e=Math.pow(10,sg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ut(t*e)}function dC(r){return Er(r)+2}function R_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function bN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),R_(r,0,e),R_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function wh(r,e){return r>=e[0]&&r<=e[1]}function Th(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Ah(r,e){return r*(e[1]-e[0])+e[0]}var Ch=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ad({})),z(n)&&(n=new ad({categories:G(n,function(i){return tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),wh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Th(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ah(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Xr);Xr.registerClass(Ch);var wn=Ut,va=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return wh(t,this._extent)},e.prototype.normalize=function(t){return Th(t,this._extent)},e.prototype.scale=function(t){return Ah(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=dC(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:wn(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function mC(r){var e=AN(r),t=[];return C(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=W(a.get("barWidth"),s),d=W(a.get("barMaxWidth"),s),g=W(a.get("barMinWidth")||(wC(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Xg(i),stackId:Yg(a)})}),_C(t)}function _C(r){var e={};C(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),f=W(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),C(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;C(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;C(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function CN(r,e,t){if(r&&e){var a=r[Xg(e)];return a!=null&&t!=null?a[Yg(t)]:a}}function SC(r,e){var t=yC(r,e),a=mC(t);C(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Yg(n),u=a[Xg(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function xC(r){return{seriesType:r,plan:bo(),reset:function(e){if(bC(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=Qa(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=DN(n,i),p=wC(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&Or(b*3),w=p&&l&&Or(b*3),T=p&&Or(b),A=a.master.getRect(),D=v?A.width:A.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),E=c,N=void 0;h&&(N=+P-I.get(o,M));var O=void 0,B=void 0,F=void 0,H=void 0;if(v){var Y=a.dataToPoint([P,R]);if(h){var K=a.dataToPoint([N,R]);E=K[0]}O=E,B=Y[1]+m,F=Y[0]-E,H=y,Math.abs(F)0?t:1:t))}var MN=function(r,e,t,a){for(;t>>1;r[n][1]n&&(this._approxInterval=n);var s=nu.length,l=Math.min(MN(nu,this._approxInterval,0,s),s-1);this._interval=nu[l][1],this._minLevelUnit=nu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Ct(t)?t:+Hr(t)},e.prototype.contain=function(t){return wh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Th(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ah(t,this._extent)},e.type="time",e}(va),nu=[["second",Ag],["minute",Cg],["hour",Ts],["quarter-day",Ts*6],["half-day",Ts*12],["day",rr*1.2],["half-week",rr*3.5],["week",rr*7],["month",rr*31],["quarter",rr*95],["half-year",x0/2],["year",x0]];function IN(r,e,t,a){var n=Hr(e),i=Hr(t),o=function(p){return w0(n,p,a)===w0(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function LN(r,e){return r/=rr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function PN(r){var e=30*rr;return r/=e,r>6?6:r>3?3:r>2?2:1}function RN(r){return r/=Ts,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function E_(r,e){return r/=e?Cg:Ag,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function EN(r){return Hw(r)}function kN(r,e,t){var a=new Date(r);switch(qi(e)){case"year":case"month":a[HT(t)](0);case"day":a[WT(t)](1);case"hour":a[UT(t)](0);case"minute":a[YT(t)](0);case"second":a[XT(t)](0),a[$T(t)](0)}return a.getTime()}function ON(r,e,t,a){var n=1e4,i=GT,o=0;function s(D,M,I,L,P,R,E){for(var N=new Date(M),O=M,B=N[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Pt(G(u,function(D){return Pt(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1,c=0;c0;)i*=10;var s=[Ut(VN(a[0]/i)*i),Ut(BN(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ms.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=fr(t)/fr(this.base),wh(t,this._extent)},e.prototype.normalize=function(t){return t=fr(t)/fr(this.base),Th(t,this._extent)},e.prototype.scale=function(t){return t=Ah(t,this._extent),iu(this.base,t)},e.type="log",e}(Xr),TC=Zg.prototype;TC.getMinorTicks=Ms.getMinorTicks;TC.getLabel=Ms.getLabel;function ou(r,e){return NN(r,Er(e))}Xr.registerClass(Zg);var zN=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[FN[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=GN[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),GN={min:"_determinedMin",max:"_determinedMax"},FN={min:"_dataMin",max:"_dataMax"};function AC(r,e,t){var a=r.rawExtentInfo;return a||(a=new zN(r,e,t),r.rawExtentInfo=a,a)}function su(r,e){return e==null?null:Ps(e)?NaN:r.parse(e)}function CC(r,e){var t=r.type,a=AC(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=yC("bar",o),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=mC(s),f=HN(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function HN(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=CN(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;C(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function ao(r,e){var t=e,a=CC(r,t),n=a.extent,i=t.get("splitNumber");r instanceof Zg&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Dh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ch({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $g({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Xr.getClass(e)||va)}}function WN(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Ao(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):U(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(e):Q(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(qg(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function qg(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function UN(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof Ch?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ao(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var yl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),$N=1e-8;function O_(r,e){return Math.abs(r-e)<$N}function kn(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return qN(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?N_(s.exterior,n,i,t):C(s.points,function(l){N_(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function JN(r,e){return r=QN(r),G(Pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new B_(o[0],o.slice(1)));break;case"MultiPolygon":C(n.coordinates,function(l){l[0]&&i.push(new B_(l[0],l.slice(1)))});break;case"LineString":i.push(new V_([n.coordinates]));break;case"MultiLineString":i.push(new V_(n.coordinates))}var s=new IC(a[e||"name"],i,a.cp);return s.properties=a,s})}var Xs=wt();function PC(r,e){var t=G(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function jN(r){var e=r.getLabelModel().get("customValues");if(e){var t=Ao(r);return{labels:PC(r,e).map(function(a){var n={value:a};return{formattedLabel:t(n),rawLabel:r.scale.getLabel(n),tickValue:a}})}}return r.type==="category"?eB(r):aB(r)}function tB(r,e){var t=r.getTickModel().get("customValues");return t?{ticks:PC(r,t)}:r.type==="category"?rB(r,e):{ticks:G(r.scale.getTicks(),function(a){return a.value})}}function eB(r){var e=r.getLabelModel(),t=RC(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function RC(r,e){var t=EC(r,"labels"),a=Kg(e),n=kC(t,a);if(n)return n;var i,o;return Q(a)?i=BC(r,a):(o=a==="auto"?nB(r):a,i=NC(r,o)),OC(t,a,{labels:i,labelCategoryInterval:o})}function rB(r,e){var t=EC(r,"ticks"),a=Kg(e),n=kC(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=BC(r,a,!0);else if(a==="auto"){var s=RC(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=NC(r,o,!0);return OC(t,a,{ticks:i,tickCategoryInterval:o})}function aB(r){var e=r.scale.getTicks(),t=Ao(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function EC(r,e){return Xs(r)[e]||(Xs(r)[e]=[])}function kC(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var p=0,d=0,g=ol(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Xs(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function oB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function NC(r,e,t){var a=Ao(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=DC(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);c&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function BC(r,e,t){var a=r.scale,n=Ao(r),i=[];return C(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var z_=[0,1],br=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Gw(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),G_(a,n.count())),Lt(e,z_,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),G_(a,n.count()));var i=Lt(e,a,z_,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=tB(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return sB(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return jN(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return iB(this)},r}();function G_(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function sB(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;C(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,p){return c=Ut(c),p=Ut(p),h?c>p:cn&&(n+=Xo);var c=Math.atan2(s,o);if(c<0&&(c+=Xo),c>=a&&c<=n||c+Xo>=a&&c+Xo<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Df(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function VC(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var pr=[];function hB(r,e,t){var a=VC(e.x,e.y,e.width,e.height,r.x,r.y,pr);return t.set(pr[0],pr[1]),a}function vB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,gr.fromArray(r[0]),Ot.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Nr,gr,Ot),ut.sub(Rr,Yt,Ot);var t=Nr.len(),a=Rr.len();if(!(t<.001||a<.001)){Nr.scale(1/t),Rr.scale(1/a);var n=Nr.dot(Rr),i=Math.cos(e);if(i1&&ut.copy(be,Yt),be.toArray(r[1])}}}}function cB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,gr.fromArray(r[0]),Ot.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Nr,Ot,gr),ut.sub(Rr,Yt,Ot);var a=Nr.len(),n=Rr.len();if(!(a<.001||n<.001)){Nr.scale(1/a),Rr.scale(1/n);var i=Nr.dot(e),o=Math.cos(t);if(i=l)ut.copy(be,Yt);else{be.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-f));var h=Yt.x!==Ot.x?(be.x-Ot.x)/(Yt.x-Ot.x):(be.y-Ot.y)/(Yt.y-Ot.y);if(isNaN(h))return;h<0?ut.copy(be,Ot):h>1&&ut.copy(be,Yt)}be.toArray(r[1])}}}}function Yv(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function pB(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Ea(a[0],a[1]),i=Ea(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=ku([],a[1],a[0],o/n),l=ku([],a[1],a[2],o/i),u=ku([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&b(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=d.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function S(T,A,D){if(T<0){var M=Math.min(A,-T);if(M>0){b(M*D,0,o);var I=M+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function b(T,A,D){T!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var E=D[I-1]*R;b(-E,I,o)}}}function w(T){var A=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M0?b(D,0,M+1):b(-D,o-M-1,o),T-=D,T<=0)return}return u}function dB(r,e,t,a){return FC(r,"x","width",e,t,a)}function HC(r,e,t,a){return FC(r,"y","height",e,t,a)}function WC(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ht(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),vt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Dt(a,u,t,l)}else if(a.attr(u),!yo(a).valueAnimation){var h=it(a.style.opacity,1);a.style.opacity=0,Vt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};lu(c,u,uu),lu(c,a.states.select,uu)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};lu(p,u,uu),lu(p,a.states.emphasis,uu)}OT(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=mB(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),Dt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Vt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}(),$v=wt();function SB(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=$v(t).labelManager;n||(n=$v(t).labelManager=new _B),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=$v(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var Zv=Math.sin,qv=Math.cos,UC=Math.PI,An=Math.PI*2,xB=180/UC,YC=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Va(h-An)||(f?u>=An:-u>=An),c=u>0?u%An:u%An+An,p=!1;v?p=!0:Va(h)?p=!1:p=c>=UC==!!f;var d=e+a*qv(o),g=t+n*Zv(o);this._start&&this._add("M",d,g);var y=Math.round(i*xB);if(v){var m=1/this._p,_=(f?1:-1)*(An-m);this._add("A",a,n,y,1,+f,e+a*qv(o+_),t+n*Zv(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*qv(s),b=t+n*Zv(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function LB(r){return""}function ty(r,e){e=e||{};var t=e.newline?` +`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return IB(o,s)+(o!=="style"?Ee(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+LB(o)}return a(r)}function PB(r,e,t){t=t||{};var a=t.newline?` +`:"",n=" {"+a,i=a+"}",o=G(St(r),function(l){return l+n+G(St(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(St(e),function(l){return"@keyframes "+l+n+G(St(e[l]),function(u){return u+n+G(St(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function sd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function U_(r,e,t,a){return ee("svg","root",{width:r,height:e,xmlns:XC,"xmlns:xlink":$C,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var RB=0;function qC(){return RB++}var Y_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Mn="transform-origin";function EB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new YC;return n.reset(Pw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function kB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Mn]=t+"px "+a+"px")}var OB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KC(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function NB(r,e,t){var a=r.shape.paths,n={},i,o;if(C(a,function(l){var u=sd(t.zrId);u.animation=!0,Mh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=St(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=KC(n,t);return i.replace(o,s)}}function X_(r){return U(r)?Y_[r]?"cubic-bezier("+Y_[r]+")":ng(r)?r:"":""}function Mh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof _g){var s=NB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var pt=KC(w,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+qC();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function BB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};$_(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=_p(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),$_(a,e,t)}}function $_(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+qC(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var $s=Math.round;function QC(r){return r&&U(r.src)}function JC(r){return r&&Q(r.toDataURL)}function ey(r,e,t,a){CB(function(n,i){var o=n==="fill"||n==="stroke";o&&Lw(i)?tD(e,r,n,a):o&&ig(i)?eD(t,r,n,a):o&&i==="none"?r[n]="transparent":r[n]=i},e,t,!1),UB(t,r,a)}function ry(r,e){var t=RL(e);t&&(t.each(function(a,n){a!=null&&(r[(W_+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[W_+"silent"]="true"))}function Z_(r){return Va(r[0]-1)&&Va(r[1])&&Va(r[2])&&Va(r[3]-1)}function VB(r){return Va(r[4])&&Va(r[5])}function ay(r,e,t){if(e&&!(VB(e)&&Z_(e))){var a=1e4;r.transform=Z_(e)?"translate("+$s(e[4]*a)/a+" "+$s(e[5]*a)/a+")":tL(e)}}function q_(r,e,t){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ae(v,g),Ae(c,g)}else if(v==null||c==null){var y=function(D,M){if(D){var I=D.elm,L=v||M.width,P=c||M.height;D.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=hg(p,null,r,function(D){l||y(x,D),y(h,D)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=ee("image","img",{href:p,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=et(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=Rw(n);b&&(o.patternTransform=b);var x=ee("pattern","",o,[h]),w=ty(x),T=a.patternCache,A=T[w];A||(A=a.zrId+"-p"+a.patternIdx++,T[w]=A,o.id=A,x=a.defs[A]=ee("pattern",A,o,[h])),e[t]=jf(A)}}function YB(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=ee("clipPath",i,o,[jC(r,t)])}e["clip-path"]=jf(i)}function J_(r){return document.createTextNode(r)}function On(r,e,t){r.insertBefore(e,t)}function j_(r,e){r.removeChild(e)}function t1(r,e){r.appendChild(e)}function rD(r){return r.parentNode}function aD(r){return r.nextSibling}function Kv(r,e){r.textContent=e}var e1=58,XB=120,$B=ee("","");function ld(r){return r===void 0}function Lr(r){return r!==void 0}function ZB(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function fs(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function Zs(r){var e,t=r.children,a=r.tag;if(Lr(a)){var n=r.elm=ZC(a);if(ny($B,r),z(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,nD(r,p,t,n,l)):If(r,e,a,i))}function zi(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(ny(r,e),ld(e.text)?Lr(a)&&Lr(n)?a!==n&&qB(t,a,n):Lr(n)?(Lr(r.text)&&Kv(t,""),nD(t,null,n,0,n.length-1)):Lr(a)?If(t,a,0,a.length-1):Lr(r.text)&&Kv(t,""):r.text!==e.text&&(Lr(a)&&If(t,a,0,a.length-1),Kv(t,e.text)))}function KB(r,e){if(fs(r,e))zi(r,e);else{var t=r.elm,a=rD(t);Zs(e),a!==null&&(On(a,e.elm,aD(t)),If(a,[r],0,0))}return e}var QB=0,JB=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=r1(),this.configLayer=r1(),this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+QB++,this._oldVNode=U_(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ZC("svg");ny(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",KB(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return Q_(e,sd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=sd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],s=this._bgVNode=jB(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ee("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(St(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(ee("defs","defs",{},u)),e.animation){var f=PB(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=ee("style","stl",{},[],f);o.push(h)}}return U_(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ty(this.renderToVNode({animation:it(e.cssAnimation,!0),emphasis:it(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:it(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?fu:0),this._needsManuallyCompositing),f.__builtin__||Qd("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&ze&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ft(a[e],t,!0):a[e]=t;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Bt);function no(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=eo(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var ml=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=qt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=sV,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ua(this.childAt(0))},e.prototype.downplay=function(){fa(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Dt(v,c,s,a),Sr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Vt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ae(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=hi(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof se){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;he(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return M?t.getName(R):no(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ht(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&qa(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();qa(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return To(t.getItemVisual(a,"symbolSize"))},e}(at);function sV(r,e){this.parent.drift(r,e)}function Jv(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function i1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function o1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ae(e),cursorStyle:e.get("cursor")}}var _l=function(){function r(e){this.group=new at,this._SymbolCtor=e||ml}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=i1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=o1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Jv(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(!Jv(e,p,h,t)){a.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Dt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=o1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=i1(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function sD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function uV(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function fV(r,e,t,a,n,i,o,s){for(var l=uV(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=oD(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||d<0)break;if(jn(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g=a||jn(x,w))c=y,p=m;else{D=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(R);var F=D>0?1:-1;c=y-F*O*o,p=m,I=y+F*B*o,L=m}else if(s==="y"){O=Math.abs(E),B=Math.abs(N);var H=M>0?1:-1;c=y,p=m-H*O*o,I=y,L=m+H*B*o}else O=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),A=B/(B+O),c=y-D*o*(1-A),p=m-M*o*(1-A),I=y+D*o*A,L=m+M*o*A,I=Ca(I,Da(x,y)),L=Ca(L,Da(w,m)),I=Da(I,Ca(x,y)),L=Da(L,Ca(w,m)),D=I-y,M=L-m,c=y-D*O/B,p=m-M*O/B,c=Ca(c,Da(u,y)),p=Ca(p,Da(f,m)),c=Da(c,Ca(u,y)),p=Da(p,Ca(f,m)),D=y-c,M=m-p,I=y+D*B/O,L=m+M*B/O}r.bezierCurveTo(h,v,c,p,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var lD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),hV=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&jn(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?af(s,c,d,y,t,f):af(l,p,g,m,t,f);if(b>0)for(var x=0;x=0){var S=u?jt(l,p,g,m,w):jt(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(yt),vV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(lD),uD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new vV},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&jn(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function dV(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=pV(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";C(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new hl(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}function gV(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&yV(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function yV(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function mV(r,e){return isNaN(r)||isNaN(e)}function _V(r){for(var e=r.length/2;e>0&&mV(r[e*2-2],r[e*2-1]);e--);return e-1}function h1(r,e){return[r[e*2],r[e*2+1]]}function SV(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vD(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=t.seriesIndex,Ht(d,N,O,B);var H=f1(t.get("smooth")),Y=t.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:Y,connectNulls:T}),g){var K=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),K&&(J=f1(K.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:J,smoothMonotone:Y,connectNulls:T}),fe(g,t,"areaStyle"),nt(g).seriesIndex=t.seriesIndex,Ht(g,N,O,B)}var ct=function(xt){i._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=ct)}),this._polyline.onHoverStateChange=ct,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){nt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new ml(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=ri(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;hf(this._polyline,t),a&&hf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new hV({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new uD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=Q(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=Q(h)?h(p):f*w+v,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(vD(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new At({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=_V(l);f>=0&&(he(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?iD(o,c):no(o,h)},enableTextSetter:!0},xV(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=SV(h,S,w),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=h1(h,A[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=v.getRawValue(A[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=Qw(n,p,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=h1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var E=yo(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=fV(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=Ma(v.current,n,o,l),p=Ma(v.stackedOnCurrent,n,o,l),d=Ma(v.next,n,o,l),g=Ma(v.stackedOnNext,n,o,l)),u1(c,d)>3e3||f&&u1(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Dt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Dt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;te&&(e=i,t=n)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},TV=function(r){return Math.round(r.length/2)};function cD(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=wV[i]:Q(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,TV))}}}}}function AV(r){r.registerChartView(bV),r.registerSeriesModel(oV),r.registerLayout(xl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,cD("line"))}var qs=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)C(i.getAxes(),function(v,c){if(v.type==="category"&&a!=null){var p=v.getTicksCoords(),d=v.getTickModel().get("alignWithLabel"),g=o[c],y=a[c]==="x1"||a[c]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Bt);Bt.registerClass(qs);var CV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ya(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=en(qs.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(qs),DV=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Lf=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new DV},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){zs(i,t,nt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Et),v1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=tc(e.x,r.x),s=ec(e.x+e.width,n),l=tc(e.y,r.y),u=ec(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=ec(e.r,r.r),i=tc(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},c1={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new bt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Lf:De,f=new u({shape:a,z2:1});f.name="item";var h=pD(n);if(f.calculateTextPosition=MV(h,{isRoundCap:u===Lf}),i){var v=f.shape,c=n?"r":"endAngle",p={};v[c]=n?a.r0:a.startAngle,p[c]=a[c],(s?Dt:Vt)(f,{shape:p},i)}return f}};function RV(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function p1(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Dt:Vt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Dt:Vt)(t,{shape:u},f,n)}function d1(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function OV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function pD(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function y1(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Yn(a.getModel("itemStyle"),f,!0);V(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=ae(a);he(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:no(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,IV(r,g==="outside"?c:g,pD(o),a.get(["label","rotate"]))}kT(d,p,i.getRawValue(t),function(m){return iD(e,m)});var y=a.getModel(["emphasis"]);Ht(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),fe(r,a),OV(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function NV(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var BV=function(){function r(){}return r}(),m1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new BV},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function VV(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function dD(r,e,t){if(ci(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function zV(r,e,t){var a=r.type==="polar"?De:bt;return new a({shape:dD(e,t,r),silent:!0,z2:0})}function GV(r){r.registerChartView(PV),r.registerSeriesModel(CV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,cD("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var x1=Math.PI*2,pu=Math.PI/180;function gD(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yD(r,e){var t=gD(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=W(t.width,e.getWidth()),o=W(t.height,e.getHeight()),s=Math.min(i,o),l=W(n[0],s/2),u=W(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=W(a[0],i)+t.x,h=W(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function FV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=gD(a,t),s=yD(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*pu,c=a.get("endAngle"),p=a.get("padAngle")*pu;c=c==="auto"?v-x1:-c*pu;var d=a.get("minAngle")*pu,g=d+p,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,A=[v,c],D=T*p/2;vg(A,!S),v=A[0],c=A[1];var M=mD(a);M.startAngle=v,M.endAngle=c,M.clockwise=S;var I=Math.abs(c-v),L=I,P=0,R=v;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(N,O){var B;if(isNaN(N)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?B=m===0&&x?_:N*_:B=I/y,BB?(H=R+T*B/2,Y=H):(H=R+D,Y=F-D),n.setItemLayout(O,{angle:B,startAngle:H,endAngle:Y,clockwise:S,cx:l,cy:u,r0:h,r:b?Lt(N,w,[h,f]):f}),R=F}),Lt?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",p)}var d=a.getBoundingRect();i.width=d.width;var g=(a.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-h)/2}}}function rc(r){return r.position==="center"}function UV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*HV,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,A=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=W(I.get("edgeDistance"),u),N=I.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=W(B,u);var F=O.get("length2");if(F=W(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Y>0?"left":"right"}var Wt=Math.PI,Ft=0,ve=I.get("rotate");if(Ct(ve))Ft=ve*(Wt/180);else if(L==="center")Ft=0;else if(ve==="radial"||ve===!0){var $r=Y<0?-H+Wt:-H;Ft=$r}else if(ve==="tangential"&&L!=="outside"&&L!=="outer"){var Le=Math.atan2(Y,K);Le<0&&(Le=Wt*2+Le);var Dl=K>0;Dl&&(Le=Wt+Le),Ft=Le-Wt}if(i=!!Ft,A.x=J,A.y=ct,A.rotation=Ft,A.setStyle({verticalAlign:"middle"}),rt){A.setStyle({align:pt});var Nh=A.states.select;Nh&&(Nh.x+=A.x,Nh.y+=A.y)}else{var ma=A.getBoundingRect().clone();ma.applyTransform(A.getComputedTransform());var em=(A.style.margin||0)+2.1;ma.y-=em/2,ma.height+=em,t.push({label:A,labelLine:D,position:L,len:B,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Y,K),linePoints:xt,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ma,unconstrainedWidth:ma.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get("avoidLabelOverlap")&&WV(t,a,n,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(Et);function Co(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=gl(a,e).dimensions,i=new we(n,r);return i.initData(a,t),i}var wl=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),$V=wt(),ZV=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new wl(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Co(this,{coordDimensions:["value"],encodeDefaulter:ot(Ig,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=$V(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=NL(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Bt);function qV(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Ct(o)&&!isNaN(o)&&o<0)})}}}function KV(r){r.registerChartView(XV),r.registerSeriesModel(ZV),GA("pie",r.registerAction),r.registerLayout(ot(FV,"pie")),r.registerProcessor(bl("pie")),r.registerProcessor(qV("pie"))}var QV=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Bt),SD=4,JV=function(){function r(){}return r}(),jV=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new JV},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),ez=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=xl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new tz:new _l,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Et),rz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(_t),fd=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zt).models[0]},e.type="cartesian2dAxis",e}(_t);Kt(fd,yl);var xD={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},az=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},xD),iy=ft({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},xD),nz=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iy),iz=j({logBase:10},iy);const bD={category:az,value:iy,time:nz,log:iz};var oz={value:1,category:1,time:1,log:1};function io(r,e,t,a){C(oz,function(n,i){var o=ft(ft({},bD[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Fs(this),c=v?So(f):{},p=h.getTheme();ft(f,p.get(i+"Axis")),ft(f,this.getDefaultOption()),f.type=w1(f),v&&Ka(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ad.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",w1)}function w1(r){return r.type||(r.data?"category":"value")}var sz=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),hd=["x","y"];function T1(r){return r.type==="interval"||r.type==="time"}var lz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=hd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!T1(t)||!T1(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=ho([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ht(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ue(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new ht(i,o,s,l)},e}(sz),uz=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(br);function vd(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),oe(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function A1(r){return r.get("coordinateSystem")==="cartesian2d"}function C1(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Zt).models[0];e[a]=i}),e}var ac=Math.log;function wD(r,e,t){var a=va.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=CC(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=ac(r.base);u=[ac(u[0])/v,ac(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Hv(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Hv(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Ut(g-m),d<0&&u[0]>=0?(d=0,g=Ut(m)):g>0&&u[1]<=0&&(g=0,d=-Ut(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var fz=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hd,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=St(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;nd(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(ao(d,p),nd(d)&&(s=c))}f.length&&(s||(s=f.pop(),ao(s.scale,s.model)),C(f,function(g){wD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};C(a.x,function(o){D1(a,"y",o,i)}),C(a.y,function(o){D1(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Jt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=UN(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),hz(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):Os(n-za)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),I1={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ue(s,s,o),ue(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new te({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});to(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(c)||Ct(c))&&(c=[c,c]);var p=hi(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];C([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=qt(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=pz(t,a,e,r),i=gz(t,a,e,r);if(cz(e,i,n),dz(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=GC(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));WC(o)}},axisName:function(r,e,t,a){var n=oe(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,P1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*za/180);var p;P1(i)?v=Te.innerTextLayout(r.rotation,c??r.rotation,o):(v=vz(r.rotation,i,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=oe(r.nameTruncateMaxWidth,g.maxWidth,p),_=new At({x:h[0],y:h[1],rotation:v.rotation,silent:Te.isLabelSilent(e),style:Nt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(go({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=Te.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,nt(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function vz(r,e,t,a){var n=Fw(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return Os(n-za/2)?(o=l?"bottom":"top",i="center"):Os(n-za*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nza/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function cz(r,e,t){if(!DC(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(Ye(i),Ye(u)):L1(i,o)&&(a?(Ye(o),Ye(f)):(Ye(i),Ye(u))),n===!1?(Ye(s),Ye(h)):L1(l,s)&&(n?(Ye(l),Ye(v)):(Ye(s),Ye(h)))}}function Ye(r){r&&(r.ignore=!0)}function L1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Jf([]);return ui(n,n,-r.rotation),t.applyTransform(aa([],n,r.getLocalTransform())),a.applyTransform(aa([],n,e.getLocalTransform())),t.intersect(a)}}function P1(r){return r==="middle"||r==="center"}function TD(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function bz(r){var e=oy(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=cd(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=j({color:p.color},l));var g=ft(et(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(U(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else Q(f)&&(g.name=f(g.name,g));var m=new It(g,null,this.ecModel);return Kt(m,yl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ft({lineStyle:{color:"#bbb"}},$o.axisLine),axisLabel:du($o.axisLabel,!1),axisTick:du($o.axisTick,!1),splitLine:du($o.splitLine,!0),splitArea:du($o.splitArea,!0),indicator:[]},e}(_t),Oz=["axisLine","axisTickLabel","axisName"],Nz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Te(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(i,function(o){C(Oz,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new ga({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,d,x);y[w].push(new ul({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,A=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),D=[],x=0;x<=T;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;oc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);oc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!B1(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;oc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function oc(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(sa(a.event),LD(r,e,t,a,n))}function LD(r,e,t,a,n){n.isAvailableBehavior=X($u,null,t,a),r.trigger(e,n)}function $u(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}function ly(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function uy(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Wz={axisPointer:1,tooltip:1,brush:1};function Ih(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Wz.hasOwnProperty(a.mainType)&&n&&n.model!==t}function PD(r){if(U(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var sc,Pf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},V1=St(Pf),Rf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},z1=St(Rf),Uz=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=PD(e);this._defsUsePending=[];var n=new at;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ve(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;$z(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Lh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=ED(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new at,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=sc[s];if(f&&$(sc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=G1[s];if(c&&$(G1,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new ji({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),Yz(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){sc={g:function(e,t){var a=new at;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new ga;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new te;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new lh;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=W1(a));var i=new Me({shape:{points:n||[]},silent:!0});return Xe(t,i),Ve(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=W1(a));var i=new Ie({shape:{points:n||[]},silent:!0});return Xe(t,i),Ve(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new se;return Xe(t,a),Ve(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new at;return Xe(t,s),Ve(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return Xe(t,s),Ve(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=bT(a);return Xe(t,n),Ve(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),G1={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new hl(e,t,a,n);return F1(r,i),H1(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new CT(e,t,a);return F1(r,n),H1(r,n),n}};function F1(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function H1(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};RD(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Xe(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),j(e.__inheritedStyle,r.__inheritedStyle))}function W1(r){for(var e=Lh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Lh(o);switch(n=n||Fe(),s){case"translate":Gr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ag(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ui(n,n,-parseFloat(l[0])*lc,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*lc);aa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*lc);aa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Y1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RD(r,e,t){var a=r.getAttribute("style");if(a){Y1.lastIndex=0;for(var n;(n=Y1.exec(a))!=null;){var i=n[1],o=$(Pf,i)?Pf[i]:null;o&&(e[o]=n[2]);var s=$(Rf,i)?Rf[i]:null;s&&(t[s]=n[2])}}}function Qz(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Z(),a=Z(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;he(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(kD(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function K1(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):nt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function Q1(r,e,t,a,n){r.data||go({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function J1(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ht(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&uR(e,n,t),o}function j1(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Bt);function y5(r,e){var t={};return C(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Jt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function x5(r,e){C(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var b5=function(){function r(){this.dimensions=ND}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new aS(l+s,l,V({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=nS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),C(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new aS(s,s,V({nameMap:Jd(l)},n(o[0])));u.zoomLimit=oe.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=nS,u.resize(o[0],t),C(o,function(f){f.coordinateSystem=u,x5(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=Z(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function M5(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){P5(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=R5(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function I5(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function oS(r){return arguments.length?r:O5}function hs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function L5(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function P5(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function R5(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=uc(s),i=fc(i),s&&i;){n=uc(n),o=fc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(k5(E5(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!uc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!fc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function uc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function fc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function E5(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function k5(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function O5(r,e){return r.parentNode===e.parentNode?1:2}var N5=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),B5=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new N5},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=W(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),A=T.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?tf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(nt(t).focus=L),z5(n,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===ll||hf(t.__edge,P)}})}function z5(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new fl({shape:gd(f,h,v,n,n)})),Dt(d,{shape:gd(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function WD(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function py(r,e){var t=WD(r);return vt(t,e)>=0}function Ph(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var Z5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new It(n,this,this.ecModel),o=cy.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ph(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Bt);function q5(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function K5(r,e){r.eachSeriesByType("tree",function(t){Q5(t,e)})}function Q5(r,e){var t=L5(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=oS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=oS());var s=r.getData().tree.root,l=s.children[0];if(l){D5(s),q5(l,M5,o),s.hierNode.modifier=-l.hierNode.prelim,qo(l,I5);var u=l,f=l,h=l;qo(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),qo(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=hs(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),qo(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),qo(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function J5(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");V(s,o)})})}function j5(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=hy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function tG(r){r.registerChartView(V5),r.registerSeriesModel(Z5),r.registerLayout(K5),r.registerVisual(J5),j5(r)}var hS=["treemapZoomToNode","treemapRender","treemapMove"];function eG(r){for(var e=0;e1;)i=i.parentNode;var o=Yp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var rG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};YD(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new It({itemStyle:o},this,a);i=t.levels=aG(i,a);var l=G(i||[],function(h){return new It(h,s,a)},this),u=cy.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Ph(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=Z(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){UD(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Bt);function YD(r){var e=0;C(r.children,function(a){YD(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function aG(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;C(r,function(s){var l=new It(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var nG=8,vS=8,hc=5,iG=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),mh(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Qt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+nG*2,t.emptyItemWidth);t.totalWidth+=s+vS,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=dE(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Me({shape:{points:oG(l,0,m,f,d===c.length-1,d===0)},style:j(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new At({style:Nt(i,{text:_})}),textConfig:{position:"inside"},z2:co*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Nt(o,{text:_}),S.ensureState("emphasis").style=p,Ht(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),sG(S,e,y),l+=m+vS}},r.prototype.remove=function(){this.group.removeAll()},r}();function oG(r,e,t,a,n,i){var o=[[n?r:r-hc,e],[r+t,e],[r+t,e+a],[n?r:r-hc,e+a]];return!i&&o.splice(2,0,[r+t+hc,e+a/2]),!n&&o.push([r,e+a/2]),o}function sG(r,e,t){nt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ph(t,e)}}var lG=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;npS||Math.abs(t.dy)>pS)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ht(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var h=f.zoom=f.zoom||1;if(h*=i,u){var v=u.min||0,c=u.max||1/0;h=Math.max(Math.min(c,h),v)}var p=h/f.zoom;f.zoom=h;var d=this.seriesModel.layoutInfo;a-=d.x,n-=d.y;var g=Fe();Gr(g,g,[-a,-n]),ag(g,g,[p,p]),Gr(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&yf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new iG(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(py(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ko(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Et);function Ko(){return{nodeGroup:[],background:[],content:[]}}function pG(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),A=v.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=J("nodeGroup",yd);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Ef(M).nodeWidth=c,Ef(M).nodeHeight=p,f.isAboveViewRoot)return M;var I=J("background",cS,u,hG);I&&B(M,I,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),E=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Vs(M)&&Gn(M,!1),I&&(Gn(I,!E),h.setItemGraphicEl(o.dataIndex,I),Bp(I,N,R));else{var O=J("content",cS,u,vG);O&&F(M,O),I.disableMorphing=!0,I&&Vs(I)&&Gn(I,!1),Gn(M,!E),h.setItemGraphicEl(o.dataIndex,M),Bp(M,N,R)}return M;function B(pt,rt,dt){var st=nt(rt);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,rt.setShape({x:0,y:0,width:c,height:p,r:D}),g)H(rt);else{rt.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=yS(x);zt.fill=lt;var Tt=Ln(w);Tt.fill=w.get("borderColor");var Wt=Ln(T);Wt.fill=T.get("borderColor");var Ft=Ln(A);if(Ft.fill=A.get("borderColor"),dt){var ve=c-2*d;Y(rt,lt,q.opacity,{x:d,y:0,width:ve,height:S})}else rt.removeTextContent();rt.setStyle(zt),rt.ensureState("emphasis").style=Tt,rt.ensureState("blur").style=Wt,rt.ensureState("select").style=Ft,ni(rt)}pt.add(rt)}function F(pt,rt){var dt=nt(rt);dt.dataIndex=o.dataIndex,dt.seriesIndex=r.seriesIndex;var st=Math.max(c-2*d,0),q=Math.max(p-2*d,0);if(rt.culling=!0,rt.setShape({x:d,y:d,width:st,height:q,r:D}),g)H(rt);else{rt.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,Tt=yS(x);Tt.fill=zt,Tt.decal=lt.decal;var Wt=Ln(w),Ft=Ln(T),ve=Ln(A);Y(rt,zt,lt.opacity,null),rt.setStyle(Tt),rt.ensureState("emphasis").style=Wt,rt.ensureState("blur").style=Ft,rt.ensureState("select").style=ve,ni(rt)}pt.add(rt)}function H(pt){!pt.invisible&&i.push(pt)}function Y(pt,rt,dt,st){var q=v.getModel(st?gS:dS),lt=Qt(v.get("name"),null),zt=q.getShallow("show");he(pt,ae(v,st?gS:dS),{defaultText:zt?lt:null,inheritColor:rt,defaultOpacity:dt,labelFetcher:r,labelDataIndex:o.dataIndex});var Tt=pt.getTextContent();if(Tt){var Wt=Tt.style,Ft=tg(Wt.padding||0);st&&(pt.setTextConfig({layoutRect:st}),Tt.disableLabelLayout=!0),Tt.beforeUpdate=function(){var $r=Math.max((st?st.width:pt.shape.width)-Ft[1]-Ft[3],0),Le=Math.max((st?st.height:pt.shape.height)-Ft[0]-Ft[2],0);(Wt.width!==$r||Wt.height!==Le)&&Tt.setStyle({width:$r,height:Le})},Wt.truncateMinChar=2,Wt.lineOverflow="truncate",K(Wt,st,f);var ve=Tt.getState("emphasis");K(ve?ve.style:null,st,f)}}function K(pt,rt,dt){var st=pt?pt.text:null;if(!rt&&dt.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+st:st}}function J(pt,rt,dt,st){var q=m!=null&&t[pt][m],lt=n[pt];return q?(t[pt][m]=null,ct(lt,q)):g||(q=new rt,q instanceof ir&&(q.z2=dG(dt,st)),xt(lt,q)),e[pt][y]=q}function ct(pt,rt){var dt=pt[y]={};rt instanceof yd?(dt.oldX=rt.x,dt.oldY=rt.y):dt.oldShape=V({},rt.shape)}function xt(pt,rt){var dt=pt[y]={},st=o.parentNode,q=rt instanceof at;if(st&&(!a||a.direction==="drillDown")){var lt=0,zt=0,Tt=n.background[st.getRawIndex()];!a&&Tt&&Tt.oldShape&&(lt=Tt.oldShape.width,zt=Tt.oldShape.height),q?(dt.oldX=0,dt.oldY=zt):dt.oldShape={x:lt,y:zt,width:0,height:0}}dt.fadein=!q}}function dG(r,e){return r*fG+e}var Js=C,gG=tt,kf=-1,re=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=et(e);this.type=a,this.mappingMethod=t,this._normalizeData=_G[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(vc(n),yG(n)):t==="category"?n.categories?mG(n):vc(n,!0):(Ae(t!=="linear"||n.dataExtent),vc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return X(this._normalizeData,this)},r.listVisualTypes=function(){return St(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){tt(e)?C(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:tt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Js(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(gG(e)){var t=[];Js(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function vc(r,e){var t=r.visual,a=[];tt(t)?Js(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),XD(r,a)}function yu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:md([0,1])}}function mS(r){var e=this.option.visual;return e[Math.round(Lt(r,[0,1],[0,e.length-1],!0))]||{}}function Qo(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function vs(r){var e=this.option.visual;return e[this.option.loop&&r!==kf?r%e.length:r]}function Pn(){return this.option.visual[0]}function md(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:vs,piecewise:function(e,t){var a=_d.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Pn}}function _d(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=re.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function XD(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=He(t);return a||[0,0,0,1]})),e}var _G={linear:function(r){return Lt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=re.findPieceIndex(r,e,!0);if(t!=null)return Lt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??kf},fixed:Xt};function mu(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=AG(n,l,d,g,p,a);ZD(d,y,t,a)}})}}}function bG(r,e,t){var a=V({},e),n=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function _S(r){var e=cc(r,"color");if(e){var t=cc(r,"colorAlpha"),a=cc(r,"colorSaturation");return a&&(e=ys(e,null,null,a)),t&&(e=nf(e,t)),e}}function wG(r,e){return e!=null?ys(e,null,null,r):null}function cc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function TG(r,e,t,a,n,i){if(!(!i||!i.length)){var o=pc(e,"color")||n.color!=null&&n.color!=="none"&&(pc(e,"colorAlpha")||pc(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new re(h);return $D(v).drColorMappingBy=f,v}}}function pc(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function AG(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l=s==="color"&&$D(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var js=Math.max,Of=Math.min,SS=oe,dy=C,qD=["itemStyle","borderWidth"],CG=["itemStyle","gapWidth"],DG=["upperLabel","show"],MG=["upperLabel","height"];const IG={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=W(SS(s.width,l[0]),n),f=W(SS(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Qs(a,v,r),p=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=WD(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?OG(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),KD(d,_,!1,0),S=d.getLayout(),dy(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(NG(s,p,c),!0),r.setLayoutInfo(s),QD(b,new ht(-s.x,-s.y,n,i),g,d,0)}};function KD(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(qD),u=s.get(CG)/2,f=JD(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=js(n-2*v,0),i=js(i-v-c,0);var p=n*i,d=LG(r,s,p,e,t,a);if(d.length){var g={x:v,y:c,width:n,height:i},y=Of(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function kG(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?js(u*a/l,l/(u*n)):1/0}function xS(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hEm&&(u=Em),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+A,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+A,p="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+A,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(at),Sy=function(){function r(e){this.group=new at,this._LineCtor=e||_y}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=DS(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=DS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!t3(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function DS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ae(e)}}function MS(r){return isNaN(r[0])||isNaN(r[1])}function _c(r){return r&&!MS(r[0])&&!MS(r[1])}var Sc=[],xc=[],bc=[],Li=ie,wc=Xn,IS=Math.abs;function LS(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Sc[0]=Li(a[0],n[0],i[0],f),Sc[1]=Li(a[1],n[1],i[1],f);var h=IS(wc(Sc,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Tc(r,e){var t=[],a=Rs,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ra(u[0]),ra(u[1])],u[2]&&u.__original.push(ra(u[2])));var v=u.__original;if(u[2]!=null){if(Se(n[0],v[0]),Se(n[1],v[2]),Se(n[2],v[1]),f&&f!=="none"){var c=ps(s.node1),p=LS(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=ps(s.node2),p=LS(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Se(u[0],n[0]),Se(u[1],n[2]),Se(u[2],n[1])}else{if(Se(i[0],v[0]),Se(i[1],v[1]),Vn(o,i[1],i[0]),fo(o,o),f&&f!=="none"){var c=ps(s.node1);lp(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=ps(s.node2);lp(i[1],i[1],o,-c*e)}Se(u[0],i[0]),Se(u[1],i[1])}})}function PS(r){return r.type==="view"}var e3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new _l,i=new Sy,o=this.group;this._controller=new Tl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(PS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Dt(u,f,t)}Tc(t.getGraph(),cs(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(A){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),my(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),yy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(nt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(nt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){rM(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Ih(u,n,t)}),!PS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ly(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){uy(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Tc(t.getGraph(),cs(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=cs(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Tc(t.getGraph(),cs(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Et);function Pi(r){return"_EC_"+r}var r3=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Pi(e)]){var n=new Rn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Pi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Pi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Ct(e)&&(e=this.nodes[e]),Ct(t)&&(t=this.nodes[t]),e instanceof Rn||(e=n[Pi(e)]),t instanceof Rn||(t=n[Pi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new nM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Rn&&(e=e.id),t instanceof Rn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Rn||(t=this._nodesMap[Pi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Kt(Rn,iM("hostGraph","data"));Kt(nM,iM("hostGraph","edgeData"));function oM(r,e,t,a,n){for(var i=new r3(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=ya(r,t);else{var d=pl.get(c),g=d?d.dimensions||[]:[];vt(g,"value")<0&&g.concat(["value"]);var y=gl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new we(y,t),p.initData(r)}var m=new we(["value"],t);return m.initData(l,s),n&&n(p,m),FD({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var a3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new wl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ei(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){WG(this);var s=oM(i,n,this,!0,l);return C(s.edges,function(u){UG(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=It.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ne("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=LA({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:V({value:0},n)}),a=new we(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Bt),n3={type:"graphRoam",event:"graphRoam",update:"none"};function i3(r){r.registerChartView(e3),r.registerSeriesModel(a3),r.registerProcessor(VG),r.registerVisual(zG),r.registerVisual(GG),r.registerLayout(YG),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,$G),r.registerLayout(qG),r.registerCoordinateSystem("graphView",{dimensions:Al.dimensions,create:QG}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(n3,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=hy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var o3=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),s3=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new o3},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(yt);function l3(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=W(t[0],e.getWidth()),s=W(t[1],e.getHeight()),l=W(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Su(r,e){var t=r==null?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):Q(e)&&(t=e(r))),t}var u3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=l3(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Lf:De,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];vg(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b=A&&(D===0?0:i[D-1][0])Math.PI/2&&(J+=Math.PI)):K==="tangential"?J=-T-Math.PI/2:Ct(K)&&(J=K*Math.PI/180),J===0?h.add(new At({style:Nt(_,{text:B,x:H,y:Y,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new At({style:Nt(_,{text:B,x:H,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:Y,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var ct=0;ct<=b;ct++){P=Math.cos(T),R=Math.sin(T);var xt=new te({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:I});I.stroke==="auto"&&xt.setStyle({stroke:i((E+ct/b)/S)}),h.add(xt),T+=D}T-=D}else T+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(D,M){var I=m.getItemModel(D),L=I.getModel("pointer"),P=W(L.get("width"),o.r),R=W(L.get("length"),o.r),E=t.get(["pointer","icon"]),N=L.get("offsetCenter"),O=W(N[0],o.r),B=W(N[1],o.r),F=L.get("keepAspect"),H;return E?H=qt(E,O-P/2,B-R,P,R,null,F):H=new s3({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:B}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function A(D,M){var I=g.get("roundCap"),L=I?Lf:De,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=b-m.get(_,D)%b),O}(y||d)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(d){var I=T(D,s);Vt(I,{rotation:-((isNaN(+M)?w[0]:Lt(M,x,w,!0))+Math.PI/2)},t),h.add(I),m.setItemGraphicEl(D,I)}if(y){var L=A(D,s),P=g.get("clip");Vt(L,{shape:{endAngle:Lt(M,x,w,P)}},t),h.add(L),kp(t.seriesIndex,m.dataType,D,L),p[D]=L}}).update(function(D,M){var I=m.get(_,D);if(d){var L=v.getItemGraphicEl(M),P=L?L.rotation:s,R=T(D,P);R.rotation=P,Dt(R,{rotation:-((isNaN(+I)?w[0]:Lt(I,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],N=E?E.shape.endAngle:s,O=A(D,N),B=g.get("clip");Dt(O,{shape:{endAngle:Lt(I,x,w,B)}},t),h.add(O),kp(t.seriesIndex,m.dataType,D,O),p[D]=O}}).execute(),m.each(function(D){var M=m.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(d){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(E instanceof se){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Lt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,fe(E,M),Ht(E,L,P,R)}if(y){var F=p[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,fe(F,M),Ht(F,L,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=qt(s,a.cx-o/2+W(l[0],a.r),a.cy-o/2+W(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new at,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new At({silent:!0}),p[y]=new At({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=i(Lt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+W(w[0],o.r),A=o.cy+W(w[1],o.r),D=c[y];D.attr({z2:g?0:2,style:Nt(x,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+W(I[0],o.r),P=o.cy+W(I[1],o.r),R=W(M.get("width"),o.r),E=W(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,D=p[y],O=M.get("formatter");D.attr({z2:g?0:2,style:Nt(M,{x:L,y:P,text:Su(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),kT(D,{normal:M},_,function(F){return Su(F,O)}),d&&OT(D,y,l,t,{getFormattedLabel:function(F,H,Y,K,J,ct){return Su(ct?ct.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Et),f3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Co(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Bt);function h3(r){r.registerChartView(u3),r.registerSeriesModel(f3)}var v3=["itemStyle","opacity"],c3=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ie,s=new At;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(v3);f=f??1,n||Sr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Vt(i,{style:{opacity:f}},o,a)):Dt(i,{style:{opacity:f},shape:{points:l.points}},o,a),fe(i,s),this._updateLabel(t,a),Ht(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;he(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ut(c[0][0],c[0][1]):null},Dt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Qg(n,Jg(l),{stroke:v})},e}(Me),p3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new c3(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);zs(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Et),d3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new wl(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Co(this,{coordDimensions:["value"],encodeDefaulter:ot(Ig,this)})},e.prototype._defaultLabelLine=function(t){ei(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Bt);function g3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function y3(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();oE3)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Cc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Cc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var N3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ft(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);C(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(_t),B3=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(br);function di(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Ri(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Ri(s,[0,o]),n=i=Ri(s,[n,i]),a=0}e[0]=Ri(e[0],t),e[1]=Ri(e[1],t);var l=Dc(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Ri(e[a],f);var h;return h=Dc(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Dc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ri(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Mc=C,lM=Math.min,uM=Math.max,kS=Math.floor,V3=Math.ceil,OS=Ut,z3=Math.PI,G3=function(){function r(e,t,a){this.type="parallel",this._axesMap=Z(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;Mc(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new B3(o,Dh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();Mc(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ao(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=xu(e.get("axisExpandWidth"),l),h=xu(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=xu(c[1]-c[0],l),c[1]=c[0]+p;else{p=xu(f*(h-1),l);var d=e.get("axisExpandCenter")||kS(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[kS(OS(c[0]/f,1))+1,V3(OS(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Mc(a,function(o,s){var l=(n.axisExpandable?H3:F3)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:z3/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=Fe();ui(c,c,v),Gr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];C(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?di(l,n,o,"all"):u="none";else{var c=n[1]-n[0],p=o[1]*s/c;n=[uM(0,p-c/2)],n[1]=lM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function xu(r,e){return lM(uM(r,e[0]),e[1])}function F3(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function H3(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)ar(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i$3}function dM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function gM(r,e,t,a){var n=new at;return n.add(new bt({name:"main",style:Ay(t),silent:!0,draggable:!0,cursor:"move",drift:ot(VS,r,e,n,["n","s","w","e"]),ondragend:ot(si,e,{isEnd:!0})})),C(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(VS,r,e,n,i),ondragend:ot(si,e,{isEnd:!0})}))}),n}function yM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=oo(n,Z3),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Kr(r,e,"main",o,s,p,d),a.transformable&&(Kr(r,e,"w",l,u,i,y),Kr(r,e,"e",v,u,i,y),Kr(r,e,"n",l,u,g,i),Kr(r,e,"s",l,c,g,i),Kr(r,e,"nw",l,u,i,i),Kr(r,e,"ne",v,u,i,i),Kr(r,e,"sw",l,c,i,i),Kr(r,e,"se",v,c,i,i))}function Ad(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Ay(t)),n.attr({silent:!a,cursor:a?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Cd(r,i[0]):tF(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?K3[s]+"-resize":null})})}function Kr(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(rF(Cy(r,e,[[a,n],[a+i,n+o]])))}function Ay(r){return j({strokeNoScale:!0},r.brushStyle)}function mM(r,e,t,a){var n=[el(r,t),el(e,a)],i=[oo(r,t),oo(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function j3(r){return Qn(r.group)}function Cd(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=hh(t[e],j3(r));return a[n]}function tF(r,e){var t=[Cd(r,e[0]),Cd(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function VS(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=_M(e,n,i);C(a,function(u){var f=q3[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(mM(s[0][0],s[1][0],s[0][1],s[1][1])),by(e,t),si(e,{isEnd:!1})}function eF(r,e,t,a){var n=e.__brushOption.range,i=_M(r,t,a);C(n,function(o){o[0]+=i[0],o[1]+=i[1]}),by(r,e),si(r,{isEnd:!1})}function _M(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Cy(r,e,t){var a=pM(r,e);return a&&a!==oi?a.clipPath(t,r._transform):et(t)}function rF(r){var e=el(r[0][0],r[1][0]),t=el(r[0][1],r[1][1]),a=oo(r[0][0],r[1][0]),n=oo(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function aF(r,e,t){if(!(!r._brushType||iF(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Ty(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Eh={lineX:FS(0),lineY:FS(1),rect:{createCover:function(r,e){function t(a){return a}return gM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=dM(r);return mM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){yM(r,e,t,a)},updateCommon:Ad,contain:Md},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ie({name:"main",style:Ay(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Me({name:"main",draggable:!0,drift:ot(eF,r,e),ondragend:ot(si,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Cy(r,e,t)})},updateCommon:Ad,contain:Md}};function FS(r){return{createCover:function(e,t){return gM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=dM(e),a=el(t[0][r],t[1][r]),n=oo(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=pM(e,t);if(o!==oi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),yM(e,t,l,n)},updateCommon:Ad,contain:Md}}function xM(r){return r=Dy(r),function(e){return PT(e,r)}}function bM(r,e){return r=Dy(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function wM(r,e,t){var a=Dy(r);return function(n,i){return a.contain(i[0],i[1])&&!Ih(n,e,t)}}function Dy(r){return ht.create(r)}var oF=["axisLine","axisTickLabel","axisName"],sF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new xy(a.getZr())).on("brush",X(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!lF(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=fF(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=V({strokeContainThreshold:f},v),p=new Te(t,c);C(oF,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,n),vl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:xM(h),isTargetByCursor:wM(h,s,i),getLinearBrushOtherExtent:bM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(uF(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Gt);function lF(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function uF(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function fF(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var hF={type:"axisAreaSelect",event:"axisAreaSelected"};function vF(r){r.registerAction(hF,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var cF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function TM(r){r.registerComponentView(k3),r.registerComponentModel(N3),r.registerCoordinateSystem("parallel",U3),r.registerPreprocessor(L3),r.registerComponentModel(wd),r.registerComponentView(sF),io(r,"parallel",wd,cF),vF(r)}function pF(r){gt(TM),r.registerChartView(b3),r.registerSeriesModel(A3),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,I3)}var dF=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),gF=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new dF},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ua(this)},e.prototype.downplay=function(){fa(this)},e}(yt),yF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new gF,g=nt(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),A=p.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=p.getLayout(),L,P,R,E,N,O,B,F;d.shape.extent=Math.max(1,I.dy),d.shape.orient=c,c==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,R=(D!=null?D*u:T.x)+I.ty,E=M!=null?M*f:T.y,N=L,O=P*(1-_)+E*_,B=R,F=P*_+E*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,R=D!=null?D*u:T.x,E=(M!=null?M*f:T.y)+I.ty,N=L*(1-_)+R*_,O=P,B=L*_+R*(1-_),F=E),d.setShape({x1:L,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:B,cpy2:F}),d.useStyle(m.getItemStyle()),HS(d.style,c,p);var H=""+y.get("value"),Y=ae(y,"edgeLabel");he(d,Y,{labelFetcher:{getFormattedLabel:function(ct,xt,pt,rt,dt,st){return t.getFormattedLabel(ct,xt,"edge",rt,Br(dt,Y.normal&&Y.normal.get("formatter"),H),st)}},labelDataIndex:p.dataIndex,defaultText:H}),d.setTextConfig({position:"inside"});var K=y.getModel("emphasis");fe(d,y,"lineStyle",function(ct){var xt=ct.getItemStyle();return HS(xt,c,p),xt}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var J=K.get("focus");Ht(d,J==="adjacency"?p.getAdjacentDataIndices():J==="trajectory"?p.getTrajectoryDataIndices():J,K.get("blurScope"),K.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new bt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});he(b,ae(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),b.disableLabelAnimation=!0,b.setStyle("fill",p.getVisual("color")),b.setStyle("decal",p.getVisual("style").decal),fe(b,g),s.add(b),h.setItemGraphicEl(p.dataIndex,b),nt(b).dataType="node";var x=_.get("focus");Ht(b,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(mF(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Et);function HS(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");U(a)&&U(n)&&(r.fill=new hl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function mF(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Vt(a,{shape:{width:r.width+20}},e,t),a}var _F=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new It(o[l],this,a));if(i&&n){var u=oM(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ne("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return ne("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Bt);function SF(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=xF(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;wF(u);var h=Pt(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");bF(u,f,a,n,o,s,v,c,p)})}function xF(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function bF(r,e,t,a,n,i,o,s,l){TF(r,e,t,n,i,s,l),MF(r,e,i,n,a,o,s),BF(r,s)}function wF(r){C(r,function(e){var t=Ya(e.outEdges,Nf),a=Ya(e.inEdges,Nf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function TF(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&AF(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;DF(r,T,i)}function AM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function AF(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,PF(s,l,o),Ic(s,n,t,a,o),NF(s,l,o),Ic(s,n,t,a,o)}function IF(r,e){var t=[],a=e==="vertical"?"y":"x",n=Lp(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),C(n.keys,function(i){t.push(n.buckets.get(i))}),t}function LF(r,e,t,a,n,i){var o=1/0;C(r,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var p=n==="vertical"?a:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function PF(r,e,t){C(r.slice().reverse(),function(a){C(a,function(n){if(n.outEdges.length){var i=Ya(n.outEdges,RF,t)/Ya(n.outEdges,Nf);if(isNaN(i)){var o=n.outEdges.length;i=o?Ya(n.outEdges,EF,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ja(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ja(n,t))*e;n.setLayout({y:l},!0)}}})})}function RF(r,e){return Ja(r.node2,e)*r.getValue()}function EF(r,e){return Ja(r.node2,e)}function kF(r,e){return Ja(r.node1,e)*r.getValue()}function OF(r,e){return Ja(r.node1,e)}function Ja(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Nf(r){return r.getValue()}function Ya(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),C(a,function(s){var l=new re({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&C(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function zF(r){r.registerChartView(yF),r.registerSeriesModel(_F),r.registerLayout(SF),r.registerVisual(VF),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var CM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];C(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Af(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Af(d),dimsDef:m.slice()}];return Co(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(aA,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),DM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Bt);Kt(DM,CM,!0);var GF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=WS(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(Sr(h),MM(v,h,i,u)):h=WS(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Et),FF=function(){function r(){}return r}(),HF=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new FF},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var qF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ye){var a="";Mt(a)}var n=ZF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function KF(r){r.registerSeriesModel(DM),r.registerChartView(GF),r.registerLayout(UF),r.registerTransform(qF)}var QF=["color","borderColor"],JF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){tn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&US(u,h))return;var v=Lc(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Pc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&US(u,c)){i.remove(v);return}v?(Dt(v,{shape:{points:c.ends}},t,f),Sr(v)):v=Lc(c),Pc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),YS(t,this.group);var a=t.get("clip",!0)?Sl(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Lc(s);Pc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){YS(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Et),jF=function(){function r(){}return r}(),tH=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new jF},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(yt);function Lc(r,e,t){var a=r.ends;return new tH({shape:{points:t?eH(a,r):a},z2:100})}function US(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(QF);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var IM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Bt);Kt(IM,CM,!0);function aH(r){!r||!z(r.series)||C(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var nH=["itemStyle","borderColor"],iH=["itemStyle","borderColor0"],oH=["itemStyle","borderColorDoji"],sH=["itemStyle","color"],lH=["itemStyle","color0"],uH={seriesType:"candlestick",plan:bo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?sH:lH)}function a(i,o){return o.get(i===0?oH:i>0?nH:iH)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");V(h,f)}}}}}},fH={seriesType:"candlestick",plan:bo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=hH(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),A=Math.max(S,b),D=N(T,_),M=N(A,_),I=N(x,_),L=N(w,_),P=[];O(P,M,0),O(P,D,1),P.push(F(L),F(M),F(I),F(D));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:XS(m,y,S,b,f,E),initBaseline:S>b?M[i]:D[i],ends:P,brushRect:B(x,w,_)})}function N(H,Y){var K=[];return K[n]=Y,K[i]=H,isNaN(Y)||isNaN(H)?[NaN,NaN]:e.dataToPoint(K)}function O(H,Y,K){var J=Y.slice(),ct=Y.slice();J[n]=Hu(J[n]+a/2,1,!1),ct[n]=Hu(ct[n]-a/2,1,!0),K?H.push(J,ct):H.push(ct,J)}function B(H,Y,K){var J=N(H,K),ct=N(Y,K);return J[n]-=a/2,ct[n]-=a/2,{x:J[0],y:J[1],width:a,height:ct[1]-J[1]}}function F(H){return H[n]=Hu(H[n],1),H}}function p(d,g){for(var y=Or(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var A=w.get(s,x),D=w.get(u,x),M=w.get(f,x),I=w.get(h,x),L=w.get(v,x);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=XS(w,x,D,M,f,T),S[n]=A,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function XS(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function hH(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=W(it(r.get("barMaxWidth"),n),n),o=W(it(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?W(s,n):Math.max(Math.min(n/2,i),o)}function vH(r){r.registerChartView(JF),r.registerSeriesModel(IM),r.registerPreprocessor(aH),r.registerVisual(uH),r.registerLayout(fH)}function $S(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var cH=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new ml(t,a),o=new at;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;Q(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ea(t.__p1,t.__cp1)+Ea(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ie,f=dp;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],p=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(LM),mH=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),_H=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mH},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,p=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(aT(h,v,g,y,p,d,s,t,a))return l}else if(Pa(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),RM={seriesType:"lines",plan:bo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Sl(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=RM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new SH:new Sy(o?i?yH:PM:i?LM:_y),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Et),bH=typeof Uint32Array>"u"?Array:Uint32Array,wH=typeof Float64Array>"u"?Array:Float64Array;function ZS(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Jd([n,t[0],t[1]])}))}var TH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],ZS(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(ZS(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=tf(this._flatCoords,a.flatCoords),this._flatCoordsOffset=tf(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Bt);function bu(r){return r instanceof Array||(r=[r,r]),r}var AH={seriesType:"lines",reset:function(r){var e=bu(r.get("symbol")),t=bu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=bu(s.getShallow("symbol",!0)),u=bu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function CH(r){r.registerChartView(xH),r.registerSeriesModel(TH),r.registerLayout(RM),r.registerVisual(AH)}var DH=256,MH=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$a.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var I=o(_)?l:u;_>0&&(_=_*D+T),b[x++]=I[M],b[x++]=I[M+1],b[x++]=I[M+2],b[x++]=I[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=$a.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function IH(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function qS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var PH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):qS(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(qS(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){tn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=ci(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ae(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),A=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Mh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);I=new bt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(D[1],M)))continue;I=new bt({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),A=O.get("disabled"),b=ae(N)}I.shape.r=S;var B=t.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),he(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:F}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,Ht(I,w,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new MH;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,A){var D=t.dataToPoint([w,T]);return D[0]-=v,D[1]-=c,D.push(A),D}),S=n.getExtent(),b=n.type==="visualMap.continuous"?LH(S,n.option.range):IH(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new se({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Et),RH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return ya(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=pl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Bt);function EH(r){r.registerChartView(PH),r.registerSeriesModel(RH)}var kH=["itemStyle","borderWidth"],KS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],kc=new ga,OH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:KS[+f],categoryDim:KS[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=JS(o,p),g=QS(o,p,d,v),y=jS(o,v,g);o.setItemGraphicEl(p,y),i.add(y),ex(y,v,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=JS(o,p),m=QS(o,p,y,v),_=VM(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?HH(g,v,m):g=jS(o,v,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),ex(g,v,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&tx(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var c=t.get("clip",!0)?Sl(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){tx(i,nt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Et);function QS(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};NH(t,i,n,a,v),BH(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),VH(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=hi(t.get("symbolOffset"),c);return zH(t,c,n,i,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function NH(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Oc(s,o[0])-l,Oc(s,o[1])-l];h[1]0?1:-1}function Oc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function BH(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=W(p[h.index],v),p[f.index]=W(p[f.index],a?v:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function VH(r,e,t,a,n){var i=r.get(kH)||0;i&&(kc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),kc.updateTransform(),i/=kc.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function zH(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=W(m,e[c.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=Ww(a),T=w?a:rx((y+x)/b),A=y-T*d;S=A/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?rx((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var D=p*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=h.bundlePosition=[];I[v.index]=t[v.xy],I[c.index]=t[c.xy];var L=h.barRectShape=V({},t);L[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+D)),L[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function EM(r){var e=r.symbolPatternSize,t=qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function kM(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(My(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function OM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Qi(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=EM(t),n.add(i),Qi(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function NM(r,e,t){var a=V({},e.barRectShape),n=r.__pictorialBarRect;n?Qi(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function BM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Dt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],fi[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function JS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=GH,t.isAnimationEnabled=FH,t}function GH(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function FH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function jS(r,e,t,a){var n=new at,i=new at;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?kM(n,e,t):OM(n,e,t),NM(n,t,a),BM(n,e,t,a),n.__pictorialShapeStr=VM(r,t),n.__pictorialSymbolMeta=t,n}function HH(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Dt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?kM(r,e,t,!0):OM(r,e,t,!0),NM(r,t,!0),BM(r,e,t,!0)}function tx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];My(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),C(i,function(o){qa(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function VM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function My(r,e,t){C(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Qi(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&fi[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function ex(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");My(r,function(d){if(d instanceof se){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,he(p,ae(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:no(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Ht(r,f,h,i.get("disabled"))}function rx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var WH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=en(qs.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(qs);function UH(r){r.registerChartView(OH),r.registerSeriesModel(WH),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(SC,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xC("pictorialBar"))}var YH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new ha(this._layersSeries||[],l,v,v),p=[];c.add(X(d,this,"add")).update(X(d,this,"update")).remove(X(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function KH(r){r.registerChartView(YH),r.registerSeriesModel($H),r.registerLayout(ZH),r.registerProcessor(bl("themeRiver"))}var QH=2,JH=4,nx=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=QH,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new At({z2:JH,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;nt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=V({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=ro(c,o));var p=Yn(l.getModel("itemStyle"),h,!0);V(h,p),C(Ce,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Yn(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,Vt(s,{shape:{r:f.r}},n,a.dataIndex)):(Dt(s,{shape:h},n),Sr(s)),s.useStyle(v),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ht(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)P&&!Os(E-P)&&E0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new nx(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";yf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Id,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Et),r4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};zM(n);var i=this._levelModels=G(t.levels||[],function(l){return new It(l,this,a)},this),o=cy.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Ph(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){UD(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Bt);function zM(r){var e=0;C(r.children,function(a){zM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var ox=Math.PI/180;function a4(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=W(n[0],o),f=W(n[1],s),h=W(i[0],l/2),v=W(i[1],l/2),c=-a.get("startAngle")*ox,p=a.get("minAngle")*ox,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&GM(g,m);var _=0;C(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-h)/(w||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,N){if(E){var O=N;if(E!==d){var B=E.getValue(),F=S===0&&D?b:B*b;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=mp(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function o4(r){r.registerChartView(e4),r.registerSeriesModel(r4),r.registerLayout(ot(a4,"sunburst")),r.registerProcessor(ot(bl,"sunburst")),r.registerVisual(i4),t4(r)}var sx={color:"fill",borderColor:"stroke"},s4={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=wt(),l4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return ya(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=ia(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Bt);function u4(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function f4(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(u4,r)}}}function h4(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function v4(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:X(h4,r)}}}function c4(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function p4(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(c4,r)}}}function d4(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function g4(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:X(d4,r)}}}function y4(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function FM(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||$(r,"text")))}function HM(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},$(a,"text")&&(o.text=a.text),$(a,"rich")&&(o.rich=a.rich),$(a,"textFill")&&(o.fill=a.textFill),$(a,"textStroke")&&(o.stroke=a.textStroke),$(a,"fontFamily")&&(o.fontFamily=a.fontFamily),$(a,"fontSize")&&(o.fontSize=a.fontSize),$(a,"fontStyle")&&(o.fontStyle=a.fontStyle),$(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=$(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),$(a,"textPosition")&&(n.position=a.textPosition),$(a,"textOffset")&&(n.offset=a.textOffset),$(a,"textRotation")&&(n.rotation=a.textRotation),$(a,"textDistance")&&(n.distance=a.textDistance)}return lx(o,r),C(o.rich,function(l){lx(l,l)}),{textConfig:n,textContent:i}}function lx(r,e){e&&(e.font=e.textFont||e.font,$(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),$(e,"textAlign")&&(r.align=e.textAlign),$(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),$(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),$(e,"textWidth")&&(r.width=e.textWidth),$(e,"textHeight")&&(r.height=e.textHeight),$(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),$(e,"textPadding")&&(r.padding=e.textPadding),$(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),$(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),$(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),$(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),$(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),$(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),$(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function ux(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";fx(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,C(e.rich,function(s){fx(s,s)}),a}function fx(r,e){e&&($(e,"fill")&&(r.textFill=e.fill),$(e,"stroke")&&(r.textStroke=e.fill),$(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),$(e,"font")&&(r.font=e.font),$(e,"fontStyle")&&(r.fontStyle=e.fontStyle),$(e,"fontWeight")&&(r.fontWeight=e.fontWeight),$(e,"fontSize")&&(r.fontSize=e.fontSize),$(e,"fontFamily")&&(r.fontFamily=e.fontFamily),$(e,"align")&&(r.textAlign=e.align),$(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),$(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),$(e,"width")&&(r.textWidth=e.width),$(e,"height")&&(r.textHeight=e.height),$(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),$(e,"padding")&&(r.textPadding=e.padding),$(e,"borderColor")&&(r.textBorderColor=e.borderColor),$(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),$(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),$(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),$(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),$(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),$(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),$(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),$(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),$(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),$(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var WM={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},hx=St(WM);zr(Fr,function(r,e){return r[e]=1,r},{});Fr.join(", ");var Bf=["","style","shape","extra"],so=wt();function Iy(r,e,t,a,n){var i=r+"Animation",o=po(r,a,n)||{},s=so(e).userDuring;return o.duration>0&&(o.during=s?X(b4,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function Zu(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=so(r),u=e.style;l.userDuring=e.during;var f={},h={};if(T4(r,e,h),cx("shape",e,h),cx("extra",e,h),!i&&s&&(w4(r,e,f),vx("shape",r,e,f),vx("extra",r,e,f),A4(r,e,u,f)),h.style=u,m4(r,h,o),S4(r,e),s)if(i){var v={};C(Bf,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),V(p?v[p]:v,d.enterFrom))});var c=Iy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else _4(r,e,n||0,t,f);UM(r,e),u?r.dirty():r.markRedraw()}function UM(r,e){for(var t=so(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function S4(r,e){$(e,"silent")&&(r.silent=e.silent),$(e,"ignore")&&(r.ignore=e.ignore),r instanceof ir&&$(e,"invisible")&&(r.invisible=e.invisible),r instanceof yt&&$(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Mr={},x4={setTransform:function(r,e){return Mr.el[r]=e,this},getTransform:function(r){return Mr.el[r]},setShape:function(r,e){var t=Mr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Mr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Mr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Mr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Mr.el.extra||(Mr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Mr.el.extra;if(e)return e[r]}};function b4(){var r=this,e=r.el;if(e){var t=so(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Mr.el=e,a(x4)}}function vx(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ti(l))V(o,i);else for(var u=Rt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=St(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var p=St(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),B=E&&E.ordinalMeta;return B?B.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,B=m(R,Ga).getItemStyle();N!=null&&(B.fill=N),O!=null&&(B.opacity=O);var F={inheritColor:U(N)?N:"#000"},H=_(R,Ga),Y=Nt(H,null,F,!1,!0);Y.text=H.getShallow("show")?it(r.getFormattedLabel(R,Ga),no(e,R)):null;var K=df(H,F,!1);return A(P,B),B=ux(B,Y,K),P&&T(B,P),B.legacy=!0,B}function w(P,R){R==null&&(R=u);var E=m(R,oa).getItemStyle(),N=_(R,oa),O=Nt(N,null,null,!0,!0);O.text=N.getShallow("show")?Br(r.getFormattedLabel(R,oa),r.getFormattedLabel(R,Ga),no(e,R)):null;var B=df(N,null,!0);return A(P,E),E=ux(E,O,B),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)$(R,E)&&(P[E]=R[E])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),$(sx,P)){var E=e.getItemVisual(R,"style");return E?E[sx[P]]:null}if($(s4,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return TN(j({axis:R},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return bg(P,t)}}function O4(r){var e={};return C(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function zc(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=ky(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ht(s,a.focus,a.blurScope,a.emphasisDisabled),s}function ky(r,e,t,a,n,i){var o=-1,s=e;e&&ZM(e,a,n)&&(o=vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ry(a),s&&P4(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$e.normal.cfg=$e.normal.conOpt=$e.emphasis.cfg=$e.emphasis.conOpt=$e.blur.cfg=$e.blur.conOpt=$e.select.cfg=$e.select.conOpt=null,$e.isLegacy=!1,B4(u,t,a,n,l,$e),N4(u,t,a,n,l),Ey(r,u,t,a,$e,n,l),$(a,"info")&&(ia(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function ZM(r,e,t){var a=ia(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&H4(i)&&qM(i)!==a.customPathData||n==="image"&&$(o,"image")&&o.image!==a.customImagePath}function N4(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&ZM(o,i,a)&&(o=null),o||(o=Ry(i),r.setClipPath(o)),Ey(null,o,e,i,null,a,n)}}function B4(r,e,t,a,n,i){if(!r.isGroup){dx(t,null,i),dx(t,oa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Ry(o),r.setTextContent(f)),Ey(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var p=e.childAt(c);z4(e,p,n)}}}function z4(r,e,t){e&&kh(e,ia(r).option,t)}function G4(r){new ha(r.oldChildren,r.newChildren,gx,gx,r).add(yx).update(yx).remove(F4).execute()}function gx(r,e){var t=r&&r.name;return t??I4+e}function yx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;ky(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function F4(r){var e=this.context,t=e.oldChildren[r];t&&kh(t,ia(t).option,e.seriesModel)}function qM(r){return r&&(r.pathData||r.d)}function H4(r){return r&&($(r,"pathData")||$(r,"d"))}function W4(r){r.registerChartView(R4),r.registerSeriesModel(l4)}var Nn=wt(),mx=et,Gc=X,Ny=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=ot(_x,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}xx(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=oy(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Nn(e).pointerEl=new fi[i.type](mx(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Nn(e).labelEl=new At(mx(t.label));e.add(i),Sx(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Nn(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Nn(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),Sx(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=cl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){sa(u.event)},onmousedown:Gc(this._onHandleDragMove,this,0,0),drift:Gc(this._onHandleDragMove,this),ondragend:Gc(this._onHandleDragEnd,this)}),a.add(n)),xx(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,wo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_x(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Fc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Fc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Fc(n)),Nn(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ws(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function _x(r,e,t,a){KM(Nn(t).lastProp,a)||(Nn(t).lastProp=a,e?Dt(t,a,r):(t.stopAnimation(),t.attr(a)))}function KM(r,e){if(tt(r)&&tt(e)){var t=!0;return C(e,function(a,n){t=t&&KM(r[n],a)}),!!t}else return r===e}function Sx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Fc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xx(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function By(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function QM(r,e,t,a,n){var i=t.get("value"),o=JM(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=_o(s.get("padding")||0),u=s.getFont(),f=ol(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),U4(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function U4(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function JM(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:qg(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function Vy(r,e,t){var a=Fe();return ui(a,a,t.rotation),Gr(a,a,t.position),mr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function jM(r,e,t,a,n,i){var o=Te.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),QM(e,a,n,i,{position:Vy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function t2(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function bx(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var Y4=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=Tx(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=By(i),c=X4[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=vd(l.model,n);jM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=vd(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Vy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Tx(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(Ny);function Tx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var X4={line:function(r,e,t){var a=zy([e,t[0]],[e,t[1]],Ax(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:t2([e-a/2,t[0]],[a,n],Ax(r))}}};function Ax(r){return r.dim==="x"?0:1}var $4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(_t),ea=wt(),Z4=C;function e2(r,e,t){if(!mt.node){var a=e.getZr();ea(a).records||(ea(a).records={}),q4(a,e);var n=ea(a).records[r]||(ea(a).records[r]={});n.handler=t}}function q4(r,e){if(ea(r).initialized)return;ea(r).initialized=!0,t("click",ot(Cx,"click")),t("mousemove",ot(Cx,"mousemove")),t("globalout",Q4);function t(a,n){r.on(a,function(i){var o=J4(e);Z4(ea(r).records,function(s){s&&n(s,i,o.dispatchAction)}),K4(o.pendings,e)})}}function K4(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Q4(r,e,t){r.handler("leave",null,t)}function Cx(r,e,t,a){e.handler(r,t,a)}function J4(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Rd(r,e){if(!mt.node){var t=e.getZr(),a=(ea(t).records||{})[r];a&&(ea(t).records[r]=null)}}var j4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";e2("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Rd("axisPointer",a)},e.prototype.dispose=function(t,a){Rd("axisPointer",a)},e.type="axisPointer",e}(Gt);function r2(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ri(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=i.mapDimension(v),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Dx=wt();function tW(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||X(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){qu(n)&&(n=r2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=qu(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||qu(n),v={},c={},p={list:[],map:{}},d={showPointer:ot(rW,c),showTooltip:ot(aW,p)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);C(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=sW(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&Mx(S,T,d,!1,v)}})});var g={};return C(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&C(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Ix(S),Ix(y)))),g[y.key]=w}})}),C(g,function(y,m){Mx(f[m],y,d,!0,v)}),nW(c,f,v),iW(p,n,r,o),oW(f,o,t),v}}function Mx(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=eW(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function eW(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,n=h,i.length=0),C(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function rW(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function aW(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Ks(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function nW(r,e,t){var a=t.axesInfo=[];C(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function iW(r,e,t,a){if(qu(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function oW(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Dx(a)[n]||{},o=Dx(a)[n]={};C(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function sW(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Ix(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function qu(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Cl(r){pi.registerAxisPointerClass("CartesianAxisPointer",Y4),r.registerComponentModel($4),r.registerComponentView(j4),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=yz(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tW)}function lW(r){gt(ID),gt(Cl)}var uW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=By(i),p=hW[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=fW(a,n,i,l,d);QM(t,n,i,o,g)},e}(Ny);function fW(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=Fe();ui(v,v,s),Gr(v,v,[a.cx,a.cy]),u=mr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,p=Te.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var hW={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:zy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:bx(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:bx(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},vW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(_t),Gy=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Zt).models[0]},e.type="polarAxis",e}(_t);Kt(Gy,yl);var cW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Gy),pW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Gy),Fy=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(br);Fy.prototype.dataToRadius=br.prototype.dataToCoord;Fy.prototype.radiusToData=br.prototype.coordToData;var dW=wt(),Hy=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ol(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=dW(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(br);Hy.prototype.dataToAngle=br.prototype.dataToCoord;Hy.prototype.angleToData=br.prototype.coordToData;var a2=["radius","angle"],gW=function(){function r(e){this.dimensions=a2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fy,this._angleAxis=new Hy,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=Lx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Lx(t);return n===this?this.pointToData(a):null},r}();function Lx(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const yW=gW;function mW(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=W(a[0],n),r.cy=W(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function _W(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Cf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),C(Cf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),ao(a.scale,a.model),ao(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function SW(r){return r.mainType==="angleAxis"}function Px(r,e){var t;if(r.type=e.get("type"),r.scale=Dh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),SW(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var xW={dimensions:a2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new yW(n+"");i.update=_W;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Px(o,l),Px(s,u),mW(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Zt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},bW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function wu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Tu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function Rx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var wW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=et(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});Rx(u),Rx(s),C(bW,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&TW[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(pi),TW={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Tu(t),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new fi[c]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new ul({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Tu(t)],u=G(a,function(f){return new te({shape:wu(t,[l,l+s],f.coord)})});r.add(er(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Tu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];tt(b)&&b.textStyle&&(c=new It(b.textStyle,l,l.ecModel))}var x=new At({silent:Te.isLabelSilent(e),style:Nt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Te.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,nt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",R=A;b&&(a[f][L]||(a[f][L]={p:A,n:A}),R=a[f][L][P]);var E=void 0,N=void 0,O=void 0,B=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-A,H=l.dataToCoord(L);Math.abs(F)=B})}}})}function PW(r){var e={};C(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=i2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=n2(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=W(a.get("barWidth"),f),d=W(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=W(a.categoryGap,o),l=W(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),C(i,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=Ex(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Ex(t);return n===this?this.pointToData(a):null},r}();function Ex(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function HW(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new FW(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Zt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var WW={create:HW,dimensions:o2},kx=["x","y"],UW=["width","height"],YW=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Hc(l,1-Gf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=By(i),c=XW[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Ed(n);jM(a,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Ed(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Vy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Gf(o),u=Hc(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Hc(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(Ny),XW={line:function(r,e,t){var a=zy([e,t[0]],[e,t[1]],Gf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:t2([e-a/2,t[0]],[a,n],Gf(r))}}};function Gf(r){return r.isHorizontal()?0:1}function Hc(r,e){var t=r.getRect();return[t[kx[e]],t[kx[e]]+t[UW[e]]]}var $W=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Gt);function ZW(r){gt(Cl),pi.registerAxisPointerClass("SingleAxisPointer",YW),r.registerComponentView($W),r.registerComponentView(VW),r.registerComponentModel(Ku),io(r,"single",Ku,Ku.defaultOption),r.registerCoordinateSystem("single",WW)}var qW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=So(t);r.prototype.init.apply(this,arguments),Ox(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Ox(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(_t);function Ox(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return gE(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ka(r,e,{type:"box",ignoreSize:n})}var KW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ie({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?cE(t,a):Q(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new At({z2:30,style:Nt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=Hp(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Wc)-Math.floor(t[0].time/Wc)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Nx(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function JW(r){r.registerComponentModel(qW),r.registerComponentView(KW),r.registerCoordinateSystem("calendar",QW)}function jW(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Bx(r,e){var t;return C(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function t6(r,e,t){var a=V({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(ft(n,a,!0),Ka(n,a,{ignoreSize:!0}),JT(t,n),Au(t,n),Au(t,n,"shape"),Au(t,n,"style"),Au(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var s2=["transition","enterFrom","leaveTo"],e6=s2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Au(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?s2:e6,n=0;n=0;f--){var h=n[f],v=Qt(h.id,null),c=v!=null?o.get(v):null;if(c){var p=c.parent,y=Je(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=mh(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Je(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=A:c[T]=A}Dt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Qu(n,Je(n).option,a,t._lastGraphicModel)}),this._elMap=Z()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Gt);function kd(r){var e=$(Vx,r)?Vx[r]:xg(r),t=new e({});return Je(t).type=r,t}function zx(r,e,t,a){var n=kd(t);return e.add(n),a.set(r,n),Je(n).id=r,Je(n).isNew=!0,n}function Qu(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Qu(i,e,t,a)}),kh(r,e,a),t.removeKey(Je(r).id))}function Gx(r,e,t,a){r.isGroup||C([["cursor",ir.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];$(e,i)?r[i]=it(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),C(St(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=Q(i)?i:null}}),$(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function i6(r){return r=V({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QT),function(e){delete r[e]}),r}function o6(r,e,t){var a=nt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function s6(r){r.registerComponentModel(a6),r.registerComponentView(n6),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Fx=["x","y","radius","angle","single"],l6=["cartesian2d","polar","singleAxis"];function u6(r){var e=r.get("coordinateSystem");return vt(l6,e)>=0}function Fa(r){return r+"Axis"}function f6(r,e){var t=Z(),a=[],n=Z();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function l2(r){var e=r.ecModel,t={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Fa(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Uc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),rl=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=Hx(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=Hx(t);ft(this.option,t,!0),ft(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=Z(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return C(Fx,function(n){var i=this.getReferringComponents(Fa(n),JL);if(i.specified){a=!0;var o=new Uc;C(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Uc;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Zt).models[0];c&&C(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Zt).models[0]&&v.add(p.componentIndex)})}}}i&&C(Fx,function(u){if(i){var f=n.findComponents({mainType:Fa(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Uc;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Fa(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){C(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Fa(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;C(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Gi(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Gi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Gi(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Lt(a[0]+o,a,[0,100],!0):i!=null&&(o=Lt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=Gw(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function p6(r,e,t){var a=[1/0,-1/0];Gi(t,function(o){XN(a,o.getData(),e)});var n=r.getAxisModel(),i=AC(n.axis.scale,n,a).calculate();return[i.min,i.max]}var d6={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Fa(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new c6(n,i,s,r),t.push(o.__dzAxisProxy))});var a=Z();return C(t,function(n){C(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function g6(r){r.registerAction("dataZoom",function(e,t){var a=f6(t,e);C(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Ux=!1;function Uy(r){Ux||(Ux=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,d6),g6(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function y6(r){r.registerComponentModel(h6),r.registerComponentView(v6),Uy(r)}var tr=function(){function r(){}return r}(),u2={};function Fi(r,e){u2[r]=e}function f2(r){return u2[r]}var m6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(a,n){var i=f2(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ft(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(_t);function _6(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Jt(a,i,n);Jn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),mh(r,a,i,n)}function h2(r,e){var t=_o(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new bt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var S6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];C(u,function(p,d){h.push(d)}),new ha(this._featureNames||[],h).add(v).update(v).remove(ot(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new It(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(x6(g))S={onclick:_.option.onclick,featureName:g};else{var b=f2(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=mo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof tr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(w,T){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,D[w]&&(T==="emphasis"?ua:fa)(D[w])},S instanceof tr&&S.render&&S.render(_,a,n,i)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof tr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;U(_)?(b={},b[g]=_):b=_,U(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};C(b,function(T,A){var D=cl(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new At({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:bg({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),go({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),D.__title=x[A],D.on("mouseover",function(){var L=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?ua:fa)(D),o.add(D),D.on("click",X(d.onclick,d,a,n,A)),w[A]=D})}_6(o,t,n),o.add(h2(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Q(_)&&d){var S=_.style||(_.style={}),b=ol(d,At.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-b.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){C(this._features,function(o){o instanceof tr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){C(this._features,function(n){n instanceof tr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){C(this._features,function(n){n instanceof tr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Gt);function x6(r){return r.indexOf("my")===0}var b6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=mt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(tr),Yx="__ec_magicType_stack__",w6=[["line","bar"],["stack"]],T6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return C(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Xx[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=Xx[n](v,c,h,i);p&&(j(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Zt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};C(w6,function(h){vt(h,n)>=0&&C(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(tr),Xx={line:function(r,e,t,a){if(r==="bar")return ft({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ft({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===Yx;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ft({id:e,stack:n?"":Yx},a.get(["option","stack"])||{},!0)}};Yr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Oh=new Array(60).join("-"),lo=" ";function A6(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function C6(r){var e=[];return C(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];C(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(lo)],f=0;f=0)return!0}var Od=new RegExp("["+lo+"]+","g");function L6(r){for(var e=r.split(/\n+/g),t=Ff(e.shift()).split(Od),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function N6(r){var e=Yy(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return v2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function B6(r){c2(r).snapshots=null}function V6(r){return Yy(r).length}function Yy(r){var e=c2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var z6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){B6(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(tr);Yr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var G6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Xy=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=$x(t,e);C(F6,function(o,s){(!a||!a.include||vt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Yc[a.brushType](0,i,n);a.__rangeOffset={offset:Qx[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){C(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=Yc[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Yc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Qx[a.brushType](i.values,o.offset,H6(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:xM(n),isTargetByCursor:wM(n,e,a.coordSysModel),getLinearBrushOtherExtent:bM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&vt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=$x(t,e),i=0;ir[1]&&r.reverse(),r}function $x(r,e){return Ss(r,e,{includeMainTypes:G6})}var F6={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=Z(),o={},s={};!t&&!a&&!n||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(h,v){(vt(t,h.getAxis("x").model)>=0||vt(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:qx.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:qx.geo})})}},Zx=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],qx={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Qn(r)),e}},Yc={lineX:ot(Kx,0),lineY:ot(Kx,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Nd([n[0],i[0]]),Nd([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function Kx(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Nd(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Qx={lineX:ot(Jx,0),lineY:ot(Jx,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function Jx(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function H6(r,e){var t=jx(r),a=jx(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function jx(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Bd=C,W6=$L("toolbox-dataZoom_"),U6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new xy(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),$6(t,a,this,i,n),X6(t,a)},e.prototype.onclick=function(t,a,n){Y6[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Xy($y(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),O6(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=di(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Bd(t,function(n,i){a.push(et(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(tr),Y6={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(N6(this.ecModel))}};function $y(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function X6(r,e){r.setIconStatus("back",V6(e)>1?"emphasis":"normal")}function $6(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Xy($y(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}bE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=$y(a),o=Ss(r,i);Bd(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Bd(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:W6+u+h};v[f]=h,n.push(v)}return n});function Z6(r){r.registerComponentModel(m6),r.registerComponentView(S6),Fi("saveAsImage",b6),Fi("magicType",T6),Fi("dataView",E6),Fi("dataZoom",U6),Fi("restore",z6),gt(y6)}var q6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(_t);function p2(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function d2(r){if(mt.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var p=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'
'}function rU(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=mt.transformSupported?","+Zy+a:",left"+a+",top"+a),J6+":"+n}function tb(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!mt.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=mt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+Zy+":"+o+";":[["top",0],["left",0],[g2,o]]}function aU(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),C(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function nU(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=IA(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(rU(n,t)),i&&a.push("background-color:"+i),C(["width","color","radius"],function(c){var p="border-"+c,d=qT(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(aU(f)),h!=null&&a.push("padding:"+_o(h).join("px ")+"px"),a.join(";")+";"}function eb(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&TI(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var iU=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,mt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(U(i)?document.querySelector(i):Ji(i)?i:Q(i)&&i(e.getDom()));eb(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();qe(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=Q6(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=j6+nU(e,!this._firstShow,this._longHide)+tb(i[0],i[1],!0)+("border-color:"+ii(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(i)&&a.get("trigger")==="item"&&!p2(a)&&(s=eU(a,n,i)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||mt.node||!n.getDom())){var o=nb(i,n);this._ticket="";var s=i.dataByCoordSys,l=vU(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=sU;f.x=i.x,f.y=i.y,f.update(),nt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=r2(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(nb(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=Jo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=nt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hn(n,function(f){if(nt(f).dataIndex!=null)return l=f,!0;if(nt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=X(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Jo([a.tooltipOption],i),l=this._renderMode,u=[],f=ne("section",{blocks:[],noHeader:!0}),h=[],v=new Lv;C(t,function(m){C(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=JM(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ne("section",{header:x,noHeader:!dr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(T){var A=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=qg(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",ii(M.color),l);var I=H0(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=Jo([A],i).get("valueFormatter");w.blocks.push(P?V({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=Z0(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?` + +`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Jo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Lv;y.marker=m.makeTooltipMarker("item",ii(y.color),c);var _=H0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?Z0(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=et(l),l.content=Ee(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=Jo(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Lv;this._showOrMove(p,function(){var m=et(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ch(y.axisValue,c,g)),c=KT(c,n,!0)}else if(Q(v)){var _=X(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=W(a[0],u),i=W(a[1],f);else if(tt(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=hU(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=uU(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=ib(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=ib(c)?h[1]/2:c==="bottom"?h[1]:0),p2(t)){var y=fU(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&C(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&C(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&C(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){mt.node||!a.getDom()||(Ws(this,"_updatePosition"),this._tooltipContent.dispose(),Rd("itemTooltip",a))},e.type="tooltip",e}(Gt);function Jo(r,e,t){var a=e.ecModel,n;t?(n=new It(t,a,a),n=new It(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof It&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new It(o,n,a)))}return n}function nb(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function uU(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function fU(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function hU(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function ib(r){return r==="center"||r==="middle"}function vU(r,e,t){var a=ug(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=sl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function cU(r){gt(Cl),r.registerComponentModel(q6),r.registerComponentView(lU),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var pU=["rect","polygon","keep","clear"];function dU(r,e){var t=Rt(r?r.brush:[]);if(t.length){var a=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),gU(s),e&&!s.length&&s.push.apply(s,pU)}}function gU(r){var e={};C(r,function(t){e[t]=1}),r.length=0,C(e,function(t,a){r.push(a)})}var ob=C;function sb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Vd(r,e,t){var a={};return ob(e,function(i){var o=a[i]=n();ob(r[i],function(s,l){if(re.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new re(u),l==="opacity"&&(u=et(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new re(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function m2(r,e,t){var a;C(t,function(n){e.hasOwnProperty(n)&&sb(e[n])&&(a=!0)}),a&&C(t,function(n){e.hasOwnProperty(n)&&sb(e[n])?r[n]=et(e[n]):delete r[n]})}function yU(r,e,t,a,n,i){var o={};C(r,function(h){var v=re.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return Vg(t,s,h)}function u(h,v){zA(t,s,h,v)}t.each(f);function f(h,v){s=h;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&vb(e)}};function vb(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var AU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new xy(a.getZr())).on("brush",X(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){_2(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:et(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:et(n),$from:a})},e.type="brush",e}(Gt),CU="#ddd",DU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&m2(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:CU},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(a){return cb(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=cb(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(_t);function cb(r,e){return ft({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new It(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var MU=["rect","polygon","lineX","lineY","keep","clear"],IU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return C(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:MU.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(tr);function LU(r){r.registerComponentView(AU),r.registerComponentModel(DU),r.registerPreprocessor(dU),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,SU),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),Fi("brush",IU)}var PU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(_t),RU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=it(t.get("textBaseline"),t.get("textVerticalAlign")),f=new At({style:Nt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new At({style:Nt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){yf(p,"_"+t.get("target"))}),d&&c.on("click",function(){yf(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Gt);function EU(r){r.registerComponentModel(PU),r.registerComponentView(RU)}var pb=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],C(a,function(u,f){var h=Qt(vo(u),""),v;tt(u)?(v=et(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new we([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(_t),S2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=en(pb.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(pb);Kt(S2,Sh.prototype);var kU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Gt),OU=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(br),$c=Math.PI,db=wt(),NU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ne("nameValue",{noName:!0,value:f})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=VU(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:$c/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*$c/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),A=0,D=h;b==="left"||b==="bottom"?(x&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),T&&(S=[D-p,0],D-=g)):(x&&(m=[D-p,0],D-=g),w&&(_=[0,0],A+=g),T&&(S=[D-p,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Fe(),l=o.x,u=o.y+o.height;Gr(s,s,[-l,-u]),ui(s,s,-$c/2),Gr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||U(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=BU(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new OU("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new te({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new te({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:j({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],C(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:X(o._changeTimeline,o,u.value)},g=gb(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Kn(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],C(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new At({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:X(o._changeTimeline,o,h),silent:!1,style:Nt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Nt(p),y.ensureState("progress").style=Nt(d),a.add(y),Kn(y),db(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",X(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",X(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",X(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(c){var y=_r(it(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=zU(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Kn(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=X(u._handlePointerDrag,u),h.ondragend=X(u._handlePointerDragend,u),yb(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){yb(h,u._progressLine,s,n,i)}};this._currentPointer=gb(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=ar(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Zc={min:ot(Mu,"min"),max:ot(Mu,"max"),average:ot(Mu,"average"),median:ot(Mu,"median")};function al(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!YU(e)&&!z(e.coord)&&z(n)){var i=x2(e,t,a,r);if(e=et(e),e.type&&Zc[e.type]&&i.baseAxis&&i.valueAxis){var o=vt(n,i.baseAxis.dim),s=vt(n,i.valueAxis.dim),l=Zc[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Zc[u[f]]&&(u[f]=Ky(t,t.mapDimension(n[f]),u[f]));return e}}function x2(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(XU(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function XU(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function nl(r,e){return r&&r.containData&&e.coord&&!Gd(e)?r.containData(e.coord):!0}function $U(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Gd(e)&&!Gd(t)?r.containZone(e.coord,t.coord):!0}function b2(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ua(o,e[i])}:function(t,a,n,i){return Ua(t.value,e[i])}}function Ky(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var qc=wt(),Qy=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Z()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){qc(s).keep=!1}),a.eachSeries(function(s){var l=pa.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!qc(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){qc(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;C(t,function(i){var o=pa.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?cT(l):gg(l))})}})},e.type="marker",e}(Gt);function _b(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=W(i.get("x"),t.getWidth()),l=W(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var ZU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markPoint");o&&(_b(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new _l),h=qU(o,t,a);a.setData(h),_b(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(Q(p)||Q(d)||Q(g)||Q(y)){var _=a.getRawValue(v),S=a.getDataParams(v);Q(p)&&(p=p(_,S)),Q(d)&&(d=d(_,S)),Q(g)&&(g=g(_,S)),Q(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=dl(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Qy);function qU(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new we(a,t),i=G(t.get("data"),ot(al,e));r&&(i=Pt(i,ot(nl,r)));var o=b2(!!r,a);return n.initData(i,null,o),n}function KU(r){r.registerComponentModel(UU),r.registerComponentView(ZU),r.registerPreprocessor(function(e){qy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var QU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(pa),Iu=wt(),JU=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=oe(a.yAxis,a.xAxis);else{var u=x2(a,n,e,r);s=u.valueAxis;var f=pC(n,u.valueDataDim);l=Ky(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=et(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&Ct(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[al(r,i[0]),al(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,ft(g[2],g[0]),ft(g[2],g[1]),g};function Hf(r){return!isNaN(r)&&!isFinite(r)}function Sb(r,e,t,a){var n=1-r,i=a.dimensions[r];return Hf(e[n])&&Hf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function jU(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Sb(1,t,a,r)||Sb(0,t,a,r)))return!0}return nl(r,e[0])&&nl(r,e[1])}function Kc(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get("x"),n.getWidth()),u=W(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(ci(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;Hf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Hf(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var t8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Iu(o).from,u=Iu(o).to;l.each(function(f){Kc(l,f,!0,i,n),Kc(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Sy);this.group.add(f.group);var h=e8(o,t,a),v=h.from,c=h.to,p=h.line;Iu(a).from=v,Iu(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(b){nt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Kc(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=dl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:it(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:it(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:it(w.get("symbolSize"),g[x?0:1]),symbol:it(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Qy);function e8(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new we(a,t),i=new we(a,t),o=new we([],t),s=G(t.get("data"),ot(JU,e,r,t));r&&(s=Pt(s,ot(jU,r)));var l=b2(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function r8(r){r.registerComponentModel(QU),r.registerComponentView(t8),r.registerPreprocessor(function(e){qy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var a8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(pa),Lu=wt(),n8=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=al(r,n),s=al(r,i),l=o.coord,u=s.coord;l[0]=oe(l[0],-1/0),l[1]=oe(l[1],-1/0),u[0]=oe(u[0],1/0),u[1]=oe(u[1],1/0);var f=Jd([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Wf(r){return!isNaN(r)&&!isFinite(r)}function xb(r,e,t,a){var n=1-r;return Wf(e[n])&&Wf(t[n])}function i8(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ci(r,"cartesian2d")?t&&a&&(xb(1,t,a)||xb(0,t,a))?!0:$U(r,n,i):nl(r,n)||nl(r,i)}function bb(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get(t[0]),n.getWidth()),u=W(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];t[0]==="x0"?p[0]=v[0]>c[0]?h[0]:f[0]:p[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?p[1]=v[1]>c[1]?h[1]:f[1]:p[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ci(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);Wf(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Wf(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var wb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],o8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=pa.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(wb,function(h){return bb(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=s8(o,t,a);a.setData(h),h.each(function(v){var c=G(wb,function(T){return bb(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];ar(m),ar(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:c,allClipped:b});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=dl(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=nf(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Lu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Me({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Lu(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?Dt(p,{shape:{points:d.points}},a,v):p=new Me({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Lu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),he(v,ae(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:U(d.fill)?nf(d.fill,1):"#000"}),fe(v,p),Ht(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),Lu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Qy);function s8(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new we(n,t)}else n=[{name:"value",type:"float"}],a=new we(n,t);var s=G(t.get("data"),ot(n8,e,r,t));r&&(s=Pt(s,ot(i8,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Ua(c,n[v])}:function(u,f,h,v){return Ua(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function l8(r){r.registerComponentModel(a8),r.registerComponentView(o8),r.registerPreprocessor(function(e){qy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var u8=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Fd=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&C(a,function(i,o){U(i)&&(i={type:i}),a[o]=ft(i,u8(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(_t),Ei=ot,Hd=C,Pu=at,w2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Pu),this.group.add(this._selectorGroup=new Pu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=Jt(j({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=h2(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=Z(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Hd(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var g=new Pu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",Ei(Tb,d,null,i,v)).on("mouseover",Ei(Wd,y.name,null,i,v)).on("mouseout",Ei(Ud,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),D=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=He(D.fill);I&&I[3]===0&&(I[3]=.2,D=V(V({},D),{fill:na(I,"rgba")}));var L=this._createItem(w,d,p,c,a,t,{},D,M,h,i);L.on("click",Ei(Tb,null,d,i,v)).on("mouseover",Ei(Wd,null,d,i,v)).on("mouseout",Ei(Ud,null,d,i,v)),n.ssr&&L.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Hd(t,function(u){var f=u.type,h=new At({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);he(h,{normal:v,emphasis:c},{defaultText:u.title}),Kn(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=f8(f,i,l,u,c,g,v),b=new Pu,x=i.getModel("textStyle");if(Q(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(h8({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,D=o.get("formatter"),M=a;U(D)&&D?M=D.replace("{name}",a??""):Q(D)&&(M=D(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new At({style:Nt(x,{text:M,x:T,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&go({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),Kn(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Jn(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Jn("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gt);function f8(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Hd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:ro(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function h8(r){var e=r.icon||"roundRect",t=qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Tb(r,e,t,a){Ud(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Wd(r,e,t,a)}function T2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=it(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new bt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Dt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Qc[o],l=Jc[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(w2);function g8(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function y8(r){gt(A2),r.registerComponentModel(p8),r.registerComponentView(d8),g8(r)}function m8(r){gt(A2),gt(y8)}var _8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=en(rl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(rl),Jy=wt();function S8(r,e,t){Jy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function x8(r,e){for(var t=Jy(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function C8(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Jy(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=Z());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=l2(i);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,b8(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){C2(n,i);return}var f=A8(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),wo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var D8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),S8(n,t,{pan:X(jc.pan,this),zoom:X(jc.zoom,this),scrollMove:X(jc.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){x8(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Wy),jc={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=tp[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Db(function(r,e,t,a,n,i){var o=tp[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Db(function(r,e,t,a,n,i){var o=tp[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Db(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(di(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var tp={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function D2(r){Uy(r),r.registerComponentModel(_8),r.registerComponentView(D8),C8(r)}var M8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=en(rl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(rl),es=bt,Mb=7,I8=1,ep=30,L8=7,rs="horizontal",Ib="vertical",P8=5,R8=["line","bar","candlestick","scatter"],E8={easing:"cubicOut",duration:100,delay:0},k8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),wo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ws(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?L8:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===rs?{right:s.width-o.x-o.width,top:s.height-ep-Mb-i,width:o.width,height:ep}:{right:Mb,top:o.y,width:ep,height:o.height},u=So(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Ib&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===rs&&!o?{scaleY:l?1:-1,scaleX:1}:n===rs&&o?{scaleY:l?1:-1,scaleX:-1}:n===Ib&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new es({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new es({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(A,D){if(_>0&&D%_){m+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:Lt(A,h,c,!0);M&&!S&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new at,I=new Me({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ie({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!n&&!(a!==!0&&vt(R8,u.get("type"))<0)){var f=i.getComponent(Fa(o),s).axis,h=O8(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new es({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new es({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:I8,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!Sf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=qt(S,-1,0,2,2,null,!0);b.attr({cursor:Lb(this._orient),draggable:!0,drift:X(this._onDragMove,this,_),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=W(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Kn(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var A=l.getModel("textStyle");t.add(i[_]=new At({silent:!0,invisible:!0,style:Nt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var p=W(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:Lb(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Lt(t[0],[0,100],a,!0),Lt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];di(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Lt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Lt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ar([Lt(i[0],o,l,!0),Lt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=ar(n.slice()),o=this._size;C([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ut(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ar([Lt(n.x,o,s,!0),Lt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(sa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new es({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?E8:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=l2(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Wy);function O8(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Lb(r){return r==="vertical"?"ns-resize":"ew-resize"}function M2(r){r.registerComponentModel(M8),r.registerComponentView(k8),Uy(r)}function N8(r){gt(D2),gt(M2)}var I2={get:function(r,e,t){var a=et((B8[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},B8={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Pb=re.mapVisual,V8=re.eachVisual,z8=z,Rb=C,G8=ar,F8=Lt,Uf=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&m2(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=X(t,this),this.controllerVisuals=Vd(this.option.controller,a,t),this.targetVisuals=Vd(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){C(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=G8([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ft(i,n),ft(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){z8(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},Rb(p,function(g,y){if(re.isValidType(y)){var m=I2.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Rb(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&et(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&et(c)||(s?m[0]:[m[0],m[0]])),_.symbol=Pb(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;V8(S,function(x){x>b&&(b=x)}),_.symbolSize=Pb(S,function(x){return F8(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(_t),Eb=[20,140],H8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Eb[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Eb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ar((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=kb(this,"outOfRange",this.getExtent()),n=kb(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();W8([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=Ir(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=mr(n.handleLabelPoints[f],Qn(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Ir(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=mr(f.indicatorLabelPoint,Qn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,A),_.animateTo(T,A)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||Vb(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=KL(v,c);this._dispatchHighDown("downplay",Ju(p[0],n)),this._dispatchHighDown("highlight",Ju(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Hn(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Q8(r,e,t,a){for(var n=e.targetVisuals[a],i=re.prepareVisualTypes(n),o={color:dl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Z8,q8),C(K8,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(J8))}function E2(r){r.registerComponentModel(H8),r.registerComponentView(X8),R2(r)}var j8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],tY[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=et(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=et(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=re.listVisualTypes(),i=this.isCategory();C(t.pieces,function(s){C(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),C(a,function(s,l){var u=!1;C(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&C(this.stateList,function(f){(t[f]||(t[f]={}))[l]=I2.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,C(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;C(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=et(t)},e.prototype.getValueState=function(t){var a=re.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=re.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=en(Uf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Uf),tY={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Hb(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var eY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=oe(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),C(f.viewPieceList,function(c){var p=c.piece,d=new at;d.onclick=X(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new At({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Jn(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Ju(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return P2(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new At({style:Nt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=et(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,C(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(L2);function k2(r){r.registerComponentModel(j8),r.registerComponentView(eY),R2(r)}function rY(r){gt(E2),gt(k2)}var aY={label:{enabled:!0},decal:{show:!1}},Wb=wt(),nY={};function iY(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=et(aY);ft(a.label,r.getLocaleModel().get("aria"),!1),ft(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=Z();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),Wb(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(Q(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Yp(v.ecModel,v.name,nY,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=Wb(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Yp(v.ecModel,w,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,T))})}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=j(h.option,f),!!h.get("enabled")){if(h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?h.get(["series","multiple",I]):h.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=h.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),E=h.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},lY=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):dI(e)?e:null;if(t==null){var a="";Mt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Ct(t)?this._condVal.test(e+""):!1},r}(),uY=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),fY=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[L,P]}function f(L,P,R,E){Yi(L,R)&&Yi(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,N,O){var B=Math.abs(P-L),F=Math.tan(B/4)*4/3,H=PT:M2&&a.push(n),a}function Xd(r,e,t,a,n,i,o,s,l,u){if(Yi(r,t)&&Yi(e,a)&&Yi(n,o)&&Yi(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],D=[];Za(r,t,n,o,.5,A),Za(e,a,i,s,.5,D),Xd(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Xd(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function TY(r,e){var t=Yd(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=N2([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=N2([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new ut(d*l+r,d*u+e)}function DY(r,e,t){var a=new ut;ut.sub(a,t,e),a.normalize();var n=new ut;ut.sub(n,r,e);var i=n.dot(a);return i}function Oi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function MY(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),MY(e,u,f)}function Yf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Yf(r,i[0],n,a),Yf(r,i[1],t-n,a)}return a}function IY(r,e){for(var t=[],a=0;a0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Zf(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:VY(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function z2(r){return RY(r.path,r.count)}function $d(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zY(r,e,t){var a=[];function n(b){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var FY={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Jb(r)&&(u=r,f=e),Jb(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,A=m?w:x[0];if(Xf(T))h({many:[T],one:A},!0,_,S,!0);else{var D=s?j({delay:s(_,S)},l):l;tm(T,A,D),i(T,A,T,A,D)}}else for(var M=j({dividePath:FY[t],individualDelay:s&&function(N,O,B,F){return s(N+_,S)}},l),I=m?zY(x,w,M):GY(w,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Ee.length,c=u?jb(f,u):jb(v?e:r,[v?r:e]),p=0,d=0;dG2))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof yt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function nw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function iw(r){return z(r)?r.sort().join(","):r}function Ra(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ZY(r,e){var t=Z(),a=Z(),n=Z();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=nw(i),f=iw(u);a.set(f,{dataGroupId:s,data:l}),z(u)&&C(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),C(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=nw(i),u=iw(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ra(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Ra(s),data:s}]});else if(z(l)){var h=[];C(l,function(p){var d=a.get(p);d.data&&h.push({dataGroupId:d.dataGroupId,divide:Ra(d.data),data:d.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Ra(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ra(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Ra(s)})}}}}),t}function ow(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ra(e.oldData[s]),groupIdDim:o.dimension})}),C(Rt(r.to),function(o){var s=ow(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ra(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&F2(n,i,a)}function KY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){C(Rt(a.seriesTransition),function(n){C(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s{f(),h(),v(),c(),window.addEventListener("resize",()=>{o.resize(),s.resize(),l.resize(),u.resize()})}),X2(()=>{o.dispose(),s.dispose(),l.dispose(),u.dispose(),window.removeEventListener("resize",()=>{o.resize(),s.resize(),l.resize(),u.resize()})});function f(){o=eu(t.value);const p={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎","百度","谷歌","必应","其他"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"]}],yAxis:[{type:"value"}],series:[{name:"直接访问",type:"bar",data:[320,332,301,334,390,330,320]},{name:"邮件营销",type:"bar",stack:"广告",data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"bar",stack:"广告",data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"bar",stack:"广告",data:[150,232,201,154,190,330,410]},{name:"搜索引擎",type:"bar",data:[862,1018,964,1026,1679,1600,1570],markLine:{lineStyle:{type:"dashed"},data:[[{type:"min"},{type:"max"}]]}},{name:"百度",type:"bar",barWidth:5,stack:"搜索引擎",data:[620,732,701,734,1090,1130,1120]},{name:"谷歌",type:"bar",stack:"搜索引擎",data:[120,132,101,134,290,230,220]},{name:"必应",type:"bar",stack:"搜索引擎",data:[60,72,71,74,190,130,110]},{name:"其他",type:"bar",stack:"搜索引擎",data:[62,82,91,84,109,110,120]}]};o.setOption(p)}function h(){s=eu(a.value);const p={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["邮件营销","联盟广告","视频广告","直接访问","搜索引擎"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["周一","周二","周三","周四","周五","周六","周日"]}],yAxis:[{type:"value"}],series:[{name:"邮件营销",type:"line",stack:"总量",areaStyle:{},data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"line",stack:"总量",areaStyle:{},data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"line",stack:"总量",areaStyle:{},data:[150,232,201,154,190,330,410]},{name:"直接访问",type:"line",stack:"总量",areaStyle:{},data:[320,332,301,334,390,330,320]},{name:"搜索引擎",type:"line",stack:"总量",areaStyle:{},data:[820,932,901,934,1290,1330,1320]}]};s.setOption(p)}function v(){l=eu(n.value);const p={title:{text:"某站点用户访问来源",subtext:"纯属虚构",left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};l.setOption(p)}function c(){u=eu(i.value);const p={legend:{data:["预算分配(Allocated Budget)","实际开销(Actual Spending)"]},radar:{indicator:[{name:"销售(sales)",max:6500},{name:"管理(Administration)",max:16e3},{name:"信息技术(Information Techology)",max:3e4},{name:"客服(Customer Support)",max:38e3},{name:"研发(Development)",max:52e3},{name:"市场(Marketing)",max:25e3}]},series:[{name:"预算 vs 开销(Budget vs spending)",type:"radar",data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"预算分配(Allocated Budget)"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"实际开销(Actual Spending)"}]}]};u.setOption(p)}return(p,d)=>{const g=J2,y=rm("van-tag"),m=rm("van-action-sheet"),_=W2,S=H2;return Z2(),$2(S,{navbar:"","navbar-start-side":"back"},{"navbar-end":_a(()=>[Qr("div",{class:"h-full flex-center px-1",onClick:d[0]||(d[0]=b=>e.value=!0)},[rn(g,{name:"i-mdi:information",class:"text-4"})]),rn(m,{show:K2(e),"onUpdate:show":d[1]||(d[1]=b=>Q2(e)?e.value=b:null),teleport:"body"},{default:_a(()=>[Qr("div",QY,[JY,jY,Qr("div",t7,[rn(y,{type:"primary",plain:""},{default:_a(()=>[q2(" pnpm add echarts ")]),_:1})])])]),_:1},8,["show"])]),default:_a(()=>[rn(_,{title:"柱状图"},{default:_a(()=>[Qr("div",{ref_key:"chart1Ref",ref:t,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"折线图"},{default:_a(()=>[Qr("div",{ref_key:"chart2Ref",ref:a,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"饼图"},{default:_a(()=>[Qr("div",{ref_key:"chart3Ref",ref:n,style:{width:"100%",height:"400px"}},null,512)]),_:1}),rn(_,{title:"雷达图"},{default:_a(()=>[Qr("div",{ref_key:"chart4Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{n7 as default}; diff --git a/assets/echarts-DqZtRDc9.js.br b/assets/echarts-DqZtRDc9.js.br new file mode 100644 index 00000000..b977a45c Binary files /dev/null and b/assets/echarts-DqZtRDc9.js.br differ diff --git a/assets/echarts-DqZtRDc9.js.gz b/assets/echarts-DqZtRDc9.js.gz new file mode 100644 index 00000000..2d35a310 Binary files /dev/null and b/assets/echarts-DqZtRDc9.js.gz differ diff --git a/assets/errorLog-DNF13oPM.js b/assets/errorLog-DNF13oPM.js new file mode 100644 index 00000000..880c9258 --- /dev/null +++ b/assets/errorLog-DNF13oPM.js @@ -0,0 +1 @@ +import{_ as y}from"./index-Cwg3TLNR.js";import{d as L,X as w,r as S,O as C,c as B,w as i,m as p,o as t,u as c,j as o,a as e,b as d,e as x,F as N,n as T,Y as V,t as r}from"./index-DpnASd8N.js";const j={key:0,class:"flex flex-col items-center gap-4 p-4"},E={key:0},F={key:1,class:"w-full"},I={class:"flex justify-evenly"},O=e("div",null,"错误信息",-1),$={class:"text-xs text-gray-5"},D=e("div",null,"错误详情",-1),J={class:"text-xs text-gray-5"},M=e("div",null,"错误链接",-1),P={class:"text-xs text-gray-5"},X=e("div",null,"时间",-1),Y={class:"text-xs text-gray-5"},q={key:1,class:"flex flex-col items-center p-4"},H=L({__name:"errorLog",setup(z){const g=w(),f="example",l=S(""),m=C(()=>l.value?[JSON.parse(l.value)]:[]);function _(u){switch(V(()=>{l.value=sessionStorage.getItem("errorLog")||""}),u){case 1:a=abc;break;case 2:testMethod();break}}return(u,n)=>{const v=p("van-button"),k=p("van-divider"),h=y;return t(),B(h,{navbar:"","navbar-start-side":"back"},{default:i(()=>[c(f)!=="development"?(t(),o("div",j,[c(g).settings.app.enableErrorLog?(t(),o("div",F,[e("div",I,[d(v,{onClick:n[0]||(n[0]=s=>_(1))},{default:i(()=>[x(" 模拟触发错误1 ")]),_:1}),d(v,{onClick:n[1]||(n[1]=s=>_(2))},{default:i(()=>[x(" 模拟触发错误2 ")]),_:1})]),d(k),(t(!0),o(N,null,T(c(m),(s,b)=>(t(),o("div",{key:b,class:"flex flex-col gap-2 break-words rounded bg-white p-4"},[e("div",null,[O,e("div",$,r(s.err.message),1)]),e("div",null,[D,e("div",J,r(s.err.stack),1)]),e("div",null,[M,e("div",P,r(s.url),1)]),e("div",null,[X,e("div",Y,r(s.datetime),1)])]))),128))])):(t(),o("div",E," 请到 /src/settings.ts 里打开错误日志功能,再进入该页面查看演示 "))])):(t(),o("div",q," 当前为开发环境,该功能关闭演示 "))]),_:1})}}});export{H as default}; diff --git a/assets/errorLog-DNF13oPM.js.br b/assets/errorLog-DNF13oPM.js.br new file mode 100644 index 00000000..06617653 Binary files /dev/null and b/assets/errorLog-DNF13oPM.js.br differ diff --git a/assets/errorLog-DNF13oPM.js.gz b/assets/errorLog-DNF13oPM.js.gz new file mode 100644 index 00000000..6a70edb3 Binary files /dev/null and b/assets/errorLog-DNF13oPM.js.gz differ diff --git a/assets/esign-BYcxLvjR.js b/assets/esign-BYcxLvjR.js new file mode 100644 index 00000000..ec1620ac --- /dev/null +++ b/assets/esign-BYcxLvjR.js @@ -0,0 +1 @@ +import{_ as B}from"./index-Cwg3TLNR.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{z as M,o as y,j as R,d as S,r as p,c as b,w as u,m as T,a as f,b as v,e as x,u as d,i as E,p as Y,Y as I,_ as X}from"./index-DpnASd8N.js";import{s as N}from"./function-call-CCLiThI7.js";const P={props:{width:{type:Number,default:800},height:{type:Number,default:300},lineWidth:{type:Number,default:4},lineColor:{type:String,default:"#000000"},bgColor:{type:String,default:""},isCrop:{type:Boolean,default:!1},isClearBgColor:{type:Boolean,default:!0},format:{type:String,default:"image/png"},quality:{type:Number,default:1}},data(){return{hasDrew:!1,resultImg:"",points:[],canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio(){return this.height/this.width},stageInfo(){return this.$refs.canvas.getBoundingClientRect()},myBg(){return this.bgColor?this.bgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){this.$refs.canvas.style.background=t}},beforeMount(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy(){window.removeEventListener("resize",this.$_resizeHandler)},mounted(){const t=this.$refs.canvas;t.height=this.height,t.width=this.width,t.style.background=this.myBg,this.$_resizeHandler(),document.onmouseup=()=>{this.isDrawing=!1}},methods:{$_resizeHandler(){const t=this.$refs.canvas;t.style.width=this.width+"px";const e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.canvasTxt=t.getContext("2d"),this.canvasTxt.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.canvasTxt.scale(1/this.sratio,1/this.sratio)},mouseDown(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;let e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove(t){if(t=t||event,t.preventDefault(),this.isDrawing){let e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp(t){t=t||event,t.preventDefault();let e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove(t){if(t=t||event,t.preventDefault(),t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd(t){if(t=t||event,t.preventDefault(),t.touches.length===1){let e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart(t){this.startX=t.x,this.startY=t.y,this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t)},drawMove(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.strokeStyle=this.lineColor,this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.startY=t.y,this.startX=t.x,this.points.push(t)},drawEnd(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.push(t),this.points.push({x:-1,y:-1})},generate(t){let e=t&&t.format?t.format:this.format,i=t&&t.quality?t.quality:this.quality;return new Promise((h,s)=>{if(!this.hasDrew){s("Warning: Not Signned!");return}var a=this.canvasTxt.getImageData(0,0,this.$refs.canvas.width,this.$refs.canvas.height);this.canvasTxt.globalCompositeOperation="destination-over",this.canvasTxt.fillStyle=this.myBg,this.canvasTxt.fillRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.resultImg=this.$refs.canvas.toDataURL(e,i);var c=this.resultImg;if(this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.canvasTxt.putImageData(a,0,0),this.canvasTxt.globalCompositeOperation="source-over",this.isCrop){const n=this.getCropArea(a.data);var r=document.createElement("canvas");const l=r.getContext("2d");r.width=n[2]-n[0],r.height=n[3]-n[1];const g=this.canvasTxt.getImageData(...n);l.globalCompositeOperation="destination-over",l.putImageData(g,0,0),l.fillStyle=this.myBg,l.fillRect(0,0,r.width,r.height),c=r.toDataURL(e,i),r=null}h(c)})},reset(){this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.isClearBgColor&&(this.$emit("update:bgColor",""),this.$refs.canvas.style.background="rgba(255, 255, 255, 0)"),this.points=[],this.hasDrew=!1,this.resultImg=""},getCropArea(t){for(var e=this.$refs.canvas.width,i=0,o=this.$refs.canvas.height,h=0,s=0;s0||t[c+1]>0||t[c+2]||t[c+3]>0)&&(h=Math.max(a,h),i=Math.max(s,i),o=Math.min(a,o),e=Math.min(s,e))}return e++,i++,o++,h++,[e,o,i,h]}}};function W(t,e,i,o,h,s){return y(),R("canvas",{ref:"canvas",onMousedown:e[0]||(e[0]=(...a)=>s.mouseDown&&s.mouseDown(...a)),onMousemove:e[1]||(e[1]=(...a)=>s.mouseMove&&s.mouseMove(...a)),onMouseup:e[2]||(e[2]=(...a)=>s.mouseUp&&s.mouseUp(...a)),onTouchstart:e[3]||(e[3]=(...a)=>s.touchStart&&s.touchStart(...a)),onTouchmove:e[4]||(e[4]=(...a)=>s.touchMove&&s.touchMove(...a)),onTouchend:e[5]||(e[5]=(...a)=>s.touchEnd&&s.touchEnd(...a))},null,544)}const C=M(P,[["render",W],["__scopeId","data-v-1fcc7cb1"]]);C.install=function(t){this.installed||(this.installed=!0,t.component("vueEsign",C))};const z={class:"whitespace-break-spaces p-4 space-y-2"},U=f("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),V=f("div",null,"安装命令:",-1),L={class:"space-x-2"},q={class:"mt-2 space-x-2"},H=["src"],G=S({__name:"esign",setup(t){const e=p(!1),i=p(),o=p({lineWidth:6,lineColor:"#000000",bgColor:"#f0f0f0",isCrop:!1}),h=p("");function s(){i.value.reset(),I(()=>{o.value.bgColor="#f0f0f0"})}function a(){i.value.generate().then(r=>{h.value=r}).catch(()=>{N({message:"画板为空,无法生成图片"})})}function c(){i.value.generate().then(r=>{const n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=()=>{const l=document.createElement("a"),g=new MouseEvent("click");l.download=Date.parse(new Date().toString()).toString(),l.href=n.src,l.dispatchEvent(g)},n.src=r})}return(r,n)=>{const l=X,g=T("van-tag"),D=T("van-action-sheet"),w=T("VanButton"),_=k,$=B;return y(),b($,{navbar:"","navbar-start-side":"back"},{"navbar-end":u(()=>[f("div",{class:"h-full flex-center px-1",onClick:n[0]||(n[0]=m=>e.value=!0)},[v(l,{name:"i-mdi:information",class:"text-4"})]),v(D,{show:d(e),"onUpdate:show":n[1]||(n[1]=m=>E(e)?e.value=m:null),teleport:"body"},{default:u(()=>[f("div",z,[U,V,f("div",L,[v(g,{type:"primary",plain:""},{default:u(()=>[x(" pnpm add vue-esign ")]),_:1})])])]),_:1},8,["show"])]),default:u(()=>[v(_,null,{default:u(()=>[v(d(C),{ref_key:"esignRef",ref:i,bgColor:d(o).bgColor,"onUpdate:bgColor":n[2]||(n[2]=m=>d(o).bgColor=m),width:800,height:400,"is-crop":d(o).isCrop,"line-width":d(o).lineWidth,"line-color":d(o).lineColor},null,8,["bgColor","is-crop","line-width","line-color"]),f("div",q,[v(w,{onClick:s},{default:u(()=>[x(" 清空画板 ")]),_:1}),v(w,{onClick:a},{default:u(()=>[x(" 生成图片 ")]),_:1}),v(w,{onClick:c},{default:u(()=>[x(" 下载图片 ")]),_:1})])]),_:1}),d(h)?(y(),b(_,{key:0},{default:u(()=>[f("img",{src:d(h),class:"aspect-ratio-[800/400] w-full"},null,8,H)]),_:1})):Y("",!0)]),_:1})}}});export{G as default}; diff --git a/assets/esign-BYcxLvjR.js.br b/assets/esign-BYcxLvjR.js.br new file mode 100644 index 00000000..d5ce8f07 Binary files /dev/null and b/assets/esign-BYcxLvjR.js.br differ diff --git a/assets/esign-BYcxLvjR.js.gz b/assets/esign-BYcxLvjR.js.gz new file mode 100644 index 00000000..8eac956a Binary files /dev/null and b/assets/esign-BYcxLvjR.js.gz differ diff --git a/assets/esign-L8gvZECO.css b/assets/esign-L8gvZECO.css new file mode 100644 index 00000000..be278a2a --- /dev/null +++ b/assets/esign-L8gvZECO.css @@ -0,0 +1 @@ +canvas[data-v-1fcc7cb1]{max-width:100%;display:block} diff --git a/assets/esign-L8gvZECO.css.br b/assets/esign-L8gvZECO.css.br new file mode 100644 index 00000000..4c3f0c9d Binary files /dev/null and b/assets/esign-L8gvZECO.css.br differ diff --git a/assets/font-C1zKEPi_.js b/assets/font-C1zKEPi_.js new file mode 100644 index 00000000..b3353323 --- /dev/null +++ b/assets/font-C1zKEPi_.js @@ -0,0 +1 @@ +import{_ as i}from"./index-Cwg3TLNR.js";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{z as d,c as l,w as a,o as p,b as c,e as r,Z as f,a0 as m,a as e}from"./index-DpnASd8N.js";const u={},o=t=>(f("data-v-ddb8f6ef"),t=t(),m(),t),g=o(()=>e("p",{class:"digital-7"}," Fantastic-mobile ",-1)),b=o(()=>e("p",{class:"digital-7"}," 1234567890,. ",-1)),h=o(()=>e("p",{class:"digital-7_mono"}," Fantastic-mobile ",-1)),x=o(()=>e("p",{class:"digital-7_mono"}," 1234567890,. ",-1));function v(t,I){const s=n,_=i;return p(),l(_,{navbar:"","navbar-start-side":"back"},{default:a(()=>[c(s,null,{default:a(()=>[r(" 自定义字体需要下载字体文件,不建议在非英文环境中使用。以下为框架预设字体: ")]),_:1}),c(s,{title:"Digital 7"},{default:a(()=>[g,b]),_:1}),c(s,{title:"Digital 7(等宽)"},{default:a(()=>[h,x]),_:1})]),_:1})}const N=d(u,[["render",v],["__scopeId","data-v-ddb8f6ef"]]);export{N as default}; diff --git a/assets/font-C1zKEPi_.js.br b/assets/font-C1zKEPi_.js.br new file mode 100644 index 00000000..3105f2b1 Binary files /dev/null and b/assets/font-C1zKEPi_.js.br differ diff --git a/assets/font-C1zKEPi_.js.gz b/assets/font-C1zKEPi_.js.gz new file mode 100644 index 00000000..7aa9a49c Binary files /dev/null and b/assets/font-C1zKEPi_.js.gz differ diff --git a/assets/font-c1C_uxbp.css b/assets/font-c1C_uxbp.css new file mode 100644 index 00000000..2139d31a --- /dev/null +++ b/assets/font-c1C_uxbp.css @@ -0,0 +1 @@ +@font-face{font-family:digital-7regular;font-style:normal;font-weight:400;src:url(./digital-7-webfont-BjD0-cHb.eot);src:url(./digital-7-webfont-BjD0-cHb.eot?#iefix) format("embedded-opentype"),url(./digital-7-webfont-Be4rWpNL.woff2) format("woff2"),url(./digital-7-webfont-T-2P9Ugr.woff) format("woff"),url(./digital-7-webfont-CsMgswhn.svg#digital-7regular) format("svg")}/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on January 22, 2021 */@font-face{font-family:digital-7_monomono;font-style:normal;font-weight:400;src:url(./digital-7_mono-webfont-p3QHBSNF.eot);src:url(./digital-7_mono-webfont-p3QHBSNF.eot?#iefix) format("embedded-opentype"),url(./digital-7_mono-webfont-CgIkl65M.woff2) format("woff2"),url(./digital-7_mono-webfont-DV1ffHFE.woff) format("woff"),url(./digital-7_mono-webfont-CgrKaJks.svg#digital-7_monomono) format("svg")}.digital-7[data-v-ddb8f6ef],.digital-7_mono[data-v-ddb8f6ef]{margin:min(2.667vw,16px) 0;font-size:min(9.6vw,57.6px)}.digital-7[data-v-ddb8f6ef]{font-family:digital-7regular}.digital-7_mono[data-v-ddb8f6ef]{font-family:digital-7_monomono} diff --git a/assets/font-c1C_uxbp.css.br b/assets/font-c1C_uxbp.css.br new file mode 100644 index 00000000..038fea3f Binary files /dev/null and b/assets/font-c1C_uxbp.css.br differ diff --git a/assets/font-c1C_uxbp.css.gz b/assets/font-c1C_uxbp.css.gz new file mode 100644 index 00000000..b6de4745 Binary files /dev/null and b/assets/font-c1C_uxbp.css.gz differ diff --git a/assets/function-call-CCLiThI7.js b/assets/function-call-CCLiThI7.js new file mode 100644 index 00000000..7c920af9 --- /dev/null +++ b/assets/function-call-CCLiThI7.js @@ -0,0 +1 @@ +import{as as a,at as s,au as i,av as r,aw as l,b as u,R as c,ax as d}from"./index-DpnASd8N.js";let o,e;const f=t=>i(t)?t:{message:t};function p(){({instance:e}=r({setup(){const{state:t,toggle:n}=l();return()=>u(d,c(t,{"onUpdate:show":n}),null)}}))}const m=()=>({type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0});let g=m();const v=()=>{e&&e.toggle(!1)};function w(t){if(a)return e||p(),t=s({},g,f(t)),e.open(t),clearTimeout(o),t.duration>0&&(o=setTimeout(v,t.duration)),e}export{w as s}; diff --git a/assets/function-call-CCLiThI7.js.br b/assets/function-call-CCLiThI7.js.br new file mode 100644 index 00000000..295605f5 Binary files /dev/null and b/assets/function-call-CCLiThI7.js.br differ diff --git a/assets/function-call-CCLiThI7.js.gz b/assets/function-call-CCLiThI7.js.gz new file mode 100644 index 00000000..c9f34835 Binary files /dev/null and b/assets/function-call-CCLiThI7.js.gz differ diff --git a/assets/i18n-CCeXPdyq.js b/assets/i18n-CCeXPdyq.js new file mode 100644 index 00000000..5fae09cf --- /dev/null +++ b/assets/i18n-CCeXPdyq.js @@ -0,0 +1 @@ +import{_ as f}from"./index-Cwg3TLNR.js";import{_ as m}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as v,l as g,c as b,w as s,m as _,o as h,b as t,a as o,e as i,t as x,u as y,a1 as w,a2 as k}from"./index-DpnASd8N.js";const z=o("div",{class:"m-4 c-gray"}," Vant 组件国际化 ",-1),C=o("div",{class:"m-4 c-gray"}," 延迟加载 ",-1),L={class:"flex justify-center gap-4"},V={class:"mt-4 text-center"},$=v({__name:"i18n",setup(j){const{t:d}=g();function l(a){const e=w(),n=k();n&&(a==="zh-cn"?(Object.assign(n["zh-cn"],{hello:{world:"你好,世界!"}}),e.global.setLocaleMessage(a,n["zh-cn"])):(Object.assign(n["en-us"],{hello:{world:"Hello World !"}}),e.global.setLocaleMessage(a,n["en-us"])))}return(a,e)=>{const n=_("van-calendar"),c=m,r=_("van-button"),u=f;return h(),b(u,{navbar:"","navbar-start-side":"back","navbar-end-side":"i18n"},{default:s(()=>[z,t(c,null,{default:s(()=>[t(n,{poppable:!1,"show-confirm":!1,style:{height:"500px"}})]),_:1}),C,t(c,null,{default:s(()=>[o("div",L,[t(r,{onClick:e[0]||(e[0]=p=>l("zh-cn"))},{default:s(()=>[i(" 载入中文 ")]),_:1}),t(r,{onClick:e[1]||(e[1]=p=>l("en-us"))},{default:s(()=>[i(" 载入英文 ")]),_:1})]),o("div",V,x(y(d)("hello.world")),1)]),_:1})]),_:1})}}});export{$ as default}; diff --git a/assets/i18n-CCeXPdyq.js.br b/assets/i18n-CCeXPdyq.js.br new file mode 100644 index 00000000..8ea7103b Binary files /dev/null and b/assets/i18n-CCeXPdyq.js.br differ diff --git a/assets/i18n-CCeXPdyq.js.gz b/assets/i18n-CCeXPdyq.js.gz new file mode 100644 index 00000000..da42fa98 Binary files /dev/null and b/assets/i18n-CCeXPdyq.js.gz differ diff --git a/assets/icon-DC97ELbi.js b/assets/icon-DC97ELbi.js new file mode 100644 index 00000000..946676fb --- /dev/null +++ b/assets/icon-DC97ELbi.js @@ -0,0 +1 @@ +import{_ as V}from"./index-Cwg3TLNR.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as w,r as _,c as C,w as i,m as c,o as I,b as t,a as l,u as e,e as p,i as d,_ as y,f as $}from"./index-DpnASd8N.js";const B=l("p",null,"单色 Icon",-1),U=l("p",null,"彩色 Icon",-1),L=l("p",null,"Iconify Icon",-1),N=l("p",null,"网络图片",-1),R={class:"space-x-2"},M=l("p",null,"本地图片",-1),P=l("p",null,"翻转:",-1),q=l("p",null,"旋转:",-1),G={class:"p-4"},D=w({__name:"icon",setup(H){const r=_("https://picsum.photos/50");function v(){r.value="",r.value=`https://picsum.photos/50?random=${Math.random()}`}const h=new URL(""+new URL("logo-CvGq432t.png",import.meta.url).href,import.meta.url).href,n=_(),o=_(0);return(S,s)=>{const a=y,f=$,u=c("van-radio"),x=c("van-radio-group"),z=c("van-slider"),g=k,b=V;return I(),C(b,{navbar:"","navbar-start-side":"back"},{default:i(()=>[t(g,null,{default:i(()=>[B,l("div",null,[t(a,{name:"example-emotion-line",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"example-emotion-laugh-line",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"example-emotion-unhappy-line",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"])]),U,l("div",null,[t(a,{name:"example-crown",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"example-star",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"example-vip",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"])]),L,l("div",null,[t(a,{name:"i-carbon:4k",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"i-carbon:play-filled-alt",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"]),t(a,{name:"i-carbon:pause-filled",size:48,flip:e(n),rotate:e(o)},null,8,["flip","rotate"])]),N,t(a,{name:e(r),size:48,flip:e(n),rotate:e(o)},null,8,["name","flip","rotate"]),l("div",R,[t(f,{onClick:v},{default:i(()=>[p(" 更改图片 ")]),_:1}),t(f,{onClick:s[0]||(s[0]=m=>r.value="")},{default:i(()=>[p(" 创建错误 ")]),_:1})]),M,t(a,{name:e(h),size:48,flip:e(n),rotate:e(o)},null,8,["name","flip","rotate"]),l("div",null,[P,t(x,{modelValue:e(n),"onUpdate:modelValue":s[1]||(s[1]=m=>d(n)?n.value=m:null),class:"space-y-1"},{default:i(()=>[t(u,null,{default:i(()=>[p(" 无 ")]),_:1}),t(u,{name:"horizontal"},{default:i(()=>[p(" 水平翻转 ")]),_:1}),t(u,{name:"vertical"},{default:i(()=>[p(" 垂直翻转 ")]),_:1}),t(u,{name:"both"},{default:i(()=>[p(" 水平垂直翻转 ")]),_:1})]),_:1},8,["modelValue"]),q,l("div",G,[t(z,{modelValue:e(o),"onUpdate:modelValue":s[2]||(s[2]=m=>d(o)?o.value=m:null),min:0,max:360},null,8,["modelValue"])])])]),_:1})]),_:1})}}});export{D as default}; diff --git a/assets/icon-DC97ELbi.js.br b/assets/icon-DC97ELbi.js.br new file mode 100644 index 00000000..440782bf Binary files /dev/null and b/assets/icon-DC97ELbi.js.br differ diff --git a/assets/icon-DC97ELbi.js.gz b/assets/icon-DC97ELbi.js.gz new file mode 100644 index 00000000..0041df6b Binary files /dev/null and b/assets/icon-DC97ELbi.js.gz differ diff --git a/assets/index-B2HCp-RK.js b/assets/index-B2HCp-RK.js new file mode 100644 index 00000000..1bb21229 --- /dev/null +++ b/assets/index-B2HCp-RK.js @@ -0,0 +1 @@ +import{_ as g,b as v}from"./index-Cwg3TLNR.js";import{d as p,ar as b,r as h,ao as u,c as d,w as i,o as l,a as e,b as t,u as n,j as k,t as w,e as o,_ as y,f as B}from"./index-DpnASd8N.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";const V={class:"flex flex-1 flex-col gap-8 p-4"},$={class:"flex flex-1 flex-col gap-4"},j={class:"flex items-center justify-end gap-4"},C={class:"flex items-center gap-4"},H=["src","onerror"],N={class:"text-8 font-bold"},P=e("div",{class:"mt-1 text-stone-5"}," 这是个人中心示例页面噢~ ",-1),E={class:"mb-2 mt-4 flex items-center text-4 font-mono"},U={class:"flex flex-1 flex-col items-center gap-2"},D={class:"flex flex-1 flex-col items-center gap-2"},I={class:"flex flex-1 flex-col items-center gap-2"},L={class:"flex flex-1 flex-col items-center gap-2"},M={class:"flex flex-col rounded-lg bg-[var(--g-container-bg)]"},T={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},q={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},z={class:"ms-auto flex items-center gap-2 font-mono"},A={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},F={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},G={class:"ms-auto flex items-center gap-2 font-mono"},J={class:"flex items-center gap-2 border-b border-b-[var(--g-bg)] border-b-solid p-4 last:border-b-none"},K={class:"flex-center inline-flex rounded-full bg-[#fae9eb] p-2"},O={class:"ms-auto flex items-center gap-2 font-mono"},Q={class:"grid grid-cols-4 gap-4"},R={class:"flex flex-col items-center gap-1"},W=e("div",{class:"text-xs text-stone-5"}," 服务1 ",-1),X={class:"flex flex-col items-center gap-1"},Y=e("div",{class:"text-xs text-stone-5"}," 服务2 ",-1),Z={class:"flex flex-col items-center gap-1"},ee=e("div",{class:"text-xs text-stone-5"}," 服务3 ",-1),te={class:"flex flex-col items-center gap-1"},se=e("div",{class:"text-xs text-stone-5"}," 服务4 ",-1),oe={class:"flex flex-col items-center gap-1"},ae=e("div",{class:"text-xs text-stone-5"}," 服务5 ",-1),ne={class:"flex flex-col items-center gap-1"},ce=e("div",{class:"text-xs text-stone-5"}," 服务6 ",-1),ie={class:"flex flex-col items-center gap-1"},le=e("div",{class:"text-xs text-stone-5"}," 服务7 ",-1),re={class:"flex flex-col items-center gap-1"},de=e("div",{class:"text-xs text-stone-5"}," 服务8 ",-1),pe=p({__name:"index",setup(_e){const a=b(),c=h(!1);return u(()=>a.avatar,()=>{c.value&&(c.value=!1)}),(xe,r)=>{const s=y,_=v,x=S,f=B,m=g;return l(),d(m,{navbar:"","navbar-mode":"show-hide-fixed",tabbar:""},{default:i(()=>[e("div",V,[e("div",$,[e("div",j,[t(_,{value:10},{default:i(()=>[t(s,{name:"i-carbon:notification",class:"text-6"})]),_:1}),t(s,{name:"i-carbon:settings",class:"text-6"})]),e("div",C,[n(a).avatar&&!n(c)?(l(),k("img",{key:0,src:n(a).avatar,onerror:()=>c.value=!0,class:"h-20 w-20 rounded-full bg-dark p-2 dark-bg-light"},null,8,H)):(l(),d(s,{key:1,name:"i-carbon:user-avatar-filled-alt",class:"text-20 text-gray-400"})),e("div",null,[e("div",N," Hi, "+w(n(a).account),1),P])]),e("div",E,[e("div",U,[t(s,{name:"i-logos:vitejs",class:"text-8"}),o(" Vite ")]),e("div",D,[t(s,{name:"i-logos:vue",class:"text-8"}),o(" Vue.js ")]),e("div",I,[t(s,{name:"i-logos:unocss",class:"text-8"}),o(" UnoCSS ")]),e("div",L,[t(s,{name:"i-logos:pinia",class:"text-8"}),o(" Pinia ")])]),e("div",M,[e("div",T,[e("div",q,[t(s,{name:"i-carbon:thumbs-up",class:"text-4 text-[#53b7ad]"})]),o(" 点赞 "),e("div",z,[o(" 9+ "),t(s,{name:"i-carbon:chevron-right"})])]),e("div",A,[e("div",F,[t(s,{name:"i-carbon:favorite",class:"text-4 text-[#6ecc84]"})]),o(" 收藏 "),e("div",G,[o(" 99+ "),t(s,{name:"i-carbon:chevron-right"})])]),e("div",J,[e("div",K,[t(s,{name:"i-carbon:share",class:"text-4 text-[#4580dd]"})]),o(" 分享 "),e("div",O,[o(" 999+ "),t(s,{name:"i-carbon:chevron-right"})])])]),t(x,{title:"更多服务",class:"rounded-lg m-0!"},{default:i(()=>[e("div",Q,[e("div",R,[t(s,{name:"i-icon-park:ad",class:"text-8"}),W]),e("div",X,[t(s,{name:"i-icon-park:bitcoin",class:"text-8"}),Y]),e("div",Z,[t(s,{name:"i-icon-park:alarm-clock",class:"text-8"}),ee]),e("div",te,[t(s,{name:"i-icon-park:calendar-dot",class:"text-8"}),se]),e("div",oe,[t(s,{name:"i-icon-park:good-two",class:"text-8"}),ae]),e("div",ne,[t(s,{name:"i-icon-park:airplane",class:"text-8"}),ce]),e("div",ie,[t(s,{name:"i-icon-park:shopping",class:"text-8"}),le]),e("div",re,[t(s,{name:"i-icon-park:globe",class:"text-8"}),de])])]),_:1})]),t(f,{block:"",onClick:r[0]||(r[0]=fe=>n(a).logout())},{default:i(()=>[o(" 登出 ")]),_:1})])]),_:1})}}});export{pe as default}; diff --git a/assets/index-B2HCp-RK.js.br b/assets/index-B2HCp-RK.js.br new file mode 100644 index 00000000..f45fe1fa Binary files /dev/null and b/assets/index-B2HCp-RK.js.br differ diff --git a/assets/index-B2HCp-RK.js.gz b/assets/index-B2HCp-RK.js.gz new file mode 100644 index 00000000..326a37b1 Binary files /dev/null and b/assets/index-B2HCp-RK.js.gz differ diff --git a/assets/index-BSEnowPx.js b/assets/index-BSEnowPx.js new file mode 100644 index 00000000..cdfe640b --- /dev/null +++ b/assets/index-BSEnowPx.js @@ -0,0 +1 @@ +import{_ as m,a as x}from"./index-Cwg3TLNR.js";import{d,r as c,c as k,w as b,o as w,a as r,b as i,e as a,u as y,i as _,_ as v,f as g}from"./index-DpnASd8N.js";import{_ as B}from"./logo-DvfkIia2.js";const L=r("svg",{class:"absolute top-2/5 z-0 -translate-y-1/2",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.dev/svgjs",viewBox:"0 0 800 800",opacity:"0.5"},[r("defs",null,[r("filter",{id:"bbburst-blur-1",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"})]),r("filter",{id:"bbburst-blur-2",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2"})]),r("filter",{id:"bbburst-blur-3",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"4"})]),r("filter",{id:"bbburst-blur-4",x:"-100%",y:"-100%",width:"400%",height:"400%"},[r("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12"})]),r("symbol",{id:"bbburst-shape-1",viewBox:"0 0 194 167"},[r("path",{d:"m97 0 96.129 166.5H.871L97 0Z"})]),r("symbol",{id:"bbburst-shape-4",viewBox:"0 0 149 143"},[r("path",{d:"M71.647 2.781c.898-2.764 4.808-2.764 5.706 0l15.445 47.534a3 3 0 0 0 2.853 2.073h49.98c2.906 0 4.115 3.719 1.764 5.427L106.96 87.193a2.999 2.999 0 0 0-1.09 3.354l15.445 47.534c.898 2.764-2.266 5.062-4.617 3.354l-40.435-29.378a3 3 0 0 0-3.526 0l-40.435 29.378c-2.351 1.708-5.515-.59-4.617-3.354L43.13 90.547a3 3 0 0 0-1.09-3.354L1.605 57.815c-2.35-1.708-1.142-5.427 1.764-5.427h49.98a3 3 0 0 0 2.853-2.073L71.647 2.781Z"})]),r("symbol",{id:"bbburst-shape-6",viewBox:"0 0 133 116"},[r("path",{d:"M59.7487 10.2513c-13.6683-13.66839-35.8291-13.66839-49.4974 0-13.66839 13.6683-13.66839 35.8291 0 49.4974l49.4974-49.4974ZM66.5 66.5 41.7513 91.2487 66.5 115.997l24.7487-24.7483L66.5 66.5Zm56.249-6.7513c13.668-13.6683 13.668-35.8291 0-49.4974-13.669-13.66839-35.8294-13.66839-49.4977 0l49.4977 49.4974Zm-112.4977 0 31.5 31.5 49.4974-49.4974-31.5-31.5-49.4974 49.4974Zm80.9974 31.5 31.5003-31.5-49.4977-49.4974-31.5 31.5 49.4974 49.4974Z"})]),r("symbol",{id:"bbburst-shape-8",viewBox:"0 0 87 168"},[r("path",{d:"m12 12 31.2546 18.0749c16.4102 9.4902 20.014 31.6325 7.4603 45.8369L36.3296 92.1884c-12.5684 14.2206-8.9394 36.3916 7.5068 45.8636L75 156","stroke-width":"14","stroke-linecap":"round","stroke-linejoin":"round"})]),r("symbol",{id:"bbburst-shape-10",viewBox:"0 0 145 145"},[r("circle",{cx:"72.5",cy:"72.5",r:"61.5",fill:"none","stroke-width":"22"})])]),r("use",{"xlink:href":"#bbburst-shape-6",width:"26.416031353675077",opacity:"0.5558125008595394",transform:"matrix(0.8948913757080802,0.44628401907675314,-0.44628401907675314,0.8948913757080802,764.4989705590918,7.394036236793511)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"31.6181173108733",opacity:"0.24447893397779907",transform:"matrix(1.0181298934052316,-0.7251975731858538,0.7251975731858538,1.0181298934052316,83.84057233816316,344.0911679213252)",fill:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.35836701644857",opacity:"0.3939041554887399",transform:"matrix(0.9818636343718777,0.18958851098641893,-0.18958851098641893,0.9818636343718777,185.3241317450107,-20.441183043098818)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"27.436063205739657",opacity:"0.634055200115319",transform:"matrix(0.7945493008807643,0.6071996446556015,-0.6071996446556015,0.7945493008807643,778.3792528597228,-1.5005415967389695)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"19.286593148931928",opacity:"0.6929890267054223",transform:"matrix(0.9998675263528706,0.01627666258763093,-0.01627666258763093,0.9998675263528706,487.69150345038605,104.00194476171367)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"26.285962047362066",opacity:"0.5884257064355131",transform:"matrix(0.9323517281447373,0.3615525619125409,-0.3615525619125409,0.9323517281447373,420.41836124322595,169.89367200498566)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"28.138131344890343",opacity:"0.24151611584353583",transform:"matrix(1.2140347401183973,-0.2976905268658307,0.2976905268658307,1.2140347401183973,-76.20470313003861,-52.070508080368654)",fill:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.96410692439042",opacity:"0.16276858481360978",transform:"matrix(1.1813328357357196,0.40859849634158424,-0.40859849634158424,1.1813328357357196,180.77138375624097,36.64211297396139)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"23.294275791580883",opacity:"0.7884943613282643",transform:"matrix(0.8207015175269758,-0.5713571729915701,0.5713571729915701,0.8207015175269758,141.47627412313483,-14.586693829285423)",fill:"none",stroke:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"23.253094199109952",opacity:"0.6777859835962992",transform:"matrix(0.9978821316634325,-0.06504806920150548,0.06504806920150548,0.9978821316634325,297.768605869114,-128.20171692630942)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"33.946456612090714",opacity:"0.17469749546888036",transform:"matrix(1.1502628113244515,-0.48928055845697516,0.48928055845697516,1.1502628113244515,-178.79689032308565,-127.52881309943399)",fill:"#ffbd9b",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"17.503837823956527",opacity:"0.8840634618774533",transform:"matrix(0.9671106934827564,-0.25435586596597687,0.25435586596597687,0.9671106934827564,329.4322054291615,49.302907128432366)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"39.46823225673065",opacity:"0.14322513219973998",transform:"matrix(1.167719666328466,0.44601657017395263,-0.44601657017395263,1.167719666328466,785.609295854234,-385.13758115993556)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"38.9288980066375",opacity:"-0.06642004913641286",transform:"matrix(1.7481345161113895,0.08078188893556315,-0.08078188893556315,1.7481345161113895,732.5319725182615,-645.1062632953099)",fill:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.488913772353985",opacity:"0.6941195012737249",transform:"matrix(0.886062851439946,-0.46356512303894504,0.46356512303894504,0.886062851439946,68.76949642174395,34.44576912703553)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.80932923777674",opacity:"0.6831023743850402",transform:"matrix(0.9772575024190081,0.2120560632610215,-0.2120560632610215,0.9772575024190081,518.9299369767407,142.44732832606815)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.14008901483358",opacity:"0.5271024527024384",transform:"matrix(0.8380168949831764,0.5456442831394422,-0.5456442831394422,0.8380168949831764,543.4505206764961,260.65950212407415)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.5994596380744",opacity:"0.20228209083124982",transform:"matrix(1.2256950819055399,-0.24529893231029717,0.24529893231029717,1.2256950819055399,634.1701440327786,-39.01742401620646)",fill:"#ff5c58",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"34.03377174978507",opacity:"0.2636163413758421",transform:"matrix(1.0742282380507913,-0.6391664044474588,0.6391664044474588,1.0742282380507913,-133.30590378832116,-225.06762711889436)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"13.373055185250985",opacity:"0.8726705337045912",transform:"matrix(0.947840818549115,0.31874407083449224,-0.31874407083449224,0.947840818549115,482.64398739792546,61.15429598490982)",fill:"none",stroke:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"38.20607374520945",opacity:"0.30085489897027917",transform:"matrix(0.9294283220167407,0.8358606308668604,-0.8358606308668604,0.9294283220167407,424.58467490690794,-104.85491982685306)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"20.30381738255501",opacity:"0.6785184671801652",transform:"matrix(0.9938856040396487,-0.11041470048296415,0.11041470048296415,0.9938856040396487,289.6218157181378,136.90375632681474)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"18.669357324120497",opacity:"0.6575368445004026",transform:"matrix(0.8753453416810841,-0.48349822419242244,0.48349822419242244,0.8753453416810841,290.78957167865883,-68.99021079222337)",fill:"#ff5c58",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"34.6844094516455",opacity:"0.4409424222203059",transform:"matrix(0.9955757113541631,0.09396277433990582,-0.09396277433990582,0.9955757113541631,428.22080504220344,-251.3116102527606)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"37.60867558154684",opacity:"0.1445054336727435",transform:"matrix(1.2171858832594042,-0.2845321169815874,0.2845321169815874,1.2171858832594042,24.645750448950025,-383.5278737376741)",fill:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"32.794407343640955",opacity:"0.2767332868589536",transform:"matrix(1.2434521524739712,-0.1277761499961862,0.1277761499961862,1.2434521524739712,616.0677410898945,57.14712244346788)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"19.485949492344034",opacity:"0.7592137588253466",transform:"matrix(0.7883200326962686,-0.6152654110623756,0.6152654110623756,0.7883200326962686,248.22322269886865,54.13543279115419)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.19360101215321",opacity:"0.44874471816313344",transform:"matrix(0.7725965110979194,-0.634897338976407,0.634897338976407,0.7725965110979194,359.4744605104281,-8.244242253234574)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"27.897460483637857",opacity:"0.2854849461789576",transform:"matrix(1.2299793951583662,-0.22282434222018796,0.22282434222018796,1.2299793951583662,89.36636688164285,159.35998335327554)",fill:"none",stroke:"#ffbd9b",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"36.27649639080377",opacity:"0.22023273250004471",transform:"matrix(1.2122519408471433,0.304869204598192,-0.304869204598192,1.2122519408471433,778.9754860971674,-303.21524296908626)",fill:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"30.156812483801453",opacity:"0.5595186722367804",transform:"matrix(0.8488054609464469,-0.5287052954789555,0.5287052954789555,0.8488054609464469,241.17140455197887,-118.62281838320263)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"28.465136667021834",opacity:"0.1925273132808426",transform:"matrix(1.1245857747312715,-0.5457168086765019,0.5457168086765019,1.1245857747312715,-115.94243357035177,187.50994458277995)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"22.772606059316328",opacity:"0.6364280141054937",transform:"matrix(0.8582258388406303,-0.5132722567471346,0.5132722567471346,0.8582258388406303,178.72306691122498,-100.93608993451369)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"35.54500352575896",opacity:"0.48087915178256946",transform:"matrix(0.958508856073423,-0.2850627524402622,0.2850627524402622,0.958508856073423,41.38010278460905,74.46026839745804)",fill:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"18.046398850828204",opacity:"0.9574403449777207",transform:"matrix(0.9646991492264526,0.26335442180027774,-0.26335442180027774,0.9646991492264526,496.8768531345968,30.894384742960142)",fill:"none",stroke:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"23.408844280637563",opacity:"0.6367804684088002",transform:"matrix(0.7081552981953446,0.7060567070978524,-0.7060567070978524,0.7081552981953446,533.5753487041859,25.04461043075338)",fill:"#ff5c58",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.55651638804689",opacity:"0.2642812811776739",transform:"matrix(1.2427530248429088,0.13440580063301039,-0.13440580063301039,1.2427530248429088,651.6587270374946,144.15439068218308)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"17.949129162646432",opacity:"0.798918311753063",transform:"matrix(0.8844518856945768,-0.46663139831274464,0.46663139831274464,0.8844518856945768,119.33917903123952,22.521968540329965)",fill:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"14.859938209965907",opacity:"0.8693897729801137",transform:"matrix(0.7233414119049179,0.6904905515815549,-0.6904905515815549,0.7233414119049179,672.1756703913004,164.30165808837796)",fill:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"40.562644811325725",opacity:"0.2642811599036019",transform:"matrix(1.177891378629033,0.41841594155982603,-0.41841594155982603,1.177891378629033,614.3428022176136,-403.04281080444673)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"23.019122039343472",opacity:"0.6892028121127827",transform:"matrix(0.9905348575016841,0.13726141509586143,-0.13726141509586143,0.9905348575016841,583.3595890428223,1.992116791112153)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"13.308157012883006",opacity:"0.8505629688734552",transform:"matrix(0.8484537296467857,-0.5292695614225885,0.5292695614225885,0.8484537296467857,116.00730993113373,73.15890688445796)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"29.936838172794538",opacity:"0.049708162293127356",transform:"matrix(1.69312962159218,-0.4425065925917051,0.4425065925917051,1.69312962159218,-163.92527185249548,-42.283279621731594)",fill:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"35.35551902487354",opacity:"0.38452574143774754",transform:"matrix(0.9479318226938659,-0.3184733262367278,0.3184733262367278,0.9479318226938659,532.2948246542818,9.461417984865989)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"21.351314321199105",opacity:"0.6423664559648137",transform:"matrix(0.9595094671283049,0.2816763790081737,-0.2816763790081737,0.9595094671283049,494.3770754450114,173.94164251177205)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"16.2854986019584",opacity:"0.8172883901867557",transform:"matrix(0.7200389045134103,0.693933697111711,-0.693933697111711,0.7200389045134103,753.3895891363628,115.75051520674276)",fill:"none",stroke:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"28.272569437891605",opacity:"0.3709642989706964",transform:"matrix(0.9903687702907983,0.1384546815123708,-0.1384546815123708,0.9903687702907983,641.3045839601917,-198.4974772323666)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"30.756526946174013",opacity:"0.19689600446076505",transform:"matrix(0.8948765357540839,0.8727519611875816,-0.8727519611875816,0.8948765357540839,718.4179499815281,-332.37245398434163)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"18.16667503216277",opacity:"0.7698989074328813",transform:"matrix(0.926112251002737,-0.37724805969367625,0.37724805969367625,0.926112251002737,230.9559506131129,136.08355114854578)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"21.885065989769494",opacity:"0.7925758768593798",transform:"matrix(0.9403425238414829,0.34022924309269803,-0.34022924309269803,0.9403425238414829,561.6935872022045,106.32026829640472)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"28.749315554570373",opacity:"0.2809432881863717",transform:"matrix(1.2495622703198281,0.03307767514740126,-0.03307767514740126,1.2495622703198281,697.7343379961311,-215.2606692272039)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"15.443229565023426",opacity:"0.795885989749451",transform:"matrix(0.9633116896753093,-0.26838514961692744,0.26838514961692744,0.9633116896753093,356.8859655086748,74.18377079864905)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"29.478637863200223",opacity:"0.17145715237847048",transform:"matrix(1.1292003958040162,-0.5361030368465127,0.5361030368465127,1.1292003958040162,534.3723451991259,-117.68676108281767)",fill:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.85911382368745",opacity:"0.5815606819356425",transform:"matrix(0.8877406248402884,0.46034398335176974,-0.46034398335176974,0.8877406248402884,722.8540374520534,157.3447868598775)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"18.498919664324916",opacity:"0.9321936095044238",transform:"matrix(0.9993315421687766,-0.03655774646466429,0.03655774646466429,0.9993315421687766,345.7373810131898,-2.0362046820878277)",fill:"#ffbd9b"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"13.693142541305319",opacity:"0.863489453033575",transform:"matrix(0.9989318178279983,-0.046208476828941844,0.046208476828941844,0.9989318178279983,426.74018408035937,-31.861084170371157)",fill:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"35.268122653482536",opacity:"0.0747390020798605",transform:"matrix(1.7106019611993228,0.3692437275581409,-0.3692437275581409,1.7106019611993228,162.4638308501252,-508.2100598787268)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"40.60128481498418",opacity:"-0.07392494469178357",transform:"matrix(1.6869113086032348,-0.4656503375994929,0.4656503375994929,1.6869113086032348,-160.74457489792087,77.88525043039954)",fill:"#2c2891",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"40.94105502846296",opacity:"0.5120942761336786",transform:"matrix(0.9025418585238841,-0.4306021291311194,0.4306021291311194,0.9025418585238841,141.144696882964,-160.86364847351163)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"36.596532889900544",opacity:"0.3372881407998708",transform:"matrix(0.7247904765392196,-0.688969349911918,0.688969349911918,0.7247904765392196,-157.60792428117813,251.90369391823623)",fill:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"25.921761180647998",opacity:"0.10736055772919317",transform:"matrix(1.475459727483159,-0.9410199745889151,0.9410199745889151,1.475459727483159,369.8087149891469,-11.015154621386046)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"33.04736653297553",opacity:"0.4608349328757705",transform:"matrix(0.9982348681428221,0.05938979730460901,-0.05938979730460901,0.9982348681428221,203.06883778473758,-131.3170558801445)",fill:"none",stroke:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"44.89232396679711",opacity:"0.08091988444936682",transform:"matrix(1.6321400698746786,0.6313626472238273,-0.6313626472238273,1.6321400698746786,392.8425252548857,81.32881514532562)",fill:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"30.61737391309776",opacity:"0.4198131748320779",transform:"matrix(0.8393141145334597,0.543646776082517,-0.543646776082517,0.8393141145334597,750.9343508175571,272.1917211169002)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.3306295959121",opacity:"0.7658690604199302",transform:"matrix(0.9970292456966028,0.07702391333646531,-0.07702391333646531,0.9970292456966028,495.1905213970417,-74.51667099407894)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"34.73405345005027",opacity:"0.5448379996351069",transform:"matrix(0.999616062540463,-0.027707896186850607,0.027707896186850607,0.999616062540463,170.7703617321028,-39.793976204333546)",fill:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"37.47511444510972",opacity:"0.37425387956885814",transform:"matrix(0.943842384170447,0.33039605603494476,-0.33039605603494476,0.943842384170447,354.094633226263,-215.17814033599382)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"36.143780999103996",opacity:"0.05442213361677595",transform:"matrix(1.6984447659652357,0.42164603278733215,-0.42164603278733215,1.6984447659652357,777.3188617276672,64.80917428335795)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"36.56633839492573",opacity:"0.3081899990048894",transform:"matrix(0.9118894984013848,-0.8549605503795311,0.8549605503795311,0.9118894984013848,-45.025579241467824,-248.21820622873884)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"51.17960397461315",opacity:"-0.06893970122033855",transform:"matrix(1.7235227941923668,-0.3032642047775109,0.3032642047775109,1.7235227941923668,-100.81759025041902,-626.4455964052045)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"21.660677019537395",opacity:"0.5358670064608531",transform:"matrix(0.8389240949497108,-0.5442484385947365,0.5442484385947365,0.8389240949497108,321.06690550885764,-77.19528425384175)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"19.072300852945485",opacity:"0.867975695412889",transform:"matrix(0.9560646494762371,-0.2931559073630955,0.2931559073630955,0.9560646494762371,235.4508086153137,-25.15734662214487)",fill:"#ffa6d5"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"34.44989454416138",opacity:"0.30763750302158366",transform:"matrix(1.2314596709209886,-0.21449260801988168,0.21449260801988168,1.2314596709209886,178.77763135840624,200.9846213927941)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"25.28901381671598",opacity:"0.5644023592835734",transform:"matrix(0.8557086099396285,-0.5174579933436034,0.5174579933436034,0.8557086099396285,277.36538352476487,235.65197416972285)",fill:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"17.981292274075628",opacity:"0.9360349057717411",transform:"matrix(0.9339565985462233,-0.35738644634620487,0.35738644634620487,0.9339565985462233,249.5906789609321,0.861810235563155)",fill:"#2c2891"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"26.875733205415827",opacity:"0.5570324433766652",transform:"matrix(0.9020873199288372,0.43155355081798114,-0.43155355081798114,0.9020873199288372,433.39482500429915,-120.17555443435748)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"34.08808709611311",opacity:"0.3815863678264644",transform:"matrix(0.9986117664686351,-0.05267390122624303,0.05267390122624303,0.9986117664686351,435.4871052873753,269.8367451414996)",fill:"#ff5c58",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"35.99078188960184",opacity:"0.1767831192608167",transform:"matrix(1.0971959609939557,0.5988831465140341,-0.5988831465140341,1.0971959609939557,691.0209658713641,313.9284179971748)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"29.749860014218438",opacity:"0.1177029301974728",transform:"matrix(1.2018664151199367,-0.3435361992669067,0.3435361992669067,1.2018664151199367,79.705570616574,-436.7592777611839)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"30.833740021494805",opacity:"0.15590334401171135",transform:"matrix(1.1270597886457088,0.5405887834739919,-0.5405887834739919,1.1270597886457088,495.8010750433953,306.4377146837421)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"18.463822400332052",opacity:"0.7297876650701348",transform:"matrix(0.9986616593917805,0.05171933933119487,-0.05171933933119487,0.9986616593917805,444.9879456327544,-116.82606277723028)",fill:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"22.793528027293668",opacity:"0.7781641681733864",transform:"matrix(0.9938739247677828,0.11051977952694102,-0.11051977952694102,0.9938739247677828,373.9537133656526,81.7689779219973)",fill:"none",stroke:"#ffbd9b"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"25.708002196035583",opacity:"0.6308646129962682",transform:"matrix(0.9997513299379795,0.022299737380541296,-0.022299737380541296,0.9997513299379795,236.087019462269,44.51826198899744)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"35.11116364325612",opacity:"0.12479613460197658",transform:"matrix(0.9873679933973254,-0.7665536156163764,0.7665536156163764,0.9873679933973254,232.57344151731564,-342.86038535715346)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"26.03272212160093",opacity:"0.5404016468296393",transform:"matrix(0.7329610166212789,-0.6802706432836135,0.6802706432836135,0.7329610166212789,151.16125402275594,319.87040716539934)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"39.79098241492075",opacity:"0.3910174789155494",transform:"matrix(0.8048673646848262,0.5934547373349571,-0.5934547373349571,0.8048673646848262,886.4854050047372,135.61533324792236)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"38.54718583364994",opacity:"0.19525872042670156",transform:"matrix(1.1070627632826489,0.5804412443589669,-0.5804412443589669,1.1070627632826489,760.7957003519333,275.6563883169359)",fill:"#00a19d",filter:"url(#bbburst-blur-3)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"22.464784793855586",opacity:"0.6675250663600203",transform:"matrix(0.9997402513869925,0.022791001660150523,-0.022791001660150523,0.9997402513869925,279.04108926629146,90.73208269007068)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"35.9851213840529",opacity:"0.48095453774484065",transform:"matrix(0.995413538124793,-0.09566550118972493,0.09566550118972493,0.995413538124793,157.15082077857866,143.97077409757281)",fill:"#ffbd9b",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-4",width:"19.341228594598842",opacity:"0.8473677178671943",transform:"matrix(0.9095580059880713,-0.41557698894790074,0.41557698894790074,0.9095580059880713,245.366383043814,-25.37783187969785)",fill:"#00a19d"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"31.122608075162102",opacity:"0.42666818743213764",transform:"matrix(0.9347556836933607,0.35529116482535517,-0.35529116482535517,0.9347556836933607,505.6252503477608,277.63323531713723)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"33.05237437541884",opacity:"0.06168935576936119",transform:"matrix(1.579038218120365,0.7544125567057212,-0.7544125567057212,1.579038218120365,1036.735508970527,-462.98419402429863)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"27.98034949739368",opacity:"0.44117623848325294",transform:"matrix(0.9188719837015616,-0.3945557977882939,0.3945557977882939,0.9188719837015616,92.22170289280186,248.7813573851751)",fill:"#00a19d",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-8",width:"37.12621837593663",opacity:"0.4384973373264587",transform:"matrix(0.8295285542312407,-0.5584643029908245,0.5584643029908245,0.8295285542312407,368.37631888106404,223.22648724541313)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"27.983276816484043",opacity:"0.5593999594345938",transform:"matrix(0.9575329508745078,0.28832385955650164,-0.28832385955650164,0.9575329508745078,693.8746966903442,62.64204380075341)",fill:"none",stroke:"#2c2891",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"43.58416436486924",opacity:"0.07855832738612067",transform:"matrix(1.7363088580396244,-0.21847551234208357,0.21847551234208357,1.7363088580396244,600.154615794529,-32.74065307102569)",fill:"#ffa6d5",filter:"url(#bbburst-blur-4)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"41.663330985679025",opacity:"0.3861697969354583",transform:"matrix(0.9009474079936586,0.4339282982584889,-0.4339282982584889,0.9009474079936586,681.5751343323127,-214.83300033492876)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-2)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"16.79244977896319",opacity:"0.7531249130021647",transform:"matrix(0.9659176055855678,-0.2588497232369459,0.2588497232369459,0.9659176055855678,207.3685886368855,-60.24495098134241)",fill:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-6",width:"15.914272257549815",opacity:"0.9298545212577191",transform:"matrix(0.9584742608796021,0.28517905117890485,-0.28517905117890485,0.9584742608796021,537.8917654535644,11.60817172849687)",fill:"#ff5c58"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"18.48447167035644",opacity:"0.7667763650842055",transform:"matrix(0.9723227386716432,-0.23364180247138008,0.23364180247138008,0.9723227386716432,199.31630099331582,50.154995787129565)",fill:"none",stroke:"#ffa6d5",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-10",width:"21.010553712678306",opacity:"0.7007416847786461",transform:"matrix(0.8507328033448063,0.5255984182939359,-0.5255984182939359,0.8507328033448063,724.7619710169704,107.96888592493974)",fill:"none",stroke:"#00a19d",filter:"url(#bbburst-blur-1)"}),r("use",{"xlink:href":"#bbburst-shape-1",width:"34.01792536906908",opacity:"-0.09511205163284386",transform:"matrix(1.7021267138295475,0.4065275514252701,-0.4065275514252701,1.7021267138295475,883.1938942223621,59.67886736497519)",fill:"#ffbd9b",filter:"url(#bbburst-blur-4)"})],-1),V={class:"z-1 flex flex-1 flex-col items-center justify-center gap-4"},G=r("img",{src:B,class:"h-40 w-40"},null,-1),C=r("div",{class:"bg-gradient-[120deg,#AE3FF5_30%,#6EC0F9] bg-gradient-linear bg-clip-text text-4xl text-transparent font-bold"}," Fantastic-mobile ",-1),Z=r("div",{class:"text-3xl text-dark/80 font-bold dark-text-light/80"}," 别具一格, 自成一派 ",-1),j={class:"mt-4 flex gap-4"},$=r("div",{class:"rounded-2 bg-green/20 px-4 py-2 text-sm/6 c-green-6"},[r("p",{class:"my-1"}," 本框架支持与 Vant 组件库解耦,意味着可以轻松将 Vant 组件库替换成其他 UI 组件库,并且不会影响框架原本的功能。 "),r("p",{class:"my-1"}," 演示站挑选了以下 2 款组件库作为示例,你可以点击访问并预览。 ")],-1),D={class:"mt-4 flex flex-wrap justify-center gap-4"},N=d({__name:"index",setup(I){function f(u){window.open(u,"_blank")}const s=c(!1);function o(){s.value=!0}return(u,t)=>{const n=v,l=g,h=x,p=m;return w(),k(p,{navbar:!1,tabbar:"",copyright:""},{default:b(()=>[L,r("div",V,[G,C,Z,r("div",j,[i(l,{onClick:t[0]||(t[0]=e=>f("https://fantastic-mobile.hurui.me"))},{default:b(()=>[i(n,{name:"i-ri:file-text-line"}),a(" 开发文档 ")]),_:1}),i(l,{outline:"",onClick:o},{default:b(()=>[a(" 切换组件库 ")]),_:1})]),i(h,{modelValue:y(s),"onUpdate:modelValue":t[3]||(t[3]=e=>_(s)?s.value=e:null),title:"切换组件库",overlay:""},{default:b(()=>[$,r("div",D,[i(l,{onClick:t[1]||(t[1]=e=>f("https://fantastic-mobile.hurui.me/varlet-example/"))},{default:b(()=>[a(" 访问 Varlet 演示站 ")]),_:1}),i(l,{onClick:t[2]||(t[2]=e=>f("https://fantastic-mobile.hurui.me/nut-example/"))},{default:b(()=>[a(" 访问 NutUI 演示站 ")]),_:1})])]),_:1},8,["modelValue"])])]),_:1})}}});export{N as default}; diff --git a/assets/index-BSEnowPx.js.br b/assets/index-BSEnowPx.js.br new file mode 100644 index 00000000..9d27bec0 Binary files /dev/null and b/assets/index-BSEnowPx.js.br differ diff --git a/assets/index-BSEnowPx.js.gz b/assets/index-BSEnowPx.js.gz new file mode 100644 index 00000000..8a662951 Binary files /dev/null and b/assets/index-BSEnowPx.js.gz differ diff --git a/assets/index-BvzAowwi.js b/assets/index-BvzAowwi.js new file mode 100644 index 00000000..4a404209 --- /dev/null +++ b/assets/index-BvzAowwi.js @@ -0,0 +1 @@ +import{_ as U}from"./index-Cwg3TLNR.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as x,o as l,j as m,a9 as v,aq as C,ar as j,c as q,w as e,k as E,m as $,a5 as V,b as s,u as k,a as t,t as H,e as o,U as f,x as M}from"./index-DpnASd8N.js";import{s as h}from"./function-call-CCLiThI7.js";const R=x({name:"AuthAll",__name:"index",props:{value:{}},setup(_){const u=_;function i(){return C().authAll(u.value)}return(r,b)=>(l(),m("div",null,[i()?v(r.$slots,"default",{key:0}):v(r.$slots,"no-auth",{key:1})]))}}),F=x({name:"Auth",__name:"index",props:{value:{}},setup(_){const u=_;function i(){return C().auth(u.value)}return(r,b)=>(l(),m("div",null,[i()?v(r.$slots,"default",{key:0}):v(r.$slots,"no-auth",{key:1})]))}}),G=t("h3",null,"切换帐号",-1),I=t("h3",null,"帐号权限",-1),J=t("h3",null,"访问鉴权页面",-1),K=t("h3",null,"鉴权组件(请对照代码查看)",-1),O=t("h3",null,"鉴权指令(请对照代码查看)",-1),Q={class:"flex flex-col gap-2"},W=t("h3",null,"鉴权函数(请对照代码查看)",-1),X={class:"flex flex-col gap-2"},oe=x({__name:"index",setup(_){const u=E(),i=j(),{auth:r,authAll:b}=C();async function A(p){await i.login({account:p,password:""}),await i.getPermissions(),u.push("/reload")}function B(){u.push({path:"/feature/permission/test"})}function y(p){r(p)?h({type:"success",message:"校验通过"}):h({type:"danger",message:"校验不通过"})}function T(p){b(p)?h({type:"success",message:"校验通过"}):h({type:"danger",message:"校验不通过"})}return(p,n)=>{const z=M,c=$("VanButton"),a=$("VanTag"),w=F,N=R,S=L,D=U,g=V("auth"),P=V("auth-all");return l(),q(D,{navbar:"","navbar-start-side":"back"},{default:e(()=>[s(S,null,{default:e(()=>[G,s(z,{modelValue:k(i).account,"onUpdate:modelValue":n[0]||(n[0]=d=>k(i).account=d),options:[{label:"admin",value:"admin"},{label:"test",value:"test"},{label:"hooray(无权限)",value:"hooray"}],onChange:A},null,8,["modelValue"]),I,t("div",null,H(k(i).permissions),1),J,t("div",null,[s(c,{onClick:B},{default:e(()=>[o(" 点击访问 ")]),_:1})]),K,t("div",null,[s(w,{value:"permission.browse",style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 权限 ")]),_:1})]),_:1}),s(w,{value:"permission.create",style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.create 权限 ")]),_:1})]),_:1}),s(w,{value:["permission.browse","permission.create"],style:{"margin-bottom":"10px"}},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 或 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 或 permission.create 权限 ")]),_:1})]),_:1}),s(N,{value:["permission.browse","permission.create"]},{"no-auth":e(()=>[s(a,{type:"danger"},{default:e(()=>[o(" 你没有 permission.browse 和 permission.create 权限 ")]),_:1})]),default:e(()=>[s(a,{type:"primary"},{default:e(()=>[o(" 你有 permission.browse 和 permission.create 权限 ")]),_:1})]),_:1})]),O,t("div",Q,[f((l(),m("div",null,[o(" 如果你有 permission.browse 权限则能看到这句话 ")])),[[g,"permission.browse"]]),f((l(),m("div",null,[o(" 如果你有 permission.create 权限则能看到这句话 ")])),[[g,"permission.create"]]),f((l(),m("div",null,[o(" 如果你有 permission.browse 或 permission.create 权限则能看到这句话 ")])),[[g,["permission.browse","permission.create"]]]),f((l(),m("div",null,[o(" 如果你有 permission.browse 和 permission.create 权限则能看到这句话 ")])),[[P,["permission.browse","permission.create"]]])]),W,t("div",null,[t("div",X,[t("div",null,[s(c,{size:"small",onClick:n[1]||(n[1]=d=>y("permission.browse"))},{default:e(()=>[o(" 校验 permission.browse 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[2]||(n[2]=d=>y("permission.create"))},{default:e(()=>[o(" 校验 permission.create 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[3]||(n[3]=d=>y(["permission.browse","permission.create"]))},{default:e(()=>[o(" 校验 permission.browse 或 permission.create 权限 ")]),_:1})]),t("div",null,[s(c,{size:"small",onClick:n[4]||(n[4]=d=>T(["permission.browse","permission.create"]))},{default:e(()=>[o(" 校验 permission.browse 和 permission.create 权限 ")]),_:1})])])])]),_:1})]),_:1})}}});export{oe as default}; diff --git a/assets/index-BvzAowwi.js.br b/assets/index-BvzAowwi.js.br new file mode 100644 index 00000000..5aa43e8b Binary files /dev/null and b/assets/index-BvzAowwi.js.br differ diff --git a/assets/index-BvzAowwi.js.gz b/assets/index-BvzAowwi.js.gz new file mode 100644 index 00000000..efd45162 Binary files /dev/null and b/assets/index-BvzAowwi.js.gz differ diff --git a/assets/index-COQOm5wk.css b/assets/index-COQOm5wk.css new file mode 100644 index 00000000..bb426fa5 --- /dev/null +++ b/assets/index-COQOm5wk.css @@ -0,0 +1 @@ +.navbar-static[data-v-014dd837]{position:absolute;top:0;left:0;z-index:1000;width:100%}.navbar-fixed[data-v-014dd837]{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.navbar.shadow-top[data-v-014dd837]{box-shadow:0 min(2.667vw,16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.tabbar[data-v-014dd837]{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:1000;width:min(100%,600px)}.tabbar.shadow-bottom[data-v-014dd837]{box-shadow:0 max(-2.667vw,-16px) min(2.667vw,16px) max(-2.667vw,-16px) var(--g-border-color)}.backtop[data-v-014dd837]{position:fixed;right:calc(50% - min(274.4px,45.733%));bottom:min(4.267vw,25.6px);z-index:1000} diff --git a/assets/index-COQOm5wk.css.br b/assets/index-COQOm5wk.css.br new file mode 100644 index 00000000..8c58cdee Binary files /dev/null and b/assets/index-COQOm5wk.css.br differ diff --git a/assets/index-COQOm5wk.css.gz b/assets/index-COQOm5wk.css.gz new file mode 100644 index 00000000..cd058590 Binary files /dev/null and b/assets/index-COQOm5wk.css.gz differ diff --git a/assets/index-Cwg3TLNR.js b/assets/index-Cwg3TLNR.js new file mode 100644 index 00000000..e47fb246 --- /dev/null +++ b/assets/index-Cwg3TLNR.js @@ -0,0 +1 @@ +import{d as C,O as $,r as h,o as r,j as d,a9 as S,b as f,w as m,u as e,q as x,t as w,p as _,aa as A,ab as V,ac as z,k as O,_ as T,X as E,N as Q,P as he,ad as ge,c as H,ae as me,af as ee,R as te,a as b,ag as ye,ah as xe,e as ue,ai as _e,aj as ke,ak as ae,F as I,n as U,i as we,al as Ce,l as Se,h as se,am as oe,an as ne,ao as N,ap as Te,U as le,V as re,W as ie,a3 as $e,m as Be,Y as Re,Z as Ie,a0 as Me,z as He}from"./index-DpnASd8N.js";const Pe={class:"relative inline-flex"},Le=C({__name:"HBadge",props:{value:{type:[String,Number,Boolean]}},setup(l){const n=l,u=$(()=>{switch(typeof n.value){case"string":return n.value.length>0;case"number":return n.value>0;case"boolean":return n.value;default:return n.value!==void 0&&n.value!==null}}),s=h({enterActiveClass:"ease-in-out duration-500",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in-out duration-500",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"});return(o,i)=>(r(),d("div",Pe,[S(o.$slots,"default"),f(z,A(V(e(s))),{default:m(()=>[e(u)?(r(),d("span",{key:0,class:x(["absolute start-[50%] top-0 z-20 whitespace-nowrap rounded-full bg-ui-primary px-1.5 text-xs text-ui-text ring-1 ring-light -translate-y-[50%] dark-ring-dark",{"-indent-9999 w-1.5 h-1.5 px-0! start-[100%]! -translate-x-[50%] rtl:translate-x-[50%] before:content-empty before:block before:bg-ui-primary before:w-full before:h-full before:rounded-full before:absolute before:start-0 before:top-0 before:animate-ping":o.value===!0}])},w(o.value),3)):_("",!0)]),_:1},16)]))}}),Fe=C({__name:"index",setup(l){const n=O();return(u,s)=>{const o=T;return r(),d("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).back())},[f(o,{name:"i-ic:round-arrow-back-ios",class:"text-4"})])}}}),je=C({__name:"index",setup(l){const n=E();return(u,s)=>{const o=T;return r(),d("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).currentColorScheme&&e(n).setColorScheme(e(n).currentColorScheme==="dark"?"light":"dark"))},[f(o,{name:{light:"i-ri:sun-line",dark:"i-ri:moon-line","":"i-codicon:color-mode"}[e(n).settings.app.colorScheme],class:"text-4"},null,8,["name"])])}}}),Ne=C({__name:"index",setup(l){const n=O();return(u,s)=>{const o=T;return r(),d("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).forward())},[f(o,{name:"i-ic:round-arrow-forward-ios",class:"text-4"})])}}}),Ae=C({__name:"index",setup(l){const n=O();return(u,s)=>{const o=T;return r(),d("div",{class:"h-full flex-center px-1",onClick:s[0]||(s[0]=i=>e(n).push("/"))},[f(o,{name:"i-ic:baseline-home",class:"text-4"})])}}}),Ve={class:"fixed inset-0 overflow-y-auto"},ze={class:"min-h-full flex items-end justify-center p-4 text-center lg-items-center"},Oe={key:0,flex:"~ items-center justify-between","px-4":"","py-3":"","border-b":"~ solid stone/15","text-6":""},Ee={key:1,flex:"~ items-center justify-end","px-4":"","py-3":"","border-t":"~ solid stone/15"},Ue=C({__name:"HDialog",props:Q({appear:{type:Boolean,default:!1},title:{},noTitle:{type:Boolean,default:!1},preventClose:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Q(["close"],["update:modelValue"]),setup(l,{emit:n}){const u=n,s=he(l,"modelValue"),o=ge(),i=h({enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}),a=$(()=>({enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 lg-translate-y-0 lg-scale-95",enterTo:"opacity-100 translate-y-0 lg-scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 lg-scale-100",leaveTo:"opacity-0 translate-y-4 lg-translate-y-0 lg-scale-95"}));function g(){s.value=!1,u("close")}return(p,c)=>{const B=T;return r(),H(e(ke),{as:"template",appear:p.appear,show:s.value},{default:m(()=>[f(e(me),{class:"fixed inset-0 z-2000 flex",onClose:c[0]||(c[0]=P=>!p.preventClose&&g())},{default:m(()=>[f(e(ee),te({as:"template",appear:p.appear},e(i)),{default:m(()=>[b("div",{class:x(["fixed inset-0 bg-stone-2/75 transition-opacity dark-bg-stone-8/75",{"backdrop-blur-sm":p.overlay}])},null,2)]),_:1},16,["appear"]),b("div",Ve,[b("div",ze,[f(e(ee),te({as:"template",appear:p.appear},e(a)),{default:m(()=>[f(e(ye),{class:"relative w-full flex flex-col overflow-hidden rounded-xl bg-white text-left shadow-xl lg-my-8 lg-max-w-lg dark-bg-stone-8"},{default:m(()=>[p.noTitle?_("",!0):(r(),d("div",Oe,[f(e(xe),{"m-0":"","text-lg":"","text-dark":"","dark-text-white":""},{default:m(()=>[ue(w(p.title),1)]),_:1}),f(B,{name:"i-carbon:close","cursor-pointer":"",onClick:g})])),f(e(_e),{"m-0":"","overflow-y-auto":"","p-4":"","text-start":""},{default:m(()=>[S(p.$slots,"default")]),_:3}),e(o).footer?(r(),d("div",Ee,[S(p.$slots,"footer")])):_("",!0)]),_:3})]),_:3},16,["appear"])])])]),_:3})]),_:3},8,["appear","show"])}}}),De={class:"flex-col-center gap-2"},We=["onClick"],Je=C({__name:"index",setup(l){const n=E(),u=h(!1),s=$(()=>Object.keys(ae).map(o=>({label:ae[o],disabled:n.lang===o,handle:()=>{n.lang!==o&&(n.setDefaultLang(o),u.value=!1)}})));return(o,i)=>{const a=T,g=Ue;return r(),d(I,null,[b("div",{class:"h-full flex-center px-1",onClick:i[0]||(i[0]=p=>u.value=!0)},[f(a,{name:"i-ri:translate",class:"text-4"})]),f(g,{modelValue:e(u),"onUpdate:modelValue":i[1]||(i[1]=p=>we(u)?u.value=p:null),"no-title":""},{default:m(()=>[b("div",De,[(r(!0),d(I,null,U(e(s),(p,c)=>(r(),d("div",{key:c,class:x(["w-full flex-center rounded-md px-3 py-2",p.disabled?"text-ui-primary/30":"text-ui-primary"]),onClick:p.handle},w(p.label),11,We))),128))])]),_:1},8,["modelValue"])],64)}}}),Ye=/\d/,qe=["-","_","/","."];function Ge(l=""){if(!Ye.test(l))return l!==l.toLowerCase()}function Xe(l,n){const u=qe,s=[];if(!l||typeof l!="string")return s;let o="",i,a;for(const g of l){const p=u.includes(g);if(p===!0){s.push(o),o="",i=void 0;continue}const c=Ge(g);if(a===!1){if(i===!1&&c===!0){s.push(o),o=g,i=c;continue}if(i===!0&&c===!1&&o.length>1){const B=o.at(-1);s.push(o.slice(0,Math.max(0,o.length-1))),o=B+g,i=c;continue}}o+=g,i=c,a=p}return s.push(o),s}function Ze(l){return l?l[0].toUpperCase()+l.slice(1):""}function Ke(l,n){return l?(Array.isArray(l)?l:Xe(l)).map(u=>Ze(n!=null&&n.normalize?u.toLowerCase():u)).join(""):""}const ce=C({name:"HeaderSide",__name:"index",props:{side:{}},setup(l){const n=l,u=Object.assign({"./Back/index.vue":Fe,"./ColorScheme/index.vue":je,"./Forward/index.vue":Ne,"./Home/index.vue":Ae,"./I18n/index.vue":Je}),s=$(()=>n.side?typeof n.side=="string"?[n.side]:n.side:[]);return(o,i)=>(r(!0),d(I,null,U(e(s),a=>(r(),H(Ce(e(u)[`./${e(Ke)(a)}/index.vue`]),{key:a}))),128))}}),Qe=l=>(Ie("data-v-014dd837"),l=l(),Me(),l),et={class:"h-full flex-center whitespace-nowrap px-2"},tt={class:"truncate"},at={class:"h-full flex-center whitespace-nowrap px-2"},st={key:0,class:"copyright relative flex flex-wrap items-center justify-center p-4 text-sm text-stone-5 mix-blend-difference"},ot=Qe(()=>b("span",{class:"px-1"},"Copyright",-1)),nt={key:0,class:"px-1"},lt=["href"],rt={key:1,class:"px-1"},it={key:2,href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},ct={class:"h-full flex-center px-4"},ut={key:1,class:"text-xs"},dt=C({name:"PageLayout",__name:"index",props:{titleCenter:{type:Boolean,default:!0},navbar:{type:Boolean,default:void 0},navbarMode:{},navbarStartSide:{},navbarEndSide:{},tabbar:{type:Boolean,default:void 0},tabbarName:{},copyright:{type:Boolean,default:void 0},backTop:{type:Boolean,default:void 0},savedPosition:{type:Boolean},scrollTop:{},scrollLeft:{},scrollWithAnimation:{type:Boolean}},emits:["scroll","reachTop","reachBottom"],setup(l,{expose:n,emit:u}){const s=l,o=u,i=$e(),a=E(),{t:g,te:p}=Se(),c=h();n({ref:c});function B(t){L(),F(),j(),o("scroll",t),t.target.scrollTop===0&&o("reachTop"),Math.ceil(t.target.scrollTop+t.target.clientHeight)>=t.target.scrollHeight&&o("reachBottom")}se(()=>{L(),F(),j()}),oe(()=>{L(),F(),j()});const P=h(),D=h(),R=h(0);se(()=>{const{width:t}=ne(P,void 0,{box:"border-box"}),{width:y}=ne(D,void 0,{box:"border-box"});N([t,y],k=>{R.value=Math.max(...k)},{immediate:!0})});const W=h(),M=h(0),J=h(!1),Y=$(()=>{var t;return s.navbar??a.settings.navbar.enable?Number.parseInt((t=W.value)==null?void 0:t.clientHeight):0});function L(){M.value=c.value.scrollTop}N(M,(t,y)=>{J.value=(s.navbarMode??a.settings.navbar.mode)==="sticky"&&t>y&&t>Y.value});const q=h(!1);function F(){const t=c.value.scrollTop,y=c.value.clientHeight,k=c.value.scrollHeight;q.value=Math.ceil(t+y){var t;return a.settings.tabbar.list.length>0?Object.prototype.hasOwnProperty.call(a.settings.tabbar.list[0],"name")?((t=a.settings.tabbar.list.find(y=>y.name===s.tabbarName))==null?void 0:t.list)??a.settings.tabbar.list[0].list??[]:a.settings.tabbar.list:[]});function G(t){return i.fullPath===t.path?t.activeIcon??t.icon??void 0:t.icon??void 0}const X=h(0);function j(){X.value=c.value.scrollTop}function pe(){c.value.scrollTo({top:0,behavior:"smooth"})}N([()=>s.scrollTop,()=>s.scrollLeft],t=>{setTimeout(()=>{c.value.scrollTo({top:t[0],left:t[1],behavior:s.scrollWithAnimation?"smooth":"auto"})},0)},{immediate:!0});const Z=h(0),K=h(0);return oe(()=>{s.savedPosition&&Re(()=>{c.value.scrollTo({top:Z.value,left:K.value,behavior:"auto"})})}),Te((t,y,k)=>{s.savedPosition&&(Z.value=c.value.scrollTop,K.value=c.value.scrollLeft),k()}),(t,y)=>{const k=T,fe=Le,ve=Be("RouterLink");return r(),d("div",{ref_key:"layoutRef",ref:c,class:"relative h-vh flex flex-col overflow-auto overscroll-none supports-[(height:100dvh)]:h-dvh",onScroll:y[0]||(y[0]=v=>B(v))},[le(b("header",{ref_key:"navbarRef",ref:W,class:x(["navbar w-full flex-center bg-[var(--g-navbar-bg)] text-[var(--g-navbar-color)] transition-all pt-safe h+safe-t-[var(--g-navbar-height)]",{"navbar-static":(t.navbarMode??e(a).settings.navbar.mode)==="static","navbar-fixed":(t.navbarMode??e(a).settings.navbar.mode)!=="static",...(t.navbarMode??e(a).settings.navbar.mode)==="show-hide-fixed"&&{"-top-[var(--g-navbar-height)]!":e(M)[f(ce,{side:t.navbarStartSide},null,8,["side"])],!0)])],512)],4),b("div",{class:x(["min-w-0 flex-1 text-sm",{"text-center":t.titleCenter}])},[b("div",tt,[S(t.$slots,"navbar",{},()=>{var v;return[ue(w(((v=e(a).customTitleList.find(be=>be.fullPath===e(i).fullPath))==null?void 0:v.title)||e(a).title&&(e(p)(e(a).title)?e(g)(e(a).title):e(a).title)),1)]},!0)])],2),b("div",{class:"h-full flex items-center justify-end",style:ie({...t.titleCenter&&e(R)&&{width:`${e(R)}px`}})},[b("div",{ref_key:"endSideRef",ref:D,class:"h-full flex-center whitespace-nowrap"},[b("div",at,[S(t.$slots,"navbar-end",{},()=>[f(ce,{side:t.navbarEndSide},null,8,["side"])],!0)])],512)],4)],2),[[re,t.navbar??e(a).settings.navbar.enable]]),b("div",{class:x(["relative flex flex-1 flex-col transition-margin",{...(t.navbar??e(a).settings.navbar.enable)&&{"mt-safe":(t.navbarMode??e(a).settings.navbar.mode)==="show-hide-fixed","mt+safe-[var(--g-navbar-height)]":(t.navbarMode??e(a).settings.navbar.mode)!=="show-hide-fixed"},"mb+safe-[var(--g-tabbar-height)]":t.tabbar??e(a).settings.tabbar.enable}])},[S(t.$slots,"default",{},void 0,!0),f(z,A(V({enterActiveClass:"ease-out",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"})),{default:m(()=>[t.copyright??e(a).settings.copyright.enable?(r(),d("div",st,[ot,f(k,{name:"i-ri:copyright-line",class:"text-lg"}),e(a).settings.copyright.dates?(r(),d("span",nt,w(e(a).settings.copyright.dates),1)):_("",!0),e(a).settings.copyright.company?(r(),d(I,{key:1},[e(a).settings.copyright.website?(r(),d("a",{key:0,href:e(a).settings.copyright.website,target:"_blank",rel:"noopener",class:"px-1 text-center text-stone-5 no-underline"},w(e(a).settings.copyright.company),9,lt)):(r(),d("span",rt,w(e(a).settings.copyright.company),1))],64)):_("",!0),e(a).settings.copyright.beian?(r(),d("a",it,w(e(a).settings.copyright.beian),1)):_("",!0)])):_("",!0)]),_:1},16)],2),le(b("footer",{class:x(["tabbar w-full bg-[var(--g-tabbar-bg)] transition-all pb-safe h+safe-b-[calc(var(--g-tabbar-height))]",{"shadow-bottom":e(q)}])},[b("div",ct,[S(t.$slots,"tabbar",{},()=>[(r(!0),d(I,null,U(e(de),v=>(r(),H(ve,{key:JSON.stringify(v),class:x(["flex flex-1 flex-col items-center text-[var(--g-tabbar-color)] no-underline transition-all",{"text-[var(--g-tabbar-active-color)]!":e(i).fullPath===v.path}]),to:v.path,replace:""},{default:m(()=>[f(fe,{value:v.badge?typeof v.badge=="boolean"?v.badge:typeof v.badge=="function"?v.badge():v.badge:!1,class:"flex-1 flex-col items-center gap-[2px]"},{default:m(()=>[G(v)?(r(),H(k,{key:0,name:G(v)??"",class:x(v.text?"text-6":"text-8")},null,8,["name","class"])):_("",!0),v.text?(r(),d("div",ut,w(e(g)(v.text)),1)):_("",!0)]),_:2},1032,["value"])]),_:2},1032,["class","to"]))),128))],!0)])],2),[[re,t.tabbar??e(a).settings.tabbar.enable]]),f(z,A(V({enterActiveClass:"ease-out duration-300",enterFromClass:"opacity-0 translate-y-4",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"ease-in duration-200",leaveFromClass:"opacity-100 scale-100",leaveToClass:"opacity-0 scale-50"})),{default:m(()=>[(t.backTop??e(a).settings.app.enableBackTop)&&e(X)>=200?(r(),d("div",{key:0,class:x(["backtop h-12 w-12 flex cursor-pointer items-center justify-center rounded-full bg-white shadow-lg ring-1 ring-stone-3 ring-inset active:bg-stone-1 dark-bg-dark dark-ring-stone-7 dark-active:bg-stone-9",{"bottom+safe-[calc(var(--g-tabbar-height)+16px)]!":t.tabbar??e(a).settings.tabbar.enable}]),onClick:pe},[f(k,{name:"i-icon-park-outline:to-top-one",class:"text-6"})],2)):_("",!0)]),_:1},16)],544)}}}),ft=He(dt,[["__scopeId","data-v-014dd837"]]);export{ft as _,Ue as a,Le as b}; diff --git a/assets/index-Cwg3TLNR.js.br b/assets/index-Cwg3TLNR.js.br new file mode 100644 index 00000000..3fd6a925 Binary files /dev/null and b/assets/index-Cwg3TLNR.js.br differ diff --git a/assets/index-Cwg3TLNR.js.gz b/assets/index-Cwg3TLNR.js.gz new file mode 100644 index 00000000..315468b3 Binary files /dev/null and b/assets/index-Cwg3TLNR.js.gz differ diff --git a/assets/index-DfL3qP8A.css b/assets/index-DfL3qP8A.css new file mode 100644 index 00000000..dfe589e7 --- /dev/null +++ b/assets/index-DfL3qP8A.css @@ -0,0 +1,9 @@ +.m-message-container{position:fixed;z-index:1010;pointer-events:none;display:flex;flex-direction:column;box-sizing:border-box;padding:min(4vw,24px);background-color:#fff0;transition:all 1s ease-in-out}.m-message-container.is-top-left,.m-message-container.is-top-center,.m-message-container.is-top-right{width:100%;top:0;left:0}.m-message-container.is-top-left{align-items:flex-start}.m-message-container.is-top-center{align-items:center}.m-message-container.is-top-right{align-items:flex-end}.m-message-container.is-center{width:100%;height:100%;left:0;top:0;align-items:center;justify-content:center}.m-message-container.is-bottom-left,.m-message-container.is-bottom-center,.m-message-container.is-bottom-right{bottom:0;left:0;width:100%;justify-content:flex-end}.m-message-container.is-bottom-left{align-items:flex-start}.m-message-container.is-bottom-center{align-items:center}.m-message-container.is-bottom-right{align-items:flex-end}.m-message-container.has-mask{background-color:#ffffff4d;width:100%;height:100%;pointer-events:all}.m-message-wrapper{display:inline-block;max-width:min(133.333vw,800px)}.m-message-wrapper+.m-message-wrapper{margin-top:min(4vw,24px)}.m-message-wrapper:before,.m-message-wrapper:after{content:"";clear:both;display:table}.m-message{display:flex;align-items:center;padding:min(2.667vw,16px);font-size:min(3.733vw,22.4px);overflow:hidden;border-radius:min(1.067vw,6.4px);box-sizing:border-box;box-shadow:0 min(.267vw,1.6px) min(2.133vw,12.8px) #00000026;background:#fff;pointer-events:all;position:relative;min-width:min(40vw,240px)}.m-message-icons{float:left;box-sizing:border-box;margin-right:min(2.667vw,16px)}.m-message--title{font-size:min(3.733vw,22.4px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-message-content{box-sizing:border-box;overflow:auto;width:100%}.m-message--description{line-height:1.6;color:#0e1921}.m-message--title+.m-message--description{margin-top:min(1.333vw,8px)}.m-message--icon{width:min(6.667vw,40px);height:min(6.667vw,40px);vertical-align:middle;display:inline-block;border-radius:50%}.m-message--control{position:relative;height:100%;align-self:flex-start;white-space:nowrap;margin-right:max(-1.333vw,-8px);margin-left:min(2.667vw,16px);margin-top:min(.8vw,4.8px)}.m-message--button{border:none;outline:none;background:none;cursor:pointer;font-size:min(4vw,24px);color:#646464;font-weight:600;padding:0;width:min(5.333vw,32px);height:min(5.333vw,32px);line-height:min(5.333vw,32px);text-align:center;vertical-align:middle}.m-message--button:hover{color:#f56c6c}.m-message--arrow-down.is-collapsed{transform:rotate(90deg)}.m-message-fade-enter-active{animation:m-message-fade-in-down .3s}.m-message-fade-leave-active{animation:m-message-fade-out .3s}@keyframes m-message-fade-in-down{0%{opacity:0;transform:translateY(max(-5.333vw,-32px))}to{opacity:1;transform:translateY(0)}}@keyframes m-message-fade-out{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:max(-12vw,-72px)}}/*! + * OverlayScrollbars + * Version: 2.10.0 + * + * Copyright (c) Rene Haas | KingSora. + * https://github.com/KingSora + * + * Released under the MIT license. + */.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:max(-35.467vw,-212.8px);top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:min(2.667vw,16px);width:min(2.667vw,16px);height:min(2.667vw,16px)}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:max(-35.467vw,-212.8px);transform:scale(10)}.os-size-observer-listener.ltr{margin-right:max(-70.933vw,-425.6px);margin-left:0}.os-size-observer-listener.rtl{margin-left:max(-70.933vw,-425.6px);margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:min(.267vw,1.6px);padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + min(.267vw,1.6px));contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + min(.267vw,1.6px));top:max(-.267vw,-1.6px)}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:min(.267vw,1.6px);min-width:min(.267vw,1.6px)}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:min(.267vw,1.6px);min-height:min(.267vw,1.6px);width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:min(.267vw,1.6px)!important;height:min(.267vw,1.6px)!important;padding:0!important;margin:max(-.267vw,-1.6px)!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) )}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: min(8.8vw, 52.8px);--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: min(2.667vw, 16px);--os-padding-perpendicular: min(.533vw, 3.2px);--os-padding-axis: min(.533vw, 3.2px);--os-track-border-radius: min(2.667vw, 16px);--os-handle-interactive-area-offset: min(1.067vw, 6.4px);--os-handle-border-radius: min(2.667vw, 16px)}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.mode[data-v-b9b68fc9]:after{position:absolute;top:20%;left:20%;width:60%;height:60%;border-radius:8px;--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;content:""}.dark .mode[data-v-b9b68fc9]:after{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.mode.mode-fade[data-v-b9b68fc9]:after{animation:transition-mode-fade-after-b9b68fc9 1.5s infinite}@keyframes transition-mode-fade-after-b9b68fc9{0%{opacity:1}30%,35%{opacity:0}65%{opacity:1}}.mode.mode-slide-left[data-v-b9b68fc9]:after{animation:transition-mode-slide-left-b9b68fc9 1.5s infinite}@keyframes transition-mode-slide-left-b9b68fc9{0%{opacity:1}30%{opacity:0;transform:translate(-30%)}35%{opacity:0;transform:translate(30%)}65%{opacity:1}}.mode.mode-slide-right[data-v-b9b68fc9]:after{animation:transition-mode-slide-right-b9b68fc9 1.5s infinite}@keyframes transition-mode-slide-right-b9b68fc9{0%{opacity:1}30%{opacity:0;transform:translate(30%)}35%{opacity:0;transform:translate(-30%)}to{opacity:1}}.mode.mode-slide-top[data-v-b9b68fc9]:after{animation:transition-mode-slide-top-b9b68fc9 1.5s infinite}@keyframes transition-mode-slide-top-b9b68fc9{0%{opacity:1}30%{opacity:0;transform:translateY(-30%)}35%{opacity:0;transform:translateY(30%)}to{opacity:1}}.mode.mode-slide-bottom[data-v-b9b68fc9]:after{animation:transition-mode-slide-bottom-b9b68fc9 1.5s infinite}@keyframes transition-mode-slide-bottom-b9b68fc9{0%{opacity:1}30%{opacity:0;transform:translateY(30%)}35%{opacity:0;transform:translateY(-30%)}to{opacity:1}}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: min(1.067vw, 6.4px);--van-padding-xs: min(2.133vw, 12.8px);--van-padding-sm: min(3.2vw, 19.2px);--van-padding-md: min(4.267vw, 25.6px);--van-padding-lg: min(6.4vw, 38.4px);--van-padding-xl: min(8.533vw, 51.2px);--van-font-bold: 600;--van-font-size-xs: min(2.667vw, 16px);--van-font-size-sm: min(3.2vw, 19.2px);--van-font-size-md: min(3.733vw, 22.4px);--van-font-size-lg: min(4.267vw, 25.6px);--van-line-height-xs: min(3.733vw, 22.4px);--van-line-height-sm: min(4.8vw, 28.8px);--van-line-height-md: min(5.333vw, 32px);--van-line-height-lg: min(5.867vw, 35.2px);--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: min(.267vw, 1.6px);--van-radius-sm: min(.533vw, 3.2px);--van-radius-md: min(1.067vw, 6.4px);--van-radius-lg: min(2.133vw, 12.8px);--van-radius-max: min(266.4vw, 1598.4px)}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: min(13.333vw, 80px)}.van-action-bar{position:fixed;right:calc(50% - min(50%,300px));bottom:0;left:calc(50% - min(50%,300px));display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}:root,:host{--van-badge-size: min(4.267vw, 25.6px);--van-badge-color: var(--van-white);--van-badge-padding: 0 min(.8vw, 4.8px);--van-badge-font-size: var(--van-font-size-sm);--van-badge-font-weight: var(--van-font-bold);--van-badge-border-width: var(--van-border-width);--van-badge-background: var(--van-danger-color);--van-badge-dot-color: var(--van-danger-color);--van-badge-dot-size: min(2.133vw, 12.8px);--van-badge-font: -apple-system-font, helvetica neue, arial, sans-serif}.van-badge{display:inline-block;box-sizing:border-box;min-width:var(--van-badge-size);padding:var(--van-badge-padding);color:var(--van-badge-color);font-weight:var(--van-badge-font-weight);font-size:var(--van-badge-font-size);font-family:var(--van-badge-font);line-height:1.2;text-align:center;background:var(--van-badge-background);border:var(--van-badge-border-width) solid var(--van-background-2);border-radius:var(--van-radius-max)}.van-badge--fixed{position:absolute;transform-origin:100%}.van-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.van-badge--top-right{top:0;right:0;transform:translate(50%,-50%)}.van-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.van-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.van-badge--dot{width:var(--van-badge-dot-size);min-width:0;height:var(--van-badge-dot-size);background:var(--van-badge-dot-color);border-radius:100%;border:none;padding:0}.van-badge__wrapper{position:relative;display:inline-block}.van-icon{position:relative;display:inline-block;font:min(3.733vw,22.4px)/1 vant-icon;font:normal normal normal min(3.733vw,22.4px)/1 var(--van-icon-font-family, "vant-icon");font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon:before{display:inline-block}.van-icon-arrow-double-left:before{content:""}.van-icon-arrow-double-right:before{content:""}.van-icon-contact:before{content:""}.van-icon-notes:before{content:""}.van-icon-records:before{content:""}.van-icon-cash-back-record:before{content:""}.van-icon-newspaper:before{content:""}.van-icon-discount:before{content:""}.van-icon-completed:before{content:""}.van-icon-user:before{content:""}.van-icon-description:before{content:""}.van-icon-list-switch:before{content:""}.van-icon-list-switching:before{content:""}.van-icon-link-o:before{content:""}.van-icon-miniprogram-o:before{content:""}.van-icon-qq:before{content:""}.van-icon-wechat-moments:before{content:""}.van-icon-weibo:before{content:""}.van-icon-cash-o:before{content:""}.van-icon-guide-o:before{content:""}.van-icon-invitation:before{content:""}.van-icon-shield-o:before{content:""}.van-icon-exchange:before{content:""}.van-icon-eye:before{content:""}.van-icon-enlarge:before{content:""}.van-icon-expand-o:before{content:""}.van-icon-eye-o:before{content:""}.van-icon-expand:before{content:""}.van-icon-filter-o:before{content:""}.van-icon-fire:before{content:""}.van-icon-fail:before{content:""}.van-icon-failure:before{content:""}.van-icon-fire-o:before{content:""}.van-icon-flag-o:before{content:""}.van-icon-font:before{content:""}.van-icon-font-o:before{content:""}.van-icon-gem-o:before{content:""}.van-icon-flower-o:before{content:""}.van-icon-gem:before{content:""}.van-icon-gift-card:before{content:""}.van-icon-friends:before{content:""}.van-icon-friends-o:before{content:""}.van-icon-gold-coin:before{content:""}.van-icon-gold-coin-o:before{content:""}.van-icon-good-job-o:before{content:""}.van-icon-gift:before{content:""}.van-icon-gift-o:before{content:""}.van-icon-gift-card-o:before{content:""}.van-icon-good-job:before{content:""}.van-icon-home-o:before{content:""}.van-icon-goods-collect:before{content:""}.van-icon-graphic:before{content:""}.van-icon-goods-collect-o:before{content:""}.van-icon-hot-o:before{content:""}.van-icon-info:before{content:""}.van-icon-hotel-o:before{content:""}.van-icon-info-o:before{content:""}.van-icon-hot-sale-o:before{content:""}.van-icon-hot:before{content:""}.van-icon-like:before{content:""}.van-icon-idcard:before{content:""}.van-icon-like-o:before{content:""}.van-icon-hot-sale:before{content:""}.van-icon-location-o:before{content:""}.van-icon-location:before{content:""}.van-icon-label:before{content:""}.van-icon-lock:before{content:""}.van-icon-label-o:before{content:""}.van-icon-map-marked:before{content:""}.van-icon-logistics:before{content:""}.van-icon-manager:before{content:""}.van-icon-more:before{content:""}.van-icon-live:before{content:""}.van-icon-manager-o:before{content:""}.van-icon-medal:before{content:""}.van-icon-more-o:before{content:""}.van-icon-music-o:before{content:""}.van-icon-music:before{content:""}.van-icon-new-arrival-o:before{content:""}.van-icon-medal-o:before{content:""}.van-icon-new-o:before{content:""}.van-icon-free-postage:before{content:""}.van-icon-newspaper-o:before{content:""}.van-icon-new-arrival:before{content:""}.van-icon-minus:before{content:""}.van-icon-orders-o:before{content:""}.van-icon-new:before{content:""}.van-icon-paid:before{content:""}.van-icon-notes-o:before{content:""}.van-icon-other-pay:before{content:""}.van-icon-pause-circle:before{content:""}.van-icon-pause:before{content:""}.van-icon-pause-circle-o:before{content:""}.van-icon-peer-pay:before{content:""}.van-icon-pending-payment:before{content:""}.van-icon-passed:before{content:""}.van-icon-plus:before{content:""}.van-icon-phone-circle-o:before{content:""}.van-icon-phone-o:before{content:""}.van-icon-printer:before{content:""}.van-icon-photo-fail:before{content:""}.van-icon-phone:before{content:""}.van-icon-photo-o:before{content:""}.van-icon-play-circle:before{content:""}.van-icon-play:before{content:""}.van-icon-phone-circle:before{content:""}.van-icon-point-gift-o:before{content:""}.van-icon-point-gift:before{content:""}.van-icon-play-circle-o:before{content:""}.van-icon-shrink:before{content:""}.van-icon-photo:before{content:""}.van-icon-qr:before{content:""}.van-icon-qr-invalid:before{content:""}.van-icon-question-o:before{content:""}.van-icon-revoke:before{content:""}.van-icon-replay:before{content:""}.van-icon-service:before{content:""}.van-icon-question:before{content:""}.van-icon-search:before{content:""}.van-icon-refund-o:before{content:""}.van-icon-service-o:before{content:""}.van-icon-scan:before{content:""}.van-icon-share:before{content:""}.van-icon-send-gift-o:before{content:""}.van-icon-share-o:before{content:""}.van-icon-setting:before{content:""}.van-icon-points:before{content:""}.van-icon-photograph:before{content:""}.van-icon-shop:before{content:""}.van-icon-shop-o:before{content:""}.van-icon-shop-collect-o:before{content:""}.van-icon-shop-collect:before{content:""}.van-icon-smile:before{content:""}.van-icon-shopping-cart-o:before{content:""}.van-icon-sign:before{content:""}.van-icon-sort:before{content:""}.van-icon-star-o:before{content:""}.van-icon-smile-comment-o:before{content:""}.van-icon-stop:before{content:""}.van-icon-stop-circle-o:before{content:""}.van-icon-smile-o:before{content:""}.van-icon-star:before{content:""}.van-icon-success:before{content:""}.van-icon-stop-circle:before{content:""}.van-icon-records-o:before{content:""}.van-icon-shopping-cart:before{content:""}.van-icon-tosend:before{content:""}.van-icon-todo-list:before{content:""}.van-icon-thumb-circle-o:before{content:""}.van-icon-thumb-circle:before{content:""}.van-icon-umbrella-circle:before{content:""}.van-icon-underway:before{content:""}.van-icon-upgrade:before{content:""}.van-icon-todo-list-o:before{content:""}.van-icon-tv-o:before{content:""}.van-icon-underway-o:before{content:""}.van-icon-user-o:before{content:""}.van-icon-vip-card-o:before{content:""}.van-icon-vip-card:before{content:""}.van-icon-send-gift:before{content:""}.van-icon-wap-home:before{content:""}.van-icon-wap-nav:before{content:""}.van-icon-volume-o:before{content:""}.van-icon-video:before{content:""}.van-icon-wap-home-o:before{content:""}.van-icon-volume:before{content:""}.van-icon-warning:before{content:""}.van-icon-weapp-nav:before{content:""}.van-icon-wechat-pay:before{content:""}.van-icon-warning-o:before{content:""}.van-icon-wechat:before{content:""}.van-icon-setting-o:before{content:""}.van-icon-youzan-shield:before{content:""}.van-icon-warn-o:before{content:""}.van-icon-smile-comment:before{content:""}.van-icon-user-circle-o:before{content:""}.van-icon-video-o:before{content:""}.van-icon-add-square:before{content:""}.van-icon-add:before{content:""}.van-icon-arrow-down:before{content:""}.van-icon-arrow-up:before{content:""}.van-icon-arrow:before{content:""}.van-icon-after-sale:before{content:""}.van-icon-add-o:before{content:""}.van-icon-alipay:before{content:""}.van-icon-ascending:before{content:""}.van-icon-apps-o:before{content:""}.van-icon-aim:before{content:""}.van-icon-award:before{content:""}.van-icon-arrow-left:before{content:""}.van-icon-award-o:before{content:""}.van-icon-audio:before{content:""}.van-icon-bag-o:before{content:""}.van-icon-balance-list:before{content:""}.van-icon-back-top:before{content:""}.van-icon-bag:before{content:""}.van-icon-balance-pay:before{content:""}.van-icon-balance-o:before{content:""}.van-icon-bar-chart-o:before{content:""}.van-icon-bars:before{content:""}.van-icon-balance-list-o:before{content:""}.van-icon-birthday-cake-o:before{content:""}.van-icon-bookmark:before{content:""}.van-icon-bill:before{content:""}.van-icon-bell:before{content:""}.van-icon-browsing-history-o:before{content:""}.van-icon-browsing-history:before{content:""}.van-icon-bookmark-o:before{content:""}.van-icon-bulb-o:before{content:""}.van-icon-bullhorn-o:before{content:""}.van-icon-bill-o:before{content:""}.van-icon-calendar-o:before{content:""}.van-icon-brush-o:before{content:""}.van-icon-card:before{content:""}.van-icon-cart-o:before{content:""}.van-icon-cart-circle:before{content:""}.van-icon-cart-circle-o:before{content:""}.van-icon-cart:before{content:""}.van-icon-cash-on-deliver:before{content:""}.van-icon-cash-back-record-o:before{content:""}.van-icon-cashier-o:before{content:""}.van-icon-chart-trending-o:before{content:""}.van-icon-certificate:before{content:""}.van-icon-chat:before{content:""}.van-icon-clear:before{content:""}.van-icon-chat-o:before{content:""}.van-icon-checked:before{content:""}.van-icon-clock:before{content:""}.van-icon-clock-o:before{content:""}.van-icon-close:before{content:""}.van-icon-closed-eye:before{content:""}.van-icon-circle:before{content:""}.van-icon-cluster-o:before{content:""}.van-icon-column:before{content:""}.van-icon-comment-circle-o:before{content:""}.van-icon-cluster:before{content:""}.van-icon-comment:before{content:""}.van-icon-comment-o:before{content:""}.van-icon-comment-circle:before{content:""}.van-icon-completed-o:before{content:""}.van-icon-credit-pay:before{content:""}.van-icon-coupon:before{content:""}.van-icon-debit-pay:before{content:""}.van-icon-coupon-o:before{content:""}.van-icon-contact-o:before{content:""}.van-icon-descending:before{content:""}.van-icon-desktop-o:before{content:""}.van-icon-diamond-o:before{content:""}.van-icon-description-o:before{content:""}.van-icon-delete:before{content:""}.van-icon-diamond:before{content:""}.van-icon-delete-o:before{content:""}.van-icon-cross:before{content:""}.van-icon-edit:before{content:""}.van-icon-ellipsis:before{content:""}.van-icon-down:before{content:""}.van-icon-discount-o:before{content:""}.van-icon-ecard-pay:before{content:""}.van-icon-envelop-o:before{content:""}@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAGNAAA0AAAAA6ngAAGLlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCWhEICoOqHILKFAuEDgABNgIkA4QUBCAFhQ4HllAbe7dFB2rYOIAxOG/nKOrEpKWbGbVlVHRZ9v816Tis0RbhPC4JZQk1ws72WlBGJJIsL3bc5Y/x5HdtBrzwoZQX/Ls/uAhsXMZIVk73Ds/ntvd3cezvhO1/2HExro3B2ID/4d7GxjXObZwqxy0gG8pQPDBFMAW980hTNIuhpqZleVwJlHSKR6WkDM3KECuz083Qu+8BCnabd+4tsemRGtBnHBAHxuTmuLWNUbd7fuSZA88fOBlzekCqfDPnV1BArpTKjp/r0AfE0+Lc97SXNa3ugaSqW2AfIo5Ghr2YAos8H+krfQ3L8DwA+F1V4Mecr9JV2ljSM/wUzQWAITlxoJSfEmfsi321rwHH2TjhEuUPgNJu+Hcty5uF3l0Cy0kEaR28qmxd8hKkAt5Trc38Jr9PItjeThzVmTUBj5z82tS8UPpag3jw7WchyoaNGucZYxmcV1Jb6vJBqnCMkPdKndPjulEbt2VSBNS4ZVtIZLN6T9OnLc4cOBve6vc6m1plHO0oxsXKP/eW/2ZnuXyddAuKQbgYR1EK4cAhrOf/N9XeX86QVOD/DqRT/CFXTqcPKVVuujv3vcG8eW/eYDAguOCA5CJIaxCg/iJIaxCgdgkCwgnk0qC01BF/yHEArvaQ3ASR0kYHOuVQ5djFTsfVlluULl2UrlNo3fUuSpcu3ZQuqpCWpVYrmWKnTAyidINbXlvu8bu//dIWc5DsbS7GIKHEPJFYjquWVH/3b/fH9Hv+26O9ju21WlGpogESSNAeY5MiykWEExSVOOK47UMhvaS1xPVqDWvyXAAAoBcwRQlvI/bwC/dtkISEsc4loVoTIbIVCZ0AIJHYfDMgr9cTJpanTeQN9AuIhrzvf00mgr8/5Nen14LLjxN/LCL2eHpgQbwHVi9DEjNBPAZfTAsKwnMSwP7qC7wBARAe6x9bHpf9WOTxAPA48XFR7j2u+DZ/LOBswPsBp1TOAERZQSgIVpzf/feAvzvI47F6AFF6BLhHCukZF45LVMtBJKlnIvAGFHtJAGRAaHoLQiKLSNqKGJ/iSh1q4tXURKt6IBdS5ApVMI26ClYVZuVQVnhVZgY4CYyzCpOoqw1rsgcEu7Q3GuxKXG3aJn0qjxMHVImq1jrHlwJ5PVtvHrX3Ko2IEfgjlbcFnyYathK4PgKjqatOPbBMVV8xGuwT1DE0AxC6x+5SJJyBz+Fn2AkJxZ4glrASujSdxsleq/PHWbE0RywisaeK8VEJZLLrdigkOat2y1CZLYwZ1YnRRpTdTk64eN4CfgfsjqnucvDALVR3A2vlb2hX0wNceye5Hmm5fEBzdP+Qyb085kH1PuANU75Jzsv7ZS/lLnC4ZoKnV+dJLf4NlekCzHB3ZLelfqmuL45JnZvrXJsJkHk15+TdfdqgwG+izf3JCXOj2RyinXv/VMefCSdPVMiY8jjXOo2MAP4mI/AtycatkqmIALn6l0Uq0lI87BIJ04zYwdq+uVjZCxY2jV+rwhDAwgMpoizZa05SYFIIR3JHR+IKxpnh40BpkzSirZGEOCAuOR/KRAje55CKZod135qzlfbXOMuOPHx1h7YxinH5Uij/5Dwy73HhX1B5ZKvVwRDanqFUFff3wOnQyxyWdERob6qK7Gi12nOhCPvVtZnIYtm2NwfM3k5EXA3H+6YC2B5AN2ejHZQofD50sdRcRWiq+zbZmwWxUU4+e26XKyCyQz1nkYmVlZIqmHnHyniMwALg7W0ge9iTxu3Hui5LzZirrSnxcNzQbrVOEohrbh4R6ilExdRG3ok7V4wlzRGOHiwv0cB50pZ+3m+urqJjt0nyn1mdwTS7GeBAZd7buqpOLOJOzjswwyHGHZYUl6VSbXyOF+71XRUd3IVOwPN4SxT9WirnGy624oNiyc5Or9oH0Xk7cnuxO8pCwYb5hEzNIdfsbrKorNqB2QzwQQmn/Qwb5NRYcbDz1o26MSF3dPfSrJMiL/dAGlRNHMtCEVt3nDSsVrHaufOEusODmTKY8DriHN07hL0EzqFkNyJpnLfFzsVNmR74ahkk6gGTe9J/GHlIpI2GNPlqZ3r+IevE+3Wt703n+Go4OwVuvCrAuzjuoMxtExVKOPdlyui9uI5AoqdxF83KGIUjIoIfDD06nOXu3SMUijv0qc4/wnkmI17W2EBApdJANX4zFNC4sVrhfKJCiHMfHYMLKqu4E37QzW/mhSNfGcYXYxwzR0nViMWyCzAiTOQcKTKZLcduJ+FwJUGuGFwrbmOUnyKEOuXZiVUugONRFLS+hbbikD6NOwjMNHWdlyhkKG64GPuGgnEYa5WqB2KiSgX1MmfwEBm02vhE1dZl9lyNSCFhrsrfe5XGiqVa1cMkU+UwTlQxTOPv1XioWX5gB/GSKMyxDWafvs/FDTk6t+XgVh5hDrEDKqVCJBGTkSYUgljvEqQ6bX8in0iutaWULcSirLCQch+B+4LqWLZVu96F3YTcUWEbTfUuWMYGlYLcl1zdCTpEBDfs014M6OiYmvsMCIXwx0V7JAxjfRyKkVFaGEVsCBnZ25CPrHY1H0ZHSGEcL6cw3ZXrV4fh+8ttExFKOPXlVTmZ2h8sy2L73Q/KF6h0AEjYCuELIVkkL9Te8+OtKEF97Uunyl4YSaJUkKmMocCOWwjY/HhRk2M1YpKE80TkVkpOzRPxXfcYpfowYEOo+JbRI/lBpFv1iKhXtfDc3p6PK2K0rKQKrqiZNpZgQt4pHxotxzgGi2ldPdBYX+3MY5kvdDts5F6XPARl0YNNJv/GGJwwcMCqrFLH4Hlo3S0sxzaAicMhZyfeEeBtitFEcscUDkUNDGtqmrzADU1kYnLOclO4yba+dwmSK4ix+qyrNPM4i4z0tinwCAEBby+PPZy2pdmiVmTTU1m5QdV+2iSEcV+/IBX2r2DuL70bzb87V+D5jl0Umt1rny6hpufLPsTPEId2fxKswvnv8E6ZhgNiOVn6k+0tbffCvHzl79fW1VuTnkhTCFspS+uZnEzLnFmqwL9L5Sbf3gU+GCOMx+CJ9dvlIg5qhJYgltBMHcEKQ4w9AaVHebnXT+0RfSf4PPoy/OoM4wYkiIrbKCNXEIxL+tQTblS7fmRe/YU/n1rXfl0mNuSennYFZFBXD5oDpfYN7L4vLvR+Bozp5fDL6PPgi1Xan1fW9Tt/vTQvXkZUCP7RupSEs5w2dNvUliTerBVUUrCDsklwAFASjm+7blXNTKldPwLkM82lNMQM/wz7zPq/rM4kotIv/rrZFXy8faP/saE+AtzdyiqQy9kx1tjznWamFvA2los64ONCg9erx80RGjYCGbtXyFkPgiDd4q1FlacgoO6+RUeq0gkpFfbePZwXQxywYtBsBtQ1oevUhlV7zrEfjrZ1zOFOM3Jr52OqVOdwkMLTmZ7pVvcLFSqvDqpc1jsevuMIs41Hvh8jEdIr5VCz+3chcDxe09IS0nwVYDY2RXOtnk+jSw77g7lrBevvyePfhIwOlkRq4YW9M5UfHGSWZnUapsXprah2Ah4zUBUo3Lj/atA+pp1wWnJvH6JUpYLz/X3ZuyLn+80YzbnZG3/LKazt3IV2fhn2a8pkxgG8IioDL1po8B0XdsiUsrG/0L4ThA+9MWbSMS+d2etmuer1MaWcTjfqNhhSD+ExEvtSBVUoyL1RTUc9/KS9/HR06btoPDwqJnCQCGZ1rCMOuDf0blRD7srP9tMJBGxeLFiZwhGGzvtbXFxVCJ725SqgK3vLu7a739PuJgS2BcjZJS5OFSioEzAvPJM/tL9gp8piaShTHVs15xBNvfp89jDgaRny92xKf2vlmcAOZDOQDMu31tdet7tWnw2dULFC1V4SLdnacGtQk4dwIppwVgKOpxj0asPoZ9yo9uby077lS0Ygm3Zgb6y7wbvXnouWRKodKpYTOpvrbw7oN441mbSu/5ayYmjNXjn+bfaibsPvbWzZkkO6g9xUZOfJVEGKS20pbtyxM8CnVZvRxvUpgAEI9Fn3Ld55Q47pDgIbgRd0zWKTPYw6vRQeo+ibZ8+jKA3hDI1f3wlTjZkUlbufOvwRnFxJi0dJ28Vd8BdwkESik4R+H5twr1NRMTkwunZCeXB2RcZvcyW1EzL7pzX0qJgCx6YVMBr68LiU6U6n4q/RuIPCB8/4AdGKWXTn/44H+8IBV9xDRjJfVOi8rFnd+P925llwS9uWPMDgSGiu4yIoCfgRhtASRPw1ioQFAwW6T2CSbOIBjbiv2n1cRSZxjcWpd1kyFo4vNJGTxiw/csJ5FvYN5+afU6z17j2/i1PPbVAwWidc8TmTixlzxpi5Oy+bNHof4lsmlAl18vJnpveUtAanFOhNzqQ03DMO/2iEqjWvgppPYvXH97bCOrMb99th2os6SXnLO96NncC2FHqpJdiNOgor3xR1GQP6mP2SHkKIph5NcS9/DGTWqmOAwh9fRIQh5/TDXqfseVDBWDQ4PLaITdXtH35rVMHaVwu/NcENIkjEzuwN2ndLrV8HdTcae0buLY+efoi1k+ZyHQMOjWOFe/3s4iS9VqGOEI4pFYApALYqwvXeo9LiKWI5HhHmFi1n3lap534+/k2F2Psr6pWrc0qRI4BEZH2ABOcb3hqQbOIBqjN7/Mr6s0IL/IS12cOqgeqr4TWJKvtBfK1u7nKL2pHB+pQ+5KZtGISD1PFNxjyqw+WH93CKwpYk9PU9FcrErSApKIgq7+Q0IdBAmxxiCqMUcwEHEUuzAGU/FNIuGbkpqCWg4ByAWpss999fG8z5IvwKxZ9VQhnlhzGoMEI8qKhPz1ObEmMMMMBXtfWXuShxre7Dy3X7dz2qTBHWFywLPojO6jBKCzWuRbenfZSgRgwflw5HbCOuCx9Re05YhmRdKkGNUAxkZT6zBF2myWSf77yw15mMtqIrLeZb0PRvKIqw2xGUW7uMMQDX6WH8621RNpZHqird7JJ91mlSQ8hJrTOMBK8JCP9SR/ffPcruAyvYooRhSUrCLos4Q7jISeC/L1PyiQcjLjlC5Wd47wBm52StDg9Eg1xHy9cM2yUZSBXipSGPeuLlMUaAE96phx+r3qXUYhV2KSu5+AFUevGMNM3Y0s+8nJsKxBdvKYoVWc7Wer0SBrY6r1VIc0WLoK5VkW5tDbizVeaHWtrlyyMHKLxSHSOc+nBnTjz0KJtWNwxOe/1eU7p1JeUCZjwW7rg4QIrBFQWQaPNdQqX08GRqWijgOaR0lUfmB6JwbH3fjvhiml11Ty1Xr6wx9YO++nDQKoHaWBDNRgy42MK4tv3Ph0zX9RXbHetwhoa9iD2PgmwcbMSGsXeErvNLAKACtGipFpaHVsyoDESzRhzIaR4BZKgDR5p6TehGgcGaxaEWuomsCqakdBfLejJ4BNwUqZBC/8mJJuHtd7AJ1XEL+1TRoEZuWwk00WQjhUpbvVa0nvEo80+pxDASFbCrIM7ouwdEAHfKPbgEzWmj9tyocroYW6BSJJviEBu+oPlzcys7A3j9tM5IhFuiEg3hWBYNurPnxtvNbhxu+e7SQBPosQvbtBcMlCBGNE3rPtikG/uo2oxZueowVQjWeWH15EiVm3sl+vl5RFQgONfWcSMOlBnzKXKu2MoXTUuV922QzKIl0ax5X3ltqhJfNQvIvwoGorKiFsXu8/DMZ7pZNjYrts4M8ShRUAfDtDraG/y0vz/jvpiQsZM1DtywV1x2Cofq98JgpY+mrVGEfTSm4cVcvyQVhtw4pApXvDeUFSw6dNGgDTw1ioWGf/xJFBo7el4iCBo/EBEWevRgppx/4IIpLuDk9aZoEiseOjuutwUBMmchPE2Oa1Br53tR1mpRwM1YpaGwchsnNNoX5eVfwFBE4IZ877vUcNsykCZmbfe7FSWN8IFq3ZL+SI6pQ8VG+naSvfXqeO6ZYf9e/MKQrzlfnc4nNQlxaSE8zCQB/10NKYoRZaI0RdHG/no3YD/X5Hhgt2H6/i+K7JllF2r3fMn3qr/8ytxDUejMLr/Yd0zTkWF73VQ7ND/5t/U1rgeIGJMx50YP7o27zym2BtbhUwIYTYkJCX2L5kAS3m6jXC3L4iL5DEkiUjvuKU+q7UXYl0SYYHRIErPa8E0AVrS9GHx1TADOPuC3+heQ5wKWL/S6y0/ng2ZbkigaLy/N6jDp3avdWTYTLJ3euv38bkds05t9+3Wl5bPhirkd5ZcOGKwZkw0tDbG5ta0YLc1SK4xvxmYLtRa+IUrzIxbFGKXw6lXtPd1M3m+NEODjkFIBv8+GcmWFw4zu6IGtDmbGCxdIFCJV2FZmdozcAXZFKT0YKpZKQWr0rfWl0zNTq1DHjStpUwr9Y0s7opcOIuUVSyeIubKKqBE0fNSiQfHTAcp07vfCjY/B4ODHH0aFSOS9Pvn44EefECzd0uMXCwpK2D5tfdw2o5vPilPTmu3n+cPo9hSgFDNl/UTPef1uiyE2lpl5ZSdJZmO07saDZQlwB3g2kK+4bnNnHnp9AeOYYKNG6IqUptBn9WVPOkiU//fQPnf0G5VHjQnYduZmuH1zzriJu7JWp8mxm4KJvmL2rvZ1EUF/0D64ZWZk5RlnU6Cr78OEdW0rq8+6m0MRGlebzjeMsVSdc2yJGXAip7UXlyD3SUZmmBIKZ6UhEeFLOZ4ScYpi5oRIfG7ROdFcYBvz7NwMW/CACmnJ8MLhRJa+pq5l2pF51rWi4SrtlggNkcQMsemlRvtlgvSMqUM5Sp+4qpQ7ddg63uRwB+ZWXAro24JdAjap6YHXlc+6U7Fokd9MlVezEOM7EXRQKNO/E+KD0DZ7Od3snxDmV/QXMG/DAovxfiIRITkTYzBEB4XYS2Al24go0Q71V+3qqZltVzXnR2XWojTCygjsVuW2a+f/PnFCEloBwRn+Y8z/6OMvnpCR0eqCmuPUjLx2Kn5nnUR5OPZE32cnP83hs5nVH3MMiPvsc8pNO4BMF0IQXIGCWPnK/3vgGY114TxjzmIkY4idbGPt4LvD0WXmj884QLtSoF7SjBsNNgSnMQPslbUo6V8PeeViX4poMW6IAdFGTmEJNcLzOsLOsx9cLu8wZVl6liE8cdlbtUaUaI0GRBLaKcJf1iUzNHaaKrbsSVziLfaodIk34nFJRpgycTwCjnUZu3xvlJpEwDX+bwX3Aii0E4WoGSukTjnGXVxK6w5sRnck9mRmxBuh6Dc2nrhQlsEa62jLlZzvqd0Kzs2RNvx/6ga/MGDApGco41YM8QLdZy0BD+a1wrrEHdgkH2o6uQ0PQWwmHaHkKC3Ege7q1bODT5dENDYBBpxtCz7+6HPt9sQ/lE584qGpmbWfcrW+pnKlRoKCq7TaiSeXD5eFSKiLm2U09ruFjsHBJf1Bit2sbrLLeBli/PRW3+LtYyZ0jktEsN/yxIgOp/3D2m4Rd2R/EqyZy7Fs2o5/m87BLcpHT7TBMZHFE+BbdhcbXRJ2BYD9MoPQWaoc4rxOQChxJo1t4BKfjTGM8MFEmaY3KjYRB7ZdWikTV/oUt74AKNrSvLn7eW70G8cAnISYVAC+gK4abPStRgQoEgBHYnPolBwiRAujX/qNh6JVmtTaHkYXEKATmBFnroXQnnmSRDG6K+7sAUhEuOElr4dekBfHt6DpJJosO79tmYXCMGwsh7YE1Le2LgekWXM6r8nUIVvs0xQFURSUZwqmCsx0DgMjAyHj1ndNIHdhci9tGWgk7W16E56rg3NPscCJjMtbAxRbrXYiiJAXCiarouxGq3e0ijF/esUKmfcD/AYxEC7lLLNL6N005ZSfvNREpcCJzkdOFatMf7rRnpiSLRgyDuiyG52tN7vW5fYsIrHIF5o7VjbVchMJWGDuOnNo5klbfYO/WLGzy9bN9T1N01Z75M3UtYbLFfOOxycU9Q9e3tvJOG7j28cYImdEelZ4qDawW0PxcXY+ER1NNxJFwdf7JHoMOUI3ODHGx+70zOJXZF1XktcDXI7GzUzizy7jhK14IQzEVg57zOPOwUHrWOk1LQcF6cQCvIBiYKi4qmByqcihCJU73lZj6ifygmBuC2wBxyB5S8qqRHEJjhUuYdR7oiQBpKFWkKcu2hAqy6nA0XKm1gcXNR9+XErFelk7en+pKLXowwmtobl/9trN9a2OzQJf5rttWfWNzo6bXRKH9CuopBWK9tU+MTkffHGKuzDasVkUfm3RCrV1xu6wco9D7KmJ5/6MFdlLM82tmI+dZlhsFzr2fA6cjXUd6PxmVI8eQy/YOaXduQnGRcYdXAT4JHgM8LC4MnAHef+W8j8oImHAHjr0/7lNH87nTRgfPSnfniRyUwv/NYjO97Gl/7tvEW19cCG4OJzEn40vh5dGc28JyiRsUVwZrseSUgwdDgA64zjC0+/IETD5bIMgPKQAxiQ63mJQ5SobrLWBNJkk+tJcSr6crEDEq+FyyhzTkEkIn+Xwr+8FbThXRksOmiEjsIM5vJXTO+2109o+Z0rLL8YXq2KTsGbetn5UDKETwMK3BDktSyskAufu0kkHErprx4h/GfKK4JonEWisQOOGpeeOFDAgwdok+JQAsY+hcZUszyIj0WVLroNq2br6BexLTnCEo3ryd5JyGeqnqETTkNFD4DDdC8xoLEWh0PIqJEmSwAcdwNInxEs/S5NklJehqasPryC+eF3+3K8UECx2dMJDAwC0gXx5bfS25BaTKidgGB+3W1ISRx5iXZqnch7nKVV+Bdrluq7qYGjrz4/6be562uw8dkW415iY+HxPjFS+QSW6ZWdnmgzGgQVCrXsNHsw6nJ/1gNhiytxBtW75ccb1VcJiQ/ucB/6GG0BSLhLd26eWdjPjdY2WgrVMS7wEXs0n+vsFbtk9j8Wfe1xsEgDDaV0FAszZFsDQAwyjWfhtsl8hqI+gwe2YDMbifpvLhsZYJOdDvUxvwtnBlMxGjy66MlQViPOSC+hmFUC1db/CzfzyZeWtQ5hv1JmLZ4S4Cs6qEsbJuyUpH6h1whZs2RX2l5YbxIg/IaxjJG3HPC2/Vmt0Qk347qUJLHIB707wCtpKqUhxeQK38LL6ZlvOrNe5ak6iECtcm1o2FURLJKOQ1VQY1eJrta86ixjC/N6+WvZAfSOWNUEmqgdE3atvSJMG9XoLsxhtu8RcKh5y/36qW3FT2oWz8dDu/LnFaqMpt1gVzdpoAqn+Y5ijo7EDvwc3odUJ+LV96qk2qCld4hUDAgVZU98LozOatOpOniMv8k0hLCtguJEPqTNV0ijTSeqnyhYlVing2A9rA2LwTEoQ9oXO08S3bhHA/XwOyJRKn6LOiNkGgsGiPyivtpOvKomkKQ0uOlXprY2yJ4JJ0wdlc3/d3O2aGtRjuqL+q1Rte7qsI2ikExd0uqKFbmRP6Ecgm8nyOLk/+ZlZ655Sf1v1skJ7ZjJ6udqpmQSRqoZ2hurrDnJ3cYbkCR1klWvGYd47jPCUVY8DtYRvw74ggIxqQpHS1KsyuDJHKyc3a6TTB54WGXiuoFEzd+LWrCBqZzj4DCXI3R0UjqQRPaBj7A8m5+ZInB6FJd1MnPBfnRT1Eq1sT+Rd8bgptZqjFi+C2xZ/IZvIWYgJwRe2QCHYdJwveiDwiaDPi12b7q8XWPriw0NyFl4YDNrA+baj3qQ1aT5x2Jec0vdRQ0Pa8j2lHJNbtj7dXjqmaHLzOJ5mucPlg8DaJudyicBFHskzd/ODA4VMk+DKM8bXNYfbQEFYKuuDQuyUUB2FrX3OuMZP1kx+9Fz3UFViJ2u6AFWIwVxFnLmnfdd9IgsVztf4KttS7aNr6z4lHpX1ptuhsc7exbEQ8DWPGUmIGQTntNFuRPdeV6roYlowsWJui+QBNWU/zudEgYQgkvZLIw0Mi5DmC9ngGcWxjmMPUcggJ4WmZ0ZREqJCQzr+MTcbalaX4mqafKqegxq2JrhW2Dtc2SNrjxp7nJ683gAlma+GkJsmU0nAfmqGXMODYa2xaJ1PXxgUjnoXrz9qCBoLBPnScIlsdm8x/NIR/SPs660vBektKHCsZi9eROj7yDusw3bwTyjgTUkSNyZnzx87n6EOCemQeKygt4GOffPsFYv3OMqFRbmSc+QrwmuffvXTY2gnI0zuiH67HalK5ALdZ16AHHxatYa1KKn3wftKpe1GhxVnkcnNL3TcbabC+tIgvbf8Rnby9Nn1mLRfT5jhuiWFpE2jzMomh7kEg9CphlTa+vGOMi7LD6Y1Cs1qVUiQLOs1Z3I/pZHop8dNuQ1FykthtjL5cVaTw5fnwloSL3PvNRXtrSGvoTANoAOyedPPjeIdXW6XmsKhKsOYxnQpqZ/hBWy6fDpv5mSapFmi1AjZLt9fSp+3NwHYXI/7CC8XBz5idux2eeUl0ifzHzH88VjkC7vmJ6zmHOqlDn5pEO3MYi0G4Adc9NxWzx3kLP4wD0mIg0OFIFGwzXI/nU1HNB6JBPEj2GQ53hGioicAXCm0/2rc75C5e3EcrRxuglT9mV3kFjupNwe5DYzL8cD/umNOLs8VMrtBKgCV611j5koR2yv4QRaOXgf4bnNJqlqV1kOnhfHEjE+RM4SfmAryOBRrsFPgoXZuDU5u10oV90a1OWLOI9ZCLdsRN7oBvFJTVEVt4sG7aWDO3vFi4By4CSSIGD9kv8sFC3u65CUI2vwgZfE9yIgOKw3qSbDAG0lsU1Nak/0qOtMSNyKVdbwCw4KWzJdING4VFDi1SRReAFE4ZERlo7IPP43pVWsKYW81YT6MlOrtYgxy3HG9Yt3yrQqhF99gq5Pzz61Y2nHJJ3Zq9hWC7tbom9mkLE5RpmcosearYTw+p3kD2w8bUsO5xXQBDDlFUYTb69RKtfb5jSsLjK0SOehPXf0lkJjYvX701z4UGBzYt1/ywHI6FJ279qs3tZhz6/TAOdEM7N/j74Vd5IHNtbRv3+o/0Fz27pk9u4IKZArkOXwuJAl9ZP1zlGDfMuiPqx67IcFEOBPUJ8nIqHd2n/jm23EqIB7yVuoofKc4rQcyNMugZe1gF3r5qmpHdO7cPgubEhSaczo9xRYdSzXB+g2bZfPx08U+xl2c0HjiAAyH//GDUBgAW0d9zzxdWlmAlctMhqd44Pnz/a0H28E72jQNEKW14IxkT5ZprFa3xlStl7cltMLFH8PnEnNlFoAvFTey9Z8b8otPyMnk/N3S/4ATxdZNS6mNposW2XwdVunoPLGQpZdlaDoLItv3J/Clt1d8R42CzoQr+tov7sB1mn1H9ks+J6SwPrPNTb2nPwMoSEVq1+/4rlxls4GqV2dL8JLLf86KROKD3bxlQyQfqL3Y2sRT/IhMWInfl3jZ1+YUath8VVFkGcoqjIVxobf0mqAwOM9wzGH/800Rk7srNTFYnauMIQzVMHcJ64+1mOiCAt7AnCuFzC74rBBCAWnf74yMnKiG+4ZE+ARnS7cHckKDcIIrMz9Rm7W0NoB1ka3YxPyai3TZ/Cwt3OV6Ph3ykeglFnSMciD2YJTekQJKpx4jb7KIwKEewih5hf4xs0bVIo/aS2Yql17C5eyJHl2/X+PppsQ8m5VfkF+9j+WeOYaGY9ltZfaw2shCxBmIca2GXl1Nj3DeicY0uWtCBOYc+yOsN0PxsTxxutJ8WfV2JJ7PI1OCBY5oFMXo8tYFra/ocMkBlc7NtxVrRyad7OUyT2I7RGgojeHtKzTGRoqvIEq5A4Vgtv3BpsD2EtpgcjFUVWiUeVzbolpolzQeDZLVyQuxphVDc9CbU8TCUlxBfu/dFmIBaydLZJl5DNsJZp4RmBe4RR4X8I+ScHSBXWX5GinwbEe0ax4UmtYXAUhLQqwjmM0Y9l3zn8IT6F9Wx7XjN+tQadAO6fbjtHmxagilhxAtWr6A5tV1chqC03gykxjT48PwsUK29o/DWCXbFzDLEIHrR/bW5GqOVqiNdLOlYRE+k5h3c/vwQO96qHIgt854Se5htoDBwbbkBaBlsJ6vK1BMnrRZAqmQiHlCXgK2N0DoCCJ7VyQ1gBjCeOTzcCyQ9/aHXRXS7fINInEYVK8JYoo7V/yHOdSqfNbBZrlyioCabnqbzxwd2837JYvlZFtXqsDKghJDTpkNbNxAU26drPs/1WIDnSd7Nzok75RxUdMZiWkV7kbgLwzF54RdAex9mHy6swPa2A1mIVLyp2wY9hRH53D8ruGNtw/tzKWccCiyyZWxxYW7Jg7KXHERhldfRPcTZhyNiJxzoi01RApuh2w+YWqzjEpdHfqI4TlGKDjZHGFqF2btd0uFw1vm/Tktf9rcZd8EOLtl13lbMDEpDKaUxsDB9TEywuB58QIM8pX6DwfrIV5DjaCA4jJv6UnjBWfXls/zUOEvo/D2TWXp7lt0+mS5XBLe3RXAZYokNBOjWVb30xehf+WSXtxJmybtT/d8Ou0fjy9esmNBZuWPS1mUkOgWfwxlbCK7fi+fDOet/nmlHCmVvU4Vz0vz5KrWFV4tcyTYrkt/ztVOLT2PYwy7bpq918Lp4EpPxxznmVEd3gCvDaFaAqPmCqSkUNF6IW2PNBlFUxVJCdWYEK+QprWff1mzdo3LcFA9Hz+313Ts7k0Fv54VtpeqyD7Cu8qC+8iPkwOEa+7Cfg2H4Zz8fhgVK7rWI94+WkbSMfNHEc+3Pt1oyd3be7wYGU8SIXrNz7YnyF6ryO902KmV8zs5I3sxvXjqEs/QLspQBbJXcHRBOuH6x0M5sSl5YNIAsOQBbHNGtgbE6X7vuJzCtNiQ/exV9ZwZlDj5EO/60bdO+9KhFKZ+zhz0mMD60LjLRzswIRnL6i/NSbFPxxT8D2QGNUP73FGJR0mL93djpw8/p1aPyV8qxcT+ylAva+DrYJ2AkXTQtupZgOvv8KS/Xqm3Umi4pKHJ/i6PVGlYgJ8HPuoMFeDun9+6om9I6PHL9GrZ8uNx29Uca4u3obR6Ft/lS74gijV/cs3kfHvNXXDInxMZJ0ckwXckroXMuGQcwcPgn1fBKTY82dyDGNiPv+t0RWm5SMSvp583pO2NPGIK5uaHsrx4LzgA/H0Nv164B+xn3ILaqsmosvGCY+8sEzCXKSjja025saLcagdnZUjY4vOHKEjlLfQE4g00qpstnrmmO3YwIzsBYzxlNjLjK+fTBfdCTt0xFW1VpedWdERL7mxQ3pDVBoW/p0qw3U509y09d61yY5k5DfrTstXNrnLQzYbLd8yMsoVQKw6C4e2xR0gtqdeb7SNXavdSCUYWDUy7UlU6t3rWCQ1XEaZlYIs20B7AcZd79MtuZpjNxVfawjLCtZ62+JWe7qgK2TxSzqSMxZFeD7iwrx6Csh/LT6kjynYoYCWVxbYKl+7petCEFDWbLKKv0vg8PQ3O78nna0dHmfpSIjgnaVCxLJkej4M8qjVWLA2/CKcj4d6R5LFD8aZ0hHY5GBkMDI3W8PZYVSdP9Ou/OrSwcl/wX/SGZUcBepQu8jbtApiBemCBbUMPyoBd7kEYIADerqLaW3PcI1SAMqgjVz9nAFCtibGyrTdsLNuDHzQFBRwi0ffLME4hWR92dvTIESuX35pEphOjWgX29CNvv8u9z/XlkDIbDsRkBazG8W3nmtMKHO62YSdPveHnCnb57fKpbhuyRJRE1rVUxJRqtaUxFXc1TJCg3LSl1hZhUba9xUzbUVea0safKkrrEqxlqoLkIWMOzKGMOdzoHDpXLWDJZ7qUWUUNAJgOwJ69az2QXlMN1JcVuAvvd4dxPIgj5zAGRhwjA9gIFcBuGFBH4DmfmqNaBwcEWzSHekLsDu8MO6jtfVuoBbGrpMRql9nnRy2wT90+X+M+sNpcIMwNMuYTcnII+cYgfpNCrwAhQgUbGMAw1MRvZhVNvCBT94fGFMTrb+5CfE4WJxfJys5CzEU35GcK5LTI933j5bkh8d1B4PsmF/9SfycKUDdJjHw6dfZfiv1F5qNpabEC6z//aHyjrTJq9E8XpFRJSXz0Fo1iPQxglx1gfRiAV5Oc1NiQuHwGF+zeT1hL7evxStrhD4sfU5nXHRi/zqQ+bsoP04Dde9s2rmu0Af71o3NXr3jQMhS87YIZKAPmnw/z2mHQSgF42O5G4ar8wbklvH6r9VxQv2wibu0dOyHrDzpntTqtL30UIkU2cF45PyhLgpiDneDhGzIWy6pRbSUlwPd9OkCYKN2HhQAUOg50AQCGMWAH3gHfndnoAi4AEA6visc5YZIhj4wM24H9EumnMhHIob4+wL13nMpAGdRxNzKHzlUzDwcbdmVcFozWjIwkLUzEHdWM7zfTy5uS6hMS6pOa/tIwQYKy/V/77uDvzaf6LNYJWb/sRtxKHJNrtTrTAVzeBSD+wYr4hVvMfuw7TkWXn0g/RJuC2M3TsVUZ+f8WqhaUgzyl6zX/7QWgPCJPVXh4PqdE7DSygBq3YEFshXZhK7jUFrtAW7EQtLZd+hZtBm0w02OZP7BKfALuGsS9j020H1JQBgqSOe/ngfBN/Sm9KTum/EBoeAcoFgPRZcC9dwyeg8HRHf10cpZRPwVjVA/yLC5Y4E7hHi477e9ya1+IhePLVtTvdOnBQOn+g7+/ES/eZUA/CstA5+/DLosvz8/1iWWTCq+Kr8YeFOMzd4v5v+TSfvmxNfvLAz55QabadbhRF5Qq06Y1RH9pI0sDD0qFSriwuSO69/wPHjVKx1T52gjPF5u31XzfZwTqqyE6/Y14+/X3bXAfNHiKAjhske1nVzPshGxXsdwtdVoNQtQ3mJyUHgxPDx9KHwpMDzwYqilSq4vq1BY+UmdRszoEeP5eYgAAD/ZRiSDTguoJIK/AaLdE4U8yEBNNXruwN/AB2IN64IEqSkF0vlqdH11AqbqFAAU00IEu7JwwILsiBwVRtT9wLT4CA5iS1qIqKZH9HSrB5ZQj+cGnS+/Ny1XlKCNyIvI+YuAgQdn+4326wi1KdqtEUnKS21cClTPA6rRYb5QfFst1tHk/8EyadcEvFsh1e+Rp8tQ/MtuzsD8CvGCJ6ha8yGM52EgPYY7I/TgiVzMA2gxAOWFGt4Eu2JWwO353wq5x2cFAY8CQcSjAGHhwe7U9UvUcWutYi1VYsRELFm5MVPdaLLz8h0vigyjAvqolZSMt/Jfa8+1GAYLPe2JwnhijlPYKl2Jq7fPXsFBwU4SrlOZDVg7gtlRVMywMeQXDNFfOtDHl8yt/h+hmBHAbVeaICPM8BAzO219I/SgK0CULEpIbExMbk6PDivMWlrrcVD8r2yqNNuzcdC2uAJ8J1oRPOD+czEV9brBu+KAK72rSW8FHTqDrWueqDa/XWJ3d3QJLkLBOc2Gdm2wGVp/oDwhwogzE+fPPXrCLMmAvyZzgoM5erD90uYzAz9PAUmOYEvG6VczB+gnm9im+dWLETRAlo/v+HCYfRDj3OTCpH3x6wn4bWG/uq2PVFRTmlUZZ77mAq35fV+32i602a7/s4k/UvoaGPgQg/fe5xWhEwVdwhJASZTBCgTbj3u9HAFBXRnSnCeU0ufF/yU4vQgZ908zNSxL6hJPbnKLcwaKOT0pgeFrs6+RGCkoOeRl+/ihSjyADNGusXpuWK772eo32Ty4H5XL/1HYsu2YWx6TF6OlW7oCv7qhLv9hAMywu2nM+2Dn/iXPvO1Efc9Z3+iV8n6NDLFwQrqkbzvcaajgyh3quKgCuUZfd1Y4tHSnZUoPxHXw75kCYKB9lIo6Byn9T+5hjLIFCyNiGO2ZTJQgERmsQZqRSQGxttfsTaNB9L56bnDtZfKHz+tnTatRlUQDh9UsCup6+kJgA1DlKAcw19oltjenyCCVr+GkonuQf614Ag93N9T30ve8/5eu3u97/V/96iLWL72b7zvq38A1Cg1jAcZZz3zdA/thjy9Grn2ZZCzX/oCA5Kaj5eTxwGfku/jDmWvDohPUfF447xrBxBHISQxDdkgv90w57YAcJFG8cVo6k8lMj8/h5gngQIg68XwoszyMjzLkRFRqciJyzR0Xu5NV1i+btbnuGN/x4CED9f5k8+l/of2Y74czDS/48FABwFkDAmYSjfZ9zFMa7LFAEKiPs/zmsG9UAoFE7jrCQGToZbl808rGFm74s9AMWmoxlZMksHlhtKLRRBueFZobllPBtQRG212vUxi9poQf9P0NsFCHsAR7aau+77bFgf+mjPfLJA96bJ2Nef5R5HLSB45mPXo+Z3Ox9YFK+51HpflBSm6NfgqCLs/Wf6fhiFFlSjtdgXwj4dXTiz3m38/AFgYFBJJ+oJzmbw7t57K+CJ+aR48VhwcpewWAGXJC8r4iqSK9SQRsGCl9wxN0bFGm0rCteZ3GbBfUOrL04djE6qTJi/tL5Ea5guofKgPGJi+dPhzNxO+pLr5Ras22lJ0rrtnV2Ic5+JzqHdDn7ENNSmAGDOakvgBlNz7bXlV7OtCVA6clSW/vCPqTPeTE0h0ofBKivPkr/6DfbbyaNffoZCt6+Y9hJNwohNgRC3ekzLfvG6RaBHyFOOhy7b2xcJdpv3FmbT47z/1sT+evIJoC66fgMPozZU+lj2d0YNj1hR5ldk+kPgaLohkR9t/oPcUqBa6/dZR+ww5tlC9gHuHub2TnVkdFWdAsUWw9d8PVlRHXLRIHRpctyll0NSA2I7BGwowKiOFjAxoA4TuSrUj/qwl2eYZx/tTPICyRG/voC1NdMOD7o909MM82atfoejbgqyYuvddo+r//c5tTyvZJWEWn3VmdZm2kx//gN4njcNPb5zdor3J0/4qvUSXyq0RJx6hMxd9EZkcVI5SepV+E/7uReqb3pxBwYwOaoc/AIFSAR52FPxOAYgByFTWPYILbRB7CE48y/94v2/yT66S3RW3+P0eWBn27DT1dDwxf70nxf+P4XkGgNv3mQshJb5d3OXV/FNja/FL0Q+4pjbvr+T83XI8vHu07kYLwDC+wPYQCT/GJcoT/7ujAXn3npS8mXl+xMQYPwR3jgNUCYFSAsRBDoYSfddQQKPJf5LoSFvPOhox2/SwqHZvh3f0Fu2XscFRVu5U6kddcyXqXLflw1uAsvHq8dTwktbD3BrGWeaA1GnzzNgw/N+4+faGycX9JaOQksAOzVKmzs8WIP6zGppXAwD/YJg1GqNUIrtW7evsNaZlwG60Rp3Qvyk6yvrcwK7JOAD+yYnSOiksvUiN0RSFj88GIG3fhGfX+zvm/Cn0iFFQIFVgsUpGuCM9F343r6wZMZqgfxUNtgD9z2r7TI+SG7jd0a2yZDCJv0xUxYbE9bz0DhKj0qF7O80NjZttm4zGdzhbgM/OmTwV3zVaN8nWDmSIzXm9sth9J38N8d0lK+WVcNsJNnwngtPfmqLeUFwa+li3PnYf8atDyJBL8HVT6DziFzl9sT13vJECLpdO204ZuilRbdA00u3fLA4DQwrPX1TrQfiIn05U0x9dqE0qSKuxocJChvwXLDKsmiLaptWC8e3Z0ib0toOTrebXFRof8Qg2TLPYEuG+UYc6NYfUjfho2r50TBC0jWB6No10Z8PK5z42HAvvaaF8kqavBlrRWqUqXGHJN7NiZXwBtK+7sPL7yK2qQiLOG8ou3/atQG3QM44+fjwuM/C/9EXXSsHNkv2k+ydR46ngVqoyS+RXLTy2Qn+aUGUBOVl0qiktj3BrHmK32EW0NTO0y6K9ovDLB+45pOzpItxBXRaiSxYBoGivpYoCfHjBsGEPeYoVyz3tx7Z8NGwKD6RnPHLlG6hlDyKO4qOoHjS75N8PnJfz4/fnrbra3RO8L75csX3YPfuvfzy9iWdiWrPWFxhWOdoqOqU14VviiVnUoAfX6zU359f1wTq5ZWyZdUqZb5OxmmBa/bKpYtzar5AHgozWXaEo2mRFs2qS3TlJRoyvaTH9belKLW7Oik3WEPT1S7vogk2Y+oQAECzU7ZguWTC1/oeYnm963jps9f9Jo+i7QZ22wgQAGNT6KoYGBhqdcoNjpBgAkRnzUmHEokOsm2wh54hkKAPZPx+7DkOcRT+cYGRQGNoaZXG+vOc+wYpklpRXQJLZyBrT3Tt5DBo0noRdvrPIINSuVDQxrACy9uTBtVjSOId+PaCNonggga28a7NcdRlYbaFuf2Afa9uurS3sS711w7PqR3WsYsfseAaxLiOw4MPMWFyxMAHySs3vufj8XHxgbffSCqa7AhrThVPn1ZP++Qx1jYd2YtxgiPlkg1c5FcCtTX6Lh1ag7F8eunMh/T/89kQVYAMWXemn/+qe+haBYtiiZBZNmbmi3RJfESqvSnC5KedB7uwjFqGoueKuFhzBXEMrGC/hwG2PQtWiz5i0L1ZRd/jI/9CA7SwsuROYA9Dy9pwNFOtN0S2J+aXRv1l1B67LgTdXb1oQxb4OxHhry7WAJcJQCyzEveh4E4+7rmAmyU/iYde0CfQGCcHkHcN2vj3oribj7pp8FVvTrDgvGr1El1bdjK5gj8oknsAb608EOfvsATbj8TyzYYVYakuKA4Q2JkukF6Jm4RVrVXWWxWIwpxkFjJjbaZ9yqqRqMoMS96Nv6tvpucxKBZEYhifqvXJwhQQH3dLZbXr6E6hhzGBmaDjkHHrtRXTGPY2LB9Bp+x2sdd48Q1VlT68FA7LrCpLjm+gEba5ZExxI+MCtwU0qDzQf9Jtfnyj9ETt9cHNPdPlGbCUjizNHwLmwPW7772hfKLQ2HmTRIsWfEwH8MnEh4hXWOdamniv/lA1Hb+B1phd6VAnHRfzL6RIA6VotoANhon4CAcj4tbcPCjfeeFwuCNQDaG1gyjntjcN9MTY3ql1qvZt6oMJlCXVXeGK3996ssREIC0EBOKw63YzNW9BHEoO0CLStE4Qbuw2Q25k0CrEGZS3wgkC++ByxVoturjuNL9klaSyDeC+oPOk0krSfcwMrik81McJimSh+wPFDcpXV1O1Flbe+AAQaig6rvy8vqc5iLETN2dpeb+jtPS9otOKhUksmh/2nOY5ldT40eDwdlJjvZhCesT+uuk2olaYX+tBbQ1fbHXsyfv3j0XNQEmgs6hAYw5gKIxuks80fll+SR7N3jgMz396+AWT1rVbq6/J+DJlEo19STA48/dXZXm2TL465krmFl6RRM/gfgRYQriFanuBsdzzVOHmVxOFmX3uwgla/9HJz4kVx7POMm2z9PMb5fZF0TNt/+zdat+OxKZdkG3xKdNLazLFZcDzzzqSbydytOeThsbHu6HXNA7wyHDfwX1ayzUI+gm0ktiIS4BPA4KXh77XoyPqS/jfOV2x8lV9mFL/Jf0YsperCqxCmgffMD56rGKbXatzNnbu1uwu6+PKUk6kxo5N4KxarvfHNrVu/Y29CEMtA94Jm25Qn3ACcprf9pENIbt8daXl8pEnvB43sD/0sutj20Mmsj252uUEyWcOqV12g7lR3hkLBPLSBVgL43dz9r3JrTMOYsC9CNW/92N9dHKlI3ZPgzPes41vXmJ6QLr7AGx7yUOXJOulTKQC395V+wjcRFJunuMD+AlJiO1jvf6d84mw3Vi6U9Do1ceHxD9mvdfGcIc0WENrq+/3h0oO+8N+RHaborNabhJmCXaCgCQ9sAsvtlG8INoY3DuZH5OYBrysXY/VqwJquls+sLw2cvMwM24o5efGb5o6qwJ0hRj+7UfpyE5gXkDmnJyK4Bm9F/LXXEtBdRXblUrVv/aamW81a/Vq4vVXAdbKrdaRvKctPdx+jXNq/bYMf3XR5C9XQMt6ab77farpX/4c+1xaMmu4TrA7zBVFb5AuucdXPxOwsprjxWR779x7nPi4/8l/vsineOeqNMRPQG1W8rnFRUJWm1yYU5my4G1/MrxDR8quIYUE61UoIvIjFoUnl5ofj11z/ru0k5nxWEw+orS5WXxcnpRA7z6KYmUfi/lRyiIBFEgEhCMhSzZ8+HCXW7MjRy2CB+Y7UdZaP+sx4k6WdTOs73q4jpi8T+h4sSz1ekLKna/f/iNxTcVoac2LUo4JF4ckmeE9kkeTofwralleCaW0RSZ1uRfyyrIMHwm521Y2LUM8j/5UlA0Ql94dNa+daxpTcqr+6vzW5eMpfQNBVBfBTUqU0k1tv83NqOf3fiQlspd2NbdSPHAtNV7NbaK0sqVWdKGViw9RnrsKz+h2USbf5O0gbzpuVCWlgs+e/VB+PXD3uM7T6QRs1AT9OrlpX0/pfzz4Qcfbc/i9Px2IZ2QuHznncTkH0FNpyUwNZuQzm6KqUj8y+fKBzl+OeyFmx/M4+wy5ph/+ufkbQ+IKaLP5uA8N/PjifvDFrLLATO4/wWQHSOwB/liy2XRYcy1hgcwIOEjjLzCoDz33xWAtobu/VNI7atgkXXE3WDvcz1KjwyufhXyk88YxtxYvrD86MoC34K35LkZuUfMox+D0Y34KP290fOm0Wsg9FJsaKoupGoog2jXh4bpEC8nA3A+rOv9M/zKmzn0Oj1Uf77pQMjEu113TmWU00AGhAO7rjQGK9b73XxUXfcN89mp9NZ5tzoe8PYtTW/eYLz2w5uHQko4Ib4n5VhZWWz1rh8LeAWJeQ+Ztc6lTacbWHFdmiXBBdaaJTUwQBmoB52rZMBzyBxKn4krzwTXRXfFybRGHxjA9A1Lm5y1zIeJebwCEPoLdw4m+wNprbVGnkwVGW4b6J1c92jTo4y6bYu2DXRurtyMYZmel6EH9No89JizBwJ1Hoh/qgFrRdbOW7e0r5SizR9iH7wlUs5qHz3amZUZdLj+sG17k5aBMZq0223LyZRvQvHX9zu/zoZNhNyr5xPEQ/NJliExgV9/L2QiDIRo6LHlWm15bEJyZQjIYHcsEOvF6bkQBDOoHVRApUA5EoM4rWN+BguEJi9IiI0pL9MeS6N//XpGdGhp3ryQzne86pp9P/chM+LaK3Mvgm2afHWEIjtbCXQ38TcW6GIbEyGCr9gOypGliZYWmn6BDjBQBvzlNsrw4DS5PM0sT00L5gVU5KlylMocVd483BysW/Bim28mZ0M9ObmHDj7vA33Yg/3xXTEyjRvb5p04gq8kvCxRFIWkyuWpuRpewdwPPRtjy2O0ZS3a8nJtS00BWFnzKAOPMUyZOs2z8mh6alQ4AE46tnTOzSsqKGBgQl01q+hiwE46OrkL89UtKuTuMjAtGXz9tDzf9cHzBRSng21EV6LdGYP1ocq9RD/Ceogd2hniHRmpbsOkRShAB1GADif3D/vyA7EonpQWBzVK435gCa1oCTNNVUS9hhSGtnYGfzRgH7SDqb3rL8ZdXJ+wxZyikR2Ljz8m05hTtpSgABlBAWo1Nro4OIK4nQdzvtTqAJfDBdy0g21LrjUZr108RyErOoe67Q7c4bK4rK6B3w+BuUfco64Npnn8i+sPrr/o4b2rC3s8gn+dGSPi1mcGZe189Eg7qxS9tQJbuVmkfKW9dWvn+ZVTw+IDzSMZHlULDWguMm1/42sH9rNd3L666P/D/zeJPu5De9bC5vbmc5uxzbynlqeBUfynv4b/ilNRgZur+mkPND23pAQ5iWr255ikP3WeBtG+0eCvd8UzYD6NLCdIWb8ePf9rmif02eGZw8/UA+D758GCAy9f34kCVCIi07kaJ8MkDyOGZwZFpTrTuXSOX5Iu7IIo+E+5LoRC6YMgCAw/Sy9qH3iMMhHcGxiGaRyfC9gLqQKYAQ+MZnr4Hx6wE0AaIOwI/BBOIhEIMovvYwoNOYvQKCJCG6dxvshzdruM1z58WS0uEEZOismsKu5CNgAAQJsVDMPavGjJWcGHEGBFp2zXQ8qBHNDhRxZPRiafPPgX97nRCCl/C/AieONQXOnjCanjo09rJDcel8wLoUAQiRDwm3ZAGbSz7rM4vGEilP7dFZmvYv5RuPjPRWmL/hRjUar8BrnZ+OLFhw/Tou9yAVZTMxc1x/hAG4CbYkQx1vUc+9WdmFfKeHV8xJEIvVqvPFgY2mJaGCog/a6eCz4f8EIww0de8F+04/1hqhXKFarnbkosNbgC4LhLu7xROmkGUQFwPR9zjVFJCclYJKKtnMKoAMapAIlbY1Q3dSGQ/ehyOwwc28I/Z/q64aTkcXdGXVaXBbMWoi8uoiRU2CPoM8LxJyYADAUdBZxTvFUKVo2AskCl70FGRwQZX/yHmmPY+OD4x94YXdkiXar9rSR5//t5RSyVhTlWv1ya+/Xf3tnQYyyZj/l2IpWSSm4XYr/ivW35c0k3t1pSjaQ6MoCPJIxd9wWle3L9ryE3//uE/kkzoX9taMG+BuqzrSG9T0P/Dks3xlWHkpMYx5QbS3zEFxrzZFJCS6o0ifWUcHvndfenP/IS1F4ymSysAIQEy4JDw6RhKplEvJrlDwvO9gztUCtlyhDQ8XVfKUFfHYnWx+mj7d7Hx8WvKRTYouI0QYLQc/nnkQC5UI7w/cWcVQvDNCuiV2jCQFfGnySCuC9oXU1Nr1TFWbt3s+AH2FppbY1snaiPWLyQ8eB53Dc2Ohzqkbd7aRngY3wwYPLNBud69VuBxFsC8qLS/lkR70PiN8RpNHENfKvji+4d3B3mmP/G29txe1dE7LiwN+TqExxYNL/O0tQY0Mxvys1tDGwIrGdJ6i1Ex5y7gcHLLs7O2b2btVbaq+Dq+bW1qNXd/8iBL0gxfjL2GMr2/vvrXOny+jELU1XEynt/f3LJb9ql0hYlnXtcilRLqrndkufLt3lfsSNd3EpJZXW5V5jEB2TYCOsnuymX/K58Qv/kv7f9KfsKQtfeR572hmz1YsnCZDKZlzqB9+On7us7bxOespKkqS0EqSyv8YLYp2Sj8hgjiRxaHWdMXxwSFKKUKdU7hnrOCmB/1mqxRKYKk4aFBsuCgZiYMS8vIkehzFbllP+n1ADwYE6p/bdclaPMzlHkRZRj5jR5alD2yuwZXhBf9ig7Z+UfaXLzaHAaytAyfFhw5MF4QwRFmkBoD8rS/xmfV773mKE41ZPW/Gs4tnez1fg/hmlkyysflY9ni2qLxx95tQUMhCf0EOgMqQ5H185Wj+IIE8UZBx6z+s/wzrD7bx9g4CHVpWcdSQxbNMlhOnDYDhpm2bgjzJ3lO4LlaViod1owUF/m/I39zRvgHTIj82+K084QVquZzM+3V9DKzreneatqqfDTFfxHo2/s3uW+OpD4LVuBApQ1sNPdvZFRdWrF+CkAwKnxFafSp/Fx3D2dXI1dxCxNSRuzjYx3dIyP2MbSUpbGqHhJ0kAcfgOhNfSwaaf88hoFx8xWspgbKodilA81Tzjf47yBkoWV+neHxYUKisFxw/LjMr+fMjU6irCCmVZBXZps4iiGQB1yW5R7M/lmbtJ3WYAVF+Bgy09o6iUSUdZFZ6phBtXx9AwdVAb2O6jZGP/BcgfcgJkzhVt27ICAk/2trRfLfrJ6+svOtUSV/OlFOcFiNyLrOso7uXPwR76X7euA64Prrusf2BK/lK396Vl+C5wd57q3UrOPMvDUYDZL196bi5rLz/dEGp7XANgs0qNmIkzUceOYzqfT0Wm8YzccQNNF43U6Xd2jDsmLyCH4uyHHXCb/+2H3/E2cibDPL364WFfrTfR96gNKlgeaBPDl+MtUgUlAvSygQMuyFTWM0dhSG2+sabdrIQU7Futqi/eu1OJswEbAvdecJn+xIFi3R2faTG6ewdxxI+MjSY1JiQ3LNbg9frH004JVMmGqKF4QXyGUsFurvGBfS6IgUaQTBlWt/Hhtvbj3TO6/x4vimkTi99W5h8kIpemNn0HZ27963rtHxEphifcI9ohZOv85/VB7/bTlQE2H8uvG4cGL1sCUnJR92bocHfxv19WuA8LV8au/b7AnpgjfFCZVdIPx+Yf53MIr7+EX4vDMtsrxyvn7Kcx0AX+PkJSqkhnlmUWBsmcrCsoMSveYWgbYldXHj7FK9kDjXrCkt+BHyA8p1Pm25v7y1GhG/s41pz/9dqo5Lz9vPVlIFy9CCfG2ALrelBvwLS6yifBvA3LbMVdfWITeHKKyqQwEn7BtQ7IRYWI1VCNKBUm10M00Wc1I7jdZmiBOkB01Ic0yuSvYzwEhDgHigJAFl0zWuYgch3ty9wx1lpqUJHpXOCIYFh0WfSQYEZ4VaZOos4k2QaOgyHfWV5U35sxS/XHvPV5qrz3e5y5/WXxO0MUPPGlMJe/y1vaYc3OTvHaRe85qvd+gxBkXGZLSc+Mob1BxQu3Tw6PbRx0jDp77xYYjc8IuqylAlYwOuz0Es0abhYpIgJrs2HfYNctiYWPlv8srZcI0XqIo0ewDk1evZD+//lgxEcZLFkrmVW5Nkz4YgIzju3QEqyhoOGhYJG7QRJ8/7li9XcZMYMre2ta7XcpMYQY1VjoLrxQdzPUeO7riu/qwaGOC8TtjilH77vXF12VF2hXacqWhuTxBtE+U3AHkpbuZdeI65uPvJFDfNKGiNELJB3wlhGIYLsA9bhVWjHx38F2WbyisYSwVNYYeTkxRD8v49Q1iwhFZHZRUK3CpGmhv9YMqm5QmRzNIO4hxyoA9fIw/Zh+W5yQu7av8Y4DbZcf5PjnGj2ORZnssOC+Stsr1he+7LhgFjP3LQ02teI62XEdoPR8+0kTs1L9rS74AnDc/yCRjMGn7y8dATL7CbncbSZtjCZq1YcMkNbwydMGqtiY3oWxpqlrKcY+E/UKjcS6wDHmPnGcnjYBccu7YGQYGnYTgttNFb8sFludBrCAMhemic6nsYh04FD5ey9gc7i5mzKryimPTijH+mPqyHXrIdNxf7+mqwufk5TlRZ15+X/a6Xq3nnbqsFZkY5hiOS4wsyDXhANZ0iPHsIf/XF6AmBHcaYIMO6+Q4N/YZYO2X2q919szor6KVT/VfUeO2bQN5qZlpE9uYZnN+aTV3XDwa5D+0xhO2fDiRrgeApH/90g80Xkoj5GI2pvBo///7rpYEgNYy0c0iQ+kV2cGaY8TfT7mhJEVK1Hcax+HrFogcMe2y4SGpJYU4nMylD3zuYRz+xU8wVLtG67N7sx4zhgv8LmbNee7dpXPdl7fJS1JDtoGISQBBYgvka16pMnv57mcBy90D7TnKO2afOQMbaOrOv/3racUdKMiqbl8UZVOb6qcyz++qup0zT22QGfH5rKuxelmqupSUSa6YlX7zlZjQutvju8gQ4Q0LvzXUN+j3zZ0cVKW3UVNSd99WQ3CEph/E5Ne6XC4cBWheRFOYNjk6PIxd0e6yo2DZQH6Zzndh7mtfMDgZ6juYmfHsIGyw8cYVSz/obzXI/Y9DxrlfFlIEHNifEu9QQb4Acx0lZBQ//01kmEN7D6KjdjThaYThkBMNGv8mCLSV/1oMa/c2dkPz/IQVVdOXJp7u18p92m/apPCi1COHU9suy2xJpmZTnl608x/urcDTZ9a+G4XG3xW5QswVruHemiO9XPAYVwQGb8jJni3bpq3x8uVnZG0qTWfve/SaL2179gaAPYcZKEDnUA/Vrtr7pmmIMcTnkoxMRiTDlAzy157ml9nt08vFYv82J+Zlcdi/EWLhtkeeYLG6QtZ9824dF8D5vl9VrwNqSe1A8s7qr3xXwAzukvRkWRfcxa6Tv57TR7nJMF5YEpKK21x121JDSuTbLru59Lv3PHPkRT9BuBHTb97to11TOyTw++Uww/P5wF0A9OkTH7LIALJcP+zQfBeVokiC3Kd+Jx7TBGdXpENkVveERQsASfvuv//TeI0pTBeU0sij/XDpdT1QbaPOkadcdXtRCHGAnQutpdDcAQi9bP14igwq77v6L0DHd7t+rfxjD7CCOMvXQ3hwB95u95sBnqG3Sq07/gqH/EiJbacvD9E0bhqCwv/aYS31CnPzdaB3jbQ7hN9+WsMKf7LWahrs6LeobsPQJpOWDKML+0/3wIh7EDAkd6329oDB/ML+8+f7J+7nz3UxizKZb6EAiUfm2vERpbfO8UAp29IP8j8HI03fvLuu+ivffBhw69ifkpAu1rGlZUI9rtVJCq++hk5RAXXEzhWrX7rUJXmNjs0beAbAarjxvfpHtb/Af6U1m6ybUAjZNOY53ju19xUbxoocYCXPx5F2AIDdeT6BejDZ6nazGxYVG30lY0yDSdpCurWO4v3K6npeeP/EHBnFVtu9rKVFKun7p6z/xHv9T5rrwjCEiT7pf+9E/9aIv+pFLr01OvAiMnf+Ibl42pibZ4Do0bxoOhRODlRI08UoeaT9l01slAxoGh4kVChM7fTTG1aosEydqdX//Pchu0OGQ/pB70QnyaSpT1sSffRoLNebRPH3k7pGnKiHmKFZuvRJZUFEnlJljso9qzIrs3MiclUVhHgqA/liS2pEgUGukwenhqbtCk7Nfc1sJvwBgm5qh+1jwvFhe6/uB2pDBmW9OlofYBRaGMUMa6wOMwwnFjMsdF1cOiaw7M4iEok5G3afzc47EVRXqM/X1bGb2J9lGgp1eax6v6agOmHRrxNDCTZyPHVKB9xnEYDOIADBUYAI+AIEoDgCkBkUINZReA5uLM6vyJnUjq86qaGmNsKgzpK+S7dE/RmByQ0RRpc481Pt9Pm0pncp2PvAuMSgX7JBjyzRb2CGqBiyhljc48kF3Tyv/gY5bjWFGcMwbnKFZaAmhsNc2PPqkGGNC6oDsm30PHzUvNwIc4QSTw2uxXxuIKw7haviiF/fjtkV+7sV3Ok/Jds7S9W1jiKeOf7toU8+jNbYOhqDVTWNx8ICVmHtWea0s7D89VI12pKYMqhZllH94RXKXGV2doRZVQbgUmCOyFIqsyoPlJFHfrxHyBzqsGZK4eVRfAZvd38Jfym4jeEQe8Bu9O5YgyYQHxwewlZ7Zc6G+56cMdyjYIvNEPOoGQmdfP8/AyD3GZt7IzvphnQiJ/Ucwnq3ONtX77NVfMTwaW+o+3CbOZzCyy37dGb+Oyk7Mi5mCvPFlTSgkT6qPZsaWrjiALOWeaA1tLAdBYgLYaLt9xpGrMNprjSrC3O549wEe3h7OAh2k3MM5wg3ckw3KOyRt7uCK0V/3un5VA2FzXKrVflJzVWGzsIjyFE2RbUuGf2jegenwVitj2+f3bEt/ydSIJqKeiU+fQKC9dkmxooMsg/9ZesDjmErx/Cg9SXdh7wiw8QA3+en5n8PRq3/rqYYT+Lj2bv4mqb7uONYtzOfLKPHHMd9OrBam3+hX02aSQNCah2/z/8y9rVtX3CDmMXur7A3C0KZN2u+02cq8WPLr0U/0d/65cfw8CQjPtax7XNEtoASGcr4pOaGLuOcsUSAsyabQMg2OmNjd3yJi5gbIPEyV+vXvZHRNZ3ckJTUsFwTgIw2oGm178jZo3Uf+f+okw7OGqcOG2HXqPHwVPUpkA3qfvTbX1ruyXxWXv5MztEG4AFaf7ln5Ef/DdgGT3vO2xMzg7a/jQa++WlgaJ8XFAV59eX3hUJq/9JCAz99MxB9OyJl0X/OUYH6Cl2UNCMiMasIwaUyAADYrBDq1tilrHcE7wAAOcAhQ6TyzRywmE0WTSaJJFdO8o753dFJN9yXhoWmG0LDgp5lZf2Q8UNZ1g9B/jH+GipAGNQ0Vh87ecdE+n3pBt0dP90MCmm1rEiWlzfkhUNxJY+fqh3f/WKP/uxFaUUIiYKy+UeTg7YeRkKdeZ0UQiSB0pnbGUKIOu/pDEUOK3CqB5mjquZbtbEfAhRc9hHM3PlzZ0zbyhpDNSh5/H5zQlZ9xkr9ycxKaG44ksDOMFcrWqsUmWZ2wpGNV/zPhZ4POx96LiS5E8B7DV3iK47ZgwLEh2sRp74NeNFq31fUoGzJC5JQxbHUUuSVNPGv/uOpj4u2t9pxxj/AJSVGGXZMck6JT9PTcXz9PXxp+jmYQoVaK5WPkp5Rg9Hvve7uWPWfP0WyerVnC2yZDbysdbs9J/jHeBx4wIO9NnsQ1nsKDdPTQEmVj1sKviIMX/w7tueeAgsxEfDq5wa8DWGe9sPFWcEUHvejr7oofQY7M37j89K6HTUxDlL61PuB3PQu7FyQ78OD3tVg3t6XuAu3a63EAbsDL3L7XD1OWCBVRG5ORHl2HK4HqOC69KYqUfANnUCdK8bV+4lRdiju5rmD8pwMlpP16YFBmidUzsBXbCbfXZbz1FJfD6vGqi6IiipQW0c1OEhQth+9961OXFwdXxkXVxlf/USDgwRl+yf3u2GiUbTRisCW0cDrLYEV1xfCUf5Ms4Owc+bTCc3OIwnsTHOVorVakcFddgPnfZsAT7yn/XBJZrAXj7O/71Ude69TvHtzqA8PtP+sYml9g39xZrFuyckltVF1N7uX5NeNOEmdf/75seScyXWSp5bUPA8YSK7Rkziz3F+4sxwf7hRXHFvnATd2UJanPxbR8/xrmtp3+85RjG7qzm0n6szPd1INfRcvtD3OMa+8RxC0eAMEpcbklkcf6xo/n/wYWzZK7iSzryzNiQ7Dt6WdxpFfyfVZvLzT2KMtzPcAGMCZCKgn+z8bMmGgd5xI4d8lyY+i5Jm8rnFbuD4EIiGZl03w9yYF+tCz5UQiwX9Ip4hiH/F7hx78tZF2asOh5UWScNPN1N9cfzw96D+00Q2iIVhm3TTly+87/J2MVE8kevuQ5MH+FBIpkJRF4NC4xHAfHkogayuzvSW72OQi6hRakQsaUmJ+/Z/giFy/pd40hUuKlh/acMpI+zqY/o7fEbYiSjfkTyAS5dl0n0CStz8hm5dMIBJ8uC3cayavTzuH/A8e/+nEFJVcxN4lyfau1JIJKM8nnMilcQhZpEASieIfLCf5eBOJ9aTvZIf7+L5Tm6wyGIoG/6/6j0aEvVLTW9r0aRSRwsVEAQpooJOCibPueHoKdQrBcQ7+xIxgPM/u/gtPl8t7mCKxQIVVt+QgOKnmWEsglzJsN5ta6nJSz2J2e2rBsBIdhHeRvhM4hEtj2VZmsjXktQ+cPz0DBp0HDN92OMF0CPdHMBdwTXhdXrC9Pkvu/rkDA5hSeLly+5IsUwr9RL1y2nuYEsg91lKT1HqrCiqUWCjDYMB4Qq1UBucDmzv1CXL6+696SJe8+1I/Rj/njT0K3SikSxW236MO/B76R6i/ZXWlO0uT5oeGfF0Yz3tN+RoPJDpqB2eM2MeS+Nj5Kut5WOi0bOLj/BFJoflJH+vKNJfHA2y6tvb0wzCbkbIjdX0Eh0PZ1B2UdaGCzeILNU9a5ItLy39e1Ufbg0CXC1jIiH0EairIrvbQnPaHlL766P/DwaG9ZzkTYROcb8f/JZeft4187v/X8EQ4XuSA8LM/7Ptsvo0fDZ7Fxti9zNPMXvbYtAv1YlKYXqjm6aykQFb0sQZXMutsEBiFmUMAkNuQn98Z3rAYHqzT+UxWWDH9zM+B6Bz3bWqkmh/Cnlp+mkEtx8nibhqCPOiCV9LDw3g7rh0HtuzDfkKKvtaRkdm5/fKCQgrMgK9Q5Fn128PzjjKvRZmIK3yAu34xgg7C9E385kpu1AFov9/9knWW9eVdd98dxt7TMvjvZY49bupDnAZDxntXNThympf4RMpeF/pOONFF7V1I/zmVfaUW54pkXBM8rx4eLZo+tATpd+VSVoOkXtIpccJnEkhWslcX0UoKJ9EL6t1FtgLPZOj+qgXYdUtC2xcfWMF+/qrPN2VXv/TE4tvvG+2XHUPX47PKwisUzYtrNAuiMSte0liqyAvLydayF3ntvL4sLyY7sLBjsFJ29/mQXjRzDlwkW0kJlCJ7d5F268syUbSaVS9pkDglneAMMK1MNtSnaObOBbOQvOLI1QOibM9URvOqjOYpz+xc7uvx8+p/gOg5019lLE6XbgE0ZM3DF37tcaIF3/8Rkpr95b5tGYmtDIMwXWgVWoYSJpL5BvaP7F1Bu9X4ri8vNgNPjvd4GZRd6IaKDWiXEn169MnFvK5/jf92vQDqHHzNYivMXqIX1z9ijVZi9EU/cr+ExAW7wyq2TS00aoqSVqt71Bbi19+FU4dywnbrKh1N9rlbjheXrgZtz0e+bV5tGXsa/PWfMIlMJgaXUb3FjNAsTmIY2Rsh6WJYuT4957wpJej/HVGrp7yTCle6vmPZwH97C1rfFq8vbDs8kfUB420UoPSWgrb3P8++o/uBpCGGkzQkMkzUE4VEDZFTEeSO4v3U9hrVHcGOMiqB/o0gUXWz1i0GVBAZYc4+BtRluapol8xuM6X4dcBz9qhf6zfYVUKVNvauY1PnRN9Lf+8z1ZOPqn6faa9LC1PXtc/8XvVosvqMt//LvhtOliprl+WUBneq46zTc/klKxBJbG6R0qYaR0BI3+YSRPH7d9+hxoCM3OW86SzP7UH/p5+Kzr+iA0Pf9noxOUP6/Zvoh0NRQw+jv/mdNDP5wuvt0MDov2zURyPDLtw1EVCvvRnlCsyAwr8zM8PIsWMO1zSOtyvgCibs97cNSPSpcTXGrdw3dZmZb1TGTeoF2znb9LxvKmP6M19/NL7J2WqMrYlNhkBcTQF5X5Tz17yINLlRUCQ3KrNVR5+H7CMXxGuoHhhs3QHPcT3wDrCd+ozroe7YBnu4c/C2bTAD1H0cvSP9/VMRWVkRyrL68qQb2WtLT4enk1Kwp/7Z136NI+3/WO7OUKxbn76Tr+uIX+BL++Tr/L7u+P1+lmEtFbGlGk1pbEVLs6Y8utgWkzZvJHSASn7aunxWyRW1fElKy05UU1rGK2PJ299uKoupCFMAIlY7NVGPHdaJa7pk/Od0mLaiNHadbkdNo8y4NH1p8zoQl19+WYj8CCLmd5wOb/E7UHqKYCQ8lMkeGgmEU6WbiS3hpzvmR3grvjb15Evkugpky6O+YjdhIb9IWPKVXvuJTvNAWMy3EFpehlY/8KrQySVglaSZ5gU06eAqI+6/PuEg5fQxGHpxgu9hfwktD77JilR8NSd5yhxzjI1XngYi/bq+3nVRVqBkaK82/uwXZQNKRuzlLv5OH/jr76avwoA1je/4mNel/d/Hwet41r7TeWuJdeDqoc7fsSsvXwBrPyme2sP+7wl4EUlCoyje7pi49Yspq39jrbfJBuVybcxvi7fEHZo9N2VSpYbZ/Ar9cshFlFS/goD/d3gV0CBN+QRpa+gKly1r+mIRX1z3QS7IyFgWtI3SrTEV1mTkd4dvofw/kVEW0W/UA+g+KZ2y0iTtufzGxt3zaQw/dcbVJ5uuxG3xu12Vdkx+a809ZXbMw3/Ey59/llp4r+J6Tgo3K7BcUKPeUklimCVVhB+PiidXf9tpZ57OB0ObAcPAgL85BSBI4idsz/Eiet/zn/KFJCI+vfAn3yn/+75zYvYa/vw9XwDht8wS8XxyYcTospAFjmUg/qSe+HJde8fn/gWc/HO5nDz2vTRdf887/Wh/StqrXKEtT+Tp4y8KWNTU1jy8iNcmKCgQVP+mp9SxZCpfomBPF0bcbg7JcywDCZf1xJed9o7P/Qr888/lcXLZT3W6/gAW2lUV7b0h6aSf/hNQ++DRRkZr0dk9FfppKUUjvlCTaiKPogau4ebO2ibQGLcT3H3r+AGoV9w/WJS/rOtU6aUtSMETf7Ogz2/zmOYvEhcwEl94U0ngf+LMB54eEiD2CNMb9BnI/7FpVUzYSnqm3TYpoQ2Pow4wAkqoCGDsI/AxG8XBGpWAVKAiAopBPDUCRQBAjo6BY+KQOMALvMZKjFS4Vfl4Fg4lon1bVUsMrrPVVDjkBabGxFC8z8VOApUYSFq78cwOAofGhC287dwPAh2kgWfM5le4RvAVZ1BRtB4ZIx2FnKmBFVJZH4HK+QMA9dSFNajUmPWklpWWrM40LJvirQbyvhYEiENhDWp47KEdRAMHpKE1yi5X5597K0sn27KN/qvUSQoA8LoXFEmtQlr4S9B/33lxEdAASHlEX2UAeAA4ssEU2vuBUGoQ8AH5RgBeoJnEUXsdSdA+bGRABaOkQPux+QIFlPGaCvygNwFR9kk++2AAKoMAGyQaAdBBGYnYdpAE7c1GBlxwnBRof2O+wAbmfqOCYGgx0AMHqANVYLF9WAvEoBosXfPtN4EasAi0gXoYbtwECO2RlBVJXrMAdIKq72BEUmhZVZdHxPYGoBDUgQawBLSAqvmiX4nzCaQ4oZgJG6irzI6f+HW8GKiBCkQBQPL8KKlVUalVk2jLYdH2mh1Sow0gGqRZzwKZDkmztRHGHDCh2VKbi36K9nCzmTNrROtUAJDgF3Z0NkQvXlyP/4wXPYQUvoHLw48B0Jj/TDuIB5F1u/qcharGSqtOZyzrpRFvdgEn6zJ8v8IQJeSfmAkQASJCJIgMUQ6C0nTDtGzH9bCw+fHHwYVABQjEwycgJCImISUTRC5YiFBhwikoRVCJFEUtmoZWjFhxMLh4CRIlSZYiFQAEgSFQGByBRKExWByeQCSRKVQanREAYrLYHC6PLxCKxBKpTK5QqtQarU5vMJrMFqvN7nC63B6vDwyBwuAIJAqNweLwBCKJTKHS6Awmi83h8vh5BgiEIrFEKpMrlKH7KkCt0er0BqPJbLHa7A6nyx2pC16fH4RgBMVwgqRohuV4fIFQJJZIZXKFUqXWaHV6g9FktlhtdofT5fZ4fX5AmFDGhVTaWEc6nywp93pjEF+esQ5zxc211BcU3l3bQP0GBbiXA9hus8PXPfpPvt/1UsJdwi78Tl+EZZdHSF5LWXfn9UtrpVXKz2s+r7YVnrwW8xpbb/wSFqSXK3Awx+QOKc7r3/lPJEr2Xmii9t5G2ae8M5IO04xIJQS/w45A+N84Fmmz9Li+XGsjTIsTub6fYtt9Yd4B26Qg/FWuYgAVVm1RGrZ2ghFOaM1HqG2ggDkAC3MgM7ZetybkcL+0Cv0LF9pmXtvKwDhNZU2FU60zdQ9z4TAbDQU4ge+Rw8WPrfMcmIbDVGsmnKbfXJLmYNMEB/eEiSOLwk23fQ05jLl4WY8Qray1Y/ntYG3ghSDGJtwJ78gyzMmCp2SCaIGUy4JVGKArttX27ahK8aupMlJooOHQIghimWEaG5WV/Co50Ja/kzCKBd2c1FxDSZBx6Bj1ELT4kDQUniGjmaczG2uPwk5g/khBQNZ+6cjQ92gO0xsqhbAEye+WcWLzFHc3KJPD1LXtYoG+KxgXLLjZTXwYOHp+h8XYhvQ4/cStuUeokLUtnMaiTazAWuS0DBUycA78yWCYoGR4ZZP2KIREy1oXHgicFMhx7Jgt3Hu9f73MZ5sLnTPXKknmT5aiwwTjEU7Vx6394kwYKFZZo99aJA6SnBTIQZcJgG2iOYEsA/LgjmzKES2ZorolhWDN4CQuJuRsFswnDcUAAZi2TRY7JPXJAYgZ+rwVJO3T4yAk0pyCAGwjaFvwZo0PWAJpnAVMR/IKkLFD3rrE4CXkkh7ZdmWq3JjRmQOLM4eFIcU3V4kDVT6REKckYXPGANSPBMWlNOQYjkIawhCXnuM5prZCQwfdXgqfZidhGfJpYOqTA/Y0500ZB4LQReO8YZ6mjq2e6QIdzdGLzR8ziEWSLVQd2NoiYGkRGaMXLCt0oq7fOWoCTc11KgkMttjj0jFJ6zIc7BafifCk0pZOhSbraAopcEpG4/kOwyNmF39Mt5ppTW7jRoB8WgPkOc51rC8oKZl62iKAamlu4DmuBkvCcCtjwcMLAlVzR32t10CwTyM6AbagGllb48gU5ACDzUmBCyJqxlxs8U4XAyTcTtjWMNGdH9GuwTBmjyI3YJFEgrovcQDR5kFZ0NMkmgTDZclc183uTcoBDNAaimIE2Cwu9OXklBGRkNvItMU7zXTlX5Zz/V8YIO2iK//xMnpu22WBNXRyG9vGQuJ0mGsc26/Aag5YQelZZs5Bi2ubsxHV/DzGXRt3P3KTOvQ4HG8aKpm9OyoHnIgzG/GkIEerHqEBaYCQ8UJPWbg8/vNFDyFvqkhIe6O6l0WordG9pHAAyyTWbhCGHCtBD7vDjzljqRT4+8E2POgLpACHDw+E5jqrtyanHw0AAA==) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_ciljc7axaw7.woff?t=1705587463221) format("woff")}.van-icon__image{display:block;width:1em;height:1em;-o-object-fit:contain;object-fit:contain}:root,:host{--van-skeleton-image-size: min(25.6vw, 153.6px);--van-skeleton-image-radius: min(6.4vw, 38.4px)}.van-skeleton-image{display:flex;width:var(--van-skeleton-image-size);height:var(--van-skeleton-image-size);align-items:center;justify-content:center;background:var(--van-active-color)}.van-skeleton-image--round{border-radius:var(--van-skeleton-image-radius)}.van-skeleton-image__icon{width:calc(var(--van-skeleton-image-size) / 2);height:calc(var(--van-skeleton-image-size) / 2);font-size:calc(var(--van-skeleton-image-size) / 2);color:var(--van-gray-5)}:root,:host{--van-rate-icon-size: min(5.333vw, 32px);--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-danger-color);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}:root,:host{--van-notice-bar-height: min(10.667vw, 64px);--van-notice-bar-padding: 0 var(--van-padding-md);--van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md);--van-notice-bar-text-color: var(--van-orange-dark);--van-notice-bar-font-size: var(--van-font-size-md);--van-notice-bar-line-height: min(6.4vw, 38.4px);--van-notice-bar-background: var(--van-orange-light);--van-notice-bar-icon-size: min(4.267vw, 25.6px);--van-notice-bar-icon-min-width: min(6.4vw, 38.4px)}.van-notice-bar{position:relative;display:flex;align-items:center;height:var(--van-notice-bar-height);padding:var(--van-notice-bar-padding);color:var(--van-notice-bar-text-color);font-size:var(--van-notice-bar-font-size);line-height:var(--van-notice-bar-line-height);background:var(--van-notice-bar-background)}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:var(--van-notice-bar-icon-min-width);font-size:var(--van-notice-bar-icon-size)}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:var(--van-notice-bar-wrapable-padding)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}:root,:host{--van-nav-bar-height: min(12.267vw, 73.6px);--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: min(4.267vw, 25.6px);--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1;--van-nav-bar-disabled-opacity: var(--van-disabled-opacity)}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left--disabled,.van-nav-bar__right--disabled{cursor:not-allowed;opacity:var(--van-nav-bar-disabled-opacity)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}:root,:host{--van-floating-bubble-size: min(12.8vw, 76.8px);--van-floating-bubble-initial-gap: min(6.4vw, 38.4px);--van-floating-bubble-icon-size: min(7.467vw, 44.8px);--van-floating-bubble-background: var(--van-primary-color);--van-floating-bubble-color: var(--van-background-2);--van-floating-bubble-z-index: 999;--van-floating-bubble-border-radius: var(--van-radius-max)}.van-floating-bubble{position:fixed;left:calc(50% - min(50%,300px));top:0;right:var(--van-floating-bubble-initial-gap);bottom:var(--van-floating-bubble-initial-gap);width:var(--van-floating-bubble-size);height:var(--van-floating-bubble-size);box-sizing:border-box;display:flex;justify-content:center;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none;background:var(--van-floating-bubble-background);color:var(--van-floating-bubble-color);border-radius:var(--van-floating-bubble-border-radius);z-index:var(--van-floating-bubble-z-index);transition:transform var(--van-duration-base)}.van-floating-bubble:active{opacity:.8}.van-floating-bubble__icon{font-size:var(--van-floating-bubble-icon-size)}:root,:host{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: min(8.533vw, 51.2px);--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: min(8.533vw, 51.2px);--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}:root,:host{--van-back-top-size: min(10.667vw, 64px);--van-back-top-right: min(8vw, 48px);--van-back-top-bottom: min(10.667vw, 64px);--van-back-top-z-index: 100;--van-back-top-icon-size: min(5.333vw, 32px);--van-back-top-text-color: #fff;--van-back-top-background: var(--van-blue)}.van-back-top{position:fixed;display:flex;align-items:center;justify-content:center;width:var(--van-back-top-size);height:var(--van-back-top-size);right:var(--van-back-top-right);bottom:var(--van-back-top-bottom);z-index:var(--van-back-top-z-index);cursor:pointer;color:var(--van-back-top-text-color);border-radius:var(--van-radius-max);box-shadow:0 min(.533vw,3.2px) min(2.133vw,12.8px) #0000001f;transform:scale(0);transition:var(--van-duration-base) cubic-bezier(.25,.8,.5,1);background-color:var(--van-back-top-background)}.van-back-top:active{opacity:var(--van-active-opacity)}.van-back-top__placeholder{display:none}.van-back-top--active{transform:scale(1)}.van-back-top__icon{font-size:var(--van-back-top-icon-size);font-weight:var(--van-font-bold)}:root,:host{--van-tag-padding: 0 var(--van-padding-base);--van-tag-text-color: var(--van-white);--van-tag-font-size: var(--van-font-size-sm);--van-tag-radius: min(.533vw, 3.2px);--van-tag-line-height: min(4.267vw, 25.6px);--van-tag-medium-padding: min(.533vw, 3.2px) min(1.6vw, 9.6px);--van-tag-large-padding: var(--van-padding-base) var(--van-padding-xs);--van-tag-large-radius: var(--van-radius-md);--van-tag-large-font-size: var(--van-font-size-md);--van-tag-round-radius: var(--van-radius-max);--van-tag-danger-color: var(--van-danger-color);--van-tag-primary-color: var(--van-primary-color);--van-tag-success-color: var(--van-success-color);--van-tag-warning-color: var(--van-warning-color);--van-tag-default-color: var(--van-gray-6);--van-tag-plain-background: var(--van-background-2)}.van-tag{position:relative;display:inline-flex;align-items:center;padding:var(--van-tag-padding);color:var(--van-tag-text-color);font-size:var(--van-tag-font-size);line-height:var(--van-tag-line-height);border-radius:var(--van-tag-radius)}.van-tag--default{background:var(--van-tag-default-color)}.van-tag--default.van-tag--plain{color:var(--van-tag-default-color)}.van-tag--danger{background:var(--van-tag-danger-color)}.van-tag--danger.van-tag--plain{color:var(--van-tag-danger-color)}.van-tag--primary{background:var(--van-tag-primary-color)}.van-tag--primary.van-tag--plain{color:var(--van-tag-primary-color)}.van-tag--success{background:var(--van-tag-success-color)}.van-tag--success.van-tag--plain{color:var(--van-tag-success-color)}.van-tag--warning{background:var(--van-tag-warning-color)}.van-tag--warning.van-tag--plain{color:var(--van-tag-warning-color)}.van-tag--plain{background:var(--van-tag-plain-background);border-color:currentColor}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:min(.267vw,1.6px) solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:var(--van-tag-medium-padding)}.van-tag--large{padding:var(--van-tag-large-padding);font-size:var(--van-tag-large-font-size);border-radius:var(--van-tag-large-radius)}.van-tag--mark{border-radius:0 var(--van-tag-round-radius) var(--van-tag-round-radius) 0}.van-tag--mark:after{display:block;width:min(.533vw,3.2px);content:""}.van-tag--round{border-radius:var(--van-tag-round-radius)}.van-tag__close{margin-left:min(.533vw,3.2px)}:root,:host{--van-card-padding: var(--van-padding-xs) var(--van-padding-md);--van-card-font-size: var(--van-font-size-sm);--van-card-text-color: var(--van-text-color);--van-card-background: var(--van-background);--van-card-thumb-size: min(23.467vw, 140.8px);--van-card-thumb-radius: var(--van-radius-lg);--van-card-title-line-height: min(4.267vw, 25.6px);--van-card-desc-color: var(--van-text-color-2);--van-card-desc-line-height: var(--van-line-height-md);--van-card-price-color: var(--van-text-color);--van-card-origin-price-color: var(--van-text-color-2);--van-card-num-color: var(--van-text-color-2);--van-card-origin-price-font-size: var(--van-font-size-xs);--van-card-price-font-size: var(--van-font-size-sm);--van-card-price-integer-font-size: var(--van-font-size-lg);--van-card-price-font: var(--van-price-font)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__title,.van-card__desc{word-wrap:break-word}.van-card__title{max-height:min(8.533vw,51.2px);font-weight:var(--van-font-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font)}.van-card__price-decimal{font-family:var(--van-card-price-font)}.van-card__origin-price{display:inline-block;margin-left:min(1.333vw,8px);color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:min(.533vw,3.2px);left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:min(1.333vw,8px)}:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: min(6.4vw, 38.4px);--van-cell-vertical-padding: min(2.667vw, 16px);--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: min(4.267vw, 25.6px);--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:min(.267vw,1.6px) solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}:root,:host{--van-coupon-cell-selected-text-color: var(--van-text-color)}.van-coupon-cell__value--selected{color:var(--van-coupon-cell-selected-text-color)}:root,:host{--van-contact-card-padding: var(--van-padding-md);--van-contact-card-add-icon-size: min(10.667vw, 64px);--van-contact-card-add-icon-color: var(--van-primary-color);--van-contact-card-title-line-height: var(--van-line-height-md)}.van-contact-card{padding:var(--van-contact-card-padding)}.van-contact-card__title{margin-left:min(1.333vw,8px);line-height:var(--van-contact-card-title-line-height)}.van-contact-card--add .van-contact-card__value{line-height:var(--van-contact-card-add-icon-size)}.van-contact-card--add .van-cell__left-icon{color:var(--van-contact-card-add-icon-color);font-size:var(--van-contact-card-add-icon-size)}.van-contact-card:before{position:absolute;right:0;bottom:0;left:0;height:min(.533vw,3.2px);background:repeating-linear-gradient(-45deg,var(--van-warning-color) 0,var(--van-warning-color) 20%,transparent 0,transparent 25%,var(--van-primary-color) 0,var(--van-primary-color) 45%,transparent 0,transparent 50%);background-size:min(21.333vw,128px);content:""}:root,:host{--van-collapse-item-duration: var(--van-duration-base);--van-collapse-item-content-padding: var(--van-padding-sm) var(--van-padding-md);--van-collapse-item-content-font-size: var(--van-font-size-md);--van-collapse-item-content-line-height: 1.5;--van-collapse-item-content-text-color: var(--van-text-color-2);--van-collapse-item-content-background: var(--van-background-2);--van-collapse-item-title-disabled-color: var(--van-text-color-3)}.van-collapse-item{position:relative}.van-collapse-item--border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:var(--van-padding-md);left:var(--van-padding-md);border-top:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-collapse-item__title .van-cell__right-icon:before{transform:rotate(90deg) translateZ(0);transition:transform var(--van-collapse-item-duration)}.van-collapse-item__title:after{right:var(--van-padding-md);display:none}.van-collapse-item__title--expanded .van-cell__right-icon:before{transform:rotate(-90deg)}.van-collapse-item__title--expanded:after{display:block}.van-collapse-item__title--borderless:after{display:none}.van-collapse-item__title--disabled{cursor:not-allowed}.van-collapse-item__title--disabled,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--van-collapse-item-title-disabled-color)}.van-collapse-item__wrapper{overflow:hidden;transition:height var(--van-collapse-item-duration) ease-in-out;will-change:height}.van-collapse-item__content{padding:var(--van-collapse-item-content-padding);color:var(--van-collapse-item-content-text-color);font-size:var(--van-collapse-item-content-font-size);line-height:var(--van-collapse-item-content-line-height);background:var(--van-collapse-item-content-background)}:root,:host{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-text-color);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: min(4.8vw, 28.8px);--van-field-clear-icon-size: min(4.8vw, 28.8px);--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: min(3.2vw, 19.2px);--van-field-text-area-min-height: min(16vw, 96px);--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: min(4.267vw, 25.6px);--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field{flex-wrap:wrap}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--top{display:flex;width:100%;text-align:left;margin-bottom:var(--van-padding-base);overflow-wrap:break-word}.van-field__label--required:before{margin-right:min(.533vw,3.2px);color:var(--van-field-required-mark-color);content:"*"}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.van-field__control::-moz-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:-moz-read-only{cursor:default}.van-field__control:read-only{cursor:default}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-moz-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}:root,:host{--van-search-padding: min(2.667vw, 16px) var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: min(9.067vw, 54.4px);--van-search-label-padding: 0 min(1.333vw, 8px);--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;align-items:center;padding:0 var(--van-padding-xs) 0 0;height:var(--van-search-input-height);background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search__field--with-message{height:auto;align-items:flex-start;padding-top:min(1.333vw,8px);padding-bottom:min(1.333vw,8px)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}:root,:host{--van-action-bar-icon-width: min(12.8vw, 76.8px);--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: min(4.8vw, 28.8px);--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}:root,:host{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: min(8vw, 48px);--van-loading-spinner-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:min(.533vw,3.2px);height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}:root,:host{--van-pull-refresh-head-height: min(13.333vw, 80px);--van-pull-refresh-head-font-size: var(--van-font-size-md);--van-pull-refresh-head-text-color: var(--van-text-color-2);--van-pull-refresh-loading-icon-size: min(4.267vw, 25.6px)}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}:root,:host{--van-number-keyboard-background: var(--van-gray-2);--van-number-keyboard-key-height: min(12.8vw, 76.8px);--van-number-keyboard-key-font-size: min(7.467vw, 44.8px);--van-number-keyboard-key-active-color: var(--van-gray-3);--van-number-keyboard-key-background: var(--van-background-2);--van-number-keyboard-delete-font-size: var(--van-font-size-lg);--van-number-keyboard-title-color: var(--van-gray-7);--van-number-keyboard-title-height: min(9.067vw, 54.4px);--van-number-keyboard-title-font-size: var(--van-font-size-lg);--van-number-keyboard-close-padding: 0 var(--van-padding-md);--van-number-keyboard-close-color: var(--van-primary-color);--van-number-keyboard-close-font-size: var(--van-font-size-md);--van-number-keyboard-button-text-color: var(--van-white);--van-number-keyboard-button-background: var(--van-primary-color);--van-number-keyboard-z-index: 100}.van-theme-dark{--van-number-keyboard-background: var(--van-gray-8);--van-number-keyboard-key-background: var(--van-gray-7);--van-number-keyboard-key-active-color: var(--van-gray-6)}.van-number-keyboard{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-number-keyboard-z-index);width:min(100%,600px);padding-bottom:min(5.867vw,35.2px);background:var(--van-number-keyboard-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:min(5.333vw,32px) min(5.333vw,32px) 0 0}.van-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--van-number-keyboard-title-height);padding-top:min(1.6vw,9.6px);color:var(--van-number-keyboard-title-color);font-size:var(--van-number-keyboard-title-font-size)}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:flex;padding:min(1.6vw,9.6px) 0 0 min(1.6vw,9.6px)}.van-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:var(--van-number-keyboard-close-padding);color:var(--van-number-keyboard-close-color);font-size:var(--van-number-keyboard-close-font-size);background-color:transparent;border:none}.van-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:flex;align-items:center;justify-content:center;height:var(--van-number-keyboard-key-height);font-size:var(--van-number-keyboard-key-font-size);line-height:1.5;background:var(--van-number-keyboard-key-background);border-radius:var(--van-radius-lg);cursor:pointer}.van-key--large{position:absolute;top:0;right:min(1.6vw,9.6px);bottom:min(1.6vw,9.6px);left:0;height:auto}.van-key--blue,.van-key--delete{font-size:var(--van-number-keyboard-delete-font-size)}.van-key--active{background-color:var(--van-number-keyboard-key-active-color)}.van-key--blue{color:var(--van-number-keyboard-button-text-color);background:var(--van-number-keyboard-button-background)}.van-key--blue.van-key--active{opacity:var(--van-active-opacity)}.van-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:0 min(1.6vw,9.6px) min(1.6vw,9.6px) 0}.van-key__wrapper--wider{flex-basis:66%}.van-key__delete-icon{width:min(8.533vw,51.2px);height:min(5.867vw,35.2px)}.van-key__collapse-icon{width:min(8vw,48px);height:min(6.4vw,38.4px)}.van-key__loading-icon{color:var(--van-number-keyboard-button-text-color)}:root,:host{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: min(13.333vw, 80px);--van-list-loading-icon-size: min(4.267vw, 25.6px)}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}:root,:host{--van-switch-size: min(6.933vw, 41.6px);--van-switch-width: calc(1.8em + min(1.067vw, 6.4px)) ;--van-switch-height: calc(1em + min(1.067vw, 6.4px)) ;--van-switch-node-size: 1em;--van-switch-node-background: var(--van-white);--van-switch-node-shadow: 0 min(.8vw, 4.8px) min(.267vw, 1.6px) 0 rgba(0, 0, 0, .05);--van-switch-background: rgba(120, 120, 128, .16);--van-switch-on-background: var(--van-primary-color);--van-switch-duration: var(--van-duration-base);--van-switch-disabled-opacity: var(--van-disabled-opacity)}.van-theme-dark{--van-switch-background: rgba(120, 120, 128, .32)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background:var(--van-switch-background);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-duration)}.van-switch__node{position:absolute;top:min(.533vw,3.2px);left:min(.533vw,3.2px);width:var(--van-switch-node-size);height:var(--van-switch-node-size);font-size:inherit;background:var(--van-switch-node-background);border-radius:100%;box-shadow:var(--van-switch-node-shadow);transition:transform var(--van-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background:var(--van-switch-on-background)}.van-switch--on .van-switch__node{transform:translate(calc(var(--van-switch-width) - var(--van-switch-node-size) - min(1.067vw,6.4px)))}.van-switch--on .van-switch__loading{color:var(--van-switch-on-background)}.van-switch--disabled{cursor:not-allowed;opacity:var(--van-switch-disabled-opacity)}.van-switch--loading{cursor:default}:root,:host{--van-button-mini-height: min(6.4vw, 38.4px);--van-button-mini-padding: 0 var(--van-padding-base);--van-button-mini-font-size: var(--van-font-size-xs);--van-button-small-height: min(8.533vw, 51.2px);--van-button-small-padding: 0 var(--van-padding-xs);--van-button-small-font-size: var(--van-font-size-sm);--van-button-normal-padding: 0 min(4vw, 24px);--van-button-normal-font-size: var(--van-font-size-md);--van-button-large-height: min(13.333vw, 80px);--van-button-default-height: min(11.733vw, 70.4px);--van-button-default-line-height: 1.2;--van-button-default-font-size: var(--van-font-size-lg);--van-button-default-color: var(--van-text-color);--van-button-default-background: var(--van-background-2);--van-button-default-border-color: var(--van-gray-4);--van-button-primary-color: var(--van-white);--van-button-primary-background: var(--van-primary-color);--van-button-primary-border-color: var(--van-primary-color);--van-button-success-color: var(--van-white);--van-button-success-background: var(--van-success-color);--van-button-success-border-color: var(--van-success-color);--van-button-danger-color: var(--van-white);--van-button-danger-background: var(--van-danger-color);--van-button-danger-border-color: var(--van-danger-color);--van-button-warning-color: var(--van-white);--van-button-warning-background: var(--van-warning-color);--van-button-warning-border-color: var(--van-warning-color);--van-button-border-width: var(--van-border-width);--van-button-radius: var(--van-radius-md);--van-button-round-radius: var(--van-radius-max);--van-button-plain-background: var(--van-white);--van-button-disabled-opacity: var(--van-disabled-opacity);--van-button-icon-size: 1.2em;--van-button-loading-icon-size: min(5.333vw, 32px)}.van-theme-dark{--van-button-plain-background: transparent}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-radius);cursor:pointer;transition:opacity var(--van-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--van-black);border:inherit;border-color:var(--van-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.van-button:active:before{opacity:.1}.van-button--loading:before,.van-button--disabled:before{display:none}.van-button--default{color:var(--van-button-default-color);background:var(--van-button-default-background);border:var(--van-button-border-width) solid var(--van-button-default-border-color)}.van-button--primary{color:var(--van-button-primary-color);background:var(--van-button-primary-background);border:var(--van-button-border-width) solid var(--van-button-primary-border-color)}.van-button--success{color:var(--van-button-success-color);background:var(--van-button-success-background);border:var(--van-button-border-width) solid var(--van-button-success-border-color)}.van-button--danger{color:var(--van-button-danger-color);background:var(--van-button-danger-background);border:var(--van-button-border-width) solid var(--van-button-danger-border-color)}.van-button--warning{color:var(--van-button-warning-color);background:var(--van-button-warning-background);border:var(--van-button-border-width) solid var(--van-button-warning-border-color)}.van-button--plain{background:var(--van-button-plain-background)}.van-button--plain.van-button--primary{color:var(--van-button-primary-background)}.van-button--plain.van-button--success{color:var(--van-button-success-background)}.van-button--plain.van-button--danger{color:var(--van-button-danger-background)}.van-button--plain.van-button--warning{color:var(--van-button-warning-background)}.van-button--large{width:100%;height:var(--van-button-large-height)}.van-button--normal{padding:var(--van-button-normal-padding);font-size:var(--van-button-normal-font-size)}.van-button--small{height:var(--van-button-small-height);padding:var(--van-button-small-padding);font-size:var(--van-button-small-font-size)}.van-button__loading{color:inherit;font-size:inherit}.van-button__loading .van-loading__spinner{color:currentColor;width:var(--van-button-loading-icon-size);height:var(--van-button-loading-icon-size)}.van-button--mini{height:var(--van-button-mini-height);padding:var(--van-button-mini-padding);font-size:var(--van-button-mini-font-size)}.van-button--mini+.van-button--mini{margin-left:var(--van-padding-base)}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:var(--van-button-disabled-opacity)}.van-button--loading{cursor:default}.van-button--round{border-radius:var(--van-button-round-radius)}.van-button--square{border-radius:0}.van-button__content{display:flex;align-items:center;justify-content:center;height:100%}.van-button__content:before{content:" "}.van-button__icon{font-size:var(--van-button-icon-size);line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:var(--van-padding-base)}.van-button--hairline{border-width:0}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--van-button-radius) * 2)}.van-button--hairline.van-button--round:after{border-radius:var(--van-button-round-radius)}.van-button--hairline.van-button--square:after{border-radius:0}:root,:host{--van-submit-bar-height: min(13.333vw, 80px);--van-submit-bar-z-index: 100;--van-submit-bar-background: var(--van-background-2);--van-submit-bar-button-width: min(29.333vw, 176px);--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: min(5.333vw, 32px);--van-submit-bar-price-font: var(--van-price-font);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background: var(--van-orange-light);--van-submit-bar-tip-icon-size: min(3.2vw, 19.2px);--van-submit-bar-button-height: min(10.667vw, 64px);--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-submit-bar-z-index);width:min(100%,600px);background:var(--van-submit-bar-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}:root,:host{--van-signature-padding: var(--van-padding-xs);--van-signature-content-height: min(53.333vw, 320px);--van-signature-content-background: var(--van-background-2);--van-signature-content-border: min(.267vw, 1.6px) dotted #dadada}.van-signature{padding:var(--van-signature-padding)}.van-signature__content{display:flex;justify-content:center;align-items:center;height:var(--van-signature-content-height);background-color:var(--van-signature-content-background);border:var(--van-signature-content-border);border-radius:var(--van-radius-lg);overflow:hidden}.van-signature__content canvas{width:100%;height:100%}.van-signature__footer{display:flex;justify-content:flex-end}.van-signature__footer .van-button{padding:0 var(--van-padding-md);margin-top:var(--van-padding-xs);margin-left:var(--van-padding-xs)}:root,:host{--van-contact-edit-padding: var(--van-padding-md);--van-contact-edit-fields-radius: var(--van-radius-md);--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;--van-contact-edit-button-margin-bottom: var(--van-padding-sm);--van-contact-edit-button-font-size: var(--van-font-size-lg);--van-contact-edit-field-label-width: 4.1em}.van-contact-edit{padding:var(--van-contact-edit-padding)}.van-contact-edit__fields{overflow:hidden;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__fields .van-field__label{width:var(--van-contact-edit-field-label-width)}.van-contact-edit__switch-cell{margin-top:min(2.667vw,16px);padding-top:min(2.4vw,14.4px);padding-bottom:min(2.4vw,14.4px);border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__buttons{padding:var(--van-contact-edit-buttons-padding)}.van-contact-edit__button{margin-bottom:var(--van-contact-edit-button-margin-bottom);font-size:var(--van-contact-edit-button-font-size)}:root,:host{--van-action-bar-button-height: min(10.667vw, 64px);--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:min(1.333vw,8px);border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:min(1.333vw,8px);border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:var(--van-overlay-z-index);width:min(100%,600px);height:100%;background:var(--van-overlay-background)}:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: min(4.267vw, 25.6px);--van-popup-close-icon-size: min(5.867vw, 35.2px);--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: min(4.267vw, 25.6px);--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:calc(50% - min(50%,300px));right:calc(50% - min(50%,300px));width:-moz-fit-content;width:fit-content;max-width:calc(min(100vw,600px) - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:calc(50% - min(50%,300px));transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:calc(50% - min(50%,300px));width:min(100%,600px)}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:calc(50% - min(50%,300px));transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}:root,:host{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: min(4.267vw, 25.6px);--van-share-sheet-icon-size: min(12.8vw, 76.8px);--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: min(12.8vw, 76.8px);--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-share-sheet__icon,.van-share-sheet__image-icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__icon{display:flex;align-items:center;justify-content:center;color:var(--van-gray-7);border-radius:100%;background-color:var(--van-gray-2)}.van-share-sheet__icon--link,.van-share-sheet__icon--poster,.van-share-sheet__icon--qrcode{font-size:min(6.933vw,41.6px)}.van-share-sheet__icon--weapp-qrcode{font-size:min(7.467vw,44.8px)}.van-share-sheet__icon--qq,.van-share-sheet__icon--weibo,.van-share-sheet__icon--wechat,.van-share-sheet__icon--wechat-moments{font-size:min(8vw,48px);color:var(--van-white)}.van-share-sheet__icon--qq{background-color:#38b9fa}.van-share-sheet__icon--wechat{background-color:#0bc15f}.van-share-sheet__icon--weibo{background-color:#ee575e}.van-share-sheet__icon--wechat-moments{background-color:#7bc845}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}:root,:host{--van-popover-arrow-size: min(1.6vw, 9.6px);--van-popover-radius: var(--van-radius-lg);--van-popover-action-width: min(34.133vw, 204.8px);--van-popover-action-height: min(11.733vw, 70.4px);--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: min(5.333vw, 32px);--van-popover-horizontal-action-height: min(9.067vw, 54.4px);--van-popover-horizontal-action-icon-size: min(4.267vw, 25.6px);--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background: var(--van-background-2);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-radius)}.van-popover__content--horizontal{display:flex;width:-moz-max-content;width:max-content}.van-popover__content--horizontal .van-popover__action{flex:none;width:auto;height:var(--van-popover-horizontal-action-height);padding:0 var(--van-padding-sm)}.van-popover__content--horizontal .van-popover__action:last-child:after{display:none}.van-popover__content--horizontal .van-popover__action-icon{margin-right:var(--van-padding-base);font-size:var(--van-popover-horizontal-action-icon-size)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background);box-shadow:0 min(.533vw,3.2px) min(3.2vw,19.2px) #3232331f}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background)}.van-popover--dark .van-popover__action:active{background-color:#0003}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-ease-in)}:root,:host{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background: var(--van-primary-color);--van-notify-success-background: var(--van-success-color);--van-notify-danger-background: var(--van-danger-color);--van-notify-warning-background: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background:var(--van-notify-primary-background)}.van-notify--success{background:var(--van-notify-success-background)}.van-notify--danger{background:var(--van-notify-danger-background)}.van-notify--warning{background:var(--van-notify-warning-background)}:root,:host{--van-dialog-width: min(85.333vw, 512px);--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: min(4.267vw, 25.6px);--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: min(6.4vw, 38.4px);--van-dialog-header-padding-top: min(6.933vw, 41.6px);--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: min(12.8vw, 76.8px);--van-dialog-round-button-height: min(9.6vw, 57.6px);--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:min(27.733vw,166.4px)}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:min(6.933vw,41.6px) var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}:root,:host{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: min(9.6vw, 57.6px);--van-toast-text-min-width: min(25.6vw, 153.6px);--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: min(23.467vw, 140.8px);--van-toast-default-min-height: min(23.467vw, 140.8px);--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;word-break:break-all;text-align:center;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--break-normal{word-break:normal;word-wrap:normal}.van-toast--break-word{word-break:normal;word-wrap:break-word}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-moz-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}:root,:host{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: min(12.8vw, 76.8px);--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-item-icon-size: min(4.8vw, 28.8px);--van-action-sheet-item-icon-margin-right: var(--van-padding-xs);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: min(5.867vw, 35.2px);--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: min(5.867vw, 35.2px)}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;padding:min(3.733vw,22.4px) var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__item-icon{font-size:var(--van-action-sheet-item-icon-size);margin-right:var(--van-action-sheet-item-icon-margin-right)}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{width:100%;margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height);overflow-wrap:break-word}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:min(5.333vw,32px) var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:min(.267vw,1.6px) solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}:root,:host{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}:root,:host{--van-swipe-indicator-size: min(1.6vw, 9.6px);--van-swipe-indicator-margin: var(--van-padding-sm);--van-swipe-indicator-active-opacity: 1;--van-swipe-indicator-inactive-opacity: .3;--van-swipe-indicator-active-background: var(--van-primary-color);--van-swipe-indicator-inactive-background: var(--van-border-color)}.van-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-swipe__track{display:flex;height:100%;transition-property:transform}.van-swipe__track--vertical{flex-direction:column}.van-swipe__indicators{position:absolute;bottom:var(--van-swipe-indicator-margin);left:50%;display:flex;transform:translate(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:var(--van-swipe-indicator-margin);flex-direction:column;transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:var(--van-swipe-indicator-size)}.van-swipe__indicator{width:var(--van-swipe-indicator-size);height:var(--van-swipe-indicator-size);background-color:var(--van-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--van-swipe-indicator-inactive-opacity);transition:opacity var(--van-duration-fast),background-color var(--van-duration-fast)}.van-swipe__indicator:not(:last-child){margin-right:var(--van-swipe-indicator-size)}.van-swipe__indicator--active{background-color:var(--van-swipe-indicator-active-background);opacity:var(--van-swipe-indicator-active-opacity)}.van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}:root,:host{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 min(.267vw, 1.6px) min(.267vw, 1.6px) var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: min(5.867vw, 35.2px);--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:calc(50% - min(50%,300px));width:min(100%,600px);height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:min(9.6vw,57.6px)}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}:root,:host{--van-uploader-size: min(21.333vw, 128px);--van-uploader-icon-size: min(6.4vw, 38.4px);--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: min(3.733vw, 22.4px);--van-uploader-delete-background: rgba(0, 0, 0, .7);--van-uploader-file-background: var(--van-background);--van-uploader-file-icon-size: min(5.333vw, 32px);--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: min(5.867vw, 35.2px);--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: min(5.867vw, 35.2px);--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity);--van-uploader-border-radius: 0px}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background);border-radius:var(--van-uploader-border-radius)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden;border-radius:var(--van-uploader-border-radius)}.van-uploader__preview-delete{position:absolute;top:0;right:0}.van-uploader__preview-delete--shadow{width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background:var(--van-uploader-delete-background);border-radius:0 0 0 min(3.2vw,19.2px)}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background:var(--van-uploader-mask-background);border-radius:var(--van-uploader-border-radius)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:min(1.6vw,9.6px);padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background:var(--van-uploader-file-background)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}:root,:host{--van-tab-text-color: var(--van-gray-7);--van-tab-active-text-color: var(--van-text-color);--van-tab-disabled-text-color: var(--van-text-color-3);--van-tab-font-size: var(--van-font-size-md);--van-tab-line-height: var(--van-line-height-md);--van-tabs-default-color: var(--van-primary-color);--van-tabs-line-height: min(11.733vw, 70.4px);--van-tabs-card-height: min(8vw, 48px);--van-tabs-nav-background: var(--van-background-2);--van-tabs-bottom-bar-width: min(10.667vw, 64px);--van-tabs-bottom-bar-height: min(.8vw, 4.8px);--van-tabs-bottom-bar-color: var(--van-primary-color)}.van-tab{position:relative;display:flex;flex:1;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--van-padding-base);color:var(--van-tab-text-color);font-size:var(--van-tab-font-size);line-height:var(--van-tab-line-height);cursor:pointer}.van-tab--active{color:var(--van-tab-active-text-color);font-weight:var(--van-font-bold)}.van-tab--disabled{color:var(--van-tab-disabled-text-color);cursor:not-allowed}.van-tab--grow{flex:1 0 auto;padding:0 var(--van-padding-sm)}.van-tab--shrink{flex:none;padding:0 var(--van-padding-xs)}.van-tab--card{color:var(--van-tabs-default-color);border-right:var(--van-border-width) solid var(--van-tabs-default-color)}.van-tab--card:last-child{border-right:none}.van-tab--card.van-tab--active{color:var(--van-white);background-color:var(--van-tabs-default-color)}.van-tab--card.van-tab--disabled{color:var(--van-tab-disabled-text-color)}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__nav{position:relative;display:flex;background:var(--van-tabs-nav-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__nav--complete::-webkit-scrollbar{display:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:min(4vw,24px)}.van-tabs__nav--line.van-tabs__nav--shrink,.van-tabs__nav--line.van-tabs__nav--complete{padding-right:var(--van-padding-xs);padding-left:var(--van-padding-xs)}.van-tabs__nav--card{box-sizing:border-box;height:var(--van-tabs-card-height);margin:0 var(--van-padding-md);border:var(--van-border-width) solid var(--van-tabs-default-color);border-radius:var(--van-radius-sm)}.van-tabs__nav--card.van-tabs__nav--shrink{display:inline-flex}.van-tabs__line{position:absolute;bottom:min(4vw,24px);left:0;z-index:1;width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}.van-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:var(--van-tabs-line-height)}.van-tabs--card>.van-tabs__wrap{height:var(--van-tabs-card-height)}.van-tab__panel,.van-tab__panel-wrapper{flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__panel-wrapper--inactive{height:0;overflow:visible}:root,:host{--van-cascader-header-height: min(12.8vw, 76.8px);--van-cascader-header-padding: 0 var(--van-padding-md);--van-cascader-title-font-size: var(--van-font-size-lg);--van-cascader-title-line-height: min(5.333vw, 32px);--van-cascader-close-icon-size: min(5.867vw, 35.2px);--van-cascader-close-icon-color: var(--van-gray-5);--van-cascader-selected-icon-size: min(4.8vw, 28.8px);--van-cascader-tabs-height: min(12.8vw, 76.8px);--van-cascader-active-color: var(--van-primary-color);--van-cascader-options-height: min(102.4vw, 614.4px);--van-cascader-option-disabled-color: var(--van-text-color-3);--van-cascader-tab-color: var(--van-text-color);--van-cascader-unselected-tab-color: var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs.van-tabs--line .van-tabs__wrap{height:var(--van-cascader-tabs-height)}.van-cascader__tab{color:var(--van-cascader-tab-color);font-weight:var(--van-font-bold)}.van-cascader__tab--unselected{color:var(--van-cascader-unselected-tab-color);font-weight:400}.van-cascader__option{display:flex;align-items:center;justify-content:space-between;padding:min(2.667vw,16px) var(--van-padding-md);font-size:var(--van-font-size-md);line-height:var(--van-line-height-md);cursor:pointer}.van-cascader__option:active{background-color:var(--van-active-color)}.van-cascader__option--selected{color:var(--van-cascader-active-color);font-weight:var(--van-font-bold)}.van-cascader__option--disabled{color:var(--van-cascader-option-disabled-color);cursor:not-allowed}.van-cascader__option--disabled:active{background-color:transparent}.van-cascader__selected-icon{font-size:var(--van-cascader-selected-icon-size)}.van-cascader__options{box-sizing:border-box;height:var(--van-cascader-options-height);padding-top:min(1.6vw,9.6px);overflow-y:auto;-webkit-overflow-scrolling:touch}:root,:host{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: min(11.733vw, 70.4px);--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-primary-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-picker__toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{position:absolute;left:50%;color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center;transform:translate(-50%)}.van-picker__columns{position:relative;display:flex;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}:root,:host{--van-picker-group-background: var(--van-background-2)}.van-picker-group{background:var(--van-picker-group-background)}.van-picker-group__tabs{margin-top:var(--van-padding-base)}.van-picker-group__tab-title{margin-right:min(4.267vw,25.6px)}:root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 min(.533vw, 3.2px) min(2.667vw, 16px) rgba(125, 126, 128, .16);--van-calendar-header-title-height: min(11.733vw, 70.4px);--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: min(7.467vw, 44.8px);--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: min(8vw, 48px);--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: min(42.667vw, 256px);--van-calendar-day-height: min(17.067vw, 102.4px);--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: min(1.067vw, 6.4px);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: min(14.4vw, 86.4px);--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: min(9.6vw, 57.6px);--van-calendar-confirm-button-margin: min(1.867vw, 11.2px) 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:min(2.933vw,17.6px)}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-swicth{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:min(1.6vw,9.6px)}.van-calendar__bottom-info{bottom:min(1.6vw,9.6px)}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}:root,:host{--van-address-edit-padding: var(--van-padding-sm);--van-address-edit-buttons-padding: var(--van-padding-xl) var(--van-padding-base);--van-address-edit-button-margin-bottom: var(--van-padding-sm);--van-address-edit-button-font-size: var(--van-font-size-lg)}.van-address-edit{padding:var(--van-address-edit-padding)}.van-address-edit__fields{overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__fields .van-field__label{width:4.1em}.van-address-edit__default{margin-top:var(--van-padding-sm);overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__buttons{padding:var(--van-address-edit-buttons-padding)}.van-address-edit__button{margin-bottom:var(--van-address-edit-button-margin-bottom);font-size:var(--van-address-edit-button-font-size)}.van-address-edit-detail__search-item{background:var(--van-gray-2)}.van-radio-group--horizontal,.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}:root,:host{--van-checkbox-size: min(5.333vw, 32px);--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:min(.267vw,1.6px) solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--indeterminate .van-icon{display:flex;align-items:center;justify-content:center;color:var(--van-white);border-color:var(--van-checkbox-checked-icon-color);background-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root,:host{--van-coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);--van-coupon-content-height: min(22.4vw, 134.4px);--van-coupon-content-padding: min(3.733vw, 22.4px) 0;--van-coupon-content-text-color: var(--van-text-color);--van-coupon-background: var(--van-background-2);--van-coupon-active-background: var(--van-active-color);--van-coupon-radius: var(--van-radius-lg);--van-coupon-shadow: 0 0 min(1.067vw, 6.4px) rgba(0, 0, 0, .1);--van-coupon-head-width: min(25.6vw, 153.6px);--van-coupon-amount-color: var(--van-primary-color);--van-coupon-amount-font-size: min(8vw, 48px);--van-coupon-currency-font-size: 40%;--van-coupon-name-font-size: var(--van-font-size-md);--van-coupon-disabled-text-color: var(--van-text-color-2);--van-coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);--van-coupon-description-border-color: var(--van-border-color);--van-coupon-checkbox-color: var(--van-primary-color)}.van-coupon{margin:var(--van-coupon-margin);overflow:hidden;background:var(--van-coupon-background);border-radius:var(--van-coupon-radius);box-shadow:var(--van-coupon-shadow)}.van-coupon:active{background-color:var(--van-coupon-active-background)}.van-coupon__content{display:flex;align-items:center;box-sizing:border-box;min-height:var(--van-coupon-content-height);padding:var(--van-coupon-content-padding);color:var(--van-coupon-content-text-color)}.van-coupon__head{position:relative;min-width:var(--van-coupon-head-width);padding:0 var(--van-padding-xs);color:var(--van-coupon-amount-color);text-align:center}.van-coupon__amount,.van-coupon__condition,.van-coupon__name,.van-coupon__valid{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount{margin-bottom:min(1.6vw,9.6px);font-weight:var(--van-font-bold);font-size:var(--van-coupon-amount-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount span{font-size:var(--van-coupon-currency-font-size)}.van-coupon__amount span:not(:empty){margin-left:min(.533vw,3.2px)}.van-coupon__condition{font-size:var(--van-font-size-sm);line-height:min(4.267vw,25.6px);white-space:pre-wrap}.van-coupon__body{position:relative;flex:1}.van-coupon__name{margin-bottom:min(2.667vw,16px);font-weight:var(--van-font-bold);font-size:var(--van-coupon-name-font-size);line-height:var(--van-line-height-md)}.van-coupon__valid{font-size:var(--van-font-size-sm)}.van-coupon__corner{position:absolute;top:0;right:var(--van-padding-md);bottom:0}.van-coupon__corner .van-checkbox__icon--checked .van-icon{background-color:var(--van-coupon-checkbox-color);border-color:var(--van-coupon-checkbox-color)}.van-coupon__description{padding:var(--van-coupon-description-padding);font-size:var(--van-font-size-sm);border-top:min(.267vw,1.6px) dashed var(--van-coupon-description-border-color)}.van-coupon--disabled:active{background-color:var(--van-coupon-background)}.van-coupon--disabled .van-coupon-item__content{height:calc(var(--van-coupon-content-height) - min(2.667vw,16px))}.van-coupon--disabled .van-coupon__head{color:inherit}:root,:host{--van-radio-size: min(5.333vw, 32px);--van-radio-dot-size: min(2.133vw, 12.8px);--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:min(.267vw,1.6px) solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--dot{position:relative;border-radius:100%;box-sizing:border-box;width:var(--van-radio-size);height:var(--van-radio-size);border:min(.267vw,1.6px) solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:border-color}.van-radio__icon--dot__icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;height:calc(100% - var(--van-radio-dot-size));width:calc(100% - var(--van-radio-dot-size));transition-duration:var(--van-radio-duration);transition-property:background-color}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot{border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot .van-radio__icon--dot__icon{background:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}:root,:host{--van-contact-list-padding: var(--van-padding-sm) var(--van-padding-sm) min(21.333vw, 128px);--van-contact-list-edit-icon-size: min(4.267vw, 25.6px);--van-contact-list-add-button-z-index: 999;--van-contact-list-radio-color: var(--van-primary-color);--van-contact-list-item-padding: var(--van-padding-md)}.van-contact-list{box-sizing:border-box;height:100%;padding:var(--van-contact-list-padding)}.van-contact-list__item{padding:var(--van-contact-list-item-padding)}.van-contact-list__item-title{display:flex;align-items:center;padding-right:var(--van-padding-xl);padding-left:var(--van-padding-xs)}.van-contact-list__item-tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-contact-list__group{box-sizing:border-box;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;border-radius:var(--van-radius-lg)}.van-contact-list__edit{font-size:var(--van-contact-list-edit-icon-size)}.van-contact-list__radio .van-radio__icon--checked .van-icon{background-color:var(--van-contact-list-radio-color);border-color:var(--van-contact-list-radio-color)}.van-contact-list__bottom{position:fixed;right:calc(50% - min(50%,300px));bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-contact-list-add-button-z-index);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-contact-list__add{height:min(10.667vw,64px);margin:min(1.333vw,8px) 0}:root,:host{--van-address-list-padding: var(--van-padding-sm) var(--van-padding-sm) min(21.333vw, 128px);--van-address-list-disabled-text-color: var(--van-text-color-2);--van-address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0;--van-address-list-disabled-text-font-size: var(--van-font-size-md);--van-address-list-disabled-text-line-height: var(--van-line-height-md);--van-address-list-add-button-z-index: 999;--van-address-list-item-padding: var(--van-padding-sm);--van-address-list-item-text-color: var(--van-text-color);--van-address-list-item-disabled-text-color: var(--van-text-color-3);--van-address-list-item-font-size: min(3.467vw, 20.8px);--van-address-list-item-line-height: var(--van-line-height-sm);--van-address-list-radio-color: var(--van-primary-color);--van-address-list-edit-icon-size: min(5.333vw, 32px)}.van-address-list{box-sizing:border-box;height:100%;padding:var(--van-address-list-padding)}.van-address-list__bottom{position:fixed;bottom:0;left:calc(50% - min(50%,300px));z-index:var(--van-address-list-add-button-z-index);box-sizing:border-box;width:min(100%,600px);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-address-list__add{height:min(10.667vw,64px);margin:min(1.333vw,8px) 0}.van-address-list__disabled-text{padding:var(--van-address-list-disabled-text-padding);color:var(--van-address-list-disabled-text-color);font-size:var(--van-address-list-disabled-text-font-size);line-height:var(--van-address-list-disabled-text-line-height)}.van-address-item{padding:var(--van-address-list-item-padding);background-color:var(--van-background-2);border-radius:var(--van-radius-lg)}.van-address-item:not(:last-child){margin-bottom:var(--van-padding-sm)}.van-address-item__title{padding-right:min(11.733vw,70.4px)}.van-address-item__name{display:flex;align-items:center;margin-bottom:var(--van-padding-xs);font-size:var(--van-font-size-lg);line-height:var(--van-line-height-lg)}.van-address-item__tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-address-item__address{color:var(--van-address-list-item-text-color);font-size:var(--van-address-list-item-font-size);line-height:var(--van-address-list-item-line-height)}.van-address-item--disabled .van-address-item__name,.van-address-item--disabled .van-address-item__address{color:var(--van-address-list-item-disabled-text-color)}.van-address-item__edit{position:absolute;top:50%;right:var(--van-padding-md);color:var(--van-gray-6);font-size:var(--van-address-list-edit-icon-size);transform:translateY(-50%)}.van-address-item .van-cell{padding:0}.van-address-item .van-radio__label{margin-left:var(--van-padding-sm)}.van-address-item .van-radio__icon--checked .van-icon{background-color:var(--van-address-list-radio-color);border-color:var(--van-address-list-radio-color)}:root,:host{--van-barrage-font-size: min(4.267vw, 25.6px);--van-barrage-space: min(2.667vw, 16px);--van-barrage-font: inherit;--van-barrage-color: var(--van-white)}.van-barrage{position:relative;overflow:hidden}.van-barrage__item{position:absolute;top:0;right:0;z-index:99;padding-bottom:var(--van-barrage-space);opacity:.75;line-height:1;font-size:var(--van-barrage-font-size);font-family:var(--van-barrage-font);font-weight:700;white-space:nowrap;color:var(--van-barrage-color);text-shadow:min(.267vw,1.6px) 0 min(.267vw,1.6px) #000000,0 min(.267vw,1.6px) min(.267vw,1.6px) #000000,0 max(-.267vw,-1.6px) min(.267vw,1.6px) #000000,max(-.267vw,-1.6px) 0 min(.267vw,1.6px) #000000;-webkit-user-select:none;-moz-user-select:none;user-select:none;will-change:transform;transform:translate(110%)}@keyframes van-barrage{0%{transform:translate(110%)}to{transform:translate(var(--move-distance))}}:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: min(4.267vw, 25.6px);--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}:root,:host{--van-circle-size: min(26.667vw, 160px);--van-circle-color: var(--van-primary-color);--van-circle-layer-color: var(--van-white);--van-circle-text-color: var(--van-text-color);--van-circle-text-font-weight: var(--van-font-bold);--van-circle-text-font-size: var(--van-font-size-md);--van-circle-text-line-height: var(--van-line-height-md)}.van-circle{position:relative;display:inline-block;width:var(--van-circle-size);height:var(--van-circle-size);text-align:center}.van-circle svg{position:absolute;top:0;left:0;width:100%;height:100%}.van-circle__layer{stroke:var(--van-circle-layer-color)}.van-circle__hover{fill:none;stroke:var(--van-circle-color);stroke-linecap:round}.van-circle__text{position:absolute;top:50%;left:0;box-sizing:border-box;width:100%;padding:0 var(--van-padding-base);color:var(--van-circle-text-color);font-weight:var(--van-circle-text-font-weight);font-size:var(--van-circle-text-font-size);line-height:var(--van-circle-text-line-height);transform:translateY(-50%)}.van-row{display:flex;flex-wrap:wrap}.van-row--nowrap{flex-wrap:nowrap}.van-row--justify-center{justify-content:center}.van-row--justify-end{justify-content:flex-end}.van-row--justify-space-between{justify-content:space-between}.van-row--justify-space-around{justify-content:space-around}.van-row--align-center{align-items:center}.van-row--align-bottom{align-items:flex-end}.van-col{display:block;box-sizing:border-box;min-height:min(.267vw,1.6px)}.van-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{flex:0 0 12.5%;max-width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{flex:0 0 25%;max-width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{flex:0 0 37.5%;max-width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{flex:0 0 50%;max-width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{flex:0 0 62.5%;max-width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{flex:0 0 75%;max-width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{flex:0 0 87.5%;max-width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{flex:0 0 100%;max-width:100%}.van-col--offset-24{margin-left:100%}:root,:host{--van-count-down-text-color: var(--van-text-color);--van-count-down-font-size: var(--van-font-size-md);--van-count-down-line-height: var(--van-line-height-md)}.van-count-down{color:var(--van-count-down-text-color);font-size:var(--van-count-down-font-size);line-height:var(--van-count-down-line-height)}:root,:host{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: min(42.667vw, 256px);--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 min(16vw, 96px);--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: min(6.4vw, 38.4px)}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}:root,:host{--van-coupon-list-background: var(--van-background);--van-coupon-list-field-padding: min(1.333vw, 8px) 0 min(1.333vw, 8px) var(--van-padding-md);--van-coupon-list-exchange-button-height: min(8.533vw, 51.2px);--van-coupon-list-close-button-height: min(10.667vw, 64px);--van-coupon-list-empty-tip-color: var(--van-text-color-2);--van-coupon-list-empty-tip-font-size: var(--van-font-size-md);--van-coupon-list-empty-tip-line-height: var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background:var(--van-coupon-list-background)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:min(9.067vw,54.4px);padding-left:var(--van-padding-sm);line-height:min(9.067vw,54.4px);background:var(--van-background);border-radius:var(--van-radius-max)}.van-coupon-list__field .van-field__body::-moz-placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-background-2)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - min(.533vw,3.2px));border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 min(1.6vw,9.6px) min(3.2vw,19.2px) max(-3.2vw,-19.2px) var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-bottom{padding-bottom:min(13.333vw,80px)}.van-coupon-list__bottom{position:absolute;bottom:0;left:0;z-index:999;box-sizing:border-box;width:100%;padding:min(1.333vw,8px) var(--van-padding-md);font-weight:var(--van-font-bold);background-color:var(--van-background-2)}.van-coupon-list__close{height:var(--van-coupon-list-close-button-height)}.van-coupon-list__empty-tip{color:var(--van-coupon-list-empty-tip-color);font-size:var(--van-coupon-list-empty-tip-font-size);line-height:var(--van-coupon-list-empty-tip-line-height)}:root,:host{--van-divider-margin: var(--van-padding-md) 0;--van-divider-vertical-margin: 0 var(--van-padding-xs);--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: min(6.4vw, 38.4px);--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:min(.267vw,1.6px);border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}.van-divider--vertical{display:inline-block;width:var(--van-border-width);height:1em;margin:var(--van-divider-vertical-margin);vertical-align:middle}.van-divider--vertical:before{height:100%;border-width:0 0 0 var(--van-border-width)}.van-divider--vertical:after{display:none}.van-divider--vertical.van-divider--hairline:before{transform:scaleX(.5)}:root,:host{--van-dropdown-menu-height: min(12.8vw, 76.8px);--van-dropdown-menu-background: var(--van-background-2);--van-dropdown-menu-shadow: 0 min(.533vw, 3.2px) min(3.2vw, 19.2px) rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: min(4vw, 24px);--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-primary-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-primary-color);--van-dropdown-menu-option-disabled-color: var(--van-text-color-3);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);box-shadow:var(--van-dropdown-menu-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__bar--scrollable{padding-left:var(--van-padding-base);padding-right:var(--van-padding-xs);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-dropdown-menu__bar--scrollable::-webkit-scrollbar{display:none}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__item--grow{flex:1 0 auto;padding-left:var(--van-padding-base);padding-right:var(--van-padding-sm)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:max(-1.067vw,-6.4px);margin-top:max(-1.333vw,-8px);border:min(.8vw,4.8px) solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:max(-.267vw,-1.6px);transform:rotate(135deg)}:root,:host{--van-dropdown-item-z-index: 10}.van-dropdown-item{position:fixed;right:calc(50% - min(50%,300px));left:calc(50% - min(50%,300px));z-index:var(--van-dropdown-item-z-index);overflow:hidden}.van-dropdown-item__icon{display:block;line-height:inherit}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active,.van-dropdown-item__option--active .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-active-color)}.van-dropdown-item__option--disabled,.van-dropdown-item__option--disabled .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-disabled-color)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__content{position:absolute;max-height:var(--van-dropdown-menu-content-max-height)}:root,:host{--van-floating-panel-border-radius: min(4.267vw, 25.6px);--van-floating-panel-header-height: min(8vw, 48px);--van-floating-panel-z-index: 999;--van-floating-panel-background: var(--van-background-2);--van-floating-panel-bar-width: min(5.333vw, 32px);--van-floating-panel-bar-height: min(.8vw, 4.8px);--van-floating-panel-bar-color: var(--van-gray-5)}.van-floating-panel{position:fixed;left:calc(50% - min(50%,300px));bottom:0;width:min(100vw,600px);z-index:var(--van-floating-panel-z-index);display:flex;flex-direction:column;touch-action:none;border-top-left-radius:var(--van-floating-panel-border-radius);border-top-right-radius:var(--van-floating-panel-border-radius);background:var(--van-floating-panel-background);will-change:transform}.van-floating-panel:after{content:"";display:block;position:absolute;bottom:-100vh;height:100vh;width:min(100vw,600px);background-color:inherit}.van-floating-panel__header{height:var(--van-floating-panel-header-height);display:flex;justify-content:center;align-items:center;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-floating-panel__header-bar{height:var(--van-floating-panel-bar-height);width:var(--van-floating-panel-bar-width);border-radius:var(--van-radius-md);background:var(--van-floating-panel-bar-color)}.van-floating-panel__content{flex:1;overflow-y:auto;background-color:var(--van-floating-panel-background)}.van-grid{display:flex;flex-wrap:wrap}:root,:host{--van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);--van-grid-item-content-background: var(--van-background-2);--van-grid-item-content-active-color: var(--van-active-color);--van-grid-item-icon-size: min(7.467vw, 44.8px);--van-grid-item-text-color: var(--van-text-color);--van-grid-item-text-font-size: var(--van-font-size-sm)}.van-grid-item{position:relative;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__icon{font-size:var(--van-grid-item-icon-size)}.van-grid-item__text{color:var(--van-grid-item-text-color);font-size:var(--van-grid-item-text-font-size);line-height:1.5;word-break:break-all}.van-grid-item__icon+.van-grid-item__text{margin-top:var(--van-padding-xs)}.van-grid-item__content{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:var(--van-grid-item-content-padding);background:var(--van-grid-item-content-background)}.van-grid-item__content:after{z-index:1;border-width:0 var(--van-border-width) var(--van-border-width) 0}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 var(--van-padding-xs)}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 var(--van-padding-xs)}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 var(--van-padding-xs) 0 0}.van-grid-item__content--surround:after{border-width:var(--van-border-width)}.van-grid-item__content--clickable{cursor:pointer}.van-grid-item__content--clickable:active{background-color:var(--van-grid-item-content-active-color)}:root,:host{--van-highlight-tag-color: var(--van-primary-color)}.van-highlight__tag{color:var(--van-highlight-tag-color)}:root,:host{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-primary-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:calc(50% - min(50%,300px));z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color);font-weight:700}:root,:host{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: min(8.533vw, 51.2px);--van-index-anchor-background: transparent;--van-index-anchor-sticky-text-color: var(--van-primary-color);--van-index-anchor-sticky-background: var(--van-background-2)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background)}.van-index-anchor--sticky{position:fixed;top:0;right:calc(50% - min(50%,300px));left:calc(50% - min(50%,300px));color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background)}:root,:host{--van-pagination-height: min(10.667vw, 64px);--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: min(9.6vw, 57.6px);--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:first-child:after{border-right-width:var(--van-border-width)}.van-pagination__item--disabled,.van-pagination__item--disabled:active{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}:root,:host{--van-password-input-height: min(13.333vw, 80px);--van-password-input-margin: 0 var(--van-padding-md);--van-password-input-font-size: min(5.333vw, 32px);--van-password-input-radius: min(1.6vw, 9.6px);--van-password-input-background: var(--van-background-2);--van-password-input-info-color: var(--van-text-color-2);--van-password-input-info-font-size: var(--van-font-size-md);--van-password-input-error-info-color: var(--van-danger-color);--van-password-input-dot-size: min(2.667vw, 16px);--van-password-input-dot-color: var(--van-text-color);--van-password-input-text-color: var(--van-text-color);--van-password-input-cursor-color: var(--van-text-color);--van-password-input-cursor-width: min(.267vw, 1.6px);--van-password-input-cursor-height: 40%;--van-password-input-cursor-duration: 1s}.van-password-input{position:relative;margin:var(--van-password-input-margin);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-password-input__info,.van-password-input__error-info{margin-top:var(--van-padding-md);font-size:var(--van-password-input-info-font-size);text-align:center}.van-password-input__info{color:var(--van-password-input-info-color)}.van-password-input__error-info{color:var(--van-password-input-error-info-color)}.van-password-input__security{display:flex;width:100%;height:var(--van-password-input-height);cursor:pointer}.van-password-input__security:after{border-radius:var(--van-password-input-radius)}.van-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--van-password-input-text-color);font-size:var(--van-password-input-font-size);line-height:1.2;background:var(--van-password-input-background)}.van-password-input__security i{position:absolute;top:50%;left:50%;width:var(--van-password-input-dot-size);height:var(--van-password-input-dot-size);background:var(--van-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--van-password-input-cursor-width);height:var(--van-password-input-cursor-height);background:var(--van-password-input-cursor-color);transform:translate(-50%,-50%);animation:var(--van-password-input-cursor-duration) van-cursor-flicker infinite}@keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}:root,:host{--van-progress-height: min(1.067vw, 6.4px);--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background: var(--van-gray-3);--van-progress-pivot-padding: 0 min(1.333vw, 8px);--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background);border-radius:1em;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}:root,:host{--van-rolling-text-background: inherit;--van-rolling-text-color: var(--van-text-color);--van-rolling-text-font-size: var(--van-font-size-md);--van-rolling-text-gap: 0px;--van-rolling-text-item-width: min(4vw, 24px);--van-rolling-text-item-border-radius: 0px}.van-rolling-text{display:inline-flex;justify-content:center;align-items:center;font-size:var(--van-rolling-text-font-size);color:var(--van-rolling-text-color)}.van-rolling-text-item{margin-right:var(--van-rolling-text-gap);width:var(--van-rolling-text-item-width);border-radius:var(--van-rolling-text-item-border-radius);background:var(--van-rolling-text-background);overflow:hidden}.van-rolling-text-item:last-child{margin-right:0}.van-rolling-text-item__box{overflow:hidden}.van-rolling-text-item__box--animate{animation:van-up var(--van-duration) ease-in-out var(--van-delay);animation-iteration-count:1;animation-fill-mode:both}.van-rolling-text-item__item{text-align:center}.van-rolling-text-item--down .van-rolling-text-item__box{transform:translateY(var(--van-translate))}.van-rolling-text-item--down .van-rolling-text-item__box--animate{animation-name:van-down}@keyframes van-down{0%{transform:translateY(var(--van-translate))}to{transform:translateY(0)}}@keyframes van-up{0%{transform:translateY(0)}to{transform:translateY(var(--van-translate))}}:root,:host{--van-sidebar-width: min(21.333vw, 128px)}.van-sidebar{width:var(--van-sidebar-width);overflow-y:auto;-webkit-overflow-scrolling:touch}:root,:host{--van-sidebar-font-size: var(--van-font-size-md);--van-sidebar-line-height: var(--van-line-height-md);--van-sidebar-text-color: var(--van-text-color);--van-sidebar-disabled-text-color: var(--van-text-color-3);--van-sidebar-padding: min(5.333vw, 32px) var(--van-padding-sm);--van-sidebar-active-color: var(--van-active-color);--van-sidebar-background: var(--van-background);--van-sidebar-selected-font-weight: var(--van-font-bold);--van-sidebar-selected-text-color: var(--van-text-color);--van-sidebar-selected-border-width: min(1.067vw, 6.4px);--van-sidebar-selected-border-height: min(4.267vw, 25.6px);--van-sidebar-selected-border-color: var(--van-primary-color);--van-sidebar-selected-background: var(--van-background-2)}.van-sidebar-item{position:relative;display:block;box-sizing:border-box;padding:var(--van-sidebar-padding);overflow:hidden;color:var(--van-sidebar-text-color);font-size:var(--van-sidebar-font-size);line-height:var(--van-sidebar-line-height);background:var(--van-sidebar-background);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-sidebar-item:active{background-color:var(--van-sidebar-active-color)}.van-sidebar-item:not(:last-child):after{border-bottom-width:min(.267vw,1.6px)}.van-sidebar-item__text{word-break:break-all}.van-sidebar-item--select{color:var(--van-sidebar-selected-text-color);font-weight:var(--van-sidebar-selected-font-weight)}.van-sidebar-item--select,.van-sidebar-item--select:active{background-color:var(--van-sidebar-selected-background)}.van-sidebar-item--select:before{position:absolute;top:50%;left:0;width:var(--van-sidebar-selected-border-width);height:var(--van-sidebar-selected-border-height);background-color:var(--van-sidebar-selected-border-color);transform:translateY(-50%);content:""}.van-sidebar-item--disabled{color:var(--van-sidebar-disabled-text-color);cursor:not-allowed}.van-sidebar-item--disabled:active{background-color:var(--van-sidebar-background)}:root,:host{--van-tree-select-font-size: var(--van-font-size-md);--van-tree-select-nav-background: var(--van-background);--van-tree-select-content-background: var(--van-background-2);--van-tree-select-nav-item-padding: min(3.733vw, 22.4px) var(--van-padding-sm);--van-tree-select-item-height: min(12.8vw, 76.8px);--van-tree-select-item-active-color: var(--van-primary-color);--van-tree-select-item-disabled-color: var(--van-gray-5);--van-tree-select-item-selected-size: min(4.267vw, 25.6px)}.van-tree-select{position:relative;display:flex;font-size:var(--van-tree-select-font-size)}.van-tree-select__nav{flex:1;overflow-y:auto;background:var(--van-tree-select-nav-background);-webkit-overflow-scrolling:touch}.van-tree-select__nav-item{padding:var(--van-tree-select-nav-item-padding)}.van-tree-select__content{flex:2;overflow-y:auto;background:var(--van-tree-select-content-background);-webkit-overflow-scrolling:touch}.van-tree-select__item{position:relative;padding:0 min(8.533vw,51.2px) 0 var(--van-padding-md);font-weight:var(--van-font-bold);line-height:var(--van-tree-select-item-height);-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.van-tree-select__item--active{color:var(--van-tree-select-item-active-color)}.van-tree-select__item:active{background-color:var(--van-active-color)}.van-tree-select__item--disabled{color:var(--van-tree-select-item-disabled-color);cursor:not-allowed}.van-tree-select__item--disabled:active{background-color:transparent}.van-tree-select__selected{position:absolute;top:50%;right:var(--van-padding-md);margin-top:calc(var(--van-padding-xs) * -1);font-size:var(--van-tree-select-item-selected-size)}:root,:host{--van-skeleton-title-width: 40%}.van-skeleton-title{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-title--round{border-radius:var(--van-radius-max)}.van-skeleton-title{width:var(--van-skeleton-title-width);margin:0}.van-skeleton-title+.van-skeleton-paragraph{margin-top:min(5.333vw,32px)}:root,:host{--van-skeleton-avatar-size: min(8.533vw, 51.2px);--van-skeleton-avatar-background: var(--van-active-color)}.van-skeleton-avatar{flex-shrink:0;width:var(--van-skeleton-avatar-size);height:var(--van-skeleton-avatar-size);margin-right:var(--van-padding-md);background:var(--van-skeleton-avatar-background)}.van-skeleton-avatar--round{border-radius:var(--van-radius-max)}.van-skeleton-avatar+.van-skeleton__content{padding-top:var(--van-padding-xs)}:root,:host{--van-skeleton-paragraph-height: min(4.267vw, 25.6px);--van-skeleton-paragraph-background: var(--van-active-color);--van-skeleton-paragraph-margin-top: var(--van-padding-sm)}.van-skeleton-paragraph{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-paragraph--round{border-radius:var(--van-radius-max)}.van-skeleton-paragraph:not(:first-child){margin-top:var(--van-skeleton-paragraph-margin-top)}:root,:host{--van-skeleton-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton__content{width:100%}.van-skeleton--animate{animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}:root,:host{--van-slider-active-background: var(--van-primary-color);--van-slider-inactive-background: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: min(.533vw, 3.2px);--van-slider-button-width: min(6.4vw, 38.4px);--van-slider-button-height: min(6.4vw, 38.4px);--van-slider-button-radius: 50%;--van-slider-button-background: var(--van-white);--van-slider-button-shadow: 0 min(.267vw, 1.6px) min(.533vw, 3.2px) rgba(0, 0, 0, .5)}.van-theme-dark{--van-slider-inactive-background: var(--van-background-3)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background);border-radius:var(--van-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background);border-radius:inherit;transition:all var(--van-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background);border-radius:var(--van-slider-button-radius);box-shadow:var(--van-slider-button-shadow)}.van-slider__button-wrapper{position:absolute;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper--left{left:0;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}.van-space{display:inline-flex}.van-space--horizontal .van-space-item{display:flex;align-items:center}.van-space--vertical{flex-direction:column}.van-space--align-baseline{align-items:baseline}.van-space--align-start{align-items:flex-start}.van-space--align-end{align-items:flex-end}.van-space--align-center{align-items:center}.van-space--wrap{flex-wrap:wrap}.van-space--fill{display:flex}:root,:host{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:min(2.667vw,16px) min(2.667vw,16px) 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 min(2.667vw,16px);padding-bottom:min(5.867vw,35.2px)}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}:root,:host{--van-step-text-color: var(--van-text-color-2);--van-step-active-color: var(--van-primary-color);--van-step-process-text-color: var(--van-text-color);--van-step-font-size: var(--van-font-size-md);--van-step-line-color: var(--van-border-color);--van-step-finish-line-color: var(--van-primary-color);--van-step-finish-text-color: var(--van-text-color);--van-step-icon-size: min(3.2vw, 19.2px);--van-step-circle-size: min(1.333vw, 8px);--van-step-circle-color: var(--van-gray-6);--van-step-horizontal-title-font-size: var(--van-font-size-sm)}.van-step{position:relative;flex:1;color:var(--van-step-text-color);font-size:var(--van-step-font-size)}.van-step__circle{display:block;width:var(--van-step-circle-size);height:var(--van-step-circle-size);background-color:var(--van-step-circle-color);border-radius:50%}.van-step__line{position:absolute;background-color:var(--van-step-line-color);transition:background-color var(--van-duration-base)}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child:not(:first-child){position:absolute;right:min(.267vw,1.6px);width:auto}.van-step--horizontal:last-child:not(:first-child) .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child:not(:first-child) .van-step__circle-container{right:max(-2.4vw,-14.4px);left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:min(8vw,48px);left:calc(var(--van-padding-xs) * -1);z-index:1;padding:0 var(--van-padding-xs);background-color:var(--van-background-2);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:min(.8vw,4.8px);font-size:var(--van-step-horizontal-title-font-size);transform:translate(-50%)}.van-step--horizontal .van-step__line{top:min(8vw,48px);left:0;width:100%;height:min(.267vw,1.6px)}.van-step--horizontal .van-step__icon{display:block;font-size:var(--van-step-icon-size)}.van-step--horizontal .van-step--process{color:var(--van-step-process-text-color)}.van-step--vertical{display:block;float:none;padding:min(2.667vw,16px) min(2.667vw,16px) min(2.667vw,16px) 0;line-height:var(--van-line-height-sm)}.van-step--vertical:not(:last-child):after{border-bottom-width:min(.267vw,1.6px)}.van-step--vertical .van-step__circle-container{position:absolute;top:min(5.067vw,30.4px);left:max(-4vw,-24px);z-index:1;font-size:var(--van-step-icon-size);line-height:1;transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:min(4.267vw,25.6px);left:max(-4vw,-24px);width:min(.267vw,1.6px);height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:var(--van-step-finish-text-color)}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:var(--van-step-finish-line-color)}.van-step__icon,.van-step__title{transition:color var(--van-duration-base)}.van-step__icon--active,.van-step__title--active,.van-step__icon--finish,.van-step__title--finish{color:var(--van-step-active-color)}:root,:host{--van-stepper-background: var(--van-active-color);--van-stepper-button-icon-color: var(--van-text-color);--van-stepper-button-disabled-color: var(--van-background);--van-stepper-button-disabled-icon-color: var(--van-gray-5);--van-stepper-button-round-theme-color: var(--van-primary-color);--van-stepper-input-width: min(8.533vw, 51.2px);--van-stepper-input-height: min(7.467vw, 44.8px);--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: normal;--van-stepper-input-text-color: var(--van-text-color);--van-stepper-input-disabled-text-color: var(--van-text-color-3);--van-stepper-input-disabled-background: var(--van-active-color);--van-stepper-radius: var(--van-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background);border:0}.van-stepper__minus:before,.van-stepper__plus:before{width:50%;height:min(.267vw,1.6px)}.van-stepper__minus:after,.van-stepper__plus:after{width:min(.267vw,1.6px);height:50%}.van-stepper__minus:before,.van-stepper__plus:before,.van-stepper__minus:after,.van-stepper__plus:after{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:""}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-radius) 0 0 var(--van-stepper-radius)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-radius) var(--van-stepper-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 min(.533vw,3.2px);padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background);border:0;border-width:min(.267vw,1.6px) 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:-moz-read-only{cursor:default}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__plus,.van-stepper--round .van-stepper__minus{border-radius:100%}.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-2);border:min(.267vw,1.6px) solid var(--van-stepper-button-round-theme-color)}.van-swipe-cell{position:relative;overflow:hidden;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}:root,:host{--van-tabbar-height: min(13.333vw, 80px);--van-tabbar-z-index: 1;--van-tabbar-background: var(--van-background-2)}.van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:var(--van-tabbar-height);background:var(--van-tabbar-background)}.van-tabbar--fixed{position:fixed;bottom:0;left:calc(50% - min(50%,300px))}:root,:host{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: min(5.867vw, 35.2px);--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:min(5.333vw,32px)}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}:root,:host{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;overflow-wrap:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}:root,:host{--van-watermark-z-index: 100}.van-watermark{position:absolute;height:100%;width:100%;left:0;top:0;z-index:var(--van-watermark-z-index);background-repeat:repeat;pointer-events:none}.van-watermark__wrapper{display:none}.van-watermark--full{position:fixed}#nprogress{pointer-events:none}#nprogress .bar{position:fixed;top:0;left:calc(50% - min(50%,300px));z-index:2000;width:min(100%,600px);height:min(.533vw,3.2px);background:rgb(var(--ui-primary))}#nprogress .peg{position:absolute;right:0;display:block;width:min(26.667vw,160px);height:100%;box-shadow:0 0 min(2.667vw,16px) rgb(var(--ui-primary)),0 0 min(1.333vw,8px) rgb(var(--ui-primary));opacity:1;transform:rotate(3deg) translateY(max(-1.067vw,-6.4px))}#nprogress .spinner{position:fixed;top:min(2.933vw,17.6px);right:calc(50% - min(277.6px,46.267%));z-index:2000;display:block}#nprogress .spinner .spinner-icon{box-sizing:border-box;width:min(4.8vw,28.8px);height:min(4.8vw,28.8px);border:solid min(.533vw,3.2px) transparent;border-top-color:rgb(var(--ui-primary));border-left-color:rgb(var(--ui-primary));border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{position:relative;overflow:hidden}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.app-setting[data-v-5390d74d]{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));position:fixed;top:70%;right:calc(50% - min(50%,300px));z-index:10;display:flex;align-items:center;justify-content:center;width:min(13.333vw,80px);height:min(13.333vw,80px);font-size:min(6.4vw,38.4px);cursor:pointer;border-radius:min(1.333vw,8px) 0 0 min(1.333vw,8px)}.dark .app-setting[data-v-5390d74d]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.app-setting .icon[data-v-5390d74d]{animation:rotate-5390d74d 5s linear infinite}@keyframes rotate-5390d74d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.navbar-enter-active[data-v-5390d74d],.navbar-leave-active[data-v-5390d74d]{transition:transform .15s ease-in-out}.navbar-enter-from[data-v-5390d74d],.navbar-leave-to[data-v-5390d74d]{transform:translateY(-100%)}.tabbar-enter-active[data-v-5390d74d],.tabbar-leave-active[data-v-5390d74d]{transition:transform .15s ease-in-out}.tabbar-enter-from[data-v-5390d74d],.tabbar-leave-to[data-v-5390d74d]{transform:translateY(100%)}.fade-enter-active[data-v-5390d74d],.slide-left-enter-active[data-v-5390d74d],.slide-right-enter-active[data-v-5390d74d],.slide-top-enter-active[data-v-5390d74d],.slide-bottom-enter-active[data-v-5390d74d]{transition:.2s}.fade-leave-active[data-v-5390d74d],.slide-left-leave-active[data-v-5390d74d],.slide-right-leave-active[data-v-5390d74d],.slide-top-leave-active[data-v-5390d74d],.slide-bottom-leave-active[data-v-5390d74d]{transition:.15s}.fade-enter-from[data-v-5390d74d],.fade-leave-to[data-v-5390d74d]{opacity:0}.slide-left-enter-from[data-v-5390d74d]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-left-leave-to[data-v-5390d74d],.slide-right-enter-from[data-v-5390d74d]{margin-right:min(5.333vw,32px);margin-left:max(-5.333vw,-32px);opacity:0}.slide-right-leave-to[data-v-5390d74d]{margin-right:max(-5.333vw,-32px);margin-left:min(5.333vw,32px);opacity:0}.slide-top-enter-from[data-v-5390d74d]{margin-top:min(5.333vw,32px);opacity:0}.slide-top-leave-to[data-v-5390d74d],.slide-bottom-enter-from[data-v-5390d74d]{margin-top:max(-5.333vw,-32px);opacity:0}.slide-bottom-leave-to[data-v-5390d74d]{margin-top:min(5.333vw,32px);opacity:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-theme=light],[data-theme=light] *,[data-theme=light] :before,[data-theme=light] :after{color-scheme:light;--ui-primary:15 15 15;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#0f0f0f;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#0f0f0f}[data-theme=light] ::backdrop{color-scheme:light;--ui-primary:15 15 15;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#0f0f0f;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#0f0f0f}[data-theme=classic],[data-theme=classic] *,[data-theme=classic] :before,[data-theme=classic] :after{color-scheme:light;--ui-primary:64 158 255;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#409eff;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#409eff}[data-theme=classic] ::backdrop{color-scheme:light;--ui-primary:64 158 255;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#409eff;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#409eff}[data-theme=naive],[data-theme=naive] *,[data-theme=naive] :before,[data-theme=naive] :after{color-scheme:light;--ui-primary:24 160 88;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#18a058;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#18a058}[data-theme=naive] ::backdrop{color-scheme:light;--ui-primary:24 160 88;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#18a058;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#18a058}[data-theme=barbie],[data-theme=barbie] *,[data-theme=barbie] :before,[data-theme=barbie] :after{color-scheme:light;--ui-primary:255 67 188;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#ff43bc;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#ff43bc}[data-theme=barbie] ::backdrop{color-scheme:light;--ui-primary:255 67 188;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#ff43bc;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#ff43bc}[data-theme=winter],[data-theme=winter] *,[data-theme=winter] :before,[data-theme=winter] :after{color-scheme:light;--ui-primary:166 228 248;--ui-text:62 78 104;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#3e4e68;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#3e4e68}[data-theme=winter] ::backdrop{color-scheme:light;--ui-primary:166 228 248;--ui-text:62 78 104;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#3e4e68;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#3e4e68}[data-theme=cyberpunk],[data-theme=cyberpunk] *,[data-theme=cyberpunk] :before,[data-theme=cyberpunk] :after{color-scheme:light;--ui-primary:219 203 0;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#dbcb00;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#dbcb00}[data-theme=cyberpunk] ::backdrop{color-scheme:light;--ui-primary:219 203 0;--ui-text:252 252 252;--g-bg:#f2f2f2;--g-container-bg:#fff;--g-border-color:#DCDFE6;--g-navbar-bg:#fff;--g-navbar-color:#dbcb00;--g-tabbar-bg:#fff;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#dbcb00}html.dark [data-theme=dark],html.dark [data-theme=dark] *,html.dark [data-theme=dark] :before,html.dark [data-theme=dark] :after{color-scheme:dark;--ui-primary:229 229 229;--ui-text:36 43 51;--g-bg:#0a0a0a;--g-container-bg:#141414;--g-border-color:#15191e;--g-navbar-bg:#141414;--g-navbar-color:#e5e5e5;--g-tabbar-bg:#141414;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#e5e5e5}html.dark [data-theme=dark] ::backdrop{color-scheme:dark;--ui-primary:229 229 229;--ui-text:36 43 51;--g-bg:#0a0a0a;--g-container-bg:#141414;--g-border-color:#15191e;--g-navbar-bg:#141414;--g-navbar-color:#e5e5e5;--g-tabbar-bg:#141414;--g-tabbar-color:#6f6f6f;--g-tabbar-active-color:#e5e5e5}html.dark [data-theme=dracula],html.dark [data-theme=dracula] *,html.dark [data-theme=dracula] :before,html.dark [data-theme=dracula] :after{color-scheme:dark;--ui-primary:166 173 187;--ui-text:36 43 51;--g-bg:#272935;--g-container-bg:#1d232a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#a6adbb;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#a6adbb}html.dark [data-theme=dracula] ::backdrop{color-scheme:dark;--ui-primary:166 173 187;--ui-text:36 43 51;--g-bg:#272935;--g-container-bg:#1d232a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#a6adbb;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#a6adbb}html.dark [data-theme=night],html.dark [data-theme=night] *,html.dark [data-theme=night] :before,html.dark [data-theme=night] :after{color-scheme:dark;--ui-primary:12 166 233;--ui-text:36 43 51;--g-bg:#0f1729;--g-container-bg:#1d283a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#0ca6e9;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#0ca6e9}html.dark [data-theme=night] ::backdrop{color-scheme:dark;--ui-primary:12 166 233;--ui-text:36 43 51;--g-bg:#0f1729;--g-container-bg:#1d283a;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#0ca6e9;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#0ca6e9}html.dark [data-theme=luxury],html.dark [data-theme=luxury] *,html.dark [data-theme=luxury] :before,html.dark [data-theme=luxury] :after{color-scheme:dark;--ui-primary:220 165 76;--ui-text:36 43 51;--g-bg:#09090b;--g-container-bg:#171618;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#dca54c;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#dca54c}html.dark [data-theme=luxury] ::backdrop{color-scheme:dark;--ui-primary:220 165 76;--ui-text:36 43 51;--g-bg:#09090b;--g-container-bg:#171618;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#dca54c;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#dca54c}html.dark [data-theme=synthwave],html.dark [data-theme=synthwave] *,html.dark [data-theme=synthwave] :before,html.dark [data-theme=synthwave] :after{color-scheme:dark;--ui-primary:88 199 243;--ui-text:36 43 51;--g-bg:#1a103c;--g-container-bg:#221551;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#58c7f3;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#58c7f3}html.dark [data-theme=synthwave] ::backdrop{color-scheme:dark;--ui-primary:88 199 243;--ui-text:36 43 51;--g-bg:#1a103c;--g-container-bg:#221551;--g-border-color:#191E24;--g-navbar-bg:#141414;--g-navbar-color:#58c7f3;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#58c7f3}html.dark [data-theme=stone],html.dark [data-theme=stone] *,html.dark [data-theme=stone] :before,html.dark [data-theme=stone] :after{color-scheme:dark;--ui-primary:104 209 191;--ui-text:36 43 51;--g-bg:#1b1917;--g-container-bg:#282524;--g-border-color:#43403c;--g-navbar-bg:#141414;--g-navbar-color:#68d1bf;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#68d1bf}html.dark [data-theme=stone] ::backdrop{color-scheme:dark;--ui-primary:104 209 191;--ui-text:36 43 51;--g-bg:#1b1917;--g-container-bg:#282524;--g-border-color:#43403c;--g-navbar-bg:#141414;--g-navbar-color:#68d1bf;--g-tabbar-bg:#141414;--g-tabbar-color:#414558;--g-tabbar-active-color:#68d1bf}.i-bx\:bxs-component{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M3.553 18.895l4 2a1.001 1.001 0 0 0 .894 0L12 19.118l3.553 1.776a.99.99 0 0 0 .894.001l4-2c.339-.17.553-.516.553-.895v-5c0-.379-.214-.725-.553-.895L17 10.382V6c0-.379-.214-.725-.553-.895l-4-2a1 1 0 0 0-.895 0l-4 2C7.214 5.275 7 5.621 7 6v4.382l-3.447 1.724A.998.998 0 0 0 3 13v5c0 .379.214.725.553.895zM8 12.118l2.264 1.132l-2.913 1.457l-2.264-1.132L8 12.118zm4-2.5l3-1.5v2.264l-3 1.5V9.618zm6.264 3.632l-2.882 1.441l-2.264-1.132L16 12.118l2.264 1.132zM8 18.882l-.062-.031V16.65L11 15.118v2.264l-3 1.5zm8 0v-2.264l3-1.5v2.264l-3 1.5zM12 5.118l2.264 1.132l-2.882 1.441l-2.264-1.132L12 5.118z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:4k{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 11.03v4h-2v-4H8v6h4v4h2v-10zm12.19 0H22l-3 4.39v-4.39h-2v10h2V18.3l.91-1.33L22 21.03h2.19l-2.99-5.62z'/%3E%3Cpath fill='currentColor' d='M28 26H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2M4 8v16h24V8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:auto-scroll{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M12 16a4 4 0 1 0 4-4a4 4 0 0 0-4 4zm6 0a2 2 0 1 1-2-2a2 2 0 0 1 2 2z' fill='currentColor'/%3E%3Cpath d='M16 27.17l-5.6-5.59L9 23l7 7l7-7l-1.41-1.41L16 27.17z' fill='currentColor'/%3E%3Cpath d='M16 4.83l5.58 5.57L23 9l-7-7l-7 7l1.41 1.41L16 4.83z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:carousel-horizontal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 26H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2M10 8v16h12V8zM4 24H0v-2h4V10H0V8h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2m28 0h-4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h4v2h-4v12h4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:chevron-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:favorite{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22.45 6a5.47 5.47 0 0 1 3.91 1.64a5.7 5.7 0 0 1 0 8L16 26.13L5.64 15.64a5.7 5.7 0 0 1 0-8a5.48 5.48 0 0 1 7.82 0l2.54 2.6l2.53-2.58A5.44 5.44 0 0 1 22.45 6m0-2a7.47 7.47 0 0 0-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 0 0-10.68 0a7.72 7.72 0 0 0 0 10.82L16 29l11.79-11.94a7.72 7.72 0 0 0 0-10.82A7.5 7.5 0 0 0 22.45 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:notification{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.707 19.293L26 16.586V13a10.014 10.014 0 0 0-9-9.95V1h-2v2.05A10.014 10.014 0 0 0 6 13v3.586l-2.707 2.707A1 1 0 0 0 3 20v3a1 1 0 0 0 1 1h7v.777a5.15 5.15 0 0 0 4.5 5.199A5.006 5.006 0 0 0 21 25v-1h7a1 1 0 0 0 1-1v-3a1 1 0 0 0-.293-.707M19 25a3 3 0 0 1-6 0v-1h6Zm8-3H5v-1.586l2.707-2.707A1 1 0 0 0 8 17v-4a8 8 0 0 1 16 0v4a1 1 0 0 0 .293.707L27 20.414Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:pause-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 6h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m10 0h-2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:play-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:settings{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27 16.76v-1.53l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11 11 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.5 11.5 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11 11 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.5 11.5 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51ZM25.21 24l-3.43-1.16a8.9 8.9 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.4 9.4 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.9 8.9 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.4 9.4 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6m0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:share{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 20a5 5 0 0 0-3.89 1.89l-7.31-4.57a4.46 4.46 0 0 0 0-2.64l7.31-4.57A5 5 0 1 0 18 7a4.8 4.8 0 0 0 .2 1.32l-7.31 4.57a5 5 0 1 0 0 6.22l7.31 4.57A4.8 4.8 0 0 0 18 25a5 5 0 1 0 5-5m0-16a3 3 0 1 1-3 3a3 3 0 0 1 3-3M7 19a3 3 0 1 1 3-3a3 3 0 0 1-3 3m16 9a3 3 0 1 1 3-3a3 3 0 0 1-3 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:thumbs-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 12h-6V6a3.003 3.003 0 0 0-3-3h-2.133a2.01 2.01 0 0 0-1.98 1.717l-.845 5.917L8.465 16H2v14h21a7.01 7.01 0 0 0 7-7v-7a4.005 4.005 0 0 0-4-4M8 28H4V18h4Zm20-5a5.006 5.006 0 0 1-5 5H10V17.303l3.958-5.937l.91-6.366H17a1 1 0 0 1 1 1v8h8a2.003 2.003 0 0 1 2 2Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-carbon\:user-avatar-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8a5 5 0 1 0 5 5a5 5 0 0 0-5-5'/%3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14.016 14.016 0 0 0 16 2m7.993 22.926A5 5 0 0 0 19 20h-6a5 5 0 0 0-4.992 4.926a12 12 0 1 1 15.985 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-cil\:window-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 512 512' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M352 153H40.247a24.03 24.03 0 0 0-24 24v281a24.03 24.03 0 0 0 24 24H352a24.03 24.03 0 0 0 24-24V177a24.03 24.03 0 0 0-24-24m-8 32v45.22H48.247V185ZM48.247 450V262.22H344V450Z'/%3E%3Cpath fill='currentColor' d='M472 32H152a24.03 24.03 0 0 0-24 24v65h32V64h304v275.143h-56v32h64a24.03 24.03 0 0 0 24-24V56a24.03 24.03 0 0 0-24-24'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-clarity\:animation-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 36 36' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10.16 31.71a4.4 4.4 0 0 1-4.64-1a4.34 4.34 0 0 1-1.29-3.11a4.4 4.4 0 0 1 .18-1.2a11.6 11.6 0 0 1-1-2.56a6.4 6.4 0 0 0 9.33 8.63a11.6 11.6 0 0 1-2.58-.76m8.25-4.03a7.61 7.61 0 0 1-9.08-1.26a7.58 7.58 0 0 1-1.27-9.06a14.3 14.3 0 0 1-.37-2.85a9.58 9.58 0 0 0 .22 13.33a9.63 9.63 0 0 0 13.35.22a14.5 14.5 0 0 1-2.85-.38'/%3E%3Cpath fill='currentColor' d='M21.66 26.21a12.1 12.1 0 1 1 8.57-3.54a12.1 12.1 0 0 1-8.57 3.54m0-22.21a10.11 10.11 0 0 0-10.12 10.11a10 10 0 0 0 3 7.14a10.12 10.12 0 0 0 14.31 0A10.11 10.11 0 0 0 21.66 4m7.86 18'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-clarity\:plugin-outline-alerted{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 36 36' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.81 16H29v-.6h-2V18h2.81A3.13 3.13 0 0 1 33 20.69a3 3 0 0 1-.78 2.31A3 3 0 0 1 30 24h-3v7.83H4V25h1a5 5 0 0 0 5-5.51A5.15 5.15 0 0 0 4.81 15H4V8.83h9V7a3 3 0 0 1 1-2.22A3 3 0 0 1 16.31 4A3.13 3.13 0 0 1 19 7.19v1.64h.66L21 6.59A5.12 5.12 0 0 0 16.51 2A5 5 0 0 0 11 6.83H4a2 2 0 0 0-2 2V17h2.81A3.13 3.13 0 0 1 8 19.69A3 3 0 0 1 7.22 22A3 3 0 0 1 5 23H2v8.83a2 2 0 0 0 2 2h23a2 2 0 0 0 2-2V26h1a5 5 0 0 0 5-5.51A5.15 5.15 0 0 0 29.81 16' class='clr-i-outline--alerted clr-i-outline-path-1--alerted'/%3E%3Cpath fill='currentColor' d='M26.85 1.14L21.13 11a1.28 1.28 0 0 0 1.1 2h11.45a1.28 1.28 0 0 0 1.1-2l-5.72-9.86a1.28 1.28 0 0 0-2.21 0' class='clr-i-outline--alerted clr-i-outline-path-2--alerted clr-i-alert'/%3E%3Cpath fill='none' d='M0 0h36v36H0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-codicon\:color-mode{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m0 13V2a6 6 0 1 1 0 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M831.872 340.864L512 652.672L192.128 340.864a30.59 30.59 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.59 30.59 0 0 0-42.752 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:caret-top{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 320L192 704h639.936z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:document-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:minus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ep\:plus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-fluent\:document-footer-16-regular{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6 11a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zM4.75 1A1.75 1.75 0 0 0 3 2.75v10.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 13.25V2.75A1.75 1.75 0 0 0 11.25 1zM4 2.75A.75.75 0 0 1 4.75 2h6.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-fluent\:document-header-16-regular{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6 3a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2zM4.75 1A1.75 1.75 0 0 0 3 2.75v10.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 13.25V2.75A1.75 1.75 0 0 0 11.25 1zM4 2.75A.75.75 0 0 1 4.75 2h6.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-6.5a.75.75 0 0 1-.75-.75z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:baseline-home,.i-ic\:sharp-home{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:baseline-person{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:round-arrow-back-ios{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:round-arrow-forward-ios{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:sharp-auto-awesome{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-auto-awesome{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.99 11.01L9 8.83l-.99 2.18l-2.18.99l2.18.99l.99 2.18l.99-2.18l2.18-.99z' opacity='.3'/%3E%3Cpath fill='currentColor' d='m19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4L6.5 9.5L1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18l2.18.99z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-home{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3zm5 15h-2v-6H9v6H7v-7.81l5-4.5l5 4.5z'/%3E%3Cpath fill='currentColor' d='M7 10.19V18h2v-6h6v6h2v-7.81l-5-4.5z' opacity='.3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ic\:twotone-person{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 16c-2.69 0-5.77 1.28-6 2h12c-.2-.71-3.3-2-6-2' opacity='.3'/%3E%3Ccircle cx='12' cy='8' r='2' fill='currentColor' opacity='.3'/%3E%3Cpath fill='currentColor' d='M12 14c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m-6 4c.22-.72 3.31-2 6-2c2.7 0 5.8 1.29 6 2zm6-6c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2s-2-.9-2-2s.9-2 2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park-outline\:mosaic{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M44 36h-8v8h8zm-16 0h-8v8h8zm-16 0H4v8h8zm32-16h-8v8h8zm-16 0h-8v8h8zm-16 0H4v8h8zM44 4h-8v8h8zM28 4h-8v8h8zM12 4H4v8h8zm8 8h-8v8h8zm0 16h-8v8h8zm16-16h-8v8h8zm0 16h-8v8h8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park-outline\:to-top-one{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='m12 33l12-12l12 12M12 13h24'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:ad{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='24' cy='24' r='20' fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M38 38L35 35'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M10 10L13 13'/%3E%3Cpath fill='%232F88FF' d='M21.1429 28L18 17L14.8571 28H21.1429Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M14 31L14.8571 28M22 31L21.1429 28M21.1429 28L18 17L14.8571 28M21.1429 28H14.8571'/%3E%3Cpath fill='%232F88FF' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M35 24C35 29 31.4183 31 27 31V17C31.4183 17 35 19 35 24Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:airplane{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20.5 10.5372C20.5 6.5143 22.8333 4.50286 24 4C25.1667 4.50286 27.5 6.5143 27.5 10.5372V18.0801L43 31V35L27 27V36L32 44L24 41L16 44L21 36V27L5 35V31L20.5 18.0801V10.5372Z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:alarm-clock{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke-linejoin='round' stroke-width='4'%3E%3Cpath fill='%232F88FF' stroke='%23000' d='M23.9998 44.3332C34.1251 44.3332 42.3332 36.1251 42.3332 25.9999C42.3332 15.8747 34.1251 7.66656 23.9998 7.66656C13.8746 7.66656 5.6665 15.8747 5.6665 25.9999C5.6665 36.1251 13.8746 44.3332 23.9998 44.3332Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' d='M23.7594 15.3536L23.7582 26.3624L31.5305 34.1347'/%3E%3Cpath stroke='%23000' stroke-linecap='round' d='M4 9.00001L11 4.00001'/%3E%3Cpath stroke='%23000' stroke-linecap='round' d='M44 9.00001L37 4.00001'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:bitcoin{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='24' cy='24' r='20' fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath fill='%232F88FF' d='M20 16H25H27C29.2091 16 31 17.7909 31 20C31 22.2091 29.2091 24 27 24H20V16Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20 16V24H27C29.2091 24 31 22.2091 31 20V20C31 17.7909 29.2091 16 27 16H25M20 16H16M20 16V12M20 16H25M25 16V12'/%3E%3Cpath fill='%232F88FF' d='M20 24H29C31.2091 24 33 25.7909 33 28C33 30.2091 31.2091 32 29 32H25H20V24Z'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M20 32V24H29C31.2091 24 33 25.7909 33 28V28C33 30.2091 31.2091 32 29 32H25M20 32V36M20 32H16H25M20 32H25M25 32V36'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:calendar-dot{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Crect width='40' height='40' x='4' y='4' fill='%232F88FF' stroke='%23000' rx='2'/%3E%3Cpath stroke='%23fff' d='M4 14H44'/%3E%3Cline x1='44' x2='44' y1='11' y2='23' stroke='%23000'/%3E%3Cpath stroke='%23fff' d='M12 22H16'/%3E%3Cpath stroke='%23fff' d='M22 22H26'/%3E%3Cpath stroke='%23fff' d='M32 22H36'/%3E%3Cpath stroke='%23fff' d='M12 29H16'/%3E%3Cpath stroke='%23fff' d='M22 29H26'/%3E%3Cpath stroke='%23fff' d='M32 29H36'/%3E%3Cpath stroke='%23fff' d='M12 36H16'/%3E%3Cpath stroke='%23fff' d='M22 36H26'/%3E%3Cpath stroke='%23fff' d='M32 36H36'/%3E%3Cline x1='4' x2='4' y1='11' y2='23' stroke='%23000'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:globe{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Cpath d='M37.8261 4C41.6276 7.58886 44 12.6753 44 18.3158C44 29.1871 35.1871 38 24.3158 38C18.6753 38 13.5889 35.6276 10 31.8261'/%3E%3Cpath fill='%232F88FF' fill-rule='evenodd' d='M24 32C31.732 32 38 25.732 38 18C38 10.268 31.732 4 24 4C16.268 4 10 10.268 10 18C10 25.732 16.268 32 24 32Z' clip-rule='evenodd'/%3E%3Cpath d='M24 38V44'/%3E%3Cpath d='M18 44H30'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:good-two{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='%232F88FF' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Cpath d='M4.18898 22.1733C4.08737 21.0047 5.00852 20 6.18146 20H10C11.1046 20 12 20.8954 12 22V41C12 42.1046 11.1046 43 10 43H7.83363C6.79622 43 5.93102 42.2068 5.84115 41.1733L4.18898 22.1733Z'/%3E%3Cpath d='M18 21.3745C18 20.5388 18.5194 19.7908 19.2753 19.4345C20.9238 18.6574 23.7329 17.0938 25 14.9805C26.6331 12.2569 26.9411 7.33595 26.9912 6.20878C26.9982 6.05099 26.9937 5.89301 27.0154 5.73656C27.2861 3.78446 31.0543 6.06492 32.5 8.47612C33.2846 9.78471 33.3852 11.504 33.3027 12.8463C33.2144 14.2825 32.7933 15.6699 32.3802 17.0483L31.5 19.9845H42.3569C43.6832 19.9845 44.6421 21.2518 44.2816 22.5281L38.9113 41.5436C38.668 42.4051 37.8818 43 36.9866 43H20C18.8954 43 18 42.1046 18 41V21.3745Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-icon-park\:shopping{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 48 48' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath fill='%232F88FF' d='M39 32H13L8 12H44L39 32Z'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M3 6H6.5L8 12M8 12L13 32H39L44 12H8Z'/%3E%3Ccircle cx='13' cy='39' r='3' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='39' cy='39' r='3' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-line-md\:loading-loop{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-dasharray='15' stroke-dashoffset='15' stroke-linecap='round' stroke-width='2' d='M12 3C16.9706 3 21 7.02944 21 12'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.3s' values='15;0'/%3E%3CanimateTransform attributeName='transform' dur='1.5s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:pinia{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 331' display='inline-block' vertical-align='middle' width='0.78em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='logosPinia0' x1='55.342%25' x2='42.817%25' y1='0%25' y2='42.863%25'%3E%3Cstop offset='0%25' stop-color='%2352CE63'/%3E%3Cstop offset='100%25' stop-color='%2351A256'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia1' x1='55.349%25' x2='42.808%25' y1='0%25' y2='42.863%25'%3E%3Cstop offset='0%25' stop-color='%2352CE63'/%3E%3Cstop offset='100%25' stop-color='%2351A256'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia2' x1='50%25' x2='50%25' y1='0%25' y2='58.811%25'%3E%3Cstop offset='0%25' stop-color='%238AE99C'/%3E%3Cstop offset='100%25' stop-color='%2352CE63'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosPinia3' x1='51.378%25' x2='44.585%25' y1='17.473%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23FFE56C'/%3E%3Cstop offset='100%25' stop-color='%23FFC63A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23logosPinia0)' d='M67.56 173.328c30.366-2.985 41.08-27.648 44.735-64.823c3.654-37.175-21.174-70.814-31.502-69.799s-43.15 40.322-46.805 77.497c-3.654 37.175 3.205 60.11 33.572 57.125' transform='rotate(-38 72.877 106.136)'/%3E%3Cpath fill='url(%23logosPinia1)' d='M184.454 186.277c30.367 2.986 36.394-20.032 32.74-57.207c-3.655-37.175-35.645-76.4-45.973-77.415s-35.989 32.542-32.334 69.717s15.201 61.92 45.567 64.905' transform='rotate(52 178.34 119.085)'/%3E%3Cpath fill='url(%23logosPinia2)' d='M129.232 151.601c27.341 0 34.878-26.184 34.878-67.013S138.531 3.745 129.232 3.745S93.605 43.758 93.605 84.588c0 40.829 8.286 67.013 35.627 67.013' transform='rotate(7 128.858 77.673)'/%3E%3Cpath fill='url(%23logosPinia3)' d='M113.386 330.307c56.896 0 103.038-16.528 103.038-91.482s-46.142-136.462-103.038-136.462c-56.897 0-103.002 61.507-103.002 136.462s46.105 91.482 103.002 91.482'/%3E%3Cellipse cx='165.427' cy='216.677' fill='%23EAADCC' rx='14.717' ry='6.845'/%3E%3Cellipse cx='57.273' cy='212.57' fill='%23EAADCC' rx='14.717' ry='6.845' transform='rotate(7 57.273 212.57)'/%3E%3Cpath d='M96.266 210.285a2.054 2.054 0 1 0-3.406 2.295c3.151 4.676 7.997 7.39 14.373 8.119c6.348.725 12.016-.902 16.877-4.852a2.054 2.054 0 1 0-2.59-3.187c-3.999 3.249-8.563 4.559-13.82 3.958c-5.23-.598-8.986-2.7-11.434-6.333M65.818 178.63a14.67 14.67 0 0 1 10.551 3.945a14.67 14.67 0 0 1 4.672 10.25a14.67 14.67 0 0 1-3.945 10.55a14.67 14.67 0 0 1-10.25 4.672a14.67 14.67 0 0 1-10.551-3.945a14.67 14.67 0 0 1-4.67-10.25a14.67 14.67 0 0 1 3.944-10.55a14.67 14.67 0 0 1 10.249-4.672'/%3E%3Cpath fill='%23FFF' d='M66.59 190.932a4.792 4.792 0 1 0-9.578.336a4.792 4.792 0 0 0 9.579-.336'/%3E%3Cpath d='M154.99 182.366a14.67 14.67 0 0 1 10.552 3.944a14.67 14.67 0 0 1 4.67 10.25a14.67 14.67 0 0 1-3.944 10.551a14.67 14.67 0 0 1-10.25 4.671a14.67 14.67 0 0 1-10.55-3.945a14.67 14.67 0 0 1-4.672-10.25a14.67 14.67 0 0 1 3.945-10.55a14.67 14.67 0 0 1 10.25-4.671'/%3E%3Cpath fill='%23FFF' d='M65.71 175.552c9.824-.343 18.066 7.342 18.409 17.165s-7.342 18.065-17.166 18.408s-18.064-7.342-18.407-17.166c-.343-9.823 7.341-18.064 17.164-18.407m12.252 17.38c-.224-6.423-5.613-11.448-12.037-11.223c-6.422.224-11.447 5.612-11.222 12.035c.224 6.424 5.612 11.448 12.035 11.224s11.448-5.612 11.224-12.036m76.921-13.645c9.824-.343 18.065 7.342 18.408 17.165s-7.342 18.065-17.165 18.408s-18.065-7.342-18.408-17.165s7.342-18.065 17.165-18.408m12.251 17.38c-.224-6.423-5.612-11.447-12.036-11.223s-11.448 5.613-11.223 12.036s5.612 11.448 12.035 11.224c6.424-.225 11.448-5.613 11.224-12.037'/%3E%3Cpath fill='%23FFF' d='M155.763 194.668a4.792 4.792 0 1 0-9.578.335a4.792 4.792 0 0 0 9.578-.335'/%3E%3Cpath fill='%23ECB732' d='m38.083 243.16l22.33 23.235l16.022-17.044a3.765 3.765 0 0 1 5.486 5.157l-16.283 17.324l23.1 24.036a3.765 3.765 0 1 1-5.43 5.218l-22.834-23.761l-10.725 11.41a3.765 3.765 0 1 1-5.486-5.158l10.986-11.688l-22.595-23.511a3.765 3.765 0 1 1 5.43-5.218m149.956 0a3.765 3.765 0 1 1 5.429 5.218l-22.596 23.511l10.988 11.688a3.765 3.765 0 0 1-.042 5.201l-.123.121a3.765 3.765 0 0 1-5.322-.165l-10.725-11.41l-22.834 23.762a3.765 3.765 0 0 1-5.197.222l-.127-.116a3.765 3.765 0 0 1-.105-5.324l23.1-24.036l-16.284-17.324a3.765 3.765 0 0 1 .042-5.2l.123-.121a3.765 3.765 0 0 1 5.321.164l16.021 17.044z'/%3E%3Cpath fill='%23FFC73B' d='M136.602 126.74a3.765 3.765 0 0 1 0 5.323l-17.53 17.531l10.684 10.686a3.765 3.765 0 0 1 .12 5.2l-.12.125a3.765 3.765 0 0 1-5.324 0l-10.686-10.686l-10.686 10.686a3.765 3.765 0 1 1-5.324-5.325l10.685-10.686l-17.53-17.53a3.765 3.765 0 0 1-.12-5.2l.12-.125a3.765 3.765 0 0 1 5.324 0l17.531 17.53l17.531-17.53a3.765 3.765 0 0 1 5.325 0'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:.78em;height:1em}.i-logos\:unocss{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='%23333'%3E%3Cpath fill-opacity='.6' d='M137.176 195.927c0-32.812 26.6-59.412 59.412-59.412S256 163.115 256 195.927s-26.6 59.412-59.412 59.412s-59.412-26.6-59.412-59.412'/%3E%3Cpath fill-opacity='.3' d='M137.176 59.412C137.176 26.6 163.776 0 196.588 0S256 26.6 256 59.412v53.471a5.94 5.94 0 0 1-5.941 5.941H143.117a5.94 5.94 0 0 1-5.941-5.94z'/%3E%3Cpath d='M118.824 195.927c0 32.812-26.6 59.412-59.412 59.412S0 228.74 0 195.927v-53.471a5.94 5.94 0 0 1 5.941-5.941h106.942c3.28 0 5.941 2.66 5.941 5.941z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:vitejs{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 257' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3ClinearGradient id='logosVitejs0' x1='-.828%25' x2='57.636%25' y1='7.652%25' y2='78.411%25'%3E%3Cstop offset='0%25' stop-color='%2341D1FF'/%3E%3Cstop offset='100%25' stop-color='%23BD34FE'/%3E%3C/linearGradient%3E%3ClinearGradient id='logosVitejs1' x1='43.376%25' x2='50.316%25' y1='2.242%25' y2='89.03%25'%3E%3Cstop offset='0%25' stop-color='%23FFEA83'/%3E%3Cstop offset='8.333%25' stop-color='%23FFDD35'/%3E%3Cstop offset='100%25' stop-color='%23FFA800'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23logosVitejs0)' d='M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.5 6.5 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62'/%3E%3Cpath fill='url(%23logosVitejs1)' d='M185.432.063L96.44 17.501a3.27 3.27 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-logos\:vue{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 221' display='inline-block' vertical-align='middle' width='1.16em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2341B883' d='M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0z'/%3E%3Cpath fill='%2341B883' d='m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0z'/%3E%3Cpath fill='%2335495E' d='M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;display:inline-block;vertical-align:middle;width:1.16em;height:1em}.i-material-symbols\:qr-code{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 11V3h8v8zm2-2h4V5H5zM3 21v-8h8v8zm2-2h4v-4H5zm8-8V3h8v8zm2-2h4V5h-4zm4 12v-2h2v2zm-6-6v-2h2v2zm2 2v-2h2v2zm-2 2v-2h2v2zm2 2v-2h2v2zm2-2v-2h2v2zm0-4v-2h2v2zm2 2v-2h2v2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:draw{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.75 20.85c1.78-.7 1.39-2.63.49-3.85c-.89-1.25-2.12-2.11-3.36-2.94A9.8 9.8 0 0 1 4.54 12c-.28-.33-.85-.94-.27-1.06c.59-.12 1.61.46 2.13.68c.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21c-.32.99.19 1.99.77 2.77c1.37 1.83 3.5 2.71 5.09 4.29c.34.33.75.72.95 1.18c.21.44.16.47-.31.47c-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.56.56 0 0 0-.78 0l-1.02 1.02l2.08 2.08M11 10.92V13h2.08l6.15-6.15l-2.08-2.08z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:flower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 13a9 9 0 0 0 9 9c0-5-4.03-9-9-9m9-7.5A2.5 2.5 0 0 1 14.5 8a2.5 2.5 0 0 1-2.5 2.5A2.5 2.5 0 0 1 9.5 8A2.5 2.5 0 0 1 12 5.5m-6.4 4.75a2.5 2.5 0 0 0 2.5 2.5c.53 0 1.02-.17 1.4-.44v.19A2.5 2.5 0 0 0 12 15a2.5 2.5 0 0 0 2.5-2.5v-.19c.38.27.87.44 1.4.44a2.5 2.5 0 0 0 2.5-2.5c0-1-.59-1.85-1.43-2.25c.84-.4 1.43-1.26 1.43-2.25a2.5 2.5 0 0 0-2.5-2.5c-.53 0-1.02.16-1.4.44V3.5A2.5 2.5 0 0 0 12 1a2.5 2.5 0 0 0-2.5 2.5v.19c-.38-.28-.87-.44-1.4-.44a2.5 2.5 0 0 0-2.5 2.5c0 .99.59 1.85 1.43 2.25c-.84.4-1.43 1.25-1.43 2.25M12 22a9 9 0 0 0 9-9c-5 0-9 4-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:format-title{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 4v3h5.5v12h3V7H19V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:grass{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 20H2v-2h5.75C7 15.19 4.81 13 2 12.26c.64-.16 1.31-.26 2-.26c4.42 0 8 3.58 8 8m10-7.74c-.64-.16-1.31-.26-2-.26c-2.93 0-5.5 1.58-6.88 3.93c.29.66.53 1.35.67 2.07c.13.65.21 1.32.21 2h8v-2h-5.76c.76-2.81 2.95-5 5.76-5.74M15.64 11c.78-2.07 2.23-3.82 4.09-5c-4.29.16-7.73 3.67-7.73 8c.95-1.25 2.2-2.28 3.64-3m-4.22-2.15A8.53 8.53 0 0 0 6.7 4C8.14 5.86 9 8.18 9 10.71c0 .21-.03.41-.04.61c.43.24.83.52 1.22.82a9.9 9.9 0 0 1 1.24-3.29'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mdi\:professional-hexagon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.12-.36.18-.57.18s-.41-.06-.57-.18l-7.9-4.44A.99.99 0 0 1 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.12.36-.18.57-.18s.41.06.57.18l7.9 4.44c.32.17.53.5.53.88zM5 9v6h1.25v-2H7a2 2 0 0 0 2-2a2 2 0 0 0-2-2zm1.25 3v-2h.5a1 1 0 0 1 1 1a1 1 0 0 1-1 1zm3.5-3v6H11v-2h.75l.66 2h1.32l-.79-2.39c.49-.36.81-.95.81-1.61a2 2 0 0 0-2-2zM11 12v-2h.5a1 1 0 0 1 1 1a1 1 0 0 1-1 1zm6-3c-1.38 0-2.5 1.34-2.5 3s1.12 3 2.5 3s2.5-1.34 2.5-3s-1.12-3-2.5-3m0 1.25c.76 0 1.38.78 1.38 1.75s-.62 1.75-1.38 1.75s-1.37-.78-1.37-1.75s.61-1.75 1.37-1.75'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-mingcute\:zoom-in-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='currentColor' d='M10.5 2a8.5 8.5 0 0 1 6.873 13.502l-.197.26l3.652 3.652a1 1 0 0 1-1.32 1.498l-.094-.084l-3.652-3.652A8.5 8.5 0 1 1 10.5 2m0 2a6.5 6.5 0 1 0 0 13a6.5 6.5 0 0 0 0-13m0 2a1 1 0 0 1 .993.883L11.5 7v2.5H14a1 1 0 0 1 .117 1.993L14 11.5h-2.5V14a1 1 0 0 1-1.993.117L9.5 14v-2.5H7a1 1 0 0 1-.117-1.993L7 9.5h2.5V7a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:bar-chart-2-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 13h6v8H2zm14-5h6v13h-6zM9 3h6v18H9zM4 15v4h2v-4zm7-10v14h2V5zm7 5v9h2v-9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:bug-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 19.9a5 5 0 0 0 4-4.9v-3c0-.701-.144-1.378-.415-2h-9.17A5 5 0 0 0 7 12v3a5 5 0 0 0 4 4.9V14h2zm-7.464-2.21A7 7 0 0 1 5 15H2v-2h3v-1c0-.643.087-1.265.249-1.856L3.036 8.866l1-1.732L6.056 8.3a7 7 0 0 1 .199-.3h11.49q.103.148.199.3l2.02-1.166l1 1.732l-2.213 1.278c.162.59.249 1.213.249 1.856v1h3v2h-3a7 7 0 0 1-.536 2.69l2.5 1.444l-1 1.732l-2.526-1.458A6.99 6.99 0 0 1 12 22a6.99 6.99 0 0 1-5.438-2.592l-2.526 1.458l-1-1.732zM8 6a4 4 0 1 1 8 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:copyright-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.288 9.428A4.999 4.999 0 0 0 7 12a4.999 4.999 0 0 0 9.288 2.572l-1.715-1.028A3 3 0 1 1 12 9c1.093 0 2.05.584 2.573 1.457zM22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10s10-4.48 10-10M4 12c0-4.42 3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:earth-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6.235 6.453a8 8 0 0 0 8.817 12.944c.115-.75-.137-1.47-.24-1.722c-.23-.56-.988-1.517-2.253-2.844c-.338-.355-.316-.627-.195-1.437l.013-.091c.082-.554.22-.882 2.085-1.178c.948-.15 1.197.228 1.542.753l.116.172c.328.48.571.59.938.756c.165.075.37.17.645.325c.652.373.652.794.652 1.716v.105c0 .391-.038.735-.098 1.034a8.002 8.002 0 0 0-3.105-12.341c-.553.373-1.312.902-1.577 1.265c-.135.185-.327 1.132-.95 1.21c-.162.02-.381.006-.613-.009c-.622-.04-1.472-.095-1.744.644c-.173.468-.203 1.74.356 2.4c.09.105.107.3.046.519c-.08.287-.241.462-.292.498c-.096-.056-.288-.279-.419-.43c-.313-.366-.705-.82-1.211-.96c-.184-.051-.386-.093-.583-.135c-.549-.115-1.17-.246-1.315-.554c-.106-.226-.105-.537-.105-.865c0-.417 0-.888-.204-1.345a1.3 1.3 0 0 0-.306-.43M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:file-text-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 8v12.993A1 1 0 0 1 20.007 22H3.993A.993.993 0 0 1 3 21.008V2.992C3 2.455 3.449 2 4.002 2h10.995zm-2 1h-5V4H5v16h14zM8 7h3v2H8zm0 4h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:font-size{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154zm-.8-2L8 6.885L5.554 13zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93M19 18a2 2 0 1 0 0-4a2 2 0 0 0 0 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:function-add-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm0 10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm10 0a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm1 6v-4h4v4zM5 9V5h4v4zm0 10v-4h4v4zm11-8V8h-3V6h3V3h2v3h3v2h-3v3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:moon-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:notification-3-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 17h2v2H2v-2h2v-7a8 8 0 1 1 16 0zm-2 0v-7a6 6 0 0 0-12 0v7zm-9 4h6v2H9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:pages-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 8v12h14V8zm0-2h14V4H5zm15 16H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1M7 10h4v4H7zm0 6h10v2H7zm6-5h4v2h-4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:remixicon-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m6.365 6l8.784 9.663l.72-.283c1.685-.661 2.864-2.156 3.092-3.896q-.23.016-.46.016A6.5 6.5 0 0 1 12.077 6zM14 5a4.5 4.5 0 0 0 6.714 3.918c.186.618.286 1.271.286 1.947c0 2.891-1.822 5.365-4.4 6.377L20 21H3V4h11.111A4.5 4.5 0 0 0 14 5m4.5 2.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5M5 7.47V19h10.48z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:shield-keyhole-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 1l8.217 1.826a1 1 0 0 1 .783.976v9.987a6 6 0 0 1-2.672 4.992L12 23l-6.328-4.219A6 6 0 0 1 3 13.79V3.802a1 1 0 0 1 .783-.976zm0 2.049L5 4.604v9.185a4 4 0 0 0 1.781 3.328L12 20.597l5.219-3.48A4 4 0 0 0 19 13.79V4.604zM12 7a2 2 0 0 1 1.001 3.732L13 15h-2v-4.268A2 2 0 0 1 12 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:sun-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-ri\:translate{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M5 15v2a2 2 0 0 0 1.85 1.994L7 19h3v2H7a4 4 0 0 1-4-4v-2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10zm-1 2.885L15.753 16h2.492zM8 2v2h4v7H8v3H6v-3H2V4h4V2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3zM6 6H4v3h2zm4 0H8v3h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-tdesign\:image-error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-typcn\:plus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-uiw\:setting-o{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 20 20' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11.078 0c.294 0 .557.183.656.457l.706 1.957q.379.094.654.192q.3.107.78.33l1.644-.87a.7.7 0 0 1 .832.131l1.446 1.495c.192.199.246.49.138.744l-.771 1.807q.191.352.308.604q.126.273.312.76l1.797.77c.27.115.437.385.419.674l-.132 2.075a.69.69 0 0 1-.46.605l-1.702.605q-.073.352-.154.606a9 9 0 0 1-.298.774l.855 1.89a.68.68 0 0 1-.168.793l-1.626 1.452a.7.7 0 0 1-.796.096l-1.676-.888a7 7 0 0 1-.81.367l-.732.274l-.65 1.8a.7.7 0 0 1-.64.457L9.11 20a.7.7 0 0 1-.669-.447l-.766-2.027a15 15 0 0 1-.776-.29a10 10 0 0 1-.618-.293l-1.9.812a.7.7 0 0 1-.755-.133L2.22 16.303a.68.68 0 0 1-.155-.783l.817-1.78a10 10 0 0 1-.302-.644a14 14 0 0 1-.3-.811L.49 11.74a.69.69 0 0 1-.49-.683l.07-1.921a.69.69 0 0 1 .392-.594L2.34 7.64q.13-.478.23-.748a9 9 0 0 1 .314-.712L2.07 4.46a.68.68 0 0 1 .15-.79l1.404-1.326a.7.7 0 0 1 .75-.138l1.898.784q.314-.209.572-.344q.307-.162.824-.346l.66-1.841A.7.7 0 0 1 8.984 0zm-.49 1.377H9.475L8.87 3.071a.7.7 0 0 1-.434.423c-.436.145-.751.27-.935.367q-.294.155-.74.47a.7.7 0 0 1-.673.074l-1.83-.755l-.713.674l.743 1.57a.68.68 0 0 1-.006.597c-.2.401-.335.697-.403.879a10 10 0 0 0-.27.922a.69.69 0 0 1-.37.45l-1.79.859l-.036.98l1.62.492c.215.065.385.23.456.442q.241.722.38 1.056a10 10 0 0 0 .404.827a.68.68 0 0 1 .019.606l-.751 1.638l.711.668l1.782-.762a.7.7 0 0 1 .603.024q.55.288.809.398c.175.073.51.195.996.361a.7.7 0 0 1 .424.41l.708 1.871l.926-.02l.597-1.654a.7.7 0 0 1 .409-.413l1.037-.388q.394-.145.951-.46a.7.7 0 0 1 .674-.008l1.577.835l.887-.791L15.856 14a.68.68 0 0 1-.001-.56c.182-.407.305-.714.367-.91q.093-.29.185-.825a.69.69 0 0 1 .451-.533l1.648-.585l.072-1.14l-1.62-.694a.7.7 0 0 1-.377-.394a15 15 0 0 0-.378-.944a11 11 0 0 0-.42-.794a.68.68 0 0 1-.035-.606l.725-1.7l-.764-.79l-1.488.788a.7.7 0 0 1-.633.013a11 11 0 0 0-.968-.426a7 7 0 0 0-.857-.23a.7.7 0 0 1-.508-.441zm-.564 4.264c2.435 0 4.41 1.953 4.41 4.361s-1.975 4.36-4.41 4.36s-4.41-1.952-4.41-4.36s1.974-4.36 4.41-4.36m0 1.378c-1.667 0-3.018 1.335-3.018 2.983s1.351 2.984 3.018 2.984s3.017-1.336 3.017-2.984s-1.35-2.983-3.017-2.983'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.flex-center{display:flex;align-items:center;justify-content:center}.flex-col-center{display:flex;flex-direction:column;align-items:center;justify-content:center}[circle~=","],[circle~="{"]{border-radius:min(2666.4vw,15998.4px)}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.absolute\!{position:absolute!important}.fixed{position:fixed}.relative,[relative=""]{position:relative}.sticky{position:sticky}.before\:absolute:before{position:absolute}.after\:absolute:after{position:absolute}.static{position:static}.inset-0{top:0;right:0;bottom:0;left:0}.start-\[100\%\]\!{inset-inline-start:100%!important}.start-\[50\%\]{inset-inline-start:50%}.before\:start-0:before{inset-inline-start:0}.-top-\[var\(--g-navbar-height\)\]\!{top:calc(var(--g-navbar-height) * -1)!important}.bottom-0{bottom:0}.bottom-1{bottom:min(1.067vw,6.4px)}.left-0{left:0}.left-1{left:min(1.067vw,6.4px)}.left-1\/5{left:20%}.right-\[-12px\]{right:max(-3.2vw,-19.2px)}.right-1{right:min(1.067vw,6.4px)}.top--3{top:max(-3.2vw,-19.2px)}.top-0{top:0}.top-1{top:min(1.067vw,6.4px)}.top-1\/5{top:20%}.top-2\/5{top:40%}.before\:top-0:before{top:0}.after\:bottom-0:after{bottom:0}.after\:left-0:after{left:0}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.z-0{z-index:0}.z-1{z-index:1}.z-2{z-index:2}.z-20{z-index:20}.z-2000{z-index:2000}.after\:-z-1:after{z-index:-1}.grid{display:grid}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.m-0,[m-0=""]{margin:0}.m-0\!{margin:0!important}.m-4{margin:min(4.267vw,25.6px)}.m12{margin:min(12.8vw,76.8px)}.m97{margin:min(103.467vw,620.8px)}[ma=""]{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:min(4.267vw,25.6px);margin-right:min(4.267vw,25.6px)}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:min(1.067vw,6.4px);margin-bottom:min(1.067vw,6.4px)}.my-4{margin-top:min(4.267vw,25.6px);margin-bottom:min(4.267vw,25.6px)}.-mt-9xl{margin-top:max(-34.133vw,-204.8px)}.mb-2{margin-bottom:min(2.133vw,12.8px)}.mb-4,[mb=""]{margin-bottom:min(4.267vw,25.6px)}.ml-\[80px\]{margin-left:min(21.333vw,128px)}.ml-1{margin-left:min(1.067vw,6.4px)}.ms-0{margin-inline-start:0}.ms-5{margin-inline-start:min(5.333vw,32px)}.ms-auto{margin-inline-start:auto}.mt-\[80px\]{margin-top:min(21.333vw,128px)}.mt-0{margin-top:0}.mt-1{margin-top:min(1.067vw,6.4px)}.mt-2{margin-top:min(2.133vw,12.8px)}.mt-4,[mt=""]{margin-top:min(4.267vw,25.6px)}.mt-8{margin-top:min(8.533vw,51.2px)}.block,[block=""]{display:block}.before\:block:before{display:block}.inline-block{display:inline-block}.hidden{display:none}.aspect-ratio-\[800\/400\]{aspect-ratio:800/400}[size~="16px"]{width:min(4.267vw,25.6px);height:min(4.267vw,25.6px)}[size~="48"]{width:min(51.2vw,307.2px);height:min(51.2vw,307.2px)}.h-\[1em\]{height:1em}.h-\[400px\]{height:min(106.667vw,640px)}.h-\[60px\]\!{height:min(16vw,96px)!important}.h-\[80px\],.h-20{height:min(21.333vw,128px)}.h-1\.5{height:min(1.6vw,9.6px)}.h-10{height:min(10.667vw,64px)}.h-100px{height:min(26.667vw,160px)}.h-12{height:min(12.8vw,76.8px)}.h-24{height:min(25.6vw,153.6px)}.h-3,.h3{height:min(3.2vw,19.2px)}.h-3\/5{height:60%}.h-4{height:min(4.267vw,25.6px)}.h-40{height:min(42.667vw,256px)}.h-5{height:min(5.333vw,32px)}.h-full{height:100%}.h-vh{height:100vh}.h1{height:min(1.067vw,6.4px)}.max-w-md,[max-w-md=""]{max-width:min(119.467vw,716.8px)}.min-h-full{min-height:100%}.min-h-screen,.min-h-vh{min-height:100vh}.min-w-0{min-width:0}.min-w-30{min-width:min(32vw,192px)}.min-w-50{min-width:min(53.333vw,320px)}.w-\[1em\]{width:1em}.w-\[80px\],.w-20{width:min(21.333vw,128px)}.w-1\.5{width:min(1.6vw,9.6px)}.w-10{width:min(10.667vw,64px)}.w-100px{width:min(26.667vw,160px)}.w-12{width:min(12.8vw,76.8px)}.w-14{width:min(14.933vw,89.6px)}.w-24{width:min(25.6vw,153.6px)}.w-3{width:min(3.2vw,19.2px)}.w-3\/5{width:60%}.w-4{width:min(4.267vw,25.6px)}.w-40{width:min(42.667vw,256px)}.w-6{width:min(6.4vw,38.4px)}.w-60{width:min(64vw,384px)}.w-full,[w-full=""]{width:100%}.w-screen,[w-screen=""]{width:min(100vw,600px)}.before\:h-\[1px\]:before{height:min(.267vw,1.6px)}.before\:h-full:before{height:100%}.before\:w-full:before{width:100%}.after\:h-\[1px\]:after{height:min(.267vw,1.6px)}.after\:h-2:after{height:min(2.133vw,12.8px)}.after\:w-full:after{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-inline,.inline-flex{display:inline-flex}.flex-1,[flex-1=""]{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-col,[flex-col=""]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.table{display:table}.border-collapse{border-collapse:collapse}.-translate-x-\[50\%\]{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-\[50\%\],.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-4{--un-translate-y:min(4.267vw, 25.6px);transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[dir=rtl] .rtl\:translate-x-\[50\%\]{--un-translate-x:50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0\!{--un-rotate-x:0 !important;--un-rotate-y:0 !important;--un-rotate-z:0 !important;--un-rotate:0 !important;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))!important}.rotate-30{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:30deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[rotate~="0"]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[rotate~="180"]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-100{--un-scale-x:1;--un-scale-y:1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-50{--un-scale-x:.5;--un-scale-y:.5;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[scale-50~="default:"]:default{--un-scale-x:.5;--un-scale-y:.5;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes bounce-alt{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,max(-8vw,-48px),0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,max(-4vw,-24px),0)}90%{transform:translate3d(0,max(-1.067vw,-6.4px),0)}}@keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}.animate-bounce-alt,[animate-bounce-alt=""]{animation:bounce-alt 1s linear infinite;transform-origin:center bottom}.before\:animate-ping:before{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.animate-duration-1s,[animate-duration-1s=""]{animation-duration:1s}.animate-count-infinite,[animate-count-infinite=""]{animation-iteration-count:infinite}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.disabled-cursor-not-allowed:disabled{cursor:not-allowed}.select-none,[select-none=""]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.items-end{align-items:flex-end}.items-center,[flex~=items-center]{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end,[flex~=justify-end]{justify-content:flex-end}.justify-center{justify-content:center}.justify-between,[flex~=justify-between]{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-\[2px\]{gap:min(.533vw,3.2px)}.gap-1{gap:min(1.067vw,6.4px)}.gap-2{gap:min(2.133vw,12.8px)}.gap-3{gap:min(3.2vw,19.2px)}.gap-4{gap:min(4.267vw,25.6px)}.gap-8{gap:min(8.533vw,51.2px)}.gap-x-1\.5{-moz-column-gap:min(1.6vw,9.6px);column-gap:min(1.6vw,9.6px)}.space-x-2>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(min(2.133vw,12.8px) * calc(1 - var(--un-space-x-reverse)));margin-right:calc(min(2.133vw,12.8px) * var(--un-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(min(4.267vw,25.6px) * calc(1 - var(--un-space-x-reverse)));margin-right:calc(min(4.267vw,25.6px) * var(--un-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(min(1.067vw,6.4px) * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(min(1.067vw,6.4px) * var(--un-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(min(2.133vw,12.8px) * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(min(2.133vw,12.8px) * var(--un-space-y-reverse))}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden{overflow:hidden}.of-y-hidden,[of-y-hidden=""]{overflow-y:hidden}.overflow-y-auto,[overflow-y-auto=""]{overflow-y:auto}.overscroll-none{overscroll-behavior:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-break-spaces{white-space:break-spaces}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-keep{word-break:keep-all}.b,.b-1,.border{border-width:min(.267vw,1.6px)}.border-0,.border-size-0{border-width:0px}.border-2{border-width:min(.533vw,3.2px)}.b-r-1,.border-r-1px{border-right-width:min(.267vw,1.6px)}.border-b,.border-b-1,.border-b-1px,[border-b~="~"]{border-bottom-width:min(.267vw,1.6px)}.border-t,[border-t~="~"]{border-top-width:min(.267vw,1.6px)}.b-\[\#d4af37\]{--un-border-opacity:1;border-color:rgb(212 175 55 / var(--un-border-opacity))}.border-transparent{border-color:transparent}.b-r-\[var\(--g-bg\)\]{border-right-color:var(--g-bg)}.border-b-\[var\(--g-bg\)\]{border-bottom-color:var(--g-bg)}.border-b-\#ddd{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(221 221 221 / var(--un-border-bottom-opacity))}.border-r-\#ddd{--un-border-opacity:1;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(221 221 221 / var(--un-border-right-opacity))}.dark .dark\:border-b-\#333{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(51 51 51 / var(--un-border-bottom-opacity))}.dark .dark\:border-r-\#333{--un-border-opacity:1;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(51 51 51 / var(--un-border-right-opacity))}[border-b~="stone/15"]{border-bottom-color:#a8a29e26}[border-t~="stone/15"]{border-top-color:#a8a29e26}.rounded{border-radius:min(1.067vw,6.4px)}.rounded-1\/2{border-radius:50%}.rounded-2,.rounded-lg{border-radius:min(2.133vw,12.8px)}.rounded-full{border-radius:min(2666.4vw,15998.4px)}.rounded-md{border-radius:min(1.6vw,9.6px)}.rounded-xl{border-radius:min(3.2vw,19.2px)}.before\:rounded-full:before{border-radius:min(2666.4vw,15998.4px)}.b-solid{border-style:solid}.b-r-solid,.border-r-solid{border-right-style:solid}.border-b-none{border-bottom-style:none}.border-b-solid,[border-b~=solid]{border-bottom-style:solid}.border-r-none{border-right-style:none}[border-t~=solid]{border-top-style:solid}.last\:border-b-none:last-child{border-bottom-style:none}.bg-\[\#fae9eb\]{--un-bg-opacity:1;background-color:rgb(250 233 235 / var(--un-bg-opacity))}.bg-\[var\(--g-container-bg\)\]{background-color:var(--g-container-bg)}.bg-\[var\(--g-navbar-bg\)\]{background-color:var(--g-navbar-bg)}.bg-\[var\(--g-tabbar-bg\)\]{background-color:var(--g-tabbar-bg)}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity))}.bg-dark,.dark .dark-bg-dark{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.bg-green\/20{background-color:#4ade8033}.bg-inherit{background-color:inherit}.bg-light,.dark .dark-bg-light{--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-rose\/20{background-color:#fb718533}.bg-stone-1{--un-bg-opacity:1;background-color:rgb(245 245 244 / var(--un-bg-opacity))}.bg-stone-2{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.bg-stone-2\/75{background-color:#e7e5e4bf}.bg-stone-3{--un-bg-opacity:1;background-color:rgb(214 211 209 / var(--un-bg-opacity))}.bg-ui-primary{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity))}.bg-white,[bg-white=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark-bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.dark .dark-bg-dark-9{--un-bg-opacity:1;background-color:rgb(15 15 15 / var(--un-bg-opacity))}.dark .dark-bg-stone-7{--un-bg-opacity:1;background-color:rgb(68 64 60 / var(--un-bg-opacity))}.dark .dark-bg-stone-8,.dark [dark-bg-stone-8=""]{--un-bg-opacity:1;background-color:rgb(41 37 36 / var(--un-bg-opacity))}.dark .dark-bg-stone-8\/75{background-color:#292524bf}.dark .dark-bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark-hover-not-disabled-bg-ui-primary\/10:not(:disabled):hover{background-color:rgb(var(--ui-primary) / .1)}.hover-bg-ui-primary\/75:hover{background-color:rgb(var(--ui-primary) / .75)}.hover-not-disabled-bg-ui-primary\/10:not(:disabled):hover{background-color:rgb(var(--ui-primary) / .1)}.active\:bg-stone-1:active{--un-bg-opacity:1;background-color:rgb(245 245 244 / var(--un-bg-opacity))}.dark .dark-active\:bg-stone-9:active{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.disabled-bg-ui-primary\/90:disabled{background-color:rgb(var(--ui-primary) / .9)}.before\:bg-stone-2:before{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.before\:bg-ui-primary:before{--un-bg-opacity:1;background-color:rgb(var(--ui-primary) / var(--un-bg-opacity))}.dark .before\:dark-bg-stone-6:before{--un-bg-opacity:1;background-color:rgb(87 83 78 / var(--un-bg-opacity))}.after\:bg-stone-2:after{--un-bg-opacity:1;background-color:rgb(231 229 228 / var(--un-bg-opacity))}.after\:bg-yellow:after{--un-bg-opacity:1;background-color:rgb(250 204 21 / var(--un-bg-opacity))}.dark .after\:dark-bg-stone-6:after{--un-bg-opacity:1;background-color:rgb(87 83 78 / var(--un-bg-opacity))}.dark .after\:dark-bg-yellow-9:after{--un-bg-opacity:1;background-color:rgb(113 63 18 / var(--un-bg-opacity))}.bg-gradient-\[120deg\,\#AE3FF5_30\%\,\#6EC0F9\]{--un-gradient:120deg,#AE3FF5 30%,#6EC0F9}.from-transparent{--un-gradient-from-position:0%;--un-gradient-from:transparent var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(255 255 255 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to)}.dark .dark-to-\[\#ffd70030\]{--un-gradient-to-position:100%;--un-gradient-to:rgb(255 215 0 / var(--un-to-opacity, .19)) var(--un-gradient-to-position)}.to-\[\#ffd700\]{--un-gradient-to-position:100%;--un-gradient-to:rgb(255 215 0 / var(--un-to-opacity, 1)) var(--un-gradient-to-position)}.to-\[var\(--g-container-bg\)\]{--un-gradient-to-position:100%;--un-gradient-to:var(--g-container-bg) var(--un-gradient-to-position)}.bg-gradient-linear{background-image:linear-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))}.bg-gradient-to-b{--un-gradient-shape:to bottom;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-gradient-to-r{--un-gradient-shape:to right;--un-gradient:var(--un-gradient-shape), var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-cover{background-size:cover}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}[fill-opacity~="0.53"]{--un-fill-opacity:.0053}[fill-opacity~="1"]{--un-fill-opacity:.01}[stroke-width~="0"]{stroke-width:0px}[stroke-width~="14"]{stroke-width:min(3.733vw,22.4px)}[stroke-width~="2"]{stroke-width:min(.533vw,3.2px)}[stroke-width~="22"]{stroke-width:min(5.867vw,35.2px)}[stroke~="#00a19d"]{--un-stroke-opacity:1;stroke:rgb(0 161 157 / var(--un-stroke-opacity))}[stroke~="#2c2891"]{--un-stroke-opacity:1;stroke:rgb(44 40 145 / var(--un-stroke-opacity))}[stroke~="#ff5c58"]{--un-stroke-opacity:1;stroke:rgb(255 92 88 / var(--un-stroke-opacity))}[stroke~="#ffa6d5"]{--un-stroke-opacity:1;stroke:rgb(255 166 213 / var(--un-stroke-opacity))}[stroke~="#ffbd9b"]{--un-stroke-opacity:1;stroke:rgb(255 189 155 / var(--un-stroke-opacity))}[stroke~=none]{stroke:none}.p-0{padding:0}.p-1{padding:min(1.067vw,6.4px)}.p-2{padding:min(2.133vw,12.8px)}.p-3{padding:min(3.2vw,19.2px)}.p-4,[p-4=""]{padding:min(4.267vw,25.6px)}.px,.px-4,[px-4=""],[px=""]{padding-left:min(4.267vw,25.6px);padding-right:min(4.267vw,25.6px)}.px-0\!{padding-left:0!important;padding-right:0!important}.px-1,[px-1=""]{padding-left:min(1.067vw,6.4px);padding-right:min(1.067vw,6.4px)}.px-1\.5{padding-left:min(1.6vw,9.6px);padding-right:min(1.6vw,9.6px)}.px-2{padding-left:min(2.133vw,12.8px);padding-right:min(2.133vw,12.8px)}.px-2\.5{padding-left:min(2.667vw,16px);padding-right:min(2.667vw,16px)}.px-3,[px-3=""]{padding-left:min(3.2vw,19.2px);padding-right:min(3.2vw,19.2px)}.py-1\.5{padding-top:min(1.6vw,9.6px);padding-bottom:min(1.6vw,9.6px)}.py-2,[py-2=""]{padding-top:min(2.133vw,12.8px);padding-bottom:min(2.133vw,12.8px)}.py-3,[py-3=""]{padding-top:min(3.2vw,19.2px);padding-bottom:min(3.2vw,19.2px)}.py-4{padding-top:min(4.267vw,25.6px);padding-bottom:min(4.267vw,25.6px)}.pb-2{padding-bottom:min(2.133vw,12.8px)}.pb-4{padding-bottom:min(4.267vw,25.6px)}.pe-2{padding-inline-end:min(2.133vw,12.8px)}.ps-2{padding-inline-start:min(2.133vw,12.8px)}.pt-10{padding-top:min(10.667vw,64px)}.pie{padding-inline-end:min(4.267vw,25.6px)}.text-center,[text-center=""]{text-align:center}.text-left{text-align:left}.text-start,[text-start=""]{text-align:start}.-indent-9999{text-indent:max(-10665.6vw,-63993.6px)}.vertical-middle{vertical-align:middle}.text-\[300px\]{font-size:min(80vw,480px)}.text-20{font-size:min(21.333vw,128px)}.text-2xl{font-size:min(6.4vw,38.4px);line-height:min(8.533vw,51.2px)}.text-3xl{font-size:min(8vw,48px);line-height:min(9.6vw,57.6px)}.text-4{font-size:min(4.267vw,25.6px)}.text-4xl{font-size:min(9.6vw,57.6px);line-height:min(10.667vw,64px)}.text-5xl,[text-5xl=""]{font-size:min(12.8vw,76.8px);line-height:1}.text-6,[text-6=""]{font-size:min(6.4vw,38.4px)}.text-6xl{font-size:min(16vw,96px);line-height:1}.text-8{font-size:min(8.533vw,51.2px)}.text-base{font-size:min(4.267vw,25.6px);line-height:min(6.4vw,38.4px)}.text-lg,[text-lg=""]{font-size:min(4.8vw,28.8px);line-height:min(7.467vw,44.8px)}.text-sm{font-size:min(3.733vw,22.4px);line-height:min(5.333vw,32px)}.text-sm\/6{font-size:min(3.733vw,22.4px);line-height:min(6.4vw,38.4px)}.text-xl{font-size:min(5.333vw,32px);line-height:min(7.467vw,44.8px)}.text-xs{font-size:min(3.2vw,19.2px);line-height:min(4.267vw,25.6px)}.dark .dark-text-dark,.text-dark,[text-dark=""]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.dark .dark-text-gray-3{--un-text-opacity:1;color:rgb(209 213 219 / var(--un-text-opacity))}.c-gray,.dark .dark-text-gray-4,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .dark-text-light\/80{color:#f6f6f6cc}.dark .dark-text-stone-3{--un-text-opacity:1;color:rgb(214 211 209 / var(--un-text-opacity))}.dark .dark-text-stone-6{--un-text-opacity:1;color:rgb(87 83 78 / var(--un-text-opacity))}.c-white,.dark .dark-text-white,.dark [dark-text-white=""],.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-\[\#4580dd\]{--un-text-opacity:1;color:rgb(69 128 221 / var(--un-text-opacity))}.text-\[\#53b7ad\]{--un-text-opacity:1;color:rgb(83 183 173 / var(--un-text-opacity))}.text-\[\#6ecc84\]{--un-text-opacity:1;color:rgb(110 204 132 / var(--un-text-opacity))}.text-\[var\(--g-navbar-color\)\]{color:var(--g-navbar-color)}.text-\[var\(--g-tabbar-active-color\)\]\!{color:var(--g-tabbar-active-color)!important}.text-\[var\(--g-tabbar-color\)\]{color:var(--g-tabbar-color)}.text-dark\/80{color:#222c}.text-gray-5{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-6{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.text-gray-7{--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.text-light{--un-text-opacity:1;color:rgb(246 246 246 / var(--un-text-opacity))}.c-stone,.text-stone-4{--un-text-opacity:1;color:rgb(168 162 158 / var(--un-text-opacity))}.text-stone-5,[text-stone-5=""]{--un-text-opacity:1;color:rgb(120 113 108 / var(--un-text-opacity))}.text-stone-7{--un-text-opacity:1;color:rgb(68 64 60 / var(--un-text-opacity))}.text-transparent{color:transparent}.text-ui-primary{--un-text-opacity:1;color:rgb(var(--ui-primary) / var(--un-text-opacity))}.text-ui-primary\/30{color:rgb(var(--ui-primary) / .3)}.text-ui-text{--un-text-opacity:1;color:rgb(var(--ui-text) / var(--un-text-opacity))}.c-\[\#d4af37\]{--un-text-opacity:1;color:rgb(212 175 55 / var(--un-text-opacity))}.c-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.c-green-6{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.c-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.c-rose{--un-text-opacity:1;color:rgb(251 113 133 / var(--un-text-opacity))}.c-stone\/50{color:#a8a29e80}.dark .dark-c-\[\#d4af3730\]{--un-text-opacity:.19;color:rgb(212 175 55 / var(--un-text-opacity))}.font-500,.font-medium{font-weight:500}.font-bold{font-weight:700}[fw100=""]{font-weight:100}.leading-\[1em\]{line-height:1em}.leading-tight{line-height:1.25}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.line-through{text-decoration-line:line-through}.no-underline{text-decoration:none}.text-shadow{--un-text-shadow:0 0 min(.267vw, 1.6px) var(--un-text-shadow-color, rgb(0 0 0 / .2)),0 0 min(.267vw, 1.6px) var(--un-text-shadow-color, rgb(1 0 5 / .1));text-shadow:var(--un-text-shadow)}.text-shadow-color-dark{--un-text-shadow-opacity:1;--un-text-shadow-color:rgb(34 34 34 / var(--un-text-shadow-opacity)) }.op-30{opacity:.3}.opacity-0,[opacity-0=""]{opacity:0}.opacity-100,[opacity-100=""]{opacity:1}.opacity-50{opacity:.5}[default~=opacity-0]:default{opacity:0}[default~=opacity-100]:default{opacity:1}.hover-op-100:hover,.hover-opacity-100:hover{opacity:1}.disabled-opacity-50:disabled{opacity:.5}.disabled-opacity-75:disabled{opacity:.75}.mix-blend-difference{mix-blend-mode:difference}.shadow{--un-shadow:var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.8vw, 4.8px) 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.533vw, 3.2px) max(-.267vw, -1.6px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 min(2.667vw, 16px) min(4vw, 24px) max(-.8vw, -4.8px) var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(1.067vw, 6.4px) min(1.6vw, 9.6px) max(-1.067vw, -6.4px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-sm{--un-shadow:var(--un-shadow-inset) 0 min(.267vw, 1.6px) min(.533vw, 3.2px) 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 min(5.333vw, 32px) min(6.667vw, 40px) max(-1.333vw, -8px) var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 min(2.133vw, 12.8px) min(2.667vw, 16px) max(-1.6vw, -9.6px) var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-outline-0:focus-visible{outline-width:0px}.outline,[outline=""]{outline-style:solid}.focus-outline-none:focus{outline:min(.533vw,3.2px) solid transparent;outline-offset:min(.533vw,3.2px)}[focus-outline-none=""]:focus{outline:min(.533vw,3.2px) solid transparent;outline-offset:min(.533vw,3.2px)}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:min(.267vw, 1.6px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-2{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-ring-2:focus{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-ring-2:focus-visible{--un-ring-width:min(.533vw, 3.2px);--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible-ring-offset-2:focus-visible{--un-ring-offset-width:min(.533vw, 3.2px)}.dark .dark-ring-dark{--un-ring-opacity:1;--un-ring-color:rgb(34 34 34 / var(--un-ring-opacity)) }.dark .dark-ring-stone-7{--un-ring-opacity:1;--un-ring-color:rgb(68 64 60 / var(--un-ring-opacity)) }.dark .dark-ring-stone-8{--un-ring-opacity:1;--un-ring-color:rgb(41 37 36 / var(--un-ring-opacity)) }.ring-light{--un-ring-opacity:1;--un-ring-color:rgb(246 246 246 / var(--un-ring-opacity)) }.ring-stone-2{--un-ring-opacity:1;--un-ring-color:rgb(231 229 228 / var(--un-ring-opacity)) }.ring-stone-3{--un-ring-opacity:1;--un-ring-color:rgb(214 211 209 / var(--un-ring-opacity)) }.ring-ui-primary{--un-ring-opacity:1;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) }.ring-ui-primary\!{--un-ring-opacity:1 !important;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) !important}.focus-ring-ui-primary:focus{--un-ring-opacity:1;--un-ring-color:rgb(var(--ui-primary) / var(--un-ring-opacity)) }.dark .dark-focus-visible-ring-offset-gray-900:focus-visible{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(17 24 39 / var(--un-ring-offset-opacity)) }.focus-visible-ring-offset-white:focus-visible{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(255 255 255 / var(--un-ring-offset-opacity)) }.ring-inset{--un-ring-inset:inset}.focus-visible-ring-inset:focus-visible{--un-ring-inset:inset}.backdrop-blur-sm{--un-backdrop-blur:blur(min(1.067vw, 6.4px));-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all,[transition-all=""]{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all-500{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s}.transition-background-color-300{transition-property:background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-border-color-300{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-margin{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[all\:transition-400=""] *{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.4s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.delay-150{transition-delay:.15s}.ease-in,[ease-in=""]{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out,[ease-out=""]{transition-timing-function:cubic-bezier(0,0,.2,1)}[default~=ease-in]:default{transition-timing-function:cubic-bezier(.4,0,1,1)}[default~=ease-out]:default{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\:content-\[\'\'\]:after{content:""}.content-empty{content:""}.before\:content-empty:before{content:""}.after\:content-empty:after{content:""}.dark .dark-placeholder-stone-5::-moz-placeholder{--un-placeholder-opacity:1;color:rgb(120 113 108 / var(--un-placeholder-opacity))}.dark .dark-placeholder-stone-5::placeholder{--un-placeholder-opacity:1;color:rgb(120 113 108 / var(--un-placeholder-opacity))}.placeholder-stone-4::-moz-placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158 / var(--un-placeholder-opacity))}.placeholder-stone-4::placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158 / var(--un-placeholder-opacity))}.mb\+safe-\[var\(--g-tabbar-height\)\]{margin-bottom:calc(env(safe-area-inset-bottom) + var(--g-tabbar-height))}.mt-safe,[mt-safe~="_unref(settingsStore).settings.navbar.mode)"],[mt-safe~="??"],[mt-safe~="(_ctx.navbarMode"],[mt-safe~="==="]{margin-top:env(safe-area-inset-top,0)}.mt\+safe-\[var\(--g-navbar-height\)\]{margin-top:calc(env(safe-area-inset-top) + var(--g-navbar-height))}.pb-safe,[pb-safe=""]{padding-bottom:env(safe-area-inset-bottom,0)}.pt-safe{padding-top:env(safe-area-inset-top,0)}.h\+safe-b-\[calc\(var\(--g-tabbar-height\)\)\]{height:calc(env(safe-area-inset-bottom) + calc(var(--g-tabbar-height)))}.h\+safe-t-\[var\(--g-navbar-height\)\]{height:calc(env(safe-area-inset-top) + var(--g-navbar-height))}.bottom\+safe-\[calc\(var\(--g-tabbar-height\)\+16px\)\]\!{bottom:calc(env(safe-area-inset-bottom) + calc(var(--g-tabbar-height) + min(4.267vw,25.6px)))!important}@supports (height:100dvh){.supports-\[\(height\:100dvh\)\]\:h-dvh{height:100dvh}}@supports (min-height:100dvh){.supports-\[\(min-height\:100dvh\)\]\:min-h-dvh{min-height:100dvh}}@media (min-width: 1024px){.lg-my-8{margin-top:32px;margin-bottom:32px}.lg-max-w-lg{max-width:512px}.lg-translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-scale-100{--un-scale-x:1;--un-scale-y:1;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-scale-95{--un-scale-x:.95;--un-scale-y:.95;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.lg-items-center{align-items:center}}:root{--g-navbar-height: min(13.333vw, 80px);--g-tabbar-height: min(16vw, 96px);color-scheme:light}:root.dark{color-scheme:dark}html{overscroll-behavior:none}body{box-sizing:border-box;margin:0}*{box-sizing:inherit}#app{overflow:hidden auto;font-size:min(3.733vw,22.4px);background-color:var(--g-bg);max-width:600px!important;margin-left:auto!important;margin-right:auto!important;box-shadow:0 0 0 1px #8888881f;min-height:100vh;height:auto!important}.medium-zoom-overlay,.medium-zoom-image--opened{z-index:1100}@supports (min-height: 100dvh){#app{min-height:100dvh}} diff --git a/assets/index-DfL3qP8A.css.br b/assets/index-DfL3qP8A.css.br new file mode 100644 index 00000000..e187f098 Binary files /dev/null and b/assets/index-DfL3qP8A.css.br differ diff --git a/assets/index-DfL3qP8A.css.gz b/assets/index-DfL3qP8A.css.gz new file mode 100644 index 00000000..475bf1c0 Binary files /dev/null and b/assets/index-DfL3qP8A.css.gz differ diff --git a/assets/index-DpnASd8N.js b/assets/index-DpnASd8N.js new file mode 100644 index 00000000..49b2adca --- /dev/null +++ b/assets/index-DpnASd8N.js @@ -0,0 +1,82 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BSEnowPx.js","./index-Cwg3TLNR.js","./index-COQOm5wk.css","./logo-DvfkIia2.js","./index-N5lckUVv.js","./basic-C5i5Q2mp.js","./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js","./built-in-C00q0YiL.js","./built-in-BZM_vgpN.css","./composite-BtGdoNGI.js","./pagemain-demo-CxlVjjNx.js","./sparkline-demo-B0gveUBF.js","./sparkline-demo-DEUWp43m.css","./trend-demo-CArUNWpa.js","./errorLog-DNF13oPM.js","./font-C1zKEPi_.js","./font-c1C_uxbp.css","./i18n-CCeXPdyq.js","./icon-DC97ELbi.js","./keepAlive-LOsMjHf1.js","./scroll-BSMG2auX.js","./scroll2-COIRDF_1.js","./title-DiAaza3u.js","./unocss-IuzecXKj.js","./watermark-CTGHlhS0.js","./zoomable-DZwxrOOZ.js","./custom-area-CYTopuMS.js","./custom-navbar-gMgypht4.js","./custom-navbar-CRCCDv9B.css","./custom-title-Cbe_yyXz.js","./default-C6BSQCLW.js","./mode-e-w6n-AW.js","./none-CQ5_a5ku.js","./preset-CR-N72Ln.js","./title-no-center-BUzBlr6i.js","./loadmore-7vCrxIa-.js","./productlist-CyYSlhJ0.js","./productlist-hvN4cIGx.css","./schedule-SSIWYKoH.js","./schedule-Cu8efIXb.css","./index-BvzAowwi.js","./function-call-CCLiThI7.js","./test-BbJOcG75.js","./animation-DjlLcNUL.js","./animation-z3KiDYMe.css","./echarts-DqZtRDc9.js","./esign-BYcxLvjR.js","./esign-L8gvZECO.css","./qrcode-CkCW6XaE.js","./swiper-BzuCNneQ.js","./swiper-cYx4GvkC.css","./vchart-C-lrzy8e.js","./badge-DSB-TR_K.js","./custom-area-DRoNMEDd.js","./default-BOtOfq5q.js","./multi-DEX-W5yZ.js","./login-C1NrYxae.js","./login-CqZTMcSL.css","./index-B2HCp-RK.js"])))=>i.map(i=>d[i]); +(function(){const ne=document.createElement("link").relList;if(ne&&ne.supports&&ne.supports("modulepreload"))return;for(const ie of document.querySelectorAll('link[rel="modulepreload"]'))ae(ie);new MutationObserver(ie=>{for(const se of ie)if(se.type==="childList")for(const de of se.addedNodes)de.tagName==="LINK"&&de.rel==="modulepreload"&&ae(de)}).observe(document,{childList:!0,subtree:!0});function oe(ie){const se={};return ie.integrity&&(se.integrity=ie.integrity),ie.referrerPolicy&&(se.referrerPolicy=ie.referrerPolicy),ie.crossOrigin==="use-credentials"?se.credentials="include":ie.crossOrigin==="anonymous"?se.credentials="omit":se.credentials="same-origin",se}function ae(ie){if(ie.ep)return;ie.ep=!0;const se=oe(ie);fetch(ie.href,se)}})();window.__VITE__PLUGIN__FAKE__SERVER__={meta:{name:"vite-plugin-fake-server",version:"2.1.1",type:"module",license:"MIT",author:"Condor Hero",description:"A fake server plugin for Vite.",exports:{".":{require:"./dist/index.cjs",import:"./dist/index.mjs"},"./client":{require:"./dist/client.cjs",import:"./dist/client.mjs"}},main:"dist/index.cjs",module:"dist/index.mjs",types:"dist/index.d.cts",typesVersions:{"*":{"*":["./dist/*","./dist/index.d.ts"]}},files:["dist"],keywords:["vite-plugin-fake-server","vite-plugin-fake","vite-plugin-faker","vite-plugin-mock-server","vite-plugin-mock","faker-server"],repository:{type:"git",url:"git+https://github.com/condorheroblog/vite-plugin-fake-server.git",directory:"packages/vite-plugin-fake-server"},bugs:{url:"https://github.com/condorheroblog/vite-plugin-fake-server/issues"},homepage:"https://github.com/condorheroblog/vite-plugin-fake-server/blob/main/README.md",scripts:{prepublishOnly:"nr build",test:"vitest",dev:"esno ./src/index.ts",build:"rimraf dist && rollup -c","build:watch":"rimraf dist && rollup -c -w",typecheck:"tsc --noEmit"},dependencies:{"bundle-import":"^0.0.1",chokidar:"^3.5.3","fast-glob":"^3.3.2","path-to-regexp":"^6.2.1",picocolors:"^1.0.0"},devDependencies:{vite:"^5.0.11"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}},vitePluginFakeServerOptions:{include:"src/mock",exclude:[],infixName:!1,extensions:["ts","js","mjs","cjs","cts","mts"],enableProd:!0,enableDev:!0,watch:!0,logger:!1,basename:"",headers:{},build:!1,http2:!0}};function defineFakeRoute(ee){return ee}const allList=[];for(let ee=0;ee<50;ee++)allList.push(ee+1);const page=[{url:"/mock/page/loadmore",method:"get",response:({query:ee})=>{const{from:ne,limit:oe}=ee;return{error:"",status:1,data:{list:allList.filter((ie,se)=>se>=~~ne&&se<~~ne+~~oe),total:allList.length}}}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:page},Symbol.toStringTag,{value:"Module"}));var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ee){return ee&&ee.__esModule&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee}var mock={exports:{}};(function(module,exports){(function(ne,oe){module.exports=oe()})(commonjsGlobal,function(){return function(ee){var ne={};function oe(ae){if(ne[ae])return ne[ae].exports;var ie=ne[ae]={exports:{},id:ae,loaded:!1};return ee[ae].call(ie.exports,ie,ie.exports,oe),ie.loaded=!0,ie.exports}return oe.m=ee,oe.c=ne,oe.p="",oe(0)}([function(ee,ne,oe){var ae=oe(1),ie=oe(3),se=oe(5),de=oe(20),fe=oe(23),ve=oe(25),be;typeof window<"u"&&(be=oe(27));/*! + Mock - 模拟请求 & 模拟数据 + https://github.com/nuysoft/Mock + 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com +*/var ye={Handler:ae,Random:se,Util:ie,XHR:be,RE:de,toJSONSchema:fe,valid:ve,heredoc:ie.heredoc,setup:function($e){return be.setup($e)},_mocked:{}};ye.version="1.0.1-beta3",be&&(be.Mock=ye),ye.mock=function($e,_e,Ee){return arguments.length===1?ae.gen($e):(arguments.length===2&&(Ee=_e,_e=void 0),be&&(window.XMLHttpRequest=be),ye._mocked[$e+(_e||"")]={rurl:$e,rtype:_e,template:Ee},ye)},ee.exports=ye},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(ee,ne,oe){ne=ne==null?"":ne+"",oe=oe||{},oe={path:oe.path||[Constant.GUID],templatePath:oe.templatePath||[Constant.GUID++],currentContext:oe.currentContext,templateCurrentContext:oe.templateCurrentContext||ee,root:oe.root||oe.currentContext,templateRoot:oe.templateRoot||oe.templateCurrentContext||ee};var ae=Parser.parse(ne),ie=Util.type(ee),se;return Handler[ie]?(se=Handler[ie]({type:ie,template:ee,name:ne,parsedName:ne&&ne.replace(Constant.RE_KEY,"$1"),rule:ae,context:oe}),oe.root||(oe.root=se),se):ee},Handler.extend({array:function(ee){var ne=[],oe,ae;if(ee.template.length===0)return ne;if(ee.rule.parameters)if(ee.rule.min===1&&ee.rule.max===void 0)ee.context.path.push(ee.name),ee.context.templatePath.push(ee.name),ne=Random.pick(Handler.gen(ee.template,void 0,{path:ee.context.path,templatePath:ee.context.templatePath,currentContext:ne,templateCurrentContext:ee.template,root:ee.context.root||ne,templateRoot:ee.context.templateRoot||ee.template})),ee.context.path.pop(),ee.context.templatePath.pop();else if(ee.rule.parameters[2])ee.template.__order_index=ee.template.__order_index||0,ee.context.path.push(ee.name),ee.context.templatePath.push(ee.name),ne=Handler.gen(ee.template,void 0,{path:ee.context.path,templatePath:ee.context.templatePath,currentContext:ne,templateCurrentContext:ee.template,root:ee.context.root||ne,templateRoot:ee.context.templateRoot||ee.template})[ee.template.__order_index%ee.template.length],ee.template.__order_index+=+ee.rule.parameters[2],ee.context.path.pop(),ee.context.templatePath.pop();else for(oe=0;oe1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(ie=ne.context.path.slice(0),ie.pop(),ie=this.normalizePath(ie.concat(ae)));try{ee=ae[ae.length-1];for(var se=ne.context.root,de=ne.context.templateRoot,fe=1;fe1/(oe+ae)*oe?!ie:ie):Math.random()>=.5},bool:function(oe,ae,ie){return this.boolean(oe,ae,ie)},natural:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):0,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},integer:function(oe,ae){return oe=typeof oe<"u"?parseInt(oe,10):-9007199254740992,ae=typeof ae<"u"?parseInt(ae,10):9007199254740992,Math.round(Math.random()*(ae-oe))+oe},int:function(oe,ae){return this.integer(oe,ae)},float:function(oe,ae,ie,se){ie=ie===void 0?0:ie,ie=Math.max(Math.min(ie,17),0),se=se===void 0?17:se,se=Math.max(Math.min(se,17),0);for(var de=this.integer(oe,ae)+".",fe=0,ve=this.natural(ie,se);fe1&&be--,6*be<1?$e=fe+(ve-fe)*6*be:2*be<1?$e=ve:3*be<2?$e=fe+(ve-fe)*(2/3-be)*6:$e=fe,ye[_e]=$e*255;return ye},hsl2hsv:function(ae){var ie=ae[0],se=ae[1]/100,de=ae[2]/100,fe,ve;return de*=2,se*=de<=1?de:2-de,ve=(de+se)/2,fe=2*se/(de+se),[ie,fe*100,ve*100]},hsv2rgb:function(ae){var ie=ae[0]/60,se=ae[1]/100,de=ae[2]/100,fe=Math.floor(ie)%6,ve=ie-Math.floor(ie),be=255*de*(1-se),ye=255*de*(1-se*ve),$e=255*de*(1-se*(1-ve));switch(de=255*de,fe){case 0:return[de,$e,be];case 1:return[ye,de,be];case 2:return[be,de,$e];case 3:return[be,ye,de];case 4:return[$e,be,de];case 5:return[de,be,ye]}},hsv2hsl:function(ae){var ie=ae[0],se=ae[1]/100,de=ae[2]/100,fe,ve;return ve=(2-se)*de,fe=se*de,fe/=ve<=1?ve:2-ve,ve/=2,[ie,fe*100,ve*100]},rgb2hex:function(oe,ae,ie){return"#"+((256+oe<<8|ae)<<8|ie).toString(16).slice(1)},hex2rgb:function(oe){return oe="0x"+oe.slice(1).replace(oe.length>4?oe:/./g,"$&$&")|0,[oe>>16,oe>>8&255,oe&255]}}},function(ee,ne){ee.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(ee,ne,oe){var ae=oe(6),ie=oe(14);function se(de,fe,ve,be){return ve===void 0?ae.natural(de,fe):be===void 0?ve:ae.natural(parseInt(ve,10),parseInt(be,10))}ee.exports={paragraph:function(de,fe){for(var ve=se(3,7,de,fe),be=[],ye=0;ye1&&(se=[].slice.call(arguments,0));var de=ie.options,fe=de.context.templatePath.join("."),ve=ie.cache[fe]=ie.cache[fe]||{index:0,array:se};return ve.array[ve.index++%ve.array.length]}}},function(ee,ne){ee.exports={first:function(){var oe=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(oe)},last:function(){var oe=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(oe)},name:function(oe){return this.first()+" "+(oe?this.first()+" ":"")+this.last()},cfirst:function(){var oe="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(oe)},clast:function(){var oe="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(oe)},cname:function(){return this.cfirst()+this.clast()}}},function(ee,ne){ee.exports={url:function(oe,ae){return(oe||this.protocol())+"://"+(ae||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(oe){return this.word()+"."+(oe||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(oe){return this.character("lower")+"."+this.word()+"@"+(oe||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(ee,ne,oe){var ae=oe(18),ie=["东北","华北","华东","华中","华南","西南","西北"];ee.exports={region:function(){return this.pick(ie)},province:function(){return this.pick(ae).name},city:function(se){var de=this.pick(ae),fe=this.pick(de.children);return se?[de.name,fe.name].join(" "):fe.name},county:function(se){var de=this.pick(ae),fe=this.pick(de.children),ve=this.pick(fe.children)||{name:"-"};return se?[de.name,fe.name,ve.name].join(" "):ve.name},zip:function(se){for(var de="",fe=0;fe<(se||6);fe++)de+=this.natural(0,9);return de}}},function(ee,ne){var oe={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function ae(se){for(var de={},fe=0,ve;fewn;wn++)kn=Me.charAt(wn),kn===` +`?(Jt.seenCR||Jt.line++,Jt.column=1,Jt.seenCR=!1):kn==="\r"||kn==="\u2028"||kn==="\u2029"?(Jt.line++,Jt.column=1,Jt.seenCR=!0):(Jt.column++,Jt.seenCR=!1)}return Nn!==De&&(Nn>De&&(Nn=0,Kn={line:1,column:1,seenCR:!1}),ze(Kn,Nn,De),Nn=De),Kn}function Be(De){Fn>Et||(Et>Fn&&(Fn=Et,Hn=[]),Hn.push(De))}function He(De){var ze=0;for(De.sort();zeEt?(Jt=Me.charAt(Et),Et++):(Jt=null,rn===0&&Be(yr)),Jt!==null?(cn=De,ze=Qo(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)):(Et=De,De=ln),De}function _n(){var De,ze,Jt;return De=Et,Me.charCodeAt(Et)===92?(ze=$r,Et++):(ze=null,rn===0&&Be(_r)),ze!==null?(ea.test(Me.charAt(Et))?(Jt=Me.charAt(Et),Et++):(Jt=null,rn===0&&Be(ta)),Jt!==null?(cn=De,ze=na(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)):(Et=De,De=ln),De}function yn(){var De,ze,Jt,on;if(De=Et,Me.substr(Et,2)===Vn?(ze=Vn,Et+=2):(ze=null,rn===0&&Be(Sr)),ze!==null){if(Jt=[],wr.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Er)),on!==null)for(;on!==null;)Jt.push(on),wr.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Er));else Jt=ln;Jt!==null?(cn=De,ze=ra(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)}else Et=De,De=ln;return De}function En(){var De,ze,Jt,on;if(De=Et,Me.substr(Et,2)===Cr?(ze=Cr,Et+=2):(ze=null,rn===0&&Be(oa)),ze!==null){if(Jt=[],Mn.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Bn)),on!==null)for(;on!==null;)Jt.push(on),Mn.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Bn));else Jt=ln;Jt!==null?(cn=De,ze=aa(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)}else Et=De,De=ln;return De}function Sn(){var De,ze,Jt,on;if(De=Et,Me.substr(Et,2)===Tr?(ze=Tr,Et+=2):(ze=null,rn===0&&Be(ia)),ze!==null){if(Jt=[],Mn.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Bn)),on!==null)for(;on!==null;)Jt.push(on),Mn.test(Me.charAt(Et))?(on=Me.charAt(Et),Et++):(on=null,rn===0&&Be(Bn));else Jt=ln;Jt!==null?(cn=De,ze=sa(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)}else Et=De,De=ln;return De}function On(){var De,ze;return De=Et,Me.substr(Et,2)===Vn?(ze=Vn,Et+=2):(ze=null,rn===0&&Be(Sr)),ze!==null&&(cn=De,ze=la()),ze===null&&(Et=De),De=ze,De}function Rn(){var De,ze,Jt;return De=Et,Me.charCodeAt(Et)===92?(ze=$r,Et++):(ze=null,rn===0&&Be(_r)),ze!==null?(Me.length>Et?(Jt=Me.charAt(Et),Et++):(Jt=null,rn===0&&Be(yr)),Jt!==null?(cn=De,ze=Wn(Jt),ze===null&&(Et=De),De=ze):(Et=De,De=ln)):(Et=De,De=ln),De}var Cn,Tn=arguments.length>1?arguments[1]:{},In={regexp:ot},An=ot,ln=null,$n="",Pn="|",xn='"|"',jn=function(De,ze){return ze?new ae(De,ze[1]):De},Dn=function(De,ze,Jt){return new ie([De].concat(ze).concat([Jt]))},Yn="^",qn='"^"',Pr=function(){return new oe("start")},xr="$",Ar='"$"',Nr=function(){return new oe("end")},kr=function(De,ze){return new fe(De,ze)},Or="Quantifier",Rr=function(De,ze){return ze&&(De.greedy=!1),De},zn="{",Un='"{"',Ir=",",Dr='","',Gn="}",Xn='"}"',Lr=function(De,ze){return new ve(De,ze)},Jn=",}",Vr='",}"',Mr=function(De){return new ve(De,1/0)},Br=function(De){return new ve(De,De)},Fr="+",Hr='"+"',jr=function(){return new ve(1,1/0)},zr="*",Ur='"*"',Wr=function(){return new ve(0,1/0)},Zn="?",Qn='"?"',Kr=function(){return new ve(0,1)},er=/^[0-9]/,tr="[0-9]",Yr=function(De){return+De.join("")},qr="(",Gr='"("',Xr=")",Jr='")"',Zr=function(De){return De},Qr=function(De){return new de(De)},nr="?:",eo='"?:"',to=function(De){return new se("non-capture-group",De)},rr="?=",no='"?="',ro=function(De){return new se("positive-lookahead",De)},or="?!",oo='"?!"',ao=function(De){return new se("negative-lookahead",De)},io="CharacterSet",so="[",lo='"["',co="]",uo='"]"',fo=function(De,ze){return new be(!!De,ze)},mo="CharacterRange",ho="-",po='"-"',go=function(De,ze){return new ye(De,ze)},vo="Character",bo=/^[^\\\]]/,yo="[^\\\\\\]]",Wn=function(De){return new $e(De)},$o=".",_o='"."',So=function(){return new oe("any-character")},wo="Literal",Eo=/^[^|\\\/.[()?+*$\^]/,Co="[^|\\\\\\/.[()?+*$\\^]",Ln="\\b",ar='"\\\\b"',To=function(){return new oe("backspace")},Po=function(){return new oe("word-boundary")},ir="\\B",xo='"\\\\B"',Ao=function(){return new oe("non-word-boundary")},sr="\\d",No='"\\\\d"',ko=function(){return new oe("digit")},lr="\\D",Oo='"\\\\D"',Ro=function(){return new oe("non-digit")},cr="\\f",Io='"\\\\f"',Do=function(){return new oe("form-feed")},ur="\\n",Lo='"\\\\n"',Vo=function(){return new oe("line-feed")},dr="\\r",Mo='"\\\\r"',Bo=function(){return new oe("carriage-return")},fr="\\s",Fo='"\\\\s"',Ho=function(){return new oe("white-space")},mr="\\S",jo='"\\\\S"',zo=function(){return new oe("non-white-space")},hr="\\t",Uo='"\\\\t"',Wo=function(){return new oe("tab")},pr="\\v",Ko='"\\\\v"',Yo=function(){return new oe("vertical-tab")},gr="\\w",qo='"\\\\w"',Go=function(){return new oe("word")},vr="\\W",Xo='"\\\\W"',Jo=function(){return new oe("non-word")},br="\\c",Zo='"\\\\c"',yr="any character",Qo=function(De){return new Ce(De)},$r="\\",_r='"\\\\"',ea=/^[1-9]/,ta="[1-9]",na=function(De){return new Pe(De)},Vn="\\0",Sr='"\\\\0"',wr=/^[0-7]/,Er="[0-7]",ra=function(De){return new we(De.join(""))},Cr="\\x",oa='"\\\\x"',Mn=/^[0-9a-fA-F]/,Bn="[0-9a-fA-F]",aa=function(De){return new Ee(De.join(""))},Tr="\\u",ia='"\\\\u"',sa=function(De){return new _e(De.join(""))},la=function(){return new oe("null-character")},Et=0,cn=0,Nn=0,Kn={line:1,column:1,seenCR:!1},Fn=0,Hn=[],rn=0;if("startRule"in Tn){if(!(Tn.startRule in In))throw new Error(`Can't start parsing from rule "`+Tn.startRule+'".');An=In[Tn.startRule]}if(oe.offset=Fe,oe.text=Ie,Cn=An(),Cn!==null&&Et===Me.length)return Cn;throw He(Hn),cn=Math.max(Et,Fn),new Re(Hn,cn_e)return!0;var Pe={path:ye,type:be,actual:$e,expected:_e,action:"is greater than",message:we};return Pe.message=ve.message(Pe),Ee.push(Pe),!1},lessThan:function(be,ye,$e,_e,Ee,we){if($e<_e)return!0;var Pe={path:ye,type:be,actual:$e,expected:_e,action:"is less to",message:we};return Pe.message=ve.message(Pe),Ee.push(Pe),!1},greaterThanOrEqualTo:function(be,ye,$e,_e,Ee,we){if($e>=_e)return!0;var Pe={path:ye,type:be,actual:$e,expected:_e,action:"is greater than or equal to",message:we};return Pe.message=ve.message(Pe),Ee.push(Pe),!1},lessThanOrEqualTo:function(be,ye,$e,_e,Ee,we){if($e<=_e)return!0;var Pe={path:ye,type:be,actual:$e,expected:_e,action:"is less than or equal to",message:we};return Pe.message=ve.message(Pe),Ee.push(Pe),!1}};de.Diff=fe,de.Assert=ve,ee.exports=de},function(ee,ne,oe){ee.exports=oe(28)},function(ee,ne,oe){var ae=oe(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(we,Pe,Ce,Oe){var Ae=document.createEvent("CustomEvent");return Ae.initCustomEvent(we,Pe,Ce,Oe),Ae}}var ie={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},se="readystatechange loadstart progress abort error load timeout loadend".split(" "),de="timeout withCredentials".split(" "),fe="readyState responseURL status statusText responseType response responseText responseXML".split(" "),ve={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function be(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}be._settings={timeout:"10-100"},be.setup=function(Ee){return ae.extend(be._settings,Ee),be._settings},ae.extend(be,ie),ae.extend(be.prototype,ie),be.prototype.mock=!0,be.prototype.match=!1,ae.extend(be.prototype,{open:function(Ee,we,Pe,Ce,Oe){var Ae=this;ae.extend(this.custom,{method:Ee,url:we,async:typeof Pe=="boolean"?Pe:!0,username:Ce,password:Oe,options:{url:we,type:Ee}}),this.custom.timeout=function(Ie){if(typeof Ie=="number")return Ie;if(typeof Ie=="string"&&!~Ie.indexOf("-"))return parseInt(Ie,10);if(typeof Ie=="string"&&~Ie.indexOf("-")){var Fe=Ie.split("-"),je=parseInt(Fe[0],10),Be=parseInt(Fe[1],10);return Math.round(Math.random()*(Be-je))+je}}(be._settings.timeout);var Ne=$e(this.custom.options);function ke(Ie){for(var Fe=0;Fe({error:"",status:1,data:Mock.mock({account:ee.account,token:`${ee.account}_@string`,avatar:"https://fantastic-mobile.hurui.me/logo.png"})})},{url:"/mock/user/permission",method:"get",response:({headers:ee})=>{var oe,ae;let ne=[];return((oe=ee.token)==null?void 0:oe.indexOf("admin"))===0?ne=["permission.browse","permission.create","permission.edit","permission.remove"]:((ae=ee.token)==null?void 0:ae.indexOf("test"))===0&&(ne=["permission.browse"]),{error:"",status:1,data:{permissions:ne}}}}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:user},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"/src/mock/page.ts":__vite_glob_0_0,"/src/mock/user.ts":__vite_glob_0_1}),fakeModuleList$1=Object.keys(modules).reduce((ee,ne)=>{const oe=modules[ne]??{};if(oe.default)for(const ae of Object.keys(oe)){const ie=modules[ne][ae]??[],se=Array.isArray(ie)?[...ie]:[ie];return[...ee,...se]}else return ee},[]);window.__VITE__PLUGIN__FAKE__SERVER__.fakeModuleList=fakeModuleList$1;function xhook(){const ee=st=>{try{return new URL(st),!0}catch{return!1}},ne=(st,Ue)=>Array.prototype.slice.call(st,Ue);let oe=null;typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?oe=self:typeof global<"u"?oe=global:window&&(oe=window);const ae=oe,ie=oe.document,se=["load","loadend","loadstart"],de=["progress","abort","error","timeout"],fe=st=>["returnValue","totalSize","position"].includes(st),ve=function(st,Ue){for(let Ze in st){if(fe(Ze))continue;const Tt=st[Ze];try{Ue[Ze]=Tt}catch{}}return Ue},be=function(st,Ue,Ze){const Tt=Vt=>function(Ut){const We={};for(let Pt in Ut){if(fe(Pt))continue;const Mt=Ut[Pt];We[Pt]=Mt===Ue?Ze:Mt}return Ze.dispatchEvent(Vt,We)};for(let Vt of Array.from(st))Ze._has(Vt)&&(Ue[`on${Vt}`]=Tt(Vt))},ye=function(st){if(ie&&ie.createEventObject!=null){const Ue=ie.createEventObject();return Ue.type=st,Ue}try{return new Event(st)}catch{return{type:st}}},$e=function(st){let Ue={};const Ze=Vt=>Ue[Vt]||[],Tt={};return Tt.addEventListener=function(Vt,Ut,We){Ue[Vt]=Ze(Vt),!(Ue[Vt].indexOf(Ut)>=0)&&(We=We===void 0?Ue[Vt].length:We,Ue[Vt].splice(We,0,Ut))},Tt.removeEventListener=function(Vt,Ut){if(Vt===void 0){Ue={};return}Ut===void 0&&(Ue[Vt]=[]);const We=Ze(Vt).indexOf(Ut);We!==-1&&Ze(Vt).splice(We,1)},Tt.dispatchEvent=function(){const Vt=ne(arguments),Ut=Vt.shift();st||(Vt[0]=ve(Vt[0],ye(Ut)),Object.defineProperty(Vt[0],"target",{writable:!1,value:this}));const We=Tt[`on${Ut}`];We&&We.apply(Tt,Vt);const Pt=Ze(Ut).concat(Ze("*"));for(let Mt=0;Mt!!(Ue[Vt]||Tt[`on${Vt}`]),st&&(Tt.listeners=Vt=>ne(Ze(Vt)),Tt.on=Tt.addEventListener,Tt.off=Tt.removeEventListener,Tt.fire=Tt.dispatchEvent,Tt.once=function(Vt,Ut){var We=function(){return Tt.off(Vt,We),Ut.apply(null,arguments)};return Tt.on(Vt,We)},Tt.destroy=()=>Ue={}),Tt},_e=`\r +`,Ee=function(st){return Object.entries(st).map(([Tt,Vt])=>`${Tt.toLowerCase()}: ${Vt}`).join(_e)},we=function(st,Ue){const Ze=st.split(_e);Ue==null&&(Ue={});for(let Tt of Ze)if(/([^:]+):\s*(.+)/.test(Tt)){const Vt=RegExp.$1!=null?RegExp.$1.toLowerCase():void 0,Ut=RegExp.$2;Ue[Vt]==null&&(Ue[Vt]=Ut)}return Ue};var Ce={convert:function(st,Ue){switch(typeof st){case"object":return Ee(st);case"string":return we(st,Ue)}return[]}};const Oe=$e(!0),Ae=st=>st===void 0?null:st,Ne=ae.XMLHttpRequest,ke=function(){const Ue=new Ne,Ze={};let Tt=null,Vt,Ut,We;var Pt=0;const Mt=function(){if(We.status=Tt||Ue.status,Tt!==-1&&(We.statusText=Ue.statusText),Tt!==-1){const Zt=Ce.convert(Ue.getAllResponseHeaders());for(let Xe in Zt){const nt=Zt[Xe];if(!We.headers[Xe]){const Bt=Xe.toLowerCase();We.headers[Bt]=nt}}return}},jt=function(){if(!Ue.responseType||Ue.responseType==="text"){We.text=Ue.responseText,We.data=Ue.responseText;try{We.xml=Ue.responseXML}catch{}}else Ue.responseType==="document"?(We.xml=Ue.responseXML,We.data=Ue.responseXML):We.data=Ue.response;"responseURL"in Ue&&(We.responseURL=Ue.responseURL)},Rt=function(){Dt.status=We.status,Dt.statusText=We.statusText},Wt=function(){if("text"in We&&(Dt.responseText=We.text),"xml"in We&&(Dt.responseXML=We.xml),"data"in We)Dt.response=We.data;else{const Zt={"":"",text:"",json:null,blob:new Blob([],{type:new Headers(We.headers??{}).get("content-type")}),arraybuffer:new ArrayBuffer};Dt.response=Zt[Dt.responseType]}("responseURL"in We||Ze.url)&&(Dt.responseURL=We.responseURL??(ee(Ze.url)?Ze.url:new URL(location.href).origin+Ze.url))},Ke=function(){Vt||Dt.dispatchEvent("load",{}),Dt.dispatchEvent("loadend",{}),Vt&&(Dt.readyState=0)},It=function(Zt){for(;Zt>Pt&&Pt<4;)Dt.readyState=++Pt,Pt===1&&Dt.dispatchEvent("loadstart",{}),Pt===2&&Rt(),Pt===4&&(Rt(),Wt()),Dt.dispatchEvent("readystatechange",{}),Pt===4&&(Ze.async===!1?Ke():setTimeout(Ke,0))},Lt=function(Zt){if(Zt!==4){It(Zt);return}const Xe=Oe.listeners("after");var nt=function(){if(Xe.length>0){const Bt=Xe.shift();Bt.length===2?(Bt(Ze,We),nt()):Bt.length===3&&Ze.async?Bt(Ze,We,nt):nt()}else It(4)};nt()};var Dt=$e();Ze.xhr=Dt,Ue.onreadystatechange=function(Zt){try{Ue.readyState===2&&Mt()}catch{}Ue.readyState===4&&(Ut=!1,Mt(),jt()),Lt(Ue.readyState)};const tn=function(){Vt=!0};Dt.addEventListener("error",tn),Dt.addEventListener("timeout",tn),Dt.addEventListener("abort",tn),Dt.addEventListener("progress",function(Zt){Pt<3?Lt(3):Ue.readyState<=3&&Dt.dispatchEvent("readystatechange",{})}),"withCredentials"in Ue&&(Dt.withCredentials=!1),Dt.status=0;for(let Zt of Array.from(de.concat(se)))Dt[`on${Zt}`]=null;if(Dt.open=function(Zt,Xe,nt,Bt,Gt){Pt=0,Vt=!1,Ut=!1,Ze.headers={},Ze.headerNames={},Ze.status=0,Ze.method=Zt,Ze.url=Xe,Ze.async=nt!==!1,Ze.user=Bt,Ze.pass=Gt,We={},We.headers={},Lt(1)},Dt.send=function(Zt){let Xe,nt;for(Xe of["type","timeout","withCredentials"])nt=Xe==="type"?"responseType":Xe,nt in Dt&&(Ze[Xe]=Dt[nt]);Ze.body=Zt;const Bt=function(){be(de,Ue,Dt),Dt.upload&&be(de.concat(se),Ue.upload,Dt.upload),Ut=!0,Ue.open(Ze.method,Ze.url,Ze.async,Ze.user,Ze.pass);for(Xe of["type","timeout","withCredentials"])nt=Xe==="type"?"responseType":Xe,Xe in Ze&&(Ue[nt]=Ze[Xe]);for(let Xt in Ze.headers){const Qt=Ze.headers[Xt];Xt&&Ue.setRequestHeader(Xt,Qt)}Ue.send(Ze.body)},Gt=Oe.listeners("before");var Kt=function(){if(!Gt.length)return Bt();const Xt=function(qe){if(typeof qe=="object"&&(typeof qe.status=="number"||typeof We.status=="number")){ve(qe,We),"data"in qe||(qe.data=qe.response||qe.text),Lt(4);return}Kt()};Xt.head=function(qe){ve(qe,We),Lt(2)},Xt.progress=function(qe){ve(qe,We),Lt(3)};const Qt=Gt.shift();Qt.length===1?Xt(Qt(Ze)):Qt.length===2&&Ze.async?Qt(Ze,Xt):Xt()};Kt()},Dt.abort=function(){Tt=-1,Ut?Ue.abort():Dt.dispatchEvent("abort",{})},Dt.setRequestHeader=function(Zt,Xe){const nt=Zt!=null?Zt.toLowerCase():void 0,Bt=Ze.headerNames[nt]=Ze.headerNames[nt]||Zt;Ze.headers[Bt]&&(Xe=Ze.headers[Bt]+", "+Xe),Ze.headers[Bt]=Xe},Dt.getResponseHeader=Zt=>Ae(We.headers[Zt?Zt.toLowerCase():void 0]),Dt.getAllResponseHeaders=()=>Ae(Ce.convert(We.headers)),Ue.overrideMimeType&&(Dt.overrideMimeType=function(){Ue.overrideMimeType.apply(Ue,arguments)}),Ue.upload){let Zt=$e();Dt.upload=Zt,Ze.upload=Zt}return Dt.UNSENT=0,Dt.OPENED=1,Dt.HEADERS_RECEIVED=2,Dt.LOADING=3,Dt.DONE=4,Dt.response="",Dt.responseText="",Dt.responseXML=null,Dt.readyState=0,Dt.statusText="",Dt};ke.UNSENT=0,ke.OPENED=1,ke.HEADERS_RECEIVED=2,ke.LOADING=3,ke.DONE=4;var Re={patch(){Ne&&(ae.XMLHttpRequest=ke)},unpatch(){Ne&&(ae.XMLHttpRequest=Ne)},Native:Ne,Xhook:ke};function Le(st,Ue){var Ze={};for(var Tt in st)Object.prototype.hasOwnProperty.call(st,Tt)&&Ue.indexOf(Tt)<0&&(Ze[Tt]=st[Tt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Tt=Object.getOwnPropertySymbols(st);VtZe[Tt]=st[Tt]),Ze}function je(st){return st instanceof Headers?Be([...st.entries()]):Array.isArray(st)?Be(st):st}function Be(st){return st.reduce((Ue,[Ze,Tt])=>(Ue[Ze]=Tt,Ue),{})}const He=function(st,Ue={headers:{}}){let Ze=Object.assign(Object.assign({},Ue),{isFetch:!0});if(st instanceof Request){const Ut=Fe(st),We=Object.assign(Object.assign({},je(Ut.headers)),je(Ze.headers));Ze=Object.assign(Object.assign(Object.assign({},Ut),Ue),{headers:We,acceptedRequest:!0,isFetch:!0})}else Ze.url=st;const Tt=Oe.listeners("before"),Vt=Oe.listeners("after");return new Promise(function(Ut,We){let Pt=Ut;const Mt=function(Ke){if(!Vt.length)return Pt(Ke);const It=Vt.shift();return It.length===2?(It(Ze,Ke),Mt(Ke)):It.length===3?It(Ze,Ke,Mt):Mt(Ke)},jt=function(Ke){if(Ke!==void 0){const It=new Response(Ke.body||Ke.text,Ke);Object.defineProperty(It,"url",{value:ee(Ze.url)?Ze.url:new URL(location.href).origin+Ze.url}),Ut(It),Mt(It);return}Rt()},Rt=function(){if(!Tt.length){Wt();return}const Ke=Tt.shift();if(Ke.length===1)return jt(Ke(Ze));if(Ke.length===2)return Ke(Ze,jt)},Wt=()=>Me(this,void 0,void 0,function*(){const{url:Ke,isFetch:It,acceptedRequest:Lt}=Ze,Dt=Le(Ze,["url","isFetch","acceptedRequest"]);return st instanceof Request&&Dt.body instanceof ReadableStream&&(Dt.body=yield new Response(Dt.body).text()),Ie(Ke,Dt).then(tn=>Mt(tn)).catch(function(tn){return Pt=We,Mt(tn),We(tn)})});Rt()})};var ot={patch(){Ie&&(ae.fetch=He)},unpatch(){Ie&&(ae.fetch=Ie)},Native:Ie,Xhook:He};const Nt=Oe;return Nt.EventEmitter=$e,Nt.before=function(st,Ue){if(st.length<1||st.length>2)throw"invalid hook";return Nt.on("before",st,Ue)},Nt.after=function(st,Ue){if(st.length<2||st.length>3)throw"invalid hook";return Nt.on("after",st,Ue)},Nt.enable=function(){Re.patch(),ot.patch()},Nt.disable=function(){Re.unpatch(),ot.unpatch()},Nt.XMLHttpRequest=Re.Native,Nt.fetch=ot.Native,Nt.headers=Ce.convert,Nt.enable(),Nt}window.__VITE__PLUGIN__FAKE__SERVER__.xhook=xhook();function lexer(ee){for(var ne=[],oe=0;oe=48&&de<=57||de>=65&&de<=90||de>=97&&de<=122||de===95){ie+=ee[se++];continue}break}if(!ie)throw new TypeError("Missing parameter name at ".concat(oe));ne.push({type:"NAME",index:oe,value:ie}),oe=se;continue}if(ae==="("){var fe=1,ve="",se=oe+1;if(ee[se]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(se));for(;se)?(?!\?)/g,ae=0,ie=oe.exec(ee.source);ie;)ne.push({name:ie[1]||ae++,prefix:"",suffix:"",modifier:"",pattern:""}),ie=oe.exec(ee.source);return ee}function arrayToRegexp(ee,ne,oe){var ae=ee.map(function(ie){return pathToRegexp$1(ie,ne,oe).source});return new RegExp("(?:".concat(ae.join("|"),")"),flags(oe))}function stringToRegexp(ee,ne,oe){return tokensToRegexp(parse$1(ee,oe),ne,oe)}function tokensToRegexp(ee,ne,oe){oe===void 0&&(oe={});for(var ae=oe.strict,ie=ae===void 0?!1:ae,se=oe.start,de=se===void 0?!0:se,fe=oe.end,ve=fe===void 0?!0:fe,be=oe.encode,ye=be===void 0?function(je){return je}:be,$e=oe.delimiter,_e=$e===void 0?"/#?":$e,Ee=oe.endsWith,we=Ee===void 0?"":Ee,Pe="[".concat(escapeString(we),"]|$"),Ce="[".concat(escapeString(_e),"]"),Oe=de?"^":"",Ae=0,Ne=ee;Ae-1:Ie===void 0;ie||(Oe+="(?:".concat(Ce,"(?=").concat(Pe,"))?")),Fe||(Oe+="(?=".concat(Ce,"|").concat(Pe,")"))}return new RegExp(Oe,flags(oe))}function pathToRegexp$1(ee,ne,oe){return ee instanceof RegExp?regexpToRegexp(ee,ne):Array.isArray(ee)?arrayToRegexp(ee,ne,oe):stringToRegexp(ee,ne,oe)}window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp={pathToRegexp:pathToRegexp$1,match:match$1};const fakeModuleList=window.__VITE__PLUGIN__FAKE__SERVER__.fakeModuleList,{pathToRegexp,match}=window.__VITE__PLUGIN__FAKE__SERVER__.pathToRegexp;window.__VITE__PLUGIN__FAKE__SERVER__.xhook.before(async function(ee,ne){function oe(ve){return new Promise(be=>{const ye=setTimeout(()=>{be(ye),clearTimeout(ye)},ve)})}function ae(ve){let be="";try{be=JSON.parse(ve)}catch{be=ve}return be}async function ie({URL:ve,req:be,fakeModuleList:ye,pathToRegexp:$e,match:_e,basename:Ee,defaultTimeout:we,globalResponseHeaders:Pe}){function Ce(Oe,Ae){const Ne=new ve(Oe,"http://localhost:5173/").pathname,ke=new ve(Ae,"http://localhost:5173/").pathname;return Ne.endsWith("/")?Ne.slice(0,-1)+ke:Ne+ke}if(be.url){const Oe=new ve(be.url,"http://localhost:5173/"),Ae=Oe.pathname,Ne=ye.find(ke=>{if(!Ae||!ke||!ke.url)return!1;const Re=ke.method??"GET",Le=be.method??"GET";if(Re.toUpperCase()!==Le.toUpperCase())return!1;const Me=Ce(Ee,ke.url);return $e(Me).test(Ae)});if(Ne){const{response:ke,rawResponse:Re,timeout:Le=we,statusCode:Me,statusText:Ie,url:Fe,headers:je={}}=Ne;Le&&await oe(Le);const Be=Ce(Ee,Fe),He=_e(Be,{encode:encodeURI}),ot=Oe.searchParams,Nt={};for(const[Ue,Ze]of ot.entries())if(Nt.hasOwnProperty(Ue)){const Tt=Nt[Ue];Array.isArray(Tt)?Tt.push(Ze):Nt[Ue]=[Tt,Ze]}else Nt[Ue]=Ze;let st={};if(Ae){const Ue=He(Ae);Ue&&(st=Ue.params)}return{response:ke,rawResponse:Re,timeout:Le,statusCode:Me??200,statusText:Ie,url:be.url,query:Nt,params:st,responseHeaders:new Headers({...Pe,...je})}}}}const se={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};function de(ve){const be={};for(const[ye,$e]of ve.entries())be[ye]=$e;return be}const fe=await ie({URL,req:ee,fakeModuleList,pathToRegexp,match,basename:"",defaultTimeout:void 0,globalResponseHeaders:{}});if(fe){const{response:ve,statusCode:be,statusText:ye=se[be],url:$e,query:_e,params:Ee,responseHeaders:we}=fe??{},Pe="",Ce=typeof ve=="function",Oe={};for(const Ne in ee.headers)Oe[Ne.toLowerCase()]=ee.headers[Ne];const Ae=!Ce||await Promise.resolve(ve({url:$e,body:ae(ee.body),rawBody:ee.body,query:_e,params:Ee,headers:Oe}));if(ee.isFetch)typeof Ae=="string"?(we.get("Content-Type")||we.set("Content-Type","text/plain"),ne(new Response(Ce?Ae:null,{statusText:Pe,status:be,headers:de(we)}))):(we.get("Content-Type")||we.set("Content-Type","application/json"),ne(new Response(Ce?JSON.stringify(Ae,null,2):null,{statusText:Pe,status:be,headers:de(we)})));else{const Ne=Ce?{data:Ae}:{};if(!ee.type||ee.type.toLowerCase()==="text")we.get("Content-Type")||we.set("Content-Type","text/plain"),ne({statusText:Pe,status:be,text:Ae,...Ne,headers:de(we)});else if(ee.type.toLowerCase()==="json")we.get("Content-Type")||we.set("Content-Type","application/json"),ne({statusText:Pe,status:be,...Ne,headers:de(we)});else if(ee.type.toLowerCase()==="document"){we.get("Content-Type")||we.set("Content-Type","application/xml");const Re=new DOMParser().parseFromString(Ae,"application/xml");ne({statusText:Pe,status:be,xml:Re,data:Re,headers:de(we)})}else ne({statusText:Pe,status:be,...Ne,headers:de(we)})}}else ne()});(function(){var oe;const ee=document.createElement("script");ee.src="https://hm.baidu.com/hm.js?d7f6dd1733b48011a6bf797914549256";const ne=document.getElementsByTagName("script")[0];(oe=ne.parentNode)==null||oe.insertBefore(ee,ne)})();{const ee="font-size: 14px; margin-bottom: 2px; padding: 6px 8px; color: #fff;",ne=`${ee} background: #e24329;`,oe=`${ee} background: #707070;`;navigator.language.toLowerCase()==="zh-cn"?console.info("%c由%cFantastic-mobile%c驱动",oe,ne,oe,` +https://fantastic-mobile.hurui.me`):console.info("%cPowered by%cFantastic-mobile",oe,ne,` +https://fantastic-mobile.hurui.me`)}/** +* @vue/shared v3.4.37 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function makeMap(ee,ne){const oe=new Set(ee.split(","));return ae=>oe.has(ae)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=ee=>ee.charCodeAt(0)===111&&ee.charCodeAt(1)===110&&(ee.charCodeAt(2)>122||ee.charCodeAt(2)<97),isModelListener=ee=>ee.startsWith("onUpdate:"),extend$2=Object.assign,remove=(ee,ne)=>{const oe=ee.indexOf(ne);oe>-1&&ee.splice(oe,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$1=(ee,ne)=>hasOwnProperty$g.call(ee,ne),isArray$5=Array.isArray,isMap$1=ee=>toTypeString$1(ee)==="[object Map]",isSet$1=ee=>toTypeString$1(ee)==="[object Set]",isRegExp$2=ee=>toTypeString$1(ee)==="[object RegExp]",isFunction$5=ee=>typeof ee=="function",isString$4=ee=>typeof ee=="string",isSymbol=ee=>typeof ee=="symbol",isObject$9=ee=>ee!==null&&typeof ee=="object",isPromise$2=ee=>(isObject$9(ee)||isFunction$5(ee))&&isFunction$5(ee.then)&&isFunction$5(ee.catch),objectToString$2=Object.prototype.toString,toTypeString$1=ee=>objectToString$2.call(ee),toRawType=ee=>toTypeString$1(ee).slice(8,-1),isPlainObject$5=ee=>toTypeString$1(ee)==="[object Object]",isIntegerKey=ee=>isString$4(ee)&&ee!=="NaN"&&ee[0]!=="-"&&""+parseInt(ee,10)===ee,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=ee=>{const ne=Object.create(null);return oe=>ne[oe]||(ne[oe]=ee(oe))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(ee=>ee.replace(camelizeRE$1,(ne,oe)=>oe?oe.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(ee=>ee.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(ee=>ee.charAt(0).toUpperCase()+ee.slice(1)),toHandlerKey=cacheStringFunction(ee=>ee?`on${capitalize$1(ee)}`:""),hasChanged=(ee,ne)=>!Object.is(ee,ne),invokeArrayFns=(ee,...ne)=>{for(let oe=0;oe{Object.defineProperty(ee,ne,{configurable:!0,enumerable:!1,writable:ae,value:oe})},looseToNumber=ee=>{const ne=parseFloat(ee);return isNaN(ne)?ee:ne},toNumber=ee=>{const ne=isString$4(ee)?Number(ee):NaN;return isNaN(ne)?ee:ne};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(ee){if(isArray$5(ee)){const ne={};for(let oe=0;oe{if(oe){const ae=oe.split(propertyDelimiterRE);ae.length>1&&(ne[ae[0].trim()]=ae[1].trim())}}),ne}function stringifyStyle(ee){let ne="";if(!ee||isString$4(ee))return ne;for(const oe in ee){const ae=ee[oe];if(isString$4(ae)||typeof ae=="number"){const ie=oe.startsWith("--")?oe:hyphenate(oe);ne+=`${ie}:${ae};`}}return ne}function normalizeClass(ee){let ne="";if(isString$4(ee))ne=ee;else if(isArray$5(ee))for(let oe=0;oe!!(ee&&ee.__v_isRef===!0),toDisplayString$1=ee=>isString$4(ee)?ee:ee==null?"":isArray$5(ee)||isObject$9(ee)&&(ee.toString===objectToString$2||!isFunction$5(ee.toString))?isRef$1(ee)?toDisplayString$1(ee.value):JSON.stringify(ee,replacer,2):String(ee),replacer=(ee,ne)=>isRef$1(ne)?replacer(ee,ne.value):isMap$1(ne)?{[`Map(${ne.size})`]:[...ne.entries()].reduce((oe,[ae,ie],se)=>(oe[stringifySymbol(ae,se)+" =>"]=ie,oe),{})}:isSet$1(ne)?{[`Set(${ne.size})`]:[...ne.values()].map(oe=>stringifySymbol(oe))}:isSymbol(ne)?stringifySymbol(ne):isObject$9(ne)&&!isArray$5(ne)&&!isPlainObject$5(ne)?String(ne):ne,stringifySymbol=(ee,ne="")=>{var oe;return isSymbol(ee)?`Symbol(${(oe=ee.description)!=null?oe:ne})`:ee};/** +* @vue/reactivity v3.4.37 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let activeEffectScope;class EffectScope{constructor(ne=!1){this.detached=ne,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!ne&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(ne){if(this._active){const oe=activeEffectScope;try{return activeEffectScope=this,ne()}finally{activeEffectScope=oe}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(ne){if(this._active){let oe,ae;for(oe=0,ae=this.effects.length;oe=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(ne){this._dirtyLevel=ne?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let ne=shouldTrack,oe=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=oe,shouldTrack=ne}}stop(){this.active&&(preCleanupEffect(this),postCleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function triggerComputed(ee){return ee.value}function preCleanupEffect(ee){ee._trackId++,ee._depsLength=0}function postCleanupEffect(ee){if(ee.deps.length>ee._depsLength){for(let ne=ee._depsLength;ne{const oe=new Map;return oe.cleanup=ee,oe.computed=ne,oe},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(ee,ne,oe){if(shouldTrack&&activeEffect){let ae=targetMap.get(ee);ae||targetMap.set(ee,ae=new Map);let ie=ae.get(oe);ie||ae.set(oe,ie=createDep(()=>ae.delete(oe))),trackEffect(activeEffect,ie)}}function trigger(ee,ne,oe,ae,ie,se){const de=targetMap.get(ee);if(!de)return;let fe=[];if(ne==="clear")fe=[...de.values()];else if(oe==="length"&&isArray$5(ee)){const ve=Number(ae);de.forEach((be,ye)=>{(ye==="length"||!isSymbol(ye)&&ye>=ve)&&fe.push(be)})}else switch(oe!==void 0&&fe.push(de.get(oe)),ne){case"add":isArray$5(ee)?isIntegerKey(oe)&&fe.push(de.get("length")):(fe.push(de.get(ITERATE_KEY)),isMap$1(ee)&&fe.push(de.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$5(ee)||(fe.push(de.get(ITERATE_KEY)),isMap$1(ee)&&fe.push(de.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(ee)&&fe.push(de.get(ITERATE_KEY));break}pauseScheduling();for(const ve of fe)ve&&triggerEffects(ve,4);resetScheduling()}function getDepFromReactive(ee,ne){const oe=targetMap.get(ee);return oe&&oe.get(ne)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(ee=>ee!=="arguments"&&ee!=="caller").map(ee=>Symbol[ee]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const ee={};return["includes","indexOf","lastIndexOf"].forEach(ne=>{ee[ne]=function(...oe){const ae=toRaw(this);for(let se=0,de=this.length;se{ee[ne]=function(...oe){pauseTracking(),pauseScheduling();const ae=toRaw(this)[ne].apply(this,oe);return resetScheduling(),resetTracking(),ae}}),ee}function hasOwnProperty$f(ee){isSymbol(ee)||(ee=String(ee));const ne=toRaw(this);return track(ne,"has",ee),ne.hasOwnProperty(ee)}class BaseReactiveHandler{constructor(ne=!1,oe=!1){this._isReadonly=ne,this._isShallow=oe}get(ne,oe,ae){const ie=this._isReadonly,se=this._isShallow;if(oe==="__v_isReactive")return!ie;if(oe==="__v_isReadonly")return ie;if(oe==="__v_isShallow")return se;if(oe==="__v_raw")return ae===(ie?se?shallowReadonlyMap:readonlyMap:se?shallowReactiveMap:reactiveMap).get(ne)||Object.getPrototypeOf(ne)===Object.getPrototypeOf(ae)?ne:void 0;const de=isArray$5(ne);if(!ie){if(de&&hasOwn$1(arrayInstrumentations,oe))return Reflect.get(arrayInstrumentations,oe,ae);if(oe==="hasOwnProperty")return hasOwnProperty$f}const fe=Reflect.get(ne,oe,ae);return(isSymbol(oe)?builtInSymbols.has(oe):isNonTrackableKeys(oe))||(ie||track(ne,"get",oe),se)?fe:isRef(fe)?de&&isIntegerKey(oe)?fe:fe.value:isObject$9(fe)?ie?readonly(fe):reactive(fe):fe}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(ne=!1){super(!1,ne)}set(ne,oe,ae,ie){let se=ne[oe];if(!this._isShallow){const ve=isReadonly(se);if(!isShallow(ae)&&!isReadonly(ae)&&(se=toRaw(se),ae=toRaw(ae)),!isArray$5(ne)&&isRef(se)&&!isRef(ae))return ve?!1:(se.value=ae,!0)}const de=isArray$5(ne)&&isIntegerKey(oe)?Number(oe)ee,getProto=ee=>Reflect.getPrototypeOf(ee);function get$1(ee,ne,oe=!1,ae=!1){ee=ee.__v_raw;const ie=toRaw(ee),se=toRaw(ne);oe||(hasChanged(ne,se)&&track(ie,"get",ne),track(ie,"get",se));const{has:de}=getProto(ie),fe=ae?toShallow:oe?toReadonly:toReactive;if(de.call(ie,ne))return fe(ee.get(ne));if(de.call(ie,se))return fe(ee.get(se));ee!==ie&&ee.get(ne)}function has(ee,ne=!1){const oe=this.__v_raw,ae=toRaw(oe),ie=toRaw(ee);return ne||(hasChanged(ee,ie)&&track(ae,"has",ee),track(ae,"has",ie)),ee===ie?oe.has(ee):oe.has(ee)||oe.has(ie)}function size(ee,ne=!1){return ee=ee.__v_raw,!ne&&track(toRaw(ee),"iterate",ITERATE_KEY),Reflect.get(ee,"size",ee)}function add(ee,ne=!1){!ne&&!isShallow(ee)&&!isReadonly(ee)&&(ee=toRaw(ee));const oe=toRaw(this);return getProto(oe).has.call(oe,ee)||(oe.add(ee),trigger(oe,"add",ee,ee)),this}function set(ee,ne,oe=!1){!oe&&!isShallow(ne)&&!isReadonly(ne)&&(ne=toRaw(ne));const ae=toRaw(this),{has:ie,get:se}=getProto(ae);let de=ie.call(ae,ee);de||(ee=toRaw(ee),de=ie.call(ae,ee));const fe=se.call(ae,ee);return ae.set(ee,ne),de?hasChanged(ne,fe)&&trigger(ae,"set",ee,ne):trigger(ae,"add",ee,ne),this}function deleteEntry(ee){const ne=toRaw(this),{has:oe,get:ae}=getProto(ne);let ie=oe.call(ne,ee);ie||(ee=toRaw(ee),ie=oe.call(ne,ee)),ae&&ae.call(ne,ee);const se=ne.delete(ee);return ie&&trigger(ne,"delete",ee,void 0),se}function clear(){const ee=toRaw(this),ne=ee.size!==0,oe=ee.clear();return ne&&trigger(ee,"clear",void 0,void 0),oe}function createForEach(ee,ne){return function(ae,ie){const se=this,de=se.__v_raw,fe=toRaw(de),ve=ne?toShallow:ee?toReadonly:toReactive;return!ee&&track(fe,"iterate",ITERATE_KEY),de.forEach((be,ye)=>ae.call(ie,ve(be),ve(ye),se))}}function createIterableMethod(ee,ne,oe){return function(...ae){const ie=this.__v_raw,se=toRaw(ie),de=isMap$1(se),fe=ee==="entries"||ee===Symbol.iterator&&de,ve=ee==="keys"&&de,be=ie[ee](...ae),ye=oe?toShallow:ne?toReadonly:toReactive;return!ne&&track(se,"iterate",ve?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:$e,done:_e}=be.next();return _e?{value:$e,done:_e}:{value:fe?[ye($e[0]),ye($e[1])]:ye($e),done:_e}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(ee){return function(...ne){return ee==="delete"?!1:ee==="clear"?void 0:this}}function createInstrumentations(){const ee={get(se){return get$1(this,se)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},ne={get(se){return get$1(this,se,!1,!0)},get size(){return size(this)},has,add(se){return add.call(this,se,!0)},set(se,de){return set.call(this,se,de,!0)},delete:deleteEntry,clear,forEach:createForEach(!1,!0)},oe={get(se){return get$1(this,se,!0)},get size(){return size(this,!0)},has(se){return has.call(this,se,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ae={get(se){return get$1(this,se,!0,!0)},get size(){return size(this,!0)},has(se){return has.call(this,se,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(se=>{ee[se]=createIterableMethod(se,!1,!1),oe[se]=createIterableMethod(se,!0,!1),ne[se]=createIterableMethod(se,!1,!0),ae[se]=createIterableMethod(se,!0,!0)}),[ee,oe,ne,ae]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(ee,ne){const oe=ne?ee?shallowReadonlyInstrumentations:shallowInstrumentations:ee?readonlyInstrumentations:mutableInstrumentations;return(ae,ie,se)=>ie==="__v_isReactive"?!ee:ie==="__v_isReadonly"?ee:ie==="__v_raw"?ae:Reflect.get(hasOwn$1(oe,ie)&&ie in ae?oe:ae,ie,se)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(ee){switch(ee){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(ee){return ee.__v_skip||!Object.isExtensible(ee)?0:targetTypeMap(toRawType(ee))}function reactive(ee){return isReadonly(ee)?ee:createReactiveObject(ee,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(ee){return createReactiveObject(ee,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(ee){return createReactiveObject(ee,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(ee){return createReactiveObject(ee,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(ee,ne,oe,ae,ie){if(!isObject$9(ee)||ee.__v_raw&&!(ne&&ee.__v_isReactive))return ee;const se=ie.get(ee);if(se)return se;const de=getTargetType(ee);if(de===0)return ee;const fe=new Proxy(ee,de===2?ae:oe);return ie.set(ee,fe),fe}function isReactive(ee){return isReadonly(ee)?isReactive(ee.__v_raw):!!(ee&&ee.__v_isReactive)}function isReadonly(ee){return!!(ee&&ee.__v_isReadonly)}function isShallow(ee){return!!(ee&&ee.__v_isShallow)}function isProxy(ee){return ee?!!ee.__v_raw:!1}function toRaw(ee){const ne=ee&&ee.__v_raw;return ne?toRaw(ne):ee}function markRaw(ee){return Object.isExtensible(ee)&&def(ee,"__v_skip",!0),ee}const toReactive=ee=>isObject$9(ee)?reactive(ee):ee,toReadonly=ee=>isObject$9(ee)?readonly(ee):ee;class ComputedRefImpl{constructor(ne,oe,ae,ie){this.getter=ne,this._setter=oe,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>ne(this._value),()=>triggerRefValue(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!ie,this.__v_isReadonly=ae}get value(){const ne=toRaw(this);return(!ne._cacheable||ne.effect.dirty)&&hasChanged(ne._value,ne._value=ne.effect.run())&&triggerRefValue(ne,4),trackRefValue(ne),ne.effect._dirtyLevel>=2&&triggerRefValue(ne,2),ne._value}set value(ne){this._setter(ne)}get _dirty(){return this.effect.dirty}set _dirty(ne){this.effect.dirty=ne}}function computed$1(ee,ne,oe=!1){let ae,ie;const se=isFunction$5(ee);return se?(ae=ee,ie=NOOP):(ae=ee.get,ie=ee.set),new ComputedRefImpl(ae,ie,se||!ie,oe)}function trackRefValue(ee){var ne;shouldTrack&&activeEffect&&(ee=toRaw(ee),trackEffect(activeEffect,(ne=ee.dep)!=null?ne:ee.dep=createDep(()=>ee.dep=void 0,ee instanceof ComputedRefImpl?ee:void 0)))}function triggerRefValue(ee,ne=4,oe,ae){ee=toRaw(ee);const ie=ee.dep;ie&&triggerEffects(ie,ne)}function isRef(ee){return!!(ee&&ee.__v_isRef===!0)}function ref(ee){return createRef(ee,!1)}function shallowRef(ee){return createRef(ee,!0)}function createRef(ee,ne){return isRef(ee)?ee:new RefImpl(ee,ne)}class RefImpl{constructor(ne,oe){this.__v_isShallow=oe,this.dep=void 0,this.__v_isRef=!0,this._rawValue=oe?ne:toRaw(ne),this._value=oe?ne:toReactive(ne)}get value(){return trackRefValue(this),this._value}set value(ne){const oe=this.__v_isShallow||isShallow(ne)||isReadonly(ne);ne=oe?ne:toRaw(ne),hasChanged(ne,this._rawValue)&&(this._rawValue,this._rawValue=ne,this._value=oe?ne:toReactive(ne),triggerRefValue(this,4))}}function unref(ee){return isRef(ee)?ee.value:ee}const shallowUnwrapHandlers={get:(ee,ne,oe)=>unref(Reflect.get(ee,ne,oe)),set:(ee,ne,oe,ae)=>{const ie=ee[ne];return isRef(ie)&&!isRef(oe)?(ie.value=oe,!0):Reflect.set(ee,ne,oe,ae)}};function proxyRefs(ee){return isReactive(ee)?ee:new Proxy(ee,shallowUnwrapHandlers)}class CustomRefImpl{constructor(ne){this.dep=void 0,this.__v_isRef=!0;const{get:oe,set:ae}=ne(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=oe,this._set=ae}get value(){return this._get()}set value(ne){this._set(ne)}}function customRef(ee){return new CustomRefImpl(ee)}function toRefs(ee){const ne=isArray$5(ee)?new Array(ee.length):{};for(const oe in ee)ne[oe]=propertyToRef(ee,oe);return ne}class ObjectRefImpl{constructor(ne,oe,ae){this._object=ne,this._key=oe,this._defaultValue=ae,this.__v_isRef=!0}get value(){const ne=this._object[this._key];return ne===void 0?this._defaultValue:ne}set value(ne){this._object[this._key]=ne}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(ne){this._getter=ne,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1(ee,ne,oe){return isRef(ee)?ee:isFunction$5(ee)?new GetterRefImpl(ee):isObject$9(ee)&&arguments.length>1?propertyToRef(ee,ne,oe):ref(ee)}function propertyToRef(ee,ne,oe){const ae=ee[ne];return isRef(ae)?ae:new ObjectRefImpl(ee,ne,oe)}/** +* @vue/runtime-core v3.4.37 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const stack=[];let isWarning=!1;function warn$1(ee,...ne){if(isWarning)return;isWarning=!0,pauseTracking();const oe=stack.length?stack[stack.length-1].component:null,ae=oe&&oe.appContext.config.warnHandler,ie=getComponentTrace();if(ae)callWithErrorHandling(ae,oe,11,[ee+ne.map(se=>{var de,fe;return(fe=(de=se.toString)==null?void 0:de.call(se))!=null?fe:JSON.stringify(se)}).join(""),oe&&oe.proxy,ie.map(({vnode:se})=>`at <${formatComponentName(oe,se.type)}>`).join(` +`),ie]);else{const se=[`[Vue warn]: ${ee}`,...ne];ie.length&&se.push(` +`,...formatTrace(ie)),console.warn(...se)}resetTracking(),isWarning=!1}function getComponentTrace(){let ee=stack[stack.length-1];if(!ee)return[];const ne=[];for(;ee;){const oe=ne[0];oe&&oe.vnode===ee?oe.recurseCount++:ne.push({vnode:ee,recurseCount:0});const ae=ee.component&&ee.component.parent;ee=ae&&ae.vnode}return ne}function formatTrace(ee){const ne=[];return ee.forEach((oe,ae)=>{ne.push(...ae===0?[]:[` +`],...formatTraceEntry(oe))}),ne}function formatTraceEntry({vnode:ee,recurseCount:ne}){const oe=ne>0?`... (${ne} recursive calls)`:"",ae=ee.component?ee.component.parent==null:!1,ie=` at <${formatComponentName(ee.component,ee.type,ae)}`,se=">"+oe;return ee.props?[ie,...formatProps(ee.props),se]:[ie+se]}function formatProps(ee){const ne=[],oe=Object.keys(ee);return oe.slice(0,3).forEach(ae=>{ne.push(...formatProp(ae,ee[ae]))}),oe.length>3&&ne.push(" ..."),ne}function formatProp(ee,ne,oe){return isString$4(ne)?(ne=JSON.stringify(ne),oe?ne:[`${ee}=${ne}`]):typeof ne=="number"||typeof ne=="boolean"||ne==null?oe?ne:[`${ee}=${ne}`]:isRef(ne)?(ne=formatProp(ee,toRaw(ne.value),!0),oe?ne:[`${ee}=Ref<`,ne,">"]):isFunction$5(ne)?[`${ee}=fn${ne.name?`<${ne.name}>`:""}`]:(ne=toRaw(ne),oe?ne:[`${ee}=`,ne])}function callWithErrorHandling(ee,ne,oe,ae){try{return ae?ee(...ae):ee()}catch(ie){handleError(ie,ne,oe)}}function callWithAsyncErrorHandling(ee,ne,oe,ae){if(isFunction$5(ee)){const ie=callWithErrorHandling(ee,ne,oe,ae);return ie&&isPromise$2(ie)&&ie.catch(se=>{handleError(se,ne,oe)}),ie}if(isArray$5(ee)){const ie=[];for(let se=0;se>>1,ie=queue$1[ae],se=getId(ie);seflushIndex&&queue$1.splice(ne,1)}function queuePostFlushCb(ee){isArray$5(ee)?pendingPostFlushCbs.push(...ee):(!activePostFlushCbs||!activePostFlushCbs.includes(ee,ee.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(ee),queueFlush()}function flushPreFlushCbs(ee,ne,oe=isFlushing?flushIndex+1:0){for(;oegetId(oe)-getId(ae));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...ne);return}for(activePostFlushCbs=ne,postFlushIndex=0;postFlushIndexee.id==null?1/0:ee.id,comparator=(ee,ne)=>{const oe=getId(ee)-getId(ne);if(oe===0){if(ee.pre&&!ne.pre)return-1;if(ne.pre&&!ee.pre)return 1}return oe};function flushJobs(ee){isFlushPending=!1,isFlushing=!0,queue$1.sort(comparator);try{for(flushIndex=0;flushIndex{ae._d&&setBlockTracking(-1);const se=setCurrentRenderingInstance(ne);let de;try{de=ee(...ie)}finally{setCurrentRenderingInstance(se),ae._d&&setBlockTracking(1)}return de};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function withDirectives(ee,ne){if(currentRenderingInstance===null)return ee;const oe=getComponentPublicInstance(currentRenderingInstance),ae=ee.dirs||(ee.dirs=[]);for(let ie=0;ie{ee.isMounted=!0}),onBeforeUnmount(()=>{ee.isUnmounting=!0}),ee}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=ee=>{const ne=ee.subTree;return ne.component?recursiveGetSubtree(ne.component):ne},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(ee,{slots:ne}){const oe=getCurrentInstance(),ae=useTransitionState();return()=>{const ie=ne.default&&getTransitionRawChildren(ne.default(),!0);if(!ie||!ie.length)return;let se=ie[0];if(ie.length>1){for(const _e of ie)if(_e.type!==Comment$1){se=_e;break}}const de=toRaw(ee),{mode:fe}=de;if(ae.isLeaving)return emptyPlaceholder(se);const ve=getKeepAliveChild(se);if(!ve)return emptyPlaceholder(se);let be=resolveTransitionHooks(ve,de,ae,oe,_e=>be=_e);setTransitionHooks(ve,be);const ye=oe.subTree,$e=ye&&getKeepAliveChild(ye);if($e&&$e.type!==Comment$1&&!isSameVNodeType(ve,$e)&&recursiveGetSubtree(oe).type!==Comment$1){const _e=resolveTransitionHooks($e,de,ae,oe);if(setTransitionHooks($e,_e),fe==="out-in"&&ve.type!==Comment$1)return ae.isLeaving=!0,_e.afterLeave=()=>{ae.isLeaving=!1,oe.update.active!==!1&&(oe.effect.dirty=!0,oe.update())},emptyPlaceholder(se);fe==="in-out"&&ve.type!==Comment$1&&(_e.delayLeave=(Ee,we,Pe)=>{const Ce=getLeavingNodesForType(ae,$e);Ce[String($e.key)]=$e,Ee[leaveCbKey]=()=>{we(),Ee[leaveCbKey]=void 0,delete be.delayedLeave},be.delayedLeave=Pe})}return se}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(ee,ne){const{leavingVNodes:oe}=ee;let ae=oe.get(ne.type);return ae||(ae=Object.create(null),oe.set(ne.type,ae)),ae}function resolveTransitionHooks(ee,ne,oe,ae,ie){const{appear:se,mode:de,persisted:fe=!1,onBeforeEnter:ve,onEnter:be,onAfterEnter:ye,onEnterCancelled:$e,onBeforeLeave:_e,onLeave:Ee,onAfterLeave:we,onLeaveCancelled:Pe,onBeforeAppear:Ce,onAppear:Oe,onAfterAppear:Ae,onAppearCancelled:Ne}=ne,ke=String(ee.key),Re=getLeavingNodesForType(oe,ee),Le=(Fe,je)=>{Fe&&callWithAsyncErrorHandling(Fe,ae,9,je)},Me=(Fe,je)=>{const Be=je[1];Le(Fe,je),isArray$5(Fe)?Fe.every(He=>He.length<=1)&&Be():Fe.length<=1&&Be()},Ie={mode:de,persisted:fe,beforeEnter(Fe){let je=ve;if(!oe.isMounted)if(se)je=Ce||ve;else return;Fe[leaveCbKey]&&Fe[leaveCbKey](!0);const Be=Re[ke];Be&&isSameVNodeType(ee,Be)&&Be.el[leaveCbKey]&&Be.el[leaveCbKey](),Le(je,[Fe])},enter(Fe){let je=be,Be=ye,He=$e;if(!oe.isMounted)if(se)je=Oe||be,Be=Ae||ye,He=Ne||$e;else return;let ot=!1;const Nt=Fe[enterCbKey]=st=>{ot||(ot=!0,st?Le(He,[Fe]):Le(Be,[Fe]),Ie.delayedLeave&&Ie.delayedLeave(),Fe[enterCbKey]=void 0)};je?Me(je,[Fe,Nt]):Nt()},leave(Fe,je){const Be=String(ee.key);if(Fe[enterCbKey]&&Fe[enterCbKey](!0),oe.isUnmounting)return je();Le(_e,[Fe]);let He=!1;const ot=Fe[leaveCbKey]=Nt=>{He||(He=!0,je(),Nt?Le(Pe,[Fe]):Le(we,[Fe]),Fe[leaveCbKey]=void 0,Re[Be]===ee&&delete Re[Be])};Re[Be]=ee,Ee?Me(Ee,[Fe,ot]):ot()},clone(Fe){const je=resolveTransitionHooks(Fe,ne,oe,ae,ie);return ie&&ie(je),je}};return Ie}function emptyPlaceholder(ee){if(isKeepAlive(ee))return ee=cloneVNode(ee),ee.children=null,ee}function getKeepAliveChild(ee){if(!isKeepAlive(ee))return ee;const{shapeFlag:ne,children:oe}=ee;if(oe){if(ne&16)return oe[0];if(ne&32&&isFunction$5(oe.default))return oe.default()}}function setTransitionHooks(ee,ne){ee.shapeFlag&6&&ee.component?setTransitionHooks(ee.component.subTree,ne):ee.shapeFlag&128?(ee.ssContent.transition=ne.clone(ee.ssContent),ee.ssFallback.transition=ne.clone(ee.ssFallback)):ee.transition=ne}function getTransitionRawChildren(ee,ne=!1,oe){let ae=[],ie=0;for(let se=0;se1)for(let se=0;se!!ee.type.__asyncLoader,isKeepAlive=ee=>ee.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(ee,{slots:ne}){const oe=getCurrentInstance(),ae=oe.ctx;if(!ae.renderer)return()=>{const Ae=ne.default&&ne.default();return Ae&&Ae.length===1?Ae[0]:Ae};const ie=new Map,se=new Set;let de=null;const fe=oe.suspense,{renderer:{p:ve,m:be,um:ye,o:{createElement:$e}}}=ae,_e=$e("div");ae.activate=(Ae,Ne,ke,Re,Le)=>{const Me=Ae.component;be(Ae,Ne,ke,0,fe),ve(Me.vnode,Ae,Ne,ke,Me,fe,Re,Ae.slotScopeIds,Le),queuePostRenderEffect(()=>{Me.isDeactivated=!1,Me.a&&invokeArrayFns(Me.a);const Ie=Ae.props&&Ae.props.onVnodeMounted;Ie&&invokeVNodeHook(Ie,Me.parent,Ae)},fe)},ae.deactivate=Ae=>{const Ne=Ae.component;invalidateMount(Ne.m),invalidateMount(Ne.a),be(Ae,_e,null,1,fe),queuePostRenderEffect(()=>{Ne.da&&invokeArrayFns(Ne.da);const ke=Ae.props&&Ae.props.onVnodeUnmounted;ke&&invokeVNodeHook(ke,Ne.parent,Ae),Ne.isDeactivated=!0},fe)};function Ee(Ae){resetShapeFlag(Ae),ye(Ae,oe,fe,!0)}function we(Ae){ie.forEach((Ne,ke)=>{const Re=getComponentName(Ne.type);Re&&(!Ae||!Ae(Re))&&Pe(ke)})}function Pe(Ae){const Ne=ie.get(Ae);Ne&&(!de||!isSameVNodeType(Ne,de))?Ee(Ne):de&&resetShapeFlag(de),ie.delete(Ae),se.delete(Ae)}watch(()=>[ee.include,ee.exclude],([Ae,Ne])=>{Ae&&we(ke=>matches(Ae,ke)),Ne&&we(ke=>!matches(Ne,ke))},{flush:"post",deep:!0});let Ce=null;const Oe=()=>{Ce!=null&&(isSuspense(oe.subTree.type)?queuePostRenderEffect(()=>{ie.set(Ce,getInnerChild(oe.subTree))},oe.subTree.suspense):ie.set(Ce,getInnerChild(oe.subTree)))};return onMounted(Oe),onUpdated(Oe),onBeforeUnmount(()=>{ie.forEach(Ae=>{const{subTree:Ne,suspense:ke}=oe,Re=getInnerChild(Ne);if(Ae.type===Re.type&&Ae.key===Re.key){resetShapeFlag(Re);const Le=Re.component.da;Le&&queuePostRenderEffect(Le,ke);return}Ee(Ae)})}),()=>{if(Ce=null,!ne.default)return null;const Ae=ne.default(),Ne=Ae[0];if(Ae.length>1)return de=null,Ae;if(!isVNode$1(Ne)||!(Ne.shapeFlag&4)&&!(Ne.shapeFlag&128))return de=null,Ne;let ke=getInnerChild(Ne);if(ke.type===Comment$1)return de=null,ke;const Re=ke.type,Le=getComponentName(isAsyncWrapper(ke)?ke.type.__asyncResolved||{}:Re),{include:Me,exclude:Ie,max:Fe}=ee;if(Me&&(!Le||!matches(Me,Le))||Ie&&Le&&matches(Ie,Le))return de=ke,Ne;const je=ke.key==null?Re:ke.key,Be=ie.get(je);return ke.el&&(ke=cloneVNode(ke),Ne.shapeFlag&128&&(Ne.ssContent=ke)),Ce=je,Be?(ke.el=Be.el,ke.component=Be.component,ke.transition&&setTransitionHooks(ke,ke.transition),ke.shapeFlag|=512,se.delete(je),se.add(je)):(se.add(je),Fe&&se.size>parseInt(Fe,10)&&Pe(se.values().next().value)),ke.shapeFlag|=256,de=ke,isSuspense(Ne.type)?Ne:ke}}},KeepAlive=KeepAliveImpl;function matches(ee,ne){return isArray$5(ee)?ee.some(oe=>matches(oe,ne)):isString$4(ee)?ee.split(",").includes(ne):isRegExp$2(ee)?ee.test(ne):!1}function onActivated(ee,ne){registerKeepAliveHook(ee,"a",ne)}function onDeactivated(ee,ne){registerKeepAliveHook(ee,"da",ne)}function registerKeepAliveHook(ee,ne,oe=currentInstance){const ae=ee.__wdc||(ee.__wdc=()=>{let ie=oe;for(;ie;){if(ie.isDeactivated)return;ie=ie.parent}return ee()});if(injectHook(ne,ae,oe),oe){let ie=oe.parent;for(;ie&&ie.parent;)isKeepAlive(ie.parent.vnode)&&injectToKeepAliveRoot(ae,ne,oe,ie),ie=ie.parent}}function injectToKeepAliveRoot(ee,ne,oe,ae){const ie=injectHook(ne,ee,ae,!0);onUnmounted(()=>{remove(ae[ne],ie)},oe)}function resetShapeFlag(ee){ee.shapeFlag&=-257,ee.shapeFlag&=-513}function getInnerChild(ee){return ee.shapeFlag&128?ee.ssContent:ee}function injectHook(ee,ne,oe=currentInstance,ae=!1){if(oe){const ie=oe[ee]||(oe[ee]=[]),se=ne.__weh||(ne.__weh=(...de)=>{pauseTracking();const fe=setCurrentInstance(oe),ve=callWithAsyncErrorHandling(ne,oe,ee,de);return fe(),resetTracking(),ve});return ae?ie.unshift(se):ie.push(se),se}}const createHook=ee=>(ne,oe=currentInstance)=>{(!isInSSRComponentSetup||ee==="sp")&&injectHook(ee,(...ae)=>ne(...ae),oe)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(ee,ne=currentInstance){injectHook("ec",ee,ne)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(ee,ne){return resolveAsset(COMPONENTS,ee,!0,ne)||ee}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(ee){return isString$4(ee)?resolveAsset(COMPONENTS,ee,!1)||ee:ee||NULL_DYNAMIC_COMPONENT}function resolveDirective(ee){return resolveAsset(DIRECTIVES,ee)}function resolveAsset(ee,ne,oe=!0,ae=!1){const ie=currentRenderingInstance||currentInstance;if(ie){const se=ie.type;if(ee===COMPONENTS){const fe=getComponentName(se,!1);if(fe&&(fe===ne||fe===camelize$1(ne)||fe===capitalize$1(camelize$1(ne))))return se}const de=resolve(ie[ee]||se[ee],ne)||resolve(ie.appContext[ee],ne);return!de&&ae?se:de}}function resolve(ee,ne){return ee&&(ee[ne]||ee[camelize$1(ne)]||ee[capitalize$1(camelize$1(ne))])}function renderList(ee,ne,oe,ae){let ie;const se=oe;if(isArray$5(ee)||isString$4(ee)){ie=new Array(ee.length);for(let de=0,fe=ee.length;dene(de,fe,void 0,se));else{const de=Object.keys(ee);ie=new Array(de.length);for(let fe=0,ve=de.length;fe{const se=ae.fn(...ie);return se&&(se.key=ae.key),se}:ae.fn)}return ee}function renderSlot(ee,ne,oe={},ae,ie){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return ne!=="default"&&(oe.name=ne),createVNode("slot",oe,ae&&ae());let se=ee[ne];se&&se._c&&(se._d=!1),openBlock();const de=se&&ensureValidVNode(se(oe)),fe=createBlock(Fragment,{key:(oe.key||de&&de.key||`_${ne}`)+(!de&&ae?"_fb":"")},de||(ae?ae():[]),de&&ee._===1?64:-2);return!ie&&fe.scopeId&&(fe.slotScopeIds=[fe.scopeId+"-s"]),se&&se._c&&(se._d=!0),fe}function ensureValidVNode(ee){return ee.some(ne=>isVNode$1(ne)?!(ne.type===Comment$1||ne.type===Fragment&&!ensureValidVNode(ne.children)):!0)?ee:null}const getPublicInstance=ee=>ee?isStatefulComponent(ee)?getComponentPublicInstance(ee):getPublicInstance(ee.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:ee=>ee,$el:ee=>ee.vnode.el,$data:ee=>ee.data,$props:ee=>ee.props,$attrs:ee=>ee.attrs,$slots:ee=>ee.slots,$refs:ee=>ee.refs,$parent:ee=>getPublicInstance(ee.parent),$root:ee=>getPublicInstance(ee.root),$emit:ee=>ee.emit,$options:ee=>resolveMergedOptions(ee),$forceUpdate:ee=>ee.f||(ee.f=()=>{ee.effect.dirty=!0,queueJob(ee.update)}),$nextTick:ee=>ee.n||(ee.n=nextTick.bind(ee.proxy)),$watch:ee=>instanceWatch.bind(ee)}),hasSetupBinding=(ee,ne)=>ee!==EMPTY_OBJ&&!ee.__isScriptSetup&&hasOwn$1(ee,ne),PublicInstanceProxyHandlers={get({_:ee},ne){if(ne==="__v_skip")return!0;const{ctx:oe,setupState:ae,data:ie,props:se,accessCache:de,type:fe,appContext:ve}=ee;let be;if(ne[0]!=="$"){const Ee=de[ne];if(Ee!==void 0)switch(Ee){case 1:return ae[ne];case 2:return ie[ne];case 4:return oe[ne];case 3:return se[ne]}else{if(hasSetupBinding(ae,ne))return de[ne]=1,ae[ne];if(ie!==EMPTY_OBJ&&hasOwn$1(ie,ne))return de[ne]=2,ie[ne];if((be=ee.propsOptions[0])&&hasOwn$1(be,ne))return de[ne]=3,se[ne];if(oe!==EMPTY_OBJ&&hasOwn$1(oe,ne))return de[ne]=4,oe[ne];shouldCacheAccess&&(de[ne]=0)}}const ye=publicPropertiesMap[ne];let $e,_e;if(ye)return ne==="$attrs"&&track(ee.attrs,"get",""),ye(ee);if(($e=fe.__cssModules)&&($e=$e[ne]))return $e;if(oe!==EMPTY_OBJ&&hasOwn$1(oe,ne))return de[ne]=4,oe[ne];if(_e=ve.config.globalProperties,hasOwn$1(_e,ne))return _e[ne]},set({_:ee},ne,oe){const{data:ae,setupState:ie,ctx:se}=ee;return hasSetupBinding(ie,ne)?(ie[ne]=oe,!0):ae!==EMPTY_OBJ&&hasOwn$1(ae,ne)?(ae[ne]=oe,!0):hasOwn$1(ee.props,ne)||ne[0]==="$"&&ne.slice(1)in ee?!1:(se[ne]=oe,!0)},has({_:{data:ee,setupState:ne,accessCache:oe,ctx:ae,appContext:ie,propsOptions:se}},de){let fe;return!!oe[de]||ee!==EMPTY_OBJ&&hasOwn$1(ee,de)||hasSetupBinding(ne,de)||(fe=se[0])&&hasOwn$1(fe,de)||hasOwn$1(ae,de)||hasOwn$1(publicPropertiesMap,de)||hasOwn$1(ie.config.globalProperties,de)},defineProperty(ee,ne,oe){return oe.get!=null?ee._.accessCache[ne]=0:hasOwn$1(oe,"value")&&this.set(ee,ne,oe.value,null),Reflect.defineProperty(ee,ne,oe)}};function useSlots(){return getContext().slots}function getContext(){const ee=getCurrentInstance();return ee.setupContext||(ee.setupContext=createSetupContext(ee))}function normalizePropsOrEmits(ee){return isArray$5(ee)?ee.reduce((ne,oe)=>(ne[oe]=null,ne),{}):ee}function mergeModels(ee,ne){return!ee||!ne?ee||ne:isArray$5(ee)&&isArray$5(ne)?ee.concat(ne):extend$2({},normalizePropsOrEmits(ee),normalizePropsOrEmits(ne))}let shouldCacheAccess=!0;function applyOptions(ee){const ne=resolveMergedOptions(ee),oe=ee.proxy,ae=ee.ctx;shouldCacheAccess=!1,ne.beforeCreate&&callHook$1(ne.beforeCreate,ee,"bc");const{data:ie,computed:se,methods:de,watch:fe,provide:ve,inject:be,created:ye,beforeMount:$e,mounted:_e,beforeUpdate:Ee,updated:we,activated:Pe,deactivated:Ce,beforeDestroy:Oe,beforeUnmount:Ae,destroyed:Ne,unmounted:ke,render:Re,renderTracked:Le,renderTriggered:Me,errorCaptured:Ie,serverPrefetch:Fe,expose:je,inheritAttrs:Be,components:He,directives:ot,filters:Nt}=ne;if(be&&resolveInjections(be,ae,null),de)for(const Ze in de){const Tt=de[Ze];isFunction$5(Tt)&&(ae[Ze]=Tt.bind(oe))}if(ie){const Ze=ie.call(oe,oe);isObject$9(Ze)&&(ee.data=reactive(Ze))}if(shouldCacheAccess=!0,se)for(const Ze in se){const Tt=se[Ze],Vt=isFunction$5(Tt)?Tt.bind(oe,oe):isFunction$5(Tt.get)?Tt.get.bind(oe,oe):NOOP,Ut=!isFunction$5(Tt)&&isFunction$5(Tt.set)?Tt.set.bind(oe):NOOP,We=computed({get:Vt,set:Ut});Object.defineProperty(ae,Ze,{enumerable:!0,configurable:!0,get:()=>We.value,set:Pt=>We.value=Pt})}if(fe)for(const Ze in fe)createWatcher(fe[Ze],ae,oe,Ze);if(ve){const Ze=isFunction$5(ve)?ve.call(oe):ve;Reflect.ownKeys(Ze).forEach(Tt=>{provide(Tt,Ze[Tt])})}ye&&callHook$1(ye,ee,"c");function Ue(Ze,Tt){isArray$5(Tt)?Tt.forEach(Vt=>Ze(Vt.bind(oe))):Tt&&Ze(Tt.bind(oe))}if(Ue(onBeforeMount,$e),Ue(onMounted,_e),Ue(onBeforeUpdate,Ee),Ue(onUpdated,we),Ue(onActivated,Pe),Ue(onDeactivated,Ce),Ue(onErrorCaptured,Ie),Ue(onRenderTracked,Le),Ue(onRenderTriggered,Me),Ue(onBeforeUnmount,Ae),Ue(onUnmounted,ke),Ue(onServerPrefetch,Fe),isArray$5(je))if(je.length){const Ze=ee.exposed||(ee.exposed={});je.forEach(Tt=>{Object.defineProperty(Ze,Tt,{get:()=>oe[Tt],set:Vt=>oe[Tt]=Vt})})}else ee.exposed||(ee.exposed={});Re&&ee.render===NOOP&&(ee.render=Re),Be!=null&&(ee.inheritAttrs=Be),He&&(ee.components=He),ot&&(ee.directives=ot)}function resolveInjections(ee,ne,oe=NOOP){isArray$5(ee)&&(ee=normalizeInject(ee));for(const ae in ee){const ie=ee[ae];let se;isObject$9(ie)?"default"in ie?se=inject(ie.from||ae,ie.default,!0):se=inject(ie.from||ae):se=inject(ie),isRef(se)?Object.defineProperty(ne,ae,{enumerable:!0,configurable:!0,get:()=>se.value,set:de=>se.value=de}):ne[ae]=se}}function callHook$1(ee,ne,oe){callWithAsyncErrorHandling(isArray$5(ee)?ee.map(ae=>ae.bind(ne.proxy)):ee.bind(ne.proxy),ne,oe)}function createWatcher(ee,ne,oe,ae){const ie=ae.includes(".")?createPathGetter(oe,ae):()=>oe[ae];if(isString$4(ee)){const se=ne[ee];isFunction$5(se)&&watch(ie,se)}else if(isFunction$5(ee))watch(ie,ee.bind(oe));else if(isObject$9(ee))if(isArray$5(ee))ee.forEach(se=>createWatcher(se,ne,oe,ae));else{const se=isFunction$5(ee.handler)?ee.handler.bind(oe):ne[ee.handler];isFunction$5(se)&&watch(ie,se,ee)}}function resolveMergedOptions(ee){const ne=ee.type,{mixins:oe,extends:ae}=ne,{mixins:ie,optionsCache:se,config:{optionMergeStrategies:de}}=ee.appContext,fe=se.get(ne);let ve;return fe?ve=fe:!ie.length&&!oe&&!ae?ve=ne:(ve={},ie.length&&ie.forEach(be=>mergeOptions$1(ve,be,de,!0)),mergeOptions$1(ve,ne,de)),isObject$9(ne)&&se.set(ne,ve),ve}function mergeOptions$1(ee,ne,oe,ae=!1){const{mixins:ie,extends:se}=ne;se&&mergeOptions$1(ee,se,oe,!0),ie&&ie.forEach(de=>mergeOptions$1(ee,de,oe,!0));for(const de in ne)if(!(ae&&de==="expose")){const fe=internalOptionMergeStrats[de]||oe&&oe[de];ee[de]=fe?fe(ee[de],ne[de]):ne[de]}return ee}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(ee,ne){return ne?ee?function(){return extend$2(isFunction$5(ee)?ee.call(this,this):ee,isFunction$5(ne)?ne.call(this,this):ne)}:ne:ee}function mergeInject(ee,ne){return mergeObjectOptions(normalizeInject(ee),normalizeInject(ne))}function normalizeInject(ee){if(isArray$5(ee)){const ne={};for(let oe=0;oe1)return oe&&isFunction$5(ne)?ne.call(ae&&ae.proxy):ne}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=ee=>Object.getPrototypeOf(ee)===internalObjectProto;function initProps(ee,ne,oe,ae=!1){const ie={},se=createInternalObject();ee.propsDefaults=Object.create(null),setFullProps(ee,ne,ie,se);for(const de in ee.propsOptions[0])de in ie||(ie[de]=void 0);oe?ee.props=ae?ie:shallowReactive(ie):ee.type.props?ee.props=ie:ee.props=se,ee.attrs=se}function updateProps(ee,ne,oe,ae){const{props:ie,attrs:se,vnode:{patchFlag:de}}=ee,fe=toRaw(ie),[ve]=ee.propsOptions;let be=!1;if((ae||de>0)&&!(de&16)){if(de&8){const ye=ee.vnode.dynamicProps;for(let $e=0;$e{ve=!0;const[_e,Ee]=normalizePropsOptions($e,ne,!0);extend$2(de,_e),Ee&&fe.push(...Ee)};!oe&&ne.mixins.length&&ne.mixins.forEach(ye),ee.extends&&ye(ee.extends),ee.mixins&&ee.mixins.forEach(ye)}if(!se&&!ve)return isObject$9(ee)&&ae.set(ee,EMPTY_ARR),EMPTY_ARR;if(isArray$5(se))for(let ye=0;yeee[0]==="_"||ee==="$stable",normalizeSlotValue=ee=>isArray$5(ee)?ee.map(normalizeVNode):[normalizeVNode(ee)],normalizeSlot$1=(ee,ne,oe)=>{if(ne._n)return ne;const ae=withCtx((...ie)=>normalizeSlotValue(ne(...ie)),oe);return ae._c=!1,ae},normalizeObjectSlots=(ee,ne,oe)=>{const ae=ee._ctx;for(const ie in ee){if(isInternalKey(ie))continue;const se=ee[ie];if(isFunction$5(se))ne[ie]=normalizeSlot$1(ie,se,ae);else if(se!=null){const de=normalizeSlotValue(se);ne[ie]=()=>de}}},normalizeVNodeSlots=(ee,ne)=>{const oe=normalizeSlotValue(ne);ee.slots.default=()=>oe},assignSlots=(ee,ne,oe)=>{for(const ae in ne)(oe||ae!=="_")&&(ee[ae]=ne[ae])},initSlots=(ee,ne,oe)=>{const ae=ee.slots=createInternalObject();if(ee.vnode.shapeFlag&32){const ie=ne._;ie?(assignSlots(ae,ne,oe),oe&&def(ae,"_",ie,!0)):normalizeObjectSlots(ne,ae)}else ne&&normalizeVNodeSlots(ee,ne)},updateSlots=(ee,ne,oe)=>{const{vnode:ae,slots:ie}=ee;let se=!0,de=EMPTY_OBJ;if(ae.shapeFlag&32){const fe=ne._;fe?oe&&fe===1?se=!1:assignSlots(ie,ne,oe):(se=!ne.$stable,normalizeObjectSlots(ne,ie)),de=ne}else ne&&(normalizeVNodeSlots(ee,ne),de={default:1});if(se)for(const fe in ie)!isInternalKey(fe)&&de[fe]==null&&delete ie[fe]};function setRef(ee,ne,oe,ae,ie=!1){if(isArray$5(ee)){ee.forEach((_e,Ee)=>setRef(_e,ne&&(isArray$5(ne)?ne[Ee]:ne),oe,ae,ie));return}if(isAsyncWrapper(ae)&&!ie)return;const se=ae.shapeFlag&4?getComponentPublicInstance(ae.component):ae.el,de=ie?null:se,{i:fe,r:ve}=ee,be=ne&&ne.r,ye=fe.refs===EMPTY_OBJ?fe.refs={}:fe.refs,$e=fe.setupState;if(be!=null&&be!==ve&&(isString$4(be)?(ye[be]=null,hasOwn$1($e,be)&&($e[be]=null)):isRef(be)&&(be.value=null)),isFunction$5(ve))callWithErrorHandling(ve,fe,12,[de,ye]);else{const _e=isString$4(ve),Ee=isRef(ve);if(_e||Ee){const we=()=>{if(ee.f){const Pe=_e?hasOwn$1($e,ve)?$e[ve]:ye[ve]:ve.value;ie?isArray$5(Pe)&&remove(Pe,se):isArray$5(Pe)?Pe.includes(se)||Pe.push(se):_e?(ye[ve]=[se],hasOwn$1($e,ve)&&($e[ve]=ye[ve])):(ve.value=[se],ee.k&&(ye[ee.k]=ve.value))}else _e?(ye[ve]=de,hasOwn$1($e,ve)&&($e[ve]=de)):Ee&&(ve.value=de,ee.k&&(ye[ee.k]=de))};de?(we.id=-1,queuePostRenderEffect(we,oe)):we()}}}const TeleportEndKey=Symbol("_vte"),isTeleport=ee=>ee.__isTeleport,isTeleportDisabled=ee=>ee&&(ee.disabled||ee.disabled===""),isTargetSVG=ee=>typeof SVGElement<"u"&&ee instanceof SVGElement,isTargetMathML=ee=>typeof MathMLElement=="function"&&ee instanceof MathMLElement,resolveTarget=(ee,ne)=>{const oe=ee&&ee.to;return isString$4(oe)?ne?ne(oe):null:oe},TeleportImpl={name:"Teleport",__isTeleport:!0,process(ee,ne,oe,ae,ie,se,de,fe,ve,be){const{mc:ye,pc:$e,pbc:_e,o:{insert:Ee,querySelector:we,createText:Pe,createComment:Ce}}=be,Oe=isTeleportDisabled(ne.props);let{shapeFlag:Ae,children:Ne,dynamicChildren:ke}=ne;if(ee==null){const Re=ne.el=Pe(""),Le=ne.anchor=Pe("");Ee(Re,oe,ae),Ee(Le,oe,ae);const Me=ne.target=resolveTarget(ne.props,we),Ie=prepareAnchor(Me,ne,Pe,Ee);Me&&(de==="svg"||isTargetSVG(Me)?de="svg":(de==="mathml"||isTargetMathML(Me))&&(de="mathml"));const Fe=(je,Be)=>{Ae&16&&ye(Ne,je,Be,ie,se,de,fe,ve)};Oe?Fe(oe,Le):Me&&Fe(Me,Ie)}else{ne.el=ee.el,ne.targetStart=ee.targetStart;const Re=ne.anchor=ee.anchor,Le=ne.target=ee.target,Me=ne.targetAnchor=ee.targetAnchor,Ie=isTeleportDisabled(ee.props),Fe=Ie?oe:Le,je=Ie?Re:Me;if(de==="svg"||isTargetSVG(Le)?de="svg":(de==="mathml"||isTargetMathML(Le))&&(de="mathml"),ke?(_e(ee.dynamicChildren,ke,Fe,ie,se,de,fe),traverseStaticChildren(ee,ne,!0)):ve||$e(ee,ne,Fe,je,ie,se,de,fe,!1),Oe)Ie?ne.props&&ee.props&&ne.props.to!==ee.props.to&&(ne.props.to=ee.props.to):moveTeleport(ne,oe,Re,be,1);else if((ne.props&&ne.props.to)!==(ee.props&&ee.props.to)){const Be=ne.target=resolveTarget(ne.props,we);Be&&moveTeleport(ne,Be,null,be,0)}else Ie&&moveTeleport(ne,Le,Me,be,1)}updateCssVars(ne)},remove(ee,ne,oe,{um:ae,o:{remove:ie}},se){const{shapeFlag:de,children:fe,anchor:ve,targetStart:be,targetAnchor:ye,target:$e,props:_e}=ee;if($e&&(ie(be),ie(ye)),se&&ie(ve),de&16){const Ee=se||!isTeleportDisabled(_e);for(let we=0;we{if(Xe===nt)return;Xe&&!isSameVNodeType(Xe,nt)&&(Gt=Ke(Xe),Pt(Xe,Kt,Xt,!0),Xe=null),nt.patchFlag===-2&&(Qe=!1,nt.dynamicChildren=null);const{type:kt,ref:Yt,shapeFlag:nn}=nt;switch(kt){case Text:Ce(Xe,nt,Bt,Gt);break;case Comment$1:Oe(Xe,nt,Bt,Gt);break;case Static:Xe==null&&Ae(nt,Bt,Gt,Qt);break;case Fragment:He(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe);break;default:nn&1?Re(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe):nn&6?ot(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe):(nn&64||nn&128)&&kt.process(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe,Dt)}Yt!=null&&Kt&&setRef(Yt,Xe&&Xe.ref,Xt,nt||Xe,!nt)},Ce=(Xe,nt,Bt,Gt)=>{if(Xe==null)ae(nt.el=fe(nt.children),Bt,Gt);else{const Kt=nt.el=Xe.el;nt.children!==Xe.children&&be(Kt,nt.children)}},Oe=(Xe,nt,Bt,Gt)=>{Xe==null?ae(nt.el=ve(nt.children||""),Bt,Gt):nt.el=Xe.el},Ae=(Xe,nt,Bt,Gt)=>{[Xe.el,Xe.anchor]=we(Xe.children,nt,Bt,Gt,Xe.el,Xe.anchor)},Ne=({el:Xe,anchor:nt},Bt,Gt)=>{let Kt;for(;Xe&&Xe!==nt;)Kt=_e(Xe),ae(Xe,Bt,Gt),Xe=Kt;ae(nt,Bt,Gt)},ke=({el:Xe,anchor:nt})=>{let Bt;for(;Xe&&Xe!==nt;)Bt=_e(Xe),ie(Xe),Xe=Bt;ie(nt)},Re=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe)=>{nt.type==="svg"?Qt="svg":nt.type==="math"&&(Qt="mathml"),Xe==null?Le(nt,Bt,Gt,Kt,Xt,Qt,qe,Qe):Fe(Xe,nt,Kt,Xt,Qt,qe,Qe)},Le=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe)=>{let Qe,kt;const{props:Yt,shapeFlag:nn,transition:en,dirs:Ft}=Xe;if(Qe=Xe.el=de(Xe.type,Xt,Yt&&Yt.is,Yt),nn&8?ye(Qe,Xe.children):nn&16&&Ie(Xe.children,Qe,null,Gt,Kt,resolveChildrenNamespace(Xe,Xt),Qt,qe),Ft&&invokeDirectiveHook(Xe,null,Gt,"created"),Me(Qe,Xe,Xe.scopeId,Qt,Gt),Yt){for(const sn in Yt)sn!=="value"&&!isReservedProp(sn)&&se(Qe,sn,null,Yt[sn],Xt,Gt);"value"in Yt&&se(Qe,"value",null,Yt.value,Xt),(kt=Yt.onVnodeBeforeMount)&&invokeVNodeHook(kt,Gt,Xe)}Ft&&invokeDirectiveHook(Xe,null,Gt,"beforeMount");const qt=needTransition(Kt,en);qt&&en.beforeEnter(Qe),ae(Qe,nt,Bt),((kt=Yt&&Yt.onVnodeMounted)||qt||Ft)&&queuePostRenderEffect(()=>{kt&&invokeVNodeHook(kt,Gt,Xe),qt&&en.enter(Qe),Ft&&invokeDirectiveHook(Xe,null,Gt,"mounted")},Kt)},Me=(Xe,nt,Bt,Gt,Kt)=>{if(Bt&&Ee(Xe,Bt),Gt)for(let Xt=0;Xt{for(let kt=Qe;kt{const qe=nt.el=Xe.el;let{patchFlag:Qe,dynamicChildren:kt,dirs:Yt}=nt;Qe|=Xe.patchFlag&16;const nn=Xe.props||EMPTY_OBJ,en=nt.props||EMPTY_OBJ;let Ft;if(Bt&&toggleRecurse(Bt,!1),(Ft=en.onVnodeBeforeUpdate)&&invokeVNodeHook(Ft,Bt,nt,Xe),Yt&&invokeDirectiveHook(nt,Xe,Bt,"beforeUpdate"),Bt&&toggleRecurse(Bt,!0),(nn.innerHTML&&en.innerHTML==null||nn.textContent&&en.textContent==null)&&ye(qe,""),kt?je(Xe.dynamicChildren,kt,qe,Bt,Gt,resolveChildrenNamespace(nt,Kt),Xt):Qt||Tt(Xe,nt,qe,null,Bt,Gt,resolveChildrenNamespace(nt,Kt),Xt,!1),Qe>0){if(Qe&16)Be(qe,nn,en,Bt,Kt);else if(Qe&2&&nn.class!==en.class&&se(qe,"class",null,en.class,Kt),Qe&4&&se(qe,"style",nn.style,en.style,Kt),Qe&8){const qt=nt.dynamicProps;for(let sn=0;sn{Ft&&invokeVNodeHook(Ft,Bt,nt,Xe),Yt&&invokeDirectiveHook(nt,Xe,Bt,"updated")},Gt)},je=(Xe,nt,Bt,Gt,Kt,Xt,Qt)=>{for(let qe=0;qe{if(nt!==Bt){if(nt!==EMPTY_OBJ)for(const Xt in nt)!isReservedProp(Xt)&&!(Xt in Bt)&&se(Xe,Xt,nt[Xt],null,Kt,Gt);for(const Xt in Bt){if(isReservedProp(Xt))continue;const Qt=Bt[Xt],qe=nt[Xt];Qt!==qe&&Xt!=="value"&&se(Xe,Xt,qe,Qt,Kt,Gt)}"value"in Bt&&se(Xe,"value",nt.value,Bt.value,Kt)}},He=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe)=>{const kt=nt.el=Xe?Xe.el:fe(""),Yt=nt.anchor=Xe?Xe.anchor:fe("");let{patchFlag:nn,dynamicChildren:en,slotScopeIds:Ft}=nt;Ft&&(qe=qe?qe.concat(Ft):Ft),Xe==null?(ae(kt,Bt,Gt),ae(Yt,Bt,Gt),Ie(nt.children||[],Bt,Yt,Kt,Xt,Qt,qe,Qe)):nn>0&&nn&64&&en&&Xe.dynamicChildren?(je(Xe.dynamicChildren,en,Bt,Kt,Xt,Qt,qe),(nt.key!=null||Kt&&nt===Kt.subTree)&&traverseStaticChildren(Xe,nt,!0)):Tt(Xe,nt,Bt,Yt,Kt,Xt,Qt,qe,Qe)},ot=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe)=>{nt.slotScopeIds=qe,Xe==null?nt.shapeFlag&512?Kt.ctx.activate(nt,Bt,Gt,Qt,Qe):Nt(nt,Bt,Gt,Kt,Xt,Qt,Qe):st(Xe,nt,Qe)},Nt=(Xe,nt,Bt,Gt,Kt,Xt,Qt)=>{const qe=Xe.component=createComponentInstance(Xe,Gt,Kt);if(isKeepAlive(Xe)&&(qe.ctx.renderer=Dt),setupComponent(qe,!1,Qt),qe.asyncDep){if(Kt&&Kt.registerDep(qe,Ue,Qt),!Xe.el){const Qe=qe.subTree=createVNode(Comment$1);Oe(null,Qe,nt,Bt)}}else Ue(qe,Xe,nt,Bt,Kt,Xt,Qt)},st=(Xe,nt,Bt)=>{const Gt=nt.component=Xe.component;if(shouldUpdateComponent(Xe,nt,Bt))if(Gt.asyncDep&&!Gt.asyncResolved){Ze(Gt,nt,Bt);return}else Gt.next=nt,invalidateJob(Gt.update),Gt.effect.dirty=!0,Gt.update();else nt.el=Xe.el,Gt.vnode=nt},Ue=(Xe,nt,Bt,Gt,Kt,Xt,Qt)=>{const qe=()=>{if(Xe.isMounted){let{next:Yt,bu:nn,u:en,parent:Ft,vnode:qt}=Xe;{const mn=locateNonHydratedAsyncRoot(Xe);if(mn){Yt&&(Yt.el=qt.el,Ze(Xe,Yt,Qt)),mn.asyncDep.then(()=>{Xe.isUnmounted||qe()});return}}let sn=Yt,an;toggleRecurse(Xe,!1),Yt?(Yt.el=qt.el,Ze(Xe,Yt,Qt)):Yt=qt,nn&&invokeArrayFns(nn),(an=Yt.props&&Yt.props.onVnodeBeforeUpdate)&&invokeVNodeHook(an,Ft,Yt,qt),toggleRecurse(Xe,!0);const un=renderComponentRoot(Xe),fn=Xe.subTree;Xe.subTree=un,Pe(fn,un,$e(fn.el),Ke(fn),Xe,Kt,Xt),Yt.el=un.el,sn===null&&updateHOCHostEl(Xe,un.el),en&&queuePostRenderEffect(en,Kt),(an=Yt.props&&Yt.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(an,Ft,Yt,qt),Kt)}else{let Yt;const{el:nn,props:en}=nt,{bm:Ft,m:qt,parent:sn}=Xe,an=isAsyncWrapper(nt);if(toggleRecurse(Xe,!1),Ft&&invokeArrayFns(Ft),!an&&(Yt=en&&en.onVnodeBeforeMount)&&invokeVNodeHook(Yt,sn,nt),toggleRecurse(Xe,!0),nn&&Zt){const un=()=>{Xe.subTree=renderComponentRoot(Xe),Zt(nn,Xe.subTree,Xe,Kt,null)};an?nt.type.__asyncLoader().then(()=>!Xe.isUnmounted&&un()):un()}else{const un=Xe.subTree=renderComponentRoot(Xe);Pe(null,un,Bt,Gt,Xe,Kt,Xt),nt.el=un.el}if(qt&&queuePostRenderEffect(qt,Kt),!an&&(Yt=en&&en.onVnodeMounted)){const un=nt;queuePostRenderEffect(()=>invokeVNodeHook(Yt,sn,un),Kt)}(nt.shapeFlag&256||sn&&isAsyncWrapper(sn.vnode)&&sn.vnode.shapeFlag&256)&&Xe.a&&queuePostRenderEffect(Xe.a,Kt),Xe.isMounted=!0,nt=Bt=Gt=null}},Qe=Xe.effect=new ReactiveEffect(qe,NOOP,()=>queueJob(kt),Xe.scope),kt=Xe.update=()=>{Qe.dirty&&Qe.run()};kt.i=Xe,kt.id=Xe.uid,toggleRecurse(Xe,!0),kt()},Ze=(Xe,nt,Bt)=>{nt.component=Xe;const Gt=Xe.vnode.props;Xe.vnode=nt,Xe.next=null,updateProps(Xe,nt.props,Gt,Bt),updateSlots(Xe,nt.children,Bt),pauseTracking(),flushPreFlushCbs(Xe),resetTracking()},Tt=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe=!1)=>{const kt=Xe&&Xe.children,Yt=Xe?Xe.shapeFlag:0,nn=nt.children,{patchFlag:en,shapeFlag:Ft}=nt;if(en>0){if(en&128){Ut(kt,nn,Bt,Gt,Kt,Xt,Qt,qe,Qe);return}else if(en&256){Vt(kt,nn,Bt,Gt,Kt,Xt,Qt,qe,Qe);return}}Ft&8?(Yt&16&&Wt(kt,Kt,Xt),nn!==kt&&ye(Bt,nn)):Yt&16?Ft&16?Ut(kt,nn,Bt,Gt,Kt,Xt,Qt,qe,Qe):Wt(kt,Kt,Xt,!0):(Yt&8&&ye(Bt,""),Ft&16&&Ie(nn,Bt,Gt,Kt,Xt,Qt,qe,Qe))},Vt=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe)=>{Xe=Xe||EMPTY_ARR,nt=nt||EMPTY_ARR;const kt=Xe.length,Yt=nt.length,nn=Math.min(kt,Yt);let en;for(en=0;enYt?Wt(Xe,Kt,Xt,!0,!1,nn):Ie(nt,Bt,Gt,Kt,Xt,Qt,qe,Qe,nn)},Ut=(Xe,nt,Bt,Gt,Kt,Xt,Qt,qe,Qe)=>{let kt=0;const Yt=nt.length;let nn=Xe.length-1,en=Yt-1;for(;kt<=nn&&kt<=en;){const Ft=Xe[kt],qt=nt[kt]=Qe?cloneIfMounted(nt[kt]):normalizeVNode(nt[kt]);if(isSameVNodeType(Ft,qt))Pe(Ft,qt,Bt,null,Kt,Xt,Qt,qe,Qe);else break;kt++}for(;kt<=nn&&kt<=en;){const Ft=Xe[nn],qt=nt[en]=Qe?cloneIfMounted(nt[en]):normalizeVNode(nt[en]);if(isSameVNodeType(Ft,qt))Pe(Ft,qt,Bt,null,Kt,Xt,Qt,qe,Qe);else break;nn--,en--}if(kt>nn){if(kt<=en){const Ft=en+1,qt=Ften)for(;kt<=nn;)Pt(Xe[kt],Kt,Xt,!0),kt++;else{const Ft=kt,qt=kt,sn=new Map;for(kt=qt;kt<=en;kt++){const hn=nt[kt]=Qe?cloneIfMounted(nt[kt]):normalizeVNode(nt[kt]);hn.key!=null&&sn.set(hn.key,kt)}let an,un=0;const fn=en-qt+1;let mn=!1,bn=0;const vn=new Array(fn);for(kt=0;kt=fn){Pt(hn,Kt,Xt,!0);continue}let pn;if(hn.key!=null)pn=sn.get(hn.key);else for(an=qt;an<=en;an++)if(vn[an-qt]===0&&isSameVNodeType(hn,nt[an])){pn=an;break}pn===void 0?Pt(hn,Kt,Xt,!0):(vn[pn-qt]=kt+1,pn>=bn?bn=pn:mn=!0,Pe(hn,nt[pn],Bt,null,Kt,Xt,Qt,qe,Qe),un++)}const gn=mn?getSequence(vn):EMPTY_ARR;for(an=gn.length-1,kt=fn-1;kt>=0;kt--){const hn=qt+kt,pn=nt[hn],_n=hn+1{const{el:Xt,type:Qt,transition:qe,children:Qe,shapeFlag:kt}=Xe;if(kt&6){We(Xe.component.subTree,nt,Bt,Gt);return}if(kt&128){Xe.suspense.move(nt,Bt,Gt);return}if(kt&64){Qt.move(Xe,nt,Bt,Dt);return}if(Qt===Fragment){ae(Xt,nt,Bt);for(let nn=0;nnqe.enter(Xt),Kt);else{const{leave:nn,delayLeave:en,afterLeave:Ft}=qe,qt=()=>ae(Xt,nt,Bt),sn=()=>{nn(Xt,()=>{qt(),Ft&&Ft()})};en?en(Xt,qt,sn):sn()}else ae(Xt,nt,Bt)},Pt=(Xe,nt,Bt,Gt=!1,Kt=!1)=>{const{type:Xt,props:Qt,ref:qe,children:Qe,dynamicChildren:kt,shapeFlag:Yt,patchFlag:nn,dirs:en,cacheIndex:Ft}=Xe;if(nn===-2&&(Kt=!1),qe!=null&&setRef(qe,null,Bt,Xe,!0),Ft!=null&&(nt.renderCache[Ft]=void 0),Yt&256){nt.ctx.deactivate(Xe);return}const qt=Yt&1&&en,sn=!isAsyncWrapper(Xe);let an;if(sn&&(an=Qt&&Qt.onVnodeBeforeUnmount)&&invokeVNodeHook(an,nt,Xe),Yt&6)Rt(Xe.component,Bt,Gt);else{if(Yt&128){Xe.suspense.unmount(Bt,Gt);return}qt&&invokeDirectiveHook(Xe,null,nt,"beforeUnmount"),Yt&64?Xe.type.remove(Xe,nt,Bt,Dt,Gt):kt&&!kt.hasOnce&&(Xt!==Fragment||nn>0&&nn&64)?Wt(kt,nt,Bt,!1,!0):(Xt===Fragment&&nn&384||!Kt&&Yt&16)&&Wt(Qe,nt,Bt),Gt&&Mt(Xe)}(sn&&(an=Qt&&Qt.onVnodeUnmounted)||qt)&&queuePostRenderEffect(()=>{an&&invokeVNodeHook(an,nt,Xe),qt&&invokeDirectiveHook(Xe,null,nt,"unmounted")},Bt)},Mt=Xe=>{const{type:nt,el:Bt,anchor:Gt,transition:Kt}=Xe;if(nt===Fragment){jt(Bt,Gt);return}if(nt===Static){ke(Xe);return}const Xt=()=>{ie(Bt),Kt&&!Kt.persisted&&Kt.afterLeave&&Kt.afterLeave()};if(Xe.shapeFlag&1&&Kt&&!Kt.persisted){const{leave:Qt,delayLeave:qe}=Kt,Qe=()=>Qt(Bt,Xt);qe?qe(Xe.el,Xt,Qe):Qe()}else Xt()},jt=(Xe,nt)=>{let Bt;for(;Xe!==nt;)Bt=_e(Xe),ie(Xe),Xe=Bt;ie(nt)},Rt=(Xe,nt,Bt)=>{const{bum:Gt,scope:Kt,update:Xt,subTree:Qt,um:qe,m:Qe,a:kt}=Xe;invalidateMount(Qe),invalidateMount(kt),Gt&&invokeArrayFns(Gt),Kt.stop(),Xt&&(Xt.active=!1,Pt(Qt,Xe,nt,Bt)),qe&&queuePostRenderEffect(qe,nt),queuePostRenderEffect(()=>{Xe.isUnmounted=!0},nt),nt&&nt.pendingBranch&&!nt.isUnmounted&&Xe.asyncDep&&!Xe.asyncResolved&&Xe.suspenseId===nt.pendingId&&(nt.deps--,nt.deps===0&&nt.resolve())},Wt=(Xe,nt,Bt,Gt=!1,Kt=!1,Xt=0)=>{for(let Qt=Xt;Qt{if(Xe.shapeFlag&6)return Ke(Xe.component.subTree);if(Xe.shapeFlag&128)return Xe.suspense.next();const nt=_e(Xe.anchor||Xe.el),Bt=nt&&nt[TeleportEndKey];return Bt?_e(Bt):nt};let It=!1;const Lt=(Xe,nt,Bt)=>{Xe==null?nt._vnode&&Pt(nt._vnode,null,null,!0):Pe(nt._vnode||null,Xe,nt,null,null,null,Bt),nt._vnode=Xe,It||(It=!0,flushPreFlushCbs(),flushPostFlushCbs(),It=!1)},Dt={p:Pe,um:Pt,m:We,r:Mt,mt:Nt,mc:Ie,pc:Tt,pbc:je,n:Ke,o:ee};let tn,Zt;return{render:Lt,hydrate:tn,createApp:createAppAPI(Lt,tn)}}function resolveChildrenNamespace({type:ee,props:ne},oe){return oe==="svg"&&ee==="foreignObject"||oe==="mathml"&&ee==="annotation-xml"&&ne&&ne.encoding&&ne.encoding.includes("html")?void 0:oe}function toggleRecurse({effect:ee,update:ne},oe){ee.allowRecurse=ne.allowRecurse=oe}function needTransition(ee,ne){return(!ee||ee&&!ee.pendingBranch)&&ne&&!ne.persisted}function traverseStaticChildren(ee,ne,oe=!1){const ae=ee.children,ie=ne.children;if(isArray$5(ae)&&isArray$5(ie))for(let se=0;se>1,ee[oe[fe]]0&&(ne[ae]=oe[se-1]),oe[se]=ae)}}for(se=oe.length,de=oe[se-1];se-- >0;)oe[se]=de,de=ne[de];return oe}function locateNonHydratedAsyncRoot(ee){const ne=ee.subTree.component;if(ne)return ne.asyncDep&&!ne.asyncResolved?ne:locateNonHydratedAsyncRoot(ne)}function invalidateMount(ee){if(ee)for(let ne=0;neinject(ssrContextKey);function watchEffect(ee,ne){return doWatch(ee,null,ne)}function watchPostEffect(ee,ne){return doWatch(ee,null,{flush:"post"})}function watchSyncEffect(ee,ne){return doWatch(ee,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(ee,ne,oe){return doWatch(ee,ne,oe)}function doWatch(ee,ne,{immediate:oe,deep:ae,flush:ie,once:se,onTrack:de,onTrigger:fe}=EMPTY_OBJ){if(ne&&se){const Le=ne;ne=(...Me)=>{Le(...Me),Re()}}const ve=currentInstance,be=Le=>ae===!0?Le:traverse(Le,ae===!1?1:void 0);let ye,$e=!1,_e=!1;if(isRef(ee)?(ye=()=>ee.value,$e=isShallow(ee)):isReactive(ee)?(ye=()=>be(ee),$e=!0):isArray$5(ee)?(_e=!0,$e=ee.some(Le=>isReactive(Le)||isShallow(Le)),ye=()=>ee.map(Le=>{if(isRef(Le))return Le.value;if(isReactive(Le))return be(Le);if(isFunction$5(Le))return callWithErrorHandling(Le,ve,2)})):isFunction$5(ee)?ne?ye=()=>callWithErrorHandling(ee,ve,2):ye=()=>(Ee&&Ee(),callWithAsyncErrorHandling(ee,ve,3,[we])):ye=NOOP,ne&&ae){const Le=ye;ye=()=>traverse(Le())}let Ee,we=Le=>{Ee=Ne.onStop=()=>{callWithErrorHandling(Le,ve,4),Ee=Ne.onStop=void 0}},Pe;if(isInSSRComponentSetup)if(we=NOOP,ne?oe&&callWithAsyncErrorHandling(ne,ve,3,[ye(),_e?[]:void 0,we]):ye(),ie==="sync"){const Le=useSSRContext();Pe=Le.__watcherHandles||(Le.__watcherHandles=[])}else return NOOP;let Ce=_e?new Array(ee.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Oe=()=>{if(!(!Ne.active||!Ne.dirty))if(ne){const Le=Ne.run();(ae||$e||(_e?Le.some((Me,Ie)=>hasChanged(Me,Ce[Ie])):hasChanged(Le,Ce)))&&(Ee&&Ee(),callWithAsyncErrorHandling(ne,ve,3,[Le,Ce===INITIAL_WATCHER_VALUE?void 0:_e&&Ce[0]===INITIAL_WATCHER_VALUE?[]:Ce,we]),Ce=Le)}else Ne.run()};Oe.allowRecurse=!!ne;let Ae;ie==="sync"?Ae=Oe:ie==="post"?Ae=()=>queuePostRenderEffect(Oe,ve&&ve.suspense):(Oe.pre=!0,ve&&(Oe.id=ve.uid),Ae=()=>queueJob(Oe));const Ne=new ReactiveEffect(ye,NOOP,Ae),ke=getCurrentScope(),Re=()=>{Ne.stop(),ke&&remove(ke.effects,Ne)};return ne?oe?Oe():Ce=Ne.run():ie==="post"?queuePostRenderEffect(Ne.run.bind(Ne),ve&&ve.suspense):Ne.run(),Pe&&Pe.push(Re),Re}function instanceWatch(ee,ne,oe){const ae=this.proxy,ie=isString$4(ee)?ee.includes(".")?createPathGetter(ae,ee):()=>ae[ee]:ee.bind(ae,ae);let se;isFunction$5(ne)?se=ne:(se=ne.handler,oe=ne);const de=setCurrentInstance(this),fe=doWatch(ie,se.bind(ae),oe);return de(),fe}function createPathGetter(ee,ne){const oe=ne.split(".");return()=>{let ae=ee;for(let ie=0;ie{traverse(ae,ne,oe)});else if(isPlainObject$5(ee)){for(const ae in ee)traverse(ee[ae],ne,oe);for(const ae of Object.getOwnPropertySymbols(ee))Object.prototype.propertyIsEnumerable.call(ee,ae)&&traverse(ee[ae],ne,oe)}return ee}function useModel(ee,ne,oe=EMPTY_OBJ){const ae=getCurrentInstance(),ie=camelize$1(ne),se=hyphenate(ne),de=getModelModifiers(ee,ne),fe=customRef((ve,be)=>{let ye,$e=EMPTY_OBJ,_e;return watchSyncEffect(()=>{const Ee=ee[ne];hasChanged(ye,Ee)&&(ye=Ee,be())}),{get(){return ve(),oe.get?oe.get(ye):ye},set(Ee){const we=oe.set?oe.set(Ee):Ee;if(!hasChanged(we,ye)&&!($e!==EMPTY_OBJ&&hasChanged(Ee,$e)))return;const Pe=ae.vnode.props;Pe&&(ne in Pe||ie in Pe||se in Pe)&&(`onUpdate:${ne}`in Pe||`onUpdate:${ie}`in Pe||`onUpdate:${se}`in Pe)||(ye=Ee,be()),ae.emit(`update:${ne}`,we),hasChanged(Ee,we)&&hasChanged(Ee,$e)&&!hasChanged(we,_e)&&be(),$e=Ee,_e=we}}});return fe[Symbol.iterator]=()=>{let ve=0;return{next(){return ve<2?{value:ve++?de||EMPTY_OBJ:fe,done:!1}:{done:!0}}}},fe}const getModelModifiers=(ee,ne)=>ne==="modelValue"||ne==="model-value"?ee.modelModifiers:ee[`${ne}Modifiers`]||ee[`${camelize$1(ne)}Modifiers`]||ee[`${hyphenate(ne)}Modifiers`];function emit(ee,ne,...oe){if(ee.isUnmounted)return;const ae=ee.vnode.props||EMPTY_OBJ;let ie=oe;const se=ne.startsWith("update:"),de=se&&getModelModifiers(ae,ne.slice(7));de&&(de.trim&&(ie=oe.map(ye=>isString$4(ye)?ye.trim():ye)),de.number&&(ie=oe.map(looseToNumber)));let fe,ve=ae[fe=toHandlerKey(ne)]||ae[fe=toHandlerKey(camelize$1(ne))];!ve&&se&&(ve=ae[fe=toHandlerKey(hyphenate(ne))]),ve&&callWithAsyncErrorHandling(ve,ee,6,ie);const be=ae[fe+"Once"];if(be){if(!ee.emitted)ee.emitted={};else if(ee.emitted[fe])return;ee.emitted[fe]=!0,callWithAsyncErrorHandling(be,ee,6,ie)}}function normalizeEmitsOptions(ee,ne,oe=!1){const ae=ne.emitsCache,ie=ae.get(ee);if(ie!==void 0)return ie;const se=ee.emits;let de={},fe=!1;if(!isFunction$5(ee)){const ve=be=>{const ye=normalizeEmitsOptions(be,ne,!0);ye&&(fe=!0,extend$2(de,ye))};!oe&&ne.mixins.length&&ne.mixins.forEach(ve),ee.extends&&ve(ee.extends),ee.mixins&&ee.mixins.forEach(ve)}return!se&&!fe?(isObject$9(ee)&&ae.set(ee,null),null):(isArray$5(se)?se.forEach(ve=>de[ve]=null):extend$2(de,se),isObject$9(ee)&&ae.set(ee,de),de)}function isEmitListener(ee,ne){return!ee||!isOn(ne)?!1:(ne=ne.slice(2).replace(/Once$/,""),hasOwn$1(ee,ne[0].toLowerCase()+ne.slice(1))||hasOwn$1(ee,hyphenate(ne))||hasOwn$1(ee,ne))}function markAttrsAccessed(){}function renderComponentRoot(ee){const{type:ne,vnode:oe,proxy:ae,withProxy:ie,propsOptions:[se],slots:de,attrs:fe,emit:ve,render:be,renderCache:ye,props:$e,data:_e,setupState:Ee,ctx:we,inheritAttrs:Pe}=ee,Ce=setCurrentRenderingInstance(ee);let Oe,Ae;try{if(oe.shapeFlag&4){const ke=ie||ae,Re=ke;Oe=normalizeVNode(be.call(Re,ke,ye,$e,Ee,_e,we)),Ae=fe}else{const ke=ne;Oe=normalizeVNode(ke.length>1?ke($e,{attrs:fe,slots:de,emit:ve}):ke($e,null)),Ae=ne.props?fe:getFunctionalFallthrough(fe)}}catch(ke){blockStack.length=0,handleError(ke,ee,1),Oe=createVNode(Comment$1)}let Ne=Oe;if(Ae&&Pe!==!1){const ke=Object.keys(Ae),{shapeFlag:Re}=Ne;ke.length&&Re&7&&(se&&ke.some(isModelListener)&&(Ae=filterModelListeners(Ae,se)),Ne=cloneVNode(Ne,Ae,!1,!0))}return oe.dirs&&(Ne=cloneVNode(Ne,null,!1,!0),Ne.dirs=Ne.dirs?Ne.dirs.concat(oe.dirs):oe.dirs),oe.transition&&(Ne.transition=oe.transition),Oe=Ne,setCurrentRenderingInstance(Ce),Oe}const getFunctionalFallthrough=ee=>{let ne;for(const oe in ee)(oe==="class"||oe==="style"||isOn(oe))&&((ne||(ne={}))[oe]=ee[oe]);return ne},filterModelListeners=(ee,ne)=>{const oe={};for(const ae in ee)(!isModelListener(ae)||!(ae.slice(9)in ne))&&(oe[ae]=ee[ae]);return oe};function shouldUpdateComponent(ee,ne,oe){const{props:ae,children:ie,component:se}=ee,{props:de,children:fe,patchFlag:ve}=ne,be=se.emitsOptions;if(ne.dirs||ne.transition)return!0;if(oe&&ve>=0){if(ve&1024)return!0;if(ve&16)return ae?hasPropsChanged(ae,de,be):!!de;if(ve&8){const ye=ne.dynamicProps;for(let $e=0;$eee.__isSuspense;function queueEffectWithSuspense(ee,ne){ne&&ne.pendingBranch?isArray$5(ee)?ne.effects.push(...ee):ne.effects.push(ee):queuePostFlushCb(ee)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment$1=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(ee=!1){blockStack.push(currentBlock=ee?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(ee){isBlockTreeEnabled+=ee,ee<0&¤tBlock&&(currentBlock.hasOnce=!0)}function setupBlock(ee){return ee.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(ee),ee}function createElementBlock(ee,ne,oe,ae,ie,se){return setupBlock(createBaseVNode(ee,ne,oe,ae,ie,se,!0))}function createBlock(ee,ne,oe,ae,ie){return setupBlock(createVNode(ee,ne,oe,ae,ie,!0))}function isVNode$1(ee){return ee?ee.__v_isVNode===!0:!1}function isSameVNodeType(ee,ne){return ee.type===ne.type&&ee.key===ne.key}const normalizeKey=({key:ee})=>ee??null,normalizeRef=({ref:ee,ref_key:ne,ref_for:oe})=>(typeof ee=="number"&&(ee=""+ee),ee!=null?isString$4(ee)||isRef(ee)||isFunction$5(ee)?{i:currentRenderingInstance,r:ee,k:ne,f:!!oe}:ee:null);function createBaseVNode(ee,ne=null,oe=null,ae=0,ie=null,se=ee===Fragment?0:1,de=!1,fe=!1){const ve={__v_isVNode:!0,__v_skip:!0,type:ee,props:ne,key:ne&&normalizeKey(ne),ref:ne&&normalizeRef(ne),scopeId:currentScopeId,slotScopeIds:null,children:oe,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:se,patchFlag:ae,dynamicProps:ie,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return fe?(normalizeChildren(ve,oe),se&128&&ee.normalize(ve)):oe&&(ve.shapeFlag|=isString$4(oe)?8:16),isBlockTreeEnabled>0&&!de&¤tBlock&&(ve.patchFlag>0||se&6)&&ve.patchFlag!==32&¤tBlock.push(ve),ve}const createVNode=_createVNode;function _createVNode(ee,ne=null,oe=null,ae=0,ie=null,se=!1){if((!ee||ee===NULL_DYNAMIC_COMPONENT)&&(ee=Comment$1),isVNode$1(ee)){const fe=cloneVNode(ee,ne,!0);return oe&&normalizeChildren(fe,oe),isBlockTreeEnabled>0&&!se&¤tBlock&&(fe.shapeFlag&6?currentBlock[currentBlock.indexOf(ee)]=fe:currentBlock.push(fe)),fe.patchFlag=-2,fe}if(isClassComponent(ee)&&(ee=ee.__vccOpts),ne){ne=guardReactiveProps(ne);let{class:fe,style:ve}=ne;fe&&!isString$4(fe)&&(ne.class=normalizeClass(fe)),isObject$9(ve)&&(isProxy(ve)&&!isArray$5(ve)&&(ve=extend$2({},ve)),ne.style=normalizeStyle(ve))}const de=isString$4(ee)?1:isSuspense(ee)?128:isTeleport(ee)?64:isObject$9(ee)?4:isFunction$5(ee)?2:0;return createBaseVNode(ee,ne,oe,ae,ie,de,se,!0)}function guardReactiveProps(ee){return ee?isProxy(ee)||isInternalObject(ee)?extend$2({},ee):ee:null}function cloneVNode(ee,ne,oe=!1,ae=!1){const{props:ie,ref:se,patchFlag:de,children:fe,transition:ve}=ee,be=ne?mergeProps(ie||{},ne):ie,ye={__v_isVNode:!0,__v_skip:!0,type:ee.type,props:be,key:be&&normalizeKey(be),ref:ne&&ne.ref?oe&&se?isArray$5(se)?se.concat(normalizeRef(ne)):[se,normalizeRef(ne)]:normalizeRef(ne):se,scopeId:ee.scopeId,slotScopeIds:ee.slotScopeIds,children:fe,target:ee.target,targetStart:ee.targetStart,targetAnchor:ee.targetAnchor,staticCount:ee.staticCount,shapeFlag:ee.shapeFlag,patchFlag:ne&&ee.type!==Fragment?de===-1?16:de|16:de,dynamicProps:ee.dynamicProps,dynamicChildren:ee.dynamicChildren,appContext:ee.appContext,dirs:ee.dirs,transition:ve,component:ee.component,suspense:ee.suspense,ssContent:ee.ssContent&&cloneVNode(ee.ssContent),ssFallback:ee.ssFallback&&cloneVNode(ee.ssFallback),el:ee.el,anchor:ee.anchor,ctx:ee.ctx,ce:ee.ce};return ve&&ae&&setTransitionHooks(ye,ve.clone(ye)),ye}function createTextVNode(ee=" ",ne=0){return createVNode(Text,null,ee,ne)}function createCommentVNode(ee="",ne=!1){return ne?(openBlock(),createBlock(Comment$1,null,ee)):createVNode(Comment$1,null,ee)}function normalizeVNode(ee){return ee==null||typeof ee=="boolean"?createVNode(Comment$1):isArray$5(ee)?createVNode(Fragment,null,ee.slice()):typeof ee=="object"?cloneIfMounted(ee):createVNode(Text,null,String(ee))}function cloneIfMounted(ee){return ee.el===null&&ee.patchFlag!==-1||ee.memo?ee:cloneVNode(ee)}function normalizeChildren(ee,ne){let oe=0;const{shapeFlag:ae}=ee;if(ne==null)ne=null;else if(isArray$5(ne))oe=16;else if(typeof ne=="object")if(ae&65){const ie=ne.default;ie&&(ie._c&&(ie._d=!1),normalizeChildren(ee,ie()),ie._c&&(ie._d=!0));return}else{oe=32;const ie=ne._;!ie&&!isInternalObject(ne)?ne._ctx=currentRenderingInstance:ie===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?ne._=1:(ne._=2,ee.patchFlag|=1024))}else isFunction$5(ne)?(ne={default:ne,_ctx:currentRenderingInstance},oe=32):(ne=String(ne),ae&64?(oe=16,ne=[createTextVNode(ne)]):oe=8);ee.children=ne,ee.shapeFlag|=oe}function mergeProps(...ee){const ne={};for(let oe=0;oecurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const ee=getGlobalThis$1(),ne=(oe,ae)=>{let ie;return(ie=ee[oe])||(ie=ee[oe]=[]),ie.push(ae),se=>{ie.length>1?ie.forEach(de=>de(se)):ie[0](se)}};internalSetCurrentInstance=ne("__VUE_INSTANCE_SETTERS__",oe=>currentInstance=oe),setInSSRSetupState=ne("__VUE_SSR_SETTERS__",oe=>isInSSRComponentSetup=oe)}const setCurrentInstance=ee=>{const ne=currentInstance;return internalSetCurrentInstance(ee),ee.scope.on(),()=>{ee.scope.off(),internalSetCurrentInstance(ne)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(ee){return ee.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(ee,ne=!1,oe=!1){ne&&setInSSRSetupState(ne);const{props:ae,children:ie}=ee.vnode,se=isStatefulComponent(ee);initProps(ee,ae,se,ne),initSlots(ee,ie,oe);const de=se?setupStatefulComponent(ee,ne):void 0;return ne&&setInSSRSetupState(!1),de}function setupStatefulComponent(ee,ne){const oe=ee.type;ee.accessCache=Object.create(null),ee.proxy=new Proxy(ee.ctx,PublicInstanceProxyHandlers);const{setup:ae}=oe;if(ae){const ie=ee.setupContext=ae.length>1?createSetupContext(ee):null,se=setCurrentInstance(ee);pauseTracking();const de=callWithErrorHandling(ae,ee,0,[ee.props,ie]);if(resetTracking(),se(),isPromise$2(de)){if(de.then(unsetCurrentInstance,unsetCurrentInstance),ne)return de.then(fe=>{handleSetupResult(ee,fe,ne)}).catch(fe=>{handleError(fe,ee,0)});ee.asyncDep=de}else handleSetupResult(ee,de,ne)}else finishComponentSetup(ee,ne)}function handleSetupResult(ee,ne,oe){isFunction$5(ne)?ee.type.__ssrInlineRender?ee.ssrRender=ne:ee.render=ne:isObject$9(ne)&&(ee.setupState=proxyRefs(ne)),finishComponentSetup(ee,oe)}let compile$1;function finishComponentSetup(ee,ne,oe){const ae=ee.type;if(!ee.render){if(!ne&&compile$1&&!ae.render){const ie=ae.template||resolveMergedOptions(ee).template;if(ie){const{isCustomElement:se,compilerOptions:de}=ee.appContext.config,{delimiters:fe,compilerOptions:ve}=ae,be=extend$2(extend$2({isCustomElement:se,delimiters:fe},de),ve);ae.render=compile$1(ie,be)}}ee.render=ae.render||NOOP}{const ie=setCurrentInstance(ee);pauseTracking();try{applyOptions(ee)}finally{resetTracking(),ie()}}}const attrsProxyHandlers={get(ee,ne){return track(ee,"get",""),ee[ne]}};function createSetupContext(ee){const ne=oe=>{ee.exposed=oe||{}};return{attrs:new Proxy(ee.attrs,attrsProxyHandlers),slots:ee.slots,emit:ee.emit,expose:ne}}function getComponentPublicInstance(ee){return ee.exposed?ee.exposeProxy||(ee.exposeProxy=new Proxy(proxyRefs(markRaw(ee.exposed)),{get(ne,oe){if(oe in ne)return ne[oe];if(oe in publicPropertiesMap)return publicPropertiesMap[oe](ee)},has(ne,oe){return oe in ne||oe in publicPropertiesMap}})):ee.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=ee=>ee.replace(classifyRE,ne=>ne.toUpperCase()).replace(/[-_]/g,"");function getComponentName(ee,ne=!0){return isFunction$5(ee)?ee.displayName||ee.name:ee.name||ne&&ee.__name}function formatComponentName(ee,ne,oe=!1){let ae=getComponentName(ne);if(!ae&&ne.__file){const ie=ne.__file.match(/([^/\\]+)\.\w+$/);ie&&(ae=ie[1])}if(!ae&&ee&&ee.parent){const ie=se=>{for(const de in se)if(se[de]===ne)return de};ae=ie(ee.components||ee.parent.type.components)||ie(ee.appContext.components)}return ae?classify(ae):oe?"App":"Anonymous"}function isClassComponent(ee){return isFunction$5(ee)&&"__vccOpts"in ee}const computed=(ee,ne)=>computed$1(ee,ne,isInSSRComponentSetup);function h$2(ee,ne,oe){const ae=arguments.length;return ae===2?isObject$9(ne)&&!isArray$5(ne)?isVNode$1(ne)?createVNode(ee,null,[ne]):createVNode(ee,ne):createVNode(ee,null,ne):(ae>3?oe=Array.prototype.slice.call(arguments,2):ae===3&&isVNode$1(oe)&&(oe=[oe]),createVNode(ee,ne,oe))}const version$1="3.4.37";/** +* @vue/runtime-dom v3.4.37 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(ee,ne,oe)=>{ne.insertBefore(ee,oe||null)},remove:ee=>{const ne=ee.parentNode;ne&&ne.removeChild(ee)},createElement:(ee,ne,oe,ae)=>{const ie=ne==="svg"?doc.createElementNS(svgNS,ee):ne==="mathml"?doc.createElementNS(mathmlNS,ee):oe?doc.createElement(ee,{is:oe}):doc.createElement(ee);return ee==="select"&&ae&&ae.multiple!=null&&ie.setAttribute("multiple",ae.multiple),ie},createText:ee=>doc.createTextNode(ee),createComment:ee=>doc.createComment(ee),setText:(ee,ne)=>{ee.nodeValue=ne},setElementText:(ee,ne)=>{ee.textContent=ne},parentNode:ee=>ee.parentNode,nextSibling:ee=>ee.nextSibling,querySelector:ee=>doc.querySelector(ee),setScopeId(ee,ne){ee.setAttribute(ne,"")},insertStaticContent(ee,ne,oe,ae,ie,se){const de=oe?oe.previousSibling:ne.lastChild;if(ie&&(ie===se||ie.nextSibling))for(;ne.insertBefore(ie.cloneNode(!0),oe),!(ie===se||!(ie=ie.nextSibling)););else{templateContainer.innerHTML=ae==="svg"?`${ee}`:ae==="mathml"?`${ee}`:ee;const fe=templateContainer.content;if(ae==="svg"||ae==="mathml"){const ve=fe.firstChild;for(;ve.firstChild;)fe.appendChild(ve.firstChild);fe.removeChild(ve)}ne.insertBefore(fe,oe)}return[de?de.nextSibling:ne.firstChild,oe?oe.previousSibling:ne.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(ee,{slots:ne})=>h$2(BaseTransition,resolveTransitionProps(ee),ne);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(ee,ne=[])=>{isArray$5(ee)?ee.forEach(oe=>oe(...ne)):ee&&ee(...ne)},hasExplicitCallback=ee=>ee?isArray$5(ee)?ee.some(ne=>ne.length>1):ee.length>1:!1;function resolveTransitionProps(ee){const ne={};for(const He in ee)He in DOMTransitionPropsValidators||(ne[He]=ee[He]);if(ee.css===!1)return ne;const{name:oe="v",type:ae,duration:ie,enterFromClass:se=`${oe}-enter-from`,enterActiveClass:de=`${oe}-enter-active`,enterToClass:fe=`${oe}-enter-to`,appearFromClass:ve=se,appearActiveClass:be=de,appearToClass:ye=fe,leaveFromClass:$e=`${oe}-leave-from`,leaveActiveClass:_e=`${oe}-leave-active`,leaveToClass:Ee=`${oe}-leave-to`}=ee,we=normalizeDuration(ie),Pe=we&&we[0],Ce=we&&we[1],{onBeforeEnter:Oe,onEnter:Ae,onEnterCancelled:Ne,onLeave:ke,onLeaveCancelled:Re,onBeforeAppear:Le=Oe,onAppear:Me=Ae,onAppearCancelled:Ie=Ne}=ne,Fe=(He,ot,Nt)=>{removeTransitionClass(He,ot?ye:fe),removeTransitionClass(He,ot?be:de),Nt&&Nt()},je=(He,ot)=>{He._isLeaving=!1,removeTransitionClass(He,$e),removeTransitionClass(He,Ee),removeTransitionClass(He,_e),ot&&ot()},Be=He=>(ot,Nt)=>{const st=He?Me:Ae,Ue=()=>Fe(ot,He,Nt);callHook(st,[ot,Ue]),nextFrame(()=>{removeTransitionClass(ot,He?ve:se),addTransitionClass(ot,He?ye:fe),hasExplicitCallback(st)||whenTransitionEnds(ot,ae,Pe,Ue)})};return extend$2(ne,{onBeforeEnter(He){callHook(Oe,[He]),addTransitionClass(He,se),addTransitionClass(He,de)},onBeforeAppear(He){callHook(Le,[He]),addTransitionClass(He,ve),addTransitionClass(He,be)},onEnter:Be(!1),onAppear:Be(!0),onLeave(He,ot){He._isLeaving=!0;const Nt=()=>je(He,ot);addTransitionClass(He,$e),addTransitionClass(He,_e),forceReflow(),nextFrame(()=>{He._isLeaving&&(removeTransitionClass(He,$e),addTransitionClass(He,Ee),hasExplicitCallback(ke)||whenTransitionEnds(He,ae,Ce,Nt))}),callHook(ke,[He,Nt])},onEnterCancelled(He){Fe(He,!1),callHook(Ne,[He])},onAppearCancelled(He){Fe(He,!0),callHook(Ie,[He])},onLeaveCancelled(He){je(He),callHook(Re,[He])}})}function normalizeDuration(ee){if(ee==null)return null;if(isObject$9(ee))return[NumberOf(ee.enter),NumberOf(ee.leave)];{const ne=NumberOf(ee);return[ne,ne]}}function NumberOf(ee){return toNumber(ee)}function addTransitionClass(ee,ne){ne.split(/\s+/).forEach(oe=>oe&&ee.classList.add(oe)),(ee[vtcKey]||(ee[vtcKey]=new Set)).add(ne)}function removeTransitionClass(ee,ne){ne.split(/\s+/).forEach(ae=>ae&&ee.classList.remove(ae));const oe=ee[vtcKey];oe&&(oe.delete(ne),oe.size||(ee[vtcKey]=void 0))}function nextFrame(ee){requestAnimationFrame(()=>{requestAnimationFrame(ee)})}let endId=0;function whenTransitionEnds(ee,ne,oe,ae){const ie=ee._endId=++endId,se=()=>{ie===ee._endId&&ae()};if(oe)return setTimeout(se,oe);const{type:de,timeout:fe,propCount:ve}=getTransitionInfo(ee,ne);if(!de)return ae();const be=de+"end";let ye=0;const $e=()=>{ee.removeEventListener(be,_e),se()},_e=Ee=>{Ee.target===ee&&++ye>=ve&&$e()};setTimeout(()=>{ye(oe[we]||"").split(", "),ie=ae(`${TRANSITION}Delay`),se=ae(`${TRANSITION}Duration`),de=getTimeout(ie,se),fe=ae(`${ANIMATION}Delay`),ve=ae(`${ANIMATION}Duration`),be=getTimeout(fe,ve);let ye=null,$e=0,_e=0;ne===TRANSITION?de>0&&(ye=TRANSITION,$e=de,_e=se.length):ne===ANIMATION?be>0&&(ye=ANIMATION,$e=be,_e=ve.length):($e=Math.max(de,be),ye=$e>0?de>be?TRANSITION:ANIMATION:null,_e=ye?ye===TRANSITION?se.length:ve.length:0);const Ee=ye===TRANSITION&&/\b(transform|all)(,|$)/.test(ae(`${TRANSITION}Property`).toString());return{type:ye,timeout:$e,propCount:_e,hasTransform:Ee}}function getTimeout(ee,ne){for(;ee.lengthtoMs(oe)+toMs(ee[ae])))}function toMs(ee){return ee==="auto"?0:Number(ee.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(ee,ne,oe){const ae=ee[vtcKey];ae&&(ne=(ne?[ne,...ae]:[...ae]).join(" ")),ne==null?ee.removeAttribute("class"):oe?ee.setAttribute("class",ne):ee.className=ne}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(ee,{value:ne},{transition:oe}){ee[vShowOriginalDisplay]=ee.style.display==="none"?"":ee.style.display,oe&&ne?oe.beforeEnter(ee):setDisplay(ee,ne)},mounted(ee,{value:ne},{transition:oe}){oe&&ne&&oe.enter(ee)},updated(ee,{value:ne,oldValue:oe},{transition:ae}){!ne!=!oe&&(ae?ne?(ae.beforeEnter(ee),setDisplay(ee,!0),ae.enter(ee)):ae.leave(ee,()=>{setDisplay(ee,!1)}):setDisplay(ee,ne))},beforeUnmount(ee,{value:ne}){setDisplay(ee,ne)}};function setDisplay(ee,ne){ee.style.display=ne?ee[vShowOriginalDisplay]:"none",ee[vShowHidden]=!ne}const CSS_VAR_TEXT=Symbol("");function useCssVars(ee){const ne=getCurrentInstance();if(!ne)return;const oe=ne.ut=(ie=ee(ne.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${ne.uid}"]`)).forEach(se=>setVarsOnNode(se,ie))},ae=()=>{const ie=ee(ne.proxy);setVarsOnVNode(ne.subTree,ie),oe(ie)};onBeforeMount(()=>{watchPostEffect(ae)}),onMounted(()=>{const ie=new MutationObserver(ae);ie.observe(ne.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ie.disconnect())})}function setVarsOnVNode(ee,ne){if(ee.shapeFlag&128){const oe=ee.suspense;ee=oe.activeBranch,oe.pendingBranch&&!oe.isHydrating&&oe.effects.push(()=>{setVarsOnVNode(oe.activeBranch,ne)})}for(;ee.component;)ee=ee.component.subTree;if(ee.shapeFlag&1&&ee.el)setVarsOnNode(ee.el,ne);else if(ee.type===Fragment)ee.children.forEach(oe=>setVarsOnVNode(oe,ne));else if(ee.type===Static){let{el:oe,anchor:ae}=ee;for(;oe&&(setVarsOnNode(oe,ne),oe!==ae);)oe=oe.nextSibling}}function setVarsOnNode(ee,ne){if(ee.nodeType===1){const oe=ee.style;let ae="";for(const ie in ne)oe.setProperty(`--${ie}`,ne[ie]),ae+=`--${ie}: ${ne[ie]};`;oe[CSS_VAR_TEXT]=ae}}const displayRE=/(^|;)\s*display\s*:/;function patchStyle(ee,ne,oe){const ae=ee.style,ie=isString$4(oe);let se=!1;if(oe&&!ie){if(ne)if(isString$4(ne))for(const de of ne.split(";")){const fe=de.slice(0,de.indexOf(":")).trim();oe[fe]==null&&setStyle(ae,fe,"")}else for(const de in ne)oe[de]==null&&setStyle(ae,de,"");for(const de in oe)de==="display"&&(se=!0),setStyle(ae,de,oe[de])}else if(ie){if(ne!==oe){const de=ae[CSS_VAR_TEXT];de&&(oe+=";"+de),ae.cssText=oe,se=displayRE.test(oe)}}else ne&&ee.removeAttribute("style");vShowOriginalDisplay in ee&&(ee[vShowOriginalDisplay]=se?ae.display:"",ee[vShowHidden]&&(ae.display="none"))}const importantRE=/\s*!important$/;function setStyle(ee,ne,oe){if(isArray$5(oe))oe.forEach(ae=>setStyle(ee,ne,ae));else if(oe==null&&(oe=""),ne.startsWith("--"))ee.setProperty(ne,oe);else{const ae=autoPrefix(ee,ne);importantRE.test(oe)?ee.setProperty(hyphenate(ae),oe.replace(importantRE,""),"important"):ee[ae]=oe}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(ee,ne){const oe=prefixCache[ne];if(oe)return oe;let ae=camelize$1(ne);if(ae!=="filter"&&ae in ee)return prefixCache[ne]=ae;ae=capitalize$1(ae);for(let ie=0;iecachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(ee,ne){const oe=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=oe.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,oe.value),ne,5,[ae])};return oe.value=ee,oe.attached=getNow(),oe}function patchStopImmediatePropagation(ee,ne){if(isArray$5(ne)){const oe=ee.stopImmediatePropagation;return ee.stopImmediatePropagation=()=>{oe.call(ee),ee._stopped=!0},ne.map(ae=>ie=>!ie._stopped&&ae&&ae(ie))}else return ne}const isNativeOn=ee=>ee.charCodeAt(0)===111&&ee.charCodeAt(1)===110&&ee.charCodeAt(2)>96&&ee.charCodeAt(2)<123,patchProp=(ee,ne,oe,ae,ie,se)=>{const de=ie==="svg";ne==="class"?patchClass(ee,ae,de):ne==="style"?patchStyle(ee,oe,ae):isOn(ne)?isModelListener(ne)||patchEvent(ee,ne,oe,ae,se):(ne[0]==="."?(ne=ne.slice(1),!0):ne[0]==="^"?(ne=ne.slice(1),!1):shouldSetAsProp(ee,ne,ae,de))?(patchDOMProp(ee,ne,ae),!ee.tagName.includes("-")&&(ne==="value"||ne==="checked"||ne==="selected")&&patchAttr(ee,ne,ae,de,se,ne!=="value")):(ne==="true-value"?ee._trueValue=ae:ne==="false-value"&&(ee._falseValue=ae),patchAttr(ee,ne,ae,de))};function shouldSetAsProp(ee,ne,oe,ae){if(ae)return!!(ne==="innerHTML"||ne==="textContent"||ne in ee&&isNativeOn(ne)&&isFunction$5(oe));if(ne==="spellcheck"||ne==="draggable"||ne==="translate"||ne==="form"||ne==="list"&&ee.tagName==="INPUT"||ne==="type"&&ee.tagName==="TEXTAREA")return!1;if(ne==="width"||ne==="height"){const ie=ee.tagName;if(ie==="IMG"||ie==="VIDEO"||ie==="CANVAS"||ie==="SOURCE")return!1}return isNativeOn(ne)&&isString$4(oe)?!1:ne in ee}const getModelAssigner=ee=>{const ne=ee.props["onUpdate:modelValue"]||!1;return isArray$5(ne)?oe=>invokeArrayFns(ne,oe):ne};function onCompositionStart(ee){ee.target.composing=!0}function onCompositionEnd(ee){const ne=ee.target;ne.composing&&(ne.composing=!1,ne.dispatchEvent(new Event("input")))}const assignKey$1=Symbol("_assign"),vModelText={created(ee,{modifiers:{lazy:ne,trim:oe,number:ae}},ie){ee[assignKey$1]=getModelAssigner(ie);const se=ae||ie.props&&ie.props.type==="number";addEventListener$1(ee,ne?"change":"input",de=>{if(de.target.composing)return;let fe=ee.value;oe&&(fe=fe.trim()),se&&(fe=looseToNumber(fe)),ee[assignKey$1](fe)}),oe&&addEventListener$1(ee,"change",()=>{ee.value=ee.value.trim()}),ne||(addEventListener$1(ee,"compositionstart",onCompositionStart),addEventListener$1(ee,"compositionend",onCompositionEnd),addEventListener$1(ee,"change",onCompositionEnd))},mounted(ee,{value:ne}){ee.value=ne??""},beforeUpdate(ee,{value:ne,oldValue:oe,modifiers:{lazy:ae,trim:ie,number:se}},de){if(ee[assignKey$1]=getModelAssigner(de),ee.composing)return;const fe=(se||ee.type==="number")&&!/^0\d/.test(ee.value)?looseToNumber(ee.value):ee.value,ve=ne??"";fe!==ve&&(document.activeElement===ee&&ee.type!=="range"&&(ae&&ne===oe||ie&&ee.value.trim()===ve)||(ee.value=ve))}},systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:ee=>ee.stopPropagation(),prevent:ee=>ee.preventDefault(),self:ee=>ee.target!==ee.currentTarget,ctrl:ee=>!ee.ctrlKey,shift:ee=>!ee.shiftKey,alt:ee=>!ee.altKey,meta:ee=>!ee.metaKey,left:ee=>"button"in ee&&ee.button!==0,middle:ee=>"button"in ee&&ee.button!==1,right:ee=>"button"in ee&&ee.button!==2,exact:(ee,ne)=>systemModifiers.some(oe=>ee[`${oe}Key`]&&!ne.includes(oe))},withModifiers=(ee,ne)=>{const oe=ee._withMods||(ee._withMods={}),ae=ne.join(".");return oe[ae]||(oe[ae]=(ie,...se)=>{for(let de=0;de{const oe=ee._withKeys||(ee._withKeys={}),ae=ne.join(".");return oe[ae]||(oe[ae]=ie=>{if(!("key"in ie))return;const se=hyphenate(ie.key);if(ne.some(de=>de===se||keyNames[de]===se))return ee(ie)})},rendererOptions=extend$2({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render$1=(...ee)=>{ensureRenderer().render(...ee)},createApp=(...ee)=>{const ne=ensureRenderer().createApp(...ee),{mount:oe}=ne;return ne.mount=ae=>{const ie=normalizeContainer(ae);if(!ie)return;const se=ne._component;!isFunction$5(se)&&!se.render&&!se.template&&(se.template=ie.innerHTML),ie.innerHTML="";const de=oe(ie,!1,resolveRootNamespace(ie));return ie instanceof Element&&(ie.removeAttribute("v-cloak"),ie.setAttribute("data-v-app","")),de},ne};function resolveRootNamespace(ee){if(ee instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&ee instanceof MathMLElement)return"mathml"}function normalizeContainer(ee){return isString$4(ee)?document.querySelector(ee):ee}var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(ee,ne,oe)=>ne in ee?__defProp(ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[ne]=oe,__spreadValues=(ee,ne)=>{for(var oe in ne||(ne={}))__hasOwnProp.call(ne,oe)&&__defNormalProp(ee,oe,ne[oe]);if(__getOwnPropSymbols)for(var oe of __getOwnPropSymbols(ne))__propIsEnum.call(ne,oe)&&__defNormalProp(ee,oe,ne[oe]);return ee},__spreadProps=(ee,ne)=>__defProps(ee,__getOwnPropDescs(ne));const icons={},addIcon$1=function(ee,ne){icons[ee]=ne},Icon$2=defineComponent({name:"Icon",props:{name:String,color:String},computed:{svg(){if(this.name)return icons[this.name]}},render(ee){const ne=this.svg;if(!ne)return console.warn(`The name of '${this.name}' could not be found.`),createVNode("span",{class:"m-svg-icon"},null);const oe={color:this.color?this.color:ne.fill?ne.fill:null};return createVNode("span",{class:["m-svg-icon","m-svg-icon--"+this.name]},[createVNode("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:ne.viewBox,style:oe,class:ne.class},[ne.defs&&createVNode("defs",{innerHTML:ne.defs},null),ne.path&&createVNode("path",{fill:"currentColor",d:ne.path},null),ne.html&&createVNode("g",{innerHTML:ne.html},null),this.$slots.default])])}});Icon$2.add=addIcon$1;const error={name:"error",fill:"#F56C6C",viewBox:"0 0 1024 1024",path:"M512,952C269,952,72,755,72,512S269,72,512,72s440,197,440,440S755,952,512,952z M579.7,512l101.6-101.6 c18.7-18.7,18.7-49,0-67.7c-18.7-18.7-49-18.7-67.7,0l0,0L512,444.3L410.4,342.7c-18.7-18.7-49-18.7-67.7,0s-18.7,49,0,67.7 L444.3,512L342.7,613.6c-18.7,18.7-18.7,49,0,67.7c18.7,18.7,49,18.7,67.7,0L512,579.7l101.6,101.6c18.7,18.7,49,18.7,67.7,0 c18.7-18.7,18.7-49,0-67.7L579.7,512z"},info={name:"info",fill:"#1CADF2",viewBox:"0 0 1024 1024",path:"M512,72C269,72,72,269,72,512s197,440,440,440s440-197,440-440S755,72,512,72z M581,673.9 c-33.2,49.9-67,88.3-123.8,88.3c-38.8-6.3-54.7-34.1-46.3-62.4L484,457.6c1.8-5.9-1.2-12.3-6.6-14.2c-5.4-1.9-15.9,5.1-25.1,15.1 l-44.2,53.2c-1.2-8.9-0.1-23.7-0.1-29.6c33.2-49.9,87.8-89.2,124.8-89.2c35.2,3.6,51.8,31.7,45.7,62.6l-73.6,243.3 c-1,5.5,1.9,11.1,6.9,12.8c5.4,1.9,16.8-5.1,26-15.1l44.2-53.1C583,652.3,581,667.9,581,673.9z M571.2,357.6 c-28,0-50.6-20.4-50.6-50.4c0-30,22.7-50.3,50.6-50.3c28,0,50.6,20.4,50.6,50.3C621.8,337.3,599.1,357.6,571.2,357.6z"},success={name:"success",fill:"#17B77E",viewBox:"0 0 1024 1024",path:"M512,72C269,72,72,269,72,512s197,440,440,440s440-197,440-440S755,72,512,72L512,72z M758.9,374 c-48.5,48.6-81.2,76.9-172.3,186.8c-52.6,63.4-102.3,131.5-102.7,132L462.1,720c-4.6,6.1-13.5,6.8-19.1,1.6L267.9,558.9 c-17.8-16.5-18.8-44.4-2.3-62.2s44.4-18.8,62.2-2.3l104.9,97.5c5.5,5.1,14.1,4.5,18.9-1.3c16.2-20.1,38.4-44.5,62.4-68.6 c90.2-90.9,145.6-139.7,175.2-161.3c36-26.2,77.3-48.6,87.3-36.2C792,343.9,782.5,350.3,758.9,374L758.9,374z"},warning={name:"warning",fill:"#FFC603",viewBox:"0 0 1024 1024",path:"M512,952C269,952,72,755,72,512S269,72,512,72s440,197,440,440S755,952,512,952z M510,770.8 c30.4,0,55-24.6,55-55s-24.6-55-55-55s-55,24.6-55,55S479.6,770.8,510,770.8z M509.8,255.3c-39.3,0-71.2,31.9-71.2,71.2 c0,3.1,0.2,6.2,0.6,9.3L472.4,588c2.5,19.3,18.9,33.7,38.4,33.7c19.4,0,35.8-14.4,38.2-33.7l31.8-252.2c5-39.2-22.8-75-62-79.9 C515.9,255.5,512.8,255.3,509.8,255.3z"},loading={name:"loading",viewBox:"0 0 50 50",html:''};Icon$2.add(error.name,error);Icon$2.add(info.name,info);Icon$2.add(success.name,success);Icon$2.add(warning.name,warning);Icon$2.add(loading.name,loading);var _export_sfc$1=(ee,ne)=>{const oe=ee.__vccOpts||ee;for(const[ae,ie]of ne)oe[ae]=ie;return oe};function useTimeout(ee,ne){const oe=ref(0);return oe.value=window.setTimeout(ee,ne),{stop(){window.clearTimeout(oe.value)}}}const _sfc_main$a=defineComponent({components:{Icon:Icon$2},name:"m-message",emits:["close","destroy","collapsed"],props:{id:String,type:{type:String,default:"info"},title:String,message:String,iconURL:String,duration:{type:Number,default:3e3},isCollapsed:Boolean,collapsable:Boolean,supportHTML:Boolean,width:String,className:String,wrapperClassName:String,closable:Boolean,stopTimerOnHover:{type:Boolean,default:!0}},setup(ee,{expose:ne,emit:oe}){const ae=reactive({visible:!0,collapsed:ee.isCollapsed,timer:null});let ie;const se=()=>{ee.duration<0||({stop:ie}=useTimeout(()=>{fe()},ee.duration))},de=()=>{ie==null||ie()},fe=()=>{ae.visible=!1},ve=()=>{ae.collapsed=!ae.collapsed,oe("collapsed",ae.collapsed)},be=()=>{ae.visible=!1},ye=()=>{ee.stopTimerOnHover&&de()},$e=()=>{ee.stopTimerOnHover&&se()};return onBeforeMount(()=>{de()}),onMounted(()=>{se()}),ne({close:fe}),{state:ae,handleClearTimer:ye,handleStartTimer:$e,triggerCollapse:ve,handleClose:be}}}),_hoisted_1$7=["id"],_hoisted_2$5={key:0,class:"m-message-icons"},_hoisted_3$3=["src"],_hoisted_4$3={class:"m-message-content"},_hoisted_5$1={key:0,class:"m-message--title"},_hoisted_6$1=["innerHTML"],_hoisted_7$1={key:0,class:"m-message--description"},_hoisted_8$1={class:"m-message--control"},_hoisted_9$1=createBaseVNode("svg",{viewBox:"0 0 35 35",width:"20",height:"20",version:"1.1",fill:"currentColor"},[createBaseVNode("path",{d:"M9.4,13.9c-0.2,0.2-0.2,0.6,0,0.8l8.1,8.1l0,0l0,0l8.1-8.1c0.2-0.2,0.2-0.6,0-0.8l-1.3-1.3 c-0.2-0.2-0.6-0.2-0.8,0l-5.5,5.5c-0.2,0.2-0.6,0.2-0.8,0l-5.5-5.5c-0.2-0.2-0.6-0.2-0.8,0L9.4,13.9z"})],-1),_hoisted_10$1=[_hoisted_9$1],_hoisted_11$1=createBaseVNode("svg",{viewBox:"0 0 35 35",width:"20",height:"20",version:"1.1",fill:"currentColor"},[createBaseVNode("path",{d:"M19.5,17.5l5.1,5.1l-2,2l-5.1-5.1l-5.1,5.1l-2-2l5.1-5.1l-5.1-5.1l2-2l5.1,5.1l5.1-5.1l2,2L19.5,17.5z"})],-1),_hoisted_12$1=[_hoisted_11$1];function _sfc_render(ee,ne,oe,ae,ie,se){const de=resolveComponent("icon");return openBlock(),createBlock(Transition,{name:"m-message-fade",appear:"",mode:"in-out",onBeforeLeave:ne[4]||(ne[4]=fe=>ee.$emit("close")),onAfterLeave:ne[5]||(ne[5]=fe=>ee.$emit("destroy"))},{default:withCtx(()=>[ee.state.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["m-message-wrapper",ee.wrapperClassName]),id:ee.id,style:normalizeStyle({width:ee.width})},[createBaseVNode("div",{class:normalizeClass(["m-message",ee.className]),onMouseenter:ne[2]||(ne[2]=(...fe)=>ee.handleClearTimer&&ee.handleClearTimer(...fe)),onMouseleave:ne[3]||(ne[3]=(...fe)=>ee.handleStartTimer&&ee.handleStartTimer(...fe))},[ee.iconURL||ee.type?(openBlock(),createElementBlock("div",_hoisted_2$5,[ee.iconURL?(openBlock(),createElementBlock("img",{key:0,src:ee.iconURL,class:"m-message--icon"},null,8,_hoisted_3$3)):ee.type?(openBlock(),createBlock(de,{key:1,name:ee.type,class:"m-message--icon"},null,8,["name"])):createCommentVNode("",!0)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$3,[ee.title||ee.$slots.title?(openBlock(),createElementBlock("div",_hoisted_5$1,[renderSlot(ee.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ee.title),1)])])):createCommentVNode("",!0),ee.supportHTML&&ee.message?(openBlock(),createElementBlock(Fragment,{key:1},[ee.state.collapsed?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:"m-message--description",innerHTML:ee.message},null,8,_hoisted_6$1))],64)):(openBlock(),createElementBlock(Fragment,{key:2},[ee.state.collapsed?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_7$1,[renderSlot(ee.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ee.message),1)])]))],64))]),createBaseVNode("div",_hoisted_8$1,[ee.collapsable&&(ee.title||ee.$slots.title)?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["m-message--button m-message--arrow-down",{"is-collapsed":ee.state.collapsed}]),onClick:ne[0]||(ne[0]=(...fe)=>ee.triggerCollapse&&ee.triggerCollapse(...fe))},_hoisted_10$1,2)):createCommentVNode("",!0),ee.closable?(openBlock(),createElementBlock("button",{key:1,class:"m-message--button m-message--close",onClick:ne[1]||(ne[1]=(...fe)=>ee.handleClose&&ee.handleClose(...fe))},_hoisted_12$1)):createCommentVNode("",!0)])],34)],14,_hoisted_1$7)):createCommentVNode("",!0)]),_:3})}var MessageComponent=_export_sfc$1(_sfc_main$a,[["render",_sfc_render]]);const instances=[];let seed=0;const containers={};let globalsOptions={};const defaultOptions$1={stopTimerOnHover:!0,duration:3e3},message=ee=>{const ne="m-message-"+seed++,oe=__spreadProps(__spreadValues(__spreadValues(__spreadValues({},defaultOptions$1),globalsOptions),ee),{id:ne});delete oe.hasMask,delete oe.position,delete oe.zIndex;const ae=ee.position||"top-center",ie=ee.hasMask||!1,se=ae+(ie?"-mask":"");let de=containers[se];de?de.count++:(de=containers[se]={el:document.createElement("div"),count:1},de.el.className=["m-message-container","is-"+ae,ie?"has-mask":""].filter(function($e){return!!$e}).join(" "),document.body.appendChild(de.el)),ee.zIndex&&(de.el.style.zIndex=String(ee.zIndex));let fe=null;isVNode$1(ee.message)?(fe={default:()=>ee.message},oe.message=""):typeof ee.message=="function"&&(fe={default:ee.message},oe.message="");const ve=createVNode(MessageComponent,oe,fe),be=document.createElement("div");ve.appContext=ee.ctx||message._context||null,ve.props.onClose=ee.onClose,ve.props.onDestroy=()=>{de.count--,de.count===0&&(delete containers[se],de.el.remove()),render$1(null,be)},render$1(ve,be),ae.indexOf("bottom")===0&&de.el.firstChild?de.el.insertBefore(be.firstElementChild,de.el.firstChild):de.el.appendChild(be.firstElementChild);const ye={id:ne,close(){var $e,_e;(_e=($e=ve==null?void 0:ve.component)==null?void 0:$e.exposed)==null||_e.close()}};return instances.push(ye),ye};message.success=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"success",message:ee}));message.info=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"info",message:ee}));message.warning=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"warning",message:ee}));message.error=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"error",message:ee}));message.loading=(ee,ne)=>message(__spreadProps(__spreadValues({},ne),{type:"loading",message:ee}));message.closeAll=function(){for(let ee=instances.length-1;ee>=0;ee--)instances[ee].close()};message.setDefault=ee=>{globalsOptions=__spreadValues({},ee)};const withInstall$1=(ee,ne)=>(ee.install=ne,ee);var index=withInstall$1(message,function(ee,ne={}){message._context=ee._context,ee.config.globalProperties["$"+(ne.name||"mmessage")]=message,ne.defaultOptions&&message.setDefault(ne.defaultOptions)});function tryOnScopeDispose(ee){return getCurrentScope()?(onScopeDispose(ee),!0):!1}function toValue(ee){return typeof ee=="function"?ee():unref(ee)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$1=Object.prototype.toString,isObject$8=ee=>toString$1.call(ee)==="[object Object]",noop$5=()=>{},isIOS$2=getIsIOS();function getIsIOS(){var ee,ne;return isClient&&((ee=window==null?void 0:window.navigator)==null?void 0:ee.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((ne=window==null?void 0:window.navigator)==null?void 0:ne.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function promiseTimeout(ee,ne=!1,oe="Timeout"){return new Promise((ae,ie)=>{setTimeout(ne?()=>ie(oe):ae,ee)})}function createSingletonPromise(ee){let ne;function oe(){return ne||(ne=ee()),ne}return oe.reset=async()=>{const ae=ne;ne=void 0,ae&&await ae},oe}function getLifeCycleTarget(ee){return getCurrentInstance()}function toRef(...ee){if(ee.length!==1)return toRef$1(...ee);const ne=ee[0];return typeof ne=="function"?readonly(customRef(()=>({get:ne,set:noop$5}))):ref(ne)}function tryOnMounted(ee,ne=!0,oe){getLifeCycleTarget()?onMounted(ee,oe):ne?ee():nextTick(ee)}function createUntil(ee,ne=!1){function oe($e,{flush:_e="sync",deep:Ee=!1,timeout:we,throwOnTimeout:Pe}={}){let Ce=null;const Ae=[new Promise(Ne=>{Ce=watch(ee,ke=>{$e(ke)!==ne&&(Ce==null||Ce(),Ne(ke))},{flush:_e,deep:Ee,immediate:!0})})];return we!=null&&Ae.push(promiseTimeout(we,Pe).then(()=>toValue(ee)).finally(()=>Ce==null?void 0:Ce())),Promise.race(Ae)}function ae($e,_e){if(!isRef($e))return oe(ke=>ke===$e,_e);const{flush:Ee="sync",deep:we=!1,timeout:Pe,throwOnTimeout:Ce}=_e??{};let Oe=null;const Ne=[new Promise(ke=>{Oe=watch([ee,$e],([Re,Le])=>{ne!==(Re===Le)&&(Oe==null||Oe(),ke(Re))},{flush:Ee,deep:we,immediate:!0})})];return Pe!=null&&Ne.push(promiseTimeout(Pe,Ce).then(()=>toValue(ee)).finally(()=>(Oe==null||Oe(),toValue(ee)))),Promise.race(Ne)}function ie($e){return oe(_e=>!!_e,$e)}function se($e){return ae(null,$e)}function de($e){return ae(void 0,$e)}function fe($e){return oe(Number.isNaN,$e)}function ve($e,_e){return oe(Ee=>{const we=Array.from(Ee);return we.includes($e)||we.includes(toValue($e))},_e)}function be($e){return ye(1,$e)}function ye($e=1,_e){let Ee=-1;return oe(()=>(Ee+=1,Ee>=$e),_e)}return Array.isArray(toValue(ee))?{toMatch:oe,toContains:ve,changed:be,changedTimes:ye,get not(){return createUntil(ee,!ne)}}:{toMatch:oe,toBe:ae,toBeTruthy:ie,toBeNull:se,toBeNaN:fe,toBeUndefined:de,changed:be,changedTimes:ye,get not(){return createUntil(ee,!ne)}}}function until(ee){return createUntil(ee)}function useTimeoutFn(ee,ne,oe={}){const{immediate:ae=!0}=oe,ie=ref(!1);let se=null;function de(){se&&(clearTimeout(se),se=null)}function fe(){ie.value=!1,de()}function ve(...be){de(),ie.value=!0,se=setTimeout(()=>{ie.value=!1,se=null,ee(...be)},toValue(ne))}return ae&&(ie.value=!0,isClient&&ve()),tryOnScopeDispose(fe),{isPending:readonly(ie),start:ve,stop:fe}}var isVue2=!1;function unrefElement$1(ee){var ne;const oe=toValue(ee);return(ne=oe==null?void 0:oe.$el)!=null?ne:oe}const defaultWindow$1=isClient?window:void 0,defaultNavigator=isClient?window.navigator:void 0;function useEventListener$2(...ee){let ne,oe,ae,ie;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([oe,ae,ie]=ee,ne=defaultWindow$1):[ne,oe,ae,ie]=ee,!ne)return noop$5;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const se=[],de=()=>{se.forEach(ye=>ye()),se.length=0},fe=(ye,$e,_e,Ee)=>(ye.addEventListener($e,_e,Ee),()=>ye.removeEventListener($e,_e,Ee)),ve=watch(()=>[unrefElement$1(ne),toValue(ie)],([ye,$e])=>{if(de(),!ye)return;const _e=isObject$8($e)?{...$e}:$e;se.push(...oe.flatMap(Ee=>ae.map(we=>fe(ye,Ee,we,_e))))},{immediate:!0,flush:"post"}),be=()=>{ve(),de()};return tryOnScopeDispose(be),be}function useMounted(){const ee=ref(!1),ne=getCurrentInstance();return ne&&onMounted(()=>{ee.value=!0},ne),ee}function useSupported(ee){const ne=useMounted();return computed(()=>(ne.value,!!ee()))}function usePermission(ee,ne={}){const{controls:oe=!1,navigator:ae=defaultNavigator}=ne,ie=useSupported(()=>ae&&"permissions"in ae);let se;const de=typeof ee=="string"?{name:ee}:ee,fe=ref(),ve=()=>{se&&(fe.value=se.state)},be=createSingletonPromise(async()=>{if(ie.value){if(!se)try{se=await ae.permissions.query(de),useEventListener$2(se,"change",ve),ve()}catch{fe.value="prompt"}return se}});return be(),oe?{state:fe,isSupported:ie,query:be}:fe}function useClipboard(ee={}){const{navigator:ne=defaultNavigator,read:oe=!1,source:ae,copiedDuring:ie=1500,legacy:se=!1}=ee,de=useSupported(()=>ne&&"clipboard"in ne),fe=usePermission("clipboard-read"),ve=usePermission("clipboard-write"),be=computed(()=>de.value||se),ye=ref(""),$e=ref(!1),_e=useTimeoutFn(()=>$e.value=!1,ie);function Ee(){de.value&&Oe(fe.value)?ne.clipboard.readText().then(Ae=>{ye.value=Ae}):ye.value=Ce()}be.value&&oe&&useEventListener$2(["copy","cut"],Ee);async function we(Ae=toValue(ae)){be.value&&Ae!=null&&(de.value&&Oe(ve.value)?await ne.clipboard.writeText(Ae):Pe(Ae),ye.value=Ae,$e.value=!0,_e.start())}function Pe(Ae){const Ne=document.createElement("textarea");Ne.value=Ae??"",Ne.style.position="absolute",Ne.style.opacity="0",document.body.appendChild(Ne),Ne.select(),document.execCommand("copy"),Ne.remove()}function Ce(){var Ae,Ne,ke;return(ke=(Ne=(Ae=document==null?void 0:document.getSelection)==null?void 0:Ae.call(document))==null?void 0:Ne.toString())!=null?ke:""}function Oe(Ae){return Ae==="granted"||Ae==="prompt"}return{isSupported:be,text:ye,copied:$e,copy:we}}function useResizeObserver(ee,ne,oe={}){const{window:ae=defaultWindow$1,...ie}=oe;let se;const de=useSupported(()=>ae&&"ResizeObserver"in ae),fe=()=>{se&&(se.disconnect(),se=void 0)},ve=computed(()=>Array.isArray(ee)?ee.map($e=>unrefElement$1($e)):[unrefElement$1(ee)]),be=watch(ve,$e=>{if(fe(),de.value&&ae){se=new ResizeObserver(ne);for(const _e of $e)_e&&se.observe(_e,ie)}},{immediate:!0,flush:"post"}),ye=()=>{fe(),be()};return tryOnScopeDispose(ye),{isSupported:de,stop:ye}}function useElementSize(ee,ne={width:0,height:0},oe={}){const{window:ae=defaultWindow$1,box:ie="content-box"}=oe,se=computed(()=>{var $e,_e;return(_e=($e=unrefElement$1(ee))==null?void 0:$e.namespaceURI)==null?void 0:_e.includes("svg")}),de=ref(ne.width),fe=ref(ne.height),{stop:ve}=useResizeObserver(ee,([$e])=>{const _e=ie==="border-box"?$e.borderBoxSize:ie==="content-box"?$e.contentBoxSize:$e.devicePixelContentBoxSize;if(ae&&se.value){const Ee=unrefElement$1(ee);if(Ee){const we=Ee.getBoundingClientRect();de.value=we.width,fe.value=we.height}}else if(_e){const Ee=Array.isArray(_e)?_e:[_e];de.value=Ee.reduce((we,{inlineSize:Pe})=>we+Pe,0),fe.value=Ee.reduce((we,{blockSize:Pe})=>we+Pe,0)}else de.value=$e.contentRect.width,fe.value=$e.contentRect.height},oe);tryOnMounted(()=>{const $e=unrefElement$1(ee);$e&&(de.value="offsetWidth"in $e?$e.offsetWidth:ne.width,fe.value="offsetHeight"in $e?$e.offsetHeight:ne.height)});const be=watch(()=>unrefElement$1(ee),$e=>{de.value=$e?ne.width:0,fe.value=$e?ne.height:0});function ye(){ve(),be()}return{width:de,height:fe,stop:ye}}function unrefElement(ee){var ne;const oe=toValue(ee);return(ne=oe==null?void 0:oe.$el)!=null?ne:oe}const defaultWindow=isClient?window:void 0;function useEventListener$1(...ee){let ne,oe,ae,ie;if(typeof ee[0]=="string"||Array.isArray(ee[0])?([oe,ae,ie]=ee,ne=defaultWindow):[ne,oe,ae,ie]=ee,!ne)return noop$5;Array.isArray(oe)||(oe=[oe]),Array.isArray(ae)||(ae=[ae]);const se=[],de=()=>{se.forEach(ye=>ye()),se.length=0},fe=(ye,$e,_e,Ee)=>(ye.addEventListener($e,_e,Ee),()=>ye.removeEventListener($e,_e,Ee)),ve=watch(()=>[unrefElement(ne),toValue(ie)],([ye,$e])=>{if(de(),!ye)return;const _e=isObject$8($e)?{...$e}:$e;se.push(...oe.flatMap(Ee=>ae.map(we=>fe(ye,Ee,we,_e))))},{immediate:!0,flush:"post"}),be=()=>{ve(),de()};return tryOnScopeDispose(be),be}function useAsyncState(ee,ne,oe){const{immediate:ae=!0,delay:ie=0,onError:se=noop$5,onSuccess:de=noop$5,resetOnExecute:fe=!0,shallow:ve=!0,throwError:be}=oe??{},ye=ve?shallowRef(ne):ref(ne),$e=ref(!1),_e=ref(!1),Ee=shallowRef(void 0);async function we(Oe=0,...Ae){fe&&(ye.value=ne),Ee.value=void 0,$e.value=!1,_e.value=!0,Oe>0&&await promiseTimeout(Oe);const Ne=typeof ee=="function"?ee(...Ae):ee;try{const ke=await Ne;ye.value=ke,$e.value=!0,de(ke)}catch(ke){if(Ee.value=ke,se(ke),be)throw ke}finally{_e.value=!1}return ye.value}ae&&we(ie);const Pe={state:ye,isReady:$e,isLoading:_e,error:Ee,execute:we};function Ce(){return new Promise((Oe,Ae)=>{until(_e).toBe(!1).then(()=>Oe(Pe)).catch(Ae)})}return{...Pe,then(Oe,Ae){return Ce().then(Oe,Ae)}}}async function loadImage(ee){return new Promise((ne,oe)=>{const ae=new Image,{src:ie,srcset:se,sizes:de,class:fe,loading:ve,crossorigin:be,referrerPolicy:ye}=ee;ae.src=ie,se&&(ae.srcset=se),de&&(ae.sizes=de),fe&&(ae.className=fe),ve&&(ae.loading=ve),be&&(ae.crossOrigin=be),ye&&(ae.referrerPolicy=ye),ae.onload=()=>ne(ae),ae.onerror=oe})}function useImage(ee,ne={}){const oe=useAsyncState(()=>loadImage(toValue(ee)),void 0,{resetOnExecute:!0,...ne});return watch(()=>toValue(ee),()=>oe.execute(ne.delay),{deep:!0}),oe}const UseImage=defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(ee,{slots:ne}){const oe=reactive(useImage(ee));return()=>oe.isLoading&&ne.loading?ne.loading(oe):oe.error&&ne.error?ne.error(oe.error):ne.default?ne.default(oe):h$2(ee.as||"img",ee)}});function resolveElement(ee){return typeof Window<"u"&&ee instanceof Window?ee.document.documentElement:typeof Document<"u"&&ee instanceof Document?ee.documentElement:ee}function checkOverflowScroll(ee){const ne=window.getComputedStyle(ee);if(ne.overflowX==="scroll"||ne.overflowY==="scroll"||ne.overflowX==="auto"&&ee.clientWidth1?!0:(ne.preventDefault&&ne.preventDefault(),!1)}const elInitialOverflow=new WeakMap;function useScrollLock(ee,ne=!1){const oe=ref(ne);let ae=null,ie="";watch(toRef(ee),fe=>{const ve=resolveElement(toValue(fe));if(ve){const be=ve;if(elInitialOverflow.get(be)||elInitialOverflow.set(be,be.style.overflow),be.style.overflow!=="hidden"&&(ie=be.style.overflow),be.style.overflow==="hidden")return oe.value=!0;if(oe.value)return be.style.overflow="hidden"}},{immediate:!0});const se=()=>{const fe=resolveElement(toValue(ee));!fe||oe.value||(isIOS$2&&(ae=useEventListener$1(fe,"touchmove",ve=>{preventDefault$2(ve)},{passive:!1})),fe.style.overflow="hidden",oe.value=!0)},de=()=>{const fe=resolveElement(toValue(ee));!fe||!oe.value||(isIOS$2&&(ae==null||ae()),fe.style.overflow=ie,elInitialOverflow.delete(fe),oe.value=!1)};return tryOnScopeDispose(de),computed({get(){return oe.value},set(fe){fe?se():de()}})}function onScrollLock(){let ee=!1;const ne=ref(!1);return(oe,ae)=>{if(ne.value=ae.value,ee)return;ee=!0;const ie=useScrollLock(oe,ae.value);watch(ne,se=>ie.value=se)}}onScrollLock();const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(ee,ne,oe,ae="")=>{const ie=ee.split(":");if(ee.slice(0,1)==="@"){if(ie.length<2||ie.length>3)return null;ae=ie.shift().slice(1)}if(ie.length>3||!ie.length)return null;if(ie.length>1){const fe=ie.pop(),ve=ie.pop(),be={provider:ie.length>0?ie[0]:ae,prefix:ve,name:fe};return ne&&!validateIconName(be)?null:be}const se=ie[0],de=se.split("-");if(de.length>1){const fe={provider:ae,prefix:de.shift(),name:de.join("-")};return ne&&!validateIconName(fe)?null:fe}if(oe&&ae===""){const fe={provider:ae,prefix:"",name:se};return ne&&!validateIconName(fe,oe)?null:fe}return null},validateIconName=(ee,ne)=>ee?!!((ee.provider===""||ee.provider.match(matchIconName))&&(ne&&ee.prefix===""||ee.prefix.match(matchIconName))&&ee.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(ee,ne){const oe={};!ee.hFlip!=!ne.hFlip&&(oe.hFlip=!0),!ee.vFlip!=!ne.vFlip&&(oe.vFlip=!0);const ae=((ee.rotate||0)+(ne.rotate||0))%4;return ae&&(oe.rotate=ae),oe}function mergeIconData(ee,ne){const oe=mergeIconTransformations(ee,ne);for(const ae in defaultExtendedIconProps)ae in defaultIconTransformations?ae in ee&&!(ae in oe)&&(oe[ae]=defaultIconTransformations[ae]):ae in ne?oe[ae]=ne[ae]:ae in ee&&(oe[ae]=ee[ae]);return oe}function getIconsTree(ee,ne){const oe=ee.icons,ae=ee.aliases||Object.create(null),ie=Object.create(null);function se(de){if(oe[de])return ie[de]=[];if(!(de in ie)){ie[de]=null;const fe=ae[de]&&ae[de].parent,ve=fe&&se(fe);ve&&(ie[de]=[fe].concat(ve))}return ie[de]}return Object.keys(oe).concat(Object.keys(ae)).forEach(se),ie}function internalGetIconData(ee,ne,oe){const ae=ee.icons,ie=ee.aliases||Object.create(null);let se={};function de(fe){se=mergeIconData(ae[fe]||ie[fe],se)}return de(ne),oe.forEach(de),mergeIconData(ee,se)}function parseIconSet(ee,ne){const oe=[];if(typeof ee!="object"||typeof ee.icons!="object")return oe;ee.not_found instanceof Array&&ee.not_found.forEach(ie=>{ne(ie,null),oe.push(ie)});const ae=getIconsTree(ee);for(const ie in ae){const se=ae[ie];se&&(ne(ie,internalGetIconData(ee,ie,se)),oe.push(ie))}return oe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(ee,ne){for(const oe in ne)if(oe in ee&&typeof ee[oe]!=typeof ne[oe])return!1;return!0}function quicklyValidateIconSet(ee){if(typeof ee!="object"||ee===null)return null;const ne=ee;if(typeof ne.prefix!="string"||!ee.icons||typeof ee.icons!="object"||!checkOptionalProps(ee,optionalPropertyDefaults))return null;const oe=ne.icons;for(const ie in oe){const se=oe[ie];if(!ie.match(matchIconName)||typeof se.body!="string"||!checkOptionalProps(se,defaultExtendedIconProps))return null}const ae=ne.aliases||Object.create(null);for(const ie in ae){const se=ae[ie],de=se.parent;if(!ie.match(matchIconName)||typeof de!="string"||!oe[de]&&!ae[de]||!checkOptionalProps(se,defaultExtendedIconProps))return null}return ne}const dataStorage=Object.create(null);function newStorage(ee,ne){return{provider:ee,prefix:ne,icons:Object.create(null),missing:new Set}}function getStorage(ee,ne){const oe=dataStorage[ee]||(dataStorage[ee]=Object.create(null));return oe[ne]||(oe[ne]=newStorage(ee,ne))}function addIconSet(ee,ne){return quicklyValidateIconSet(ne)?parseIconSet(ne,(oe,ae)=>{ae?ee.icons[oe]=ae:ee.missing.add(oe)}):[]}function addIconToStorage(ee,ne,oe){try{if(typeof oe.body=="string")return ee.icons[ne]={...oe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(ee){return typeof ee=="boolean"&&(simpleNames=ee),simpleNames}function getIconData(ee){const ne=typeof ee=="string"?stringToIcon(ee,!0,simpleNames):ee;if(ne){const oe=getStorage(ne.provider,ne.prefix),ae=ne.name;return oe.icons[ae]||(oe.missing.has(ae)?null:void 0)}}function addIcon(ee,ne){const oe=stringToIcon(ee,!0,simpleNames);if(!oe)return!1;const ae=getStorage(oe.provider,oe.prefix);return addIconToStorage(ae,oe.name,ne)}function addCollection(ee,ne){if(typeof ee!="object")return!1;if(typeof ne!="string"&&(ne=ee.provider||""),simpleNames&&!ne&&!ee.prefix){let ie=!1;return quicklyValidateIconSet(ee)&&(ee.prefix="",parseIconSet(ee,(se,de)=>{de&&addIcon(se,de)&&(ie=!0)})),ie}const oe=ee.prefix;if(!validateIconName({provider:ne,prefix:oe,name:"a"}))return!1;const ae=getStorage(ne,oe);return!!addIconSet(ae,ee)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(ee,ne,oe){if(ne===1)return ee;if(oe=oe||100,typeof ee=="number")return Math.ceil(ee*ne*oe)/oe;if(typeof ee!="string")return ee;const ae=ee.split(unitsSplit);if(ae===null||!ae.length)return ee;const ie=[];let se=ae.shift(),de=unitsTest.test(se);for(;;){if(de){const fe=parseFloat(se);isNaN(fe)?ie.push(se):ie.push(Math.ceil(fe*ne*oe)/oe)}else ie.push(se);if(se=ae.shift(),se===void 0)return ie.join("");de=!de}}function splitSVGDefs(ee,ne="defs"){let oe="";const ae=ee.indexOf("<"+ne);for(;ae>=0;){const ie=ee.indexOf(">",ae),se=ee.indexOf("",se);if(de===-1)break;oe+=ee.slice(ie+1,se).trim(),ee=ee.slice(0,ae).trim()+ee.slice(de+1)}return{defs:oe,content:ee}}function mergeDefsAndContent(ee,ne){return ee?""+ee+""+ne:ne}function wrapSVGContent(ee,ne,oe){const ae=splitSVGDefs(ee);return mergeDefsAndContent(ae.defs,ne+ae.content+oe)}const isUnsetKeyword=ee=>ee==="unset"||ee==="undefined"||ee==="none";function iconToSVG(ee,ne){const oe={...defaultIconProps,...ee},ae={...defaultIconCustomisations,...ne},ie={left:oe.left,top:oe.top,width:oe.width,height:oe.height};let se=oe.body;[oe,ae].forEach(Pe=>{const Ce=[],Oe=Pe.hFlip,Ae=Pe.vFlip;let Ne=Pe.rotate;Oe?Ae?Ne+=2:(Ce.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),Ce.push("scale(-1 1)"),ie.top=ie.left=0):Ae&&(Ce.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),Ce.push("scale(1 -1)"),ie.top=ie.left=0);let ke;switch(Ne<0&&(Ne-=Math.floor(Ne/4)*4),Ne=Ne%4,Ne){case 1:ke=ie.height/2+ie.top,Ce.unshift("rotate(90 "+ke.toString()+" "+ke.toString()+")");break;case 2:Ce.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:ke=ie.width/2+ie.left,Ce.unshift("rotate(-90 "+ke.toString()+" "+ke.toString()+")");break}Ne%2===1&&(ie.left!==ie.top&&(ke=ie.left,ie.left=ie.top,ie.top=ke),ie.width!==ie.height&&(ke=ie.width,ie.width=ie.height,ie.height=ke)),Ce.length&&(se=wrapSVGContent(se,'',""))});const de=ae.width,fe=ae.height,ve=ie.width,be=ie.height;let ye,$e;de===null?($e=fe===null?"1em":fe==="auto"?be:fe,ye=calculateSize($e,ve/be)):(ye=de==="auto"?ve:de,$e=fe===null?calculateSize(ye,be/ve):fe==="auto"?be:fe);const _e={},Ee=(Pe,Ce)=>{isUnsetKeyword(Ce)||(_e[Pe]=Ce.toString())};Ee("width",ye),Ee("height",$e);const we=[ie.left,ie.top,ve,be];return _e.viewBox=we.join(" "),{attributes:_e,viewBox:we,body:se}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(ee,ne=randomPrefix){const oe=[];let ae;for(;ae=regex.exec(ee);)oe.push(ae[1]);if(!oe.length)return ee;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return oe.forEach(se=>{const de=typeof ne=="function"?ne(se):ne+(counter++).toString(),fe=se.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ee=ee.replace(new RegExp('([#;"])('+fe+')([")]|\\.[a-z])',"g"),"$1"+de+ie+"$3")}),ee=ee.replace(new RegExp(ie,"g"),""),ee}const storage$1=Object.create(null);function setAPIModule(ee,ne){storage$1[ee]=ne}function getAPIModule(ee){return storage$1[ee]||storage$1[""]}function createAPIConfig(ee){let ne;if(typeof ee.resources=="string")ne=[ee.resources];else if(ne=ee.resources,!(ne instanceof Array)||!ne.length)return null;return{resources:ne,path:ee.path||"/",maxURL:ee.maxURL||500,rotate:ee.rotate||750,timeout:ee.timeout||5e3,random:ee.random===!0,index:ee.index||0,dataAfterTimeout:ee.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(ee,ne){const oe=createAPIConfig(ne);return oe===null?!1:(configStorage[ee]=oe,!0)}function getAPIConfig(ee){return configStorage[ee]}const detectFetch=()=>{let ee;try{if(ee=fetch,typeof ee=="function")return ee}catch{}};let fetchModule=detectFetch();function calculateMaxLength(ee,ne){const oe=getAPIConfig(ee);if(!oe)return 0;let ae;if(!oe.maxURL)ae=0;else{let ie=0;oe.resources.forEach(de=>{ie=Math.max(ie,de.length)});const se=ne+".json?icons=";ae=oe.maxURL-ie-oe.path.length-se.length}return ae}function shouldAbort(ee){return ee===404}const prepare=(ee,ne,oe)=>{const ae=[],ie=calculateMaxLength(ee,ne),se="icons";let de={type:se,provider:ee,prefix:ne,icons:[]},fe=0;return oe.forEach((ve,be)=>{fe+=ve.length+1,fe>=ie&&be>0&&(ae.push(de),de={type:se,provider:ee,prefix:ne,icons:[]},fe=ve.length),de.icons.push(ve)}),ae.push(de),ae};function getPath$1(ee){if(typeof ee=="string"){const ne=getAPIConfig(ee);if(ne)return ne.path}return"/"}const send=(ee,ne,oe)=>{if(!fetchModule){oe("abort",424);return}let ae=getPath$1(ne.provider);switch(ne.type){case"icons":{const se=ne.prefix,fe=ne.icons.join(","),ve=new URLSearchParams({icons:fe});ae+=se+".json?"+ve.toString();break}case"custom":{const se=ne.uri;ae+=se.slice(0,1)==="/"?se.slice(1):se;break}default:oe("abort",400);return}let ie=503;fetchModule(ee+ae).then(se=>{const de=se.status;if(de!==200){setTimeout(()=>{oe(shouldAbort(de)?"abort":"next",de)});return}return ie=501,se.json()}).then(se=>{if(typeof se!="object"||se===null){setTimeout(()=>{se===404?oe("abort",se):oe("next",ie)});return}setTimeout(()=>{oe("success",se)})}).catch(()=>{oe("next",ie)})},fetchAPIModule={prepare,send};function sortIcons(ee){const ne={loaded:[],missing:[],pending:[]},oe=Object.create(null);ee.sort((ie,se)=>ie.provider!==se.provider?ie.provider.localeCompare(se.provider):ie.prefix!==se.prefix?ie.prefix.localeCompare(se.prefix):ie.name.localeCompare(se.name));let ae={provider:"",prefix:"",name:""};return ee.forEach(ie=>{if(ae.name===ie.name&&ae.prefix===ie.prefix&&ae.provider===ie.provider)return;ae=ie;const se=ie.provider,de=ie.prefix,fe=ie.name,ve=oe[se]||(oe[se]=Object.create(null)),be=ve[de]||(ve[de]=getStorage(se,de));let ye;fe in be.icons?ye=ne.loaded:de===""||be.missing.has(fe)?ye=ne.missing:ye=ne.pending;const $e={provider:se,prefix:de,name:fe};ye.push($e)}),ne}function removeCallback(ee,ne){ee.forEach(oe=>{const ae=oe.loaderCallbacks;ae&&(oe.loaderCallbacks=ae.filter(ie=>ie.id!==ne))})}function updateCallbacks(ee){ee.pendingCallbacksFlag||(ee.pendingCallbacksFlag=!0,setTimeout(()=>{ee.pendingCallbacksFlag=!1;const ne=ee.loaderCallbacks?ee.loaderCallbacks.slice(0):[];if(!ne.length)return;let oe=!1;const ae=ee.provider,ie=ee.prefix;ne.forEach(se=>{const de=se.icons,fe=de.pending.length;de.pending=de.pending.filter(ve=>{if(ve.prefix!==ie)return!0;const be=ve.name;if(ee.icons[be])de.loaded.push({provider:ae,prefix:ie,name:be});else if(ee.missing.has(be))de.missing.push({provider:ae,prefix:ie,name:be});else return oe=!0,!0;return!1}),de.pending.length!==fe&&(oe||removeCallback([ee],se.id),se.callback(de.loaded.slice(0),de.missing.slice(0),de.pending.slice(0),se.abort))})}))}let idCounter=0;function storeCallback(ee,ne,oe){const ae=idCounter++,ie=removeCallback.bind(null,oe,ae);if(!ne.pending.length)return ie;const se={id:ae,icons:ne,callback:ee,abort:ie};return oe.forEach(de=>{(de.loaderCallbacks||(de.loaderCallbacks=[])).push(se)}),ie}function listToIcons(ee,ne=!0,oe=!1){const ae=[];return ee.forEach(ie=>{const se=typeof ie=="string"?stringToIcon(ie,ne,oe):ie;se&&ae.push(se)}),ae}var defaultConfig$1={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(ee,ne,oe,ae){const ie=ee.resources.length,se=ee.random?Math.floor(Math.random()*ie):ee.index;let de;if(ee.random){let Le=ee.resources.slice(0);for(de=[];Le.length>1;){const Me=Math.floor(Math.random()*Le.length);de.push(Le[Me]),Le=Le.slice(0,Me).concat(Le.slice(Me+1))}de=de.concat(Le)}else de=ee.resources.slice(se).concat(ee.resources.slice(0,se));const fe=Date.now();let ve="pending",be=0,ye,$e=null,_e=[],Ee=[];typeof ae=="function"&&Ee.push(ae);function we(){$e&&(clearTimeout($e),$e=null)}function Pe(){ve==="pending"&&(ve="aborted"),we(),_e.forEach(Le=>{Le.status==="pending"&&(Le.status="aborted")}),_e=[]}function Ce(Le,Me){Me&&(Ee=[]),typeof Le=="function"&&Ee.push(Le)}function Oe(){return{startTime:fe,payload:ne,status:ve,queriesSent:be,queriesPending:_e.length,subscribe:Ce,abort:Pe}}function Ae(){ve="failed",Ee.forEach(Le=>{Le(void 0,ye)})}function Ne(){_e.forEach(Le=>{Le.status==="pending"&&(Le.status="aborted")}),_e=[]}function ke(Le,Me,Ie){const Fe=Me!=="success";switch(_e=_e.filter(je=>je!==Le),ve){case"pending":break;case"failed":if(Fe||!ee.dataAfterTimeout)return;break;default:return}if(Me==="abort"){ye=Ie,Ae();return}if(Fe){ye=Ie,_e.length||(de.length?Re():Ae());return}if(we(),Ne(),!ee.random){const je=ee.resources.indexOf(Le.resource);je!==-1&&je!==ee.index&&(ee.index=je)}ve="completed",Ee.forEach(je=>{je(Ie)})}function Re(){if(ve!=="pending")return;we();const Le=de.shift();if(Le===void 0){if(_e.length){$e=setTimeout(()=>{we(),ve==="pending"&&(Ne(),Ae())},ee.timeout);return}Ae();return}const Me={status:"pending",resource:Le,callback:(Ie,Fe)=>{ke(Me,Ie,Fe)}};_e.push(Me),be++,$e=setTimeout(Re,ee.rotate),oe(Le,ne,Me.callback)}return setTimeout(Re),Oe}function initRedundancy(ee){const ne={...defaultConfig$1,...ee};let oe=[];function ae(){oe=oe.filter(fe=>fe().status==="pending")}function ie(fe,ve,be){const ye=sendQuery(ne,fe,ve,($e,_e)=>{ae(),be&&be($e,_e)});return oe.push(ye),ye}function se(fe){return oe.find(ve=>fe(ve))||null}return{query:ie,find:se,setIndex:fe=>{ne.index=fe},getIndex:()=>ne.index,cleanup:ae}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(ee){if(!redundancyCache[ee]){const ne=getAPIConfig(ee);if(!ne)return;const oe=initRedundancy(ne),ae={config:ne,redundancy:oe};redundancyCache[ee]=ae}return redundancyCache[ee]}function sendAPIQuery(ee,ne,oe){let ae,ie;if(typeof ee=="string"){const se=getAPIModule(ee);if(!se)return oe(void 0,424),emptyCallback$1;ie=se.send;const de=getRedundancyCache(ee);de&&(ae=de.redundancy)}else{const se=createAPIConfig(ee);if(se){ae=initRedundancy(se);const de=ee.resources?ee.resources[0]:"",fe=getAPIModule(de);fe&&(ie=fe.send)}}return!ae||!ie?(oe(void 0,424),emptyCallback$1):ae.query(ne,ie,oe)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168,browserStorageLimit=50;function getStoredItem(ee,ne){try{return ee.getItem(ne)}catch{}}function setStoredItem(ee,ne,oe){try{return ee.setItem(ne,oe),!0}catch{}}function removeStoredItem(ee,ne){try{ee.removeItem(ne)}catch{}}function setBrowserStorageItemsCount(ee,ne){return setStoredItem(ee,browserCacheCountKey,ne.toString())}function getBrowserStorageItemsCount(ee){return parseInt(getStoredItem(ee,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(ee){browserStorageStatus=ee}let _window=typeof window>"u"?{}:window;function getBrowserStorage(ee){const ne=ee+"Storage";try{if(_window&&_window[ne]&&typeof _window[ne].length=="number")return _window[ne]}catch{}browserStorageConfig[ee]=!1}function iterateBrowserStorage(ee,ne){const oe=getBrowserStorage(ee);if(!oe)return;const ae=getStoredItem(oe,browserCacheVersionKey);if(ae!==browserCacheVersion){if(ae){const fe=getBrowserStorageItemsCount(oe);for(let ve=0;ve{const ve=browserCachePrefix+fe.toString(),be=getStoredItem(oe,ve);if(typeof be=="string"){try{const ye=JSON.parse(be);if(typeof ye=="object"&&typeof ye.cached=="number"&&ye.cached>ie&&typeof ye.provider=="string"&&typeof ye.data=="object"&&typeof ye.data.prefix=="string"&&ne(ye,fe))return!0}catch{}removeStoredItem(oe,ve)}};let de=getBrowserStorageItemsCount(oe);for(let fe=de-1;fe>=0;fe--)se(fe)||(fe===de-1?(de--,setBrowserStorageItemsCount(oe,de)):browserStorageEmptyItems[ee].add(fe))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const ee in browserStorageConfig)iterateBrowserStorage(ee,ne=>{const oe=ne.data,ae=ne.provider,ie=oe.prefix,se=getStorage(ae,ie);if(!addIconSet(se,oe).length)return!1;const de=oe.lastModified||-1;return se.lastModifiedCached=se.lastModifiedCached?Math.min(se.lastModifiedCached,de):de,!0})}}function updateLastModified(ee,ne){const oe=ee.lastModifiedCached;if(oe&&oe>=ne)return oe===ne;if(ee.lastModifiedCached=ne,oe)for(const ae in browserStorageConfig)iterateBrowserStorage(ae,ie=>{const se=ie.data;return ie.provider!==ee.provider||se.prefix!==ee.prefix||se.lastModified===ne});return!0}function storeInBrowserStorage(ee,ne){browserStorageStatus||initBrowserStorage();function oe(ae){let ie;if(!browserStorageConfig[ae]||!(ie=getBrowserStorage(ae)))return;const se=browserStorageEmptyItems[ae];let de;if(se.size)se.delete(de=Array.from(se).shift());else if(de=getBrowserStorageItemsCount(ie),de>=browserStorageLimit||!setBrowserStorageItemsCount(ie,de+1))return;const fe={cached:Math.floor(Date.now()/browserStorageHour),provider:ee.provider,data:ne};return setStoredItem(ie,browserCachePrefix+de.toString(),JSON.stringify(fe))}ne.lastModified&&!updateLastModified(ee,ne.lastModified)||Object.keys(ne.icons).length&&(ne.not_found&&(ne=Object.assign({},ne),delete ne.not_found),oe("local")||oe("session"))}function emptyCallback(){}function loadedNewIcons(ee){ee.iconsLoaderFlag||(ee.iconsLoaderFlag=!0,setTimeout(()=>{ee.iconsLoaderFlag=!1,updateCallbacks(ee)}))}function loadNewIcons(ee,ne){ee.iconsToLoad?ee.iconsToLoad=ee.iconsToLoad.concat(ne).sort():ee.iconsToLoad=ne,ee.iconsQueueFlag||(ee.iconsQueueFlag=!0,setTimeout(()=>{ee.iconsQueueFlag=!1;const{provider:oe,prefix:ae}=ee,ie=ee.iconsToLoad;delete ee.iconsToLoad;let se;if(!ie||!(se=getAPIModule(oe)))return;se.prepare(oe,ae,ie).forEach(fe=>{sendAPIQuery(oe,fe,ve=>{if(typeof ve!="object")fe.icons.forEach(be=>{ee.missing.add(be)});else try{const be=addIconSet(ee,ve);if(!be.length)return;const ye=ee.pendingIcons;ye&&be.forEach($e=>{ye.delete($e)}),storeInBrowserStorage(ee,ve)}catch(be){console.error(be)}loadedNewIcons(ee)})})}))}const loadIcons=(ee,ne)=>{const oe=listToIcons(ee,!0,allowSimpleNames()),ae=sortIcons(oe);if(!ae.pending.length){let ve=!0;return ne&&setTimeout(()=>{ve&&ne(ae.loaded,ae.missing,ae.pending,emptyCallback)}),()=>{ve=!1}}const ie=Object.create(null),se=[];let de,fe;return ae.pending.forEach(ve=>{const{provider:be,prefix:ye}=ve;if(ye===fe&&be===de)return;de=be,fe=ye,se.push(getStorage(be,ye));const $e=ie[be]||(ie[be]=Object.create(null));$e[ye]||($e[ye]=[])}),ae.pending.forEach(ve=>{const{provider:be,prefix:ye,name:$e}=ve,_e=getStorage(be,ye),Ee=_e.pendingIcons||(_e.pendingIcons=new Set);Ee.has($e)||(Ee.add($e),ie[be][ye].push($e))}),se.forEach(ve=>{const{provider:be,prefix:ye}=ve;ie[be][ye].length&&loadNewIcons(ve,ie[be][ye])}),ne?storeCallback(ne,ae,se):emptyCallback};function mergeCustomisations(ee,ne){const oe={...ee};for(const ae in ne){const ie=ne[ae],se=typeof ie;ae in defaultIconSizeCustomisations?(ie===null||ie&&(se==="string"||se==="number"))&&(oe[ae]=ie):se===typeof oe[ae]&&(oe[ae]=ae==="rotate"?ie%4:ie)}return oe}const separator=/[\s,]+/;function flipFromString(ee,ne){ne.split(separator).forEach(oe=>{switch(oe.trim()){case"horizontal":ee.hFlip=!0;break;case"vertical":ee.vFlip=!0;break}})}function rotateFromString(ee,ne=0){const oe=ee.replace(/^-?[0-9.]*/,"");function ae(ie){for(;ie<0;)ie+=4;return ie%4}if(oe===""){const ie=parseInt(ee);return isNaN(ie)?0:ae(ie)}else if(oe!==ee){let ie=0;switch(oe){case"%":ie=25;break;case"deg":ie=90}if(ie){let se=parseFloat(ee.slice(0,ee.length-oe.length));return isNaN(se)?0:(se=se/ie,se%1===0?ae(se):0)}}return ne}function iconToHTML(ee,ne){let oe=ee.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ae in ne)oe+=" "+ae+'="'+ne[ae]+'"';return'"+ee+""}function encodeSVGforURL(ee){return ee.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(ee){return"data:image/svg+xml,"+encodeSVGforURL(ee)}function svgToURL(ee){return'url("'+svgToData(ee)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const ee in propsToAddTo){const ne=propsToAddTo[ee];for(const oe in propsToAdd)ne[ee+oe]=propsToAdd[oe]}const customisationAliases={};["horizontal","vertical"].forEach(ee=>{const ne=ee.slice(0,1)+"Flip";customisationAliases[ee+"-flip"]=ne,customisationAliases[ee.slice(0,1)+"-flip"]=ne,customisationAliases[ee+"Flip"]=ne});function fixSize(ee){return ee+(ee.match(/^[-0-9.]+$/)?"px":"")}const render=(ee,ne)=>{const oe=mergeCustomisations(defaultExtendedIconCustomisations,ne),ae={...svgDefaults},ie=ne.mode||"svg",se={},de=ne.style,fe=typeof de=="object"&&!(de instanceof Array)?de:{};for(let Pe in ne){const Ce=ne[Pe];if(Ce!==void 0)switch(Pe){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":oe[Pe]=Ce===!0||Ce==="true"||Ce===1;break;case"flip":typeof Ce=="string"&&flipFromString(oe,Ce);break;case"color":se.color=Ce;break;case"rotate":typeof Ce=="string"?oe[Pe]=rotateFromString(Ce):typeof Ce=="number"&&(oe[Pe]=Ce);break;case"ariaHidden":case"aria-hidden":Ce!==!0&&Ce!=="true"&&delete ae["aria-hidden"];break;default:{const Oe=customisationAliases[Pe];Oe?(Ce===!0||Ce==="true"||Ce===1)&&(oe[Oe]=!0):defaultExtendedIconCustomisations[Pe]===void 0&&(ae[Pe]=Ce)}}}const ve=iconToSVG(ee,oe),be=ve.attributes;if(oe.inline&&(se.verticalAlign="-0.125em"),ie==="svg"){ae.style={...se,...fe},Object.assign(ae,be);let Pe=0,Ce=ne.id;return typeof Ce=="string"&&(Ce=Ce.replace(/-/g,"_")),ae.innerHTML=replaceIDs(ve.body,Ce?()=>Ce+"ID"+Pe++:"iconifyVue"),h$2("svg",ae)}const{body:ye,width:$e,height:_e}=ee,Ee=ie==="mask"||(ie==="bg"?!1:ye.indexOf("currentColor")!==-1),we=iconToHTML(ye,{...be,width:$e+"",height:_e+""});return ae.style={...se,"--svg":svgToURL(we),width:fixSize(be.width),height:fixSize(be.height),...commonProps,...Ee?monotoneProps:coloredProps,...fe},h$2("span",ae)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const ee=window;if(ee.IconifyPreload!==void 0){const ne=ee.IconifyPreload,oe="Invalid IconifyPreload syntax.";typeof ne=="object"&&ne!==null&&(ne instanceof Array?ne:[ne]).forEach(ae=>{try{(typeof ae!="object"||ae===null||ae instanceof Array||typeof ae.icons!="object"||typeof ae.prefix!="string"||!addCollection(ae))&&console.error(oe)}catch{console.error(oe)}})}if(ee.IconifyProviders!==void 0){const ne=ee.IconifyProviders;if(typeof ne=="object"&&ne!==null)for(let oe in ne){const ae="IconifyProviders["+oe+"] is invalid.";try{const ie=ne[oe];if(typeof ie!="object"||!ie||ie.resources===void 0)continue;addAPIProvider(oe,ie)||console.error(ae)}catch{console.error(ae)}}}}const emptyIcon={...defaultIconProps,body:""},Icon$1=defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(ee,ne){if(typeof ee=="object"&&ee!==null&&typeof ee.body=="string")return this._name="",this.abortLoading(),{data:ee};let oe;if(typeof ee!="string"||(oe=stringToIcon(ee,!1,!0))===null)return this.abortLoading(),null;const ae=getIconData(oe);if(!ae)return(!this._loadingIcon||this._loadingIcon.name!==ee)&&(this.abortLoading(),this._name="",ae!==null&&(this._loadingIcon={name:ee,abort:loadIcons([oe],()=>{this.counter++})})),null;this.abortLoading(),this._name!==ee&&(this._name=ee,ne&&ne(ee));const ie=["iconify"];return oe.prefix!==""&&ie.push("iconify--"+oe.prefix),oe.provider!==""&&ie.push("iconify--"+oe.provider),{data:ae,classes:ie}}},render(){this.counter;const ee=this.$attrs,ne=this.iconMounted||ee.ssr?this.getIcon(ee.icon,ee.onLoad):null;if(!ne)return render(emptyIcon,ee);let oe=ee;return ne.classes&&(oe={...ee,class:(typeof ee.class=="string"?ee.class+" ":"")+ne.classes.join(" ")}),render({...defaultIconProps,...ne.data},oe)}}),_hoisted_1$6={key:2,class:"h-[1em] w-[1em]","aria-hidden":"true"},_hoisted_2$4=["xlink:href"],_hoisted_3$2=createBaseVNode("i",{class:"i-line-md:loading-loop h-[1em] w-[1em]"},null,-1),_hoisted_4$2=createBaseVNode("i",{class:"i-tdesign:image-error h-[1em] w-[1em]"},null,-1),_sfc_main$9=defineComponent({name:"SvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{}},setup(ee){const ne=ee,oe=computed(()=>{const ie=se=>/^\.{1,2}\//.test(se)||se.startsWith("/")||se.includes("/");return/^https?:\/\//.test(ne.name)||ie(ne.name)||!ne.name?"img":/i-[^:]+:[^:]+/.test(ne.name)?"unocss":ne.name.includes(":")?"iconify":"svg"}),ae=computed(()=>{const ie=[];if(ne.flip)switch(ne.flip){case"horizontal":ie.push("rotateY(180deg)");break;case"vertical":ie.push("rotateX(180deg)");break;case"both":ie.push("rotateX(180deg)"),ie.push("rotateY(180deg)");break}return ne.rotate&&ie.push(`rotate(${ne.rotate%360}deg)`),{...ne.color&&{color:ne.color},...ne.size&&{fontSize:typeof ne.size=="number"?`${ne.size}px`:ne.size},...ie.length&&{transform:ie.join(" ")}}});return(ie,se)=>(openBlock(),createElementBlock("i",{class:"relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em]",style:normalizeStyle(unref(ae))},[unref(oe)==="unocss"?(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(["h-[1em] w-[1em]",ie.name])},null,2)):unref(oe)==="iconify"?(openBlock(),createBlock(unref(Icon$1),{key:1,icon:ie.name},null,8,["icon"])):unref(oe)==="svg"?(openBlock(),createElementBlock("svg",_hoisted_1$6,[createBaseVNode("use",{"xlink:href":`#icon-${ie.name}`},null,8,_hoisted_2$4)])):unref(oe)==="img"?(openBlock(),createBlock(unref(UseImage),{key:3,src:ie.name,class:"h-[1em] w-[1em]"},{loading:withCtx(()=>[_hoisted_3$2]),error:withCtx(()=>[_hoisted_4$2]),_:1},8,["src"])):createCommentVNode("",!0)],4))}});function d$7(ee,ne,oe){let ae=ref(oe==null?void 0:oe.value),ie=computed(()=>ee.value!==void 0);return[computed(()=>ie.value?ee.value:ae.value),function(se){return ie.value||(ae.value=se),ne==null?void 0:ne(se)}]}function t$s(ee){typeof queueMicrotask=="function"?queueMicrotask(ee):Promise.resolve().then(ee).catch(ne=>setTimeout(()=>{throw ne}))}function o$3(){let ee=[],ne={addEventListener(oe,ae,ie,se){return oe.addEventListener(ae,ie,se),ne.add(()=>oe.removeEventListener(ae,ie,se))},requestAnimationFrame(...oe){let ae=requestAnimationFrame(...oe);ne.add(()=>cancelAnimationFrame(ae))},nextFrame(...oe){ne.requestAnimationFrame(()=>{ne.requestAnimationFrame(...oe)})},setTimeout(...oe){let ae=setTimeout(...oe);ne.add(()=>clearTimeout(ae))},microTask(...oe){let ae={current:!0};return t$s(()=>{ae.current&&oe[0]()}),ne.add(()=>{ae.current=!1})},style(oe,ae,ie){let se=oe.style.getPropertyValue(ae);return Object.assign(oe.style,{[ae]:ie}),this.add(()=>{Object.assign(oe.style,{[ae]:se})})},group(oe){let ae=o$3();return oe(ae),this.add(()=>ae.dispose())},add(oe){return ee.push(oe),()=>{let ae=ee.indexOf(oe);if(ae>=0)for(let ie of ee.splice(ae,1))ie()}},dispose(){for(let oe of ee.splice(0))oe()}};return ne}let t$r=Symbol("headlessui.useid"),i$6=0;function I$2(){return inject(t$r,()=>`${++i$6}`)()}function o$2(ee){var ne;if(ee==null||ee.value==null)return null;let oe=(ne=ee.value.$el)!=null?ne:ee.value;return oe instanceof Node?oe:null}function u$6(ee,ne,...oe){if(ee in ne){let ie=ne[ee];return typeof ie=="function"?ie(...oe):ie}let ae=new Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(ne).map(ie=>`"${ie}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(ae,u$6),ae}var i$5=Object.defineProperty,d$6=(ee,ne,oe)=>ne in ee?i$5(ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[ne]=oe,n$4=(ee,ne,oe)=>(d$6(ee,typeof ne!="symbol"?ne+"":ne,oe),oe);let s$5=class{constructor(){n$4(this,"current",this.detect()),n$4(this,"currentId",0)}set(ne){this.current!==ne&&(this.currentId=0,this.current=ne)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},c$3=new s$5;function i$4(ee){if(c$3.isServer)return null;if(ee instanceof Node)return ee.ownerDocument;if(ee!=null&&ee.hasOwnProperty("value")){let ne=o$2(ee);if(ne)return ne.ownerDocument}return document}let c$2=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var N$5=(ee=>(ee[ee.First=1]="First",ee[ee.Previous=2]="Previous",ee[ee.Next=4]="Next",ee[ee.Last=8]="Last",ee[ee.WrapAround=16]="WrapAround",ee[ee.NoScroll=32]="NoScroll",ee))(N$5||{}),T$3=(ee=>(ee[ee.Error=0]="Error",ee[ee.Overflow=1]="Overflow",ee[ee.Success=2]="Success",ee[ee.Underflow=3]="Underflow",ee))(T$3||{}),F$2=(ee=>(ee[ee.Previous=-1]="Previous",ee[ee.Next=1]="Next",ee))(F$2||{});function E$4(ee=document.body){return ee==null?[]:Array.from(ee.querySelectorAll(c$2)).sort((ne,oe)=>Math.sign((ne.tabIndex||Number.MAX_SAFE_INTEGER)-(oe.tabIndex||Number.MAX_SAFE_INTEGER)))}var h$1=(ee=>(ee[ee.Strict=0]="Strict",ee[ee.Loose=1]="Loose",ee))(h$1||{});function w$5(ee,ne=0){var oe;return ee===((oe=i$4(ee))==null?void 0:oe.body)?!1:u$6(ne,{0(){return ee.matches(c$2)},1(){let ae=ee;for(;ae!==null;){if(ae.matches(c$2))return!0;ae=ae.parentElement}return!1}})}var y$3=(ee=>(ee[ee.Keyboard=0]="Keyboard",ee[ee.Mouse=1]="Mouse",ee))(y$3||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{ee.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:ee.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function S$2(ee){ee==null||ee.focus({preventScroll:!0})}let H$3=["textarea","input"].join(",");function I$1(ee){var ne,oe;return(oe=(ne=ee==null?void 0:ee.matches)==null?void 0:ne.call(ee,H$3))!=null?oe:!1}function O$1(ee,ne=oe=>oe){return ee.slice().sort((oe,ae)=>{let ie=ne(oe),se=ne(ae);if(ie===null||se===null)return 0;let de=ie.compareDocumentPosition(se);return de&Node.DOCUMENT_POSITION_FOLLOWING?-1:de&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function P$2(ee,ne,{sorted:oe=!0,relativeTo:ae=null,skipElements:ie=[]}={}){var se;let de=(se=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee==null?void 0:ee.ownerDocument)!=null?se:document,fe=Array.isArray(ee)?oe?O$1(ee):ee:E$4(ee);ie.length>0&&fe.length>1&&(fe=fe.filter(we=>!ie.includes(we))),ae=ae??de.activeElement;let ve=(()=>{if(ne&5)return 1;if(ne&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),be=(()=>{if(ne&1)return 0;if(ne&2)return Math.max(0,fe.indexOf(ae))-1;if(ne&4)return Math.max(0,fe.indexOf(ae))+1;if(ne&8)return fe.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ye=ne&32?{preventScroll:!0}:{},$e=0,_e=fe.length,Ee;do{if($e>=_e||$e+_e<=0)return 0;let we=be+$e;if(ne&16)we=(we+_e)%_e;else{if(we<0)return 3;if(we>=_e)return 1}Ee=fe[we],Ee==null||Ee.focus(ye),$e+=ve}while(Ee!==de.activeElement);return ne&6&&I$1(Ee)&&Ee.select(),2}function t$q(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i$3(){return/Android/gi.test(window.navigator.userAgent)}function n$3(){return t$q()||i$3()}function u$5(ee,ne,oe){c$3.isServer||watchEffect(ae=>{document.addEventListener(ee,ne,oe),ae(()=>document.removeEventListener(ee,ne,oe))})}function w$4(ee,ne,oe){c$3.isServer||watchEffect(ae=>{window.addEventListener(ee,ne,oe),ae(()=>window.removeEventListener(ee,ne,oe))})}function w$3(ee,ne,oe=computed(()=>!0)){function ae(se,de){if(!oe.value||se.defaultPrevented)return;let fe=de(se);if(fe===null||!fe.getRootNode().contains(fe))return;let ve=function be(ye){return typeof ye=="function"?be(ye()):Array.isArray(ye)||ye instanceof Set?ye:[ye]}(ee);for(let be of ve){if(be===null)continue;let ye=be instanceof HTMLElement?be:o$2(be);if(ye!=null&&ye.contains(fe)||se.composed&&se.composedPath().includes(ye))return}return!w$5(fe,h$1.Loose)&&fe.tabIndex!==-1&&se.preventDefault(),ne(se,fe)}let ie=ref(null);u$5("pointerdown",se=>{var de,fe;oe.value&&(ie.value=((fe=(de=se.composedPath)==null?void 0:de.call(se))==null?void 0:fe[0])||se.target)},!0),u$5("mousedown",se=>{var de,fe;oe.value&&(ie.value=((fe=(de=se.composedPath)==null?void 0:de.call(se))==null?void 0:fe[0])||se.target)},!0),u$5("click",se=>{n$3()||ie.value&&(ae(se,()=>ie.value),ie.value=null)},!0),u$5("touchend",se=>ae(se,()=>se.target instanceof HTMLElement?se.target:null),!0),w$4("blur",se=>ae(se,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function r$1(ee,ne){if(ee)return ee;let oe=ne??"button";if(typeof oe=="string"&&oe.toLowerCase()==="button")return"button"}function s$4(ee,ne){let oe=ref(r$1(ee.value.type,ee.value.as));return onMounted(()=>{oe.value=r$1(ee.value.type,ee.value.as)}),watchEffect(()=>{var ae;oe.value||o$2(ne)&&o$2(ne)instanceof HTMLButtonElement&&!((ae=o$2(ne))!=null&&ae.hasAttribute("type"))&&(oe.value="button")}),oe}var N$4=(ee=>(ee[ee.None=0]="None",ee[ee.RenderStrategy=1]="RenderStrategy",ee[ee.Static=2]="Static",ee))(N$4||{}),S$1=(ee=>(ee[ee.Unmount=0]="Unmount",ee[ee.Hidden=1]="Hidden",ee))(S$1||{});function A$3({visible:ee=!0,features:ne=0,ourProps:oe,theirProps:ae,...ie}){var se;let de=j$1(ae,oe),fe=Object.assign(ie,{props:de});if(ee||ne&2&&de.static)return y$2(fe);if(ne&1){let ve=(se=de.unmount)==null||se?0:1;return u$6(ve,{0(){return null},1(){return y$2({...ie,props:{...de,hidden:!0,style:{display:"none"}}})}})}return y$2(fe)}function y$2({props:ee,attrs:ne,slots:oe,slot:ae,name:ie}){var se,de;let{as:fe,...ve}=T$2(ee,["unmount","static"]),be=(se=oe.default)==null?void 0:se.call(oe,ae),ye={};if(ae){let $e=!1,_e=[];for(let[Ee,we]of Object.entries(ae))typeof we=="boolean"&&($e=!0),we===!0&&_e.push(Ee);$e&&(ye["data-headlessui-state"]=_e.join(" "))}if(fe==="template"){if(be=b$1(be??[]),Object.keys(ve).length>0||Object.keys(ne).length>0){let[$e,..._e]=be??[];if(!v$1($e)||_e.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${ie} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(ve).concat(Object.keys(ne)).map(Pe=>Pe.trim()).filter((Pe,Ce,Oe)=>Oe.indexOf(Pe)===Ce).sort((Pe,Ce)=>Pe.localeCompare(Ce)).map(Pe=>` - ${Pe}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(Pe=>` - ${Pe}`).join(` +`)].join(` +`));let Ee=j$1((de=$e.props)!=null?de:{},ve,ye),we=cloneVNode($e,Ee,!0);for(let Pe in Ee)Pe.startsWith("on")&&(we.props||(we.props={}),we.props[Pe]=Ee[Pe]);return we}return Array.isArray(be)&&be.length===1?be[0]:be}return h$2(fe,Object.assign({},ve,ye),{default:()=>be})}function b$1(ee){return ee.flatMap(ne=>ne.type===Fragment?b$1(ne.children):[ne])}function j$1(...ee){if(ee.length===0)return{};if(ee.length===1)return ee[0];let ne={},oe={};for(let ae of ee)for(let ie in ae)ie.startsWith("on")&&typeof ae[ie]=="function"?(oe[ie]!=null||(oe[ie]=[]),oe[ie].push(ae[ie])):ne[ie]=ae[ie];if(ne.disabled||ne["aria-disabled"])return Object.assign(ne,Object.fromEntries(Object.keys(oe).map(ae=>[ae,void 0])));for(let ae in oe)Object.assign(ne,{[ae](ie,...se){let de=oe[ae];for(let fe of de){if(ie instanceof Event&&ie.defaultPrevented)return;fe(ie,...se)}}});return ne}function E$3(ee){let ne=Object.assign({},ee);for(let oe in ne)ne[oe]===void 0&&delete ne[oe];return ne}function T$2(ee,ne=[]){let oe=Object.assign({},ee);for(let ae of ne)ae in oe&&delete oe[ae];return oe}function v$1(ee){return ee==null?!1:typeof ee.type=="string"||typeof ee.type=="object"||typeof ee.type=="function"}var u$4=(ee=>(ee[ee.None=1]="None",ee[ee.Focusable=2]="Focusable",ee[ee.Hidden=4]="Hidden",ee))(u$4||{});let f$2=defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(ee,{slots:ne,attrs:oe}){return()=>{var ae;let{features:ie,...se}=ee,de={"aria-hidden":(ie&2)===2?!0:(ae=se["aria-hidden"])!=null?ae:void 0,hidden:(ie&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(ie&4)===4&&(ie&2)!==2&&{display:"none"}}};return A$3({ourProps:de,theirProps:se,slot:{},attrs:oe,slots:ne,name:"Hidden"})}}}),n$2=Symbol("Context");var i$2=(ee=>(ee[ee.Open=1]="Open",ee[ee.Closed=2]="Closed",ee[ee.Closing=4]="Closing",ee[ee.Opening=8]="Opening",ee))(i$2||{});function s$3(){return l$3()!==null}function l$3(){return inject(n$2,null)}function t$p(ee){provide(n$2,ee)}var o$1=(ee=>(ee.Space=" ",ee.Enter="Enter",ee.Escape="Escape",ee.Backspace="Backspace",ee.Delete="Delete",ee.ArrowLeft="ArrowLeft",ee.ArrowUp="ArrowUp",ee.ArrowRight="ArrowRight",ee.ArrowDown="ArrowDown",ee.Home="Home",ee.End="End",ee.PageUp="PageUp",ee.PageDown="PageDown",ee.Tab="Tab",ee))(o$1||{});function t$o(ee){function ne(){document.readyState!=="loading"&&(ee(),document.removeEventListener("DOMContentLoaded",ne))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",ne),ne())}let t$n=[];t$o(()=>{function ee(ne){ne.target instanceof HTMLElement&&ne.target!==document.body&&t$n[0]!==ne.target&&(t$n.unshift(ne.target),t$n=t$n.filter(oe=>oe!=null&&oe.isConnected),t$n.splice(10))}window.addEventListener("click",ee,{capture:!0}),window.addEventListener("mousedown",ee,{capture:!0}),window.addEventListener("focus",ee,{capture:!0}),document.body.addEventListener("click",ee,{capture:!0}),document.body.addEventListener("mousedown",ee,{capture:!0}),document.body.addEventListener("focus",ee,{capture:!0})});function p$1(ee){var ne,oe;let ae=(ne=ee==null?void 0:ee.form)!=null?ne:ee.closest("form");if(ae){for(let ie of ae.elements)if(ie!==ee&&(ie.tagName==="INPUT"&&ie.type==="submit"||ie.tagName==="BUTTON"&&ie.type==="submit"||ie.nodeName==="INPUT"&&ie.type==="image")){ie.click();return}(oe=ae.requestSubmit)==null||oe.call(ae)}}function E$2(ee,ne,oe,ae){c$3.isServer||watchEffect(ie=>{ee=ee??window,ee.addEventListener(ne,oe,ae),ie(()=>ee.removeEventListener(ne,oe,ae))})}var d$5=(ee=>(ee[ee.Forwards=0]="Forwards",ee[ee.Backwards=1]="Backwards",ee))(d$5||{});function n$1(){let ee=ref(0);return w$4("keydown",ne=>{ne.key==="Tab"&&(ee.value=ne.shiftKey?1:0)}),ee}function B$1(ee){if(!ee)return new Set;if(typeof ee=="function")return new Set(ee());let ne=new Set;for(let oe of ee.value){let ae=o$2(oe);ae instanceof HTMLElement&&ne.add(ae)}return ne}var A$2=(ee=>(ee[ee.None=1]="None",ee[ee.InitialFocus=2]="InitialFocus",ee[ee.TabLock=4]="TabLock",ee[ee.FocusLock=8]="FocusLock",ee[ee.RestoreFocus=16]="RestoreFocus",ee[ee.All=30]="All",ee))(A$2||{});let ue$1=Object.assign(defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:ref(new Set)}},inheritAttrs:!1,setup(ee,{attrs:ne,slots:oe,expose:ae}){let ie=ref(null);ae({el:ie,$el:ie});let se=computed(()=>i$4(ie)),de=ref(!1);onMounted(()=>de.value=!0),onUnmounted(()=>de.value=!1),$$2({ownerDocument:se},computed(()=>de.value&&!!(ee.features&16)));let fe=z$2({ownerDocument:se,container:ie,initialFocus:computed(()=>ee.initialFocus)},computed(()=>de.value&&!!(ee.features&2)));J$1({ownerDocument:se,container:ie,containers:ee.containers,previousActiveElement:fe},computed(()=>de.value&&!!(ee.features&8)));let ve=n$1();function be(Ee){let we=o$2(ie);we&&(Pe=>Pe())(()=>{u$6(ve.value,{[d$5.Forwards]:()=>{P$2(we,N$5.First,{skipElements:[Ee.relatedTarget]})},[d$5.Backwards]:()=>{P$2(we,N$5.Last,{skipElements:[Ee.relatedTarget]})}})})}let ye=ref(!1);function $e(Ee){Ee.key==="Tab"&&(ye.value=!0,requestAnimationFrame(()=>{ye.value=!1}))}function _e(Ee){if(!de.value)return;let we=B$1(ee.containers);o$2(ie)instanceof HTMLElement&&we.add(o$2(ie));let Pe=Ee.relatedTarget;Pe instanceof HTMLElement&&Pe.dataset.headlessuiFocusGuard!=="true"&&(N$3(we,Pe)||(ye.value?P$2(o$2(ie),u$6(ve.value,{[d$5.Forwards]:()=>N$5.Next,[d$5.Backwards]:()=>N$5.Previous})|N$5.WrapAround,{relativeTo:Ee.target}):Ee.target instanceof HTMLElement&&S$2(Ee.target)))}return()=>{let Ee={},we={ref:ie,onKeydown:$e,onFocusout:_e},{features:Pe,initialFocus:Ce,containers:Oe,...Ae}=ee;return h$2(Fragment,[!!(Pe&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:be,features:u$4.Focusable}),A$3({ourProps:we,theirProps:{...ne,...Ae},slot:Ee,attrs:ne,slots:oe,name:"FocusTrap"}),!!(Pe&4)&&h$2(f$2,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:be,features:u$4.Focusable})])}}}),{features:A$2});function W$2(ee){let ne=ref(t$n.slice());return watch([ee],([oe],[ae])=>{ae===!0&&oe===!1?t$s(()=>{ne.value.splice(0)}):ae===!1&&oe===!0&&(ne.value=t$n.slice())},{flush:"post"}),()=>{var oe;return(oe=ne.value.find(ae=>ae!=null&&ae.isConnected))!=null?oe:null}}function $$2({ownerDocument:ee},ne){let oe=W$2(ne);onMounted(()=>{watchEffect(()=>{var ae,ie;ne.value||((ae=ee.value)==null?void 0:ae.activeElement)===((ie=ee.value)==null?void 0:ie.body)&&S$2(oe())},{flush:"post"})}),onUnmounted(()=>{ne.value&&S$2(oe())})}function z$2({ownerDocument:ee,container:ne,initialFocus:oe},ae){let ie=ref(null),se=ref(!1);return onMounted(()=>se.value=!0),onUnmounted(()=>se.value=!1),onMounted(()=>{watch([ne,oe,ae],(de,fe)=>{if(de.every((be,ye)=>(fe==null?void 0:fe[ye])===be)||!ae.value)return;let ve=o$2(ne);ve&&t$s(()=>{var be,ye;if(!se.value)return;let $e=o$2(oe),_e=(be=ee.value)==null?void 0:be.activeElement;if($e){if($e===_e){ie.value=_e;return}}else if(ve.contains(_e)){ie.value=_e;return}$e?S$2($e):P$2(ve,N$5.First|N$5.NoScroll)===T$3.Error&&console.warn("There are no focusable elements inside the "),ie.value=(ye=ee.value)==null?void 0:ye.activeElement})},{immediate:!0,flush:"post"})}),ie}function J$1({ownerDocument:ee,container:ne,containers:oe,previousActiveElement:ae},ie){var se;E$2((se=ee.value)==null?void 0:se.defaultView,"focus",de=>{if(!ie.value)return;let fe=B$1(oe);o$2(ne)instanceof HTMLElement&&fe.add(o$2(ne));let ve=ae.value;if(!ve)return;let be=de.target;be&&be instanceof HTMLElement?N$3(fe,be)?(ae.value=be,S$2(be)):(de.preventDefault(),de.stopPropagation(),S$2(ve)):S$2(ae.value)},!0)}function N$3(ee,ne){for(let oe of ee)if(oe.contains(ne))return!0;return!1}function m$3(ee){let ne=shallowRef(ee.getSnapshot());return onUnmounted(ee.subscribe(()=>{ne.value=ee.getSnapshot()})),ne}function a$2(ee,ne){let oe=ee(),ae=new Set;return{getSnapshot(){return oe},subscribe(ie){return ae.add(ie),()=>ae.delete(ie)},dispatch(ie,...se){let de=ne[ie].call(oe,...se);de&&(oe=de,ae.forEach(fe=>fe()))}}}function c$1(){let ee;return{before({doc:ne}){var oe;let ae=ne.documentElement;ee=((oe=ne.defaultView)!=null?oe:window).innerWidth-ae.clientWidth},after({doc:ne,d:oe}){let ae=ne.documentElement,ie=ae.clientWidth-ae.offsetWidth,se=ee-ie;oe.style(ae,"paddingRight",`${se}px`)}}}function w$2(){return t$q()?{before({doc:ee,d:ne,meta:oe}){function ae(ie){return oe.containers.flatMap(se=>se()).some(se=>se.contains(ie))}ne.microTask(()=>{var ie;if(window.getComputedStyle(ee.documentElement).scrollBehavior!=="auto"){let fe=o$3();fe.style(ee.documentElement,"scrollBehavior","auto"),ne.add(()=>ne.microTask(()=>fe.dispose()))}let se=(ie=window.scrollY)!=null?ie:window.pageYOffset,de=null;ne.addEventListener(ee,"click",fe=>{if(fe.target instanceof HTMLElement)try{let ve=fe.target.closest("a");if(!ve)return;let{hash:be}=new URL(ve.href),ye=ee.querySelector(be);ye&&!ae(ye)&&(de=ye)}catch{}},!0),ne.addEventListener(ee,"touchstart",fe=>{if(fe.target instanceof HTMLElement)if(ae(fe.target)){let ve=fe.target;for(;ve.parentElement&&ae(ve.parentElement);)ve=ve.parentElement;ne.style(ve,"overscrollBehavior","contain")}else ne.style(fe.target,"touchAction","none")}),ne.addEventListener(ee,"touchmove",fe=>{if(fe.target instanceof HTMLElement){if(fe.target.tagName==="INPUT")return;if(ae(fe.target)){let ve=fe.target;for(;ve.parentElement&&ve.dataset.headlessuiPortal!==""&&!(ve.scrollHeight>ve.clientHeight||ve.scrollWidth>ve.clientWidth);)ve=ve.parentElement;ve.dataset.headlessuiPortal===""&&fe.preventDefault()}else fe.preventDefault()}},{passive:!1}),ne.add(()=>{var fe;let ve=(fe=window.scrollY)!=null?fe:window.pageYOffset;se!==ve&&window.scrollTo(0,se),de&&de.isConnected&&(de.scrollIntoView({block:"nearest"}),de=null)})})}}:{}}function l$2(){return{before({doc:ee,d:ne}){ne.style(ee.documentElement,"overflow","hidden")}}}function m$2(ee){let ne={};for(let oe of ee)Object.assign(ne,oe(ne));return ne}let a$1=a$2(()=>new Map,{PUSH(ee,ne){var oe;let ae=(oe=this.get(ee))!=null?oe:{doc:ee,count:0,d:o$3(),meta:new Set};return ae.count++,ae.meta.add(ne),this.set(ee,ae),this},POP(ee,ne){let oe=this.get(ee);return oe&&(oe.count--,oe.meta.delete(ne)),this},SCROLL_PREVENT({doc:ee,d:ne,meta:oe}){let ae={doc:ee,d:ne,meta:m$2(oe)},ie=[w$2(),c$1(),l$2()];ie.forEach(({before:se})=>se==null?void 0:se(ae)),ie.forEach(({after:se})=>se==null?void 0:se(ae))},SCROLL_ALLOW({d:ee}){ee.dispose()},TEARDOWN({doc:ee}){this.delete(ee)}});a$1.subscribe(()=>{let ee=a$1.getSnapshot(),ne=new Map;for(let[oe]of ee)ne.set(oe,oe.documentElement.style.overflow);for(let oe of ee.values()){let ae=ne.get(oe.doc)==="hidden",ie=oe.count!==0;(ie&&!ae||!ie&&ae)&&a$1.dispatch(oe.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",oe),oe.count===0&&a$1.dispatch("TEARDOWN",oe)}});function d$4(ee,ne,oe){let ae=m$3(a$1),ie=computed(()=>{let se=ee.value?ae.value.get(ee.value):void 0;return se?se.count>0:!1});return watch([ee,ne],([se,de],[fe],ve)=>{if(!se||!de)return;a$1.dispatch("PUSH",se,oe);let be=!1;ve(()=>{be||(a$1.dispatch("POP",fe??se,oe),be=!0)})},{immediate:!0}),ie}let i$1=new Map,t$m=new Map;function E$1(ee,ne=ref(!0)){watchEffect(oe=>{var ae;if(!ne.value)return;let ie=o$2(ee);if(!ie)return;oe(function(){var de;if(!ie)return;let fe=(de=t$m.get(ie))!=null?de:1;if(fe===1?t$m.delete(ie):t$m.set(ie,fe-1),fe!==1)return;let ve=i$1.get(ie);ve&&(ve["aria-hidden"]===null?ie.removeAttribute("aria-hidden"):ie.setAttribute("aria-hidden",ve["aria-hidden"]),ie.inert=ve.inert,i$1.delete(ie))});let se=(ae=t$m.get(ie))!=null?ae:0;t$m.set(ie,se+1),se===0&&(i$1.set(ie,{"aria-hidden":ie.getAttribute("aria-hidden"),inert:ie.inert}),ie.setAttribute("aria-hidden","true"),ie.inert=!0)})}function N$2({defaultContainers:ee=[],portals:ne,mainTreeNodeRef:oe}={}){let ae=ref(null),ie=i$4(ae);function se(){var de,fe,ve;let be=[];for(let ye of ee)ye!==null&&(ye instanceof HTMLElement?be.push(ye):"value"in ye&&ye.value instanceof HTMLElement&&be.push(ye.value));if(ne!=null&&ne.value)for(let ye of ne.value)be.push(ye);for(let ye of(de=ie==null?void 0:ie.querySelectorAll("html > *, body > *"))!=null?de:[])ye!==document.body&&ye!==document.head&&ye instanceof HTMLElement&&ye.id!=="headlessui-portal-root"&&(ye.contains(o$2(ae))||ye.contains((ve=(fe=o$2(ae))==null?void 0:fe.getRootNode())==null?void 0:ve.host)||be.some($e=>ye.contains($e))||be.push(ye));return be}return{resolveContainers:se,contains(de){return se().some(fe=>fe.contains(de))},mainTreeNodeRef:ae,MainTreeNode(){return oe!=null?null:h$2(f$2,{features:u$4.Hidden,ref:ae})}}}let e$1=Symbol("ForcePortalRootContext");function s$2(){return inject(e$1,!1)}let u$3=defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(ee,{slots:ne,attrs:oe}){return provide(e$1,ee.force),()=>{let{force:ae,...ie}=ee;return A$3({theirProps:ie,ourProps:{},slot:{},slots:ne,attrs:oe,name:"ForcePortalRoot"})}}}),u$2=Symbol("StackContext");var s$1=(ee=>(ee[ee.Add=0]="Add",ee[ee.Remove=1]="Remove",ee))(s$1||{});function y$1(){return inject(u$2,()=>{})}function R$2({type:ee,enabled:ne,element:oe,onUpdate:ae}){let ie=y$1();function se(...de){ae==null||ae(...de),ie(...de)}onMounted(()=>{watch(ne,(de,fe)=>{de?se(0,ee,oe):fe===!0&&se(1,ee,oe)},{immediate:!0,flush:"sync"})}),onUnmounted(()=>{ne.value&&se(1,ee,oe)}),provide(u$2,se)}let u$1=Symbol("DescriptionContext");function w$1(){let ee=inject(u$1,null);if(ee===null)throw new Error("Missing parent");return ee}function k$1({slot:ee=ref({}),name:ne="Description",props:oe={}}={}){let ae=ref([]);function ie(se){return ae.value.push(se),()=>{let de=ae.value.indexOf(se);de!==-1&&ae.value.splice(de,1)}}return provide(u$1,{register:ie,slot:ee,name:ne,props:oe}),computed(()=>ae.value.length>0?ae.value.join(" "):void 0)}let K$1=defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe}){var ae;let ie=(ae=ee.id)!=null?ae:`headlessui-description-${I$2()}`,se=w$1();return onMounted(()=>onUnmounted(se.register(ie))),()=>{let{name:de="Description",slot:fe=ref({}),props:ve={}}=se,{...be}=ee,ye={...Object.entries(ve).reduce(($e,[_e,Ee])=>Object.assign($e,{[_e]:unref(Ee)}),{}),id:ie};return A$3({ourProps:ye,theirProps:be,slot:fe.value,attrs:ne,slots:oe,name:de})}}});function x$2(ee){let ne=i$4(ee);if(!ne){if(ee===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${ee}`)}let oe=ne.getElementById("headlessui-portal-root");if(oe)return oe;let ae=ne.createElement("div");return ae.setAttribute("id","headlessui-portal-root"),ne.body.appendChild(ae)}const f$1=new WeakMap;function U$2(ee){var ne;return(ne=f$1.get(ee))!=null?ne:0}function M$1(ee,ne){let oe=ne(U$2(ee));return oe<=0?f$1.delete(ee):f$1.set(ee,oe),oe}let $$1=defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(ee,{slots:ne,attrs:oe}){let ae=ref(null),ie=computed(()=>i$4(ae)),se=s$2(),de=inject(H$2,null),fe=ref(se===!0||de==null?x$2(ae.value):de.resolveTarget());fe.value&&M$1(fe.value,_e=>_e+1);let ve=ref(!1);onMounted(()=>{ve.value=!0}),watchEffect(()=>{se||de!=null&&(fe.value=de.resolveTarget())});let be=inject(d$3,null),ye=!1,$e=getCurrentInstance();return watch(ae,()=>{if(ye||!be)return;let _e=o$2(ae);_e&&(onUnmounted(be.register(_e),$e),ye=!0)}),onUnmounted(()=>{var _e,Ee;let we=(_e=ie.value)==null?void 0:_e.getElementById("headlessui-portal-root");!we||fe.value!==we||M$1(fe.value,Pe=>Pe-1)||fe.value.children.length>0||(Ee=fe.value.parentElement)==null||Ee.removeChild(fe.value)}),()=>{if(!ve.value||fe.value===null)return null;let _e={ref:ae,"data-headlessui-portal":""};return h$2(Teleport,{to:fe.value},A$3({ourProps:_e,theirProps:ee,slot:{},attrs:oe,slots:ne,name:"Portal"}))}}}),d$3=Symbol("PortalParentContext");function q$1(){let ee=inject(d$3,null),ne=ref([]);function oe(se){return ne.value.push(se),ee&&ee.register(se),()=>ae(se)}function ae(se){let de=ne.value.indexOf(se);de!==-1&&ne.value.splice(de,1),ee&&ee.unregister(se)}let ie={register:oe,unregister:ae,portals:ne};return[ne,defineComponent({name:"PortalWrapper",setup(se,{slots:de}){return provide(d$3,ie),()=>{var fe;return(fe=de.default)==null?void 0:fe.call(de)}}})]}let H$2=Symbol("PortalGroupContext"),z$1=defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(ee,{attrs:ne,slots:oe}){let ae=reactive({resolveTarget(){return ee.target}});return provide(H$2,ae),()=>{let{target:ie,...se}=ee;return A$3({theirProps:se,ourProps:{},slot:{},attrs:ne,slots:oe,name:"PortalGroup"})}}});var Te$1=(ee=>(ee[ee.Open=0]="Open",ee[ee.Closed=1]="Closed",ee))(Te$1||{});let H$1=Symbol("DialogContext");function T$1(ee){let ne=inject(H$1,null);if(ne===null){let oe=new Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(oe,T$1),oe}return ne}let A$1="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ye=defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:A$1},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:ee=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){var se,de;let fe=(se=ee.id)!=null?se:`headlessui-dialog-${I$2()}`,ve=ref(!1);onMounted(()=>{ve.value=!0});let be=!1,ye=computed(()=>ee.role==="dialog"||ee.role==="alertdialog"?ee.role:(be||(be=!0,console.warn(`Invalid role [${ye}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),$e=ref(0),_e=l$3(),Ee=computed(()=>ee.open===A$1&&_e!==null?(_e.value&i$2.Open)===i$2.Open:ee.open),we=ref(null),Pe=computed(()=>i$4(we));if(ie({el:we,$el:we}),!(ee.open!==A$1||_e!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof Ee.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${Ee.value===A$1?void 0:ee.open}`);let Ce=computed(()=>ve.value&&Ee.value?0:1),Oe=computed(()=>Ce.value===0),Ae=computed(()=>$e.value>1),Ne=inject(H$1,null)!==null,[ke,Re]=q$1(),{resolveContainers:Le,mainTreeNodeRef:Me,MainTreeNode:Ie}=N$2({portals:ke,defaultContainers:[computed(()=>{var We;return(We=Ze.panelRef.value)!=null?We:we.value})]}),Fe=computed(()=>Ae.value?"parent":"leaf"),je=computed(()=>_e!==null?(_e.value&i$2.Closing)===i$2.Closing:!1),Be=computed(()=>Ne||je.value?!1:Oe.value),He=computed(()=>{var We,Pt,Mt;return(Mt=Array.from((Pt=(We=Pe.value)==null?void 0:We.querySelectorAll("body > *"))!=null?Pt:[]).find(jt=>jt.id==="headlessui-portal-root"?!1:jt.contains(o$2(Me))&&jt instanceof HTMLElement))!=null?Mt:null});E$1(He,Be);let ot=computed(()=>Ae.value?!0:Oe.value),Nt=computed(()=>{var We,Pt,Mt;return(Mt=Array.from((Pt=(We=Pe.value)==null?void 0:We.querySelectorAll("[data-headlessui-portal]"))!=null?Pt:[]).find(jt=>jt.contains(o$2(Me))&&jt instanceof HTMLElement))!=null?Mt:null});E$1(Nt,ot),R$2({type:"Dialog",enabled:computed(()=>Ce.value===0),element:we,onUpdate:(We,Pt)=>{if(Pt==="Dialog")return u$6(We,{[s$1.Add]:()=>$e.value+=1,[s$1.Remove]:()=>$e.value-=1})}});let st=k$1({name:"DialogDescription",slot:computed(()=>({open:Ee.value}))}),Ue=ref(null),Ze={titleId:Ue,panelRef:ref(null),dialogState:Ce,setTitleId(We){Ue.value!==We&&(Ue.value=We)},close(){ne("close",!1)}};provide(H$1,Ze);let Tt=computed(()=>!(!Oe.value||Ae.value));w$3(Le,(We,Pt)=>{We.preventDefault(),Ze.close(),nextTick(()=>Pt==null?void 0:Pt.focus())},Tt);let Vt=computed(()=>!(Ae.value||Ce.value!==0));E$2((de=Pe.value)==null?void 0:de.defaultView,"keydown",We=>{Vt.value&&(We.defaultPrevented||We.key===o$1.Escape&&(We.preventDefault(),We.stopPropagation(),Ze.close()))});let Ut=computed(()=>!(je.value||Ce.value!==0||Ne));return d$4(Pe,Ut,We=>{var Pt;return{containers:[...(Pt=We.containers)!=null?Pt:[],Le]}}),watchEffect(We=>{if(Ce.value!==0)return;let Pt=o$2(we);if(!Pt)return;let Mt=new ResizeObserver(jt=>{for(let Rt of jt){let Wt=Rt.target.getBoundingClientRect();Wt.x===0&&Wt.y===0&&Wt.width===0&&Wt.height===0&&Ze.close()}});Mt.observe(Pt),We(()=>Mt.disconnect())}),()=>{let{open:We,initialFocus:Pt,...Mt}=ee,jt={...oe,ref:we,id:fe,role:ye.value,"aria-modal":Ce.value===0?!0:void 0,"aria-labelledby":Ue.value,"aria-describedby":st.value},Rt={open:Ce.value===0};return h$2(u$3,{force:!0},()=>[h$2($$1,()=>h$2(z$1,{target:we.value},()=>h$2(u$3,{force:!1},()=>h$2(ue$1,{initialFocus:Pt,containers:Le,features:Oe.value?u$6(Fe.value,{parent:ue$1.features.RestoreFocus,leaf:ue$1.features.All&~ue$1.features.FocusLock}):ue$1.features.None},()=>h$2(Re,{},()=>A$3({ourProps:jt,theirProps:{...Mt,...oe},slot:Rt,attrs:oe,slots:ae,visible:Ce.value===0,features:N$4.RenderStrategy|N$4.Static,name:"Dialog"})))))),h$2(Ie)])}}}),Ge=defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe,expose:ae}){var ie;let se=(ie=ee.id)!=null?ie:`headlessui-dialog-panel-${I$2()}`,de=T$1("DialogPanel");ae({el:de.panelRef,$el:de.panelRef});function fe(ve){ve.stopPropagation()}return()=>{let{...ve}=ee,be={id:se,ref:de.panelRef,onClick:fe};return A$3({ourProps:be,theirProps:ve,slot:{open:de.dialogState.value===0},attrs:ne,slots:oe,name:"DialogPanel"})}}}),Ve=defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe}){var ae;let ie=(ae=ee.id)!=null?ae:`headlessui-dialog-title-${I$2()}`,se=T$1("DialogTitle");return onMounted(()=>{se.setTitleId(ie),onUnmounted(()=>se.setTitleId(null))}),()=>{let{...de}=ee;return A$3({ourProps:{id:ie},theirProps:de,slot:{open:se.dialogState.value===0},attrs:ne,slots:oe,name:"DialogTitle"})}}}),Je=K$1,C$2=Symbol("GroupContext"),ue=defineComponent({name:"Switch",emits:{"update:modelValue":ee=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){var se;let de=(se=ee.id)!=null?se:`headlessui-switch-${I$2()}`,fe=inject(C$2,null),[ve,be]=d$7(computed(()=>ee.modelValue),Ae=>ne("update:modelValue",Ae),computed(()=>ee.defaultChecked));function ye(){be(!ve.value)}let $e=ref(null),_e=fe===null?$e:fe.switchRef,Ee=s$4(computed(()=>({as:ee.as,type:oe.type})),_e);ie({el:_e,$el:_e});function we(Ae){Ae.preventDefault(),ye()}function Pe(Ae){Ae.key===o$1.Space?(Ae.preventDefault(),ye()):Ae.key===o$1.Enter&&p$1(Ae.currentTarget)}function Ce(Ae){Ae.preventDefault()}let Oe=computed(()=>{var Ae,Ne;return(Ne=(Ae=o$2(_e))==null?void 0:Ae.closest)==null?void 0:Ne.call(Ae,"form")});return onMounted(()=>{watch([Oe],()=>{if(!Oe.value||ee.defaultChecked===void 0)return;function Ae(){be(ee.defaultChecked)}return Oe.value.addEventListener("reset",Ae),()=>{var Ne;(Ne=Oe.value)==null||Ne.removeEventListener("reset",Ae)}},{immediate:!0})}),()=>{let{name:Ae,value:Ne,form:ke,tabIndex:Re,...Le}=ee,Me={checked:ve.value},Ie={id:de,ref:_e,role:"switch",type:Ee.value,tabIndex:Re===-1?0:Re,"aria-checked":ve.value,"aria-labelledby":fe==null?void 0:fe.labelledby.value,"aria-describedby":fe==null?void 0:fe.describedby.value,onClick:we,onKeyup:Pe,onKeypress:Ce};return h$2(Fragment,[Ae!=null&&ve.value!=null?h$2(f$2,E$3({features:u$4.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:ve.value,form:ke,disabled:Le.disabled,name:Ae,value:Ne})):null,A$3({ourProps:Ie,theirProps:{...oe,...T$2(Le,["modelValue","defaultChecked"])},slot:Me,attrs:oe,slots:ae,name:"Switch"})])}}}),d$2=defineComponent({props:{onFocus:{type:Function,required:!0}},setup(ee){let ne=ref(!0);return()=>ne.value?h$2(f$2,{as:"button",type:"button",features:u$4.Focusable,onFocus(oe){oe.preventDefault();let ae,ie=50;function se(){var de;if(ie--<=0){ae&&cancelAnimationFrame(ae);return}if((de=ee.onFocus)!=null&&de.call(ee)){ne.value=!1,cancelAnimationFrame(ae);return}ae=requestAnimationFrame(se)}ae=requestAnimationFrame(se)}}):null}});var te=(ee=>(ee[ee.Forwards=0]="Forwards",ee[ee.Backwards=1]="Backwards",ee))(te||{}),le=(ee=>(ee[ee.Less=-1]="Less",ee[ee.Equal=0]="Equal",ee[ee.Greater=1]="Greater",ee))(le||{});let U$1=Symbol("TabsContext");function C$1(ee){let ne=inject(U$1,null);if(ne===null){let oe=new Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(oe,C$1),oe}return ne}let G$1=Symbol("TabsSSRContext"),me$1=defineComponent({name:"TabGroup",emits:{change:ee=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(ee,{slots:ne,attrs:oe,emit:ae}){var ie;let se=ref((ie=ee.selectedIndex)!=null?ie:ee.defaultIndex),de=ref([]),fe=ref([]),ve=computed(()=>ee.selectedIndex!==null),be=computed(()=>ve.value?ee.selectedIndex:se.value);function ye(Pe){var Ce;let Oe=O$1($e.tabs.value,o$2),Ae=O$1($e.panels.value,o$2),Ne=Oe.filter(ke=>{var Re;return!((Re=o$2(ke))!=null&&Re.hasAttribute("disabled"))});if(Pe<0||Pe>Oe.length-1){let ke=u$6(se.value===null?0:Math.sign(Pe-se.value),{[-1]:()=>1,0:()=>u$6(Math.sign(Pe),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),Re=u$6(ke,{0:()=>Oe.indexOf(Ne[0]),1:()=>Oe.indexOf(Ne[Ne.length-1])});Re!==-1&&(se.value=Re),$e.tabs.value=Oe,$e.panels.value=Ae}else{let ke=Oe.slice(0,Pe),Re=[...Oe.slice(Pe),...ke].find(Me=>Ne.includes(Me));if(!Re)return;let Le=(Ce=Oe.indexOf(Re))!=null?Ce:$e.selectedIndex.value;Le===-1&&(Le=$e.selectedIndex.value),se.value=Le,$e.tabs.value=Oe,$e.panels.value=Ae}}let $e={selectedIndex:computed(()=>{var Pe,Ce;return(Ce=(Pe=se.value)!=null?Pe:ee.defaultIndex)!=null?Ce:null}),orientation:computed(()=>ee.vertical?"vertical":"horizontal"),activation:computed(()=>ee.manual?"manual":"auto"),tabs:de,panels:fe,setSelectedIndex(Pe){be.value!==Pe&&ae("change",Pe),ve.value||ye(Pe)},registerTab(Pe){var Ce;if(de.value.includes(Pe))return;let Oe=de.value[se.value];if(de.value.push(Pe),de.value=O$1(de.value,o$2),!ve.value){let Ae=(Ce=de.value.indexOf(Oe))!=null?Ce:se.value;Ae!==-1&&(se.value=Ae)}},unregisterTab(Pe){let Ce=de.value.indexOf(Pe);Ce!==-1&&de.value.splice(Ce,1)},registerPanel(Pe){fe.value.includes(Pe)||(fe.value.push(Pe),fe.value=O$1(fe.value,o$2))},unregisterPanel(Pe){let Ce=fe.value.indexOf(Pe);Ce!==-1&&fe.value.splice(Ce,1)}};provide(U$1,$e);let _e=ref({tabs:[],panels:[]}),Ee=ref(!1);onMounted(()=>{Ee.value=!0}),provide(G$1,computed(()=>Ee.value?null:_e.value));let we=computed(()=>ee.selectedIndex);return onMounted(()=>{watch([we],()=>{var Pe;return ye((Pe=ee.selectedIndex)!=null?Pe:ee.defaultIndex)},{immediate:!0})}),watchEffect(()=>{if(!ve.value||be.value==null||$e.tabs.value.length<=0)return;let Pe=O$1($e.tabs.value,o$2);Pe.some((Ce,Oe)=>o$2($e.tabs.value[Oe])!==o$2(Ce))&&$e.setSelectedIndex(Pe.findIndex(Ce=>o$2(Ce)===o$2($e.tabs.value[be.value])))}),()=>{let Pe={selectedIndex:se.value};return h$2(Fragment,[de.value.length<=0&&h$2(d$2,{onFocus:()=>{for(let Ce of de.value){let Oe=o$2(Ce);if((Oe==null?void 0:Oe.tabIndex)===0)return Oe.focus(),!0}return!1}}),A$3({theirProps:{...oe,...T$2(ee,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:Pe,slots:ne,attrs:oe,name:"TabGroup"})])}}}),pe$1=defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(ee,{attrs:ne,slots:oe}){let ae=C$1("TabList");return()=>{let ie={selectedIndex:ae.selectedIndex.value},se={role:"tablist","aria-orientation":ae.orientation.value};return A$3({ourProps:se,theirProps:ee,slot:ie,attrs:ne,slots:oe,name:"TabList"})}}}),xe=defineComponent({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(ee,{attrs:ne,slots:oe,expose:ae}){var ie;let se=(ie=ee.id)!=null?ie:`headlessui-tabs-tab-${I$2()}`,de=C$1("Tab"),fe=ref(null);ae({el:fe,$el:fe}),onMounted(()=>de.registerTab(fe)),onUnmounted(()=>de.unregisterTab(fe));let ve=inject(G$1),be=computed(()=>{if(ve.value){let Ae=ve.value.tabs.indexOf(se);return Ae===-1?ve.value.tabs.push(se)-1:Ae}return-1}),ye=computed(()=>{let Ae=de.tabs.value.indexOf(fe);return Ae===-1?be.value:Ae}),$e=computed(()=>ye.value===de.selectedIndex.value);function _e(Ae){var Ne;let ke=Ae();if(ke===T$3.Success&&de.activation.value==="auto"){let Re=(Ne=i$4(fe))==null?void 0:Ne.activeElement,Le=de.tabs.value.findIndex(Me=>o$2(Me)===Re);Le!==-1&&de.setSelectedIndex(Le)}return ke}function Ee(Ae){let Ne=de.tabs.value.map(ke=>o$2(ke)).filter(Boolean);if(Ae.key===o$1.Space||Ae.key===o$1.Enter){Ae.preventDefault(),Ae.stopPropagation(),de.setSelectedIndex(ye.value);return}switch(Ae.key){case o$1.Home:case o$1.PageUp:return Ae.preventDefault(),Ae.stopPropagation(),_e(()=>P$2(Ne,N$5.First));case o$1.End:case o$1.PageDown:return Ae.preventDefault(),Ae.stopPropagation(),_e(()=>P$2(Ne,N$5.Last))}if(_e(()=>u$6(de.orientation.value,{vertical(){return Ae.key===o$1.ArrowUp?P$2(Ne,N$5.Previous|N$5.WrapAround):Ae.key===o$1.ArrowDown?P$2(Ne,N$5.Next|N$5.WrapAround):T$3.Error},horizontal(){return Ae.key===o$1.ArrowLeft?P$2(Ne,N$5.Previous|N$5.WrapAround):Ae.key===o$1.ArrowRight?P$2(Ne,N$5.Next|N$5.WrapAround):T$3.Error}}))===T$3.Success)return Ae.preventDefault()}let we=ref(!1);function Pe(){var Ae;we.value||(we.value=!0,!ee.disabled&&((Ae=o$2(fe))==null||Ae.focus({preventScroll:!0}),de.setSelectedIndex(ye.value),t$s(()=>{we.value=!1})))}function Ce(Ae){Ae.preventDefault()}let Oe=s$4(computed(()=>({as:ee.as,type:ne.type})),fe);return()=>{var Ae,Ne;let ke={selected:$e.value,disabled:(Ae=ee.disabled)!=null?Ae:!1},{...Re}=ee,Le={ref:fe,onKeydown:Ee,onMousedown:Ce,onClick:Pe,id:se,role:"tab",type:Oe.value,"aria-controls":(Ne=o$2(de.panels.value[ye.value]))==null?void 0:Ne.id,"aria-selected":$e.value,tabIndex:$e.value?0:-1,disabled:ee.disabled?!0:void 0};return A$3({ourProps:Le,theirProps:Re,slot:ke,attrs:ne,slots:oe,name:"Tab"})}}});function l$1(ee){let ne={called:!1};return(...oe)=>{if(!ne.called)return ne.called=!0,ee(...oe)}}function m$1(ee,...ne){ee&&ne.length>0&&ee.classList.add(...ne)}function d$1(ee,...ne){ee&&ne.length>0&&ee.classList.remove(...ne)}var g$3=(ee=>(ee.Finished="finished",ee.Cancelled="cancelled",ee))(g$3||{});function F$1(ee,ne){let oe=o$3();if(!ee)return oe.dispose;let{transitionDuration:ae,transitionDelay:ie}=getComputedStyle(ee),[se,de]=[ae,ie].map(fe=>{let[ve=0]=fe.split(",").filter(Boolean).map(be=>be.includes("ms")?parseFloat(be):parseFloat(be)*1e3).sort((be,ye)=>ye-be);return ve});return se!==0?oe.setTimeout(()=>ne("finished"),se+de):ne("finished"),oe.add(()=>ne("cancelled")),oe.dispose}function L$2(ee,ne,oe,ae,ie,se){let de=o$3(),fe=se!==void 0?l$1(se):()=>{};return d$1(ee,...ie),m$1(ee,...ne,...oe),de.nextFrame(()=>{d$1(ee,...oe),m$1(ee,...ae),de.add(F$1(ee,ve=>(d$1(ee,...ae,...ne),m$1(ee,...ie),fe(ve))))}),de.add(()=>d$1(ee,...ne,...oe,...ae,...ie)),de.add(()=>fe("cancelled")),de.dispose}function g$2(ee=""){return ee.split(/\s+/).filter(ne=>ne.length>1)}let R$1=Symbol("TransitionContext");var pe=(ee=>(ee.Visible="visible",ee.Hidden="hidden",ee))(pe||{});function me(){return inject(R$1,null)!==null}function Te(){let ee=inject(R$1,null);if(ee===null)throw new Error("A is used but it is missing a parent .");return ee}function ge(){let ee=inject(N$1,null);if(ee===null)throw new Error("A is used but it is missing a parent .");return ee}let N$1=Symbol("NestingContext");function L$1(ee){return"children"in ee?L$1(ee.children):ee.value.filter(({state:ne})=>ne==="visible").length>0}function Q$1(ee){let ne=ref([]),oe=ref(!1);onMounted(()=>oe.value=!0),onUnmounted(()=>oe.value=!1);function ae(se,de=S$1.Hidden){let fe=ne.value.findIndex(({id:ve})=>ve===se);fe!==-1&&(u$6(de,{[S$1.Unmount](){ne.value.splice(fe,1)},[S$1.Hidden](){ne.value[fe].state="hidden"}}),!L$1(ne)&&oe.value&&(ee==null||ee()))}function ie(se){let de=ne.value.find(({id:fe})=>fe===se);return de?de.state!=="visible"&&(de.state="visible"):ne.value.push({id:se,state:"visible"}),()=>ae(se,S$1.Unmount)}return{children:ne,register:ie,unregister:ae}}let W$1=N$4.RenderStrategy,he=defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae,expose:ie}){let se=ref(0);function de(){se.value|=i$2.Opening,ne("beforeEnter")}function fe(){se.value&=~i$2.Opening,ne("afterEnter")}function ve(){se.value|=i$2.Closing,ne("beforeLeave")}function be(){se.value&=~i$2.Closing,ne("afterLeave")}if(!me()&&s$3())return()=>h$2(Se,{...ee,onBeforeEnter:de,onAfterEnter:fe,onBeforeLeave:ve,onAfterLeave:be},ae);let ye=ref(null),$e=computed(()=>ee.unmount?S$1.Unmount:S$1.Hidden);ie({el:ye,$el:ye});let{show:_e,appear:Ee}=Te(),{register:we,unregister:Pe}=ge(),Ce=ref(_e.value?"visible":"hidden"),Oe={value:!0},Ae=I$2(),Ne={value:!1},ke=Q$1(()=>{!Ne.value&&Ce.value!=="hidden"&&(Ce.value="hidden",Pe(Ae),be())});onMounted(()=>{let ot=we(Ae);onUnmounted(ot)}),watchEffect(()=>{if($e.value===S$1.Hidden&&Ae){if(_e.value&&Ce.value!=="visible"){Ce.value="visible";return}u$6(Ce.value,{hidden:()=>Pe(Ae),visible:()=>we(Ae)})}});let Re=g$2(ee.enter),Le=g$2(ee.enterFrom),Me=g$2(ee.enterTo),Ie=g$2(ee.entered),Fe=g$2(ee.leave),je=g$2(ee.leaveFrom),Be=g$2(ee.leaveTo);onMounted(()=>{watchEffect(()=>{if(Ce.value==="visible"){let ot=o$2(ye);if(ot instanceof Comment&&ot.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function He(ot){let Nt=Oe.value&&!Ee.value,st=o$2(ye);!st||!(st instanceof HTMLElement)||Nt||(Ne.value=!0,_e.value&&de(),_e.value||ve(),ot(_e.value?L$2(st,Re,Le,Me,Ie,Ue=>{Ne.value=!1,Ue===g$3.Finished&&fe()}):L$2(st,Fe,je,Be,Ie,Ue=>{Ne.value=!1,Ue===g$3.Finished&&(L$1(ke)||(Ce.value="hidden",Pe(Ae),be()))})))}return onMounted(()=>{watch([_e],(ot,Nt,st)=>{He(st),Oe.value=!1},{immediate:!0})}),provide(N$1,ke),t$p(computed(()=>u$6(Ce.value,{visible:i$2.Open,hidden:i$2.Closed})|se.value)),()=>{let{appear:ot,show:Nt,enter:st,enterFrom:Ue,enterTo:Ze,entered:Tt,leave:Vt,leaveFrom:Ut,leaveTo:We,...Pt}=ee,Mt={ref:ye},jt={...Pt,...Ee.value&&_e.value&&c$3.isServer?{class:normalizeClass([oe.class,Pt.class,...Re,...Le])}:{}};return A$3({theirProps:jt,ourProps:Mt,slot:{},slots:ae,attrs:oe,features:W$1,visible:Ce.value==="visible",name:"TransitionChild"})}}}),ce=he,Se=defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(ee,{emit:ne,attrs:oe,slots:ae}){let ie=l$3(),se=computed(()=>ee.show===null&&ie!==null?(ie.value&i$2.Open)===i$2.Open:ee.show);watchEffect(()=>{if(![!0,!1].includes(se.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let de=ref(se.value?"visible":"hidden"),fe=Q$1(()=>{de.value="hidden"}),ve=ref(!0),be={show:se,appear:computed(()=>ee.appear||!ve.value)};return onMounted(()=>{watchEffect(()=>{ve.value=!1,se.value?de.value="visible":L$1(fe)||(de.value="hidden")})}),provide(N$1,fe),provide(R$1,be),()=>{let ye=T$2(ee,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),$e={unmount:ee.unmount};return A$3({ourProps:{...$e,as:"template"},theirProps:{},slot:{},slots:{...ae,default:()=>[h$2(ce,{onBeforeEnter:()=>ne("beforeEnter"),onAfterEnter:()=>ne("afterEnter"),onBeforeLeave:()=>ne("beforeLeave"),onAfterLeave:()=>ne("afterLeave"),...oe,...$e,...ye},ae.default)]},attrs:{},features:W$1,visible:de.value==="visible",name:"Transition"})}}});/*! + * OverlayScrollbars + * Version: 2.10.0 + * + * Copyright (c) Rene Haas | KingSora. + * https://github.com/KingSora + * + * Released under the MIT license. + */const createCache=(ee,ne)=>{const{o:oe,i:ae,u:ie}=ee;let se=oe,de;const fe=(ye,$e)=>{const _e=se,Ee=ye,we=$e||(ae?!ae(_e,Ee):_e!==Ee);return(we||ie)&&(se=Ee,de=_e),[se,we,de]};return[ne?ye=>fe(ne(se,de),ye):fe,ye=>[se,!!ye,de]]},t$l=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,n=t$l?window:{},o=Math.max,s=Math.min,e=Math.round,c=Math.abs,r=Math.sign,l=n.cancelAnimationFrame,i=n.requestAnimationFrame,a=n.setTimeout,u=n.clearTimeout,getApi=ee=>typeof n[ee]<"u"?n[ee]:void 0,_=getApi("MutationObserver"),d=getApi("IntersectionObserver"),f=getApi("ResizeObserver"),v=getApi("ScrollTimeline"),isUndefined$1=ee=>ee===void 0,isNull=ee=>ee===null,isNumber$2=ee=>typeof ee=="number",isString$3=ee=>typeof ee=="string",isBoolean$2=ee=>typeof ee=="boolean",isFunction$4=ee=>typeof ee=="function",isArray$4=ee=>Array.isArray(ee),isObject$7=ee=>typeof ee=="object"&&!isArray$4(ee)&&!isNull(ee),isArrayLike$1=ee=>{const ne=!!ee&&ee.length,oe=isNumber$2(ne)&&ne>-1&&ne%1==0;return isArray$4(ee)||!isFunction$4(ee)&&oe?ne>0&&isObject$7(ee)?ne-1 in ee:!0:!1},isPlainObject$4=ee=>!!ee&&ee.constructor===Object,isHTMLElement$1=ee=>ee instanceof HTMLElement,isElement$2=ee=>ee instanceof Element;function each(ee,ne){if(isArrayLike$1(ee))for(let oe=0;oene(ee[oe],oe,ee));return ee}const inArray=(ee,ne)=>ee.indexOf(ne)>=0,concat=(ee,ne)=>ee.concat(ne),push=(ee,ne,oe)=>(!isString$3(ne)&&isArrayLike$1(ne)?Array.prototype.push.apply(ee,ne):ee.push(ne),ee),from=ee=>Array.from(ee||[]),createOrKeepArray=ee=>isArray$4(ee)?ee:!isString$3(ee)&&isArrayLike$1(ee)?from(ee):[ee],isEmptyArray=ee=>!!ee&&!ee.length,deduplicateArray=ee=>from(new Set(ee)),runEachAndClear=(ee,ne,oe)=>{each(ee,ie=>ie?ie.apply(void 0,ne||[]):!0),!oe&&(ee.length=0)},p="paddingTop",h="paddingRight",g$1="paddingLeft",b="paddingBottom",w="marginLeft",y="marginRight",S="marginBottom",m="overflowX",O="overflowY",$="width",C="height",x$1="visible",H="hidden",E="scroll",capitalizeFirstLetter=ee=>{const ne=String(ee||"");return ne?ne[0].toUpperCase()+ne.slice(1):""},equal=(ee,ne,oe,ae)=>{if(ee&&ne){let ie=!0;return each(oe,se=>{const de=ee[se],fe=ne[se];de!==fe&&(ie=!1)}),ie}return!1},equalWH=(ee,ne)=>equal(ee,ne,["w","h"]),equalXY=(ee,ne)=>equal(ee,ne,["x","y"]),equalTRBL=(ee,ne)=>equal(ee,ne,["t","r","b","l"]),noop$4=()=>{},bind$1=(ee,...ne)=>ee.bind(0,...ne),selfClearTimeout=ee=>{let ne;const oe=ee?a:i,ae=ee?u:l;return[ie=>{ae(ne),ne=oe(()=>ie(),isFunction$4(ee)?ee():ee)},()=>ae(ne)]},debounce$1=(ee,ne)=>{const{_:oe,v:ae,p:ie,S:se}=ne||{};let de,fe,ve,be,ye=noop$4;const $e=function(Ce){ye(),u(de),be=de=fe=void 0,ye=noop$4,ee.apply(this,Ce)},_e=Pe=>se&&fe?se(fe,Pe):Pe,Ee=()=>{ye!==noop$4&&$e(_e(ve)||ve)},we=function(){const Ce=from(arguments),Oe=isFunction$4(oe)?oe():oe;if(isNumber$2(Oe)&&Oe>=0){const Ne=isFunction$4(ae)?ae():ae,ke=isNumber$2(Ne)&&Ne>=0,Re=Oe>0?a:i,Le=Oe>0?u:l,Ie=_e(Ce)||Ce,Fe=$e.bind(0,Ie);let je;ye(),ie&&!be?(Fe(),be=!0,je=Re(()=>be=void 0,Oe)):(je=Re(Fe,Oe),ke&&!de&&(de=a(Ee,Ne))),ye=()=>Le(je),fe=ve=Ie}else $e(Ce)};return we.m=Ee,we},hasOwnProperty$e=(ee,ne)=>Object.prototype.hasOwnProperty.call(ee,ne),keys$1=ee=>ee?Object.keys(ee):[],assignDeep=(ee,ne,oe,ae,ie,se,de)=>{const fe=[ne,oe,ae,ie,se,de];return(typeof ee!="object"||isNull(ee))&&!isFunction$4(ee)&&(ee={}),each(fe,ve=>{each(ve,(be,ye)=>{const $e=ve[ye];if(ee===$e)return!0;const _e=isArray$4($e);if($e&&isPlainObject$4($e)){const Ee=ee[ye];let we=Ee;_e&&!isArray$4(Ee)?we=[]:!_e&&!isPlainObject$4(Ee)&&(we={}),ee[ye]=assignDeep(we,$e)}else ee[ye]=_e?$e.slice():$e})}),ee},removeUndefinedProperties=(ee,ne)=>each(assignDeep({},ee),(oe,ae,ie)=>{oe===void 0?delete ie[ae]:oe&&isPlainObject$4(oe)&&(ie[ae]=removeUndefinedProperties(oe))}),isEmptyObject$1=ee=>!keys$1(ee).length,capNumber=(ee,ne,oe)=>o(ee,s(ne,oe)),getDomTokensArray=ee=>deduplicateArray((isArray$4(ee)?ee:(ee||"").split(" ")).filter(ne=>ne)),getAttr=(ee,ne)=>ee&&ee.getAttribute(ne),hasAttr=(ee,ne)=>ee&&ee.hasAttribute(ne),setAttrs=(ee,ne,oe)=>{each(getDomTokensArray(ne),ae=>{ee&&ee.setAttribute(ae,String(oe||""))})},removeAttrs=(ee,ne)=>{each(getDomTokensArray(ne),oe=>ee&&ee.removeAttribute(oe))},domTokenListAttr=(ee,ne)=>{const oe=getDomTokensArray(getAttr(ee,ne)),ae=bind$1(setAttrs,ee,ne),ie=(se,de)=>{const fe=new Set(oe);return each(getDomTokensArray(se),ve=>{fe[de](ve)}),from(fe).join(" ")};return{O:se=>ae(ie(se,"delete")),$:se=>ae(ie(se,"add")),C:se=>{const de=getDomTokensArray(se);return de.reduce((fe,ve)=>fe&&oe.includes(ve),de.length>0)}}},removeAttrClass=(ee,ne,oe)=>(domTokenListAttr(ee,ne).O(oe),bind$1(addAttrClass,ee,ne,oe)),addAttrClass=(ee,ne,oe)=>(domTokenListAttr(ee,ne).$(oe),bind$1(removeAttrClass,ee,ne,oe)),addRemoveAttrClass=(ee,ne,oe,ae)=>(ae?addAttrClass:removeAttrClass)(ee,ne,oe),hasAttrClass=(ee,ne,oe)=>domTokenListAttr(ee,ne).C(oe),createDomTokenListClass=ee=>domTokenListAttr(ee,"class"),removeClass=(ee,ne)=>{createDomTokenListClass(ee).O(ne)},addClass=(ee,ne)=>(createDomTokenListClass(ee).$(ne),bind$1(removeClass,ee,ne)),find=(ee,ne)=>{const oe=ne?isElement$2(ne)&&ne:document;return oe?from(oe.querySelectorAll(ee)):[]},findFirst=(ee,ne)=>{const oe=ne?isElement$2(ne)&&ne:document;return oe&&oe.querySelector(ee)},is=(ee,ne)=>isElement$2(ee)&&ee.matches(ne),isBodyElement=ee=>is(ee,"body"),contents=ee=>ee?from(ee.childNodes):[],parent=ee=>ee&&ee.parentElement,closest$1=(ee,ne)=>isElement$2(ee)&&ee.closest(ne),getFocusedElement=ee=>document.activeElement,liesBetween=(ee,ne,oe)=>{const ae=closest$1(ee,ne),ie=ee&&findFirst(oe,ae),se=closest$1(ie,ne)===ae;return ae&&ie?ae===ee||ie===ee||se&&closest$1(closest$1(ee,oe),ne)!==ae:!1},removeElements=ee=>{each(createOrKeepArray(ee),ne=>{const oe=parent(ne);ne&&oe&&oe.removeChild(ne)})},appendChildren=(ee,ne)=>bind$1(removeElements,ee&&ne&&each(createOrKeepArray(ne),oe=>{oe&&ee.appendChild(oe)})),createDiv=ee=>{const ne=document.createElement("div");return setAttrs(ne,"class",ee),ne},createDOM=ee=>{const ne=createDiv();return ne.innerHTML=ee.trim(),each(contents(ne),oe=>removeElements(oe))},getCSSVal=(ee,ne)=>ee.getPropertyValue(ne)||ee[ne]||"",validFiniteNumber=ee=>{const ne=ee||0;return isFinite(ne)?ne:0},parseToZeroOrNumber=ee=>validFiniteNumber(parseFloat(ee||"")),roundCssNumber=ee=>Math.round(ee*1e4)/1e4,numberToCssPx=ee=>`${roundCssNumber(validFiniteNumber(ee))}px`;function setStyles(ee,ne){ee&&ne&&each(ne,(oe,ae)=>{try{const ie=ee.style,se=isNull(oe)||isBoolean$2(oe)?"":isNumber$2(oe)?numberToCssPx(oe):oe;ae.indexOf("--")===0?ie.setProperty(ae,se):ie[ae]=se}catch{}})}function getStyles(ee,ne,oe){const ae=isString$3(ne);let ie=ae?"":{};if(ee){const se=n.getComputedStyle(ee,oe)||ee.style;ie=ae?getCSSVal(se,ne):from(ne).reduce((de,fe)=>(de[fe]=getCSSVal(se,fe),de),ie)}return ie}const topRightBottomLeft=(ee,ne,oe)=>{const ae=ne?`${ne}-`:"",ie=oe?`-${oe}`:"",se=`${ae}top${ie}`,de=`${ae}right${ie}`,fe=`${ae}bottom${ie}`,ve=`${ae}left${ie}`,be=getStyles(ee,[se,de,fe,ve]);return{t:parseToZeroOrNumber(be[se]),r:parseToZeroOrNumber(be[de]),b:parseToZeroOrNumber(be[fe]),l:parseToZeroOrNumber(be[ve])}},getTrasformTranslateValue=(ee,ne)=>`translate${isObject$7(ee)?`(${ee.x},${ee.y})`:`Y(${ee})`}`,elementHasDimensions=ee=>!!(ee.offsetWidth||ee.offsetHeight||ee.getClientRects().length),z={w:0,h:0},getElmWidthHeightProperty=(ee,ne)=>ne?{w:ne[`${ee}Width`],h:ne[`${ee}Height`]}:z,getWindowSize=ee=>getElmWidthHeightProperty("inner",ee||n),I=bind$1(getElmWidthHeightProperty,"offset"),A=bind$1(getElmWidthHeightProperty,"client"),D=bind$1(getElmWidthHeightProperty,"scroll"),getFractionalSize=ee=>{const ne=parseFloat(getStyles(ee,$))||0,oe=parseFloat(getStyles(ee,C))||0;return{w:ne-e(ne),h:oe-e(oe)}},getBoundingClientRect$1=ee=>ee.getBoundingClientRect(),hasDimensions=ee=>!!ee&&elementHasDimensions(ee),domRectHasDimensions=ee=>!!(ee&&(ee[C]||ee[$])),domRectAppeared=(ee,ne)=>{const oe=domRectHasDimensions(ee);return!domRectHasDimensions(ne)&&oe},removeEventListener=(ee,ne,oe,ae)=>{each(getDomTokensArray(ne),ie=>{ee&&ee.removeEventListener(ie,oe,ae)})},addEventListener=(ee,ne,oe,ae)=>{var ie;const se=(ie=ae&&ae.H)!=null?ie:!0,de=ae&&ae.I||!1,fe=ae&&ae.A||!1,ve={passive:se,capture:de};return bind$1(runEachAndClear,getDomTokensArray(ne).map(be=>{const ye=fe?$e=>{removeEventListener(ee,be,ye,de),oe&&oe($e)}:oe;return ee&&ee.addEventListener(be,ye,ve),bind$1(removeEventListener,ee,be,ye,de)}))},stopPropagation$1=ee=>ee.stopPropagation(),preventDefault$1=ee=>ee.preventDefault(),stopAndPrevent=ee=>stopPropagation$1(ee)||preventDefault$1(ee),scrollElementTo=(ee,ne)=>{const{x:oe,y:ae}=isNumber$2(ne)?{x:ne,y:ne}:ne||{};isNumber$2(oe)&&(ee.scrollLeft=oe),isNumber$2(ae)&&(ee.scrollTop=ae)},getElementScroll=ee=>({x:ee.scrollLeft,y:ee.scrollTop}),getZeroScrollCoordinates=()=>({D:{x:0,y:0},M:{x:0,y:0}}),sanitizeScrollCoordinates=(ee,ne)=>{const{D:oe,M:ae}=ee,{w:ie,h:se}=ne,de=($e,_e,Ee)=>{let we=r($e)*Ee,Pe=r(_e)*Ee;if(we===Pe){const Ce=c($e),Oe=c(_e);Pe=Ce>Oe?0:Pe,we=Ce{const oe=(ae,ie)=>ae===0&&ae<=ie;return{x:oe(ee.x,ne.x),y:oe(ee.y,ne.y)}},getScrollCoordinatesPercent=({D:ee,M:ne},oe)=>{const ae=(ie,se,de)=>capNumber(0,1,(ie-de)/(ie-se)||0);return{x:ae(ee.x,ne.x,oe.x),y:ae(ee.y,ne.y,oe.y)}},focusElement=ee=>{ee&&ee.focus&&ee.focus({preventScroll:!0})},manageListener=(ee,ne)=>{each(createOrKeepArray(ne),ee)},createEventListenerHub=ee=>{const ne=new Map,oe=(se,de)=>{if(se){const fe=ne.get(se);manageListener(ve=>{fe&&fe[ve?"delete":"clear"](ve)},de)}else ne.forEach(fe=>{fe.clear()}),ne.clear()},ae=(se,de)=>{if(isString$3(se)){const be=ne.get(se)||new Set;return ne.set(se,be),manageListener(ye=>{isFunction$4(ye)&&be.add(ye)},de),bind$1(oe,se,de)}isBoolean$2(de)&&de&&oe();const fe=keys$1(se),ve=[];return each(fe,be=>{const ye=se[be];ye&&push(ve,ae(be,ye))}),bind$1(runEachAndClear,ve)},ie=(se,de)=>{each(from(ne.get(se)),fe=>{de&&!isEmptyArray(de)?fe.apply(0,de):fe()})};return ae(ee||{}),[ae,oe,ie]},opsStringify=ee=>JSON.stringify(ee,(ne,oe)=>{if(isFunction$4(oe))throw 0;return oe}),getPropByPath=(ee,ne)=>ee?`${ne}`.split(".").reduce((oe,ae)=>oe&&hasOwnProperty$e(oe,ae)?oe[ae]:void 0,ee):void 0,M={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},getOptionsDiff=(ee,ne)=>{const oe={},ae=concat(keys$1(ne),keys$1(ee));return each(ae,ie=>{const se=ee[ie],de=ne[ie];if(isObject$7(se)&&isObject$7(de))assignDeep(oe[ie]={},getOptionsDiff(se,de)),isEmptyObject$1(oe[ie])&&delete oe[ie];else if(hasOwnProperty$e(ne,ie)&&de!==se){let fe=!0;if(isArray$4(se)||isArray$4(de))try{opsStringify(se)===opsStringify(de)&&(fe=!1)}catch{}fe&&(oe[ie]=de)}}),oe},createOptionCheck=(ee,ne,oe)=>ae=>[getPropByPath(ee,ae),oe||getPropByPath(ne,ae)!==void 0],T="data-overlayscrollbars",k="os-environment",R=`${k}-scrollbar-hidden`,V=`${T}-initialize`,L="noClipping",U=`${T}-body`,P$1=T,N="host",q=`${T}-viewport`,B=m,F=O,j="arrange",X="measuring",Y="scrolling",W="scrollbarHidden",J="noContent",G=`${T}-padding`,K=`${T}-content`,Q="os-size-observer",Z=`${Q}-appear`,tt=`${Q}-listener`,et="os-trinsic-observer",ct="os-theme-none",rt="os-scrollbar",lt=`${rt}-rtl`,it=`${rt}-horizontal`,at=`${rt}-vertical`,ut=`${rt}-track`,_t=`${rt}-handle`,dt=`${rt}-visible`,ft=`${rt}-cornerless`,vt=`${rt}-interaction`,pt=`${rt}-unusable`,ht=`${rt}-auto-hide`,gt=`${ht}-hidden`,bt=`${rt}-wheel`,wt=`${ut}-interactive`,yt=`${_t}-interactive`;let St;const getNonce=()=>St,setNonce=ee=>{St=ee};let mt;const createEnvironment=()=>{const ee=(ke,Re,Le)=>{appendChildren(document.body,ke),appendChildren(document.body,ke);const Me=A(ke),Ie=I(ke),Fe=getFractionalSize(Re);return Le&&removeElements(ke),{x:Ie.h-Me.h+Fe.h,y:Ie.w-Me.w+Fe.w}},ne=ke=>{let Re=!1;const Le=addClass(ke,R);try{Re=getStyles(ke,"scrollbar-width")==="none"||getStyles(ke,"display","::-webkit-scrollbar")==="none"}catch{}return Le(),Re},oe=`.${k}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${k} div{width:200%;height:200%;margin:10px 0}.${R}{scrollbar-width:none!important}.${R}::-webkit-scrollbar,.${R}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,ie=createDOM(`
`)[0],se=ie.firstChild,de=ie.lastChild,fe=getNonce();fe&&(de.nonce=fe);const[ve,,be]=createEventListenerHub(),[ye,$e]=createCache({o:ee(ie,se),i:equalXY},bind$1(ee,ie,se,!0)),[_e]=$e(),Ee=ne(ie),we={x:_e.x===0,y:_e.y===0},Pe={elements:{host:null,padding:!Ee,viewport:ke=>Ee&&isBodyElement(ke)&&ke,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},Ce=assignDeep({},M),Oe=bind$1(assignDeep,{},Ce),Ae=bind$1(assignDeep,{},Pe),Ne={T:_e,k:we,R:Ee,V:!!v,L:bind$1(ve,"r"),U:Ae,P:ke=>assignDeep(Pe,ke)&&Ae(),N:Oe,q:ke=>assignDeep(Ce,ke)&&Oe(),B:assignDeep({},Pe),F:assignDeep({},Ce)};if(removeAttrs(ie,"style"),removeElements(ie),addEventListener(n,"resize",()=>{be("r",[])}),isFunction$4(n.matchMedia)&&!Ee&&(!we.x||!we.y)){const ke=Re=>{const Le=n.matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);addEventListener(Le,"change",()=>{Re(),ke(Re)},{A:!0})};ke(()=>{const[Re,Le]=ye();assignDeep(Ne.T,Re),be("r",[Le])})}return Ne},getEnvironment=()=>(mt||(mt=createEnvironment()),mt),resolveInitialization=(ee,ne)=>isFunction$4(ne)?ne.apply(0,ee):ne,staticInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$1(ae)?oe:ae;return resolveInitialization(ee,ie)||ne.apply(0,ee)},dynamicInitializationElement=(ee,ne,oe,ae)=>{const ie=isUndefined$1(ae)?oe:ae,se=resolveInitialization(ee,ie);return!!se&&(isHTMLElement$1(se)?se:ne.apply(0,ee))},cancelInitialization=(ee,ne)=>{const{nativeScrollbarsOverlaid:oe,body:ae}=ne||{},{k:ie,R:se,U:de}=getEnvironment(),{nativeScrollbarsOverlaid:fe,body:ve}=de().cancel,be=oe??fe,ye=isUndefined$1(ae)?ve:ae,$e=(ie.x||ie.y)&&be,_e=ee&&(isNull(ye)?!se:ye);return!!$e||!!_e},Ot=new WeakMap,addInstance=(ee,ne)=>{Ot.set(ee,ne)},removeInstance=ee=>{Ot.delete(ee)},getInstance$1=ee=>Ot.get(ee),createEventContentChange=(ee,ne,oe)=>{let ae=!1;const ie=oe?new WeakMap:!1,se=()=>{ae=!0},de=fe=>{if(ie&&oe){const ve=oe.map(be=>{const[ye,$e]=be||[];return[$e&&ye?(fe||find)(ye,ee):[],$e]});each(ve,be=>each(be[0],ye=>{const $e=be[1],_e=ie.get(ye)||[];if(ee.contains(ye)&&$e){const we=addEventListener(ye,$e,Pe=>{ae?(we(),ie.delete(ye)):ne(Pe)});ie.set(ye,push(_e,we))}else runEachAndClear(_e),ie.delete(ye)}))}};return de(),[se,de]},createDOMObserver=(ee,ne,oe,ae)=>{let ie=!1;const{j:se,X:de,Y:fe,W:ve,J:be,G:ye}=ae||{},$e=debounce$1(()=>ie&&oe(!0),{_:33,v:99}),[_e,Ee]=createEventContentChange(ee,$e,fe),we=se||[],Pe=de||[],Ce=concat(we,Pe),Oe=(Ne,ke)=>{if(!isEmptyArray(ke)){const Re=be||noop$4,Le=ye||noop$4,Me=[],Ie=[];let Fe=!1,je=!1;if(each(ke,Be=>{const{attributeName:He,target:ot,type:Nt,oldValue:st,addedNodes:Ue,removedNodes:Ze}=Be,Tt=Nt==="attributes",Vt=Nt==="childList",Ut=ee===ot,We=Tt&&He,Pt=We&&getAttr(ot,He||""),Mt=isString$3(Pt)?Pt:null,jt=We&&st!==Mt,Rt=inArray(Pe,He)&&jt;if(ne&&(Vt||!Ut)){const Wt=Tt&&jt,Ke=Wt&&ve&&is(ot,ve),Lt=(Ke?!Re(ot,He,st,Mt):!Tt||Wt)&&!Le(Be,!!Ke,ee,ae);each(Ue,Dt=>push(Me,Dt)),each(Ze,Dt=>push(Me,Dt)),je=je||Lt}!ne&&Ut&&jt&&!Re(ot,He,st,Mt)&&(push(Ie,He),Fe=Fe||Rt)}),Ee(Be=>deduplicateArray(Me).reduce((He,ot)=>(push(He,find(Be,ot)),is(ot,Be)?push(He,ot):He),[])),ne)return!Ne&&je&&oe(!1),[!1];if(!isEmptyArray(Ie)||Fe){const Be=[deduplicateArray(Ie),Fe];return!Ne&&oe.apply(0,Be),Be}}},Ae=new _(bind$1(Oe,!1));return[()=>(Ae.observe(ee,{attributes:!0,attributeOldValue:!0,attributeFilter:Ce,subtree:ne,childList:ne,characterData:ne}),ie=!0,()=>{ie&&(_e(),Ae.disconnect(),ie=!1)}),()=>{if(ie)return $e.m(),Oe(!0,Ae.takeRecords())}]},$t$1={},Ct={},addPlugins=ee=>{each(ee,ne=>each(ne,(oe,ae)=>{$t$1[ae]=ne[ae]}))},registerPluginModuleInstances=(ee,ne,oe)=>keys$1(ee).map(ae=>{const{static:ie,instance:se}=ee[ae],[de,fe,ve]=oe||[],be=oe?se:ie;if(be){const ye=oe?be(de,fe,ne):be(ne);return(ve||Ct)[ae]=ye}}),getStaticPluginModuleInstance=ee=>Ct[ee],xt="__osOptionsValidationPlugin",Ht="__osSizeObserverPlugin",getShowNativeOverlaidScrollbars=(ee,ne)=>{const{k:oe}=ne,[ae,ie]=ee("showNativeOverlaidScrollbars");return[ae&&oe.x&&oe.y,ie]},overflowIsVisible=ee=>ee.indexOf(x$1)===0,createViewportOverflowState=(ee,ne)=>{const oe=(ie,se,de,fe)=>{const ve=ie===x$1?H:ie.replace(`${x$1}-`,""),be=overflowIsVisible(ie),ye=overflowIsVisible(de);return!se&&!fe?H:be&&ye?x$1:be?se&&fe?ve:se?x$1:H:se?ve:ye&&fe?x$1:H},ae={x:oe(ne.x,ee.x,ne.y,ee.y),y:oe(ne.y,ee.y,ne.x,ee.x)};return{K:ae,Z:{x:ae.x===E,y:ae.y===E}}},zt="__osScrollbarsHidingPlugin",At="__osClickScrollPlugin",createSizeObserver=(ee,ne,oe)=>{const{dt:ae}=oe||{},ie=getStaticPluginModuleInstance(Ht),[se]=createCache({o:!1,u:!0});return()=>{const de=[],ve=createDOM(`
`)[0],be=ve.firstChild,ye=$e=>{const _e=$e instanceof ResizeObserverEntry;let Ee=!1,we=!1;if(_e){const[Pe,,Ce]=se($e.contentRect),Oe=domRectHasDimensions(Pe);we=domRectAppeared(Pe,Ce),Ee=!we&&!Oe}else we=$e===!0;Ee||ne({ft:!0,dt:we})};if(f){const $e=new f(_e=>ye(_e.pop()));$e.observe(be),push(de,()=>{$e.disconnect()})}else if(ie){const[$e,_e]=ie(be,ye,ae);push(de,concat([addClass(ve,Z),addEventListener(ve,"animationstart",$e)],_e))}else return noop$4;return bind$1(runEachAndClear,push(de,appendChildren(ee,ve)))}},createTrinsicObserver=(ee,ne)=>{let oe;const ae=ve=>ve.h===0||ve.isIntersecting||ve.intersectionRatio>0,ie=createDiv(et),[se]=createCache({o:!1}),de=(ve,be)=>{if(ve){const ye=se(ae(ve)),[,$e]=ye;return $e&&!be&&ne(ye)&&[ye]}},fe=(ve,be)=>de(be.pop(),ve);return[()=>{const ve=[];if(d)oe=new d(bind$1(fe,!1),{root:ee}),oe.observe(ie),push(ve,()=>{oe.disconnect()});else{const be=()=>{const ye=I(ie);de(ye)};push(ve,createSizeObserver(ie,be)()),be()}return bind$1(runEachAndClear,push(ve,appendChildren(ee,ie)))},()=>oe&&fe(!0,oe.takeRecords())]},createObserversSetup=(ee,ne,oe,ae)=>{let ie,se,de,fe,ve,be;const ye=`[${P$1}]`,$e=`[${q}]`,_e=["id","class","style","open","wrap","cols","rows"],{vt:Ee,ht:we,ot:Pe,gt:Ce,bt:Oe,nt:Ae,wt:Ne,yt:ke,St:Re,Ot:Le}=ee,Me=Rt=>getStyles(Rt,"direction")==="rtl",Ie={$t:!1,ct:Me(Ee)},Fe=getEnvironment(),je=getStaticPluginModuleInstance(zt),[Be]=createCache({i:equalWH,o:{w:0,h:0}},()=>{const Rt=je&&je.tt(ee,ne,Ie,Fe,oe).ut,Ke=!(Ne&&Ae)&&hasAttrClass(we,P$1,L),It=!Ae&&ke(j),Lt=It&&getElementScroll(Ce),Dt=Lt&&Le(),tn=Re(X,Ke),Zt=It&&Rt&&Rt()[0],Xe=D(Pe),nt=getFractionalSize(Pe);return Zt&&Zt(),scrollElementTo(Ce,Lt),Dt&&Dt(),Ke&&tn(),{w:Xe.w+nt.w,h:Xe.h+nt.h}}),He=debounce$1(ae,{_:()=>ie,v:()=>se,S(Rt,Wt){const[Ke]=Rt,[It]=Wt;return[concat(keys$1(Ke),keys$1(It)).reduce((Lt,Dt)=>(Lt[Dt]=Ke[Dt]||It[Dt],Lt),{})]}}),ot=Rt=>{const Wt=Me(Ee);assignDeep(Rt,{Ct:be!==Wt}),assignDeep(Ie,{ct:Wt}),be=Wt},Nt=(Rt,Wt)=>{const[Ke,It]=Rt,Lt={xt:It};return assignDeep(Ie,{$t:Ke}),!Wt&&ae(Lt),Lt},st=({ft:Rt,dt:Wt})=>{const It=!(Rt&&!Wt)&&Fe.R?He:ae,Lt={ft:Rt||Wt,dt:Wt};ot(Lt),It(Lt)},Ue=(Rt,Wt)=>{const[,Ke]=Be(),It={Ht:Ke};return ot(It),Ke&&!Wt&&(Rt?ae:He)(It),It},Ze=(Rt,Wt,Ke)=>{const It={Et:Wt};return ot(It),Wt&&!Ke&&He(It),It},[Tt,Vt]=Oe?createTrinsicObserver(we,Nt):[],Ut=!Ae&&createSizeObserver(we,st,{dt:!0}),[We,Pt]=createDOMObserver(we,!1,Ze,{X:_e,j:_e}),Mt=Ae&&f&&new f(Rt=>{const Wt=Rt[Rt.length-1].contentRect;st({ft:!0,dt:domRectAppeared(Wt,ve)}),ve=Wt}),jt=debounce$1(()=>{const[,Rt]=Be();ae({Ht:Rt})},{_:222,p:!0});return[()=>{Mt&&Mt.observe(we);const Rt=Ut&&Ut(),Wt=Tt&&Tt(),Ke=We(),It=Fe.L(Lt=>{Lt?He({zt:Lt}):jt()});return()=>{Mt&&Mt.disconnect(),Rt&&Rt(),Wt&&Wt(),fe&&fe(),Ke(),It()}},({It:Rt,At:Wt,Dt:Ke})=>{const It={},[Lt]=Rt("update.ignoreMutation"),[Dt,tn]=Rt("update.attributes"),[Zt,Xe]=Rt("update.elementEvents"),[nt,Bt]=Rt("update.debounce"),Gt=Xe||tn,Kt=Wt||Ke,Xt=Qt=>isFunction$4(Lt)&&Lt(Qt);if(Gt){de&&de(),fe&&fe();const[Qt,qe]=createDOMObserver(Oe||Pe,!0,Ue,{j:concat(_e,Dt||[]),Y:Zt,W:ye,G:(Qe,kt)=>{const{target:Yt,attributeName:nn}=Qe;return(!kt&&nn&&!Ae?liesBetween(Yt,ye,$e):!1)||!!closest$1(Yt,`.${rt}`)||!!Xt(Qe)}});fe=Qt(),de=qe}if(Bt)if(He.m(),isArray$4(nt)){const Qt=nt[0],qe=nt[1];ie=isNumber$2(Qt)&&Qt,se=isNumber$2(qe)&&qe}else isNumber$2(nt)?(ie=nt,se=!1):(ie=!1,se=!1);if(Kt){const Qt=Pt(),qe=Vt&&Vt(),Qe=de&&de();Qt&&assignDeep(It,Ze(Qt[0],Qt[1],Kt)),qe&&assignDeep(It,Nt(qe[0],Kt)),Qe&&assignDeep(It,Ue(Qe[0],Kt))}return ot(It),It},Ie]},createScrollbarsSetupElements=(ee,ne,oe,ae)=>{const ie="--os-viewport-percent",se="--os-scroll-percent",de="--os-scroll-direction",{U:fe}=getEnvironment(),{scrollbars:ve}=fe(),{slot:be}=ve,{vt:ye,ht:$e,ot:_e,Mt:Ee,gt:we,wt:Pe,nt:Ce}=ne,{scrollbars:Oe}=Ee?{}:ee,{slot:Ae}=Oe||{},Ne=[],ke=[],Re=[],Le=dynamicInitializationElement([ye,$e,_e],()=>Ce&&Pe?ye:$e,be,Ae),Me=We=>{if(v){const Pt=new v({source:we,axis:We});return{kt:jt=>{const Rt=jt.Tt.animate({clear:["left"],[se]:[0,1]},{timeline:Pt});return()=>Rt.cancel()}}}},Ie={x:Me("x"),y:Me("y")},Fe=()=>{const{Rt:We,Vt:Pt}=oe,Mt=(jt,Rt)=>capNumber(0,1,jt/(jt+Rt)||0);return{x:Mt(Pt.x,We.x),y:Mt(Pt.y,We.y)}},je=(We,Pt,Mt)=>{const jt=Mt?addClass:removeClass;each(We,Rt=>{jt(Rt.Tt,Pt)})},Be=(We,Pt)=>{each(We,Mt=>{const[jt,Rt]=Pt(Mt);setStyles(jt,Rt)})},He=(We,Pt,Mt)=>{const jt=isBoolean$2(Mt),Rt=jt?Mt:!0,Wt=jt?!Mt:!0;Rt&&je(ke,We,Pt),Wt&&je(Re,We,Pt)},ot=()=>{const We=Fe(),Pt=Mt=>jt=>[jt.Tt,{[ie]:roundCssNumber(Mt)+""}];Be(ke,Pt(We.x)),Be(Re,Pt(We.y))},Nt=()=>{if(!v){const{Lt:We}=oe,Pt=getScrollCoordinatesPercent(We,getElementScroll(we)),Mt=jt=>Rt=>[Rt.Tt,{[se]:roundCssNumber(jt)+""}];Be(ke,Mt(Pt.x)),Be(Re,Mt(Pt.y))}},st=()=>{const{Lt:We}=oe,Pt=isDefaultDirectionScrollCoordinates(We),Mt=jt=>Rt=>[Rt.Tt,{[de]:jt?"0":"1"}];Be(ke,Mt(Pt.x)),Be(Re,Mt(Pt.y))},Ue=()=>{if(Ce&&!Pe){const{Rt:We,Lt:Pt}=oe,Mt=isDefaultDirectionScrollCoordinates(Pt),jt=getScrollCoordinatesPercent(Pt,getElementScroll(we)),Rt=Wt=>{const{Tt:Ke}=Wt,It=parent(Ke)===_e&&Ke,Lt=(Dt,tn,Zt)=>{const Xe=tn*Dt;return numberToCssPx(Zt?Xe:-Xe)};return[It,It&&{transform:getTrasformTranslateValue({x:Lt(jt.x,We.x,Mt.x),y:Lt(jt.y,We.y,Mt.y)})}]};Be(ke,Rt),Be(Re,Rt)}},Ze=We=>{const Pt=We?"x":"y",jt=createDiv(`${rt} ${We?it:at}`),Rt=createDiv(ut),Wt=createDiv(_t),Ke={Tt:jt,Ut:Rt,Pt:Wt},It=Ie[Pt];return push(We?ke:Re,Ke),push(Ne,[appendChildren(jt,Rt),appendChildren(Rt,Wt),bind$1(removeElements,jt),It&&It.kt(Ke),ae(Ke,He,We)]),Ke},Tt=bind$1(Ze,!0),Vt=bind$1(Ze,!1),Ut=()=>(appendChildren(Le,ke[0].Tt),appendChildren(Le,Re[0].Tt),bind$1(runEachAndClear,Ne));return Tt(),Vt(),[{Nt:ot,qt:Nt,Bt:st,Ft:Ue,jt:He,Xt:{Yt:ke,Wt:Tt,Jt:bind$1(Be,ke)},Gt:{Yt:Re,Wt:Vt,Jt:bind$1(Be,Re)}},Ut]},createScrollbarsSetupEvents=(ee,ne,oe,ae)=>(ie,se,de)=>{const{ht:fe,ot:ve,nt:be,gt:ye,Kt:$e,Ot:_e}=ne,{Tt:Ee,Ut:we,Pt:Pe}=ie,[Ce,Oe]=selfClearTimeout(333),[Ae,Ne]=selfClearTimeout(444),ke=Me=>{isFunction$4(ye.scrollBy)&&ye.scrollBy({behavior:"smooth",left:Me.x,top:Me.y})},Re=()=>{const Me="pointerup pointercancel lostpointercapture",Ie=`client${de?"X":"Y"}`,Fe=de?$:C,je=de?"left":"top",Be=de?"w":"h",He=de?"x":"y",ot=(st,Ue)=>Ze=>{const{Rt:Tt}=oe,Vt=I(we)[Be]-I(Pe)[Be],We=Ue*Ze/Vt*Tt[He];scrollElementTo(ye,{[He]:st+We})},Nt=[];return addEventListener(we,"pointerdown",st=>{const Ue=closest$1(st.target,`.${_t}`)===Pe,Ze=Ue?Pe:we,Tt=ee.scrollbars,Vt=Tt[Ue?"dragScroll":"clickScroll"],{button:Ut,isPrimary:We,pointerType:Pt}=st,{pointers:Mt}=Tt;if(Ut===0&&We&&Vt&&(Mt||[]).includes(Pt)){runEachAndClear(Nt),Ne();const Rt=!Ue&&(st.shiftKey||Vt==="instant"),Wt=bind$1(getBoundingClientRect$1,Pe),Ke=bind$1(getBoundingClientRect$1,we),It=(kt,Yt)=>(kt||Wt())[je]-(Yt||Ke())[je],Lt=e(getBoundingClientRect$1(ye)[Fe])/I(ye)[Be]||1,Dt=ot(getElementScroll(ye)[He],1/Lt),tn=st[Ie],Zt=Wt(),Xe=Ke(),nt=Zt[Fe],Bt=It(Zt,Xe)+nt/2,Gt=tn-Xe[je],Kt=Ue?0:Gt-Bt,Xt=kt=>{runEachAndClear(Qe),Ze.releasePointerCapture(kt.pointerId)},Qt=Ue||Rt,qe=_e(),Qe=[addEventListener($e,Me,Xt),addEventListener($e,"selectstart",kt=>preventDefault$1(kt),{H:!1}),addEventListener(we,Me,Xt),Qt&&addEventListener(we,"pointermove",kt=>Dt(Kt+(kt[Ie]-tn))),Qt&&(()=>{const kt=getElementScroll(ye);qe();const Yt=getElementScroll(ye),nn={x:Yt.x-kt.x,y:Yt.y-kt.y};(c(nn.x)>3||c(nn.y)>3)&&(_e(),scrollElementTo(ye,kt),ke(nn),Ae(qe))})];if(Ze.setPointerCapture(st.pointerId),Rt)Dt(Kt);else if(!Ue){const kt=getStaticPluginModuleInstance(At);if(kt){const Yt=kt(Dt,Kt,nt,nn=>{nn?qe():push(Qe,qe)});push(Qe,Yt),push(Nt,bind$1(Yt,!0))}}}})};let Le=!0;return bind$1(runEachAndClear,[addEventListener(Pe,"pointermove pointerleave",ae),addEventListener(Ee,"pointerenter",()=>{se(vt,!0)}),addEventListener(Ee,"pointerleave pointercancel",()=>{se(vt,!1)}),!be&&addEventListener(Ee,"mousedown",()=>{const Me=getFocusedElement();(hasAttr(Me,q)||hasAttr(Me,P$1)||Me===document.body)&&a(bind$1(focusElement,ve),25)}),addEventListener(Ee,"wheel",Me=>{const{deltaX:Ie,deltaY:Fe,deltaMode:je}=Me;Le&&je===0&&parent(Ee)===fe&&ke({x:Ie,y:Fe}),Le=!1,se(bt,!0),Ce(()=>{Le=!0,se(bt)}),preventDefault$1(Me)},{H:!1,I:!0}),addEventListener(Ee,"pointerdown",bind$1(addEventListener,$e,"click",stopAndPrevent,{A:!0,I:!0,H:!1}),{I:!0}),Re(),Oe,Ne])},createScrollbarsSetup=(ee,ne,oe,ae,ie,se)=>{let de,fe,ve,be,ye,$e=noop$4,_e=0;const Ee=We=>We.pointerType==="mouse",[we,Pe]=selfClearTimeout(),[Ce,Oe]=selfClearTimeout(100),[Ae,Ne]=selfClearTimeout(100),[ke,Re]=selfClearTimeout(()=>_e),[Le,Me]=createScrollbarsSetupElements(ee,ie,ae,createScrollbarsSetupEvents(ne,ie,ae,We=>Ee(We)&&Ze())),{ht:Ie,Qt:Fe,wt:je}=ie,{jt:Be,Nt:He,qt:ot,Bt:Nt,Ft:st}=Le,Ue=(We,Pt)=>{if(Re(),We)Be(gt);else{const Mt=bind$1(Be,gt,!0);_e>0&&!Pt?ke(Mt):Mt()}},Ze=()=>{(ve?!de:!be)&&(Ue(!0),Ce(()=>{Ue(!1)}))},Tt=We=>{Be(ht,We,!0),Be(ht,We,!1)},Vt=We=>{Ee(We)&&(de=ve,ve&&Ue(!0))},Ut=[Re,Oe,Ne,Pe,()=>$e(),addEventListener(Ie,"pointerover",Vt,{A:!0}),addEventListener(Ie,"pointerenter",Vt),addEventListener(Ie,"pointerleave",We=>{Ee(We)&&(de=!1,ve&&Ue(!1))}),addEventListener(Ie,"pointermove",We=>{Ee(We)&&fe&&Ze()}),addEventListener(Fe,"scroll",We=>{we(()=>{ot(),Ze()}),se(We),st()})];return[()=>bind$1(runEachAndClear,push(Ut,Me())),({It:We,Dt:Pt,Zt:Mt,tn:jt})=>{const{nn:Rt,sn:Wt,en:Ke,cn:It}=jt||{},{Ct:Lt,dt:Dt}=Mt||{},{ct:tn}=oe,{k:Zt}=getEnvironment(),{K:Xe,rn:nt}=ae,[Bt,Gt]=We("showNativeOverlaidScrollbars"),[Kt,Xt]=We("scrollbars.theme"),[Qt,qe]=We("scrollbars.visibility"),[Qe,kt]=We("scrollbars.autoHide"),[Yt,nn]=We("scrollbars.autoHideSuspend"),[en]=We("scrollbars.autoHideDelay"),[Ft,qt]=We("scrollbars.dragScroll"),[sn,an]=We("scrollbars.clickScroll"),[un,fn]=We("overflow"),mn=Dt&&!Pt,bn=nt.x||nt.y,vn=Rt||Wt||It||Lt||Pt,gn=Ke||qe||fn,hn=Bt&&Zt.x&&Zt.y,pn=(_n,yn,En)=>{const Sn=_n.includes(E)&&(Qt===x$1||Qt==="auto"&&yn===E);return Be(dt,Sn,En),Sn};if(_e=en,mn&&(Yt&&bn?(Tt(!1),$e(),Ae(()=>{$e=addEventListener(Fe,"scroll",bind$1(Tt,!0),{A:!0})})):Tt(!0)),Gt&&Be(ct,hn),Xt&&(Be(ye),Be(Kt,!0),ye=Kt),nn&&!Yt&&Tt(!0),kt&&(fe=Qe==="move",ve=Qe==="leave",be=Qe==="never",Ue(be,!0)),qt&&Be(yt,Ft),an&&Be(wt,!!sn),gn){const _n=pn(un.x,Xe.x,!0),yn=pn(un.y,Xe.y,!1);Be(ft,!(_n&&yn))}vn&&(ot(),He(),st(),It&&Nt(),Be(pt,!nt.x,!0),Be(pt,!nt.y,!1),Be(lt,tn&&!je))},{},Le]},createStructureSetupElements=ee=>{const ne=getEnvironment(),{U:oe,R:ae}=ne,{elements:ie}=oe(),{padding:se,viewport:de,content:fe}=ie,ve=isHTMLElement$1(ee),be=ve?{}:ee,{elements:ye}=be,{padding:$e,viewport:_e,content:Ee}=ye||{},we=ve?ee:be.target,Pe=isBodyElement(we),Ce=we.ownerDocument,Oe=Ce.documentElement,Ae=()=>Ce.defaultView||n,Ne=bind$1(staticInitializationElement,[we]),ke=bind$1(dynamicInitializationElement,[we]),Re=bind$1(createDiv,""),Le=bind$1(Ne,Re,de),Me=bind$1(ke,Re,fe),Ie=nt=>{const Bt=I(nt),Gt=D(nt),Kt=getStyles(nt,m),Xt=getStyles(nt,O);return Gt.w-Bt.w>0&&!overflowIsVisible(Kt)||Gt.h-Bt.h>0&&!overflowIsVisible(Xt)},Fe=Le(_e),je=Fe===we,Be=je&&Pe,He=!je&&Me(Ee),ot=!je&&Fe===He,Nt=Be?Oe:Fe,st=Be?Nt:we,Ue=!je&&ke(Re,se,$e),Ze=!ot&&He,Tt=[Ze,Nt,Ue,st].map(nt=>isHTMLElement$1(nt)&&!parent(nt)&&nt),Vt=nt=>nt&&inArray(Tt,nt),Ut=!Vt(Nt)&&Ie(Nt)?Nt:we,We=Be?Oe:Nt,Mt={vt:we,ht:st,ot:Nt,ln:Ue,bt:Ze,gt:We,Qt:Be?Ce:Nt,an:Pe?Oe:Ut,Kt:Ce,wt:Pe,Mt:ve,nt:je,un:Ae,yt:nt=>hasAttrClass(Nt,q,nt),St:(nt,Bt)=>addRemoveAttrClass(Nt,q,nt,Bt),Ot:()=>addRemoveAttrClass(We,q,Y,!0)},{vt:jt,ht:Rt,ln:Wt,ot:Ke,bt:It}=Mt,Lt=[()=>{removeAttrs(Rt,[P$1,V]),removeAttrs(jt,V),Pe&&removeAttrs(Oe,[V,P$1])}];let Dt=contents([It,Ke,Wt,Rt,jt].find(nt=>nt&&!Vt(nt)));const tn=Be?jt:It||Ke,Zt=bind$1(runEachAndClear,Lt);return[Mt,()=>{const nt=Ae(),Bt=getFocusedElement(),Gt=Qe=>{appendChildren(parent(Qe),contents(Qe)),removeElements(Qe)},Kt=Qe=>addEventListener(Qe,"focusin focusout focus blur",stopAndPrevent,{I:!0,H:!1}),Xt="tabindex",Qt=getAttr(Ke,Xt),qe=Kt(Bt);return setAttrs(Rt,P$1,je?"":N),setAttrs(Wt,G,""),setAttrs(Ke,q,""),setAttrs(It,K,""),je||(setAttrs(Ke,Xt,Qt||"-1"),Pe&&setAttrs(Oe,U,"")),appendChildren(tn,Dt),appendChildren(Rt,Wt),appendChildren(Wt||Rt,!je&&Ke),appendChildren(Ke,It),push(Lt,[qe,()=>{const Qe=getFocusedElement(),kt=Vt(Ke),Yt=kt&&Qe===Ke?jt:Qe,nn=Kt(Yt);removeAttrs(Wt,G),removeAttrs(It,K),removeAttrs(Ke,q),Pe&&removeAttrs(Oe,U),Qt?setAttrs(Ke,Xt,Qt):removeAttrs(Ke,Xt),Vt(It)&&Gt(It),kt&&Gt(Ke),Vt(Wt)&&Gt(Wt),focusElement(Yt),nn()}]),ae&&!je&&(addAttrClass(Ke,q,W),push(Lt,bind$1(removeAttrs,Ke,q))),focusElement(!je&&Pe&&Bt===jt&&nt.top===nt?Ke:Bt),qe(),Dt=0,Zt},Zt]},createTrinsicUpdateSegment=({bt:ee})=>({Zt:ne,_n:oe,Dt:ae})=>{const{xt:ie}=ne||{},{$t:se}=oe;ee&&(ie||ae)&&setStyles(ee,{[C]:se&&"100%"})},createPaddingUpdateSegment=({ht:ee,ln:ne,ot:oe,nt:ae},ie)=>{const[se,de]=createCache({i:equalTRBL,o:topRightBottomLeft()},bind$1(topRightBottomLeft,ee,"padding",""));return({It:fe,Zt:ve,_n:be,Dt:ye})=>{let[$e,_e]=de(ye);const{R:Ee}=getEnvironment(),{ft:we,Ht:Pe,Ct:Ce}=ve||{},{ct:Oe}=be,[Ae,Ne]=fe("paddingAbsolute");(we||_e||(ye||Pe))&&([$e,_e]=se(ye));const Re=!ae&&(Ne||Ce||_e);if(Re){const Le=!Ae||!ne&&!Ee,Me=$e.r+$e.l,Ie=$e.t+$e.b,Fe={[y]:Le&&!Oe?-Me:0,[S]:Le?-Ie:0,[w]:Le&&Oe?-Me:0,top:Le?-$e.t:0,right:Le?Oe?-$e.r:"auto":0,left:Le?Oe?"auto":-$e.l:0,[$]:Le&&`calc(100% + ${Me}px)`},je={[p]:Le?$e.t:0,[h]:Le?$e.r:0,[b]:Le?$e.b:0,[g$1]:Le?$e.l:0};setStyles(ne||oe,Fe),setStyles(oe,je),assignDeep(ie,{ln:$e,dn:!Le,rt:ne?je:assignDeep({},Fe,je)})}return{fn:Re}}},createOverflowUpdateSegment=(ee,ne)=>{const oe=getEnvironment(),{ht:ae,ln:ie,ot:se,nt:de,Qt:fe,gt:ve,wt:be,St:ye,un:$e}=ee,{R:_e}=oe,Ee=be&&de,we=bind$1(o,0),Pe={display:()=>!1,direction:Pt=>Pt!=="ltr",flexDirection:Pt=>Pt.endsWith("-reverse"),writingMode:Pt=>Pt!=="horizontal-tb"},Ce=keys$1(Pe),Oe={i:equalWH,o:{w:0,h:0}},Ae={i:equalXY,o:{}},Ne=Pt=>{ye(X,!Ee&&Pt)},ke=Pt=>{if(!Ce.some(tn=>{const Zt=Pt[tn];return Zt&&Pe[tn](Zt)}))return{D:{x:0,y:0},M:{x:1,y:1}};Ne(!0);const jt=getElementScroll(ve),Rt=ye(J,!0),Wt=addEventListener(fe,E,tn=>{const Zt=getElementScroll(ve);tn.isTrusted&&Zt.x===jt.x&&Zt.y===jt.y&&stopPropagation$1(tn)},{I:!0,A:!0});scrollElementTo(ve,{x:0,y:0}),Rt();const Ke=getElementScroll(ve),It=D(ve);scrollElementTo(ve,{x:It.w,y:It.h});const Lt=getElementScroll(ve);scrollElementTo(ve,{x:Lt.x-Ke.x<1&&-It.w,y:Lt.y-Ke.y<1&&-It.h});const Dt=getElementScroll(ve);return scrollElementTo(ve,jt),i(()=>Wt()),{D:Ke,M:Dt}},Re=(Pt,Mt)=>{const jt=n.devicePixelRatio%1!==0?1:0,Rt={w:we(Pt.w-Mt.w),h:we(Pt.h-Mt.h)};return{w:Rt.w>jt?Rt.w:0,h:Rt.h>jt?Rt.h:0}},[Le,Me]=createCache(Oe,bind$1(getFractionalSize,se)),[Ie,Fe]=createCache(Oe,bind$1(D,se)),[je,Be]=createCache(Oe),[He]=createCache(Ae),[ot,Nt]=createCache(Oe),[st]=createCache(Ae),[Ue]=createCache({i:(Pt,Mt)=>equal(Pt,Mt,Ce),o:{}},()=>hasDimensions(se)?getStyles(se,Ce):{}),[Ze,Tt]=createCache({i:(Pt,Mt)=>equalXY(Pt.D,Mt.D)&&equalXY(Pt.M,Mt.M),o:getZeroScrollCoordinates()}),Vt=getStaticPluginModuleInstance(zt),Ut=(Pt,Mt)=>`${Mt?B:F}${capitalizeFirstLetter(Pt)}`,We=Pt=>{const Mt=Rt=>[x$1,H,E].map(Wt=>Ut(Wt,Rt)),jt=Mt(!0).concat(Mt()).join(" ");ye(jt),ye(keys$1(Pt).map(Rt=>Ut(Pt[Rt],Rt==="x")).join(" "),!0)};return({It:Pt,Zt:Mt,_n:jt,Dt:Rt},{fn:Wt})=>{const{ft:Ke,Ht:It,Ct:Lt,dt:Dt,zt:tn}=Mt||{},Zt=Vt&&Vt.tt(ee,ne,jt,oe,Pt),{it:Xe,ut:nt,_t:Bt}=Zt||{},[Gt,Kt]=getShowNativeOverlaidScrollbars(Pt,oe),[Xt,Qt]=Pt("overflow"),qe=overflowIsVisible(Xt.x),Qe=overflowIsVisible(Xt.y),kt=!0;let Yt=Me(Rt),nn=Fe(Rt),en=Be(Rt),Ft=Nt(Rt);Kt&&_e&&ye(W,!Gt);{hasAttrClass(ae,P$1,L)&&Ne(!0);const[An]=nt?nt():[],[ln]=Yt=Le(Rt),[$n]=nn=Ie(Rt),Pn=A(se),xn=Ee&&getWindowSize($e()),jn={w:we($n.w+ln.w),h:we($n.h+ln.h)},Dn={w:we((xn?xn.w:Pn.w+we(Pn.w-$n.w))+ln.w),h:we((xn?xn.h:Pn.h+we(Pn.h-$n.h))+ln.h)};An&&An(),Ft=ot(Dn),en=je(Re(jn,Dn),Rt)}const[qt,sn]=Ft,[an,un]=en,[fn,mn]=nn,[bn,vn]=Yt,[gn,hn]=He({x:an.w>0,y:an.h>0}),pn=qe&&Qe&&(gn.x||gn.y)||qe&&gn.x&&!gn.y||Qe&&gn.y&&!gn.x,_n=Wt||Lt||tn||vn||mn||sn||un||Qt||Kt||kt,yn=createViewportOverflowState(gn,Xt),[En,Sn]=st(yn.K),[On,Rn]=Ue(Rt),Cn=Lt||Dt||Rn||hn||Rt,[Tn,In]=Cn?Ze(ke(On),Rt):Tt();return _n&&(Sn&&We(yn.K),Bt&&Xe&&setStyles(se,Bt(yn,jt,Xe(yn,fn,bn)))),Ne(!1),addRemoveAttrClass(ae,P$1,L,pn),addRemoveAttrClass(ie,G,L,pn),assignDeep(ne,{K:En,Vt:{x:qt.w,y:qt.h},Rt:{x:an.w,y:an.h},rn:gn,Lt:sanitizeScrollCoordinates(Tn,an)}),{en:Sn,nn:sn,sn:un,cn:In||un,vn:Cn}}},createStructureSetup=ee=>{const[ne,oe,ae]=createStructureSetupElements(ee),ie={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[y]:0,[S]:0,[w]:0,[p]:0,[h]:0,[b]:0,[g$1]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:H,y:H},rn:{x:!1,y:!1},Lt:getZeroScrollCoordinates()},{vt:se,gt:de,nt:fe,Ot:ve}=ne,{R:be,k:ye}=getEnvironment(),$e=!be&&(ye.x||ye.y),_e=[createTrinsicUpdateSegment(ne),createPaddingUpdateSegment(ne,ie),createOverflowUpdateSegment(ne,ie)];return[oe,Ee=>{const we={},Ce=$e&&getElementScroll(de),Oe=Ce&&ve();return each(_e,Ae=>{assignDeep(we,Ae(Ee,we)||{})}),scrollElementTo(de,Ce),Oe&&Oe(),!fe&&scrollElementTo(se,0),we},ie,ne,ae]},createSetups=(ee,ne,oe,ae,ie)=>{let se=!1;const de=createOptionCheck(ne,{}),[fe,ve,be,ye,$e]=createStructureSetup(ee),[_e,Ee,we]=createObserversSetup(ye,be,de,ke=>{Ne({},ke)}),[Pe,Ce,,Oe]=createScrollbarsSetup(ee,ne,we,be,ye,ie),Ae=ke=>keys$1(ke).some(Re=>!!ke[Re]),Ne=(ke,Re)=>{if(oe())return!1;const{pn:Le,Dt:Me,At:Ie,hn:Fe}=ke,je=Le||{},Be=!!Me||!se,He={It:createOptionCheck(ne,je,Be),pn:je,Dt:Be};if(Fe)return Ce(He),!1;const ot=Re||Ee(assignDeep({},He,{At:Ie})),Nt=ve(assignDeep({},He,{_n:we,Zt:ot}));Ce(assignDeep({},He,{Zt:ot,tn:Nt}));const st=Ae(ot),Ue=Ae(Nt),Ze=st||Ue||!isEmptyObject$1(je)||Be;return se=!0,Ze&&ae(ke,{Zt:ot,tn:Nt}),Ze};return[()=>{const{an:ke,gt:Re,Ot:Le}=ye,Me=getElementScroll(ke),Ie=[_e(),fe(),Pe()],Fe=Le();return scrollElementTo(Re,Me),Fe(),bind$1(runEachAndClear,Ie)},Ne,()=>({gn:we,bn:be}),{wn:ye,yn:Oe},$e]},OverlayScrollbars=(ee,ne,oe)=>{const{N:ae}=getEnvironment(),ie=isHTMLElement$1(ee),se=ie?ee:ee.target,de=getInstance$1(se);if(ne&&!de){let fe=!1;const ve=[],be={},ye=je=>{const Be=removeUndefinedProperties(je),He=getStaticPluginModuleInstance(xt);return He?He(Be,!0):Be},$e=assignDeep({},ae(),ye(ne)),[_e,Ee,we]=createEventListenerHub(),[Pe,Ce,Oe]=createEventListenerHub(oe),Ae=(je,Be)=>{Oe(je,Be),we(je,Be)},[Ne,ke,Re,Le,Me]=createSetups(ee,$e,()=>fe,({pn:je,Dt:Be},{Zt:He,tn:ot})=>{const{ft:Nt,Ct:st,xt:Ue,Ht:Ze,Et:Tt,dt:Vt}=He,{nn:Ut,sn:We,en:Pt,cn:Mt}=ot;Ae("updated",[Fe,{updateHints:{sizeChanged:!!Nt,directionChanged:!!st,heightIntrinsicChanged:!!Ue,overflowEdgeChanged:!!Ut,overflowAmountChanged:!!We,overflowStyleChanged:!!Pt,scrollCoordinatesChanged:!!Mt,contentMutation:!!Ze,hostMutation:!!Tt,appear:!!Vt},changedOptions:je||{},force:!!Be}])},je=>Ae("scroll",[Fe,je])),Ie=je=>{removeInstance(se),runEachAndClear(ve),fe=!0,Ae("destroyed",[Fe,je]),Ee(),Ce()},Fe={options(je,Be){if(je){const He=Be?ae():{},ot=getOptionsDiff($e,assignDeep(He,ye(je)));isEmptyObject$1(ot)||(assignDeep($e,ot),ke({pn:ot}))}return assignDeep({},$e)},on:Pe,off:(je,Be)=>{je&&Be&&Ce(je,Be)},state(){const{gn:je,bn:Be}=Re(),{ct:He}=je,{Vt:ot,Rt:Nt,K:st,rn:Ue,ln:Ze,dn:Tt,Lt:Vt}=Be;return assignDeep({},{overflowEdge:ot,overflowAmount:Nt,overflowStyle:st,hasOverflow:Ue,scrollCoordinates:{start:Vt.D,end:Vt.M},padding:Ze,paddingAbsolute:Tt,directionRTL:He,destroyed:fe})},elements(){const{vt:je,ht:Be,ln:He,ot,bt:Nt,gt:st,Qt:Ue}=Le.wn,{Xt:Ze,Gt:Tt}=Le.yn,Vt=We=>{const{Pt,Ut:Mt,Tt:jt}=We;return{scrollbar:jt,track:Mt,handle:Pt}},Ut=We=>{const{Yt:Pt,Wt:Mt}=We,jt=Vt(Pt[0]);return assignDeep({},jt,{clone:()=>{const Rt=Vt(Mt());return ke({hn:!0}),Rt}})};return assignDeep({},{target:je,host:Be,padding:He||ot,viewport:ot,content:Nt||ot,scrollOffsetElement:st,scrollEventElement:Ue,scrollbarHorizontal:Ut(Ze),scrollbarVertical:Ut(Tt)})},update:je=>ke({Dt:je,At:!0}),destroy:bind$1(Ie,!1),plugin:je=>be[keys$1(je)[0]]};return push(ve,[Me]),addInstance(se,Fe),registerPluginModuleInstances($t$1,OverlayScrollbars,[Fe,_e,be]),cancelInitialization(Le.wn.wt,!ie&&ee.cancel)?(Ie(!0),Fe):(push(ve,Ne()),Ae("initialized",[Fe]),Fe.update(),Fe)}return de};OverlayScrollbars.plugin=ee=>{const ne=isArray$4(ee),oe=ne?ee:[ee],ae=oe.map(ie=>registerPluginModuleInstances(ie,OverlayScrollbars)[0]);return addPlugins(oe),ne?ae:ae[0]};OverlayScrollbars.valid=ee=>{const ne=ee&&ee.elements,oe=isFunction$4(ne)&&ne();return isPlainObject$4(oe)&&!!getInstance$1(oe.target)};OverlayScrollbars.env=()=>{const{T:ee,k:ne,R:oe,V:ae,B:ie,F:se,U:de,P:fe,N:ve,q:be}=getEnvironment();return assignDeep({},{scrollbarsSize:ee,scrollbarsOverlaid:ne,scrollbarsHiding:oe,scrollTimeline:ae,staticDefaultInitialization:ie,staticDefaultOptions:se,getDefaultInitialization:de,setDefaultInitialization:fe,getDefaultOptions:ve,setDefaultOptions:be})};OverlayScrollbars.nonce=setNonce;const g=()=>{if(typeof window>"u"){const be=()=>{};return[be,be]}let ee,ne;const oe=window,ae=typeof oe.requestIdleCallback=="function",ie=oe.requestAnimationFrame,se=oe.cancelAnimationFrame,de=ae?oe.requestIdleCallback:ie,fe=ae?oe.cancelIdleCallback:se,ve=()=>{fe(ee),se(ne)};return[(be,ye)=>{ve(),ee=de(ae?()=>{ve(),ne=ie(be)}:be,typeof ye=="object"?ye:{timeout:2233})},ve]},x=ee=>{let ne=null,oe,ae,ie;const se=shallowRef(ee||{}),[de,fe]=g();return watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.defer)},ve=>{ie=ve},{deep:!0,immediate:!0}),watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.options)},ve=>{oe=ve,OverlayScrollbars.valid(ne)&&ne.options(oe||{},!0)},{deep:!0,immediate:!0}),watch(()=>{var ve;return unref((ve=se.value)==null?void 0:ve.events)},ve=>{ae=ve,OverlayScrollbars.valid(ne)&&ne.on(ae||{},!0)},{deep:!0,immediate:!0}),onUnmounted(()=>{fe(),ne==null||ne.destroy()}),[ve=>{if(OverlayScrollbars.valid(ne))return ne;const be=()=>ne=OverlayScrollbars(ve,oe||{},ae||{});ie?de(be,ie):be()},()=>ne]},P=defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:[String,Object],default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(ee,{expose:ne,emit:oe}){const ae=ee,ie={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:se,options:de,events:fe,defer:ve}=toRefs(ae),be=shallowRef(null),ye=shallowRef(null),$e=ref(),[_e,Ee]=x({options:de,events:$e,defer:ve});return ne({osInstance:Ee,getElement:()=>be.value}),watchPostEffect(we=>{const{value:Pe}=be,{value:Ce}=ye;Pe&&(_e(se.value==="body"?{target:Pe,cancel:{body:null}}:{target:Pe,elements:{viewport:Ce,content:Ce}}),we(()=>{var Oe;return(Oe=Ee())==null?void 0:Oe.destroy()}))}),watch(()=>unref(fe),we=>{const Pe=we||{};$e.value=Object.keys(ie).reduce((Ce,Oe)=>{const Ae=Pe[Oe];return Ce[Oe]=[(...Ne)=>oe(ie[Oe],...Ne),...(Array.isArray(Ae)?Ae:[Ae]).filter(Boolean)],Ce},{})},{deep:!0,immediate:!0}),(we,Pe)=>(openBlock(),createBlock(resolveDynamicComponent(unref(se)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:be},{default:withCtx(()=>[unref(se)==="body"?renderSlot(we.$slots,"default",{key:0}):(openBlock(),createElementBlock("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:ye},[renderSlot(we.$slots,"default")],512))]),_:3},512))}}),_hoisted_1$5={flex:"~ items-center justify-between","p-4":"","border-b":"~ solid stone/15","text-6":""},_hoisted_2$3={key:0,flex:"~ items-center justify-end","px-3":"","py-2":"","border-t":"~ solid stone/15"},_sfc_main$8=defineComponent({__name:"HSlideover",props:mergeModels({appear:{type:Boolean,default:!1},side:{default:"right"},title:{},preventClose:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:mergeModels(["close"],["update:modelValue"]),setup(ee,{emit:ne}){const oe=ee,ae=ne,ie=useModel(ee,"modelValue"),se=useSlots(),de=ref({enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0"}),fe=computed(()=>({enter:"transform transition ease-in-out duration-300",leave:"transform transition ease-in-out duration-200",enterFrom:oe.side==="left"?"-translate-x-full":"translate-x-full",enterTo:"translate-x-0",leaveFrom:"translate-x-0",leaveTo:oe.side==="left"?"-translate-x-full":"translate-x-full"}));function ve(){ie.value=!1,ae("close")}return(be,ye)=>{const $e=_sfc_main$9;return openBlock(),createBlock(unref(Se),{as:"template",appear:be.appear,show:ie.value},{default:withCtx(()=>[createVNode(unref(Ye),{class:"fixed inset-0 z-2000 flex justify-end",onClose:ye[0]||(ye[0]=_e=>!be.preventClose&&ve())},{default:withCtx(()=>[createVNode(unref(he),mergeProps({as:"template",appear:be.appear},unref(de)),{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["fixed inset-0 bg-stone-2/75 transition-opacity dark-bg-stone-8/75",{"backdrop-blur-sm":be.overlay}])},null,2)]),_:1},16,["appear"]),(openBlock(),createBlock(unref(he),mergeProps(unref(fe),{key:JSON.stringify(unref(fe)),as:"template",appear:be.appear}),{default:withCtx(()=>[createVNode(unref(Ge),{relative:"","max-w-md":"","w-full":"","w-screen":"",flex:"","flex-1":"","flex-col":"","bg-white":"","dark-bg-stone-8":"","focus-outline-none":""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$5,[createVNode(unref(Ve),{"m-0":"","text-lg":"","text-dark":"","dark-text-white":""},{default:withCtx(()=>[createTextVNode(toDisplayString$1(be.title),1)]),_:1}),createVNode($e,{name:"i-carbon:close","cursor-pointer":"",onClick:ve})]),createVNode(unref(Je),{"m-0":"","flex-1":"","of-y-hidden":""},{default:withCtx(()=>[createVNode(unref(P),{options:{scrollbars:{autoHide:"leave",autoHideDelay:300}},defer:"",class:"h-full p-4"},{default:withCtx(()=>[renderSlot(be.$slots,"default")]),_:3})]),_:3}),unref(se).footer?(openBlock(),createElementBlock("div",_hoisted_2$3,[renderSlot(be.$slots,"footer")])):createCommentVNode("",!0)]),_:3})]),_:3},16,["appear"]))]),_:3})]),_:3},8,["appear","show"])}}}),_hoisted_1$4=["disabled"],_sfc_main$7=defineComponent({__name:"HButton",props:{block:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(ee){const ne=ee,oe=computed(()=>["focus-outline-none focus-visible-outline-0 cursor-pointer disabled-cursor-not-allowed disabled-opacity-75 flex-shrink-0 gap-x-1.5 px-2.5 py-1.5 border-size-0 font-medium text-sm rounded-md select-none",ne.block?"w-full flex justify-center items-center":"inline-flex items-center",ne.outline?"shadow-sm ring-1 ring-inset ring-ui-primary text-ui-primary bg-white dark-bg-dark hover-not-disabled-bg-ui-primary/10 dark-hover-not-disabled-bg-ui-primary/10 focus-visible-ring-2":"shadow-sm text-ui-text bg-ui-primary hover-bg-ui-primary/75 disabled-bg-ui-primary/90 focus-visible-ring-inset focus-visible-ring-2"]);return(ae,ie)=>(openBlock(),createElementBlock("button",{disabled:ae.disabled,class:normalizeClass(unref(oe))},[renderSlot(ae.$slots,"default")],10,_hoisted_1$4))}}),_hoisted_1$3={class:"relative w-full"},_hoisted_2$2=["placeholder","disabled"],_sfc_main$6=defineComponent({__name:"HInput",props:mergeModels({placeholder:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(ee,{expose:ne}){const oe=useModel(ee,"modelValue"),ae=ref();return ne({ref:ae}),(ie,se)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":se[0]||(se[0]=de=>oe.value=de),type:"text",placeholder:ie.placeholder,disabled:ie.disabled,class:"relative block w-full border-0 rounded-md bg-white px-2.5 py-1.5 text-sm shadow-sm ring-1 ring-stone-2 ring-inset disabled-cursor-not-allowed dark-bg-dark disabled-opacity-50 focus-outline-none focus-ring-2 dark-ring-stone-8 focus-ring-ui-primary placeholder-stone-4 dark-placeholder-stone-5"},null,8,_hoisted_2$2),[[vModelText,oe.value]])]))}}),_hoisted_1$2={class:"absolute inset-0 h-full w-full flex items-center justify-center"},_sfc_main$5=defineComponent({__name:"HToggle",props:mergeModels({disabled:{type:Boolean,default:!1},onIcon:{},offIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(ee){const ne=useModel(ee,"modelValue");return(oe,ae)=>{const ie=_sfc_main$9;return openBlock(),createBlock(unref(ue),{modelValue:ne.value,"onUpdate:modelValue":ae[0]||(ae[0]=se=>ne.value=se),disabled:oe.disabled,class:normalizeClass(["relative h-5 w-10 inline-flex flex-shrink-0 cursor-pointer border-2 border-transparent rounded-full p-0 vertical-middle disabled-cursor-not-allowed disabled-opacity-50 focus-outline-none focus-visible-ring-2 focus-visible-ring-offset-2 focus-visible-ring-offset-white dark-focus-visible-ring-offset-gray-900",[ne.value?"bg-ui-primary":"bg-stone-3 dark-bg-stone-7"]])},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["pointer-events-none relative inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition-margin duration-200 ease-in-out dark-bg-dark",[ne.value?"ms-5":"ms-0"]])},[createBaseVNode("span",_hoisted_1$2,[ne.value&&oe.onIcon||!ne.value&&oe.offIcon?(openBlock(),createBlock(ie,{key:0,name:ne.value?oe.onIcon:oe.offIcon,class:"h-3 w-3 text-stone-7 dark-text-stone-3"},null,8,["name"])):createCommentVNode("",!0)])],2)]),_:1},8,["modelValue","disabled","class"])}}}),_sfc_main$4=defineComponent({__name:"HTabList",props:mergeModels({options:{}},{modelValue:{},modelModifiers:{}}),emits:mergeModels(["change"],["update:modelValue"]),setup(ee,{emit:ne}){const oe=ee,ae=ne,ie=useModel(ee,"modelValue"),se=computed({get(){return oe.options.findIndex(fe=>fe.value===ie.value)},set(fe){ie.value=oe.options[fe].value}});watch(ie,fe=>{fe&&ae("change",fe)});function de(fe){ie.value=oe.options[fe].value}return(fe,ve)=>{const be=_sfc_main$9;return openBlock(),createBlock(unref(me$1),{"selected-index":unref(se),onChange:de},{default:withCtx(()=>[createVNode(unref(pe$1),{class:"inline-flex select-none items-center justify-center rounded-md bg-stone-1 p-1 ring-1 ring-stone-2 dark-bg-stone-9 dark-ring-stone-8"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(fe.options,(ye,$e)=>(openBlock(),createBlock(unref(xe),{key:$e,as:"template"},{default:withCtx(({selected:_e})=>[createBaseVNode("button",{class:normalizeClass(["w-full inline-flex items-center justify-center gap-1 break-keep border-size-0 rounded-md bg-inherit px-2 py-1.5 text-sm text-dark ring-stone-2 ring-inset dark-text-white focus-outline-none focus-ring-2 dark-ring-stone-8",{"cursor-default bg-white dark-bg-dark-9":_e,"cursor-pointer opacity-50 hover-opacity-100":!_e}])},[ye.icon?(openBlock(),createBlock(be,{key:0,name:ye.icon,class:"flex-shrink-0"},null,8,["name"])):createCommentVNode("",!0),createTextVNode(" "+toDisplayString$1(ye.label),1)],2)]),_:2},1024))),128))]),_:1})]),_:1},8,["selected-index"])}}});function escapeRegExp(ee){return ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var sourcemapCodec_umd={exports:{}};(function(ee,ne){(function(oe,ae){ae(ne)})(commonjsGlobal,function(oe){const se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=new Uint8Array(64),fe=new Uint8Array(128);for(let Oe=0;Oe>>=1,Ie&&(Re=-2147483648|-Re),Ne[ke]+=Re,Ae}function _e(Oe,Ae,Ne){return Ae>=Ne?!1:Oe.charCodeAt(Ae)!==44}function Ee(Oe){Oe.sort(we)}function we(Oe,Ae){return Oe[0]-Ae[0]}function Pe(Oe){const Ae=new Int32Array(5),Ne=1024*16,ke=Ne-36,Re=new Uint8Array(Ne),Le=Re.subarray(0,ke);let Me=0,Ie="";for(let Fe=0;Fe0&&(Me===Ne&&(Ie+=ve.decode(Re),Me=0),Re[Me++]=59),je.length!==0){Ae[0]=0;for(let Be=0;Beke&&(Ie+=ve.decode(Le),Re.copyWithin(0,ke,Me),Me-=ke),Be>0&&(Re[Me++]=44),Me=Ce(Re,Me,Ae,He,0),He.length!==1&&(Me=Ce(Re,Me,Ae,He,1),Me=Ce(Re,Me,Ae,He,2),Me=Ce(Re,Me,Ae,He,3),He.length!==4&&(Me=Ce(Re,Me,Ae,He,4)))}}}return Ie+ve.decode(Re.subarray(0,Me))}function Ce(Oe,Ae,Ne,ke,Re){const Le=ke[Re];let Me=Le-Ne[Re];Ne[Re]=Le,Me=Me<0?-Me<<1|1:Me<<1;do{let Ie=Me&31;Me>>>=5,Me>0&&(Ie|=32),Oe[Ae++]=de[Ie]}while(Me>0);return Ae}oe.decode=be,oe.encode=Pe,Object.defineProperty(oe,"__esModule",{value:!0})})})(sourcemapCodec_umd,sourcemapCodec_umd.exports);const alphaPlaceholders=["%alpha",""];new RegExp(alphaPlaceholders.map(ee=>escapeRegExp(ee)).join("|"));function hex2rgba(ee=""){const ne=parseHexColor(ee);if(ne!=null){const{components:oe,alpha:ae}=ne;return ae==null?oe:[...oe,ae]}}function parseHexColor(ee){const[,ne]=ee.match(/^#([\da-f]+)$/i)||[];if(ne)switch(ne.length){case 3:case 4:const oe=Array.from(ne,ie=>Number.parseInt(ie,16)).map(ie=>ie<<4|ie);return{type:"rgb",components:oe.slice(0,3),alpha:ne.length===3?void 0:Math.round(oe[3]/255*100)/100};case 6:case 8:const ae=Number.parseInt(ne,16);return{type:"rgb",components:ne.length===6?[ae>>16&255,ae>>8&255,ae&255]:[ae>>24&255,ae>>16&255,ae>>8&255],alpha:ne.length===6?void 0:Math.round((ae&255)/255*100)/100}}}const themes={light:{"color-scheme":"light","--ui-primary":hex2rgba("#0f0f0f").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#0f0f0f","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#0f0f0f"},classic:{"color-scheme":"light","--ui-primary":hex2rgba("#409eff").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#409eff","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#409eff"},naive:{"color-scheme":"light","--ui-primary":hex2rgba("#18a058").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#18a058","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#18a058"},barbie:{"color-scheme":"light","--ui-primary":hex2rgba("#ff43bc").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#ff43bc","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#ff43bc"},winter:{"color-scheme":"light","--ui-primary":hex2rgba("#a6e4f8").join(" "),"--ui-text":hex2rgba("#3e4e68").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#3e4e68","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#3e4e68"},cyberpunk:{"color-scheme":"light","--ui-primary":hex2rgba("#dbcb00").join(" "),"--ui-text":hex2rgba("#fcfcfc").join(" "),"--g-bg":"#f2f2f2","--g-container-bg":"#fff","--g-border-color":"#DCDFE6","--g-navbar-bg":"#fff","--g-navbar-color":"#dbcb00","--g-tabbar-bg":"#fff","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#dbcb00"},dark:{"color-scheme":"dark","--ui-primary":hex2rgba("#e5e5e5").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#0a0a0a","--g-container-bg":"#141414","--g-border-color":"#15191e","--g-navbar-bg":"#141414","--g-navbar-color":"#e5e5e5","--g-tabbar-bg":"#141414","--g-tabbar-color":"#6f6f6f","--g-tabbar-active-color":"#e5e5e5"},dracula:{"color-scheme":"dark","--ui-primary":hex2rgba("#a6adbb").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#272935","--g-container-bg":"#1d232a","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#a6adbb","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#a6adbb"},night:{"color-scheme":"dark","--ui-primary":hex2rgba("#0ca6e9").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#0f1729","--g-container-bg":"#1d283a","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#0ca6e9","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#0ca6e9"},luxury:{"color-scheme":"dark","--ui-primary":hex2rgba("#dca54c").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#09090b","--g-container-bg":"#171618","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#dca54c","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#dca54c"},synthwave:{"color-scheme":"dark","--ui-primary":hex2rgba("#58c7f3").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#1a103c","--g-container-bg":"#221551","--g-border-color":"#191E24","--g-navbar-bg":"#141414","--g-navbar-color":"#58c7f3","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#58c7f3"},stone:{"color-scheme":"dark","--ui-primary":hex2rgba("#68d1bf").join(" "),"--ui-text":hex2rgba("#242b33").join(" "),"--g-bg":"#1b1917","--g-container-bg":"#282524","--g-border-color":"#43403c","--g-navbar-bg":"#141414","--g-navbar-color":"#68d1bf","--g-tabbar-bg":"#141414","--g-tabbar-color":"#414558","--g-tabbar-active-color":"#68d1bf"}},globalSettingsDefault={app:{lightTheme:"light",darkTheme:"dark",colorScheme:"light",enableMournMode:!1,enableColorAmblyopiaMode:!1,defaultLang:"",enablePermission:!1,enableProgress:!0,enableDynamicTitle:!1,enableBackTop:!0,storagePrefix:"fm_",enableWatermark:!1,enableErrorLog:!1},navbar:{enable:!1,mode:"static"},tabbar:{enable:!1,list:[]},mainPage:{enableTransition:!0,transitionMode:"fade"},copyright:{enable:!1,dates:"",company:"",website:"",beian:""}};function isObject$6(ee){return typeof ee=="object"&&!Array.isArray(ee)}function getTwoObjectDiff(ee,ne){if(!isObject$6(ee)||!isObject$6(ne))return ne;const oe={};for(const ae in ne){const ie=ee[ae],se=ne[ae];if(JSON.stringify(ie)!==JSON.stringify(se))if(isObject$6(ie)&&isObject$6(se)){const de=getTwoObjectDiff(ie,se);Object.keys(de).length>0&&(oe[ae]=de)}else oe[ae]=se}return oe}function mitt(ee){return{all:ee=ee||new Map,on:function(ne,oe){var ae=ee.get(ne);ae?ae.push(oe):ee.set(ne,[oe])},off:function(ne,oe){var ae=ee.get(ne);ae&&(oe?ae.splice(ae.indexOf(oe)>>>0,1):ee.set(ne,[]))},emit:function(ne,oe){var ae=ee.get(ne);ae&&ae.slice().map(function(ie){ie(oe)}),(ae=ee.get("*"))&&ae.slice().map(function(ie){ie(ne,oe)})}}}const eventBus=mitt();var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$d=Object.prototype,hasOwnProperty$d=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(ee){var ne=hasOwnProperty$d.call(ee,symToStringTag$1),oe=ee[symToStringTag$1];try{ee[symToStringTag$1]=void 0;var ae=!0}catch{}var ie=nativeObjectToString$1.call(ee);return ae&&(ne?ee[symToStringTag$1]=oe:delete ee[symToStringTag$1]),ie}var objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(ee){return nativeObjectToString.call(ee)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(ee){return ee==null?ee===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(ee)?getRawTag(ee):objectToString$1(ee)}function isObjectLike(ee){return ee!=null&&typeof ee=="object"}var isArray$3=Array.isArray;function isObject$5(ee){var ne=typeof ee;return ee!=null&&(ne=="object"||ne=="function")}function identity(ee){return ee}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(ee){if(!isObject$5(ee))return!1;var ne=baseGetTag(ee);return ne==funcTag$2||ne==genTag$1||ne==asyncTag||ne==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var ee=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return ee?"Symbol(src)_1."+ee:""}();function isMasked(ee){return!!maskSrcKey&&maskSrcKey in ee}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(ee){if(ee!=null){try{return funcToString$2.call(ee)}catch{}try{return ee+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$c=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(ee){if(!isObject$5(ee)||isMasked(ee))return!1;var ne=isFunction$3(ee)?reIsNative:reIsHostCtor;return ne.test(toSource(ee))}function getValue$1(ee,ne){return ee==null?void 0:ee[ne]}function getNative(ee,ne){var oe=getValue$1(ee,ne);return baseIsNative(oe)?oe:void 0}var WeakMap$1=getNative(root,"WeakMap"),objectCreate=Object.create,baseCreate=function(){function ee(){}return function(ne){if(!isObject$5(ne))return{};if(objectCreate)return objectCreate(ne);ee.prototype=ne;var oe=new ee;return ee.prototype=void 0,oe}}();function apply$1(ee,ne,oe){switch(oe.length){case 0:return ee.call(ne);case 1:return ee.call(ne,oe[0]);case 2:return ee.call(ne,oe[0],oe[1]);case 3:return ee.call(ne,oe[0],oe[1],oe[2])}return ee.apply(ne,oe)}function copyArray(ee,ne){var oe=-1,ae=ee.length;for(ne||(ne=Array(ae));++oe0){if(++ne>=HOT_COUNT)return arguments[0]}else ne=0;return ee.apply(void 0,arguments)}}function constant(ee){return function(){return ee}}var defineProperty=function(){try{var ee=getNative(Object,"defineProperty");return ee({},"",{}),ee}catch{}}(),baseSetToString=defineProperty?function(ee,ne){return defineProperty(ee,"toString",{configurable:!0,enumerable:!1,value:constant(ne),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(ee,ne){for(var oe=-1,ae=ee==null?0:ee.length;++oe-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=MAX_SAFE_INTEGER}function isArrayLike(ee){return ee!=null&&isLength(ee.length)&&!isFunction$3(ee)}function isIterateeCall(ee,ne,oe){if(!isObject$5(oe))return!1;var ae=typeof ne;return(ae=="number"?isArrayLike(oe)&&isIndex(ne,oe.length):ae=="string"&&ne in oe)?eq(oe[ne],ee):!1}function createAssigner(ee){return baseRest(function(ne,oe){var ae=-1,ie=oe.length,se=ie>1?oe[ie-1]:void 0,de=ie>2?oe[2]:void 0;for(se=ee.length>3&&typeof se=="function"?(ie--,se):void 0,de&&isIterateeCall(oe[0],oe[1],de)&&(se=ie<3?void 0:se,ie=1),ne=Object(ne);++ae-1}function listCacheSet(ee,ne){var oe=this.__data__,ae=assocIndexOf(oe,ee);return ae<0?(++this.size,oe.push([ee,ne])):oe[ae][1]=ne,this}function ListCache(ee){var ne=-1,oe=ee==null?0:ee.length;for(this.clear();++nene?Symbol.for(ee):Symbol(ee),generateFormatCacheKey=(ee,ne,oe)=>friendlyJSONstringify({l:ee,k:ne,s:oe}),friendlyJSONstringify=ee=>JSON.stringify(ee).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$1=ee=>typeof ee=="number"&&isFinite(ee),isDate$2=ee=>toTypeString(ee)==="[object Date]",isRegExp$1=ee=>toTypeString(ee)==="[object RegExp]",isEmptyObject=ee=>isPlainObject$2(ee)&&Object.keys(ee).length===0,assign$3=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function escapeHtml(ee){return ee.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$2=Object.prototype.hasOwnProperty;function hasOwn(ee,ne){return hasOwnProperty$2.call(ee,ne)}const isArray$2=Array.isArray,isFunction$2=ee=>typeof ee=="function",isString$2=ee=>typeof ee=="string",isBoolean$1=ee=>typeof ee=="boolean",isObject$4=ee=>ee!==null&&typeof ee=="object",isPromise$1=ee=>isObject$4(ee)&&isFunction$2(ee.then)&&isFunction$2(ee.catch),objectToString=Object.prototype.toString,toTypeString=ee=>objectToString.call(ee),isPlainObject$2=ee=>{if(!isObject$4(ee))return!1;const ne=Object.getPrototypeOf(ee);return ne===null||ne.constructor===Object},toDisplayString=ee=>ee==null?"":isArray$2(ee)||isPlainObject$2(ee)&&ee.toString===objectToString?JSON.stringify(ee,null,2):String(ee);function join$1(ee,ne=""){return ee.reduce((oe,ae,ie)=>ie===0?oe+ae:oe+ne+ae,"")}function incrementer(ee){let ne=ee;return()=>++ne}function warn(ee,ne){typeof console<"u"&&(console.warn("[intlify] "+ee),ne&&console.warn(ne.stack))}const isNotObjectOrIsArray=ee=>!isObject$4(ee)||isArray$2(ee);function deepCopy(ee,ne){if(isNotObjectOrIsArray(ee)||isNotObjectOrIsArray(ne))throw new Error("Invalid value");const oe=[{src:ee,des:ne}];for(;oe.length;){const{src:ae,des:ie}=oe.pop();Object.keys(ae).forEach(se=>{isNotObjectOrIsArray(ae[se])||isNotObjectOrIsArray(ie[se])?ie[se]=ae[se]:oe.push({src:ae[se],des:ie[se]})})}}/*! + * message-compiler v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function createPosition(ee,ne,oe){return{line:ee,column:ne,offset:oe}}function createLocation(ee,ne,oe){return{start:ee,end:ne}}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$3(ee,...ne){return ne.length===1&&isObject$3(ne[0])&&(ne=ne[0]),(!ne||!ne.hasOwnProperty)&&(ne={}),ee.replace(RE_ARGS,(oe,ae)=>ne.hasOwnProperty(ae)?ne[ae]:"")}const assign$2=Object.assign,isString$1=ee=>typeof ee=="string",isObject$3=ee=>ee!==null&&typeof ee=="object";function join(ee,ne=""){return ee.reduce((oe,ae,ie)=>ie===0?oe+ae:oe+ne+ae,"")}const CompileWarnCodes={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},warnMessages={[CompileWarnCodes.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function createCompileWarn(ee,ne,...oe){const ae=format$3(warnMessages[ee],...oe||[]),ie={message:String(ae),code:ee};return ne&&(ie.location=ne),ie}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(ee,ne,oe={}){const{domain:ae,messages:ie,args:se}=oe,de=format$3((ie||errorMessages)[ee]||"",...se||[]),fe=new SyntaxError(String(de));return fe.code=ee,ne&&(fe.location=ne),fe.domain=ae,fe}function defaultOnError(ee){throw ee}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=` +`,CHAR_LS="\u2028",CHAR_PS="\u2029";function createScanner(ee){const ne=ee;let oe=0,ae=1,ie=1,se=0;const de=Me=>ne[Me]===CHAR_CR&&ne[Me+1]===CHAR_LF,fe=Me=>ne[Me]===CHAR_LF,ve=Me=>ne[Me]===CHAR_PS,be=Me=>ne[Me]===CHAR_LS,ye=Me=>de(Me)||fe(Me)||ve(Me)||be(Me),$e=()=>oe,_e=()=>ae,Ee=()=>ie,we=()=>se,Pe=Me=>de(Me)||ve(Me)||be(Me)?CHAR_LF:ne[Me],Ce=()=>Pe(oe),Oe=()=>Pe(oe+se);function Ae(){return se=0,ye(oe)&&(ae++,ie=0),de(oe)&&oe++,oe++,ie++,ne[oe]}function Ne(){return de(oe+se)&&se++,se++,ne[oe+se]}function ke(){oe=0,ae=1,ie=1,se=0}function Re(Me=0){se=Me}function Le(){const Me=oe+se;for(;Me!==oe;)Ae();se=0}return{index:$e,line:_e,column:Ee,peekOffset:we,charAt:Pe,currentChar:Ce,currentPeek:Oe,next:Ae,peek:Ne,reset:ke,resetPeek:Re,skipToPeek:Le}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(ee,ne={}){const oe=ne.location!==!1,ae=createScanner(ee),ie=()=>ae.index(),se=()=>createPosition(ae.line(),ae.column(),ae.index()),de=se(),fe=ie(),ve={currentType:14,offset:fe,startLoc:de,endLoc:de,lastType:14,lastOffset:fe,lastStartLoc:de,lastEndLoc:de,braceNest:0,inLinked:!1,text:""},be=()=>ve,{onError:ye}=ne;function $e(qe,Qe,kt,...Yt){const nn=be();if(Qe.column+=kt,Qe.offset+=kt,ye){const en=oe?createLocation(nn.startLoc,Qe):null,Ft=createCompileError(qe,en,{domain:ERROR_DOMAIN$3,args:Yt});ye(Ft)}}function _e(qe,Qe,kt){qe.endLoc=se(),qe.currentType=Qe;const Yt={type:Qe};return oe&&(Yt.loc=createLocation(qe.startLoc,qe.endLoc)),kt!=null&&(Yt.value=kt),Yt}const Ee=qe=>_e(qe,14);function we(qe,Qe){return qe.currentChar()===Qe?(qe.next(),Qe):($e(CompileErrorCodes.EXPECTED_TOKEN,se(),0,Qe),"")}function Pe(qe){let Qe="";for(;qe.currentPeek()===CHAR_SP||qe.currentPeek()===CHAR_LF;)Qe+=qe.currentPeek(),qe.peek();return Qe}function Ce(qe){const Qe=Pe(qe);return qe.skipToPeek(),Qe}function Oe(qe){if(qe===EOF)return!1;const Qe=qe.charCodeAt(0);return Qe>=97&&Qe<=122||Qe>=65&&Qe<=90||Qe===95}function Ae(qe){if(qe===EOF)return!1;const Qe=qe.charCodeAt(0);return Qe>=48&&Qe<=57}function Ne(qe,Qe){const{currentType:kt}=Qe;if(kt!==2)return!1;Pe(qe);const Yt=Oe(qe.currentPeek());return qe.resetPeek(),Yt}function ke(qe,Qe){const{currentType:kt}=Qe;if(kt!==2)return!1;Pe(qe);const Yt=qe.currentPeek()==="-"?qe.peek():qe.currentPeek(),nn=Ae(Yt);return qe.resetPeek(),nn}function Re(qe,Qe){const{currentType:kt}=Qe;if(kt!==2)return!1;Pe(qe);const Yt=qe.currentPeek()===LITERAL_DELIMITER;return qe.resetPeek(),Yt}function Le(qe,Qe){const{currentType:kt}=Qe;if(kt!==8)return!1;Pe(qe);const Yt=qe.currentPeek()===".";return qe.resetPeek(),Yt}function Me(qe,Qe){const{currentType:kt}=Qe;if(kt!==9)return!1;Pe(qe);const Yt=Oe(qe.currentPeek());return qe.resetPeek(),Yt}function Ie(qe,Qe){const{currentType:kt}=Qe;if(!(kt===8||kt===12))return!1;Pe(qe);const Yt=qe.currentPeek()===":";return qe.resetPeek(),Yt}function Fe(qe,Qe){const{currentType:kt}=Qe;if(kt!==10)return!1;const Yt=()=>{const en=qe.currentPeek();return en==="{"?Oe(qe.peek()):en==="@"||en==="%"||en==="|"||en===":"||en==="."||en===CHAR_SP||!en?!1:en===CHAR_LF?(qe.peek(),Yt()):He(qe,!1)},nn=Yt();return qe.resetPeek(),nn}function je(qe){Pe(qe);const Qe=qe.currentPeek()==="|";return qe.resetPeek(),Qe}function Be(qe){const Qe=Pe(qe),kt=qe.currentPeek()==="%"&&qe.peek()==="{";return qe.resetPeek(),{isModulo:kt,hasSpace:Qe.length>0}}function He(qe,Qe=!0){const kt=(nn=!1,en="",Ft=!1)=>{const qt=qe.currentPeek();return qt==="{"?en==="%"?!1:nn:qt==="@"||!qt?en==="%"?!0:nn:qt==="%"?(qe.peek(),kt(nn,"%",!0)):qt==="|"?en==="%"||Ft?!0:!(en===CHAR_SP||en===CHAR_LF):qt===CHAR_SP?(qe.peek(),kt(!0,CHAR_SP,Ft)):qt===CHAR_LF?(qe.peek(),kt(!0,CHAR_LF,Ft)):!0},Yt=kt();return Qe&&qe.resetPeek(),Yt}function ot(qe,Qe){const kt=qe.currentChar();return kt===EOF?EOF:Qe(kt)?(qe.next(),kt):null}function Nt(qe){const Qe=qe.charCodeAt(0);return Qe>=97&&Qe<=122||Qe>=65&&Qe<=90||Qe>=48&&Qe<=57||Qe===95||Qe===36}function st(qe){return ot(qe,Nt)}function Ue(qe){const Qe=qe.charCodeAt(0);return Qe>=97&&Qe<=122||Qe>=65&&Qe<=90||Qe>=48&&Qe<=57||Qe===95||Qe===36||Qe===45}function Ze(qe){return ot(qe,Ue)}function Tt(qe){const Qe=qe.charCodeAt(0);return Qe>=48&&Qe<=57}function Vt(qe){return ot(qe,Tt)}function Ut(qe){const Qe=qe.charCodeAt(0);return Qe>=48&&Qe<=57||Qe>=65&&Qe<=70||Qe>=97&&Qe<=102}function We(qe){return ot(qe,Ut)}function Pt(qe){let Qe="",kt="";for(;Qe=Vt(qe);)kt+=Qe;return kt}function Mt(qe){Ce(qe);const Qe=qe.currentChar();return Qe!=="%"&&$e(CompileErrorCodes.EXPECTED_TOKEN,se(),0,Qe),qe.next(),"%"}function jt(qe){let Qe="";for(;;){const kt=qe.currentChar();if(kt==="{"||kt==="}"||kt==="@"||kt==="|"||!kt)break;if(kt==="%")if(He(qe))Qe+=kt,qe.next();else break;else if(kt===CHAR_SP||kt===CHAR_LF)if(He(qe))Qe+=kt,qe.next();else{if(je(qe))break;Qe+=kt,qe.next()}else Qe+=kt,qe.next()}return Qe}function Rt(qe){Ce(qe);let Qe="",kt="";for(;Qe=Ze(qe);)kt+=Qe;return qe.currentChar()===EOF&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),kt}function Wt(qe){Ce(qe);let Qe="";return qe.currentChar()==="-"?(qe.next(),Qe+=`-${Pt(qe)}`):Qe+=Pt(qe),qe.currentChar()===EOF&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Qe}function Ke(qe){return qe!==LITERAL_DELIMITER&&qe!==CHAR_LF}function It(qe){Ce(qe),we(qe,"'");let Qe="",kt="";for(;Qe=ot(qe,Ke);)Qe==="\\"?kt+=Lt(qe):kt+=Qe;const Yt=qe.currentChar();return Yt===CHAR_LF||Yt===EOF?($e(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,se(),0),Yt===CHAR_LF&&(qe.next(),we(qe,"'")),kt):(we(qe,"'"),kt)}function Lt(qe){const Qe=qe.currentChar();switch(Qe){case"\\":case"'":return qe.next(),`\\${Qe}`;case"u":return Dt(qe,Qe,4);case"U":return Dt(qe,Qe,6);default:return $e(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,se(),0,Qe),""}}function Dt(qe,Qe,kt){we(qe,Qe);let Yt="";for(let nn=0;nn{const Yt=qe.currentChar();return Yt==="{"||Yt==="%"||Yt==="@"||Yt==="|"||Yt==="("||Yt===")"||!Yt||Yt===CHAR_SP?kt:(kt+=Yt,qe.next(),Qe(kt))};return Qe("")}function Bt(qe){Ce(qe);const Qe=we(qe,"|");return Ce(qe),Qe}function Gt(qe,Qe){let kt=null;switch(qe.currentChar()){case"{":return Qe.braceNest>=1&&$e(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,se(),0),qe.next(),kt=_e(Qe,2,"{"),Ce(qe),Qe.braceNest++,kt;case"}":return Qe.braceNest>0&&Qe.currentType===2&&$e(CompileErrorCodes.EMPTY_PLACEHOLDER,se(),0),qe.next(),kt=_e(Qe,3,"}"),Qe.braceNest--,Qe.braceNest>0&&Ce(qe),Qe.inLinked&&Qe.braceNest===0&&(Qe.inLinked=!1),kt;case"@":return Qe.braceNest>0&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),kt=Kt(qe,Qe)||Ee(Qe),Qe.braceNest=0,kt;default:{let nn=!0,en=!0,Ft=!0;if(je(qe))return Qe.braceNest>0&&$e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),kt=_e(Qe,1,Bt(qe)),Qe.braceNest=0,Qe.inLinked=!1,kt;if(Qe.braceNest>0&&(Qe.currentType===5||Qe.currentType===6||Qe.currentType===7))return $e(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,se(),0),Qe.braceNest=0,Xt(qe,Qe);if(nn=Ne(qe,Qe))return kt=_e(Qe,5,Rt(qe)),Ce(qe),kt;if(en=ke(qe,Qe))return kt=_e(Qe,6,Wt(qe)),Ce(qe),kt;if(Ft=Re(qe,Qe))return kt=_e(Qe,7,It(qe)),Ce(qe),kt;if(!nn&&!en&&!Ft)return kt=_e(Qe,13,Zt(qe)),$e(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,se(),0,kt.value),Ce(qe),kt;break}}return kt}function Kt(qe,Qe){const{currentType:kt}=Qe;let Yt=null;const nn=qe.currentChar();switch((kt===8||kt===9||kt===12||kt===10)&&(nn===CHAR_LF||nn===CHAR_SP)&&$e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),nn){case"@":return qe.next(),Yt=_e(Qe,8,"@"),Qe.inLinked=!0,Yt;case".":return Ce(qe),qe.next(),_e(Qe,9,".");case":":return Ce(qe),qe.next(),_e(Qe,10,":");default:return je(qe)?(Yt=_e(Qe,1,Bt(qe)),Qe.braceNest=0,Qe.inLinked=!1,Yt):Le(qe,Qe)||Ie(qe,Qe)?(Ce(qe),Kt(qe,Qe)):Me(qe,Qe)?(Ce(qe),_e(Qe,12,Xe(qe))):Fe(qe,Qe)?(Ce(qe),nn==="{"?Gt(qe,Qe)||Yt:_e(Qe,11,nt(qe))):(kt===8&&$e(CompileErrorCodes.INVALID_LINKED_FORMAT,se(),0),Qe.braceNest=0,Qe.inLinked=!1,Xt(qe,Qe))}}function Xt(qe,Qe){let kt={type:14};if(Qe.braceNest>0)return Gt(qe,Qe)||Ee(Qe);if(Qe.inLinked)return Kt(qe,Qe)||Ee(Qe);switch(qe.currentChar()){case"{":return Gt(qe,Qe)||Ee(Qe);case"}":return $e(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,se(),0),qe.next(),_e(Qe,3,"}");case"@":return Kt(qe,Qe)||Ee(Qe);default:{if(je(qe))return kt=_e(Qe,1,Bt(qe)),Qe.braceNest=0,Qe.inLinked=!1,kt;const{isModulo:nn,hasSpace:en}=Be(qe);if(nn)return en?_e(Qe,0,jt(qe)):_e(Qe,4,Mt(qe));if(He(qe))return _e(Qe,0,jt(qe));break}}return kt}function Qt(){const{currentType:qe,offset:Qe,startLoc:kt,endLoc:Yt}=ve;return ve.lastType=qe,ve.lastOffset=Qe,ve.lastStartLoc=kt,ve.lastEndLoc=Yt,ve.offset=ie(),ve.startLoc=se(),ae.currentChar()===EOF?_e(ve,14):Xt(ae,ve)}return{nextToken:Qt,currentOffset:ie,currentPosition:se,context:be}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(ee,ne,oe){switch(ee){case"\\\\":return"\\";case"\\'":return"'";default:{const ae=parseInt(ne||oe,16);return ae<=55295||ae>=57344?String.fromCodePoint(ae):"�"}}}function createParser(ee={}){const ne=ee.location!==!1,{onError:oe,onWarn:ae}=ee;function ie(Ne,ke,Re,Le,...Me){const Ie=Ne.currentPosition();if(Ie.offset+=Le,Ie.column+=Le,oe){const Fe=ne?createLocation(Re,Ie):null,je=createCompileError(ke,Fe,{domain:ERROR_DOMAIN$2,args:Me});oe(je)}}function se(Ne,ke,Re,Le,...Me){const Ie=Ne.currentPosition();if(Ie.offset+=Le,Ie.column+=Le,ae){const Fe=ne?createLocation(Re,Ie):null;ae(createCompileWarn(ke,Fe,Me))}}function de(Ne,ke,Re){const Le={type:Ne};return ne&&(Le.start=ke,Le.end=ke,Le.loc={start:Re,end:Re}),Le}function fe(Ne,ke,Re,Le){ne&&(Ne.end=ke,Ne.loc&&(Ne.loc.end=Re))}function ve(Ne,ke){const Re=Ne.context(),Le=de(3,Re.offset,Re.startLoc);return Le.value=ke,fe(Le,Ne.currentOffset(),Ne.currentPosition()),Le}function be(Ne,ke){const Re=Ne.context(),{lastOffset:Le,lastStartLoc:Me}=Re,Ie=de(5,Le,Me);return Ie.index=parseInt(ke,10),Ne.nextToken(),fe(Ie,Ne.currentOffset(),Ne.currentPosition()),Ie}function ye(Ne,ke,Re){const Le=Ne.context(),{lastOffset:Me,lastStartLoc:Ie}=Le,Fe=de(4,Me,Ie);return Fe.key=ke,Re===!0&&(Fe.modulo=!0),Ne.nextToken(),fe(Fe,Ne.currentOffset(),Ne.currentPosition()),Fe}function $e(Ne,ke){const Re=Ne.context(),{lastOffset:Le,lastStartLoc:Me}=Re,Ie=de(9,Le,Me);return Ie.value=ke.replace(KNOWN_ESCAPES,fromEscapeSequence),Ne.nextToken(),fe(Ie,Ne.currentOffset(),Ne.currentPosition()),Ie}function _e(Ne){const ke=Ne.nextToken(),Re=Ne.context(),{lastOffset:Le,lastStartLoc:Me}=Re,Ie=de(8,Le,Me);return ke.type!==12?(ie(Ne,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,Re.lastStartLoc,0),Ie.value="",fe(Ie,Le,Me),{nextConsumeToken:ke,node:Ie}):(ke.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Re.lastStartLoc,0,getTokenCaption(ke)),Ie.value=ke.value||"",fe(Ie,Ne.currentOffset(),Ne.currentPosition()),{node:Ie})}function Ee(Ne,ke){const Re=Ne.context(),Le=de(7,Re.offset,Re.startLoc);return Le.value=ke,fe(Le,Ne.currentOffset(),Ne.currentPosition()),Le}function we(Ne){const ke=Ne.context(),Re=de(6,ke.offset,ke.startLoc);let Le=Ne.nextToken();if(Le.type===9){const Me=_e(Ne);Re.modifier=Me.node,Le=Me.nextConsumeToken||Ne.nextToken()}switch(Le.type!==10&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Le)),Le=Ne.nextToken(),Le.type===2&&(Le=Ne.nextToken()),Le.type){case 11:Le.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Le)),Re.key=Ee(Ne,Le.value||"");break;case 5:Le.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Le)),Re.key=ye(Ne,Le.value||"");break;case 6:Le.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Le)),Re.key=be(Ne,Le.value||"");break;case 7:Le.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(Le)),Re.key=$e(Ne,Le.value||"");break;default:{ie(Ne,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,ke.lastStartLoc,0);const Me=Ne.context(),Ie=de(7,Me.offset,Me.startLoc);return Ie.value="",fe(Ie,Me.offset,Me.startLoc),Re.key=Ie,fe(Re,Me.offset,Me.startLoc),{nextConsumeToken:Le,node:Re}}}return fe(Re,Ne.currentOffset(),Ne.currentPosition()),{node:Re}}function Pe(Ne){const ke=Ne.context(),Re=ke.currentType===1?Ne.currentOffset():ke.offset,Le=ke.currentType===1?ke.endLoc:ke.startLoc,Me=de(2,Re,Le);Me.items=[];let Ie=null,Fe=null;do{const He=Ie||Ne.nextToken();switch(Ie=null,He.type){case 0:He.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(He)),Me.items.push(ve(Ne,He.value||""));break;case 6:He.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(He)),Me.items.push(be(Ne,He.value||""));break;case 4:Fe=!0;break;case 5:He.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(He)),Me.items.push(ye(Ne,He.value||"",!!Fe)),Fe&&(se(Ne,CompileWarnCodes.USE_MODULO_SYNTAX,ke.lastStartLoc,0,getTokenCaption(He)),Fe=null);break;case 7:He.value==null&&ie(Ne,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,ke.lastStartLoc,0,getTokenCaption(He)),Me.items.push($e(Ne,He.value||""));break;case 8:{const ot=we(Ne);Me.items.push(ot.node),Ie=ot.nextConsumeToken||null;break}}}while(ke.currentType!==14&&ke.currentType!==1);const je=ke.currentType===1?ke.lastOffset:Ne.currentOffset(),Be=ke.currentType===1?ke.lastEndLoc:Ne.currentPosition();return fe(Me,je,Be),Me}function Ce(Ne,ke,Re,Le){const Me=Ne.context();let Ie=Le.items.length===0;const Fe=de(1,ke,Re);Fe.cases=[],Fe.cases.push(Le);do{const je=Pe(Ne);Ie||(Ie=je.items.length===0),Fe.cases.push(je)}while(Me.currentType!==14);return Ie&&ie(Ne,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,Re,0),fe(Fe,Ne.currentOffset(),Ne.currentPosition()),Fe}function Oe(Ne){const ke=Ne.context(),{offset:Re,startLoc:Le}=ke,Me=Pe(Ne);return ke.currentType===14?Me:Ce(Ne,Re,Le,Me)}function Ae(Ne){const ke=createTokenizer(Ne,assign$2({},ee)),Re=ke.context(),Le=de(0,Re.offset,Re.startLoc);return ne&&Le.loc&&(Le.loc.source=Ne),Le.body=Oe(ke),ee.onCacheKey&&(Le.cacheKey=ee.onCacheKey(Ne)),Re.currentType!==14&&ie(ke,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,Re.lastStartLoc,0,Ne[Re.offset]||""),fe(Le,ke.currentOffset(),ke.currentPosition()),Le}return{parse:Ae}}function getTokenCaption(ee){if(ee.type===14)return"EOF";const ne=(ee.value||"").replace(/\r?\n/gu,"\\n");return ne.length>10?ne.slice(0,9)+"…":ne}function createTransformer(ee,ne={}){const oe={ast:ee,helpers:new Set};return{context:()=>oe,helper:se=>(oe.helpers.add(se),se)}}function traverseNodes(ee,ne){for(let oe=0;oeoptimizeMessageNode(oe)),ee}function optimizeMessageNode(ee){if(ee.items.length===1){const ne=ee.items[0];(ne.type===3||ne.type===9)&&(ee.static=ne.value,delete ne.value)}else{const ne=[];for(let oe=0;oefe;function be(Ce,Oe){fe.code+=Ce}function ye(Ce,Oe=!0){const Ae=Oe?ie:"";be(se?Ae+" ".repeat(Ce):Ae)}function $e(Ce=!0){const Oe=++fe.indentLevel;Ce&&ye(Oe)}function _e(Ce=!0){const Oe=--fe.indentLevel;Ce&&ye(Oe)}function Ee(){ye(fe.indentLevel)}return{context:ve,push:be,indent:$e,deindent:_e,newline:Ee,helper:Ce=>`_${Ce}`,needIndent:()=>fe.needIndent}}function generateLinkedNode(ee,ne){const{helper:oe}=ee;ee.push(`${oe("linked")}(`),generateNode(ee,ne.key),ne.modifier?(ee.push(", "),generateNode(ee,ne.modifier),ee.push(", _type")):ee.push(", undefined, _type"),ee.push(")")}function generateMessageNode(ee,ne){const{helper:oe,needIndent:ae}=ee;ee.push(`${oe("normalize")}([`),ee.indent(ae());const ie=ne.items.length;for(let se=0;se1){ee.push(`${oe("plural")}([`),ee.indent(ae());const ie=ne.cases.length;for(let se=0;se{const oe=isString$1(ne.mode)?ne.mode:"normal",ae=isString$1(ne.filename)?ne.filename:"message.intl",ie=!!ne.sourceMap,se=ne.breakLineCode!=null?ne.breakLineCode:oe==="arrow"?";":` +`,de=ne.needIndent?ne.needIndent:oe!=="arrow",fe=ee.helpers||[],ve=createCodeGenerator(ee,{mode:oe,filename:ae,sourceMap:ie,breakLineCode:se,needIndent:de});ve.push(oe==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),ve.indent(de),fe.length>0&&(ve.push(`const { ${join(fe.map($e=>`${$e}: _${$e}`),", ")} } = ctx`),ve.newline()),ve.push("return "),generateNode(ve,ee),ve.deindent(de),ve.push("}"),delete ee.helpers;const{code:be,map:ye}=ve.context();return{ast:ee,code:be,map:ye?ye.toJSON():void 0}};function baseCompile$1(ee,ne={}){const oe=assign$2({},ne),ae=!!oe.jit,ie=!!oe.minify,se=oe.optimize==null?!0:oe.optimize,fe=createParser(oe).parse(ee);return ae?(se&&optimize(fe),ie&&minify(fe),{ast:fe,code:""}):(transform(fe,oe),generate(fe,oe))}/*! + * core-base v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(ee){return literalValueRE.test(ee)}function stripQuotes(ee){const ne=ee.charCodeAt(0),oe=ee.charCodeAt(ee.length-1);return ne===oe&&(ne===34||ne===39)?ee.slice(1,-1):ee}function getPathCharType(ee){if(ee==null)return"o";switch(ee.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return ee;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(ee){const ne=ee.trim();return ee.charAt(0)==="0"&&isNaN(parseInt(ee))?!1:isLiteral(ne)?stripQuotes(ne):"*"+ne}function parse(ee){const ne=[];let oe=-1,ae=0,ie=0,se,de,fe,ve,be,ye,$e;const _e=[];_e[0]=()=>{de===void 0?de=fe:de+=fe},_e[1]=()=>{de!==void 0&&(ne.push(de),de=void 0)},_e[2]=()=>{_e[0](),ie++},_e[3]=()=>{if(ie>0)ie--,ae=4,_e[0]();else{if(ie=0,de===void 0||(de=formatSubPath(de),de===!1))return!1;_e[1]()}};function Ee(){const we=ee[oe+1];if(ae===5&&we==="'"||ae===6&&we==='"')return oe++,fe="\\"+we,_e[0](),!0}for(;ae!==null;)if(oe++,se=ee[oe],!(se==="\\"&&Ee())){if(ve=getPathCharType(se),$e=pathStateMachine[ae],be=$e[ve]||$e.l||8,be===8||(ae=be[0],be[1]!==void 0&&(ye=_e[be[1]],ye&&(fe=se,ye()===!1))))return;if(ae===7)return ne}}const cache=new Map;function resolveWithKeyValue(ee,ne){return isObject$4(ee)?ee[ne]:null}function resolveValue(ee,ne){if(!isObject$4(ee))return null;let oe=cache.get(ne);if(oe||(oe=parse(ne),oe&&cache.set(ne,oe)),!oe)return null;const ae=oe.length;let ie=ee,se=0;for(;seee,DEFAULT_MESSAGE=ee=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=ee=>ee.length===0?"":join$1(ee),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(ee,ne){return ee=Math.abs(ee),ne===2?ee?ee>1?1:0:1:ee?Math.min(ee,2):0}function getPluralIndex(ee){const ne=isNumber$1(ee.pluralIndex)?ee.pluralIndex:-1;return ee.named&&(isNumber$1(ee.named.count)||isNumber$1(ee.named.n))?isNumber$1(ee.named.count)?ee.named.count:isNumber$1(ee.named.n)?ee.named.n:ne:ne}function normalizeNamed(ee,ne){ne.count||(ne.count=ee),ne.n||(ne.n=ee)}function createMessageContext(ee={}){const ne=ee.locale,oe=getPluralIndex(ee),ae=isObject$4(ee.pluralRules)&&isString$2(ne)&&isFunction$2(ee.pluralRules[ne])?ee.pluralRules[ne]:pluralDefault,ie=isObject$4(ee.pluralRules)&&isString$2(ne)&&isFunction$2(ee.pluralRules[ne])?pluralDefault:void 0,se=Oe=>Oe[ae(oe,Oe.length,ie)],de=ee.list||[],fe=Oe=>de[Oe],ve=ee.named||{};isNumber$1(ee.pluralIndex)&&normalizeNamed(oe,ve);const be=Oe=>ve[Oe];function ye(Oe){const Ae=isFunction$2(ee.messages)?ee.messages(Oe):isObject$4(ee.messages)?ee.messages[Oe]:!1;return Ae||(ee.parent?ee.parent.message(Oe):DEFAULT_MESSAGE)}const $e=Oe=>ee.modifiers?ee.modifiers[Oe]:DEFAULT_MODIFIER,_e=isPlainObject$2(ee.processor)&&isFunction$2(ee.processor.normalize)?ee.processor.normalize:DEFAULT_NORMALIZE,Ee=isPlainObject$2(ee.processor)&&isFunction$2(ee.processor.interpolate)?ee.processor.interpolate:DEFAULT_INTERPOLATE,we=isPlainObject$2(ee.processor)&&isString$2(ee.processor.type)?ee.processor.type:DEFAULT_MESSAGE_DATA_TYPE,Ce={list:fe,named:be,plural:se,linked:(Oe,...Ae)=>{const[Ne,ke]=Ae;let Re="text",Le="";Ae.length===1?isObject$4(Ne)?(Le=Ne.modifier||Le,Re=Ne.type||Re):isString$2(Ne)&&(Le=Ne||Le):Ae.length===2&&(isString$2(Ne)&&(Le=Ne||Le),isString$2(ke)&&(Re=ke||Re));const Me=ye(Oe)(Ce),Ie=Re==="vnode"&&isArray$2(Me)&&Le?Me[0]:Me;return Le?$e(Le)(Ie,Re):Ie},message:ye,type:we,interpolate:Ee,normalize:_e,values:assign$3({},de,ve)};return Ce}let devtools=null;function setDevToolsHook(ee){devtools=ee}function initI18nDevTools(ee,ne,oe){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:ee,version:ne,meta:oe})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(ee){return ne=>devtools&&devtools.emit(ee,ne)}const code$1$1=CompileWarnCodes.__EXTEND_POINT__,inc$1$1=incrementer(code$1$1),CoreWarnCodes={NOT_FOUND_KEY:code$1$1,FALLBACK_TO_TRANSLATE:inc$1$1(),CANNOT_FORMAT_NUMBER:inc$1$1(),FALLBACK_TO_NUMBER_FORMAT:inc$1$1(),CANNOT_FORMAT_DATE:inc$1$1(),FALLBACK_TO_DATE_FORMAT:inc$1$1(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:inc$1$1(),__EXTEND_POINT__:inc$1$1()},code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:inc$2(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:inc$2(),NOT_SUPPORT_LOCALE_TYPE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(ee){return createCompileError(ee,null,void 0)}function getLocale(ee,ne){return ne.locale!=null?resolveLocale(ne.locale):resolveLocale(ee.locale)}let _resolveLocale;function resolveLocale(ee){if(isString$2(ee))return ee;if(isFunction$2(ee)){if(ee.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(ee.constructor.name==="Function"){const ne=ee();if(isPromise$1(ne))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=ne}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(ee,ne,oe){return[...new Set([oe,...isArray$2(ne)?ne:isObject$4(ne)?Object.keys(ne):isString$2(ne)?[ne]:[oe]])]}function fallbackWithLocaleChain(ee,ne,oe){const ae=isString$2(oe)?oe:DEFAULT_LOCALE,ie=ee;ie.__localeChainCache||(ie.__localeChainCache=new Map);let se=ie.__localeChainCache.get(ae);if(!se){se=[];let de=[oe];for(;isArray$2(de);)de=appendBlockToChain(se,de,ne);const fe=isArray$2(ne)||!isPlainObject$2(ne)?ne:ne.default?ne.default:null;de=isString$2(fe)?[fe]:fe,isArray$2(de)&&appendBlockToChain(se,de,!1),ie.__localeChainCache.set(ae,se)}return se}function appendBlockToChain(ee,ne,oe){let ae=!0;for(let ie=0;ie`${ee.charAt(0).toLocaleUpperCase()}${ee.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(ee,ne)=>ne==="text"&&isString$2(ee)?ee.toUpperCase():ne==="vnode"&&isObject$4(ee)&&"__v_isVNode"in ee?ee.children.toUpperCase():ee,lower:(ee,ne)=>ne==="text"&&isString$2(ee)?ee.toLowerCase():ne==="vnode"&&isObject$4(ee)&&"__v_isVNode"in ee?ee.children.toLowerCase():ee,capitalize:(ee,ne)=>ne==="text"&&isString$2(ee)?capitalize(ee):ne==="vnode"&&isObject$4(ee)&&"__v_isVNode"in ee?capitalize(ee.children):ee}}let _compiler;function registerMessageCompiler(ee){_compiler=ee}let _resolver;function registerMessageResolver(ee){_resolver=ee}let _fallbacker;function registerLocaleFallbacker(ee){_fallbacker=ee}let _additionalMeta=null;const setAdditionalMeta=ee=>{_additionalMeta=ee},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=ee=>{_fallbackContext=ee},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(ee={}){const ne=isFunction$2(ee.onWarn)?ee.onWarn:warn,oe=isString$2(ee.version)?ee.version:VERSION$2,ae=isString$2(ee.locale)||isFunction$2(ee.locale)?ee.locale:DEFAULT_LOCALE,ie=isFunction$2(ae)?DEFAULT_LOCALE:ae,se=isArray$2(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||isString$2(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:ie,de=isPlainObject$2(ee.messages)?ee.messages:{[ie]:{}},fe=isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[ie]:{}},ve=isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[ie]:{}},be=assign$3({},ee.modifiers||{},getDefaultLinkedModifiers()),ye=ee.pluralRules||{},$e=isFunction$2(ee.missing)?ee.missing:null,_e=isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,Ee=isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,we=!!ee.fallbackFormat,Pe=!!ee.unresolving,Ce=isFunction$2(ee.postTranslation)?ee.postTranslation:null,Oe=isPlainObject$2(ee.processor)?ee.processor:null,Ae=isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,Ne=!!ee.escapeParameter,ke=isFunction$2(ee.messageCompiler)?ee.messageCompiler:_compiler,Re=isFunction$2(ee.messageResolver)?ee.messageResolver:_resolver||resolveWithKeyValue,Le=isFunction$2(ee.localeFallbacker)?ee.localeFallbacker:_fallbacker||fallbackWithSimple,Me=isObject$4(ee.fallbackContext)?ee.fallbackContext:void 0,Ie=ee,Fe=isObject$4(Ie.__datetimeFormatters)?Ie.__datetimeFormatters:new Map,je=isObject$4(Ie.__numberFormatters)?Ie.__numberFormatters:new Map,Be=isObject$4(Ie.__meta)?Ie.__meta:{};_cid++;const He={version:oe,cid:_cid,locale:ae,fallbackLocale:se,messages:de,modifiers:be,pluralRules:ye,missing:$e,missingWarn:_e,fallbackWarn:Ee,fallbackFormat:we,unresolving:Pe,postTranslation:Ce,processor:Oe,warnHtmlMessage:Ae,escapeParameter:Ne,messageCompiler:ke,messageResolver:Re,localeFallbacker:Le,fallbackContext:Me,onWarn:ne,__meta:Be};return He.datetimeFormats=fe,He.numberFormats=ve,He.__datetimeFormatters=Fe,He.__numberFormatters=je,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(He,oe,Be),He}function handleMissing(ee,ne,oe,ae,ie){const{missing:se,onWarn:de}=ee;if(se!==null){const fe=se(ee,oe,ne,ie);return isString$2(fe)?fe:ne}else return ne}function updateFallbackLocale(ee,ne,oe){const ae=ee;ae.__localeChainCache=new Map,ee.localeFallbacker(ee,oe,ne)}function isAlmostSameLocale(ee,ne){return ee===ne?!1:ee.split("-")[0]===ne.split("-")[0]}function isImplicitFallback(ee,ne){const oe=ne.indexOf(ee);if(oe===-1)return!1;for(let ae=oe+1;aeformatParts(oe,ee)}function formatParts(ee,ne){const oe=ne.b||ne.body;if((oe.t||oe.type)===1){const ae=oe,ie=ae.c||ae.cases;return ee.plural(ie.reduce((se,de)=>[...se,formatMessageParts(ee,de)],[]))}else return formatMessageParts(ee,oe)}function formatMessageParts(ee,ne){const oe=ne.s||ne.static;if(oe)return ee.type==="text"?oe:ee.normalize([oe]);{const ae=(ne.i||ne.items).reduce((ie,se)=>[...ie,formatMessagePart(ee,se)],[]);return ee.normalize(ae)}}function formatMessagePart(ee,ne){const oe=ne.t||ne.type;switch(oe){case 3:{const ae=ne;return ae.v||ae.value}case 9:{const ae=ne;return ae.v||ae.value}case 4:{const ae=ne;return ee.interpolate(ee.named(ae.k||ae.key))}case 5:{const ae=ne;return ee.interpolate(ee.list(ae.i!=null?ae.i:ae.index))}case 6:{const ae=ne,ie=ae.m||ae.modifier;return ee.linked(formatMessagePart(ee,ae.k||ae.key),ie?formatMessagePart(ee,ie):void 0,ee.type)}case 7:{const ae=ne;return ae.v||ae.value}case 8:{const ae=ne;return ae.v||ae.value}default:throw new Error(`unhandled node type on format message part: ${oe}`)}}const defaultOnCacheKey=ee=>ee;let compileCache=Object.create(null);const isMessageAST=ee=>isObject$4(ee)&&(ee.t===0||ee.type===0)&&("b"in ee||"body"in ee);function baseCompile(ee,ne={}){let oe=!1;const ae=ne.onError||defaultOnError;return ne.onError=ie=>{oe=!0,ae(ie)},{...baseCompile$1(ee,ne),detectError:oe}}function compile(ee,ne){if(isString$2(ee)){isBoolean$1(ne.warnHtmlMessage)&&ne.warnHtmlMessage;const ae=(ne.onCacheKey||defaultOnCacheKey)(ee),ie=compileCache[ae];if(ie)return ie;const{ast:se,detectError:de}=baseCompile(ee,{...ne,location:!1,jit:!0}),fe=format$2(se);return de?fe:compileCache[ae]=fe}else{const oe=ee.cacheKey;if(oe){const ae=compileCache[oe];return ae||(compileCache[oe]=format$2(ee))}else return format$2(ee)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=ee=>isFunction$2(ee);function translate(ee,...ne){const{fallbackFormat:oe,postTranslation:ae,unresolving:ie,messageCompiler:se,fallbackLocale:de,messages:fe}=ee,[ve,be]=parseTranslateArgs(...ne),ye=isBoolean$1(be.missingWarn)?be.missingWarn:ee.missingWarn,$e=isBoolean$1(be.fallbackWarn)?be.fallbackWarn:ee.fallbackWarn,_e=isBoolean$1(be.escapeParameter)?be.escapeParameter:ee.escapeParameter,Ee=!!be.resolvedMessage,we=isString$2(be.default)||isBoolean$1(be.default)?isBoolean$1(be.default)?se?ve:()=>ve:be.default:oe?se?ve:()=>ve:"",Pe=oe||we!=="",Ce=getLocale(ee,be);_e&&escapeParams(be);let[Oe,Ae,Ne]=Ee?[ve,Ce,fe[Ce]||{}]:resolveMessageFormat(ee,ve,Ce,de,$e,ye),ke=Oe,Re=ve;if(!Ee&&!(isString$2(ke)||isMessageAST(ke)||isMessageFunction(ke))&&Pe&&(ke=we,Re=ke),!Ee&&(!(isString$2(ke)||isMessageAST(ke)||isMessageFunction(ke))||!isString$2(Ae)))return ie?NOT_REOSLVED:ve;let Le=!1;const Me=()=>{Le=!0},Ie=isMessageFunction(ke)?ke:compileMessageFormat(ee,ve,Ae,ke,Re,Me);if(Le)return ke;const Fe=getMessageContextOptions(ee,Ae,Ne,be),je=createMessageContext(Fe),Be=evaluateMessage(ee,Ie,je),He=ae?ae(Be,ve):Be;if(__INTLIFY_PROD_DEVTOOLS__){const ot={timestamp:Date.now(),key:isString$2(ve)?ve:isMessageFunction(ke)?ke.key:"",locale:Ae||(isMessageFunction(ke)?ke.locale:""),format:isString$2(ke)?ke:isMessageFunction(ke)?ke.source:"",message:He};ot.meta=assign$3({},ee.__meta,getAdditionalMeta()||{}),translateDevTools(ot)}return He}function escapeParams(ee){isArray$2(ee.list)?ee.list=ee.list.map(ne=>isString$2(ne)?escapeHtml(ne):ne):isObject$4(ee.named)&&Object.keys(ee.named).forEach(ne=>{isString$2(ee.named[ne])&&(ee.named[ne]=escapeHtml(ee.named[ne]))})}function resolveMessageFormat(ee,ne,oe,ae,ie,se){const{messages:de,onWarn:fe,messageResolver:ve,localeFallbacker:be}=ee,ye=be(ee,ae,oe);let $e={},_e,Ee=null;const we="translate";for(let Pe=0;Peae;return be.locale=oe,be.key=ne,be}const ve=de(ae,getCompileContext(ee,oe,ie,ae,fe,se));return ve.locale=oe,ve.key=ne,ve.source=ae,ve}function evaluateMessage(ee,ne,oe){return ne(oe)}function parseTranslateArgs(...ee){const[ne,oe,ae]=ee,ie={};if(!isString$2(ne)&&!isNumber$1(ne)&&!isMessageFunction(ne)&&!isMessageAST(ne))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const se=isNumber$1(ne)?String(ne):(isMessageFunction(ne),ne);return isNumber$1(oe)?ie.plural=oe:isString$2(oe)?ie.default=oe:isPlainObject$2(oe)&&!isEmptyObject(oe)?ie.named=oe:isArray$2(oe)&&(ie.list=oe),isNumber$1(ae)?ie.plural=ae:isString$2(ae)?ie.default=ae:isPlainObject$2(ae)&&assign$3(ie,ae),[se,ie]}function getCompileContext(ee,ne,oe,ae,ie,se){return{locale:ne,key:oe,warnHtmlMessage:ie,onError:de=>{throw se&&se(de),de},onCacheKey:de=>generateFormatCacheKey(ne,oe,de)}}function getMessageContextOptions(ee,ne,oe,ae){const{modifiers:ie,pluralRules:se,messageResolver:de,fallbackLocale:fe,fallbackWarn:ve,missingWarn:be,fallbackContext:ye}=ee,_e={locale:ne,modifiers:ie,pluralRules:se,messages:Ee=>{let we=de(oe,Ee);if(we==null&&ye){const[,,Pe]=resolveMessageFormat(ye,Ee,ne,fe,ve,be);we=de(Pe,Ee)}if(isString$2(we)||isMessageAST(we)){let Pe=!1;const Oe=compileMessageFormat(ee,Ee,ne,we,Ee,()=>{Pe=!0});return Pe?NOOP_MESSAGE_FUNCTION:Oe}else return isMessageFunction(we)?we:NOOP_MESSAGE_FUNCTION}};return ee.processor&&(_e.processor=ee.processor),ae.list&&(_e.list=ae.list),ae.named&&(_e.named=ae.named),isNumber$1(ae.plural)&&(_e.pluralIndex=ae.plural),_e}function datetime(ee,...ne){const{datetimeFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:se,localeFallbacker:de}=ee,{__datetimeFormatters:fe}=ee,[ve,be,ye,$e]=parseDateTimeArgs(...ne),_e=isBoolean$1(ye.missingWarn)?ye.missingWarn:ee.missingWarn;isBoolean$1(ye.fallbackWarn)?ye.fallbackWarn:ee.fallbackWarn;const Ee=!!ye.part,we=getLocale(ee,ye),Pe=de(ee,ie,we);if(!isString$2(ve)||ve==="")return new Intl.DateTimeFormat(we,$e).format(be);let Ce={},Oe,Ae=null;const Ne="datetime format";for(let Le=0;Le{DATETIME_FORMAT_OPTIONS_KEYS.includes(ve)?de[ve]=oe[ve]:se[ve]=oe[ve]}),isString$2(ae)?se.locale=ae:isPlainObject$2(ae)&&(de=ae),isPlainObject$2(ie)&&(de=ie),[se.key||"",fe,se,de]}function clearDateTimeFormat(ee,ne,oe){const ae=ee;for(const ie in oe){const se=`${ne}__${ie}`;ae.__datetimeFormatters.has(se)&&ae.__datetimeFormatters.delete(se)}}function number(ee,...ne){const{numberFormats:oe,unresolving:ae,fallbackLocale:ie,onWarn:se,localeFallbacker:de}=ee,{__numberFormatters:fe}=ee,[ve,be,ye,$e]=parseNumberArgs(...ne),_e=isBoolean$1(ye.missingWarn)?ye.missingWarn:ee.missingWarn;isBoolean$1(ye.fallbackWarn)?ye.fallbackWarn:ee.fallbackWarn;const Ee=!!ye.part,we=getLocale(ee,ye),Pe=de(ee,ie,we);if(!isString$2(ve)||ve==="")return new Intl.NumberFormat(we,$e).format(be);let Ce={},Oe,Ae=null;const Ne="number format";for(let Le=0;Le{NUMBER_FORMAT_OPTIONS_KEYS.includes(ve)?de[ve]=oe[ve]:se[ve]=oe[ve]}),isString$2(ae)?se.locale=ae:isPlainObject$2(ae)&&(de=ae),isPlainObject$2(ie)&&(de=ie),[se.key||"",fe,se,de]}function clearNumberFormat(ee,ne,oe){const ae=ee;for(const ie in oe){const se=`${ne}__${ie}`;ae.__numberFormatters.has(se)&&ae.__numberFormatters.delete(se)}}initFeatureFlags$1();/*! + * vue-i18n v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const VERSION$1="9.13.1";function initFeatureFlags(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(ee,...ne){return createCompileError(ee,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(ee){if(!isObject$4(ee))return ee;for(const ne in ee)if(hasOwn(ee,ne))if(!ne.includes("."))isObject$4(ee[ne])&&handleFlatJson(ee[ne]);else{const oe=ne.split("."),ae=oe.length-1;let ie=ee,se=!1;for(let de=0;de{if("locale"in fe&&"resource"in fe){const{locale:ve,resource:be}=fe;ve?(de[ve]=de[ve]||{},deepCopy(be,de[ve])):deepCopy(be,de)}else isString$2(fe)&&deepCopy(JSON.parse(fe),de)}),ie==null&&se)for(const fe in de)hasOwn(de,fe)&&handleFlatJson(de[fe]);return de}function getComponentOptions(ee){return ee.type}function adjustI18nResources(ee,ne,oe){let ae=isObject$4(ne.messages)?ne.messages:{};"__i18nGlobal"in oe&&(ae=getLocaleMessages(ee.locale.value,{messages:ae,__i18n:oe.__i18nGlobal}));const ie=Object.keys(ae);ie.length&&ie.forEach(se=>{ee.mergeLocaleMessage(se,ae[se])});{if(isObject$4(ne.datetimeFormats)){const se=Object.keys(ne.datetimeFormats);se.length&&se.forEach(de=>{ee.mergeDateTimeFormat(de,ne.datetimeFormats[de])})}if(isObject$4(ne.numberFormats)){const se=Object.keys(ne.numberFormats);se.length&&se.forEach(de=>{ee.mergeNumberFormat(de,ne.numberFormats[de])})}}}function createTextNode(ee){return createVNode(Text,null,ee,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(ee){return(ne,oe,ae,ie)=>ee(oe,ae,getCurrentInstance()||void 0,ie)}const getMetaInfo=()=>{const ee=getCurrentInstance();let ne=null;return ee&&(ne=getComponentOptions(ee)[DEVTOOLS_META])?{[DEVTOOLS_META]:ne}:null};function createComposer(ee={},ne){const{__root:oe,__injectWithOption:ae}=ee,ie=oe===void 0,se=ee.flatJson,de=inBrowser$2?ref:shallowRef,fe=!!ee.translateExistCompatible;let ve=isBoolean$1(ee.inheritLocale)?ee.inheritLocale:!0;const be=de(oe&&ve?oe.locale.value:isString$2(ee.locale)?ee.locale:DEFAULT_LOCALE),ye=de(oe&&ve?oe.fallbackLocale.value:isString$2(ee.fallbackLocale)||isArray$2(ee.fallbackLocale)||isPlainObject$2(ee.fallbackLocale)||ee.fallbackLocale===!1?ee.fallbackLocale:be.value),$e=de(getLocaleMessages(be.value,ee)),_e=de(isPlainObject$2(ee.datetimeFormats)?ee.datetimeFormats:{[be.value]:{}}),Ee=de(isPlainObject$2(ee.numberFormats)?ee.numberFormats:{[be.value]:{}});let we=oe?oe.missingWarn:isBoolean$1(ee.missingWarn)||isRegExp$1(ee.missingWarn)?ee.missingWarn:!0,Pe=oe?oe.fallbackWarn:isBoolean$1(ee.fallbackWarn)||isRegExp$1(ee.fallbackWarn)?ee.fallbackWarn:!0,Ce=oe?oe.fallbackRoot:isBoolean$1(ee.fallbackRoot)?ee.fallbackRoot:!0,Oe=!!ee.fallbackFormat,Ae=isFunction$2(ee.missing)?ee.missing:null,Ne=isFunction$2(ee.missing)?defineCoreMissingHandler(ee.missing):null,ke=isFunction$2(ee.postTranslation)?ee.postTranslation:null,Re=oe?oe.warnHtmlMessage:isBoolean$1(ee.warnHtmlMessage)?ee.warnHtmlMessage:!0,Le=!!ee.escapeParameter;const Me=oe?oe.modifiers:isPlainObject$2(ee.modifiers)?ee.modifiers:{};let Ie=ee.pluralRules||oe&&oe.pluralRules,Fe;Fe=(()=>{ie&&setFallbackContext(null);const Ft={version:VERSION$1,locale:be.value,fallbackLocale:ye.value,messages:$e.value,modifiers:Me,pluralRules:Ie,missing:Ne===null?void 0:Ne,missingWarn:we,fallbackWarn:Pe,fallbackFormat:Oe,unresolving:!0,postTranslation:ke===null?void 0:ke,warnHtmlMessage:Re,escapeParameter:Le,messageResolver:ee.messageResolver,messageCompiler:ee.messageCompiler,__meta:{framework:"vue"}};Ft.datetimeFormats=_e.value,Ft.numberFormats=Ee.value,Ft.__datetimeFormatters=isPlainObject$2(Fe)?Fe.__datetimeFormatters:void 0,Ft.__numberFormatters=isPlainObject$2(Fe)?Fe.__numberFormatters:void 0;const qt=createCoreContext(Ft);return ie&&setFallbackContext(qt),qt})(),updateFallbackLocale(Fe,be.value,ye.value);function Be(){return[be.value,ye.value,$e.value,_e.value,Ee.value]}const He=computed({get:()=>be.value,set:Ft=>{be.value=Ft,Fe.locale=be.value}}),ot=computed({get:()=>ye.value,set:Ft=>{ye.value=Ft,Fe.fallbackLocale=ye.value,updateFallbackLocale(Fe,be.value,Ft)}}),Nt=computed(()=>$e.value),st=computed(()=>_e.value),Ue=computed(()=>Ee.value);function Ze(){return isFunction$2(ke)?ke:null}function Tt(Ft){ke=Ft,Fe.postTranslation=Ft}function Vt(){return Ae}function Ut(Ft){Ft!==null&&(Ne=defineCoreMissingHandler(Ft)),Ae=Ft,Fe.missing=Ne}const We=(Ft,qt,sn,an,un,fn)=>{Be();let mn;try{__INTLIFY_PROD_DEVTOOLS__,ie||(Fe.fallbackContext=oe?getFallbackContext():void 0),mn=Ft(Fe)}finally{__INTLIFY_PROD_DEVTOOLS__,ie||(Fe.fallbackContext=void 0)}if(sn!=="translate exists"&&isNumber$1(mn)&&mn===NOT_REOSLVED||sn==="translate exists"&&!mn){const[bn,vn]=qt();return oe&&Ce?an(oe):un(bn)}else{if(fn(mn))return mn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Pt(...Ft){return We(qt=>Reflect.apply(translate,null,[qt,...Ft]),()=>parseTranslateArgs(...Ft),"translate",qt=>Reflect.apply(qt.t,qt,[...Ft]),qt=>qt,qt=>isString$2(qt))}function Mt(...Ft){const[qt,sn,an]=Ft;if(an&&!isObject$4(an))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Pt(qt,sn,assign$3({resolvedMessage:!0},an||{}))}function jt(...Ft){return We(qt=>Reflect.apply(datetime,null,[qt,...Ft]),()=>parseDateTimeArgs(...Ft),"datetime format",qt=>Reflect.apply(qt.d,qt,[...Ft]),()=>MISSING_RESOLVE_VALUE,qt=>isString$2(qt))}function Rt(...Ft){return We(qt=>Reflect.apply(number,null,[qt,...Ft]),()=>parseNumberArgs(...Ft),"number format",qt=>Reflect.apply(qt.n,qt,[...Ft]),()=>MISSING_RESOLVE_VALUE,qt=>isString$2(qt))}function Wt(Ft){return Ft.map(qt=>isString$2(qt)||isNumber$1(qt)||isBoolean$1(qt)?createTextNode(String(qt)):qt)}const It={normalize:Wt,interpolate:Ft=>Ft,type:"vnode"};function Lt(...Ft){return We(qt=>{let sn;const an=qt;try{an.processor=It,sn=Reflect.apply(translate,null,[an,...Ft])}finally{an.processor=null}return sn},()=>parseTranslateArgs(...Ft),"translate",qt=>qt[TranslateVNodeSymbol](...Ft),qt=>[createTextNode(qt)],qt=>isArray$2(qt))}function Dt(...Ft){return We(qt=>Reflect.apply(number,null,[qt,...Ft]),()=>parseNumberArgs(...Ft),"number format",qt=>qt[NumberPartsSymbol](...Ft),NOOP_RETURN_ARRAY,qt=>isString$2(qt)||isArray$2(qt))}function tn(...Ft){return We(qt=>Reflect.apply(datetime,null,[qt,...Ft]),()=>parseDateTimeArgs(...Ft),"datetime format",qt=>qt[DatetimePartsSymbol](...Ft),NOOP_RETURN_ARRAY,qt=>isString$2(qt)||isArray$2(qt))}function Zt(Ft){Ie=Ft,Fe.pluralRules=Ie}function Xe(Ft,qt){return We(()=>{if(!Ft)return!1;const sn=isString$2(qt)?qt:be.value,an=Gt(sn),un=Fe.messageResolver(an,Ft);return fe?un!=null:isMessageAST(un)||isMessageFunction(un)||isString$2(un)},()=>[Ft],"translate exists",sn=>Reflect.apply(sn.te,sn,[Ft,qt]),NOOP_RETURN_FALSE,sn=>isBoolean$1(sn))}function nt(Ft){let qt=null;const sn=fallbackWithLocaleChain(Fe,ye.value,be.value);for(let an=0;an{ve&&(be.value=Ft,Fe.locale=Ft,updateFallbackLocale(Fe,be.value,ye.value))}),watch(oe.fallbackLocale,Ft=>{ve&&(ye.value=Ft,Fe.fallbackLocale=Ft,updateFallbackLocale(Fe,be.value,ye.value))}));const en={id:composerID,locale:He,fallbackLocale:ot,get inheritLocale(){return ve},set inheritLocale(Ft){ve=Ft,Ft&&oe&&(be.value=oe.locale.value,ye.value=oe.fallbackLocale.value,updateFallbackLocale(Fe,be.value,ye.value))},get availableLocales(){return Object.keys($e.value).sort()},messages:Nt,get modifiers(){return Me},get pluralRules(){return Ie||{}},get isGlobal(){return ie},get missingWarn(){return we},set missingWarn(Ft){we=Ft,Fe.missingWarn=we},get fallbackWarn(){return Pe},set fallbackWarn(Ft){Pe=Ft,Fe.fallbackWarn=Pe},get fallbackRoot(){return Ce},set fallbackRoot(Ft){Ce=Ft},get fallbackFormat(){return Oe},set fallbackFormat(Ft){Oe=Ft,Fe.fallbackFormat=Oe},get warnHtmlMessage(){return Re},set warnHtmlMessage(Ft){Re=Ft,Fe.warnHtmlMessage=Ft},get escapeParameter(){return Le},set escapeParameter(Ft){Le=Ft,Fe.escapeParameter=Ft},t:Pt,getLocaleMessage:Gt,setLocaleMessage:Kt,mergeLocaleMessage:Xt,getPostTranslationHandler:Ze,setPostTranslationHandler:Tt,getMissingHandler:Vt,setMissingHandler:Ut,[SetPluralRulesSymbol]:Zt};return en.datetimeFormats=st,en.numberFormats=Ue,en.rt=Mt,en.te=Xe,en.tm=Bt,en.d=jt,en.n=Rt,en.getDateTimeFormat=Qt,en.setDateTimeFormat=qe,en.mergeDateTimeFormat=Qe,en.getNumberFormat=kt,en.setNumberFormat=Yt,en.mergeNumberFormat=nn,en[InejctWithOptionSymbol]=ae,en[TranslateVNodeSymbol]=Lt,en[DatetimePartsSymbol]=tn,en[NumberPartsSymbol]=Dt,en}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:ee=>ee==="parent"||ee==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:ee},ne){return ne.length===1&&ne[0]==="default"?(ee.default?ee.default():[]).reduce((ae,ie)=>[...ae,...ie.type===Fragment?ie.children:[ie]],[]):ne.reduce((oe,ae)=>{const ie=ee[ae];return ie&&(oe[ae]=ie()),oe},{})}function getFragmentableTag(ee){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$3({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:ee=>isNumber$1(ee)||!isNaN(ee)}},baseFormatProps),setup(ee,ne){const{slots:oe,attrs:ae}=ne,ie=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return()=>{const se=Object.keys(oe).filter($e=>$e!=="_"),de={};ee.locale&&(de.locale=ee.locale),ee.plural!==void 0&&(de.plural=isString$2(ee.plural)?+ee.plural:ee.plural);const fe=getInterpolateArg(ne,se),ve=ie[TranslateVNodeSymbol](ee.keypath,fe,de),be=assign$3({},ae),ye=isString$2(ee.tag)||isObject$4(ee.tag)?ee.tag:getFragmentableTag();return h$2(ye,be,ve)}}}),Translation=TranslationImpl;function isVNode(ee){return isArray$2(ee)&&!isString$2(ee[0])}function renderFormatter(ee,ne,oe,ae){const{slots:ie,attrs:se}=ne;return()=>{const de={part:!0};let fe={};ee.locale&&(de.locale=ee.locale),isString$2(ee.format)?de.key=ee.format:isObject$4(ee.format)&&(isString$2(ee.format.key)&&(de.key=ee.format.key),fe=Object.keys(ee.format).reduce((_e,Ee)=>oe.includes(Ee)?assign$3({},_e,{[Ee]:ee.format[Ee]}):_e,{}));const ve=ae(ee.value,de,fe);let be=[de.key];isArray$2(ve)?be=ve.map((_e,Ee)=>{const we=ie[_e.type],Pe=we?we({[_e.type]:_e.value,index:Ee,parts:ve}):[_e.value];return isVNode(Pe)&&(Pe[0].key=`${_e.type}-${Ee}`),Pe}):isString$2(ve)&&(be=[ve]);const ye=assign$3({},se),$e=isString$2(ee.tag)||isObject$4(ee.tag)?ee.tag:getFragmentableTag();return h$2($e,ye,be)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$3({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(ee,ne){const oe=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return renderFormatter(ee,ne,NUMBER_FORMAT_OPTIONS_KEYS,(...ae)=>oe[NumberPartsSymbol](...ae))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$3({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(ee,ne){const oe=ee.i18n||useI18n({useScope:ee.scope,__useComponent:!0});return renderFormatter(ee,ne,DATETIME_FORMAT_OPTIONS_KEYS,(...ae)=>oe[DatetimePartsSymbol](...ae))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(ee,ne){const oe=ee;if(ee.mode==="composition")return oe.__getInstance(ne)||ee.global;{const ae=oe.__getInstance(ne);return ae!=null?ae.__composer:ee.global.__composer}}function vTDirective(ee){const ne=de=>{const{instance:fe,modifiers:ve,value:be}=de;if(!fe||!fe.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const ye=getComposer$2(ee,fe.$),$e=parseValue(be);return[Reflect.apply(ye.t,ye,[...makeParams($e)]),ye]};return{created:(de,fe)=>{const[ve,be]=ne(fe);inBrowser$2&&ee.global===be&&(de.__i18nWatcher=watch(be.locale,()=>{fe.instance&&fe.instance.$forceUpdate()})),de.__composer=be,de.textContent=ve},unmounted:de=>{inBrowser$2&&de.__i18nWatcher&&(de.__i18nWatcher(),de.__i18nWatcher=void 0,delete de.__i18nWatcher),de.__composer&&(de.__composer=void 0,delete de.__composer)},beforeUpdate:(de,{value:fe})=>{if(de.__composer){const ve=de.__composer,be=parseValue(fe);de.textContent=Reflect.apply(ve.t,ve,[...makeParams(be)])}},getSSRProps:de=>{const[fe]=ne(de);return{textContent:fe}}}}function parseValue(ee){if(isString$2(ee))return{path:ee};if(isPlainObject$2(ee)){if(!("path"in ee))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return ee}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(ee){const{path:ne,locale:oe,args:ae,choice:ie,plural:se}=ee,de={},fe=ae||{};return isString$2(oe)&&(de.locale=oe),isNumber$1(ie)&&(de.plural=ie),isNumber$1(se)&&(de.plural=se),[ne,fe,de]}function apply(ee,ne,...oe){const ae=isPlainObject$2(oe[0])?oe[0]:{},ie=!!ae.useI18nComponentName;(isBoolean$1(ae.globalInstall)?ae.globalInstall:!0)&&([ie?"i18n":Translation.name,"I18nT"].forEach(de=>ee.component(de,Translation)),[NumberFormat.name,"I18nN"].forEach(de=>ee.component(de,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(de=>ee.component(de,DatetimeFormat))),ee.directive("t",vTDirective(ne))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(ee={},ne){const oe=isBoolean$1(ee.globalInjection)?ee.globalInjection:!0,ae=!0,ie=new Map,[se,de]=createGlobal(ee),fe=makeSymbol("");function ve($e){return ie.get($e)||null}function be($e,_e){ie.set($e,_e)}function ye($e){ie.delete($e)}{const $e={get mode(){return"composition"},get allowComposition(){return ae},async install(_e,...Ee){if(_e.__VUE_I18N_SYMBOL__=fe,_e.provide(_e.__VUE_I18N_SYMBOL__,$e),isPlainObject$2(Ee[0])){const Ce=Ee[0];$e.__composerExtend=Ce.__composerExtend,$e.__vueI18nExtend=Ce.__vueI18nExtend}let we=null;oe&&(we=injectGlobalFields(_e,$e.global)),apply(_e,$e,...Ee);const Pe=_e.unmount;_e.unmount=()=>{we&&we(),$e.dispose(),Pe()}},get global(){return de},dispose(){se.stop()},__instances:ie,__getInstance:ve,__setInstance:be,__deleteInstance:ye};return $e}}function useI18n(ee={}){const ne=getCurrentInstance();if(ne==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!ne.isCE&&ne.appContext.app!=null&&!ne.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const oe=getI18nInstance(ne),ae=getGlobalComposer(oe),ie=getComponentOptions(ne),se=getScope(ee,ie);if(se==="global")return adjustI18nResources(ae,ee,ie),ae;if(se==="parent"){let ve=getComposer(oe,ne,ee.__useComponent);return ve==null&&(ve=ae),ve}const de=oe;let fe=de.__getInstance(ne);if(fe==null){const ve=assign$3({},ee);"__i18n"in ie&&(ve.__i18n=ie.__i18n),ae&&(ve.__root=ae),fe=createComposer(ve),de.__composerExtend&&(fe[DisposeSymbol]=de.__composerExtend(fe)),setupLifeCycle(de,ne,fe),de.__setInstance(ne,fe)}return fe}function createGlobal(ee,ne,oe){const ae=effectScope();{const ie=ae.run(()=>createComposer(ee));if(ie==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ae,ie]}}function getI18nInstance(ee){{const ne=inject(ee.isCE?I18nInjectionKey:ee.appContext.app.__VUE_I18N_SYMBOL__);if(!ne)throw createI18nError(ee.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return ne}}function getScope(ee,ne){return isEmptyObject(ee)?"__i18n"in ne?"local":"global":ee.useScope?ee.useScope:"local"}function getGlobalComposer(ee){return ee.mode==="composition"?ee.global:ee.global.__composer}function getComposer(ee,ne,oe=!1){let ae=null;const ie=ne.root;let se=getParentComponentInstance(ne,oe);for(;se!=null;){const de=ee;if(ee.mode==="composition"&&(ae=de.__getInstance(se)),ae!=null||ie===se)break;se=se.parent}return ae}function getParentComponentInstance(ee,ne=!1){return ee==null?null:ne&&ee.vnode.ctx||ee.parent}function setupLifeCycle(ee,ne,oe){onMounted(()=>{},ne),onUnmounted(()=>{const ae=oe;ee.__deleteInstance(ne);const ie=ae[DisposeSymbol];ie&&(ie(),delete ae[DisposeSymbol])},ne)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(ee,ne){const oe=Object.create(null);return globalExportProps.forEach(ie=>{const se=Object.getOwnPropertyDescriptor(ne,ie);if(!se)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const de=isRef(se.value)?{get(){return se.value.value},set(fe){se.value.value=fe}}:{get(){return se.get&&se.get()}};Object.defineProperty(oe,ie,de)}),ee.config.globalProperties.$i18n=oe,globalExportMethods.forEach(ie=>{const se=Object.getOwnPropertyDescriptor(ne,ie);if(!se||!se.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(ee.config.globalProperties,`$${ie}`,se)}),()=>{delete ee.config.globalProperties.$i18n,globalExportMethods.forEach(ie=>{delete ee.config.globalProperties[`$${ie}`]})}}initFeatureFlags();registerMessageCompiler(compile);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(__INTLIFY_PROD_DEVTOOLS__){const ee=getGlobalThis();ee.__INTLIFY__=!0,setDevToolsHook(ee.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const isObject$2=ee=>ee&&typeof ee=="object"&&!Array.isArray(ee),mergeDeep=(ee,...ne)=>{if(!ne.length)return ee;const oe=ne.shift();if(isObject$2(ee)&&isObject$2(oe))for(const ae in oe)isObject$2(oe[ae])?(ee[ae]||Object.assign(ee,{[ae]:{}}),mergeDeep(ee[ae],oe[ae])):Object.assign(ee,{[ae]:oe[ae]});return mergeDeep(ee,...ne)},messages$1=mergeDeep({},{"en-us":{pages:{navbar:{root:ee=>{const{normalize:ne}=ee;return ne(["Navbar"])},default:ee=>{const{normalize:ne}=ee;return ne(["Default navbar"])},none:ee=>{const{normalize:ne}=ee;return ne(["No navbar"])},preset:ee=>{const{normalize:ne}=ee;return ne(["Preset button"])},mode:ee=>{const{normalize:ne}=ee;return ne(["Navbar mode"])},"title-no-center":ee=>{const{normalize:ne}=ee;return ne(["Title not centered"])},"custom-title":ee=>{const{normalize:ne}=ee;return ne(["Custom title"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["Custom area"])},"custom-navbar":ee=>{const{normalize:ne}=ee;return ne(["Custom navbar"])}},tabbar:{root:ee=>{const{normalize:ne}=ee;return ne(["Tabbar"])},default:ee=>{const{normalize:ne}=ee;return ne(["Default tabbar"])},multi:ee=>{const{normalize:ne}=ee;return ne(["Multiple sets of tabbars"])},badge:ee=>{const{normalize:ne}=ee;return ne(["Badge"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["Custom area"])}},permission:{root:ee=>{const{normalize:ne}=ee;return ne(["Permission validation"])}},function:{root:ee=>{const{normalize:ne}=ee;return ne(["Function"])},errorLog:ee=>{const{normalize:ne}=ee;return ne(["Error log"])},font:ee=>{const{normalize:ne}=ee;return ne(["Costom Font"])},i18n:ee=>{const{normalize:ne}=ee;return ne(["Internationalization"])},icon:ee=>{const{normalize:ne}=ee;return ne(["Icon"])},keepAlive:ee=>{const{normalize:ne}=ee;return ne(["Page cache"])},watermark:ee=>{const{normalize:ne}=ee;return ne(["Watermark"])},zoomable:ee=>{const{normalize:ne}=ee;return ne(["Zoomable"])},title:ee=>{const{normalize:ne}=ee;return ne(["Dynamic title"])},scroll:ee=>{const{normalize:ne}=ee;return ne(["Saved posotion"])}}},tabbar:{default:{feature:ee=>{const{normalize:ne}=ee;return ne(["Feature"])},index:ee=>{const{normalize:ne}=ee;return ne(["Index"])},user:ee=>{const{normalize:ne}=ee;return ne(["User"])}},second:{flower:ee=>{const{normalize:ne}=ee;return ne(["Flower"])},grass:ee=>{const{normalize:ne}=ee;return ne(["Grass"])}},third:{dot:ee=>{const{normalize:ne}=ee;return ne(["Dot"])},number:ee=>{const{normalize:ne}=ee;return ne(["Number"])},text:ee=>{const{normalize:ne}=ee;return ne(["Text"])}}}}},{"zh-cn":{pages:{navbar:{root:ee=>{const{normalize:ne}=ee;return ne(["导航栏"])},default:ee=>{const{normalize:ne}=ee;return ne(["默认导航栏"])},none:ee=>{const{normalize:ne}=ee;return ne(["无导航栏"])},preset:ee=>{const{normalize:ne}=ee;return ne(["预设按钮"])},mode:ee=>{const{normalize:ne}=ee;return ne(["导航栏模式"])},"title-no-center":ee=>{const{normalize:ne}=ee;return ne(["标题非居中"])},"custom-title":ee=>{const{normalize:ne}=ee;return ne(["自定义标题"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["自定义区域"])},"custom-navbar":ee=>{const{normalize:ne}=ee;return ne(["自定义导航栏"])}},tabbar:{root:ee=>{const{normalize:ne}=ee;return ne(["标签栏"])},default:ee=>{const{normalize:ne}=ee;return ne(["默认标签栏"])},multi:ee=>{const{normalize:ne}=ee;return ne(["多套标签栏"])},badge:ee=>{const{normalize:ne}=ee;return ne(["角标"])},"custom-area":ee=>{const{normalize:ne}=ee;return ne(["自定义区域"])}},permission:{root:ee=>{const{normalize:ne}=ee;return ne(["权限验证"])}},function:{root:ee=>{const{normalize:ne}=ee;return ne(["功能"])},errorLog:ee=>{const{normalize:ne}=ee;return ne(["错误日志"])},font:ee=>{const{normalize:ne}=ee;return ne(["自定义字体"])},i18n:ee=>{const{normalize:ne}=ee;return ne(["国际化"])},icon:ee=>{const{normalize:ne}=ee;return ne(["图标"])},keepAlive:ee=>{const{normalize:ne}=ee;return ne(["页面缓存"])},watermark:ee=>{const{normalize:ne}=ee;return ne(["水印"])},zoomable:ee=>{const{normalize:ne}=ee;return ne(["图片预览"])},title:ee=>{const{normalize:ne}=ee;return ne(["动态标题"])},scroll:ee=>{const{normalize:ne}=ee;return ne(["记录滚动位置"])}}},tabbar:{default:{feature:ee=>{const{normalize:ne}=ee;return ne(["特色"])},index:ee=>{const{normalize:ne}=ee;return ne(["主页"])},user:ee=>{const{normalize:ne}=ee;return ne(["我的"])}},second:{flower:ee=>{const{normalize:ne}=ee;return ne(["花花"])},grass:ee=>{const{normalize:ne}=ee;return ne(["草草"])}},third:{dot:ee=>{const{normalize:ne}=ee;return ne(["点"])},number:ee=>{const{normalize:ne}=ee;return ne(["数字"])},text:ee=>{const{normalize:ne}=ee;return ne(["文本"])}}}}});function setupI18n(){const ee=useSettingsStore();return createI18n({legacy:!1,locale:ee.lang,flatJson:!0,fallbackLocale:"zh-cn",messages:messages$1})}function getLocales(){return cloneDeep(messages$1)}const localesName={};for(const ee in messages$1)switch(ee){case"zh-cn":localesName[ee]="中文";break;case"en-us":localesName[ee]="English";break}function $t(ee){return ee}/*! + * pinia v2.2.1 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let activePinia;const setActivePinia=ee=>activePinia=ee,piniaSymbol=Symbol();function isPlainObject$1(ee){return ee&&typeof ee=="object"&&Object.prototype.toString.call(ee)==="[object Object]"&&typeof ee.toJSON!="function"}var MutationType;(function(ee){ee.direct="direct",ee.patchObject="patch object",ee.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const ee=effectScope(!0),ne=ee.run(()=>ref({}));let oe=[],ae=[];const ie=markRaw({install(se){setActivePinia(ie),ie._a=se,se.provide(piniaSymbol,ie),se.config.globalProperties.$pinia=ie,ae.forEach(de=>oe.push(de)),ae=[]},use(se){return!this._a&&!isVue2?ae.push(se):oe.push(se),this},_p:oe,_a:null,_e:ee,_s:new Map,state:ne});return ie}const noop$3=()=>{};function addSubscription(ee,ne,oe,ae=noop$3){ee.push(ne);const ie=()=>{const se=ee.indexOf(ne);se>-1&&(ee.splice(se,1),ae())};return!oe&&getCurrentScope()&&onScopeDispose(ie),ie}function triggerSubscriptions(ee,...ne){ee.slice().forEach(oe=>{oe(...ne)})}const fallbackRunWithContext=ee=>ee(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(ee,ne){ee instanceof Map&&ne instanceof Map?ne.forEach((oe,ae)=>ee.set(ae,oe)):ee instanceof Set&&ne instanceof Set&&ne.forEach(ee.add,ee);for(const oe in ne){if(!ne.hasOwnProperty(oe))continue;const ae=ne[oe],ie=ee[oe];isPlainObject$1(ie)&&isPlainObject$1(ae)&&ee.hasOwnProperty(oe)&&!isRef(ae)&&!isReactive(ae)?ee[oe]=mergeReactiveObjects(ie,ae):ee[oe]=ae}return ee}const skipHydrateSymbol=Symbol();function shouldHydrate(ee){return!isPlainObject$1(ee)||!ee.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(ee){return!!(isRef(ee)&&ee.effect)}function createOptionsStore(ee,ne,oe,ae){const{state:ie,actions:se,getters:de}=ne,fe=oe.state.value[ee];let ve;function be(){fe||(oe.state.value[ee]=ie?ie():{});const ye=toRefs(oe.state.value[ee]);return assign$1(ye,se,Object.keys(de||{}).reduce(($e,_e)=>($e[_e]=markRaw(computed(()=>{setActivePinia(oe);const Ee=oe._s.get(ee);return de[_e].call(Ee,Ee)})),$e),{}))}return ve=createSetupStore(ee,be,ne,oe,ae,!0),ve}function createSetupStore(ee,ne,oe={},ae,ie,se){let de;const fe=assign$1({actions:{}},oe),ve={deep:!0};let be,ye,$e=[],_e=[],Ee;const we=ae.state.value[ee];!se&&!we&&(ae.state.value[ee]={}),ref({});let Pe;function Ce(Ie){let Fe;be=ye=!1,typeof Ie=="function"?(Ie(ae.state.value[ee]),Fe={type:MutationType.patchFunction,storeId:ee,events:Ee}):(mergeReactiveObjects(ae.state.value[ee],Ie),Fe={type:MutationType.patchObject,payload:Ie,storeId:ee,events:Ee});const je=Pe=Symbol();nextTick().then(()=>{Pe===je&&(be=!0)}),ye=!0,triggerSubscriptions($e,Fe,ae.state.value[ee])}const Oe=se?function(){const{state:Fe}=oe,je=Fe?Fe():{};this.$patch(Be=>{assign$1(Be,je)})}:noop$3;function Ae(){de.stop(),$e=[],_e=[],ae._s.delete(ee)}const Ne=(Ie,Fe="")=>{if(ACTION_MARKER in Ie)return Ie[ACTION_NAME]=Fe,Ie;const je=function(){setActivePinia(ae);const Be=Array.from(arguments),He=[],ot=[];function Nt(Ze){He.push(Ze)}function st(Ze){ot.push(Ze)}triggerSubscriptions(_e,{args:Be,name:je[ACTION_NAME],store:Re,after:Nt,onError:st});let Ue;try{Ue=Ie.apply(this&&this.$id===ee?this:Re,Be)}catch(Ze){throw triggerSubscriptions(ot,Ze),Ze}return Ue instanceof Promise?Ue.then(Ze=>(triggerSubscriptions(He,Ze),Ze)).catch(Ze=>(triggerSubscriptions(ot,Ze),Promise.reject(Ze))):(triggerSubscriptions(He,Ue),Ue)};return je[ACTION_MARKER]=!0,je[ACTION_NAME]=Fe,je},ke={_p:ae,$id:ee,$onAction:addSubscription.bind(null,_e),$patch:Ce,$reset:Oe,$subscribe(Ie,Fe={}){const je=addSubscription($e,Ie,Fe.detached,()=>Be()),Be=de.run(()=>watch(()=>ae.state.value[ee],He=>{(Fe.flush==="sync"?ye:be)&&Ie({storeId:ee,type:MutationType.direct,events:Ee},He)},assign$1({},ve,Fe)));return je},$dispose:Ae},Re=reactive(ke);ae._s.set(ee,Re);const Me=(ae._a&&ae._a.runWithContext||fallbackRunWithContext)(()=>ae._e.run(()=>(de=effectScope()).run(()=>ne({action:Ne}))));for(const Ie in Me){const Fe=Me[Ie];if(isRef(Fe)&&!isComputed(Fe)||isReactive(Fe))se||(we&&shouldHydrate(Fe)&&(isRef(Fe)?Fe.value=we[Ie]:mergeReactiveObjects(Fe,we[Ie])),ae.state.value[ee][Ie]=Fe);else if(typeof Fe=="function"){const je=Ne(Fe,Ie);Me[Ie]=je,fe.actions[Ie]=Fe}}return assign$1(Re,Me),assign$1(toRaw(Re),Me),Object.defineProperty(Re,"$state",{get:()=>ae.state.value[ee],set:Ie=>{Ce(Fe=>{assign$1(Fe,Ie)})}}),ae._p.forEach(Ie=>{assign$1(Re,de.run(()=>Ie({store:Re,app:ae._a,pinia:ae,options:fe})))}),we&&se&&oe.hydrate&&oe.hydrate(Re.$state,we),be=!0,ye=!0,Re}function defineStore(ee,ne,oe){let ae,ie;const se=typeof ne=="function";typeof ee=="string"?(ae=ee,ie=se?oe:ne):(ie=ee,ae=ee.id);function de(fe,ve){const be=hasInjectionContext();return fe=fe||(be?inject(piniaSymbol,null):null),fe&&setActivePinia(fe),fe=activePinia,fe._s.has(ae)||(se?createSetupStore(ae,ne,ie,fe):createOptionsStore(ae,ie,fe)),fe._s.get(ae)}return de.$id=ae,de}const useTabbarBadgeStore=defineStore("tabbarBadge",()=>{const ee=ref(!0),ne=ref(10),oe=ref("热门");function ae(){ee.value=!ee.value}function ie(de){ne.value=de}function se(de){oe.value=de}return{dot:ee,number:ne,text:oe,switchDot:ae,setNumber:ie,setText:se}}),pinia=createPinia(),tabbarBadgeStore=useTabbarBadgeStore(pinia),globalSettings={app:{enablePermission:!0,enableDynamicTitle:!0,enableErrorLog:!0},navbar:{mode:"fixed"},tabbar:{list:[{name:"default",list:[{path:"/feature",icon:"i-ic:sharp-auto-awesome",activeIcon:"i-ic:twotone-auto-awesome",text:"tabbar.default.feature"},{path:"/",icon:"i-ic:sharp-home",activeIcon:"i-ic:twotone-home",text:"tabbar.default.index"},{path:"/user",icon:"i-ic:baseline-person",activeIcon:"i-ic:twotone-person",text:"tabbar.default.user"}]},{name:"second",list:[{path:"/",icon:"i-mdi:flower",text:"tabbar.second.flower"},{path:"/",icon:"i-mdi:grass",text:"tabbar.second.grass"}]},{name:"third",list:[{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.dot",badge:()=>tabbarBadgeStore.dot},{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.number",badge:()=>tabbarBadgeStore.number},{path:"/",icon:"i-ic:sharp-home",text:"tabbar.third.text",badge:()=>tabbarBadgeStore.text}]}]},copyright:{dates:"2024-present",company:"Fantastic-mobile",website:"https://fantastic-mobile.hurui.me"}},settingsDefault=defaultsDeep(globalSettings,globalSettingsDefault),useSettingsStore=defineStore("settings",()=>{const ee=ref(settingsDefault),ne=window.matchMedia("(prefers-color-scheme: dark)"),oe=ref();watch(()=>ee.value.app.colorScheme,_e=>{_e===""?ne.addEventListener("change",ae):ne.removeEventListener("change",ae)},{immediate:!0}),watch([()=>ee.value.app.colorScheme,()=>ee.value.app.lightTheme,()=>ee.value.app.darkTheme],ae,{immediate:!0});function ae(){let _e=ee.value.app.colorScheme;switch(_e===""&&(_e=ne.matches?"dark":"light"),oe.value=_e,_e){case"light":document.documentElement.classList.remove("dark"),document.body.setAttribute("data-theme",ee.value.app.lightTheme);break;case"dark":document.documentElement.classList.add("dark"),document.body.setAttribute("data-theme",ee.value.app.darkTheme);break}}watch([()=>ee.value.app.enableMournMode,()=>ee.value.app.enableColorAmblyopiaMode],_e=>{document.documentElement.style.removeProperty("filter"),_e[0]&&_e[1]?document.documentElement.style.setProperty("filter","grayscale(100%) invert(80%)"):_e[0]?document.documentElement.style.setProperty("filter","grayscale(100%)"):_e[1]&&document.documentElement.style.setProperty("filter","invert(80%)")},{immediate:!0});const ie=ref("");function se(_e){ie.value=_e}const de=ref([]);function fe(_e,Ee){const we=de.value.findIndex(Pe=>Pe.fullPath===_e);we>-1?de.value[we].title=Ee:de.value.push({fullPath:_e,title:Ee})}function ve(_e){const Ee=de.value.findIndex(we=>we.fullPath===_e);Ee>-1&&de.value.splice(Ee,1)}const be=computed(()=>{if(ee.value.app.defaultLang===""){const _e=navigator.language.toLowerCase(),Ee=getLocales();if(Ee!=null&&Ee[_e])return _e}return ee.value.app.defaultLang||"zh-cn"});function ye(_e){ee.value.app.defaultLang=_e}function $e(_e){ee.value.app.colorScheme=_e}return{settings:ee,currentColorScheme:oe,title:ie,setTitle:se,customTitleList:de,setCustomTitle:fe,resetCustomTitle:ve,lang:be,setDefaultLang:ye,setColorScheme:$e}}),_withScopeId=ee=>(pushScopeId("data-v-b9b68fc9"),ee=ee(),popScopeId(),ee),_hoisted_1$1=_withScopeId(()=>createBaseVNode("div",{class:"rounded-2 bg-rose/20 px-4 py-2 text-sm/6 c-rose"},[createBaseVNode("p",{class:"my-1"}," 应用配置可实时预览效果,但只是临时生效,要想真正应用于项目,可以点击下方的「复制配置」按钮,并将配置粘贴到 src/settings.ts 文件中。 "),createBaseVNode("p",{class:"my-1"}," 注意:在生产环境中应关闭该模块。 ")],-1)),_hoisted_2$1=_withScopeId(()=>createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 颜色主题风格 ",-1)),_hoisted_3$1={class:"flex items-center justify-center pb-4"},_hoisted_4$1={class:"flex flex-wrap items-center justify-center gap-4 pb-4"},_hoisted_5=["onClick"],_hoisted_6=_withScopeId(()=>createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 页面切换动画 ",-1)),_hoisted_7={class:"flex items-center justify-center pb-4"},_hoisted_8={key:0,class:"flex items-center justify-center gap-4 pb-4"},_hoisted_9=_withScopeId(()=>createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 底部版权 ",-1)),_hoisted_10={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_11=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用 ",-1)),_hoisted_12={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_13=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 日期 ",-1)),_hoisted_14={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_15=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 公司 ",-1)),_hoisted_16={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_17=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 网址 ",-1)),_hoisted_18={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_19=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 备案 ",-1)),_hoisted_20=_withScopeId(()=>createBaseVNode("div",{class:"my-4 flex items-center justify-between gap-4 whitespace-nowrap text-sm font-500 after:h-[1px] after:w-full after:bg-stone-2 after:content-empty after:dark-bg-stone-6 before:h-[1px] before:w-full before:bg-stone-2 before:content-empty before:dark-bg-stone-6"}," 其它 ",-1)),_hoisted_21={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_22=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 是否启用权限 ",-1)),_hoisted_23={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_24=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 载入进度条 ",-1)),_hoisted_25={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_26=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 哀悼模式 ",-1)),_hoisted_27={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_28=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 色弱模式 ",-1)),_hoisted_29={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_30=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 返回顶部 ",-1)),_hoisted_31={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_32=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 动态标题 ",-1)),_hoisted_33={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_34=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," Storage 前缀 ",-1)),_hoisted_35={class:"flex items-center justify-between gap-4 rounded-2 px-4 py-2"},_hoisted_36=_withScopeId(()=>createBaseVNode("div",{class:"flex flex-shrink-0 items-center gap-2 text-sm"}," 页面水印 ",-1)),_sfc_main$3=defineComponent({name:"AppSetting",__name:"index",setup(ee){const ne=useSettingsStore(),oe=ref(!1);onMounted(()=>{eventBus.on("global-app-setting-toggle",()=>{oe.value=!oe.value})});const ae=computed(()=>Object.keys(themes).map(ve=>({label:ve,value:themes[ve]})).filter(ve=>ve.value["color-scheme"]===ne.currentColorScheme)),{copy:ie,copied:se,isSupported:de}=useClipboard();watch(se,ve=>{ve&&index.success("复制成功,请粘贴到 src/settings.ts 文件中!",{zIndex:2e3})});function fe(){ie(JSON.stringify(getTwoObjectDiff(globalSettingsDefault,ne.settings),null,2))}return(ve,be)=>{const ye=_sfc_main$4,$e=_sfc_main$5,_e=_sfc_main$6,Ee=_sfc_main$9,we=_sfc_main$7,Pe=_sfc_main$8;return openBlock(),createBlock(Pe,{modelValue:unref(oe),"onUpdate:modelValue":be[20]||(be[20]=Ce=>isRef(oe)?oe.value=Ce:null),title:"应用配置"},createSlots({default:withCtx(()=>[_hoisted_1$1,createBaseVNode("div",null,[_hoisted_2$1,createBaseVNode("div",_hoisted_3$1,[createVNode(ye,{modelValue:unref(ne).settings.app.colorScheme,"onUpdate:modelValue":be[0]||(be[0]=Ce=>unref(ne).settings.app.colorScheme=Ce),options:[{icon:"i-ri:sun-line",label:"明亮",value:"light"},{icon:"i-ri:moon-line",label:"暗黑",value:"dark"},{icon:"i-codicon:color-mode",label:"系统",value:""}],class:"w-60"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ae),Ce=>(openBlock(),createElementBlock("div",{key:Ce.label,class:normalizeClass(["h-12 w-12 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 transition dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme===Ce.label:unref(ne).settings.app.lightTheme===Ce.label}]),onClick:Oe=>unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme=Ce.label:unref(ne).settings.app.lightTheme=Ce.label},[createBaseVNode("div",{class:normalizeClass(["h-4 w-6 rounded-1/2 transition -rotate-45",{"rotate-0!":unref(ne).currentColorScheme==="dark"?unref(ne).settings.app.darkTheme===Ce.label:unref(ne).settings.app.lightTheme===Ce.label}]),style:normalizeStyle(`background-color: rgb(${Ce.value["--ui-primary"]});`)},null,6)],10,_hoisted_5))),128))])]),createBaseVNode("div",null,[_hoisted_6,createBaseVNode("div",_hoisted_7,[createVNode($e,{modelValue:unref(ne).settings.mainPage.enableTransition,"onUpdate:modelValue":be[1]||(be[1]=Ce=>unref(ne).settings.mainPage.enableTransition=Ce)},null,8,["modelValue"])]),unref(ne).settings.mainPage.enableTransition?(openBlock(),createElementBlock("div",_hoisted_8,[createBaseVNode("div",{class:normalizeClass(["mode mode-fade relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="fade"}]),onClick:be[2]||(be[2]=Ce=>unref(ne).settings.mainPage.transitionMode="fade")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-left relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-left"}]),onClick:be[3]||(be[3]=Ce=>unref(ne).settings.mainPage.transitionMode="slide-left")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-right relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-right"}]),onClick:be[4]||(be[4]=Ce=>unref(ne).settings.mainPage.transitionMode="slide-right")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-top relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-top"}]),onClick:be[5]||(be[5]=Ce=>unref(ne).settings.mainPage.transitionMode="slide-top")},null,2),createBaseVNode("div",{class:normalizeClass(["mode mode-slide-bottom relative h-10 w-14 flex cursor-pointer items-center justify-center rounded-2 ring-1 ring-stone-2 dark-ring-stone-7",{"ring-ui-primary! ring-2":unref(ne).settings.mainPage.transitionMode==="slide-bottom"}]),onClick:be[6]||(be[6]=Ce=>unref(ne).settings.mainPage.transitionMode="slide-bottom")},null,2)])):createCommentVNode("",!0)]),createBaseVNode("div",null,[_hoisted_9,createBaseVNode("div",_hoisted_10,[_hoisted_11,createVNode($e,{modelValue:unref(ne).settings.copyright.enable,"onUpdate:modelValue":be[7]||(be[7]=Ce=>unref(ne).settings.copyright.enable=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_12,[_hoisted_13,createVNode(_e,{modelValue:unref(ne).settings.copyright.dates,"onUpdate:modelValue":be[8]||(be[8]=Ce=>unref(ne).settings.copyright.dates=Ce),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_14,[_hoisted_15,createVNode(_e,{modelValue:unref(ne).settings.copyright.company,"onUpdate:modelValue":be[9]||(be[9]=Ce=>unref(ne).settings.copyright.company=Ce),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_16,[_hoisted_17,createVNode(_e,{modelValue:unref(ne).settings.copyright.website,"onUpdate:modelValue":be[10]||(be[10]=Ce=>unref(ne).settings.copyright.website=Ce),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])]),createBaseVNode("div",_hoisted_18,[_hoisted_19,createVNode(_e,{modelValue:unref(ne).settings.copyright.beian,"onUpdate:modelValue":be[11]||(be[11]=Ce=>unref(ne).settings.copyright.beian=Ce),disabled:!unref(ne).settings.copyright.enable},null,8,["modelValue","disabled"])])]),createBaseVNode("div",null,[_hoisted_20,createBaseVNode("div",_hoisted_21,[_hoisted_22,createVNode($e,{modelValue:unref(ne).settings.app.enablePermission,"onUpdate:modelValue":be[12]||(be[12]=Ce=>unref(ne).settings.app.enablePermission=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_23,[_hoisted_24,createVNode($e,{modelValue:unref(ne).settings.app.enableProgress,"onUpdate:modelValue":be[13]||(be[13]=Ce=>unref(ne).settings.app.enableProgress=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_25,[_hoisted_26,createVNode($e,{modelValue:unref(ne).settings.app.enableMournMode,"onUpdate:modelValue":be[14]||(be[14]=Ce=>unref(ne).settings.app.enableMournMode=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_27,[_hoisted_28,createVNode($e,{modelValue:unref(ne).settings.app.enableColorAmblyopiaMode,"onUpdate:modelValue":be[15]||(be[15]=Ce=>unref(ne).settings.app.enableColorAmblyopiaMode=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_29,[_hoisted_30,createVNode($e,{modelValue:unref(ne).settings.app.enableBackTop,"onUpdate:modelValue":be[16]||(be[16]=Ce=>unref(ne).settings.app.enableBackTop=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_31,[_hoisted_32,createVNode($e,{modelValue:unref(ne).settings.app.enableDynamicTitle,"onUpdate:modelValue":be[17]||(be[17]=Ce=>unref(ne).settings.app.enableDynamicTitle=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_33,[_hoisted_34,createVNode(_e,{modelValue:unref(ne).settings.app.storagePrefix,"onUpdate:modelValue":be[18]||(be[18]=Ce=>unref(ne).settings.app.storagePrefix=Ce)},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_35,[_hoisted_36,createVNode($e,{modelValue:unref(ne).settings.app.enableWatermark,"onUpdate:modelValue":be[19]||(be[19]=Ce=>unref(ne).settings.app.enableWatermark=Ce)},null,8,["modelValue"])])])]),_:2},[unref(de)?{name:"footer",fn:withCtx(()=>[createVNode(we,{block:"",onClick:fe},{default:withCtx(()=>[createVNode(Ee,{name:"i-ep:document-copy"}),createTextVNode(" 复制配置 ")]),_:1})]),key:"0"}:void 0]),1032,["modelValue"])}}}),_export_sfc=(ee,ne)=>{const oe=ee.__vccOpts||ee;for(const[ae,ie]of ne)oe[ae]=ie;return oe},__unplugin_components_2=_export_sfc(_sfc_main$3,[["__scopeId","data-v-b9b68fc9"]]);/*! + * vue-router v4.4.3 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const isBrowser=typeof document<"u";function isESModule(ee){return ee.__esModule||ee[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams(ee,ne){const oe={};for(const ae in ne){const ie=ne[ae];oe[ae]=isArray$1(ie)?ie.map(ee):ee(ie)}return oe}const noop$2=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(ee){return encodeURI(""+ee).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(ee){return commonEncode(ee).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(ee){return commonEncode(ee).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(ee){return encodeQueryValue(ee).replace(EQUAL_RE,"%3D")}function encodePath(ee){return commonEncode(ee).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(ee){return ee==null?"":encodePath(ee).replace(SLASH_RE,"%2F")}function decode(ee){try{return decodeURIComponent(""+ee)}catch{}return""+ee}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=ee=>ee.replace(TRAILING_SLASH_RE,"");function parseURL(ee,ne,oe="/"){let ae,ie={},se="",de="";const fe=ne.indexOf("#");let ve=ne.indexOf("?");return fe=0&&(ve=-1),ve>-1&&(ae=ne.slice(0,ve),se=ne.slice(ve+1,fe>-1?fe:ne.length),ie=ee(se)),fe>-1&&(ae=ae||ne.slice(0,fe),de=ne.slice(fe,ne.length)),ae=resolveRelativePath(ae??ne,oe),{fullPath:ae+(se&&"?")+se+de,path:ae,query:ie,hash:decode(de)}}function stringifyURL(ee,ne){const oe=ne.query?ee(ne.query):"";return ne.path+(oe&&"?")+oe+(ne.hash||"")}function stripBase(ee,ne){return!ne||!ee.toLowerCase().startsWith(ne.toLowerCase())?ee:ee.slice(ne.length)||"/"}function isSameRouteLocation(ee,ne,oe){const ae=ne.matched.length-1,ie=oe.matched.length-1;return ae>-1&&ae===ie&&isSameRouteRecord(ne.matched[ae],oe.matched[ie])&&isSameRouteLocationParams(ne.params,oe.params)&&ee(ne.query)===ee(oe.query)&&ne.hash===oe.hash}function isSameRouteRecord(ee,ne){return(ee.aliasOf||ee)===(ne.aliasOf||ne)}function isSameRouteLocationParams(ee,ne){if(Object.keys(ee).length!==Object.keys(ne).length)return!1;for(const oe in ee)if(!isSameRouteLocationParamsValue(ee[oe],ne[oe]))return!1;return!0}function isSameRouteLocationParamsValue(ee,ne){return isArray$1(ee)?isEquivalentArray(ee,ne):isArray$1(ne)?isEquivalentArray(ne,ee):ee===ne}function isEquivalentArray(ee,ne){return isArray$1(ne)?ee.length===ne.length&&ee.every((oe,ae)=>oe===ne[ae]):ee.length===1&&ee[0]===ne}function resolveRelativePath(ee,ne){if(ee.startsWith("/"))return ee;if(!ee)return ne;const oe=ne.split("/"),ae=ee.split("/"),ie=ae[ae.length-1];(ie===".."||ie===".")&&ae.push("");let se=oe.length-1,de,fe;for(de=0;de1&&se--;else break;return oe.slice(0,se).join("/")+"/"+ae.slice(de).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(ee){ee.pop="pop",ee.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(ee){ee.back="back",ee.forward="forward",ee.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(ee){if(!ee)if(isBrowser){const ne=document.querySelector("base");ee=ne&&ne.getAttribute("href")||"/",ee=ee.replace(/^\w+:\/\/[^\/]+/,"")}else ee="/";return ee[0]!=="/"&&ee[0]!=="#"&&(ee="/"+ee),removeTrailingSlash(ee)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(ee,ne){return ee.replace(BEFORE_HASH_RE,"#")+ne}function getElementPosition(ee,ne){const oe=document.documentElement.getBoundingClientRect(),ae=ee.getBoundingClientRect();return{behavior:ne.behavior,left:ae.left-oe.left-(ne.left||0),top:ae.top-oe.top-(ne.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(ee){let ne;if("el"in ee){const oe=ee.el,ae=typeof oe=="string"&&oe.startsWith("#"),ie=typeof oe=="string"?ae?document.getElementById(oe.slice(1)):document.querySelector(oe):oe;if(!ie)return;ne=getElementPosition(ie,ee)}else ne=ee;"scrollBehavior"in document.documentElement.style?window.scrollTo(ne):window.scrollTo(ne.left!=null?ne.left:window.scrollX,ne.top!=null?ne.top:window.scrollY)}function getScrollKey(ee,ne){return(history.state?history.state.position-ne:-1)+ee}const scrollPositions=new Map;function saveScrollPosition(ee,ne){scrollPositions.set(ee,ne)}function getSavedScrollPosition(ee){const ne=scrollPositions.get(ee);return scrollPositions.delete(ee),ne}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(ee,ne){const{pathname:oe,search:ae,hash:ie}=ne,se=ee.indexOf("#");if(se>-1){let fe=ie.includes(ee.slice(se))?ee.slice(se).length:1,ve=ie.slice(fe);return ve[0]!=="/"&&(ve="/"+ve),stripBase(ve,"")}return stripBase(oe,ee)+ae+ie}function useHistoryListeners(ee,ne,oe,ae){let ie=[],se=[],de=null;const fe=({state:_e})=>{const Ee=createCurrentLocation(ee,location),we=oe.value,Pe=ne.value;let Ce=0;if(_e){if(oe.value=Ee,ne.value=_e,de&&de===we){de=null;return}Ce=Pe?_e.position-Pe.position:0}else ae(Ee);ie.forEach(Oe=>{Oe(oe.value,we,{delta:Ce,type:NavigationType.pop,direction:Ce?Ce>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function ve(){de=oe.value}function be(_e){ie.push(_e);const Ee=()=>{const we=ie.indexOf(_e);we>-1&&ie.splice(we,1)};return se.push(Ee),Ee}function ye(){const{history:_e}=window;_e.state&&_e.replaceState(assign({},_e.state,{scroll:computeScrollPosition()}),"")}function $e(){for(const _e of se)_e();se=[],window.removeEventListener("popstate",fe),window.removeEventListener("beforeunload",ye)}return window.addEventListener("popstate",fe),window.addEventListener("beforeunload",ye,{passive:!0}),{pauseListeners:ve,listen:be,destroy:$e}}function buildState(ee,ne,oe,ae=!1,ie=!1){return{back:ee,current:ne,forward:oe,replaced:ae,position:window.history.length,scroll:ie?computeScrollPosition():null}}function useHistoryStateNavigation(ee){const{history:ne,location:oe}=window,ae={value:createCurrentLocation(ee,oe)},ie={value:ne.state};ie.value||se(ae.value,{back:null,current:ae.value,forward:null,position:ne.length-1,replaced:!0,scroll:null},!0);function se(ve,be,ye){const $e=ee.indexOf("#"),_e=$e>-1?(oe.host&&document.querySelector("base")?ee:ee.slice($e))+ve:createBaseLocation()+ee+ve;try{ne[ye?"replaceState":"pushState"](be,"",_e),ie.value=be}catch(Ee){console.error(Ee),oe[ye?"replace":"assign"](_e)}}function de(ve,be){const ye=assign({},ne.state,buildState(ie.value.back,ve,ie.value.forward,!0),be,{position:ie.value.position});se(ve,ye,!0),ae.value=ve}function fe(ve,be){const ye=assign({},ie.value,ne.state,{forward:ve,scroll:computeScrollPosition()});se(ye.current,ye,!0);const $e=assign({},buildState(ae.value,ve,null),{position:ye.position+1},be);se(ve,$e,!1),ae.value=ve}return{location:ae,state:ie,push:fe,replace:de}}function createWebHistory(ee){ee=normalizeBase(ee);const ne=useHistoryStateNavigation(ee),oe=useHistoryListeners(ee,ne.state,ne.location,ne.replace);function ae(se,de=!0){de||oe.pauseListeners(),history.go(se)}const ie=assign({location:"",base:ee,go:ae,createHref:createHref.bind(null,ee)},ne,oe);return Object.defineProperty(ie,"location",{enumerable:!0,get:()=>ne.location.value}),Object.defineProperty(ie,"state",{enumerable:!0,get:()=>ne.state.value}),ie}function createWebHashHistory(ee){return ee=location.host?ee||location.pathname+location.search:"",ee.includes("#")||(ee+="#"),createWebHistory(ee)}function isRouteLocation(ee){return typeof ee=="string"||ee&&typeof ee=="object"}function isRouteName(ee){return typeof ee=="string"||typeof ee=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(ee){ee[ee.aborted=4]="aborted",ee[ee.cancelled=8]="cancelled",ee[ee.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(ee,ne){return assign(new Error,{type:ee,[NavigationFailureSymbol]:!0},ne)}function isNavigationFailure(ee,ne){return ee instanceof Error&&NavigationFailureSymbol in ee&&(ne==null||!!(ee.type&ne))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(ee,ne){const oe=assign({},BASE_PATH_PARSER_OPTIONS,ne),ae=[];let ie=oe.start?"^":"";const se=[];for(const be of ee){const ye=be.length?[]:[90];oe.strict&&!be.length&&(ie+="/");for(let $e=0;$ene.length?ne.length===1&&ne[0]===80?1:-1:0}function comparePathParserScore(ee,ne){let oe=0;const ae=ee.score,ie=ne.score;for(;oe0&&ne[ne.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(ee){if(!ee)return[[]];if(ee==="/")return[[ROOT_TOKEN]];if(!ee.startsWith("/"))throw new Error(`Invalid path "${ee}"`);function ne(Ee){throw new Error(`ERR (${oe})/"${be}": ${Ee}`)}let oe=0,ae=oe;const ie=[];let se;function de(){se&&ie.push(se),se=[]}let fe=0,ve,be="",ye="";function $e(){be&&(oe===0?se.push({type:0,value:be}):oe===1||oe===2||oe===3?(se.length>1&&(ve==="*"||ve==="+")&&ne(`A repeatable param (${be}) must be alone in its segment. eg: '/:ids+.`),se.push({type:1,value:be,regexp:ye,repeatable:ve==="*"||ve==="+",optional:ve==="*"||ve==="?"})):ne("Invalid state to consume buffer"),be="")}function _e(){be+=ve}for(;fe{de(Ne)}:noop$2}function de($e){if(isRouteName($e)){const _e=ae.get($e);_e&&(ae.delete($e),oe.splice(oe.indexOf(_e),1),_e.children.forEach(de),_e.alias.forEach(de))}else{const _e=oe.indexOf($e);_e>-1&&(oe.splice(_e,1),$e.record.name&&ae.delete($e.record.name),$e.children.forEach(de),$e.alias.forEach(de))}}function fe(){return oe}function ve($e){const _e=findInsertionIndex($e,oe);oe.splice(_e,0,$e),$e.record.name&&!isAliasRecord($e)&&ae.set($e.record.name,$e)}function be($e,_e){let Ee,we={},Pe,Ce;if("name"in $e&&$e.name){if(Ee=ae.get($e.name),!Ee)throw createRouterError(1,{location:$e});Ce=Ee.record.name,we=assign(paramsFromLocation(_e.params,Ee.keys.filter(Ne=>!Ne.optional).concat(Ee.parent?Ee.parent.keys.filter(Ne=>Ne.optional):[]).map(Ne=>Ne.name)),$e.params&¶msFromLocation($e.params,Ee.keys.map(Ne=>Ne.name))),Pe=Ee.stringify(we)}else if($e.path!=null)Pe=$e.path,Ee=oe.find(Ne=>Ne.re.test(Pe)),Ee&&(we=Ee.parse(Pe),Ce=Ee.record.name);else{if(Ee=_e.name?ae.get(_e.name):oe.find(Ne=>Ne.re.test(_e.path)),!Ee)throw createRouterError(1,{location:$e,currentLocation:_e});Ce=Ee.record.name,we=assign({},_e.params,$e.params),Pe=Ee.stringify(we)}const Oe=[];let Ae=Ee;for(;Ae;)Oe.unshift(Ae.record),Ae=Ae.parent;return{name:Ce,path:Pe,params:we,matched:Oe,meta:mergeMetaFields(Oe)}}ee.forEach($e=>se($e));function ye(){oe.length=0,ae.clear()}return{addRoute:se,resolve:be,removeRoute:de,clearRoutes:ye,getRoutes:fe,getRecordMatcher:ie}}function paramsFromLocation(ee,ne){const oe={};for(const ae of ne)ae in ee&&(oe[ae]=ee[ae]);return oe}function normalizeRouteRecord(ee){return{path:ee.path,redirect:ee.redirect,name:ee.name,meta:ee.meta||{},aliasOf:void 0,beforeEnter:ee.beforeEnter,props:normalizeRecordProps(ee),children:ee.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in ee?ee.components||null:ee.component&&{default:ee.component}}}function normalizeRecordProps(ee){const ne={},oe=ee.props||!1;if("component"in ee)ne.default=oe;else for(const ae in ee.components)ne[ae]=typeof oe=="object"?oe[ae]:oe;return ne}function isAliasRecord(ee){for(;ee;){if(ee.record.aliasOf)return!0;ee=ee.parent}return!1}function mergeMetaFields(ee){return ee.reduce((ne,oe)=>assign(ne,oe.meta),{})}function mergeOptions(ee,ne){const oe={};for(const ae in ee)oe[ae]=ae in ne?ne[ae]:ee[ae];return oe}function findInsertionIndex(ee,ne){let oe=0,ae=ne.length;for(;oe!==ae;){const se=oe+ae>>1;comparePathParserScore(ee,ne[se])<0?ae=se:oe=se+1}const ie=getInsertionAncestor(ee);return ie&&(ae=ne.lastIndexOf(ie,ae-1)),ae}function getInsertionAncestor(ee){let ne=ee;for(;ne=ne.parent;)if(isMatchable(ne)&&comparePathParserScore(ee,ne)===0)return ne}function isMatchable({record:ee}){return!!(ee.name||ee.components&&Object.keys(ee.components).length||ee.redirect)}function parseQuery(ee){const ne={};if(ee===""||ee==="?")return ne;const ae=(ee[0]==="?"?ee.slice(1):ee).split("&");for(let ie=0;iese&&encodeQueryValue(se)):[ae&&encodeQueryValue(ae)]).forEach(se=>{se!==void 0&&(ne+=(ne.length?"&":"")+oe,se!=null&&(ne+="="+se))})}return ne}function normalizeQuery(ee){const ne={};for(const oe in ee){const ae=ee[oe];ae!==void 0&&(ne[oe]=isArray$1(ae)?ae.map(ie=>ie==null?null:""+ie):ae==null?ae:""+ae)}return ne}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let ee=[];function ne(ae){return ee.push(ae),()=>{const ie=ee.indexOf(ae);ie>-1&&ee.splice(ie,1)}}function oe(){ee=[]}return{add:ne,list:()=>ee.slice(),reset:oe}}function registerGuard(ee,ne,oe){const ae=()=>{ee[ne].delete(oe)};onUnmounted(ae),onDeactivated(ae),onActivated(()=>{ee[ne].add(oe)}),ee[ne].add(oe)}function onBeforeRouteLeave(ee){const ne=inject(matchedRouteKey,{}).value;ne&®isterGuard(ne,"leaveGuards",ee)}function guardToPromiseFn(ee,ne,oe,ae,ie,se=de=>de()){const de=ae&&(ae.enterCallbacks[ie]=ae.enterCallbacks[ie]||[]);return()=>new Promise((fe,ve)=>{const be=_e=>{_e===!1?ve(createRouterError(4,{from:oe,to:ne})):_e instanceof Error?ve(_e):isRouteLocation(_e)?ve(createRouterError(2,{from:ne,to:_e})):(de&&ae.enterCallbacks[ie]===de&&typeof _e=="function"&&de.push(_e),fe())},ye=se(()=>ee.call(ae&&ae.instances[ie],ne,oe,be));let $e=Promise.resolve(ye);ee.length<3&&($e=$e.then(be)),$e.catch(_e=>ve(_e))})}function extractComponentsGuards(ee,ne,oe,ae,ie=se=>se()){const se=[];for(const de of ee)for(const fe in de.components){let ve=de.components[fe];if(!(ne!=="beforeRouteEnter"&&!de.instances[fe]))if(isRouteComponent(ve)){const ye=(ve.__vccOpts||ve)[ne];ye&&se.push(guardToPromiseFn(ye,oe,ae,de,fe,ie))}else{let be=ve();se.push(()=>be.then(ye=>{if(!ye)return Promise.reject(new Error(`Couldn't resolve component "${fe}" at "${de.path}"`));const $e=isESModule(ye)?ye.default:ye;de.components[fe]=$e;const Ee=($e.__vccOpts||$e)[ne];return Ee&&guardToPromiseFn(Ee,oe,ae,de,fe,ie)()}))}}return se}function isRouteComponent(ee){return typeof ee=="object"||"displayName"in ee||"props"in ee||"__vccOpts"in ee}function useLink(ee){const ne=inject(routerKey),oe=inject(routeLocationKey),ae=computed(()=>{const ve=unref(ee.to);return ne.resolve(ve)}),ie=computed(()=>{const{matched:ve}=ae.value,{length:be}=ve,ye=ve[be-1],$e=oe.matched;if(!ye||!$e.length)return-1;const _e=$e.findIndex(isSameRouteRecord.bind(null,ye));if(_e>-1)return _e;const Ee=getOriginalPath(ve[be-2]);return be>1&&getOriginalPath(ye)===Ee&&$e[$e.length-1].path!==Ee?$e.findIndex(isSameRouteRecord.bind(null,ve[be-2])):_e}),se=computed(()=>ie.value>-1&&includesParams(oe.params,ae.value.params)),de=computed(()=>ie.value>-1&&ie.value===oe.matched.length-1&&isSameRouteLocationParams(oe.params,ae.value.params));function fe(ve={}){return guardEvent(ve)?ne[unref(ee.replace)?"replace":"push"](unref(ee.to)).catch(noop$2):Promise.resolve()}return{route:ae,href:computed(()=>ae.value.href),isActive:se,isExactActive:de,navigate:fe}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(ee,{slots:ne}){const oe=reactive(useLink(ee)),{options:ae}=inject(routerKey),ie=computed(()=>({[getLinkClass(ee.activeClass,ae.linkActiveClass,"router-link-active")]:oe.isActive,[getLinkClass(ee.exactActiveClass,ae.linkExactActiveClass,"router-link-exact-active")]:oe.isExactActive}));return()=>{const se=ne.default&&ne.default(oe);return ee.custom?se:h$2("a",{"aria-current":oe.isExactActive?ee.ariaCurrentValue:null,href:oe.href,onClick:oe.navigate,class:ie.value},se)}}}),RouterLink=RouterLinkImpl;function guardEvent(ee){if(!(ee.metaKey||ee.altKey||ee.ctrlKey||ee.shiftKey)&&!ee.defaultPrevented&&!(ee.button!==void 0&&ee.button!==0)){if(ee.currentTarget&&ee.currentTarget.getAttribute){const ne=ee.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(ne))return}return ee.preventDefault&&ee.preventDefault(),!0}}function includesParams(ee,ne){for(const oe in ne){const ae=ne[oe],ie=ee[oe];if(typeof ae=="string"){if(ae!==ie)return!1}else if(!isArray$1(ie)||ie.length!==ae.length||ae.some((se,de)=>se!==ie[de]))return!1}return!0}function getOriginalPath(ee){return ee?ee.aliasOf?ee.aliasOf.path:ee.path:""}const getLinkClass=(ee,ne,oe)=>ee??ne??oe,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(ee,{attrs:ne,slots:oe}){const ae=inject(routerViewLocationKey),ie=computed(()=>ee.route||ae.value),se=inject(viewDepthKey,0),de=computed(()=>{let be=unref(se);const{matched:ye}=ie.value;let $e;for(;($e=ye[be])&&!$e.components;)be++;return be}),fe=computed(()=>ie.value.matched[de.value]);provide(viewDepthKey,computed(()=>de.value+1)),provide(matchedRouteKey,fe),provide(routerViewLocationKey,ie);const ve=ref();return watch(()=>[ve.value,fe.value,ee.name],([be,ye,$e],[_e,Ee,we])=>{ye&&(ye.instances[$e]=be,Ee&&Ee!==ye&&be&&be===_e&&(ye.leaveGuards.size||(ye.leaveGuards=Ee.leaveGuards),ye.updateGuards.size||(ye.updateGuards=Ee.updateGuards))),be&&ye&&(!Ee||!isSameRouteRecord(ye,Ee)||!_e)&&(ye.enterCallbacks[$e]||[]).forEach(Pe=>Pe(be))},{flush:"post"}),()=>{const be=ie.value,ye=ee.name,$e=fe.value,_e=$e&&$e.components[ye];if(!_e)return normalizeSlot(oe.default,{Component:_e,route:be});const Ee=$e.props[ye],we=Ee?Ee===!0?be.params:typeof Ee=="function"?Ee(be):Ee:null,Ce=h$2(_e,assign({},we,ne,{onVnodeUnmounted:Oe=>{Oe.component.isUnmounted&&($e.instances[ye]=null)},ref:ve}));return normalizeSlot(oe.default,{Component:Ce,route:be})||Ce}}});function normalizeSlot(ee,ne){if(!ee)return null;const oe=ee(ne);return oe.length===1?oe[0]:oe}const RouterView=RouterViewImpl;function createRouter$1(ee){const ne=createRouterMatcher(ee.routes,ee),oe=ee.parseQuery||parseQuery,ae=ee.stringifyQuery||stringifyQuery,ie=ee.history,se=useCallbacks(),de=useCallbacks(),fe=useCallbacks(),ve=shallowRef(START_LOCATION_NORMALIZED);let be=START_LOCATION_NORMALIZED;isBrowser&&ee.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const ye=applyToParams.bind(null,Ke=>""+Ke),$e=applyToParams.bind(null,encodeParam),_e=applyToParams.bind(null,decode);function Ee(Ke,It){let Lt,Dt;return isRouteName(Ke)?(Lt=ne.getRecordMatcher(Ke),Dt=It):Dt=Ke,ne.addRoute(Dt,Lt)}function we(Ke){const It=ne.getRecordMatcher(Ke);It&&ne.removeRoute(It)}function Pe(){return ne.getRoutes().map(Ke=>Ke.record)}function Ce(Ke){return!!ne.getRecordMatcher(Ke)}function Oe(Ke,It){if(It=assign({},It||ve.value),typeof Ke=="string"){const nt=parseURL(oe,Ke,It.path),Bt=ne.resolve({path:nt.path},It),Gt=ie.createHref(nt.fullPath);return assign(nt,Bt,{params:_e(Bt.params),hash:decode(nt.hash),redirectedFrom:void 0,href:Gt})}let Lt;if(Ke.path!=null)Lt=assign({},Ke,{path:parseURL(oe,Ke.path,It.path).path});else{const nt=assign({},Ke.params);for(const Bt in nt)nt[Bt]==null&&delete nt[Bt];Lt=assign({},Ke,{params:$e(nt)}),It.params=$e(It.params)}const Dt=ne.resolve(Lt,It),tn=Ke.hash||"";Dt.params=ye(_e(Dt.params));const Zt=stringifyURL(ae,assign({},Ke,{hash:encodeHash(tn),path:Dt.path})),Xe=ie.createHref(Zt);return assign({fullPath:Zt,hash:tn,query:ae===stringifyQuery?normalizeQuery(Ke.query):Ke.query||{}},Dt,{redirectedFrom:void 0,href:Xe})}function Ae(Ke){return typeof Ke=="string"?parseURL(oe,Ke,ve.value.path):assign({},Ke)}function Ne(Ke,It){if(be!==Ke)return createRouterError(8,{from:It,to:Ke})}function ke(Ke){return Me(Ke)}function Re(Ke){return ke(assign(Ae(Ke),{replace:!0}))}function Le(Ke){const It=Ke.matched[Ke.matched.length-1];if(It&&It.redirect){const{redirect:Lt}=It;let Dt=typeof Lt=="function"?Lt(Ke):Lt;return typeof Dt=="string"&&(Dt=Dt.includes("?")||Dt.includes("#")?Dt=Ae(Dt):{path:Dt},Dt.params={}),assign({query:Ke.query,hash:Ke.hash,params:Dt.path!=null?{}:Ke.params},Dt)}}function Me(Ke,It){const Lt=be=Oe(Ke),Dt=ve.value,tn=Ke.state,Zt=Ke.force,Xe=Ke.replace===!0,nt=Le(Lt);if(nt)return Me(assign(Ae(nt),{state:typeof nt=="object"?assign({},tn,nt.state):tn,force:Zt,replace:Xe}),It||Lt);const Bt=Lt;Bt.redirectedFrom=It;let Gt;return!Zt&&isSameRouteLocation(ae,Dt,Lt)&&(Gt=createRouterError(16,{to:Bt,from:Dt}),We(Dt,Dt,!0,!1)),(Gt?Promise.resolve(Gt):je(Bt,Dt)).catch(Kt=>isNavigationFailure(Kt)?isNavigationFailure(Kt,2)?Kt:Ut(Kt):Tt(Kt,Bt,Dt)).then(Kt=>{if(Kt){if(isNavigationFailure(Kt,2))return Me(assign({replace:Xe},Ae(Kt.to),{state:typeof Kt.to=="object"?assign({},tn,Kt.to.state):tn,force:Zt}),It||Bt)}else Kt=He(Bt,Dt,!0,Xe,tn);return Be(Bt,Dt,Kt),Kt})}function Ie(Ke,It){const Lt=Ne(Ke,It);return Lt?Promise.reject(Lt):Promise.resolve()}function Fe(Ke){const It=jt.values().next().value;return It&&typeof It.runWithContext=="function"?It.runWithContext(Ke):Ke()}function je(Ke,It){let Lt;const[Dt,tn,Zt]=extractChangingRecords(Ke,It);Lt=extractComponentsGuards(Dt.reverse(),"beforeRouteLeave",Ke,It);for(const nt of Dt)nt.leaveGuards.forEach(Bt=>{Lt.push(guardToPromiseFn(Bt,Ke,It))});const Xe=Ie.bind(null,Ke,It);return Lt.push(Xe),Wt(Lt).then(()=>{Lt=[];for(const nt of se.list())Lt.push(guardToPromiseFn(nt,Ke,It));return Lt.push(Xe),Wt(Lt)}).then(()=>{Lt=extractComponentsGuards(tn,"beforeRouteUpdate",Ke,It);for(const nt of tn)nt.updateGuards.forEach(Bt=>{Lt.push(guardToPromiseFn(Bt,Ke,It))});return Lt.push(Xe),Wt(Lt)}).then(()=>{Lt=[];for(const nt of Zt)if(nt.beforeEnter)if(isArray$1(nt.beforeEnter))for(const Bt of nt.beforeEnter)Lt.push(guardToPromiseFn(Bt,Ke,It));else Lt.push(guardToPromiseFn(nt.beforeEnter,Ke,It));return Lt.push(Xe),Wt(Lt)}).then(()=>(Ke.matched.forEach(nt=>nt.enterCallbacks={}),Lt=extractComponentsGuards(Zt,"beforeRouteEnter",Ke,It,Fe),Lt.push(Xe),Wt(Lt))).then(()=>{Lt=[];for(const nt of de.list())Lt.push(guardToPromiseFn(nt,Ke,It));return Lt.push(Xe),Wt(Lt)}).catch(nt=>isNavigationFailure(nt,8)?nt:Promise.reject(nt))}function Be(Ke,It,Lt){fe.list().forEach(Dt=>Fe(()=>Dt(Ke,It,Lt)))}function He(Ke,It,Lt,Dt,tn){const Zt=Ne(Ke,It);if(Zt)return Zt;const Xe=It===START_LOCATION_NORMALIZED,nt=isBrowser?history.state:{};Lt&&(Dt||Xe?ie.replace(Ke.fullPath,assign({scroll:Xe&&nt&&nt.scroll},tn)):ie.push(Ke.fullPath,tn)),ve.value=Ke,We(Ke,It,Lt,Xe),Ut()}let ot;function Nt(){ot||(ot=ie.listen((Ke,It,Lt)=>{if(!Rt.listening)return;const Dt=Oe(Ke),tn=Le(Dt);if(tn){Me(assign(tn,{replace:!0}),Dt).catch(noop$2);return}be=Dt;const Zt=ve.value;isBrowser&&saveScrollPosition(getScrollKey(Zt.fullPath,Lt.delta),computeScrollPosition()),je(Dt,Zt).catch(Xe=>isNavigationFailure(Xe,12)?Xe:isNavigationFailure(Xe,2)?(Me(Xe.to,Dt).then(nt=>{isNavigationFailure(nt,20)&&!Lt.delta&&Lt.type===NavigationType.pop&&ie.go(-1,!1)}).catch(noop$2),Promise.reject()):(Lt.delta&&ie.go(-Lt.delta,!1),Tt(Xe,Dt,Zt))).then(Xe=>{Xe=Xe||He(Dt,Zt,!1),Xe&&(Lt.delta&&!isNavigationFailure(Xe,8)?ie.go(-Lt.delta,!1):Lt.type===NavigationType.pop&&isNavigationFailure(Xe,20)&&ie.go(-1,!1)),Be(Dt,Zt,Xe)}).catch(noop$2)}))}let st=useCallbacks(),Ue=useCallbacks(),Ze;function Tt(Ke,It,Lt){Ut(Ke);const Dt=Ue.list();return Dt.length?Dt.forEach(tn=>tn(Ke,It,Lt)):console.error(Ke),Promise.reject(Ke)}function Vt(){return Ze&&ve.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Ke,It)=>{st.add([Ke,It])})}function Ut(Ke){return Ze||(Ze=!Ke,Nt(),st.list().forEach(([It,Lt])=>Ke?Lt(Ke):It()),st.reset()),Ke}function We(Ke,It,Lt,Dt){const{scrollBehavior:tn}=ee;if(!isBrowser||!tn)return Promise.resolve();const Zt=!Lt&&getSavedScrollPosition(getScrollKey(Ke.fullPath,0))||(Dt||!Lt)&&history.state&&history.state.scroll||null;return nextTick().then(()=>tn(Ke,It,Zt)).then(Xe=>Xe&&scrollToPosition(Xe)).catch(Xe=>Tt(Xe,Ke,It))}const Pt=Ke=>ie.go(Ke);let Mt;const jt=new Set,Rt={currentRoute:ve,listening:!0,addRoute:Ee,removeRoute:we,clearRoutes:ne.clearRoutes,hasRoute:Ce,getRoutes:Pe,resolve:Oe,options:ee,push:ke,replace:Re,go:Pt,back:()=>Pt(-1),forward:()=>Pt(1),beforeEach:se.add,beforeResolve:de.add,afterEach:fe.add,onError:Ue.add,isReady:Vt,install(Ke){const It=this;Ke.component("RouterLink",RouterLink),Ke.component("RouterView",RouterView),Ke.config.globalProperties.$router=It,Object.defineProperty(Ke.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(ve)}),isBrowser&&!Mt&&ve.value===START_LOCATION_NORMALIZED&&(Mt=!0,ke(ie.location).catch(tn=>{}));const Lt={};for(const tn in START_LOCATION_NORMALIZED)Object.defineProperty(Lt,tn,{get:()=>ve.value[tn],enumerable:!0});Ke.provide(routerKey,It),Ke.provide(routeLocationKey,shallowReactive(Lt)),Ke.provide(routerViewLocationKey,ve);const Dt=Ke.unmount;jt.add(Ke),Ke.unmount=function(){jt.delete(Ke),jt.size<1&&(be=START_LOCATION_NORMALIZED,ot&&ot(),ot=null,ve.value=START_LOCATION_NORMALIZED,Mt=!1,Ze=!1),Dt()}}};function Wt(Ke){return Ke.reduce((It,Lt)=>It.then(()=>Fe(Lt)),Promise.resolve())}return Rt}function extractChangingRecords(ee,ne){const oe=[],ae=[],ie=[],se=Math.max(ne.matched.length,ee.matched.length);for(let de=0;deisSameRouteRecord(be,fe))?ae.push(fe):oe.push(fe));const ve=ee.matched[de];ve&&(ne.matched.find(be=>isSameRouteRecord(be,ve))||ie.push(ve))}return[oe,ae,ie]}function useRouter(){return inject(routerKey)}function useRoute$1(ee){return inject(routeLocationKey)}const _hoisted_1={class:"min-h-screen flex flex-col items-center justify-center"},_hoisted_2={class:"flex flex-col items-center gap-4"},_hoisted_3=createBaseVNode("h1",{class:"m-0 text-6xl font-sans"}," 403 ",-1),_hoisted_4=createBaseVNode("div",{class:"mx-0 text-xl text-stone-5"}," 抱歉,你无权访问该页面 ",-1),_sfc_main$2=defineComponent({name:"NotAllowed",__name:"index",setup(ee){const ne=useRouter(),oe=ref({inter:Number.NaN,countdown:5});onUnmounted(()=>{oe.value.inter&&window.clearInterval(oe.value.inter)}),onMounted(()=>{oe.value.inter=window.setInterval(()=>{oe.value.countdown--,oe.value.countdown===0&&(oe.value.inter&&window.clearInterval(oe.value.inter),ae())},1e3)});function ae(){ne.push("/")}return(ie,se)=>{const de=_sfc_main$9,fe=_sfc_main$7;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(de,{name:"403",class:"text-[300px] -mt-9xl"}),createBaseVNode("div",_hoisted_2,[_hoisted_3,_hoisted_4,createBaseVNode("div",null,[createVNode(fe,{onClick:ae},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe).countdown)+" 秒后,返回首页 ",1)]),_:1})])])])}}});function noop$1(){}const extend$1=Object.assign,inBrowser$1=typeof window<"u",isObject$1=ee=>ee!==null&&typeof ee=="object",isDef=ee=>ee!=null,isFunction$1=ee=>typeof ee=="function",isPromise=ee=>isObject$1(ee)&&isFunction$1(ee.then)&&isFunction$1(ee.catch),isDate$1=ee=>Object.prototype.toString.call(ee)==="[object Date]"&&!Number.isNaN(ee.getTime());function isMobile(ee){return ee=ee.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(ee)||/^0[0-9-]{10,13}$/.test(ee)}const isNumeric=ee=>typeof ee=="number"||/^\d+(\.\d+)?$/.test(ee),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(ee,ne){const oe=ne.split(".");let ae=ee;return oe.forEach(ie=>{var se;ae=isObject$1(ae)&&(se=ae[ie])!=null?se:""}),ae}function pick(ee,ne,oe){return ne.reduce((ae,ie)=>((!oe||ee[ie]!==void 0)&&(ae[ie]=ee[ie]),ae),{})}const isSameValue=(ee,ne)=>JSON.stringify(ee)===JSON.stringify(ne),toArray$1=ee=>Array.isArray(ee)?ee:[ee],flat=ee=>ee.reduce((ne,oe)=>ne.concat(oe),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=ee=>({type:ee,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumberProp=ee=>({type:Number,default:ee}),makeNumericProp=ee=>({type:numericProp,default:ee}),makeStringProp=ee=>({type:String,default:ee});var inBrowser=typeof window<"u";function raf(ee){return inBrowser?requestAnimationFrame(ee):-1}function cancelRaf(ee){inBrowser&&cancelAnimationFrame(ee)}function doubleRaf(ee){raf(()=>raf(ee))}var isWindow=ee=>ee===window,makeDOMRect=(ee,ne)=>({top:0,left:0,right:ee,bottom:ne,width:ee,height:ne}),useRect=ee=>{const ne=unref(ee);if(isWindow(ne)){const oe=ne.innerWidth,ae=ne.innerHeight;return makeDOMRect(oe,ae)}return ne!=null&&ne.getBoundingClientRect?ne.getBoundingClientRect():makeDOMRect(0,0)};function useToggle(ee=!1){const ne=ref(ee);return[ne,(ae=!ne.value)=>{ne.value=ae}]}function useParent(ee){const ne=inject(ee,null);if(ne){const oe=getCurrentInstance(),{link:ae,unlink:ie,internalChildren:se}=ne;ae(oe),onUnmounted(()=>ie(oe));const de=computed(()=>se.indexOf(oe));return{parent:ne,index:de}}return{parent:null,index:ref(-1)}}function flattenVNodes(ee){const ne=[],oe=ae=>{Array.isArray(ae)&&ae.forEach(ie=>{var se;isVNode$1(ie)&&(ne.push(ie),(se=ie.component)!=null&&se.subTree&&(ne.push(ie.component.subTree),oe(ie.component.subTree.children)),ie.children&&oe(ie.children))})};return oe(ee),ne}var findVNodeIndex=(ee,ne)=>{const oe=ee.indexOf(ne);return oe===-1?ee.findIndex(ae=>ne.key!==void 0&&ne.key!==null&&ae.type===ne.type&&ae.key===ne.key):oe};function sortChildren(ee,ne,oe){const ae=flattenVNodes(ee.subTree.children);oe.sort((se,de)=>findVNodeIndex(ae,se.vnode)-findVNodeIndex(ae,de.vnode));const ie=oe.map(se=>se.proxy);ne.sort((se,de)=>{const fe=ie.indexOf(se),ve=ie.indexOf(de);return fe-ve})}function useChildren(ee){const ne=reactive([]),oe=reactive([]),ae=getCurrentInstance();return{children:ne,linkChildren:se=>{provide(ee,Object.assign({link:ve=>{ve.proxy&&(oe.push(ve),ne.push(ve.proxy),sortChildren(ae,ne,oe))},unlink:ve=>{const be=oe.indexOf(ve);ne.splice(be,1),oe.splice(be,1)},children:ne,internalChildren:oe},se))}}}var SECOND=1e3,MINUTE=60*SECOND,HOUR=60*MINUTE,DAY=24*HOUR;function parseTime(ee){const ne=Math.floor(ee/DAY),oe=Math.floor(ee%DAY/HOUR),ae=Math.floor(ee%HOUR/MINUTE),ie=Math.floor(ee%MINUTE/SECOND),se=Math.floor(ee%SECOND);return{total:ee,days:ne,hours:oe,minutes:ae,seconds:ie,milliseconds:se}}function isSameSecond(ee,ne){return Math.floor(ee/1e3)===Math.floor(ne/1e3)}function useCountDown(ee){let ne,oe,ae,ie;const se=ref(ee.time),de=computed(()=>parseTime(se.value)),fe=()=>{ae=!1,cancelRaf(ne)},ve=()=>Math.max(oe-Date.now(),0),be=Pe=>{var Ce,Oe;se.value=Pe,(Ce=ee.onChange)==null||Ce.call(ee,de.value),Pe===0&&(fe(),(Oe=ee.onFinish)==null||Oe.call(ee))},ye=()=>{ne=raf(()=>{ae&&(be(ve()),se.value>0&&ye())})},$e=()=>{ne=raf(()=>{if(ae){const Pe=ve();(!isSameSecond(Pe,se.value)||Pe===0)&&be(Pe),se.value>0&&$e()}})},_e=()=>{inBrowser&&(ee.millisecond?ye():$e())},Ee=()=>{ae||(oe=Date.now()+se.value,ae=!0,_e())},we=(Pe=ee.time)=>{fe(),se.value=Pe};return onBeforeUnmount(fe),onActivated(()=>{ie&&(ae=!0,ie=!1,_e())}),onDeactivated(()=>{ae&&(fe(),ie=!0)}),{start:Ee,pause:fe,reset:we,current:de}}function onMountedOrActivated(ee){let ne;onMounted(()=>{ee(),nextTick(()=>{ne=!0})}),onActivated(()=>{ne&&ee()})}function useEventListener(ee,ne,oe={}){if(!inBrowser)return;const{target:ae=window,passive:ie=!1,capture:se=!1}=oe;let de=!1,fe;const ve=$e=>{if(de)return;const _e=unref($e);_e&&!fe&&(_e.addEventListener(ee,ne,{capture:se,passive:ie}),fe=!0)},be=$e=>{if(de)return;const _e=unref($e);_e&&fe&&(_e.removeEventListener(ee,ne,se),fe=!1)};onUnmounted(()=>be(ae)),onDeactivated(()=>be(ae)),onMountedOrActivated(()=>ve(ae));let ye;return isRef(ae)&&(ye=watch(ae,($e,_e)=>{be(_e),ve($e)})),()=>{ye==null||ye(),be(ae),de=!0}}function useClickAway(ee,ne,oe={}){if(!inBrowser)return;const{eventName:ae="click"}=oe;useEventListener(ae,se=>{(Array.isArray(ee)?ee:[ee]).every(ve=>{const be=unref(ve);return be&&!be.contains(se.target)})&&ne(se)},{target:document})}var width,height;function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser)){const ee=()=>{width.value=window.innerWidth,height.value=window.innerHeight};ee(),window.addEventListener("resize",ee,{passive:!0}),window.addEventListener("orientationchange",ee,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement$1(ee){return ee.tagName!=="HTML"&&ee.tagName!=="BODY"&&ee.nodeType===1}function getScrollParent$1(ee,ne=defaultRoot){let oe=ee;for(;oe&&oe!==ne&&isElement$1(oe);){const{overflowY:ae}=window.getComputedStyle(oe);if(overflowScrollReg.test(ae))return oe;oe=oe.parentNode}return ne}function useScrollParent(ee,ne=defaultRoot){const oe=ref();return onMounted(()=>{ee.value&&(oe.value=getScrollParent$1(ee.value,ne))}),oe}var visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){const ee=()=>{visibility.value=document.hidden?"hidden":"visible"};ee(),window.addEventListener("visibilitychange",ee)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(ee){const ne=inject(CUSTOM_FIELD_INJECTION_KEY,null);ne&&!ne.customValue.value&&(ne.customValue.value=ee,watch(ee,()=>{ne.resetValidation(),ne.validateWithTrigger("onChange")}))}function getScrollTop(ee){const ne="scrollTop"in ee?ee.scrollTop:ee.pageYOffset;return Math.max(ne,0)}function setScrollTop(ee,ne){"scrollTop"in ee?ee.scrollTop=ne:ee.scrollTo(ee.scrollX,ne)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(ee){setScrollTop(window,ee),setScrollTop(document.body,ee)}function getElementTop(ee,ne){if(ee===window)return 0;const oe=ne?getScrollTop(ne):getRootScrollTop();return useRect(ee).top+oe}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=ee=>ee.stopPropagation();function preventDefault(ee,ne){(typeof ee.cancelable!="boolean"||ee.cancelable)&&ee.preventDefault(),ne&&stopPropagation(ee)}function isHidden(ee){const ne=unref(ee);if(!ne)return!1;const oe=window.getComputedStyle(ne),ae=oe.display==="none",ie=ne.offsetParent===null&&oe.position!=="fixed";return ae||ie}const{width:windowWidth,height:windowHeight}=useWindowSize();function isContainingBlock(ee){const ne=window.getComputedStyle(ee);return ne.transform!=="none"||ne.perspective!=="none"||["transform","perspective","filter"].some(oe=>(ne.willChange||"").includes(oe))}function getContainingBlock$1(ee){let ne=ee.parentElement;for(;ne;){if(ne&&ne.tagName!=="HTML"&&ne.tagName!=="BODY"&&isContainingBlock(ne))return ne;ne=ne.parentElement}return null}function addUnit(ee){if(isDef(ee))return isNumeric(ee)?`${ee}px`:String(ee)}function getSizeStyle(ee){if(isDef(ee)){if(Array.isArray(ee))return{width:addUnit(ee[0]),height:addUnit(ee[1])};const ne=addUnit(ee);return{width:ne,height:ne}}}function getZIndexStyle(ee){const ne={};return ee!==void 0&&(ne.zIndex=+ee),ne}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const ee=document.documentElement,ne=ee.style.fontSize||window.getComputedStyle(ee).fontSize;rootFontSize=parseFloat(ne)}return rootFontSize}function convertRem(ee){return ee=ee.replace(/rem/g,""),+ee*getRootFontSize()}function convertVw(ee){return ee=ee.replace(/vw/g,""),+ee*windowWidth.value/100}function convertVh(ee){return ee=ee.replace(/vh/g,""),+ee*windowHeight.value/100}function unitToPx(ee){if(typeof ee=="number")return ee;if(inBrowser$1){if(ee.includes("rem"))return convertRem(ee);if(ee.includes("vw"))return convertVw(ee);if(ee.includes("vh"))return convertVh(ee)}return parseFloat(ee)}const camelizeRE=/-(\w)/g,camelize=ee=>ee.replace(camelizeRE,(ne,oe)=>oe.toUpperCase()),kebabCase=ee=>ee.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(ee,ne=2){let oe=ee+"";for(;oe.lengthMath.min(Math.max(ee,ne),oe);function trimExtraChar(ee,ne,oe){const ae=ee.indexOf(ne);return ae===-1?ee:ne==="-"&&ae!==0?ee.slice(0,ae):ee.slice(0,ae+1)+ee.slice(ae).replace(oe,"")}function formatNumber(ee,ne=!0,oe=!0){ne?ee=trimExtraChar(ee,".",/\./g):ee=ee.split(".")[0],oe?ee=trimExtraChar(ee,"-",/-/g):ee=ee.replace(/-/,"");const ae=ne?/[^-0-9.]/g:/[^-0-9]/g;return ee.replace(ae,"")}function addNumber(ee,ne){return Math.round((ee+ne)*1e10)/1e10}const{hasOwnProperty:hasOwnProperty$1}=Object.prototype;function assignKey(ee,ne,oe){const ae=ne[oe];isDef(ae)&&(!hasOwnProperty$1.call(ee,oe)||!isObject$1(ae)?ee[oe]=ae:ee[oe]=deepAssign(Object(ee[oe]),ae))}function deepAssign(ee,ne){return Object.keys(ne).forEach(oe=>{assignKey(ee,ne,oe)}),ee}var stdin_default$1U={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(ee,ne)=>`${ee}年${ne}月`,rangePrompt:ee=>`最多选择 ${ee} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:ee=>`${ee}折`,condition:ee=>`满${ee}元可用`},vanCouponCell:{title:"优惠券",count:ee=>`${ee}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=ref("zh-CN"),messages=reactive({"zh-CN":stdin_default$1U}),Locale={messages(){return messages[lang.value]},use(ee,ne){lang.value=ee,this.add({[ee]:ne})},add(ee={}){deepAssign(messages,ee)}};var stdin_default$1T=Locale;function createTranslate(ee){const ne=camelize(ee)+".";return(oe,...ae)=>{const ie=stdin_default$1T.messages(),se=get(ie,ne+oe)||get(ie,oe);return isFunction$1(se)?se(...ae):se}}function genBem(ee,ne){return ne?typeof ne=="string"?` ${ee}--${ne}`:Array.isArray(ne)?ne.reduce((oe,ae)=>oe+genBem(ee,ae),""):Object.keys(ne).reduce((oe,ae)=>oe+(ne[ae]?genBem(ee,ae):""),""):""}function createBEM(ee){return(ne,oe)=>(ne&&typeof ne!="string"&&(oe=ne,ne=""),ne=ne?`${ee}__${ne}`:ee,`${ne}${genBem(ne,oe)}`)}function createNamespace(ee){const ne=`van-${ee}`;return[ne,createBEM(ne),createTranslate(ne)]}const BORDER="van-hairline",BORDER_TOP=`${BORDER}--top`,BORDER_LEFT=`${BORDER}--left`,BORDER_RIGHT=`${BORDER}--right`,BORDER_BOTTOM=`${BORDER}--bottom`,BORDER_SURROUND=`${BORDER}--surround`,BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),LONG_PRESS_START_TIME=500,TAP_OFFSET=5;function callInterceptor(ee,{args:ne=[],done:oe,canceled:ae,error:ie}){if(ee){const se=ee.apply(null,ne);isPromise(se)?se.then(de=>{de?oe():ae&&ae()}).catch(ie||noop$1):se?oe():ae&&ae()}else oe()}function withInstall(ee){return ee.install=ne=>{const{name:oe}=ee;oe&&(ne.component(oe,ee),ne.component(camelize(`-${oe}`),ee))},ee}function closest(ee,ne){return ee.reduce((oe,ae)=>Math.abs(oe-ne){oe&&ee()})}const useHeight=(ee,ne)=>{const oe=ref(),ae=()=>{oe.value=useRect(ee).height};return onMounted(()=>{if(nextTick(ae),ne)for(let ie=1;ie<=3;ie++)setTimeout(ae,100*ie)}),onPopupReopen(()=>nextTick(ae)),watch([windowWidth,windowHeight],ae),oe};function usePlaceholder(ee,ne){const oe=useHeight(ee,!0);return ae=>createVNode("div",{class:ne("placeholder"),style:{height:oe.value?`${oe.value}px`:void 0}},[ae()])}const[name$1K,bem$1F]=createNamespace("action-bar"),ACTION_BAR_KEY=Symbol(name$1K),actionBarProps={placeholder:Boolean,safeAreaInsetBottom:truthProp};var stdin_default$1S=defineComponent({name:name$1K,props:actionBarProps,setup(ee,{slots:ne}){const oe=ref(),ae=usePlaceholder(oe,bem$1F),{linkChildren:ie}=useChildren(ACTION_BAR_KEY);ie();const se=()=>{var de;return createVNode("div",{ref:oe,class:[bem$1F(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[(de=ne.default)==null?void 0:de.call(ne)])};return()=>ee.placeholder?ae(se):se()}});const ActionBar=withInstall(stdin_default$1S);function useExpose(ee){const ne=getCurrentInstance();ne&&extend$1(ne.proxy,ee)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:ee,url:ne,replace:oe,$router:ae}){ee&&ae?ae[oe?"replace":"push"](ee):ne&&(oe?location.replace(ne):location.href=ne)}function useRoute(){const ee=getCurrentInstance().proxy;return()=>route(ee)}const[name$1J,bem$1E]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$1R=defineComponent({name:name$1J,props:badgeProps,setup(ee,{slots:ne}){const oe=()=>{if(ne.content)return!0;const{content:fe,showZero:ve}=ee;return isDef(fe)&&fe!==""&&(ve||fe!==0&&fe!=="0")},ae=()=>{const{dot:fe,max:ve,content:be}=ee;if(!fe&&oe())return ne.content?ne.content():isDef(ve)&&isNumeric(be)&&+be>+ve?`${ve}+`:be},ie=fe=>fe.startsWith("-")?fe.replace("-",""):`-${fe}`,se=computed(()=>{const fe={background:ee.color};if(ee.offset){const[ve,be]=ee.offset,{position:ye}=ee,[$e,_e]=ye.split("-");ne.default?(typeof be=="number"?fe[$e]=addUnit($e==="top"?be:-be):fe[$e]=$e==="top"?addUnit(be):ie(be),typeof ve=="number"?fe[_e]=addUnit(_e==="left"?ve:-ve):fe[_e]=_e==="left"?addUnit(ve):ie(ve)):(fe.marginTop=addUnit(be),fe.marginLeft=addUnit(ve))}return fe}),de=()=>{if(oe()||ee.dot)return createVNode("div",{class:bem$1E([ee.position,{dot:ee.dot,fixed:!!ne.default}]),style:se.value},[ae()])};return()=>{if(ne.default){const{tag:fe}=ee;return createVNode(fe,{class:bem$1E("wrapper")},{default:()=>[ne.default(),de()]})}return de()}}});const Badge=withInstall(stdin_default$1R);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=ee=>{globalZIndex=ee},[name$1I,bem$1D]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$1I),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(ee){return ee.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(ee){const ne={};return Object.keys(ee).forEach(oe=>{const ae=insertDash(kebabCase(oe));ne[`--van-${ae}`]=ee[oe]}),ne}function syncThemeVarsOnRoot(ee={},ne={}){Object.keys(ee).forEach(oe=>{ee[oe]!==ne[oe]&&document.documentElement.style.setProperty(oe,ee[oe])}),Object.keys(ne).forEach(oe=>{ee[oe]||document.documentElement.style.removeProperty(oe)})}var stdin_default$1Q=defineComponent({name:name$1I,props:configProviderProps,setup(ee,{slots:ne}){const oe=computed(()=>mapThemeVarsToCSSVars(extend$1({},ee.themeVars,ee.theme==="dark"?ee.themeVarsDark:ee.themeVarsLight)));if(inBrowser$1){const ae=()=>{document.documentElement.classList.add(`van-theme-${ee.theme}`)},ie=(se=ee.theme)=>{document.documentElement.classList.remove(`van-theme-${se}`)};watch(()=>ee.theme,(se,de)=>{de&&ie(de),ae()},{immediate:!0}),onActivated(ae),onDeactivated(ie),onBeforeUnmount(ie),watch(oe,(se,de)=>{ee.themeVarsScope==="global"&&syncThemeVarsOnRoot(se,de)}),watch(()=>ee.themeVarsScope,(se,de)=>{de==="global"&&syncThemeVarsOnRoot({},oe.value),se==="global"&&syncThemeVarsOnRoot(oe.value,{})}),ee.themeVarsScope==="global"&&syncThemeVarsOnRoot(oe.value,{})}return provide(CONFIG_PROVIDER_KEY,ee),watchEffect(()=>{ee.zIndex!==void 0&&setGlobalZIndex(ee.zIndex)}),()=>createVNode(ee.tag,{class:bem$1D(),style:ee.themeVarsScope==="local"?oe.value:void 0},{default:()=>{var ae;return[(ae=ne.default)==null?void 0:ae.call(ne)]}})}});const[name$1H,bem$1C]=createNamespace("icon"),isImage$1=ee=>ee==null?void 0:ee.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$1P=defineComponent({name:name$1H,props:iconProps,setup(ee,{slots:ne}){const oe=inject(CONFIG_PROVIDER_KEY,null),ae=computed(()=>ee.classPrefix||(oe==null?void 0:oe.iconPrefix)||bem$1C());return()=>{const{tag:ie,dot:se,name:de,size:fe,badge:ve,color:be}=ee,ye=isImage$1(de);return createVNode(Badge,mergeProps({dot:se,tag:ie,class:[ae.value,ye?"":`${ae.value}-${de}`],style:{color:be,fontSize:addUnit(fe)},content:ve},ee.badgeProps),{default:()=>{var $e;return[($e=ne.default)==null?void 0:$e.call(ne),ye&&createVNode("img",{class:bem$1C("image"),src:de},null)]}})}}});const Icon=withInstall(stdin_default$1P);var stdin_default$1O=Icon;const[name$1G,bem$1B]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((ee,ne)=>createVNode("i",{class:bem$1B("line",String(ne+1))},null)),CircularIcon=createVNode("svg",{class:bem$1B("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$1N=defineComponent({name:name$1G,props:loadingProps,setup(ee,{slots:ne}){const oe=computed(()=>extend$1({color:ee.color},getSizeStyle(ee.size))),ae=()=>{const se=ee.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$1B("spinner",ee.type),style:oe.value},[ne.icon?ne.icon():se])},ie=()=>{var se;if(ne.default)return createVNode("span",{class:bem$1B("text"),style:{fontSize:addUnit(ee.textSize),color:(se=ee.textColor)!=null?se:ee.color}},[ne.default()])};return()=>{const{type:se,vertical:de}=ee;return createVNode("div",{class:bem$1B([se,{vertical:de}]),"aria-live":"polite","aria-busy":!0},[ae(),ie()])}}});const Loading=withInstall(stdin_default$1N),[name$1F,bem$1A]=createNamespace("button"),buttonProps=extend$1({},routeProps,{tag:makeStringProp("button"),text:String,icon:String,type:makeStringProp("default"),size:makeStringProp("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:makeStringProp("button"),loadingSize:numericProp,loadingText:String,loadingType:String,iconPosition:makeStringProp("left")});var stdin_default$1M=defineComponent({name:name$1F,props:buttonProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),ie=()=>oe.loading?oe.loading():createVNode(Loading,{size:ee.loadingSize,type:ee.loadingType,class:bem$1A("loading")},null),se=()=>{if(ee.loading)return ie();if(oe.icon)return createVNode("div",{class:bem$1A("icon")},[oe.icon()]);if(ee.icon)return createVNode(Icon,{name:ee.icon,class:bem$1A("icon"),classPrefix:ee.iconPrefix},null)},de=()=>{let be;if(ee.loading?be=ee.loadingText:be=oe.default?oe.default():ee.text,be)return createVNode("span",{class:bem$1A("text")},[be])},fe=()=>{const{color:be,plain:ye}=ee;if(be){const $e={color:ye?be:"white"};return ye||($e.background=be),be.includes("gradient")?$e.border=0:$e.borderColor=be,$e}},ve=be=>{ee.loading?preventDefault(be):ee.disabled||(ne("click",be),ae())};return()=>{const{tag:be,type:ye,size:$e,block:_e,round:Ee,plain:we,square:Pe,loading:Ce,disabled:Oe,hairline:Ae,nativeType:Ne,iconPosition:ke}=ee,Re=[bem$1A([ye,$e,{plain:we,block:_e,round:Ee,square:Pe,loading:Ce,disabled:Oe,hairline:Ae}]),{[BORDER_SURROUND]:Ae}];return createVNode(be,{type:Ne,class:Re,style:fe(),disabled:Oe,onClick:ve},{default:()=>[createVNode("div",{class:bem$1A("content")},[ke==="left"&&se(),de(),ke==="right"&&se()])]})}}});const Button=withInstall(stdin_default$1M),[name$1E,bem$1z]=createNamespace("action-bar-button"),actionBarButtonProps=extend$1({},routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var stdin_default$1L=defineComponent({name:name$1E,props:actionBarButtonProps,setup(ee,{slots:ne}){const oe=useRoute(),{parent:ae,index:ie}=useParent(ACTION_BAR_KEY),se=computed(()=>{if(ae){const fe=ae.children[ie.value-1];return!(fe&&"isButton"in fe)}}),de=computed(()=>{if(ae){const fe=ae.children[ie.value+1];return!(fe&&"isButton"in fe)}});return useExpose({isButton:!0}),()=>{const{type:fe,icon:ve,text:be,color:ye,loading:$e,disabled:_e}=ee;return createVNode(Button,{class:bem$1z([fe,{last:de.value,first:se.value}]),size:"large",type:fe,icon:ve,color:ye,loading:$e,disabled:_e,onClick:oe},{default:()=>[ne.default?ne.default():be]})}}});const ActionBarButton=withInstall(stdin_default$1L),[name$1D,bem$1y]=createNamespace("action-bar-icon"),actionBarIconProps=extend$1({},routeProps,{dot:Boolean,text:String,icon:String,color:String,badge:numericProp,iconClass:unknownProp,badgeProps:Object,iconPrefix:String});var stdin_default$1K=defineComponent({name:name$1D,props:actionBarIconProps,setup(ee,{slots:ne}){const oe=useRoute();useParent(ACTION_BAR_KEY);const ae=()=>{const{dot:ie,badge:se,icon:de,color:fe,iconClass:ve,badgeProps:be,iconPrefix:ye}=ee;return ne.icon?createVNode(Badge,mergeProps({dot:ie,class:bem$1y("icon"),content:se},be),{default:ne.icon}):createVNode(Icon,{tag:"div",dot:ie,name:de,badge:se,color:fe,class:[bem$1y("icon"),ve],badgeProps:be,classPrefix:ye},null)};return()=>createVNode("div",{role:"button",class:bem$1y(),tabindex:0,onClick:oe},[ae(),ne.default?ne.default():ee.text])}});const ActionBarIcon=withInstall(stdin_default$1K),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp},popupSharedPropKeys=Object.keys(popupSharedProps);function getDirection(ee,ne){return ee>ne?"horizontal":ne>ee?"vertical":""}function useTouch(){const ee=ref(0),ne=ref(0),oe=ref(0),ae=ref(0),ie=ref(0),se=ref(0),de=ref(""),fe=ref(!0),ve=()=>de.value==="vertical",be=()=>de.value==="horizontal",ye=()=>{oe.value=0,ae.value=0,ie.value=0,se.value=0,de.value="",fe.value=!0};return{move:Ee=>{const we=Ee.touches[0];oe.value=(we.clientX<0?0:we.clientX)-ee.value,ae.value=we.clientY-ne.value,ie.value=Math.abs(oe.value),se.value=Math.abs(ae.value);const Pe=10;(!de.value||ie.valueTAP_OFFSET||se.value>TAP_OFFSET)&&(fe.value=!1)},start:Ee=>{ye(),ee.value=Ee.touches[0].clientX,ne.value=Ee.touches[0].clientY},reset:ye,startX:ee,startY:ne,deltaX:oe,deltaY:ae,offsetX:ie,offsetY:se,direction:de,isVertical:ve,isHorizontal:be,isTap:fe}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(ee,ne){const oe=useTouch(),ae="01",ie="10",se=ye=>{oe.move(ye);const $e=oe.deltaY.value>0?ie:ae,_e=getScrollParent$1(ye.target,ee.value),{scrollHeight:Ee,offsetHeight:we,scrollTop:Pe}=_e;let Ce="11";Pe===0?Ce=we>=Ee?"00":"01":Pe+we>=Ee&&(Ce="10"),Ce!=="11"&&oe.isVertical()&&!(parseInt(Ce,2)&parseInt($e,2))&&preventDefault(ye,!0)},de=()=>{document.addEventListener("touchstart",oe.start),document.addEventListener("touchmove",se,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},fe=()=>{totalLockCount&&(document.removeEventListener("touchstart",oe.start),document.removeEventListener("touchmove",se),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},ve=()=>ne()&&de(),be=()=>ne()&&fe();onMountedOrActivated(ve),onDeactivated(be),onBeforeUnmount(be),watch(ne,ye=>{ye?de():fe()})}function useLazyRender(ee){const ne=ref(!1);return watch(ee,oe=>{oe&&(ne.value=oe)},{immediate:!0}),oe=>()=>ne.value?oe():null}const useScopeId=()=>{var ee;const{scopeId:ne}=((ee=getCurrentInstance())==null?void 0:ee.vnode)||{};return ne?{[ne]:""}:null},[name$1C,bem$1x]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object};var stdin_default$1J=defineComponent({name:name$1C,props:overlayProps,setup(ee,{slots:ne}){const oe=ref(),ae=useLazyRender(()=>ee.show||!ee.lazyRender),ie=de=>{ee.lockScroll&&preventDefault(de,!0)},se=ae(()=>{var de;const fe=extend$1(getZIndexStyle(ee.zIndex),ee.customStyle);return isDef(ee.duration)&&(fe.animationDuration=`${ee.duration}s`),withDirectives(createVNode("div",{ref:oe,style:fe,class:[bem$1x(),ee.className]},[(de=ne.default)==null?void 0:de.call(ne)]),[[vShow,ee.show]])});return useEventListener("touchmove",ie,{target:oe}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:se})}});const Overlay=withInstall(stdin_default$1J),popupProps$2=extend$1({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$1B,bem$1w]=createNamespace("popup");var stdin_default$1I=defineComponent({name:name$1B,inheritAttrs:!1,props:popupProps$2,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(ee,{emit:ne,attrs:oe,slots:ae}){let ie,se;const de=ref(),fe=ref(),ve=useLazyRender(()=>ee.show||!ee.lazyRender),be=computed(()=>{const Le={zIndex:de.value};if(isDef(ee.duration)){const Me=ee.position==="center"?"animationDuration":"transitionDuration";Le[Me]=`${ee.duration}s`}return Le}),ye=()=>{ie||(ie=!0,de.value=ee.zIndex!==void 0?+ee.zIndex:useGlobalZIndex(),ne("open"))},$e=()=>{ie&&callInterceptor(ee.beforeClose,{done(){ie=!1,ne("close"),ne("update:show",!1)}})},_e=Le=>{ne("clickOverlay",Le),ee.closeOnClickOverlay&&$e()},Ee=()=>{if(ee.overlay)return createVNode(Overlay,mergeProps({show:ee.show,class:ee.overlayClass,zIndex:de.value,duration:ee.duration,customStyle:ee.overlayStyle,role:ee.closeOnClickOverlay?"button":void 0,tabindex:ee.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:_e}),{default:ae["overlay-content"]})},we=Le=>{ne("clickCloseIcon",Le),$e()},Pe=()=>{if(ee.closeable)return createVNode(Icon,{role:"button",tabindex:0,name:ee.closeIcon,class:[bem$1w("close-icon",ee.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:ee.iconPrefix,onClick:we},null)};let Ce;const Oe=()=>{Ce&&clearTimeout(Ce),Ce=setTimeout(()=>{ne("opened")})},Ae=()=>ne("closed"),Ne=Le=>ne("keydown",Le),ke=ve(()=>{var Le;const{round:Me,position:Ie,safeAreaInsetTop:Fe,safeAreaInsetBottom:je}=ee;return withDirectives(createVNode("div",mergeProps({ref:fe,style:be.value,role:"dialog",tabindex:0,class:[bem$1w({round:Me,[Ie]:Ie}),{"van-safe-area-top":Fe,"van-safe-area-bottom":je}],onKeydown:Ne},oe,useScopeId()),[(Le=ae.default)==null?void 0:Le.call(ae),Pe()]),[[vShow,ee.show]])}),Re=()=>{const{position:Le,transition:Me,transitionAppear:Ie}=ee,Fe=Le==="center"?"van-fade":`van-popup-slide-${Le}`;return createVNode(Transition,{name:Me||Fe,appear:Ie,onAfterEnter:Oe,onAfterLeave:Ae},{default:ke})};return watch(()=>ee.show,Le=>{Le&&!ie&&(ye(),oe.tabindex===0&&nextTick(()=>{var Me;(Me=fe.value)==null||Me.focus()})),!Le&&ie&&(ie=!1,ne("close"))}),useExpose({popupRef:fe}),useLockScroll(fe,()=>ee.show&&ee.lockScroll),useEventListener("popstate",()=>{ee.closeOnPopstate&&($e(),se=!1)}),onMounted(()=>{ee.show&&ye()}),onActivated(()=>{se&&(ne("update:show",!0),se=!1)}),onDeactivated(()=>{ee.show&&ee.teleport&&($e(),se=!0)}),provide(POPUP_TOGGLE_KEY,()=>ee.show),()=>ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ee(),Re()]}):createVNode(Fragment,null,[Ee(),Re()])}});const Popup=withInstall(stdin_default$1I),[name$1A,bem$1v]=createNamespace("action-sheet"),actionSheetProps=extend$1({},popupSharedProps,{title:String,round:truthProp,actions:makeArrayProp(),closeIcon:makeStringProp("cross"),closeable:truthProp,cancelText:String,description:String,closeOnPopstate:truthProp,closeOnClickAction:Boolean,safeAreaInsetBottom:truthProp}),popupInheritKeys$2=[...popupSharedPropKeys,"round","closeOnPopstate","safeAreaInsetBottom"];var stdin_default$1H=defineComponent({name:name$1A,props:actionSheetProps,emits:["select","cancel","update:show"],setup(ee,{slots:ne,emit:oe}){const ae=$e=>oe("update:show",$e),ie=()=>{ae(!1),oe("cancel")},se=()=>{if(ee.title)return createVNode("div",{class:bem$1v("header")},[ee.title,ee.closeable&&createVNode(Icon,{name:ee.closeIcon,class:[bem$1v("close"),HAPTICS_FEEDBACK],onClick:ie},null)])},de=()=>{if(ne.cancel||ee.cancelText)return[createVNode("div",{class:bem$1v("gap")},null),createVNode("button",{type:"button",class:bem$1v("cancel"),onClick:ie},[ne.cancel?ne.cancel():ee.cancelText])]},fe=$e=>{if($e.icon)return createVNode(Icon,{class:bem$1v("item-icon"),name:$e.icon},null)},ve=($e,_e)=>$e.loading?createVNode(Loading,{class:bem$1v("loading-icon")},null):ne.action?ne.action({action:$e,index:_e}):[createVNode("span",{class:bem$1v("name")},[$e.name]),$e.subname&&createVNode("div",{class:bem$1v("subname")},[$e.subname])],be=($e,_e)=>{const{color:Ee,loading:we,callback:Pe,disabled:Ce,className:Oe}=$e,Ae=()=>{Ce||we||(Pe&&Pe($e),ee.closeOnClickAction&&ae(!1),nextTick(()=>oe("select",$e,_e)))};return createVNode("button",{type:"button",style:{color:Ee},class:[bem$1v("item",{loading:we,disabled:Ce}),Oe],onClick:Ae},[fe($e),ve($e,_e)])},ye=()=>{if(ee.description||ne.description){const $e=ne.description?ne.description():ee.description;return createVNode("div",{class:bem$1v("description")},[$e])}};return()=>createVNode(Popup,mergeProps({class:bem$1v(),position:"bottom","onUpdate:show":ae},pick(ee,popupInheritKeys$2)),{default:()=>{var $e;return[se(),ye(),createVNode("div",{class:bem$1v("content")},[ee.actions.map(be),($e=ne.default)==null?void 0:$e.call(ne)]),de()]}})}});const ActionSheet=withInstall(stdin_default$1H),[name$1z,bem$1u,t$k]=createNamespace("picker"),getFirstEnabledOption=ee=>ee.find(ne=>!ne.disabled)||ee[0];function getColumnsType(ee,ne){const oe=ee[0];if(oe){if(Array.isArray(oe))return"multiple";if(ne.children in oe)return"cascade"}return"default"}function findIndexOfEnabledOption(ee,ne){ne=clamp(ne,0,ee.length);for(let oe=ne;oe=0;oe--)if(!ee[oe].disabled)return oe;return 0}const isOptionExist=(ee,ne,oe)=>ne!==void 0&&!!ee.find(ae=>ae[oe.value]===ne);function findOptionByValue(ee,ne,oe){const ae=ee.findIndex(se=>se[oe.value]===ne),ie=findIndexOfEnabledOption(ee,ae);return ee[ie]}function formatCascadeColumns(ee,ne,oe){const ae=[];let ie={[ne.children]:ee},se=0;for(;ie&&ie[ne.children];){const de=ie[ne.children],fe=oe.value[se];if(ie=isDef(fe)?findOptionByValue(de,fe,ne):void 0,!ie&&de.length){const ve=getFirstEnabledOption(de)[ne.value];ie=findOptionByValue(de,ve,ne)}se++,ae.push(de)}return ae}function getElementTranslateY(ee){const{transform:ne}=window.getComputedStyle(ee),oe=ne.slice(7,ne.length-1).split(", ")[5];return Number(oe)}function assignDefaultFields(ee){return extend$1({text:"text",value:"value",children:"children"},ee)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$1y,bem$1t]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$1y);var stdin_default$1G=defineComponent({name:name$1y,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de,fe;const ve=ref(),be=ref(),ye=ref(0),$e=ref(0),_e=useTouch(),Ee=()=>ee.options.length,we=()=>ee.optionHeight*(+ee.visibleOptionNum-1)/2,Pe=je=>{let Be=findIndexOfEnabledOption(ee.options,je);const He=-Be*ee.optionHeight,ot=()=>{Be>Ee()-1&&(Be=findIndexOfEnabledOption(ee.options,je));const Nt=ee.options[Be][ee.fields.value];Nt!==ee.value&&ne("change",Nt)};ae&&He!==ye.value?fe=ot:ot(),ye.value=He},Ce=()=>ee.readonly||!ee.options.length,Oe=je=>{ae||Ce()||(fe=null,$e.value=DEFAULT_DURATION,Pe(je),ne("clickOption",ee.options[je]))},Ae=je=>clamp(Math.round(-je/ee.optionHeight),0,Ee()-1),Ne=computed(()=>Ae(ye.value)),ke=(je,Be)=>{const He=Math.abs(je/Be);je=ye.value+He/.003*(je<0?-1:1);const ot=Ae(je);$e.value=+ee.swipeDuration,Pe(ot)},Re=()=>{ae=!1,$e.value=0,fe&&(fe(),fe=null)},Le=je=>{if(!Ce()){if(_e.start(je),ae){const Be=getElementTranslateY(be.value);ye.value=Math.min(0,Be-we())}$e.value=0,ie=ye.value,se=Date.now(),de=ie,fe=null}},Me=je=>{if(Ce())return;_e.move(je),_e.isVertical()&&(ae=!0,preventDefault(je,!0));const Be=clamp(ie+_e.deltaY.value,-(Ee()*ee.optionHeight),ee.optionHeight),He=Ae(Be);He!==Ne.value&&ne("scrollInto",ee.options[He]),ye.value=Be;const ot=Date.now();ot-se>MOMENTUM_TIME&&(se=ot,de=Be)},Ie=()=>{if(Ce())return;const je=ye.value-de,Be=Date.now()-se;if(BeMOMENTUM_DISTANCE){ke(je,Be);return}const ot=Ae(ye.value);$e.value=DEFAULT_DURATION,Pe(ot),setTimeout(()=>{ae=!1},0)},Fe=()=>{const je={height:`${ee.optionHeight}px`};return ee.options.map((Be,He)=>{const ot=Be[ee.fields.text],{disabled:Nt}=Be,st=Be[ee.fields.value],Ue={role:"button",style:je,tabindex:Nt?-1:0,class:[bem$1t("item",{disabled:Nt,selected:st===ee.value}),Be.className],onClick:()=>Oe(He)},Ze={class:"van-ellipsis",[ee.allowHtml?"innerHTML":"textContent"]:ot};return createVNode("li",Ue,[oe.option?oe.option(Be,He):createVNode("div",Ze,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Re}),watchEffect(()=>{const je=ae?Math.floor(-ye.value/ee.optionHeight):ee.options.findIndex(ot=>ot[ee.fields.value]===ee.value),Be=findIndexOfEnabledOption(ee.options,je),He=-Be*ee.optionHeight;ae&&BecreateVNode("div",{ref:ve,class:bem$1t(),onTouchstartPassive:Le,onTouchend:Ie,onTouchcancel:Ie},[createVNode("ul",{ref:be,style:{transform:`translate3d(0, ${ye.value+we()}px, 0)`,transitionDuration:`${$e.value}ms`,transitionProperty:$e.value?"all":"none"},class:bem$1t("wrapper"),onTransitionend:Re},[Fe()])])}});const[name$1x]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$1F=defineComponent({name:name$1x,props:pickerToolbarProps,emits:["confirm","cancel"],setup(ee,{emit:ne,slots:oe}){const ae=()=>{if(oe.title)return oe.title();if(ee.title)return createVNode("div",{class:[bem$1u("title"),"van-ellipsis"]},[ee.title])},ie=()=>ne("cancel"),se=()=>ne("confirm"),de=()=>{var ve;const be=(ve=ee.cancelButtonText)!=null?ve:t$k("cancel");if(!(!oe.cancel&&!be))return createVNode("button",{type:"button",class:[bem$1u("cancel"),HAPTICS_FEEDBACK],onClick:ie},[oe.cancel?oe.cancel():be])},fe=()=>{var ve;const be=(ve=ee.confirmButtonText)!=null?ve:t$k("confirm");if(!(!oe.confirm&&!be))return createVNode("button",{type:"button",class:[bem$1u("confirm"),HAPTICS_FEEDBACK],onClick:se},[oe.confirm?oe.confirm():be])};return()=>createVNode("div",{class:bem$1u("toolbar")},[oe.toolbar?oe.toolbar():[de(),ae(),fe()]])}});const useSyncPropRef=(ee,ne)=>{const oe=ref(ee());return watch(ee,ae=>{ae!==oe.value&&(oe.value=ae)}),watch(oe,ae=>{ae!==ee()&&ne(ae)}),oe};function scrollLeftTo(ee,ne,oe){let ae,ie=0;const se=ee.scrollLeft,de=oe===0?1:Math.round(oe*1e3/16);let fe=se;function ve(){cancelRaf(ae)}function be(){fe+=(ne-se)/de,ee.scrollLeft=fe,++iene||!de&&sene?ie=raf(ye):ae&&(ie=raf(ae))}return ye(),be}let current=0;function useId(){const ee=getCurrentInstance(),{name:ne="unknown"}=(ee==null?void 0:ee.type)||{};return`${ne}-${++current}`}function useRefs(){const ee=ref([]),ne=[];return onBeforeUpdate(()=>{ee.value=[]}),[ee,ae=>(ne[ae]||(ne[ae]=ie=>{ee.value[ae]=ie}),ne[ae])]}function useVisibilityChange(ee,ne){if(!inBrowser$1||!window.IntersectionObserver)return;const oe=new IntersectionObserver(se=>{ne(se[0].intersectionRatio>0)},{root:document.body}),ae=()=>{ee.value&&oe.observe(ee.value)},ie=()=>{ee.value&&oe.unobserve(ee.value)};onDeactivated(ie),onBeforeUnmount(ie),onMountedOrActivated(ae)}const[name$1w,bem$1s]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$1E=defineComponent({name:name$1w,props:stickyProps,emits:["scroll","change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=useScrollParent(ae),se=reactive({fixed:!1,width:0,height:0,transform:0}),de=ref(!1),fe=computed(()=>unitToPx(ee.position==="top"?ee.offsetTop:ee.offsetBottom)),ve=computed(()=>{if(de.value)return;const{fixed:_e,height:Ee,width:we}=se;if(_e)return{width:`${we}px`,height:`${Ee}px`}}),be=computed(()=>{if(!se.fixed||de.value)return;const _e=extend$1(getZIndexStyle(ee.zIndex),{width:`${se.width}px`,height:`${se.height}px`,[ee.position]:`${fe.value}px`});return se.transform&&(_e.transform=`translate3d(0, ${se.transform}px, 0)`),_e}),ye=_e=>ne("scroll",{scrollTop:_e,isFixed:se.fixed}),$e=()=>{if(!ae.value||isHidden(ae))return;const{container:_e,position:Ee}=ee,we=useRect(ae),Pe=getScrollTop(window);if(se.width=we.width,se.height=we.height,Ee==="top")if(_e){const Ce=useRect(_e),Oe=Ce.bottom-fe.value-se.height;se.fixed=fe.value>we.top&&Ce.bottom>0,se.transform=Oe<0?Oe:0}else se.fixed=fe.value>we.top;else{const{clientHeight:Ce}=document.documentElement;if(_e){const Oe=useRect(_e),Ae=Ce-Oe.top-fe.value-se.height;se.fixed=Ce-fe.valueOe.top,se.transform=Ae<0?-Ae:0}else se.fixed=Ce-fe.valuese.fixed,_e=>ne("change",_e)),useEventListener("scroll",$e,{target:ie,passive:!0}),useVisibilityChange(ae,$e),watch([windowWidth,windowHeight],()=>{!ae.value||isHidden(ae)||!se.fixed||(de.value=!0,nextTick(()=>{const _e=useRect(ae);se.width=_e.width,se.height=_e.height,de.value=!1}))}),()=>{var _e;return createVNode("div",{ref:ae,style:ve.value},[createVNode("div",{class:bem$1s({fixed:se.fixed&&!de.value}),style:be.value},[(_e=oe.default)==null?void 0:_e.call(oe)])])}}});const Sticky=withInstall(stdin_default$1E),[name$1v,bem$1r]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$1v);var stdin_default$1D=defineComponent({name:name$1v,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let de=!1;const fe=useTouch(),{children:ve,linkChildren:be}=useChildren(SWIPE_KEY),ye=computed(()=>ve.length),$e=computed(()=>se[ee.vertical?"height":"width"]),_e=computed(()=>ee.vertical?fe.deltaY.value:fe.deltaX.value),Ee=computed(()=>se.rect?(ee.vertical?se.rect.height:se.rect.width)-$e.value*ye.value:0),we=computed(()=>$e.value?Math.ceil(Math.abs(Ee.value)/$e.value):ye.value),Pe=computed(()=>ye.value*$e.value),Ce=computed(()=>(se.active+ye.value)%ye.value),Oe=computed(()=>{const We=ee.vertical?"vertical":"horizontal";return fe.direction.value===We}),Ae=computed(()=>{const We={transitionDuration:`${se.swiping?0:ee.duration}ms`,transform:`translate${ee.vertical?"Y":"X"}(${+se.offset.toFixed(2)}px)`};if($e.value){const Pt=ee.vertical?"height":"width",Mt=ee.vertical?"width":"height";We[Pt]=`${Pe.value}px`,We[Mt]=ee[Mt]?`${ee[Mt]}px`:""}return We}),Ne=We=>{const{active:Pt}=se;return We?ee.loop?clamp(Pt+We,-1,ye.value):clamp(Pt+We,0,we.value):Pt},ke=(We,Pt=0)=>{let Mt=We*$e.value;ee.loop||(Mt=Math.min(Mt,-Ee.value));let jt=Pt-Mt;return ee.loop||(jt=clamp(jt,Ee.value,0)),jt},Re=({pace:We=0,offset:Pt=0,emitChange:Mt})=>{if(ye.value<=1)return;const{active:jt}=se,Rt=Ne(We),Wt=ke(Rt,Pt);if(ee.loop){if(ve[0]&&Wt!==Ee.value){const Ke=Wt0;ve[ye.value-1].setOffset(Ke?-Pe.value:0)}}se.active=Rt,se.offset=Wt,Mt&&Rt!==jt&&ne("change",Ce.value)},Le=()=>{se.swiping=!0,se.active<=-1?Re({pace:ye.value}):se.active>=ye.value&&Re({pace:-ye.value})},Me=()=>{Le(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:-1,emitChange:!0})})},Ie=()=>{Le(),fe.reset(),doubleRaf(()=>{se.swiping=!1,Re({pace:1,emitChange:!0})})};let Fe;const je=()=>clearTimeout(Fe),Be=()=>{je(),+ee.autoplay>0&&ye.value>1&&(Fe=setTimeout(()=>{Ie(),Be()},+ee.autoplay))},He=(We=+ee.initialSwipe)=>{if(!ae.value)return;const Pt=()=>{var Mt,jt;if(!isHidden(ae)){const Rt={width:ae.value.offsetWidth,height:ae.value.offsetHeight};se.rect=Rt,se.width=+((Mt=ee.width)!=null?Mt:Rt.width),se.height=+((jt=ee.height)!=null?jt:Rt.height)}ye.value&&(We=Math.min(ye.value-1,We),We===-1&&(We=ye.value-1)),se.active=We,se.swiping=!0,se.offset=ke(We),ve.forEach(Rt=>{Rt.setOffset(0)}),Be()};isHidden(ae)?nextTick().then(Pt):Pt()},ot=()=>He(se.active);let Nt;const st=We=>{!ee.touchable||We.touches.length>1||(fe.start(We),de=!1,Nt=Date.now(),je(),Le())},Ue=We=>{ee.touchable&&se.swiping&&(fe.move(We),Oe.value&&(!ee.loop&&(se.active===0&&_e.value>0||se.active===ye.value-1&&_e.value<0)||(preventDefault(We,ee.stopPropagation),Re({offset:_e.value}),de||(ne("dragStart",{index:Ce.value}),de=!0))))},Ze=()=>{if(!ee.touchable||!se.swiping)return;const We=Date.now()-Nt,Pt=_e.value/We;if((Math.abs(Pt)>.25||Math.abs(_e.value)>$e.value/2)&&Oe.value){const jt=ee.vertical?fe.offsetY.value:fe.offsetX.value;let Rt=0;ee.loop?Rt=jt>0?_e.value>0?-1:1:0:Rt=-Math[_e.value>0?"ceil":"floor"](_e.value/$e.value),Re({pace:Rt,emitChange:!0})}else _e.value&&Re({pace:0});de=!1,se.swiping=!1,ne("dragEnd",{index:Ce.value}),Be()},Tt=(We,Pt={})=>{Le(),fe.reset(),doubleRaf(()=>{let Mt;ee.loop&&We===ye.value?Mt=se.active===0?0:We:Mt=We%ye.value,Pt.immediate?doubleRaf(()=>{se.swiping=!1}):se.swiping=!1,Re({pace:Mt-se.active,emitChange:!0})})},Vt=(We,Pt)=>{const Mt=Pt===Ce.value,jt=Mt?{backgroundColor:ee.indicatorColor}:void 0;return createVNode("i",{style:jt,class:bem$1r("indicator",{active:Mt})},null)},Ut=()=>{if(oe.indicator)return oe.indicator({active:Ce.value,total:ye.value});if(ee.showIndicators&&ye.value>1)return createVNode("div",{class:bem$1r("indicators",{vertical:ee.vertical})},[Array(ye.value).fill("").map(Vt)])};return useExpose({prev:Me,next:Ie,state:se,resize:ot,swipeTo:Tt}),be({size:$e,props:ee,count:ye,activeIndicator:Ce}),watch(()=>ee.initialSwipe,We=>He(+We)),watch(ye,()=>He(se.active)),watch(()=>ee.autoplay,Be),watch([windowWidth,windowHeight,()=>ee.width,()=>ee.height],ot),watch(usePageVisibility(),We=>{We==="visible"?Be():je()}),onMounted(He),onActivated(()=>He(se.active)),onPopupReopen(()=>He(se.active)),onDeactivated(je),onBeforeUnmount(je),useEventListener("touchmove",Ue,{target:ie}),()=>{var We;return createVNode("div",{ref:ae,class:bem$1r()},[createVNode("div",{ref:ie,style:Ae.value,class:bem$1r("track",{vertical:ee.vertical}),onTouchstartPassive:st,onTouchend:Ze,onTouchcancel:Ze},[(We=oe.default)==null?void 0:We.call(oe)]),Ut()])}}});const Swipe=withInstall(stdin_default$1D),[name$1u,bem$1q]=createNamespace("tabs");var stdin_default$1C=defineComponent({name:name$1u,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=fe=>ne("change",fe),se=()=>{var fe;const ve=(fe=oe.default)==null?void 0:fe.call(oe);return ee.animated||ee.swipeable?createVNode(Swipe,{ref:ae,loop:!1,class:bem$1q("track"),duration:+ee.duration*1e3,touchable:ee.swipeable,lazyRender:ee.lazyRender,showIndicators:!1,onChange:ie},{default:()=>[ve]}):ve},de=fe=>{const ve=ae.value;ve&&ve.state.active!==fe&&ve.swipeTo(fe,{immediate:!ee.inited})};return watch(()=>ee.currentIndex,de),onMounted(()=>{de(ee.currentIndex)}),useExpose({swipeRef:ae}),()=>createVNode("div",{class:bem$1q("content",{animated:ee.animated||ee.swipeable})},[se()])}});const[name$1t,bem$1p]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$1t);var stdin_default$1B=defineComponent({name:name$1t,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de,fe;const ve=ref(),be=ref(),ye=ref(),$e=ref(),_e=useId(),Ee=useScrollParent(ve),[we,Pe]=useRefs(),{children:Ce,linkChildren:Oe}=useChildren(TABS_KEY),Ae=reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),Ne=computed(()=>Ce.length>+ee.swipeThreshold||!ee.ellipsis||ee.shrink),ke=computed(()=>({borderColor:ee.color,background:ee.background})),Re=(Rt,Wt)=>{var Ke;return(Ke=Rt.name)!=null?Ke:Wt},Le=computed(()=>{const Rt=Ce[Ae.currentIndex];if(Rt)return Re(Rt,Ae.currentIndex)}),Me=computed(()=>unitToPx(ee.offsetTop)),Ie=computed(()=>ee.sticky?Me.value+ae:0),Fe=Rt=>{const Wt=be.value,Ke=we.value;if(!Ne.value||!Wt||!Ke||!Ke[Ae.currentIndex])return;const It=Ke[Ae.currentIndex].$el,Lt=It.offsetLeft-(Wt.offsetWidth-It.offsetWidth)/2;de&&de(),de=scrollLeftTo(Wt,Lt,Rt?0:+ee.duration)},je=()=>{const Rt=Ae.inited;nextTick(()=>{const Wt=we.value;if(!Wt||!Wt[Ae.currentIndex]||ee.type!=="line"||isHidden(ve.value))return;const Ke=Wt[Ae.currentIndex].$el,{lineWidth:It,lineHeight:Lt}=ee,Dt=Ke.offsetLeft+Ke.offsetWidth/2,tn={width:addUnit(It),backgroundColor:ee.color,transform:`translateX(${Dt}px) translateX(-50%)`};if(Rt&&(tn.transitionDuration=`${ee.duration}s`),isDef(Lt)){const Zt=addUnit(Lt);tn.height=Zt,tn.borderRadius=Zt}Ae.lineStyle=tn})},Be=Rt=>{const Wt=Rt=0&&Rt{const Ke=Be(Rt);if(!isDef(Ke))return;const It=Ce[Ke],Lt=Re(It,Ke),Dt=Ae.currentIndex!==null;Ae.currentIndex!==Ke&&(Ae.currentIndex=Ke,Wt||Fe(),je()),Lt!==ee.active&&(ne("update:active",Lt),Dt&&ne("change",Lt,It.title)),se&&!ee.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(ve.value)-Me.value))},ot=(Rt,Wt)=>{const Ke=Ce.find((Lt,Dt)=>Re(Lt,Dt)===Rt),It=Ke?Ce.indexOf(Ke):0;He(It,Wt)},Nt=(Rt=!1)=>{if(ee.scrollspy){const Wt=Ce[Ae.currentIndex].$el;if(Wt&&Ee.value){const Ke=getElementTop(Wt,Ee.value)-Ie.value;ie=!0,fe&&fe(),fe=scrollTopTo(Ee.value,Ke,Rt?0:+ee.duration,()=>{ie=!1})}}},st=(Rt,Wt,Ke)=>{const{title:It,disabled:Lt}=Ce[Wt],Dt=Re(Ce[Wt],Wt);Lt||(callInterceptor(ee.beforeChange,{args:[Dt],done:()=>{He(Wt),Nt()}}),route(Rt)),ne("clickTab",{name:Dt,title:It,event:Ke,disabled:Lt})},Ue=Rt=>{se=Rt.isFixed,ne("scroll",Rt)},Ze=Rt=>{nextTick(()=>{ot(Rt),Nt(!0)})},Tt=()=>{for(let Rt=0;RtIe.value)return Rt===0?0:Rt-1}return Ce.length-1},Vt=()=>{if(ee.scrollspy&&!ie){const Rt=Tt();He(Rt)}},Ut=()=>{if(ee.type==="line"&&Ce.length)return createVNode("div",{class:bem$1p("line"),style:Ae.lineStyle},null)},We=()=>{var Rt,Wt,Ke;const{type:It,border:Lt,sticky:Dt}=ee,tn=[createVNode("div",{ref:Dt?void 0:ye,class:[bem$1p("wrap"),{[BORDER_TOP_BOTTOM]:It==="line"&&Lt}]},[createVNode("div",{ref:be,role:"tablist",class:bem$1p("nav",[It,{shrink:ee.shrink,complete:Ne.value}]),style:ke.value,"aria-orientation":"horizontal"},[(Rt=oe["nav-left"])==null?void 0:Rt.call(oe),Ce.map(Zt=>Zt.renderTitle(st)),Ut(),(Wt=oe["nav-right"])==null?void 0:Wt.call(oe)])]),(Ke=oe["nav-bottom"])==null?void 0:Ke.call(oe)];return Dt?createVNode("div",{ref:ye},[tn]):tn},Pt=()=>{je(),nextTick(()=>{var Rt,Wt;Fe(!0),(Wt=(Rt=$e.value)==null?void 0:Rt.swipeRef.value)==null||Wt.resize()})};watch(()=>[ee.color,ee.duration,ee.lineWidth,ee.lineHeight],je),watch(windowWidth,Pt),watch(()=>ee.active,Rt=>{Rt!==Le.value&&ot(Rt)}),watch(()=>Ce.length,()=>{Ae.inited&&(ot(ee.active),je(),nextTick(()=>{Fe(!0)}))});const Mt=()=>{ot(ee.active,!0),nextTick(()=>{Ae.inited=!0,ye.value&&(ae=useRect(ye.value).height),Fe(!0)})},jt=(Rt,Wt)=>ne("rendered",Rt,Wt);return useExpose({resize:Pt,scrollTo:Ze}),onActivated(je),onPopupReopen(je),onMountedOrActivated(Mt),useVisibilityChange(ve,je),useEventListener("scroll",Vt,{target:Ee,passive:!0}),Oe({id:_e,props:ee,setLine:je,scrollable:Ne,onRendered:jt,currentName:Le,setTitleRefs:Pe,scrollIntoView:Fe}),()=>createVNode("div",{ref:ve,class:bem$1p([ee.type])},[ee.showHeader?ee.sticky?createVNode(Sticky,{container:ve.value,offsetTop:Me.value,onScroll:Ue},{default:()=>[We()]}):We():null,createVNode(stdin_default$1C,{ref:$e,count:Ce.length,inited:Ae.inited,animated:ee.animated,duration:ee.duration,swipeable:ee.swipeable,lazyRender:ee.lazyRender,currentIndex:Ae.currentIndex,onChange:He},{default:()=>{var Rt;return[(Rt=oe.default)==null?void 0:Rt.call(oe)]}})])}});const TAB_STATUS_KEY=Symbol(),useTabStatus=()=>inject(TAB_STATUS_KEY,null),[name$1s,bem$1o]=createNamespace("tab"),TabTitle=defineComponent({name:name$1s,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(ee,{slots:ne}){const oe=computed(()=>{const ie={},{type:se,color:de,disabled:fe,isActive:ve,activeColor:be,inactiveColor:ye}=ee;de&&se==="card"&&(ie.borderColor=de,fe||(ve?ie.backgroundColor=de:ie.color=de));const _e=ve?be:ye;return _e&&(ie.color=_e),ie}),ae=()=>{const ie=createVNode("span",{class:bem$1o("text",{ellipsis:!ee.scrollable})},[ne.title?ne.title():ee.title]);return ee.dot||isDef(ee.badge)&&ee.badge!==""?createVNode(Badge,{dot:ee.dot,content:ee.badge,showZero:ee.showZeroBadge},{default:()=>[ie]}):ie};return()=>createVNode("div",{id:ee.id,role:"tab",class:[bem$1o([ee.type,{grow:ee.scrollable&&!ee.shrink,shrink:ee.shrink,active:ee.isActive,disabled:ee.disabled}])],style:oe.value,tabindex:ee.disabled?void 0:ee.isActive?0:-1,"aria-selected":ee.isActive,"aria-disabled":ee.disabled||void 0,"aria-controls":ee.controls},[ae()])}}),[name$1r,bem$1n]=createNamespace("swipe-item");var stdin_default$1A=defineComponent({name:name$1r,setup(ee,{slots:ne}){let oe;const ae=reactive({offset:0,inited:!1,mounted:!1}),{parent:ie,index:se}=useParent(SWIPE_KEY);if(!ie)return;const de=computed(()=>{const be={},{vertical:ye}=ie.props;return ie.size.value&&(be[ye?"height":"width"]=`${ie.size.value}px`),ae.offset&&(be.transform=`translate${ye?"Y":"X"}(${ae.offset}px)`),be}),fe=computed(()=>{const{loop:be,lazyRender:ye}=ie.props;if(!ye||oe)return!0;if(!ae.mounted)return!1;const $e=ie.activeIndicator.value,_e=ie.count.value-1,Ee=$e===0&&be?_e:$e-1,we=$e===_e&&be?0:$e+1;return oe=se.value===$e||se.value===Ee||se.value===we,oe}),ve=be=>{ae.offset=be};return onMounted(()=>{nextTick(()=>{ae.mounted=!0})}),useExpose({setOffset:ve}),()=>{var be;return createVNode("div",{class:bem$1n(),style:de.value},[fe.value?(be=ne.default)==null?void 0:be.call(ne):null])}}});const SwipeItem=withInstall(stdin_default$1A),[name$1q,bem$1m]=createNamespace("tab"),tabProps=extend$1({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$1z=defineComponent({name:name$1q,props:tabProps,setup(ee,{slots:ne}){const oe=useId(),ae=ref(!1),ie=getCurrentInstance(),{parent:se,index:de}=useParent(TABS_KEY);if(!se)return;const fe=()=>{var we;return(we=ee.name)!=null?we:de.value},ve=()=>{ae.value=!0,se.props.lazyRender&&nextTick(()=>{se.onRendered(fe(),ee.title)})},be=computed(()=>{const we=fe()===se.currentName.value;return we&&!ae.value&&ve(),we}),ye=ref(""),$e=ref("");watchEffect(()=>{const{titleClass:we,titleStyle:Pe}=ee;ye.value=we?normalizeClass(we):"",$e.value=Pe&&typeof Pe!="string"?stringifyStyle(normalizeStyle(Pe)):Pe});const _e=we=>createVNode(TabTitle,mergeProps({key:oe,id:`${se.id}-${de.value}`,ref:se.setTitleRefs(de.value),style:$e.value,class:ye.value,isActive:be.value,controls:oe,scrollable:se.scrollable.value,activeColor:se.props.titleActiveColor,inactiveColor:se.props.titleInactiveColor,onClick:Pe=>we(ie.proxy,de.value,Pe)},pick(se.props,["type","color","shrink"]),pick(ee,["dot","badge","title","disabled","showZeroBadge"])),{title:ne.title}),Ee=ref(!be.value);return watch(be,we=>{we?Ee.value=!1:doubleRaf(()=>{Ee.value=!0})}),watch(()=>ee.title,()=>{se.setLine(),se.scrollIntoView()}),provide(TAB_STATUS_KEY,be),useExpose({id:oe,renderTitle:_e}),()=>{var we;const Pe=`${se.id}-${de.value}`,{animated:Ce,swipeable:Oe,scrollspy:Ae,lazyRender:Ne}=se.props;if(!ne.default&&!Ce)return;const ke=Ae||be.value;if(Ce||Oe)return createVNode(SwipeItem,{id:oe,role:"tabpanel",class:bem$1m("panel-wrapper",{inactive:Ee.value}),tabindex:be.value?0:-1,"aria-hidden":!be.value,"aria-labelledby":Pe},{default:()=>{var Me;return[createVNode("div",{class:bem$1m("panel")},[(Me=ne.default)==null?void 0:Me.call(ne)])]}});const Le=ae.value||Ae||!Ne?(we=ne.default)==null?void 0:we.call(ne):null;return withDirectives(createVNode("div",{id:oe,role:"tabpanel",class:bem$1m("panel"),tabindex:ke?0:-1,"aria-labelledby":Pe},[Le]),[[vShow,ke]])}}});const Tab=withInstall(stdin_default$1z),Tabs=withInstall(stdin_default$1B),[name$1p,bem$1l]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1p),pickerGroupProps=extend$1({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$1y=defineComponent({name:name$1p,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(ee,{emit:ne,slots:oe}){const ae=useSyncPropRef(()=>ee.activeTab,be=>ne("update:activeTab",be)),{children:ie,linkChildren:se}=useChildren(PICKER_GROUP_KEY);se();const de=()=>+ae.value{de()?ae.value=+ae.value+1:ne("confirm",ie.map(be=>be.confirm()))},ve=()=>ne("cancel");return()=>{var be,ye;let $e=(ye=(be=oe.default)==null?void 0:be.call(oe))==null?void 0:ye.filter(Ee=>Ee.type!==Comment$1).map(Ee=>Ee.type===Fragment?Ee.children:Ee);$e&&($e=flat($e));const _e=de()?ee.nextStepText:ee.confirmButtonText;return createVNode("div",{class:bem$1l()},[ee.showToolbar?createVNode(stdin_default$1F,{title:ee.title,cancelButtonText:ee.cancelButtonText,confirmButtonText:_e,onConfirm:fe,onCancel:ve},pick(oe,pickerToolbarSlots)):null,createVNode(Tabs,{active:ae.value,"onUpdate:active":Ee=>ae.value=Ee,class:bem$1l("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[ee.tabs.map((Ee,we)=>createVNode(Tab,{title:Ee,titleClass:bem$1l("tab-title")},{default:()=>[$e==null?void 0:$e[we]]}))]})])}}});const pickerSharedProps=extend$1({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend$1({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1x=defineComponent({name:name$1z,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(ee.modelValue.slice(0)),{parent:se}=useParent(PICKER_GROUP_KEY),{children:de,linkChildren:fe}=useChildren(PICKER_KEY);fe();const ve=computed(()=>assignDefaultFields(ee.columnsFieldNames)),be=computed(()=>unitToPx(ee.optionHeight)),ye=computed(()=>getColumnsType(ee.columns,ve.value)),$e=computed(()=>{const{columns:Be}=ee;switch(ye.value){case"multiple":return Be;case"cascade":return formatCascadeColumns(Be,ve.value,ie);default:return[Be]}}),_e=computed(()=>$e.value.some(Be=>Be.length)),Ee=computed(()=>$e.value.map((Be,He)=>findOptionByValue(Be,ie.value[He],ve.value))),we=computed(()=>$e.value.map((Be,He)=>Be.findIndex(ot=>ot[ve.value.value]===ie.value[He]))),Pe=(Be,He)=>{if(ie.value[Be]!==He){const ot=ie.value.slice(0);ot[Be]=He,ie.value=ot}},Ce=()=>({selectedValues:ie.value.slice(0),selectedOptions:Ee.value,selectedIndexes:we.value}),Oe=(Be,He)=>{Pe(He,Be),ye.value==="cascade"&&ie.value.forEach((ot,Nt)=>{const st=$e.value[Nt];isOptionExist(st,ot,ve.value)||Pe(Nt,st.length?st[0][ve.value.value]:void 0)}),nextTick(()=>{ne("change",extend$1({columnIndex:He},Ce()))})},Ae=(Be,He)=>{const ot={columnIndex:He,currentOption:Be};ne("clickOption",extend$1(Ce(),ot)),ne("scrollInto",ot)},Ne=()=>{de.forEach(He=>He.stopMomentum());const Be=Ce();return nextTick(()=>{ne("confirm",Be)}),Be},ke=()=>ne("cancel",Ce()),Re=()=>$e.value.map((Be,He)=>createVNode(stdin_default$1G,{value:ie.value[He],fields:ve.value,options:Be,readonly:ee.readonly,allowHtml:ee.allowHtml,optionHeight:be.value,swipeDuration:ee.swipeDuration,visibleOptionNum:ee.visibleOptionNum,onChange:ot=>Oe(ot,He),onClickOption:ot=>Ae(ot,He),onScrollInto:ot=>{ne("scrollInto",{currentOption:ot,columnIndex:He})}},{option:oe.option})),Le=Be=>{if(_e.value){const He={height:`${be.value}px`},ot={backgroundSize:`100% ${(Be-be.value)/2}px`};return[createVNode("div",{class:bem$1u("mask"),style:ot},null),createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$1u("frame")],style:He},null)]}},Me=()=>{const Be=be.value*+ee.visibleOptionNum,He={height:`${Be}px`};return createVNode("div",{ref:ae,class:bem$1u("columns"),style:He},[Re(),Le(Be)])},Ie=()=>{if(ee.showToolbar&&!se)return createVNode(stdin_default$1F,mergeProps(pick(ee,pickerToolbarPropKeys),{onConfirm:Ne,onCancel:ke}),pick(oe,pickerToolbarSlots))};watch($e,Be=>{Be.forEach((He,ot)=>{He.length&&!isOptionExist(He,ie.value[ot],ve.value)&&Pe(ot,getFirstEnabledOption(He)[ve.value.value])})},{immediate:!0});let Fe;return watch(()=>ee.modelValue,Be=>{!isSameValue(Be,ie.value)&&!isSameValue(Be,Fe)&&(ie.value=Be.slice(0),Fe=Be.slice(0))},{deep:!0}),watch(ie,Be=>{isSameValue(Be,ee.modelValue)||(Fe=Be.slice(0),ne("update:modelValue",Fe))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:ae}),useExpose({confirm:Ne,getSelectedOptions:()=>Ee.value}),()=>{var Be,He;return createVNode("div",{class:bem$1u()},[ee.toolbarPosition==="top"?Ie():null,ee.loading?createVNode(Loading,{class:bem$1u("loading")},null):null,(Be=oe["columns-top"])==null?void 0:Be.call(oe),Me(),(He=oe["columns-bottom"])==null?void 0:He.call(oe),ee.toolbarPosition==="bottom"?Ie():null])}}});const AREA_EMPTY_CODE="000000",INHERIT_SLOTS=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],INHERIT_PROPS=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],makeOption=(ee="",ne=AREA_EMPTY_CODE,oe=void 0)=>({text:ee,value:ne,children:oe});function formatDataForCascade({areaList:ee,columnsNum:ne,columnsPlaceholder:oe}){const{city_list:ae={},county_list:ie={},province_list:se={}}=ee,de=+ne>1,fe=+ne>2,ve=()=>{if(de)return oe.length>1?[makeOption(oe[1],AREA_EMPTY_CODE,fe?[]:void 0)]:[]},be=new Map;Object.keys(se).forEach(_e=>{be.set(_e.slice(0,2),makeOption(se[_e],_e,ve()))});const ye=new Map;if(de){const _e=()=>{if(fe)return oe.length>2?[makeOption(oe[2])]:[]};Object.keys(ae).forEach(Ee=>{const we=makeOption(ae[Ee],Ee,_e());ye.set(Ee.slice(0,4),we);const Pe=be.get(Ee.slice(0,2));Pe&&Pe.children.push(we)})}fe&&Object.keys(ie).forEach(_e=>{const Ee=ye.get(_e.slice(0,4));Ee&&Ee.children.push(makeOption(ie[_e],_e))});const $e=Array.from(be.values());if(oe.length){const _e=fe?[makeOption(oe[2])]:void 0,Ee=de?[makeOption(oe[1],AREA_EMPTY_CODE,_e)]:void 0;$e.unshift(makeOption(oe[0],AREA_EMPTY_CODE,Ee))}return $e}const Picker=withInstall(stdin_default$1x),[name$1o,bem$1k]=createNamespace("area"),areaProps=extend$1({},pick(pickerSharedProps,INHERIT_PROPS),{modelValue:String,columnsNum:makeNumericProp(3),columnsPlaceholder:makeArrayProp(),areaList:{type:Object,default:()=>({})}});var stdin_default$1w=defineComponent({name:name$1o,props:areaProps,emits:["change","confirm","cancel","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref([]),ie=ref(),se=computed(()=>formatDataForCascade(ee)),de=(...be)=>ne("change",...be),fe=(...be)=>ne("cancel",...be),ve=(...be)=>ne("confirm",...be);return watch(ae,be=>{const ye=be.length?be[be.length-1]:"";ye&&ye!==ee.modelValue&&ne("update:modelValue",ye)},{deep:!0}),watch(()=>ee.modelValue,be=>{if(be){const ye=ae.value.length?ae.value[ae.value.length-1]:"";be!==ye&&(ae.value=[`${be.slice(0,2)}0000`,`${be.slice(0,4)}00`,be].slice(0,+ee.columnsNum))}else ae.value=[]},{immediate:!0}),useExpose({confirm:()=>{var be;return(be=ie.value)==null?void 0:be.confirm()},getSelectedOptions:()=>{var be;return((be=ie.value)==null?void 0:be.getSelectedOptions())||[]}}),()=>createVNode(Picker,mergeProps({ref:ie,modelValue:ae.value,"onUpdate:modelValue":be=>ae.value=be,class:bem$1k(),columns:se.value,onChange:de,onCancel:fe,onConfirm:ve},pick(ee,INHERIT_PROPS)),pick(oe,INHERIT_SLOTS))}});const Area=withInstall(stdin_default$1w),[name$1n,bem$1j]=createNamespace("cell"),cellSharedProps={tag:makeStringProp("div"),icon:String,size:String,title:numericProp,value:numericProp,label:numericProp,center:Boolean,isLink:Boolean,border:truthProp,iconPrefix:String,valueClass:unknownProp,labelClass:unknownProp,titleClass:unknownProp,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},cellProps=extend$1({},cellSharedProps,routeProps);var stdin_default$1v=defineComponent({name:name$1n,props:cellProps,setup(ee,{slots:ne}){const oe=useRoute(),ae=()=>{if(ne.label||isDef(ee.label))return createVNode("div",{class:[bem$1j("label"),ee.labelClass]},[ne.label?ne.label():ee.label])},ie=()=>{var ve;if(ne.title||isDef(ee.title)){const be=(ve=ne.title)==null?void 0:ve.call(ne);return Array.isArray(be)&&be.length===0?void 0:createVNode("div",{class:[bem$1j("title"),ee.titleClass],style:ee.titleStyle},[be||createVNode("span",null,[ee.title]),ae()])}},se=()=>{const ve=ne.value||ne.default;if(ve||isDef(ee.value))return createVNode("div",{class:[bem$1j("value"),ee.valueClass]},[ve?ve():createVNode("span",null,[ee.value])])},de=()=>{if(ne.icon)return ne.icon();if(ee.icon)return createVNode(Icon,{name:ee.icon,class:bem$1j("left-icon"),classPrefix:ee.iconPrefix},null)},fe=()=>{if(ne["right-icon"])return ne["right-icon"]();if(ee.isLink){const ve=ee.arrowDirection&&ee.arrowDirection!=="right"?`arrow-${ee.arrowDirection}`:"arrow";return createVNode(Icon,{name:ve,class:bem$1j("right-icon")},null)}};return()=>{var ve;const{tag:be,size:ye,center:$e,border:_e,isLink:Ee,required:we}=ee,Pe=(ve=ee.clickable)!=null?ve:Ee,Ce={center:$e,required:!!we,clickable:Pe,borderless:!_e};return ye&&(Ce[ye]=!!ye),createVNode(be,{class:bem$1j(Ce),role:Pe?"button":void 0,tabindex:Pe?0:void 0,onClick:oe},{default:()=>{var Oe;return[de(),ie(),se(),fe(),(Oe=ne.extra)==null?void 0:Oe.call(ne)]}})}}});const Cell=withInstall(stdin_default$1v),[name$1m,bem$1i]=createNamespace("form"),formProps={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:numericProp,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:truthProp,showErrorMessage:truthProp,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var stdin_default$1u=defineComponent({name:name$1m,props:formProps,emits:["submit","failed"],setup(ee,{emit:ne,slots:oe}){const{children:ae,linkChildren:ie}=useChildren(FORM_KEY),se=Ce=>Ce?ae.filter(Oe=>Ce.includes(Oe.name)):ae,de=Ce=>new Promise((Oe,Ae)=>{const Ne=[];se(Ce).reduce((Re,Le)=>Re.then(()=>{if(!Ne.length)return Le.validate().then(Me=>{Me&&Ne.push(Me)})}),Promise.resolve()).then(()=>{Ne.length?Ae(Ne):Oe()})}),fe=Ce=>new Promise((Oe,Ae)=>{const Ne=se(Ce);Promise.all(Ne.map(ke=>ke.validate())).then(ke=>{ke=ke.filter(Boolean),ke.length?Ae(ke):Oe()})}),ve=Ce=>{const Oe=ae.find(Ae=>Ae.name===Ce);return Oe?new Promise((Ae,Ne)=>{Oe.validate().then(ke=>{ke?Ne(ke):Ae()})}):Promise.reject()},be=Ce=>typeof Ce=="string"?ve(Ce):ee.validateFirst?de(Ce):fe(Ce),ye=Ce=>{typeof Ce=="string"&&(Ce=[Ce]),se(Ce).forEach(Ae=>{Ae.resetValidation()})},$e=()=>ae.reduce((Ce,Oe)=>(Ce[Oe.name]=Oe.getValidationStatus(),Ce),{}),_e=(Ce,Oe)=>{ae.some(Ae=>Ae.name===Ce?(Ae.$el.scrollIntoView(Oe),!0):!1)},Ee=()=>ae.reduce((Ce,Oe)=>(Oe.name!==void 0&&(Ce[Oe.name]=Oe.formValue.value),Ce),{}),we=()=>{const Ce=Ee();be().then(()=>ne("submit",Ce)).catch(Oe=>{ne("failed",{values:Ce,errors:Oe});const{scrollToError:Ae,scrollToErrorPosition:Ne}=ee;Ae&&Oe[0].name&&_e(Oe[0].name,Ne?{block:Ne}:void 0)})},Pe=Ce=>{preventDefault(Ce),we()};return ie({props:ee}),useExpose({submit:we,validate:be,getValues:Ee,scrollToField:_e,resetValidation:ye,getValidationStatus:$e}),()=>{var Ce;return createVNode("form",{class:bem$1i(),onSubmit:Pe},[(Ce=oe.default)==null?void 0:Ce.call(oe)])}}});const Form=withInstall(stdin_default$1u);function isEmptyValue(ee){return Array.isArray(ee)?!ee.length:ee===0?!1:!ee}function runSyncRule(ee,ne){if(isEmptyValue(ee)){if(ne.required)return!1;if(ne.validateEmpty===!1)return!0}return!(ne.pattern&&!ne.pattern.test(String(ee)))}function runRuleValidator(ee,ne){return new Promise(oe=>{const ae=ne.validator(ee,ne);if(isPromise(ae)){ae.then(oe);return}oe(ae)})}function getRuleMessage(ee,ne){const{message:oe}=ne;return isFunction$1(oe)?oe(ee,ne):oe||""}function startComposing({target:ee}){ee.composing=!0}function endComposing({target:ee}){ee.composing&&(ee.composing=!1,ee.dispatchEvent(new Event("input")))}function resizeTextarea(ee,ne){const oe=getRootScrollTop();ee.style.height="auto";let ae=ee.scrollHeight;if(isObject$1(ne)){const{maxHeight:ie,minHeight:se}=ne;ie!==void 0&&(ae=Math.min(ae,ie)),se!==void 0&&(ae=Math.max(ae,se))}ae&&(ee.style.height=`${ae}px`,setRootScrollTop(oe))}function mapInputType(ee){return ee==="number"?{type:"text",inputmode:"decimal"}:ee==="digit"?{type:"tel",inputmode:"numeric"}:{type:ee}}function getStringLength(ee){return[...ee].length}function cutString(ee,ne){return[...ee].slice(0,ne).join("")}const[name$1l,bem$1h]=createNamespace("field"),fieldSharedProps={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:numericProp,formatter:Function,clearIcon:makeStringProp("clear"),modelValue:makeNumericProp(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:makeStringProp("focus"),formatTrigger:makeStringProp("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}},fieldProps=extend$1({},cellSharedProps,fieldSharedProps,{rows:numericProp,type:makeStringProp("text"),rules:Array,autosize:[Boolean,Object],labelWidth:numericProp,labelClass:unknownProp,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var stdin_default$1t=defineComponent({name:name$1l,props:fieldProps,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=useId(),ie=reactive({status:"unvalidated",focused:!1,validateMessage:""}),se=ref(),de=ref(),fe=ref(),{parent:ve}=useParent(FORM_KEY),be=()=>{var Ke;return String((Ke=ee.modelValue)!=null?Ke:"")},ye=Ke=>{if(isDef(ee[Ke]))return ee[Ke];if(ve&&isDef(ve.props[Ke]))return ve.props[Ke]},$e=computed(()=>{const Ke=ye("readonly");if(ee.clearable&&!Ke){const It=be()!=="",Lt=ee.clearTrigger==="always"||ee.clearTrigger==="focus"&&ie.focused;return It&&Lt}return!1}),_e=computed(()=>fe.value&&oe.input?fe.value():ee.modelValue),Ee=computed(()=>{var Ke;const It=ye("required");return It==="auto"?(Ke=ee.rules)==null?void 0:Ke.some(Lt=>Lt.required):It}),we=Ke=>Ke.reduce((It,Lt)=>It.then(()=>{if(ie.status==="failed")return;let{value:Dt}=_e;if(Lt.formatter&&(Dt=Lt.formatter(Dt,Lt)),!runSyncRule(Dt,Lt)){ie.status="failed",ie.validateMessage=getRuleMessage(Dt,Lt);return}if(Lt.validator)return isEmptyValue(Dt)&&Lt.validateEmpty===!1?void 0:runRuleValidator(Dt,Lt).then(tn=>{tn&&typeof tn=="string"?(ie.status="failed",ie.validateMessage=tn):tn===!1&&(ie.status="failed",ie.validateMessage=getRuleMessage(Dt,Lt))})}),Promise.resolve()),Pe=()=>{ie.status="unvalidated",ie.validateMessage=""},Ce=()=>ne("endValidate",{status:ie.status,message:ie.validateMessage}),Oe=(Ke=ee.rules)=>new Promise(It=>{Pe(),Ke?(ne("startValidate"),we(Ke).then(()=>{ie.status==="failed"?(It({name:ee.name,message:ie.validateMessage}),Ce()):(ie.status="passed",It(),Ce())})):It()}),Ae=Ke=>{if(ve&&ee.rules){const{validateTrigger:It}=ve.props,Lt=toArray$1(It).includes(Ke),Dt=ee.rules.filter(tn=>tn.trigger?toArray$1(tn.trigger).includes(Ke):Lt);Dt.length&&Oe(Dt)}},Ne=Ke=>{var It;const{maxlength:Lt}=ee;if(isDef(Lt)&&getStringLength(Ke)>+Lt){const Dt=be();if(Dt&&getStringLength(Dt)===+Lt)return Dt;const tn=(It=se.value)==null?void 0:It.selectionEnd;if(ie.focused&&tn){const Zt=[...Ke],Xe=Zt.length-+Lt;return Zt.splice(tn-Xe,Xe),Zt.join("")}return cutString(Ke,+Lt)}return Ke},ke=(Ke,It="onChange")=>{const Lt=Ke;Ke=Ne(Ke);const Dt=getStringLength(Lt)-getStringLength(Ke);if(ee.type==="number"||ee.type==="digit"){const Zt=ee.type==="number";Ke=formatNumber(Ke,Zt,Zt)}let tn=0;if(ee.formatter&&It===ee.formatTrigger){const{formatter:Zt,maxlength:Xe}=ee;if(Ke=Zt(Ke),isDef(Xe)&&getStringLength(Ke)>+Xe&&(Ke=cutString(Ke,+Xe)),se.value&&ie.focused){const{selectionEnd:nt}=se.value,Bt=cutString(Lt,nt);tn=getStringLength(Zt(Bt))-getStringLength(Bt)}}if(se.value&&se.value.value!==Ke)if(ie.focused){let{selectionStart:Zt,selectionEnd:Xe}=se.value;if(se.value.value=Ke,isDef(Zt)&&isDef(Xe)){const nt=getStringLength(Ke);Dt?(Zt-=Dt,Xe-=Dt):tn&&(Zt+=tn,Xe+=tn),se.value.setSelectionRange(Math.min(Zt,nt),Math.min(Xe,nt))}}else se.value.value=Ke;Ke!==ee.modelValue&&ne("update:modelValue",Ke)},Re=Ke=>{Ke.target.composing||ke(Ke.target.value)},Le=()=>{var Ke;return(Ke=se.value)==null?void 0:Ke.blur()},Me=()=>{var Ke;return(Ke=se.value)==null?void 0:Ke.focus()},Ie=()=>{const Ke=se.value;ee.type==="textarea"&&ee.autosize&&Ke&&resizeTextarea(Ke,ee.autosize)},Fe=Ke=>{ie.focused=!0,ne("focus",Ke),nextTick(Ie),ye("readonly")&&Le()},je=Ke=>{ie.focused=!1,ke(be(),"onBlur"),ne("blur",Ke),!ye("readonly")&&(Ae("onBlur"),nextTick(Ie),resetScroll())},Be=Ke=>ne("clickInput",Ke),He=Ke=>ne("clickLeftIcon",Ke),ot=Ke=>ne("clickRightIcon",Ke),Nt=Ke=>{preventDefault(Ke),ne("update:modelValue",""),ne("clear",Ke)},st=computed(()=>{if(typeof ee.error=="boolean")return ee.error;if(ve&&ve.props.showError&&ie.status==="failed")return!0}),Ue=computed(()=>{const Ke=ye("labelWidth"),It=ye("labelAlign");if(Ke&&It!=="top")return{width:addUnit(Ke)}}),Ze=Ke=>{Ke.keyCode===13&&(!(ve&&ve.props.submitOnEnter)&&ee.type!=="textarea"&&preventDefault(Ke),ee.type==="search"&&Le()),ne("keypress",Ke)},Tt=()=>ee.id||`${ae}-input`,Vt=()=>ie.status,Ut=()=>{const Ke=bem$1h("control",[ye("inputAlign"),{error:st.value,custom:!!oe.input,"min-height":ee.type==="textarea"&&!ee.autosize}]);if(oe.input)return createVNode("div",{class:Ke,onClick:Be},[oe.input()]);const It={id:Tt(),ref:se,name:ee.name,rows:ee.rows!==void 0?+ee.rows:void 0,class:Ke,disabled:ye("disabled"),readonly:ye("readonly"),autofocus:ee.autofocus,placeholder:ee.placeholder,autocomplete:ee.autocomplete,autocapitalize:ee.autocapitalize,autocorrect:ee.autocorrect,enterkeyhint:ee.enterkeyhint,spellcheck:ee.spellcheck,"aria-labelledby":ee.label?`${ae}-label`:void 0,onBlur:je,onFocus:Fe,onInput:Re,onClick:Be,onChange:endComposing,onKeypress:Ze,onCompositionend:endComposing,onCompositionstart:startComposing};return ee.type==="textarea"?createVNode("textarea",It,null):createVNode("input",mergeProps(mapInputType(ee.type),It),null)},We=()=>{const Ke=oe["left-icon"];if(ee.leftIcon||Ke)return createVNode("div",{class:bem$1h("left-icon"),onClick:He},[Ke?Ke():createVNode(Icon,{name:ee.leftIcon,classPrefix:ee.iconPrefix},null)])},Pt=()=>{const Ke=oe["right-icon"];if(ee.rightIcon||Ke)return createVNode("div",{class:bem$1h("right-icon"),onClick:ot},[Ke?Ke():createVNode(Icon,{name:ee.rightIcon,classPrefix:ee.iconPrefix},null)])},Mt=()=>{if(ee.showWordLimit&&ee.maxlength){const Ke=getStringLength(be());return createVNode("div",{class:bem$1h("word-limit")},[createVNode("span",{class:bem$1h("word-num")},[Ke]),createTextVNode("/"),ee.maxlength])}},jt=()=>{if(ve&&ve.props.showErrorMessage===!1)return;const Ke=ee.errorMessage||ie.validateMessage;if(Ke){const It=oe["error-message"],Lt=ye("errorMessageAlign");return createVNode("div",{class:bem$1h("error-message",Lt)},[It?It({message:Ke}):Ke])}},Rt=()=>{const Ke=ye("labelWidth"),It=ye("labelAlign"),Lt=ye("colon")?":":"";if(oe.label)return[oe.label(),Lt];if(ee.label)return createVNode("label",{id:`${ae}-label`,for:oe.input?void 0:Tt(),onClick:Dt=>{preventDefault(Dt),Me()},style:It==="top"&&Ke?{width:addUnit(Ke)}:void 0},[ee.label+Lt])},Wt=()=>[createVNode("div",{class:bem$1h("body")},[Ut(),$e.value&&createVNode(Icon,{ref:de,name:ee.clearIcon,class:bem$1h("clear")},null),Pt(),oe.button&&createVNode("div",{class:bem$1h("button")},[oe.button()])]),Mt(),jt()];return useExpose({blur:Le,focus:Me,validate:Oe,formValue:_e,resetValidation:Pe,getValidationStatus:Vt}),provide(CUSTOM_FIELD_INJECTION_KEY,{customValue:fe,resetValidation:Pe,validateWithTrigger:Ae}),watch(()=>ee.modelValue,()=>{ke(be()),Pe(),Ae("onChange"),nextTick(Ie)}),onMounted(()=>{ke(be(),ee.formatTrigger),nextTick(Ie)}),useEventListener("touchstart",Nt,{target:computed(()=>{var Ke;return(Ke=de.value)==null?void 0:Ke.$el})}),()=>{const Ke=ye("disabled"),It=ye("labelAlign"),Lt=We(),Dt=()=>{const tn=Rt();return It==="top"?[Lt,tn].filter(Boolean):tn||[]};return createVNode(Cell,{size:ee.size,class:bem$1h({error:st.value,disabled:Ke,[`label-${It}`]:It}),center:ee.center,border:ee.border,isLink:ee.isLink,clickable:ee.clickable,titleStyle:Ue.value,valueClass:bem$1h("value"),titleClass:[bem$1h("label",[It,{required:Ee.value}]),ee.labelClass],arrowDirection:ee.arrowDirection},{icon:Lt&&It!=="top"?()=>Lt:null,title:Dt,value:Wt,extra:oe.extra})}}});const Field=withInstall(stdin_default$1t);let lockCount=0;function lockClick(ee){ee?(lockCount||document.body.classList.add("van-toast--unclickable"),lockCount++):lockCount&&(lockCount--,lockCount||document.body.classList.remove("van-toast--unclickable"))}const[name$1k,bem$1g]=createNamespace("toast"),popupInheritProps$1=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],toastProps={icon:String,show:Boolean,type:makeStringProp("text"),overlay:Boolean,message:numericProp,iconSize:numericProp,duration:makeNumberProp(2e3),position:makeStringProp("middle"),teleport:[String,Object],wordBreak:String,className:unknownProp,iconPrefix:String,transition:makeStringProp("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:numericProp};var stdin_default$1s=defineComponent({name:name$1k,props:toastProps,emits:["update:show"],setup(ee,{emit:ne,slots:oe}){let ae,ie=!1;const se=()=>{const $e=ee.show&&ee.forbidClick;ie!==$e&&(ie=$e,lockClick(ie))},de=$e=>ne("update:show",$e),fe=()=>{ee.closeOnClick&&de(!1)},ve=()=>clearTimeout(ae),be=()=>{const{icon:$e,type:_e,iconSize:Ee,iconPrefix:we,loadingType:Pe}=ee;if($e||_e==="success"||_e==="fail")return createVNode(Icon,{name:$e||_e,size:Ee,class:bem$1g("icon"),classPrefix:we},null);if(_e==="loading")return createVNode(Loading,{class:bem$1g("loading"),size:Ee,type:Pe},null)},ye=()=>{const{type:$e,message:_e}=ee;if(oe.message)return createVNode("div",{class:bem$1g("text")},[oe.message()]);if(isDef(_e)&&_e!=="")return $e==="html"?createVNode("div",{key:0,class:bem$1g("text"),innerHTML:String(_e)},null):createVNode("div",{class:bem$1g("text")},[_e])};return watch(()=>[ee.show,ee.forbidClick],se),watch(()=>[ee.show,ee.type,ee.message,ee.duration],()=>{ve(),ee.show&&ee.duration>0&&(ae=setTimeout(()=>{de(!1)},ee.duration))}),onMounted(se),onUnmounted(se),()=>createVNode(Popup,mergeProps({class:[bem$1g([ee.position,ee.wordBreak==="normal"?"break-normal":ee.wordBreak,{[ee.type]:!ee.icon}]),ee.className],lockScroll:!1,onClick:fe,onClosed:ve,"onUpdate:show":de},pick(ee,popupInheritProps$1)),{default:()=>[be(),ye()]})}});function usePopupState(){const ee=reactive({show:!1}),ne=ie=>{ee.show=ie},oe=ie=>{extend$1(ee,ie,{transitionAppear:!0}),ne(!0)},ae=()=>ne(!1);return useExpose({open:oe,close:ae,toggle:ne}),{open:oe,close:ae,state:ee,toggle:ne}}function mountComponent(ee){const ne=createApp(ee),oe=document.createElement("div");return document.body.appendChild(oe),{instance:ne.mount(oe),unmount(){ne.unmount(),document.body.removeChild(oe)}}}const defaultOptions={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let queue=[],allowMultiple=!1,currentOptions=extend$1({},defaultOptions);const defaultOptionsMap=new Map;function parseOptions(ee){return isObject$1(ee)?ee:{message:ee}}function createInstance$1(){const{instance:ee,unmount:ne}=mountComponent({setup(){const oe=ref(""),{open:ae,state:ie,close:se,toggle:de}=usePopupState(),fe=()=>{},ve=()=>createVNode(stdin_default$1s,mergeProps(ie,{onClosed:fe,"onUpdate:show":de}),null);return watch(oe,be=>{ie.message=be}),getCurrentInstance().render=ve,{open:ae,close:se,message:oe}}});return ee}function getInstance(){if(!queue.length||allowMultiple){const ee=createInstance$1();queue.push(ee)}return queue[queue.length-1]}function showToast(ee={}){if(!inBrowser$1)return{};const ne=getInstance(),oe=parseOptions(ee);return ne.open(extend$1({},currentOptions,defaultOptionsMap.get(oe.type||currentOptions.type),oe)),ne}const Toast=withInstall(stdin_default$1s),[name$1j,bem$1f]=createNamespace("switch"),switchProps={size:numericProp,loading:Boolean,disabled:Boolean,modelValue:unknownProp,activeColor:String,inactiveColor:String,activeValue:{type:unknownProp,default:!0},inactiveValue:{type:unknownProp,default:!1}};var stdin_default$1r=defineComponent({name:name$1j,props:switchProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=()=>ee.modelValue===ee.activeValue,ie=()=>{if(!ee.disabled&&!ee.loading){const de=ae()?ee.inactiveValue:ee.activeValue;ne("update:modelValue",de),ne("change",de)}},se=()=>{if(ee.loading){const de=ae()?ee.activeColor:ee.inactiveColor;return createVNode(Loading,{class:bem$1f("loading"),color:de},null)}if(oe.node)return oe.node()};return useCustomFieldValue(()=>ee.modelValue),()=>{var de;const{size:fe,loading:ve,disabled:be,activeColor:ye,inactiveColor:$e}=ee,_e=ae(),Ee={fontSize:addUnit(fe),backgroundColor:_e?ye:$e};return createVNode("div",{role:"switch",class:bem$1f({on:_e,loading:ve,disabled:be}),style:Ee,tabindex:be?void 0:0,"aria-checked":_e,onClick:ie},[createVNode("div",{class:bem$1f("node")},[se()]),(de=oe.background)==null?void 0:de.call(oe)])}}});const Switch=withInstall(stdin_default$1r),[name$1i,bem$1e]=createNamespace("address-edit-detail"),t$j=createNamespace("address-edit")[2];var stdin_default$1q=defineComponent({name:name$1i,props:{show:Boolean,rows:numericProp,value:String,rules:Array,focused:Boolean,maxlength:numericProp,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(ee,{emit:ne}){const oe=ref(),ae=()=>ee.focused&&ee.searchResult&&ee.showSearchResult,ie=be=>{ne("selectSearch",be),ne("input",`${be.address||""} ${be.name||""}`.trim())},se=()=>{if(!ae())return;const{searchResult:be}=ee;return be.map(ye=>createVNode(Cell,{clickable:!0,key:(ye.name||"")+(ye.address||""),icon:"location-o",title:ye.name,label:ye.address,class:bem$1e("search-item"),border:!1,onClick:()=>ie(ye)},null))},de=be=>ne("blur",be),fe=be=>ne("focus",be),ve=be=>ne("input",be);return()=>{if(ee.show)return createVNode(Fragment,null,[createVNode(Field,{autosize:!0,clearable:!0,ref:oe,class:bem$1e(),rows:ee.rows,type:"textarea",rules:ee.rules,label:t$j("addressDetail"),border:!ae(),maxlength:ee.maxlength,modelValue:ee.value,placeholder:t$j("addressDetail"),onBlur:de,onFocus:fe,"onUpdate:modelValue":ve},null),se()])}}});const[name$1h,bem$1d,t$i]=createNamespace("address-edit"),DEFAULT_DATA={name:"",tel:"",city:"",county:"",country:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},addressEditProps={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:truthProp,showDetail:truthProp,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:numericProp,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:makeNumericProp(1),detailMaxlength:makeNumericProp(200),areaColumnsPlaceholder:makeArrayProp(),addressInfo:{type:Object,default:()=>extend$1({},DEFAULT_DATA)},telValidator:{type:Function,default:isMobile}};var stdin_default$1p=defineComponent({name:name$1h,props:addressEditProps,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=reactive({}),se=ref(!1),de=ref(!1),fe=computed(()=>isObject$1(ee.areaList)&&Object.keys(ee.areaList).length),ve=computed(()=>{const{province:Le,city:Me,county:Ie,areaCode:Fe}=ie;if(Fe){const je=[Le,Me,Ie];return Le&&Le===Me&&je.splice(1,1),je.filter(Boolean).join("/")}return""}),be=computed(()=>{var Le;return((Le=ee.searchResult)==null?void 0:Le.length)&&de.value}),ye=Le=>{de.value=Le==="addressDetail",ne("focus",Le)},$e=(Le,Me)=>{ne("change",{key:Le,value:Me})},_e=computed(()=>{const{validator:Le,telValidator:Me}=ee,Ie=(Fe,je)=>({validator:Be=>{if(Le){const He=Le(Fe,Be);if(He)return He}return Be?!0:je}});return{name:[Ie("name",t$i("nameEmpty"))],tel:[Ie("tel",t$i("telInvalid")),{validator:Me,message:t$i("telInvalid")}],areaCode:[Ie("areaCode",t$i("areaEmpty"))],addressDetail:[Ie("addressDetail",t$i("addressEmpty"))]}}),Ee=()=>ne("save",ie),we=Le=>{ie.addressDetail=Le,ne("changeDetail",Le)},Pe=Le=>{ie.province=Le[0].text,ie.city=Le[1].text,ie.county=Le[2].text},Ce=({selectedValues:Le,selectedOptions:Me})=>{Le.some(Ie=>Ie===AREA_EMPTY_CODE)?showToast(t$i("areaEmpty")):(se.value=!1,Pe(Me),ne("changeArea",Me))},Oe=()=>ne("delete",ie),Ae=Le=>{ie.areaCode=Le||""},Ne=()=>{setTimeout(()=>{de.value=!1})},ke=Le=>{ie.addressDetail=Le},Re=()=>{if(ee.showSetDefault){const Le={"right-icon":()=>createVNode(Switch,{modelValue:ie.isDefault,"onUpdate:modelValue":Me=>ie.isDefault=Me,onChange:Me=>ne("changeDefault",Me)},null)};return withDirectives(createVNode(Cell,{center:!0,border:!1,title:t$i("defaultAddress"),class:bem$1d("default")},Le),[[vShow,!be.value]])}};return useExpose({setAreaCode:Ae,setAddressDetail:ke}),watch(()=>ee.addressInfo,Le=>{extend$1(ie,DEFAULT_DATA,Le),nextTick(()=>{var Me;const Ie=(Me=ae.value)==null?void 0:Me.getSelectedOptions();Ie&&Ie.every(Fe=>Fe&&Fe.value!==AREA_EMPTY_CODE)&&Pe(Ie)})},{deep:!0,immediate:!0}),()=>{const{disableArea:Le}=ee;return createVNode(Form,{class:bem$1d(),onSubmit:Ee},{default:()=>{var Me;return[createVNode("div",{class:bem$1d("fields")},[createVNode(Field,{modelValue:ie.name,"onUpdate:modelValue":[Ie=>ie.name=Ie,Ie=>$e("name",Ie)],clearable:!0,label:t$i("name"),rules:_e.value.name,placeholder:t$i("name"),onFocus:()=>ye("name")},null),createVNode(Field,{modelValue:ie.tel,"onUpdate:modelValue":[Ie=>ie.tel=Ie,Ie=>$e("tel",Ie)],clearable:!0,type:"tel",label:t$i("tel"),rules:_e.value.tel,maxlength:ee.telMaxlength,placeholder:t$i("tel"),onFocus:()=>ye("tel")},null),withDirectives(createVNode(Field,{readonly:!0,label:t$i("area"),"is-link":!Le,modelValue:ve.value,rules:ee.showArea?_e.value.areaCode:void 0,placeholder:ee.areaPlaceholder||t$i("area"),onFocus:()=>ye("areaCode"),onClick:()=>{ne("clickArea"),se.value=!Le}},null),[[vShow,ee.showArea]]),createVNode(stdin_default$1q,{show:ee.showDetail,rows:ee.detailRows,rules:_e.value.addressDetail,value:ie.addressDetail,focused:de.value,maxlength:ee.detailMaxlength,searchResult:ee.searchResult,showSearchResult:ee.showSearchResult,onBlur:Ne,onFocus:()=>ye("addressDetail"),onInput:we,onSelectSearch:Ie=>ne("selectSearch",Ie)},null),(Me=oe.default)==null?void 0:Me.call(oe)]),Re(),withDirectives(createVNode("div",{class:bem$1d("buttons")},[createVNode(Button,{block:!0,round:!0,type:"primary",text:ee.saveButtonText||t$i("save"),class:bem$1d("button"),loading:ee.isSaving,nativeType:"submit"},null),ee.showDelete&&createVNode(Button,{block:!0,round:!0,class:bem$1d("button"),loading:ee.isDeleting,text:ee.deleteButtonText||t$i("delete"),onClick:Oe},null)]),[[vShow,!be.value]]),createVNode(Popup,{show:se.value,"onUpdate:show":Ie=>se.value=Ie,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[createVNode(Area,{modelValue:ie.areaCode,"onUpdate:modelValue":Ie=>ie.areaCode=Ie,ref:ae,loading:!fe.value,areaList:ee.areaList,columnsPlaceholder:ee.areaColumnsPlaceholder,onConfirm:Ce,onCancel:()=>{se.value=!1}},null)]})]}})}}});const AddressEdit=withInstall(stdin_default$1p),[name$1g,bem$1c]=createNamespace("radio-group"),radioGroupProps={shape:String,disabled:Boolean,iconSize:numericProp,direction:String,modelValue:unknownProp,checkedColor:String},RADIO_KEY=Symbol(name$1g);var stdin_default$1o=defineComponent({name:name$1g,props:radioGroupProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(RADIO_KEY),ie=se=>ne("update:modelValue",se);return watch(()=>ee.modelValue,se=>ne("change",se)),ae({props:ee,updateValue:ie}),useCustomFieldValue(()=>ee.modelValue),()=>{var se;return createVNode("div",{class:bem$1c([ee.direction]),role:"radiogroup"},[(se=oe.default)==null?void 0:se.call(oe)])}}});const RadioGroup=withInstall(stdin_default$1o),[name$1f,bem$1b]=createNamespace("checkbox-group"),checkboxGroupProps={max:numericProp,shape:makeStringProp("round"),disabled:Boolean,iconSize:numericProp,direction:String,modelValue:makeArrayProp(),checkedColor:String},CHECKBOX_GROUP_KEY=Symbol(name$1f);var stdin_default$1n=defineComponent({name:name$1f,props:checkboxGroupProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{children:ae,linkChildren:ie}=useChildren(CHECKBOX_GROUP_KEY),se=fe=>ne("update:modelValue",fe),de=(fe={})=>{typeof fe=="boolean"&&(fe={checked:fe});const{checked:ve,skipDisabled:be}=fe,$e=ae.filter(_e=>_e.props.bindGroup?_e.props.disabled&&be?_e.checked.value:ve??!_e.checked.value:!1).map(_e=>_e.name);se($e)};return watch(()=>ee.modelValue,fe=>ne("change",fe)),useExpose({toggleAll:de}),useCustomFieldValue(()=>ee.modelValue),ie({props:ee,updateValue:se}),()=>{var fe;return createVNode("div",{class:bem$1b([ee.direction])},[(fe=oe.default)==null?void 0:fe.call(oe)])}}});const CheckboxGroup=withInstall(stdin_default$1n),[name$1e,bem$1a]=createNamespace("tag"),tagProps={size:String,mark:Boolean,show:truthProp,type:makeStringProp("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var stdin_default$1m=defineComponent({name:name$1e,props:tagProps,emits:["close"],setup(ee,{slots:ne,emit:oe}){const ae=de=>{de.stopPropagation(),oe("close",de)},ie=()=>ee.plain?{color:ee.textColor||ee.color,borderColor:ee.color}:{color:ee.textColor,background:ee.color},se=()=>{var de;const{type:fe,mark:ve,plain:be,round:ye,size:$e,closeable:_e}=ee,Ee={mark:ve,plain:be,round:ye};$e&&(Ee[$e]=$e);const we=_e&&createVNode(Icon,{name:"cross",class:[bem$1a("close"),HAPTICS_FEEDBACK],onClick:ae},null);return createVNode("span",{style:ie(),class:bem$1a([Ee,fe])},[(de=ne.default)==null?void 0:de.call(ne),we])};return()=>createVNode(Transition,{name:ee.closeable?"van-fade":void 0},{default:()=>[ee.show?se():null]})}});const Tag=withInstall(stdin_default$1m),checkerProps={name:unknownProp,disabled:Boolean,iconSize:numericProp,modelValue:unknownProp,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var stdin_default$1l=defineComponent({props:extend$1({},checkerProps,{bem:makeRequiredProp(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:truthProp,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=_e=>{if(ee.parent&&ee.bindGroup)return ee.parent.props[_e]},se=computed(()=>{if(ee.parent&&ee.bindGroup){const _e=ie("disabled")||ee.disabled;if(ee.role==="checkbox"){const Ee=ie("modelValue").length,we=ie("max"),Pe=we&&Ee>=+we;return _e||Pe&&!ee.checked}return _e}return ee.disabled}),de=computed(()=>ie("direction")),fe=computed(()=>{const _e=ee.checkedColor||ie("checkedColor");if(_e&&ee.checked&&!se.value)return{borderColor:_e,backgroundColor:_e}}),ve=computed(()=>ee.shape||ie("shape")||"round"),be=_e=>{const{target:Ee}=_e,we=ae.value,Pe=we===Ee||(we==null?void 0:we.contains(Ee));!se.value&&(Pe||!ee.labelDisabled)&&ne("toggle"),ne("click",_e)},ye=()=>{var _e,Ee;const{bem:we,checked:Pe,indeterminate:Ce}=ee,Oe=ee.iconSize||ie("iconSize");return createVNode("div",{ref:ae,class:we("icon",[ve.value,{disabled:se.value,checked:Pe,indeterminate:Ce}]),style:ve.value!=="dot"?{fontSize:addUnit(Oe)}:{width:addUnit(Oe),height:addUnit(Oe),borderColor:(_e=fe.value)==null?void 0:_e.borderColor}},[oe.icon?oe.icon({checked:Pe,disabled:se.value}):ve.value!=="dot"?createVNode(Icon,{name:Ce?"minus":"success",style:fe.value},null):createVNode("div",{class:we("icon--dot__icon"),style:{backgroundColor:(Ee=fe.value)==null?void 0:Ee.backgroundColor}},null)])},$e=()=>{const{checked:_e}=ee;if(oe.default)return createVNode("span",{class:ee.bem("label",[ee.labelPosition,{disabled:se.value}])},[oe.default({checked:_e,disabled:se.value})])};return()=>{const _e=ee.labelPosition==="left"?[$e(),ye()]:[ye(),$e()];return createVNode("div",{role:ee.role,class:ee.bem([{disabled:se.value,"label-disabled":ee.labelDisabled},de.value]),tabindex:se.value?void 0:0,"aria-checked":ee.checked,onClick:be},[_e])}}});const radioProps=extend$1({},checkerProps,{shape:String}),[name$1d,bem$19]=createNamespace("radio");var stdin_default$1k=defineComponent({name:name$1d,props:radioProps,emits:["update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{parent:ae}=useParent(RADIO_KEY),ie=()=>(ae?ae.props.modelValue:ee.modelValue)===ee.name,se=()=>{ae?ae.updateValue(ee.name):ne("update:modelValue",ee.name)};return()=>createVNode(stdin_default$1l,mergeProps({bem:bem$19,role:"radio",parent:ae,checked:ie(),onToggle:se},ee),pick(oe,["default","icon"]))}});const Radio=withInstall(stdin_default$1k),[name$1c,bem$18]=createNamespace("checkbox"),checkboxProps=extend$1({},checkerProps,{shape:String,bindGroup:truthProp,indeterminate:{type:Boolean,default:null}});var stdin_default$1j=defineComponent({name:name$1c,props:checkboxProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{parent:ae}=useParent(CHECKBOX_GROUP_KEY),ie=fe=>{const{name:ve}=ee,{max:be,modelValue:ye}=ae.props,$e=ye.slice();if(fe)!(be&&$e.length>=+be)&&!$e.includes(ve)&&($e.push(ve),ee.bindGroup&&ae.updateValue($e));else{const _e=$e.indexOf(ve);_e!==-1&&($e.splice(_e,1),ee.bindGroup&&ae.updateValue($e))}},se=computed(()=>ae&&ee.bindGroup?ae.props.modelValue.indexOf(ee.name)!==-1:!!ee.modelValue),de=(fe=!se.value)=>{ae&&ee.bindGroup?ie(fe):ne("update:modelValue",fe),ee.indeterminate!==null&&ne("change",fe)};return watch(()=>ee.modelValue,fe=>{ee.indeterminate===null&&ne("change",fe)}),useExpose({toggle:de,props:ee,checked:se}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode(stdin_default$1l,mergeProps({bem:bem$18,role:"checkbox",parent:ae,checked:se.value,onToggle:de},ee),pick(oe,["default","icon"]))}});const Checkbox=withInstall(stdin_default$1j),[name$1b,bem$17]=createNamespace("address-item");var stdin_default$1i=defineComponent({name:name$1b,props:{address:makeRequiredProp(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:makeStringProp("edit")},emits:["edit","click","select"],setup(ee,{slots:ne,emit:oe}){const ae=fe=>{ee.switchable&&oe("select"),oe("click",fe)},ie=()=>createVNode(Icon,{name:ee.rightIcon,class:bem$17("edit"),onClick:fe=>{fe.stopPropagation(),oe("edit"),oe("click",fe)}},null),se=()=>{if(ne.tag)return ne.tag(ee.address);if(ee.address.isDefault&&ee.defaultTagText)return createVNode(Tag,{type:"primary",round:!0,class:bem$17("tag")},{default:()=>[ee.defaultTagText]})},de=()=>{const{address:fe,disabled:ve,switchable:be,singleChoice:ye}=ee,$e=[createVNode("div",{class:bem$17("name")},[`${fe.name} ${fe.tel}`,se()]),createVNode("div",{class:bem$17("address")},[fe.address])];return be&&!ve?ye?createVNode(Radio,{name:fe.id,iconSize:18},{default:()=>[$e]}):createVNode(Checkbox,{name:fe.id,iconSize:18},{default:()=>[$e]}):$e};return()=>{var fe;const{disabled:ve}=ee;return createVNode("div",{class:bem$17({disabled:ve}),onClick:ae},[createVNode(Cell,{border:!1,titleClass:bem$17("title")},{title:de,"right-icon":ie}),(fe=ne.bottom)==null?void 0:fe.call(ne,extend$1({},ee.address,{disabled:ve}))])}}});const[name$1a,bem$16,t$h]=createNamespace("address-list"),addressListProps={list:makeArrayProp(),modelValue:[...numericProp,Array],switchable:truthProp,disabledText:String,disabledList:makeArrayProp(),showAddButton:truthProp,addButtonText:String,defaultTagText:String,rightIcon:makeStringProp("edit")};var stdin_default$1h=defineComponent({name:name$1a,props:addressListProps,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(ee,{slots:ne,emit:oe}){const ae=computed(()=>!Array.isArray(ee.modelValue)),ie=(fe,ve,be)=>{const ye=()=>oe(be?"editDisabled":"edit",fe,ve),$e=Ee=>oe("clickItem",fe,ve,{event:Ee}),_e=()=>{if(oe(be?"selectDisabled":"select",fe,ve),!be)if(ae.value)oe("update:modelValue",fe.id);else{const Ee=ee.modelValue;Ee.includes(fe.id)?oe("update:modelValue",Ee.filter(we=>we!==fe.id)):oe("update:modelValue",[...Ee,fe.id])}};return createVNode(stdin_default$1i,{key:fe.id,address:fe,disabled:be,switchable:ee.switchable,singleChoice:ae.value,defaultTagText:ee.defaultTagText,rightIcon:ee.rightIcon,onEdit:ye,onClick:$e,onSelect:_e},{bottom:ne["item-bottom"],tag:ne.tag})},se=(fe,ve)=>{if(fe)return fe.map((be,ye)=>ie(be,ye,ve))},de=()=>ee.showAddButton?createVNode("div",{class:[bem$16("bottom"),"van-safe-area-bottom"]},[createVNode(Button,{round:!0,block:!0,type:"primary",text:ee.addButtonText||t$h("add"),class:bem$16("add"),onClick:()=>oe("add")},null)]):void 0;return()=>{var fe,ve;const be=se(ee.list),ye=se(ee.disabledList,!0),$e=ee.disabledText&&createVNode("div",{class:bem$16("disabled-text")},[ee.disabledText]);return createVNode("div",{class:bem$16()},[(fe=ne.top)==null?void 0:fe.call(ne),!ae.value&&Array.isArray(ee.modelValue)?createVNode(CheckboxGroup,{modelValue:ee.modelValue},{default:()=>[be]}):createVNode(RadioGroup,{modelValue:ee.modelValue},{default:()=>[be]}),$e,ye,(ve=ne.default)==null?void 0:ve.call(ne),de()])}}});const AddressList=withInstall(stdin_default$1h);function throttle$1(ee,ne){let oe=null,ae=0;return function(...ie){if(oe)return;const se=Date.now()-ae,de=()=>{ae=Date.now(),oe=!1,ee.apply(this,ie)};se>=ne?de():oe=setTimeout(de,ne)}}const[name$19,bem$15]=createNamespace("back-top"),backTopProps={right:numericProp,bottom:numericProp,zIndex:numericProp,target:[String,Object],offset:makeNumericProp(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var stdin_default$1g=defineComponent({name:name$19,inheritAttrs:!1,props:backTopProps,emits:["click"],setup(ee,{emit:ne,slots:oe,attrs:ae}){let ie=!1;const se=ref(!1),de=ref(),fe=ref(),ve=computed(()=>extend$1(getZIndexStyle(ee.zIndex),{right:addUnit(ee.right),bottom:addUnit(ee.bottom)})),be=Ee=>{var we;ne("click",Ee),(we=fe.value)==null||we.scrollTo({top:0,behavior:ee.immediate?"auto":"smooth"})},ye=()=>{se.value=fe.value?getScrollTop(fe.value)>=+ee.offset:!1},$e=()=>{const{target:Ee}=ee;if(typeof Ee=="string"){const we=document.querySelector(Ee);if(we)return we}else return Ee},_e=()=>{inBrowser$1&&nextTick(()=>{fe.value=ee.target?$e():getScrollParent$1(de.value),ye()})};return useEventListener("scroll",throttle$1(ye,100),{target:fe}),onMounted(_e),onActivated(()=>{ie&&(se.value=!0,ie=!1)}),onDeactivated(()=>{se.value&&ee.teleport&&(se.value=!1,ie=!0)}),watch(()=>ee.target,_e),()=>{const Ee=createVNode("div",mergeProps({ref:ee.teleport?void 0:de,class:bem$15({active:se.value}),style:ve.value,onClick:be},ae),[oe.default?oe.default():createVNode(Icon,{name:"back-top",class:bem$15("icon")},null)]);return ee.teleport?[createVNode("div",{ref:de,class:bem$15("placeholder")},null),createVNode(Teleport,{to:ee.teleport},{default:()=>[Ee]})]:Ee}}});const BackTop=withInstall(stdin_default$1g);var __async=(ee,ne,oe)=>new Promise((ae,ie)=>{var se=ve=>{try{fe(oe.next(ve))}catch(be){ie(be)}},de=ve=>{try{fe(oe.throw(ve))}catch(be){ie(be)}},fe=ve=>ve.done?ae(ve.value):Promise.resolve(ve.value).then(se,de);fe((oe=oe.apply(ee,ne)).next())});const barrageProps={top:makeNumericProp(10),rows:makeNumericProp(4),duration:makeNumericProp(4e3),autoPlay:truthProp,delay:makeNumberProp(300),modelValue:makeArrayProp()},[name$18,bem$14]=createNamespace("barrage");var stdin_default$1f=defineComponent({name:name$18,props:barrageProps,emits:["update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=bem$14("item"),se=ref(0),de=[],fe=(Pe,Ce=ee.delay)=>{const Oe=document.createElement("span");return Oe.className=ie,Oe.innerText=String(Pe),Oe.style.animationDuration=`${ee.duration}ms`,Oe.style.animationDelay=`${Ce}ms`,Oe.style.animationName="van-barrage",Oe.style.animationTimingFunction="linear",Oe},ve=ref(!0),be=ref(ee.autoPlay),ye=({id:Pe,text:Ce},Oe)=>{var Ae;const Ne=fe(Ce,ve.value?Oe*ee.delay:void 0);!ee.autoPlay&&be.value===!1&&(Ne.style.animationPlayState="paused"),(Ae=ae.value)==null||Ae.append(Ne),se.value++;const ke=(se.value-1)%+ee.rows*Ne.offsetHeight+ +ee.top;Ne.style.top=`${ke}px`,Ne.dataset.id=String(Pe),de.push(Ne),Ne.addEventListener("animationend",()=>{ne("update:modelValue",[...ee.modelValue].filter(Re=>String(Re.id)!==Ne.dataset.id))})},$e=(Pe,Ce)=>{const Oe=new Map(Ce.map(Ae=>[Ae.id,Ae]));Pe.forEach((Ae,Ne)=>{Oe.has(Ae.id)?Oe.delete(Ae.id):ye(Ae,Ne)}),Oe.forEach(Ae=>{const Ne=de.findIndex(ke=>ke.dataset.id===String(Ae.id));Ne>-1&&(de[Ne].remove(),de.splice(Ne,1))}),ve.value=!1};watch(()=>ee.modelValue.slice(),(Pe,Ce)=>$e(Pe??[],Ce??[]),{deep:!0});const _e=ref({});return onMounted(()=>__async(this,null,function*(){var Pe;_e.value["--move-distance"]=`-${(Pe=ae.value)==null?void 0:Pe.offsetWidth}px`,yield nextTick(),$e(ee.modelValue,[])})),useExpose({play:()=>{be.value=!0,de.forEach(Pe=>{Pe.style.animationPlayState="running"})},pause:()=>{be.value=!1,de.forEach(Pe=>{Pe.style.animationPlayState="paused"})}}),()=>{var Pe;return createVNode("div",{class:bem$14(),ref:ae,style:_e.value},[(Pe=oe.default)==null?void 0:Pe.call(oe)])}}});const Barrage=withInstall(stdin_default$1f),[name$17,bem$13,t$g]=createNamespace("calendar"),formatMonthTitle=ee=>t$g("monthTitle",ee.getFullYear(),ee.getMonth()+1);function compareMonth(ee,ne){const oe=ee.getFullYear(),ae=ne.getFullYear();if(oe===ae){const ie=ee.getMonth(),se=ne.getMonth();return ie===se?0:ie>se?1:-1}return oe>ae?1:-1}function compareDay(ee,ne){const oe=compareMonth(ee,ne);if(oe===0){const ae=ee.getDate(),ie=ne.getDate();return ae===ie?0:ae>ie?1:-1}return oe}const cloneDate=ee=>new Date(ee),cloneDates=ee=>Array.isArray(ee)?ee.map(cloneDate):cloneDate(ee);function getDayByOffset(ee,ne){const oe=cloneDate(ee);return oe.setDate(oe.getDate()+ne),oe}function getMonthByOffset(ee,ne){const oe=cloneDate(ee);return oe.setMonth(oe.getMonth()+ne),oe.getDate()!==ee.getDate()&&oe.setDate(0),oe}function getYearByOffset(ee,ne){const oe=cloneDate(ee);return oe.setFullYear(oe.getFullYear()+ne),oe.getDate()!==ee.getDate()&&oe.setDate(0),oe}const getPrevDay=ee=>getDayByOffset(ee,-1),getNextDay=ee=>getDayByOffset(ee,1),getPrevMonth=ee=>getMonthByOffset(ee,-1),getNextMonth=ee=>getMonthByOffset(ee,1),getPrevYear=ee=>getYearByOffset(ee,-1),getNextYear=ee=>getYearByOffset(ee,1),getToday=()=>{const ee=new Date;return ee.setHours(0,0,0,0),ee};function calcDateNum(ee){const ne=ee[0].getTime();return(ee[1].getTime()-ne)/(1e3*60*60*24)+1}const sharedProps=extend$1({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(ee,ne)=>ne}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(ee,ne){if(ee<0)return[];const oe=Array(ee);let ae=-1;for(;++ae32-new Date(ee,ne-1,32).getDate(),genOptions=(ee,ne,oe,ae,ie,se)=>{const de=times(ne-ee+1,fe=>{const ve=padZero(ee+fe);return ae(oe,{text:ve,value:ve})});return ie?ie(oe,de,se):de},formatValueRange=(ee,ne)=>ee.map((oe,ae)=>{const ie=ne[ae];if(ie.length){const se=+ie[0].value,de=+ie[ie.length-1].value;return padZero(clamp(+oe,se,de))}return oe}),[name$16]=createNamespace("calendar-day");var stdin_default$1e=defineComponent({name:name$16,props:{item:makeRequiredProp(Object),color:String,index:Number,offset:makeNumberProp(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>{var ve;const{item:be,index:ye,color:$e,offset:_e,rowHeight:Ee}=ee,we={height:Ee};if(be.type==="placeholder")return we.width="100%",we;if(ye===0&&(we.marginLeft=`${100*_e/7}%`),$e)switch(be.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":we.background=$e;break;case"middle":we.color=$e;break}return _e+(((ve=be.date)==null?void 0:ve.getDate())||1)>28&&(we.marginBottom=0),we}),ie=()=>{ee.item.type!=="disabled"?ne("click",ee.item):ne("clickDisabledDate",ee.item)},se=()=>{const{topInfo:ve}=ee.item;if(ve||oe["top-info"])return createVNode("div",{class:bem$13("top-info")},[oe["top-info"]?oe["top-info"](ee.item):ve])},de=()=>{const{bottomInfo:ve}=ee.item;if(ve||oe["bottom-info"])return createVNode("div",{class:bem$13("bottom-info")},[oe["bottom-info"]?oe["bottom-info"](ee.item):ve])},fe=()=>{const{item:ve,color:be,rowHeight:ye}=ee,{type:$e,text:_e}=ve,Ee=[se(),_e,de()];return $e==="selected"?createVNode("div",{class:bem$13("selected-day"),style:{width:ye,height:ye,background:be}},[Ee]):Ee};return()=>{const{type:ve,className:be}=ee.item;return ve==="placeholder"?createVNode("div",{class:bem$13("day"),style:ae.value},null):createVNode("div",{role:"gridcell",style:ae.value,class:[bem$13("day",ve),be],tabindex:ve==="disabled"?void 0:-1,onClick:ie},[fe()])}}});const[name$15]=createNamespace("calendar-month"),calendarMonthProps={date:makeRequiredProp(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:numericProp,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var stdin_default$1d=defineComponent({name:name$15,props:calendarMonthProps,emits:["click","clickDisabledDate"],setup(ee,{emit:ne,slots:oe}){const[ae,ie]=useToggle(),se=ref(),de=ref(),fe=useHeight(de),ve=computed(()=>formatMonthTitle(ee.date)),be=computed(()=>addUnit(ee.rowHeight)),ye=computed(()=>{const je=ee.date.getDate(),He=(ee.date.getDay()-je%7+8)%7;return ee.firstDayOfWeek?(He+7-ee.firstDayOfWeek)%7:He}),$e=computed(()=>getMonthEndDay(ee.date.getFullYear(),ee.date.getMonth()+1)),_e=computed(()=>ae.value||!ee.lazyRender),Ee=()=>ve.value,we=je=>{const Be=He=>ee.currentDate.some(ot=>compareDay(ot,He)===0);if(Be(je)){const He=getPrevDay(je),ot=getNextDay(je),Nt=Be(He),st=Be(ot);return Nt&&st?"multiple-middle":Nt?"end":st?"start":"multiple-selected"}return""},Pe=je=>{const[Be,He]=ee.currentDate;if(!Be)return"";const ot=compareDay(je,Be);if(!He)return ot===0?"start":"";const Nt=compareDay(je,He);return ee.allowSameDay&&ot===0&&Nt===0?"start-end":ot===0?"start":Nt===0?"end":ot>0&&Nt<0?"middle":""},Ce=je=>{const{type:Be,minDate:He,maxDate:ot,currentDate:Nt}=ee;if(He&&compareDay(je,He)<0||ot&&compareDay(je,ot)>0)return"disabled";if(Nt===null)return"";if(Array.isArray(Nt)){if(Be==="multiple")return we(je);if(Be==="range")return Pe(je)}else if(Be==="single")return compareDay(je,Nt)===0?"selected":"";return""},Oe=je=>{if(ee.type==="range"){if(je==="start"||je==="end")return t$g(je);if(je==="start-end")return`${t$g("start")}/${t$g("end")}`}},Ae=()=>{if(ee.showMonthTitle)return createVNode("div",{class:bem$13("month-title")},[oe["month-title"]?oe["month-title"]({date:ee.date,text:ve.value}):ve.value])},Ne=()=>{if(ee.showMark&&_e.value)return createVNode("div",{class:bem$13("month-mark")},[ee.date.getMonth()+1])},ke=computed(()=>{const je=Math.ceil(($e.value+ye.value)/7);return Array(je).fill({type:"placeholder"})}),Re=computed(()=>{const je=[],Be=ee.date.getFullYear(),He=ee.date.getMonth();for(let ot=1;ot<=$e.value;ot++){const Nt=new Date(Be,He,ot),st=Ce(Nt);let Ue={date:Nt,type:st,text:ot,bottomInfo:Oe(st)};ee.formatter&&(Ue=ee.formatter(Ue)),je.push(Ue)}return je}),Le=computed(()=>Re.value.filter(je=>je.type==="disabled")),Me=(je,Be)=>{if(se.value){const He=useRect(se.value),ot=ke.value.length,st=(Math.ceil((Be.getDate()+ye.value)/7)-1)*He.height/ot;setScrollTop(je,He.top+st+je.scrollTop-useRect(je).top)}},Ie=(je,Be)=>createVNode(stdin_default$1e,{item:je,index:Be,color:ee.color,offset:ye.value,rowHeight:be.value,onClick:He=>ne("click",He),onClickDisabledDate:He=>ne("clickDisabledDate",He)},pick(oe,["top-info","bottom-info"])),Fe=()=>createVNode("div",{ref:se,role:"grid",class:bem$13("days")},[Ne(),(_e.value?Re:ke).value.map(Ie)]);return useExpose({getTitle:Ee,getHeight:()=>fe.value,setVisible:ie,scrollToDate:Me,disabledDays:Le}),()=>createVNode("div",{class:bem$13("month"),ref:de},[Ae(),Fe()])}});const[name$14]=createNamespace("calendar-header");var stdin_default$1c=defineComponent({name:name$14,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:makeStringProp("none")},emits:["clickSubtitle","panelChange"],setup(ee,{slots:ne,emit:oe}){const ae=computed(()=>ee.date&&ee.minDate&&compareMonth(getPrevMonth(ee.date),ee.minDate)<0),ie=computed(()=>ee.date&&ee.minDate&&compareMonth(getPrevYear(ee.date),ee.minDate)<0),se=computed(()=>ee.date&&ee.maxDate&&compareMonth(getNextMonth(ee.date),ee.maxDate)>0),de=computed(()=>ee.date&&ee.maxDate&&compareMonth(getNextYear(ee.date),ee.maxDate)>0),fe=()=>{if(ee.showTitle){const Ee=ee.title||t$g("title"),we=ne.title?ne.title():Ee;return createVNode("div",{class:bem$13("header-title")},[we])}},ve=Ee=>oe("clickSubtitle",Ee),be=Ee=>oe("panelChange",Ee),ye=Ee=>{const we=ee.switchMode==="year-month",Pe=ne[Ee?"next-month":"prev-month"],Ce=ne[Ee?"next-year":"prev-year"],Oe=Ee?se.value:ae.value,Ae=Ee?de.value:ie.value,Ne=Ee?"arrow":"arrow-left",ke=Ee?"arrow-double-right":"arrow-double-left",Re=()=>be((Ee?getNextMonth:getPrevMonth)(ee.date)),Le=()=>be((Ee?getNextYear:getPrevYear)(ee.date)),Me=createVNode("view",{class:bem$13("header-action",{disabled:Oe}),onClick:Oe?void 0:Re},[Pe?Pe({disabled:Oe}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!Oe},name:Ne},null)]),Ie=we&&createVNode("view",{class:bem$13("header-action",{disabled:Ae}),onClick:Ae?void 0:Le},[Ce?Ce({disabled:Ae}):createVNode(Icon,{class:{[HAPTICS_FEEDBACK]:!Ae},name:ke},null)]);return Ee?[Me,Ie]:[Ie,Me]},$e=()=>{if(ee.showSubtitle){const Ee=ne.subtitle?ne.subtitle({date:ee.date,text:ee.subtitle}):ee.subtitle,we=ee.switchMode!=="none";return createVNode("div",{class:bem$13("header-subtitle",{"with-swicth":we}),onClick:ve},[we?[ye(),createVNode("div",{class:bem$13("header-subtitle-text")},[Ee]),ye(!0)]:Ee])}},_e=()=>{const{firstDayOfWeek:Ee}=ee,we=t$g("weekdays"),Pe=[...we.slice(Ee,7),...we.slice(0,Ee)];return createVNode("div",{class:bem$13("weekdays")},[Pe.map(Ce=>createVNode("span",{class:bem$13("weekday")},[Ce]))])};return()=>createVNode("div",{class:bem$13("header")},[fe(),$e(),_e()])}});const calendarProps={show:Boolean,type:makeStringProp("single"),switchMode:makeStringProp("none"),title:String,color:String,round:truthProp,readonly:Boolean,poppable:truthProp,maxRange:makeNumericProp(null),position:makeStringProp("bottom"),teleport:[String,Object],showMark:truthProp,showTitle:truthProp,formatter:Function,rowHeight:numericProp,confirmText:String,rangePrompt:String,lazyRender:truthProp,showConfirm:truthProp,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:truthProp,closeOnPopstate:truthProp,showRangePrompt:truthProp,confirmDisabledText:String,closeOnClickOverlay:truthProp,safeAreaInsetTop:Boolean,safeAreaInsetBottom:truthProp,minDate:{type:Date,validator:isDate$1},maxDate:{type:Date,validator:isDate$1},firstDayOfWeek:{type:numericProp,default:0,validator:ee=>ee>=0&&ee<=6}};var stdin_default$1b=defineComponent({name:name$17,props:calendarProps,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","panelChange"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>ee.switchMode!=="none"),ie=computed(()=>!ee.minDate&&!ae.value?getToday():ee.minDate),se=computed(()=>!ee.maxDate&&!ae.value?getMonthByOffset(getToday(),6):ee.maxDate),de=(We,Pt=ie.value,Mt=se.value)=>Pt&&compareDay(We,Pt)===-1?Pt:Mt&&compareDay(We,Mt)===1?Mt:We,fe=(We=ee.defaultDate)=>{const{type:Pt,allowSameDay:Mt}=ee;if(We===null)return We;const jt=getToday();if(Pt==="range"){Array.isArray(We)||(We=[]);const Rt=ie.value,Wt=se.value,Ke=de(We[0]||jt,Rt,Wt?Mt?Wt:getPrevDay(Wt):void 0),It=de(We[1]||(Mt?jt:getNextDay(jt)),Rt?Mt?Rt:getNextDay(Rt):void 0);return[Ke,It]}return Pt==="multiple"?Array.isArray(We)?We.map(Rt=>de(Rt)):[de(jt)]:((!We||Array.isArray(We))&&(We=jt),de(We))},ve=()=>{const We=Array.isArray($e.value)?$e.value[0]:$e.value;return We||de(getToday())};let be;const ye=ref(),$e=ref(fe()),_e=ref(ve()),Ee=ref(),[we,Pe]=useRefs(),Ce=computed(()=>ee.firstDayOfWeek?+ee.firstDayOfWeek%7:0),Oe=computed(()=>{const We=[];if(!ie.value||!se.value)return We;const Pt=new Date(ie.value);Pt.setDate(1);do We.push(new Date(Pt)),Pt.setMonth(Pt.getMonth()+1);while(compareMonth(Pt,se.value)!==1);return We}),Ae=computed(()=>{if($e.value){if(ee.type==="range")return!$e.value[0]||!$e.value[1];if(ee.type==="multiple")return!$e.value.length}return!$e.value}),Ne=()=>$e.value,ke=()=>{const We=getScrollTop(ye.value),Pt=We+be,Mt=Oe.value.map((It,Lt)=>we.value[Lt].getHeight()),jt=Mt.reduce((It,Lt)=>It+Lt,0);if(Pt>jt&&We>0)return;let Rt=0,Wt;const Ke=[-1,-1];for(let It=0;It=We&&(Ke[1]=It,Wt||(Wt=Lt,Ke[0]=It),we.value[It].showed||(we.value[It].showed=!0,ne("monthShow",{date:Lt.date,title:Lt.getTitle()}))),Rt+=Mt[It]}Oe.value.forEach((It,Lt)=>{const Dt=Lt>=Ke[0]-1&&Lt<=Ke[1]+1;we.value[Lt].setVisible(Dt)}),Wt&&(Ee.value=Wt)},Re=We=>{ae.value?_e.value=We:raf(()=>{Oe.value.some((Pt,Mt)=>compareMonth(Pt,We)===0?(ye.value&&we.value[Mt].scrollToDate(ye.value,We),!0):!1),ke()})},Le=()=>{if(!(ee.poppable&&!ee.show))if($e.value){const We=ee.type==="single"?$e.value:$e.value[0];isDate$1(We)&&Re(We)}else ae.value||raf(ke)},Me=()=>{ee.poppable&&!ee.show||(ae.value||raf(()=>{be=Math.floor(useRect(ye).height)}),Le())},Ie=(We=fe())=>{$e.value=We,Le()},Fe=We=>{const{maxRange:Pt,rangePrompt:Mt,showRangePrompt:jt}=ee;return Pt&&calcDateNum(We)>+Pt?(jt&&showToast(Mt||t$g("rangePrompt",Pt)),ne("overRange"),!1):!0},je=We=>{_e.value=We,ne("panelChange",{date:We})},Be=()=>{var We;return ne("confirm",(We=$e.value)!=null?We:cloneDates($e.value))},He=(We,Pt)=>{const Mt=jt=>{$e.value=jt,ne("select",cloneDates(jt))};if(Pt&&ee.type==="range"&&!Fe(We)){Mt([We[0],getDayByOffset(We[0],+ee.maxRange-1)]);return}Mt(We),Pt&&!ee.showConfirm&&Be()},ot=(We,Pt,Mt)=>{var jt;return(jt=We.find(Rt=>compareDay(Pt,Rt.date)===-1&&compareDay(Rt.date,Mt)===-1))==null?void 0:jt.date},Nt=computed(()=>we.value.reduce((We,Pt)=>{var Mt,jt;return We.push(...(jt=(Mt=Pt.disabledDays)==null?void 0:Mt.value)!=null?jt:[]),We},[])),st=We=>{if(ee.readonly||!We.date)return;const{date:Pt}=We,{type:Mt}=ee;if(Mt==="range"){if(!$e.value){He([Pt]);return}const[jt,Rt]=$e.value;if(jt&&!Rt){const Wt=compareDay(Pt,jt);if(Wt===1){const Ke=ot(Nt.value,jt,Pt);if(Ke){const It=getPrevDay(Ke);compareDay(jt,It)===-1?He([jt,It]):He([Pt])}else He([jt,Pt],!0)}else Wt===-1?He([Pt]):ee.allowSameDay&&He([Pt,Pt],!0)}else He([Pt])}else if(Mt==="multiple"){if(!$e.value){He([Pt]);return}const jt=$e.value,Rt=jt.findIndex(Wt=>compareDay(Wt,Pt)===0);if(Rt!==-1){const[Wt]=jt.splice(Rt,1);ne("unselect",cloneDate(Wt))}else ee.maxRange&&jt.length>=+ee.maxRange?showToast(ee.rangePrompt||t$g("rangePrompt",ee.maxRange)):He([...jt,Pt])}else He(Pt,!0)},Ue=We=>ne("update:show",We),Ze=(We,Pt)=>{const Mt=Pt!==0||!ee.showSubtitle;return createVNode(stdin_default$1d,mergeProps({ref:ae.value?Ee:Pe(Pt),date:We,currentDate:$e.value,showMonthTitle:Mt,firstDayOfWeek:Ce.value,lazyRender:ae.value?!1:ee.lazyRender,maxDate:se.value,minDate:ie.value},pick(ee,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:st,onClickDisabledDate:jt=>ne("clickDisabledDate",jt)}),pick(oe,["top-info","bottom-info","month-title"]))},Tt=()=>{if(oe.footer)return oe.footer();if(ee.showConfirm){const We=oe["confirm-text"],Pt=Ae.value,Mt=Pt?ee.confirmDisabledText:ee.confirmText;return createVNode(Button,{round:!0,block:!0,type:"primary",color:ee.color,class:bem$13("confirm"),disabled:Pt,nativeType:"button",onClick:Be},{default:()=>[We?We({disabled:Pt}):Mt||t$g("confirm")]})}},Vt=()=>createVNode("div",{class:[bem$13("footer"),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[Tt()]),Ut=()=>{var We,Pt;return createVNode("div",{class:bem$13()},[createVNode(stdin_default$1c,{date:(We=Ee.value)==null?void 0:We.date,maxDate:se.value,minDate:ie.value,title:ee.title,subtitle:(Pt=Ee.value)==null?void 0:Pt.getTitle(),showTitle:ee.showTitle,showSubtitle:ee.showSubtitle,switchMode:ee.switchMode,firstDayOfWeek:Ce.value,onClickSubtitle:Mt=>ne("clickSubtitle",Mt),onPanelChange:je},pick(oe,["title","subtitle","prev-month","prev-year","next-month","next-year"])),createVNode("div",{ref:ye,class:bem$13("body"),onScroll:ae.value?void 0:ke},[ae.value?Ze(_e.value,0):Oe.value.map(Ze)]),Vt()])};return watch(()=>ee.show,Me),watch(()=>[ee.type,ee.minDate,ee.maxDate,ee.switchMode],()=>Ie(fe($e.value))),watch(()=>ee.defaultDate,(We=null)=>{$e.value=We,Le()}),useExpose({reset:Ie,scrollToDate:Re,getSelectedDate:Ne}),onMountedOrActivated(Me),()=>ee.poppable?createVNode(Popup,{show:ee.show,class:bem$13("popup"),round:ee.round,position:ee.position,closeable:ee.showTitle||ee.showSubtitle,teleport:ee.teleport,closeOnPopstate:ee.closeOnPopstate,safeAreaInsetTop:ee.safeAreaInsetTop,closeOnClickOverlay:ee.closeOnClickOverlay,"onUpdate:show":Ue},{default:Ut}):Ut()}});const Calendar=withInstall(stdin_default$1b),[name$13,bem$12]=createNamespace("image"),imageProps={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:numericProp,height:numericProp,radius:numericProp,lazyLoad:Boolean,iconSize:numericProp,showError:truthProp,errorIcon:makeStringProp("photo-fail"),iconPrefix:String,showLoading:truthProp,loadingIcon:makeStringProp("photo"),crossorigin:String,referrerpolicy:String};var stdin_default$1a=defineComponent({name:name$13,props:imageProps,emits:["load","error"],setup(ee,{emit:ne,slots:oe}){const ae=ref(!1),ie=ref(!0),se=ref(),{$Lazyload:de}=getCurrentInstance().proxy,fe=computed(()=>{const Ce={width:addUnit(ee.width),height:addUnit(ee.height)};return isDef(ee.radius)&&(Ce.overflow="hidden",Ce.borderRadius=addUnit(ee.radius)),Ce});watch(()=>ee.src,()=>{ae.value=!1,ie.value=!0});const ve=Ce=>{ie.value&&(ie.value=!1,ne("load",Ce))},be=()=>{const Ce=new Event("load");Object.defineProperty(Ce,"target",{value:se.value,enumerable:!0}),ve(Ce)},ye=Ce=>{ae.value=!0,ie.value=!1,ne("error",Ce)},$e=(Ce,Oe,Ae)=>Ae?Ae():createVNode(Icon,{name:Ce,size:ee.iconSize,class:Oe,classPrefix:ee.iconPrefix},null),_e=()=>{if(ie.value&&ee.showLoading)return createVNode("div",{class:bem$12("loading")},[$e(ee.loadingIcon,bem$12("loading-icon"),oe.loading)]);if(ae.value&&ee.showError)return createVNode("div",{class:bem$12("error")},[$e(ee.errorIcon,bem$12("error-icon"),oe.error)])},Ee=()=>{if(ae.value||!ee.src)return;const Ce={alt:ee.alt,class:bem$12("img"),style:{objectFit:ee.fit,objectPosition:ee.position},crossorigin:ee.crossorigin,referrerpolicy:ee.referrerpolicy};return ee.lazyLoad?withDirectives(createVNode("img",mergeProps({ref:se},Ce),null),[[resolveDirective("lazy"),ee.src]]):createVNode("img",mergeProps({ref:se,src:ee.src,onLoad:ve,onError:ye},Ce),null)},we=({el:Ce})=>{const Oe=()=>{Ce===se.value&&ie.value&&be()};se.value?Oe():nextTick(Oe)},Pe=({el:Ce})=>{Ce===se.value&&!ae.value&&ye()};return de&&inBrowser$1&&(de.$on("loaded",we),de.$on("error",Pe),onBeforeUnmount(()=>{de.$off("loaded",we),de.$off("error",Pe)})),onMounted(()=>{nextTick(()=>{var Ce;(Ce=se.value)!=null&&Ce.complete&&!ee.lazyLoad&&be()})}),()=>{var Ce;return createVNode("div",{class:bem$12({round:ee.round,block:ee.block}),style:fe.value},[Ee(),_e(),(Ce=oe.default)==null?void 0:Ce.call(oe)])}}});const Image$1=withInstall(stdin_default$1a),[name$12,bem$11]=createNamespace("card"),cardProps={tag:String,num:numericProp,desc:String,thumb:String,title:String,price:numericProp,centered:Boolean,lazyLoad:Boolean,currency:makeStringProp("¥"),thumbLink:String,originPrice:numericProp};var stdin_default$19=defineComponent({name:name$12,props:cardProps,emits:["clickThumb"],setup(ee,{slots:ne,emit:oe}){const ae=()=>{if(ne.title)return ne.title();if(ee.title)return createVNode("div",{class:[bem$11("title"),"van-multi-ellipsis--l2"]},[ee.title])},ie=()=>{if(ne.tag||ee.tag)return createVNode("div",{class:bem$11("tag")},[ne.tag?ne.tag():createVNode(Tag,{mark:!0,type:"primary"},{default:()=>[ee.tag]})])},se=()=>ne.thumb?ne.thumb():createVNode(Image$1,{src:ee.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:ee.lazyLoad},null),de=()=>{if(ne.thumb||ee.thumb)return createVNode("a",{href:ee.thumbLink,class:bem$11("thumb"),onClick:be=>oe("clickThumb",be)},[se(),ie()])},fe=()=>{if(ne.desc)return ne.desc();if(ee.desc)return createVNode("div",{class:[bem$11("desc"),"van-ellipsis"]},[ee.desc])},ve=()=>{const be=ee.price.toString().split(".");return createVNode("div",null,[createVNode("span",{class:bem$11("price-currency")},[ee.currency]),createVNode("span",{class:bem$11("price-integer")},[be[0]]),be.length>1&&createVNode(Fragment,null,[createTextVNode("."),createVNode("span",{class:bem$11("price-decimal")},[be[1]])])])};return()=>{var be,ye,$e;const _e=ne.num||isDef(ee.num),Ee=ne.price||isDef(ee.price),we=ne["origin-price"]||isDef(ee.originPrice),Pe=_e||Ee||we||ne.bottom,Ce=Ee&&createVNode("div",{class:bem$11("price")},[ne.price?ne.price():ve()]),Oe=we&&createVNode("div",{class:bem$11("origin-price")},[ne["origin-price"]?ne["origin-price"]():`${ee.currency} ${ee.originPrice}`]),Ae=_e&&createVNode("div",{class:bem$11("num")},[ne.num?ne.num():`x${ee.num}`]),Ne=ne.footer&&createVNode("div",{class:bem$11("footer")},[ne.footer()]),ke=Pe&&createVNode("div",{class:bem$11("bottom")},[(be=ne["price-top"])==null?void 0:be.call(ne),Ce,Oe,Ae,(ye=ne.bottom)==null?void 0:ye.call(ne)]);return createVNode("div",{class:bem$11()},[createVNode("div",{class:bem$11("header")},[de(),createVNode("div",{class:bem$11("content",{centered:ee.centered})},[createVNode("div",null,[ae(),fe(),($e=ne.tags)==null?void 0:$e.call(ne)]),ke])]),Ne])}}});const Card=withInstall(stdin_default$19),[name$11,bem$10,t$f]=createNamespace("cascader"),cascaderProps={title:String,options:makeArrayProp(),closeable:truthProp,swipeable:truthProp,closeIcon:makeStringProp("cross"),showHeader:truthProp,modelValue:numericProp,fieldNames:Object,placeholder:String,activeColor:String};var stdin_default$18=defineComponent({name:name$11,props:cascaderProps,emits:["close","change","finish","clickTab","update:modelValue"],setup(ee,{slots:ne,emit:oe}){const ae=ref([]),ie=ref(0),[se,de]=useRefs(),{text:fe,value:ve,children:be}=extend$1({text:"text",value:"value",children:"children"},ee.fieldNames),ye=(Re,Le)=>{for(const Me of Re){if(Me[ve]===Le)return[Me];if(Me[be]){const Ie=ye(Me[be],Le);if(Ie)return[Me,...Ie]}}},$e=()=>{const{options:Re,modelValue:Le}=ee;if(Le!==void 0){const Me=ye(Re,Le);if(Me){let Ie=Re;ae.value=Me.map(Fe=>{const je={options:Ie,selected:Fe},Be=Ie.find(He=>He[ve]===Fe[ve]);return Be&&(Ie=Be[be]),je}),Ie&&ae.value.push({options:Ie,selected:null}),nextTick(()=>{ie.value=ae.value.length-1});return}}ae.value=[{options:Re,selected:null}]},_e=(Re,Le)=>{if(Re.disabled)return;if(ae.value[Le].selected=Re,ae.value.length>Le+1&&(ae.value=ae.value.slice(0,Le+1)),Re[be]){const Fe={options:Re[be],selected:null};ae.value[Le+1]?ae.value[Le+1]=Fe:ae.value.push(Fe),nextTick(()=>{ie.value++})}const Me=ae.value.map(Fe=>Fe.selected).filter(Boolean);oe("update:modelValue",Re[ve]);const Ie={value:Re[ve],tabIndex:Le,selectedOptions:Me};oe("change",Ie),Re[be]||oe("finish",Ie)},Ee=()=>oe("close"),we=({name:Re,title:Le})=>oe("clickTab",Re,Le),Pe=()=>ee.showHeader?createVNode("div",{class:bem$10("header")},[createVNode("h2",{class:bem$10("title")},[ne.title?ne.title():ee.title]),ee.closeable?createVNode(Icon,{name:ee.closeIcon,class:[bem$10("close-icon"),HAPTICS_FEEDBACK],onClick:Ee},null):null]):null,Ce=(Re,Le,Me)=>{const{disabled:Ie}=Re,Fe=!!(Le&&Re[ve]===Le[ve]),je=Re.color||(Fe?ee.activeColor:void 0),Be=ne.option?ne.option({option:Re,selected:Fe}):createVNode("span",null,[Re[fe]]);return createVNode("li",{ref:Fe?de(Me):void 0,role:"menuitemradio",class:[bem$10("option",{selected:Fe,disabled:Ie}),Re.className],style:{color:je},tabindex:Ie?void 0:Fe?0:-1,"aria-checked":Fe,"aria-disabled":Ie||void 0,onClick:()=>_e(Re,Me)},[Be,Fe?createVNode(Icon,{name:"success",class:bem$10("selected-icon")},null):null])},Oe=(Re,Le,Me)=>createVNode("ul",{role:"menu",class:bem$10("options")},[Re.map(Ie=>Ce(Ie,Le,Me))]),Ae=(Re,Le)=>{const{options:Me,selected:Ie}=Re,Fe=ee.placeholder||t$f("select"),je=Ie?Ie[fe]:Fe;return createVNode(Tab,{title:je,titleClass:bem$10("tab",{unselected:!Ie})},{default:()=>{var Be,He;return[(Be=ne["options-top"])==null?void 0:Be.call(ne,{tabIndex:Le}),Oe(Me,Ie,Le),(He=ne["options-bottom"])==null?void 0:He.call(ne,{tabIndex:Le})]}})},Ne=()=>createVNode(Tabs,{active:ie.value,"onUpdate:active":Re=>ie.value=Re,shrink:!0,animated:!0,class:bem$10("tabs"),color:ee.activeColor,swipeable:ee.swipeable,onClickTab:we},{default:()=>[ae.value.map(Ae)]}),ke=Re=>{const Le=Re.parentElement;Le&&(Le.scrollTop=Re.offsetTop-(Le.offsetHeight-Re.offsetHeight)/2)};return $e(),watch(ie,Re=>{const Le=se.value[Re];Le&&ke(Le)}),watch(()=>ee.options,$e,{deep:!0}),watch(()=>ee.modelValue,Re=>{Re!==void 0&&ae.value.map(Me=>{var Ie;return(Ie=Me.selected)==null?void 0:Ie[ve]}).includes(Re)||$e()}),()=>createVNode("div",{class:bem$10()},[Pe(),Ne()])}});const Cascader=withInstall(stdin_default$18),[name$10,bem$$]=createNamespace("cell-group"),cellGroupProps={title:String,inset:Boolean,border:truthProp};var stdin_default$17=defineComponent({name:name$10,inheritAttrs:!1,props:cellGroupProps,setup(ee,{slots:ne,attrs:oe}){const ae=()=>{var se;return createVNode("div",mergeProps({class:[bem$$({inset:ee.inset}),{[BORDER_TOP_BOTTOM]:ee.border&&!ee.inset}]},oe,useScopeId()),[(se=ne.default)==null?void 0:se.call(ne)])},ie=()=>createVNode("div",{class:bem$$("title",{inset:ee.inset})},[ne.title?ne.title():ee.title]);return()=>ee.title||ne.title?createVNode(Fragment,null,[ie(),ae()]):ae()}});const CellGroup=withInstall(stdin_default$17),[name$$,bem$_]=createNamespace("circle");let uid=0;const format$1=ee=>Math.min(Math.max(+ee,0),100);function getPath(ee,ne){const oe=ee?1:0;return`M ${ne/2} ${ne/2} m 0, -500 a 500, 500 0 1, ${oe} 0, 1000 a 500, 500 0 1, ${oe} 0, -1000`}const circleProps={text:String,size:numericProp,fill:makeStringProp("none"),rate:makeNumericProp(100),speed:makeNumericProp(0),color:[String,Object],clockwise:truthProp,layerColor:String,currentRate:makeNumberProp(0),strokeWidth:makeNumericProp(40),strokeLinecap:String,startPosition:makeStringProp("top")};var stdin_default$16=defineComponent({name:name$$,props:circleProps,emits:["update:currentRate"],setup(ee,{emit:ne,slots:oe}){const ae=`van-circle-${uid++}`,ie=computed(()=>+ee.strokeWidth+1e3),se=computed(()=>getPath(ee.clockwise,ie.value)),de=computed(()=>{const _e={top:0,right:90,bottom:180,left:270}[ee.startPosition];if(_e)return{transform:`rotate(${_e}deg)`}});watch(()=>ee.rate,$e=>{let _e;const Ee=Date.now(),we=ee.currentRate,Pe=format$1($e),Ce=Math.abs((we-Pe)*1e3/+ee.speed),Oe=()=>{const Ae=Date.now(),ke=Math.min((Ae-Ee)/Ce,1)*(Pe-we)+we;ne("update:currentRate",format$1(parseFloat(ke.toFixed(1)))),(Pe>we?kePe)&&(_e=raf(Oe))};ee.speed?(_e&&cancelRaf(_e),_e=raf(Oe)):ne("update:currentRate",Pe)},{immediate:!0});const fe=()=>{const{strokeWidth:_e,currentRate:Ee,strokeLinecap:we}=ee,Pe=3140*Ee/100,Ce=isObject$1(ee.color)?`url(#${ae})`:ee.color,Oe={stroke:Ce,strokeWidth:`${+_e+1}px`,strokeLinecap:we,strokeDasharray:`${Pe}px 3140px`};return createVNode("path",{d:se.value,style:Oe,class:bem$_("hover"),stroke:Ce},null)},ve=()=>{const $e={fill:ee.fill,stroke:ee.layerColor,strokeWidth:`${ee.strokeWidth}px`};return createVNode("path",{class:bem$_("layer"),style:$e,d:se.value},null)},be=()=>{const{color:$e}=ee;if(!isObject$1($e))return;const _e=Object.keys($e).sort((Ee,we)=>parseFloat(Ee)-parseFloat(we)).map((Ee,we)=>createVNode("stop",{key:we,offset:Ee,"stop-color":$e[Ee]},null));return createVNode("defs",null,[createVNode("linearGradient",{id:ae,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[_e])])},ye=()=>{if(oe.default)return oe.default();if(ee.text)return createVNode("div",{class:bem$_("text")},[ee.text])};return()=>createVNode("div",{class:bem$_(),style:getSizeStyle(ee.size)},[createVNode("svg",{viewBox:`0 0 ${ie.value} ${ie.value}`,style:de.value},[be(),ve(),fe()]),ye()])}});const Circle=withInstall(stdin_default$16),[name$_,bem$Z]=createNamespace("row"),ROW_KEY=Symbol(name$_),rowProps={tag:makeStringProp("div"),wrap:truthProp,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var stdin_default$15=defineComponent({name:name$_,props:rowProps,setup(ee,{slots:ne}){const{children:oe,linkChildren:ae}=useChildren(ROW_KEY),ie=computed(()=>{const fe=[[]];let ve=0;return oe.forEach((be,ye)=>{ve+=Number(be.span),ve>24?(fe.push([ye]),ve-=24):fe[fe.length-1].push(ye)}),fe}),se=computed(()=>{let fe=0;Array.isArray(ee.gutter)?fe=Number(ee.gutter[0])||0:fe=Number(ee.gutter);const ve=[];return fe&&ie.value.forEach(be=>{const ye=fe*(be.length-1)/be.length;be.forEach(($e,_e)=>{if(_e===0)ve.push({right:ye});else{const Ee=fe-ve[$e-1].right,we=ye-Ee;ve.push({left:Ee,right:we})}})}),ve}),de=computed(()=>{const{gutter:fe}=ee,ve=[];if(Array.isArray(fe)&&fe.length>1){const be=Number(fe[1])||0;if(be<=0)return ve;ie.value.forEach((ye,$e)=>{$e!==ie.value.length-1&&ye.forEach(()=>{ve.push({bottom:be})})})}return ve});return ae({spaces:se,verticalSpaces:de}),()=>{const{tag:fe,wrap:ve,align:be,justify:ye}=ee;return createVNode(fe,{class:bem$Z({[`align-${be}`]:be,[`justify-${ye}`]:ye,nowrap:!ve})},{default:()=>{var $e;return[($e=ne.default)==null?void 0:$e.call(ne)]}})}}});const[name$Z,bem$Y]=createNamespace("col"),colProps={tag:makeStringProp("div"),span:makeNumericProp(0),offset:numericProp};var stdin_default$14=defineComponent({name:name$Z,props:colProps,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(ROW_KEY),ie=computed(()=>{if(!oe)return;const{spaces:se,verticalSpaces:de}=oe;let fe={};if(se&&se.value&&se.value[ae.value]){const{left:be,right:ye}=se.value[ae.value];fe={paddingLeft:be?`${be}px`:null,paddingRight:ye?`${ye}px`:null}}const{bottom:ve}=de.value[ae.value]||{};return extend$1(fe,{marginBottom:ve?`${ve}px`:null})});return()=>{const{tag:se,span:de,offset:fe}=ee;return createVNode(se,{style:ie.value,class:bem$Y({[de]:de,[`offset-${fe}`]:fe})},{default:()=>{var ve;return[(ve=ne.default)==null?void 0:ve.call(ne)]}})}}});const Col=withInstall(stdin_default$14),[name$Y,bem$X]=createNamespace("collapse"),COLLAPSE_KEY=Symbol(name$Y),collapseProps={border:truthProp,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var stdin_default$13=defineComponent({name:name$Y,props:collapseProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae,children:ie}=useChildren(COLLAPSE_KEY),se=be=>{ne("change",be),ne("update:modelValue",be)},de=(be,ye)=>{const{accordion:$e,modelValue:_e}=ee;se($e?be===_e?"":be:ye?_e.concat(be):_e.filter(Ee=>Ee!==be))},fe=(be={})=>{if(ee.accordion)return;typeof be=="boolean"&&(be={expanded:be});const{expanded:ye,skipDisabled:$e}=be,Ee=ie.filter(we=>we.disabled&&$e?we.expanded.value:ye??!we.expanded.value).map(we=>we.itemName.value);se(Ee)},ve=be=>{const{accordion:ye,modelValue:$e}=ee;return ye?$e===be:$e.includes(be)};return useExpose({toggleAll:fe}),ae({toggle:de,isExpanded:ve}),()=>{var be;return createVNode("div",{class:[bem$X(),{[BORDER_TOP_BOTTOM]:ee.border}]},[(be=oe.default)==null?void 0:be.call(oe)])}}});const Collapse=withInstall(stdin_default$13),[name$X,bem$W]=createNamespace("collapse-item"),CELL_SLOTS=["icon","title","value","label","right-icon"],collapseItemProps=extend$1({},cellSharedProps,{name:numericProp,isLink:truthProp,disabled:Boolean,readonly:Boolean,lazyRender:truthProp});var stdin_default$12=defineComponent({name:name$X,props:collapseItemProps,setup(ee,{slots:ne}){const oe=ref(),ae=ref(),{parent:ie,index:se}=useParent(COLLAPSE_KEY);if(!ie)return;const de=computed(()=>{var Pe;return(Pe=ee.name)!=null?Pe:se.value}),fe=computed(()=>ie.isExpanded(de.value)),ve=ref(fe.value),be=useLazyRender(()=>ve.value||!ee.lazyRender),ye=()=>{fe.value?oe.value&&(oe.value.style.height=""):ve.value=!1};watch(fe,(Pe,Ce)=>{if(Ce===null)return;Pe&&(ve.value=!0),(Pe?nextTick:raf)(()=>{if(!ae.value||!oe.value)return;const{offsetHeight:Ae}=ae.value;if(Ae){const Ne=`${Ae}px`;oe.value.style.height=Pe?"0":Ne,doubleRaf(()=>{oe.value&&(oe.value.style.height=Pe?Ne:"0")})}else ye()})});const $e=(Pe=!fe.value)=>{ie.toggle(de.value,Pe)},_e=()=>{!ee.disabled&&!ee.readonly&&$e()},Ee=()=>{const{border:Pe,disabled:Ce,readonly:Oe}=ee,Ae=pick(ee,Object.keys(cellSharedProps));return Oe&&(Ae.isLink=!1),(Ce||Oe)&&(Ae.clickable=!1),createVNode(Cell,mergeProps({role:"button",class:bem$W("title",{disabled:Ce,expanded:fe.value,borderless:!Pe}),"aria-expanded":String(fe.value),onClick:_e},Ae),pick(ne,CELL_SLOTS))},we=be(()=>{var Pe;return withDirectives(createVNode("div",{ref:oe,class:bem$W("wrapper"),onTransitionend:ye},[createVNode("div",{ref:ae,class:bem$W("content")},[(Pe=ne.default)==null?void 0:Pe.call(ne)])]),[[vShow,ve.value]])});return useExpose({toggle:$e,expanded:fe,itemName:de}),()=>createVNode("div",{class:[bem$W({border:se.value&&ee.border})]},[Ee(),we()])}});const CollapseItem=withInstall(stdin_default$12),ConfigProvider=withInstall(stdin_default$1Q),[name$W,bem$V,t$e]=createNamespace("contact-card"),contactCardProps={tel:String,name:String,type:makeStringProp("add"),addText:String,editable:truthProp};var stdin_default$11=defineComponent({name:name$W,props:contactCardProps,emits:["click"],setup(ee,{emit:ne}){const oe=ie=>{ee.editable&&ne("click",ie)},ae=()=>ee.type==="add"?ee.addText||t$e("addContact"):[createVNode("div",null,[`${t$e("name")}:${ee.name}`]),createVNode("div",null,[`${t$e("tel")}:${ee.tel}`])];return()=>createVNode(Cell,{center:!0,icon:ee.type==="edit"?"contact":"add-square",class:bem$V([ee.type]),border:!1,isLink:ee.editable,titleClass:bem$V("title"),onClick:oe},{title:ae})}});const ContactCard=withInstall(stdin_default$11),[name$V,bem$U,t$d]=createNamespace("contact-edit"),DEFAULT_CONTACT={tel:"",name:""},contactEditProps={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>extend$1({},DEFAULT_CONTACT)},telValidator:{type:Function,default:isMobile}};var stdin_default$10=defineComponent({name:name$V,props:contactEditProps,emits:["save","delete","changeDefault"],setup(ee,{emit:ne}){const oe=reactive(extend$1({},DEFAULT_CONTACT,ee.contactInfo)),ae=()=>{ee.isSaving||ne("save",oe)},ie=()=>ne("delete",oe),se=()=>createVNode("div",{class:bem$U("buttons")},[createVNode(Button,{block:!0,round:!0,type:"primary",text:t$d("save"),class:bem$U("button"),loading:ee.isSaving,nativeType:"submit"},null),ee.isEdit&&createVNode(Button,{block:!0,round:!0,text:t$d("delete"),class:bem$U("button"),loading:ee.isDeleting,onClick:ie},null)]),de=()=>createVNode(Switch,{modelValue:oe.isDefault,"onUpdate:modelValue":ve=>oe.isDefault=ve,onChange:ve=>ne("changeDefault",ve)},null),fe=()=>{if(ee.showSetDefault)return createVNode(Cell,{title:ee.setDefaultLabel,class:bem$U("switch-cell"),border:!1},{"right-icon":de})};return watch(()=>ee.contactInfo,ve=>extend$1(oe,DEFAULT_CONTACT,ve)),()=>createVNode(Form,{class:bem$U(),onSubmit:ae},{default:()=>[createVNode("div",{class:bem$U("fields")},[createVNode(Field,{modelValue:oe.name,"onUpdate:modelValue":ve=>oe.name=ve,clearable:!0,label:t$d("name"),rules:[{required:!0,message:t$d("nameEmpty")}],maxlength:"30",placeholder:t$d("name")},null),createVNode(Field,{modelValue:oe.tel,"onUpdate:modelValue":ve=>oe.tel=ve,clearable:!0,type:"tel",label:t$d("tel"),rules:[{validator:ee.telValidator,message:t$d("telInvalid")}],placeholder:t$d("tel")},null)]),fe(),se()]})}});const ContactEdit=withInstall(stdin_default$10),[name$U,bem$T,t$c]=createNamespace("contact-list"),contactListProps={list:Array,addText:String,modelValue:unknownProp,defaultTagText:String};var stdin_default$$=defineComponent({name:name$U,props:contactListProps,emits:["add","edit","select","update:modelValue"],setup(ee,{emit:ne}){const oe=(ae,ie)=>{const se=()=>{ne("update:modelValue",ae.id),ne("select",ae,ie)},de=()=>createVNode(Radio,{class:bem$T("radio"),name:ae.id,iconSize:18},null),fe=()=>createVNode(Icon,{name:"edit",class:bem$T("edit"),onClick:be=>{be.stopPropagation(),ne("edit",ae,ie)}},null),ve=()=>{const be=[`${ae.name},${ae.tel}`];return ae.isDefault&&ee.defaultTagText&&be.push(createVNode(Tag,{type:"primary",round:!0,class:bem$T("item-tag")},{default:()=>[ee.defaultTagText]})),be};return createVNode(Cell,{key:ae.id,isLink:!0,center:!0,class:bem$T("item"),titleClass:bem$T("item-title"),onClick:se},{icon:fe,title:ve,"right-icon":de})};return()=>createVNode("div",{class:bem$T()},[createVNode(RadioGroup,{modelValue:ee.modelValue,class:bem$T("group")},{default:()=>[ee.list&&ee.list.map(oe)]}),createVNode("div",{class:[bem$T("bottom"),"van-safe-area-bottom"]},[createVNode(Button,{round:!0,block:!0,type:"primary",class:bem$T("add"),text:ee.addText||t$c("addContact"),onClick:()=>ne("add")},null)])])}});const ContactList=withInstall(stdin_default$$);function parseFormat(ee,ne){const{days:oe}=ne;let{hours:ae,minutes:ie,seconds:se,milliseconds:de}=ne;if(ee.includes("DD")?ee=ee.replace("DD",padZero(oe)):ae+=oe*24,ee.includes("HH")?ee=ee.replace("HH",padZero(ae)):ie+=ae*60,ee.includes("mm")?ee=ee.replace("mm",padZero(ie)):se+=ie*60,ee.includes("ss")?ee=ee.replace("ss",padZero(se)):de+=se*1e3,ee.includes("S")){const fe=padZero(de,3);ee.includes("SSS")?ee=ee.replace("SSS",fe):ee.includes("SS")?ee=ee.replace("SS",fe.slice(0,2)):ee=ee.replace("S",fe.charAt(0))}return ee}const[name$T,bem$S]=createNamespace("count-down"),countDownProps={time:makeNumericProp(0),format:makeStringProp("HH:mm:ss"),autoStart:truthProp,millisecond:Boolean};var stdin_default$_=defineComponent({name:name$T,props:countDownProps,emits:["change","finish"],setup(ee,{emit:ne,slots:oe}){const{start:ae,pause:ie,reset:se,current:de}=useCountDown({time:+ee.time,millisecond:ee.millisecond,onChange:be=>ne("change",be),onFinish:()=>ne("finish")}),fe=computed(()=>parseFormat(ee.format,de.value)),ve=()=>{se(+ee.time),ee.autoStart&&ae()};return watch(()=>ee.time,ve,{immediate:!0}),useExpose({start:ae,pause:ie,reset:ve}),()=>createVNode("div",{role:"timer",class:bem$S()},[oe.default?oe.default(de.value):fe.value])}});const CountDown=withInstall(stdin_default$_);function getDate(ee){const ne=new Date(ee*1e3);return`${ne.getFullYear()}.${padZero(ne.getMonth()+1)}.${padZero(ne.getDate())}`}const formatDiscount=ee=>(ee/10).toFixed(ee%10===0?0:1),formatAmount=ee=>(ee/100).toFixed(ee%100===0?0:ee%10===0?1:2),[name$S,bem$R,t$b]=createNamespace("coupon");var stdin_default$Z=defineComponent({name:name$S,props:{chosen:Boolean,coupon:makeRequiredProp(Object),disabled:Boolean,currency:makeStringProp("¥")},setup(ee){const ne=computed(()=>{const{startAt:ie,endAt:se}=ee.coupon;return`${getDate(ie)} - ${getDate(se)}`}),oe=computed(()=>{const{coupon:ie,currency:se}=ee;if(ie.valueDesc)return[ie.valueDesc,createVNode("span",null,[ie.unitDesc||""])];if(ie.denominations){const de=formatAmount(ie.denominations);return[createVNode("span",null,[se]),` ${de}`]}return ie.discount?t$b("discount",formatDiscount(ie.discount)):""}),ae=computed(()=>{const ie=formatAmount(ee.coupon.originCondition||0);return ie==="0"?t$b("unlimited"):t$b("condition",ie)});return()=>{const{chosen:ie,coupon:se,disabled:de}=ee,fe=de&&se.reason||se.description;return createVNode("div",{class:bem$R({disabled:de})},[createVNode("div",{class:bem$R("content")},[createVNode("div",{class:bem$R("head")},[createVNode("h2",{class:bem$R("amount")},[oe.value]),createVNode("p",{class:bem$R("condition")},[se.condition||ae.value])]),createVNode("div",{class:bem$R("body")},[createVNode("p",{class:bem$R("name")},[se.name]),createVNode("p",{class:bem$R("valid")},[ne.value]),!de&&createVNode(Checkbox,{class:bem$R("corner"),modelValue:ie},null)])]),fe&&createVNode("p",{class:bem$R("description")},[fe])])}}});const Coupon=withInstall(stdin_default$Z),[name$R,bem$Q,t$a]=createNamespace("coupon-cell"),couponCellProps={title:String,border:truthProp,editable:truthProp,coupons:makeArrayProp(),currency:makeStringProp("¥"),chosenCoupon:{type:[Number,Array],default:-1}},getValue=ee=>{const{value:ne,denominations:oe}=ee;return isDef(ne)?ne:isDef(oe)?oe:0};function formatValue({coupons:ee,chosenCoupon:ne,currency:oe}){let ae=0,ie=!1;return(Array.isArray(ne)?ne:[ne]).forEach(se=>{const de=ee[+se];de&&(ie=!0,ae+=getValue(de))}),ie?`-${oe} ${(ae/100).toFixed(2)}`:ee.length===0?t$a("noCoupon"):t$a("count",ee.length)}var stdin_default$Y=defineComponent({name:name$R,props:couponCellProps,setup(ee){return()=>{const ne=Array.isArray(ee.chosenCoupon)?ee.chosenCoupon.length:ee.coupons[+ee.chosenCoupon];return createVNode(Cell,{class:bem$Q(),value:formatValue(ee),title:ee.title||t$a("title"),border:ee.border,isLink:ee.editable,valueClass:bem$Q("value",{selected:ne})},null)}}});const CouponCell=withInstall(stdin_default$Y),[name$Q,bem$P]=createNamespace("empty"),emptyProps={image:makeStringProp("default"),imageSize:[Number,String,Array],description:String};var stdin_default$X=defineComponent({name:name$Q,props:emptyProps,setup(ee,{slots:ne}){const oe=()=>{const Oe=ne.description?ne.description():ee.description;if(Oe)return createVNode("p",{class:bem$P("description")},[Oe])},ae=()=>{if(ne.default)return createVNode("div",{class:bem$P("bottom")},[ne.default()])},ie=useId(),se=Oe=>`${ie}-${Oe}`,de=Oe=>`url(#${se(Oe)})`,fe=(Oe,Ae,Ne)=>createVNode("stop",{"stop-color":Oe,offset:`${Ae}%`,"stop-opacity":Ne},null),ve=(Oe,Ae)=>[fe(Oe,0),fe(Ae,100)],be=Oe=>[createVNode("defs",null,[createVNode("radialGradient",{id:se(Oe),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[fe("#EBEDF0",0),fe("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:de(Oe),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],ye=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:se("a"),x1:"64%",y1:"100%",x2:"64%"},[fe("#FFF",0,.5),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:de("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:de("a")},null)])],$e=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:se("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[fe("#F2F3F5",0,.3),fe("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:de("b")},null),createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:de("b")},null)])],_e=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:se(1),x1:"64%",y1:"100%",x2:"64%"},[fe("#FFF",0,.5),fe("#F2F3F5",100)]),createVNode("linearGradient",{id:se(2),x1:"50%",x2:"50%",y2:"84%"},[fe("#EBEDF0",0),fe("#DCDEE0",100,0)]),createVNode("linearGradient",{id:se(3),x1:"100%",x2:"100%",y2:"100%"},[ve("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:se(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[fe("#EBEDF0",0),fe("#FFF",100,0)])]),createVNode("g",{fill:"none"},[ye(),createVNode("path",{fill:de(4),d:"M0 139h160v21H0z"},null),createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:de(2)},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:de(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:de(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:de(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:de(3)},null)]),createVNode("g",{transform:"translate(31 105)"},[createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),Ee=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(5)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:se(6)},[ve("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:se(7)},[ve("#EAEDF1","#DCDEE0")])]),ye(),$e(),createVNode("g",{transform:"translate(36 50)",fill:"none"},[createVNode("g",{transform:"translate(8)"},[createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),createVNode("rect",{fill:de(5),width:"64",height:"66",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),createVNode("g",{transform:"translate(15 17)",fill:de(6)},[createVNode("rect",{width:"34",height:"6",rx:"1"},null),createVNode("path",{d:"M0 14h34v6H0z"},null),createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),createVNode("rect",{fill:de(7),y:"61",width:"88",height:"28",rx:"1"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),we=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(8)},[ve("#EAEDF1","#DCDEE0")])]),ye(),$e(),be("c"),createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:de(8)},null)]),Pe=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:se(9)},[ve("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:se(10)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(11)},[ve("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:se(12)},[ve("#FFF","#F7F8FA")])]),ye(),$e(),be("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[createVNode("rect",{fill:de(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:de(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:de(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:de(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:de(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),Ce=()=>{var Oe;if(ne.image)return ne.image();const Ae={error:we,search:Pe,network:_e,default:Ee};return((Oe=Ae[ee.image])==null?void 0:Oe.call(Ae))||createVNode("img",{src:ee.image},null)};return()=>createVNode("div",{class:bem$P()},[createVNode("div",{class:bem$P("image"),style:getSizeStyle(ee.imageSize)},[Ce()]),oe(),ae()])}});const Empty=withInstall(stdin_default$X),[name$P,bem$O,t$9]=createNamespace("coupon-list"),couponListProps={code:makeStringProp(""),coupons:makeArrayProp(),currency:makeStringProp("¥"),showCount:truthProp,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:makeArrayProp(),showExchangeBar:truthProp,showCloseButton:truthProp,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:makeNumberProp(1),exchangeButtonText:String,displayedCouponIndex:makeNumberProp(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};var stdin_default$W=defineComponent({name:name$P,props:couponListProps,emits:["change","exchange","update:code"],setup(ee,{emit:ne,slots:oe}){const[ae,ie]=useRefs(),se=ref(),de=ref(),fe=ref(0),ve=ref(0),be=ref(ee.code),ye=computed(()=>!ee.exchangeButtonLoading&&(ee.exchangeButtonDisabled||!be.value||be.value.length{const Ne=useRect(se).height,ke=useRect(de).height+44;ve.value=(Ne>ke?Ne:windowHeight.value)-ke},_e=()=>{ne("exchange",be.value),ee.code||(be.value="")},Ee=Ae=>{nextTick(()=>{var Ne;return(Ne=ae.value[Ae])==null?void 0:Ne.scrollIntoView()})},we=()=>createVNode(Empty,{image:ee.emptyImage},{default:()=>[createVNode("p",{class:bem$O("empty-tip")},[t$9("noCoupon")])]}),Pe=()=>{if(ee.showExchangeBar)return createVNode("div",{ref:de,class:bem$O("exchange-bar")},[createVNode(Field,{modelValue:be.value,"onUpdate:modelValue":Ae=>be.value=Ae,clearable:!0,border:!1,class:bem$O("field"),placeholder:ee.inputPlaceholder||t$9("placeholder"),maxlength:"20"},null),createVNode(Button,{plain:!0,type:"primary",class:bem$O("exchange"),text:ee.exchangeButtonText||t$9("exchange"),loading:ee.exchangeButtonLoading,disabled:ye.value,onClick:_e},null)])},Ce=()=>{const{coupons:Ae,chosenCoupon:Ne}=ee,ke=ee.showCount?` (${Ae.length})`:"",Re=(ee.enabledTitle||t$9("enable"))+ke,Le=(Me=[],Ie=0)=>Me.includes(Ie)?Me.filter(Fe=>Fe!==Ie):[...Me,Ie];return createVNode(Tab,{title:Re},{default:()=>{var Me;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${ve.value}px`}},[Ae.map((Ie,Fe)=>createVNode(Coupon,{key:Ie.id,ref:ie(Fe),coupon:Ie,chosen:Array.isArray(Ne)?Ne.includes(Fe):Fe===Ne,currency:ee.currency,onClick:()=>ne("change",Array.isArray(Ne)?Le(Ne,Fe):Fe)},null)),!Ae.length&&we(),(Me=oe["list-footer"])==null?void 0:Me.call(oe)])]}})},Oe=()=>{const{disabledCoupons:Ae}=ee,Ne=ee.showCount?` (${Ae.length})`:"",ke=(ee.disabledTitle||t$9("disabled"))+Ne;return createVNode(Tab,{title:ke},{default:()=>{var Re;return[createVNode("div",{class:bem$O("list",{"with-bottom":ee.showCloseButton}),style:{height:`${ve.value}px`}},[Ae.map(Le=>createVNode(Coupon,{disabled:!0,key:Le.id,coupon:Le,currency:ee.currency},null)),!Ae.length&&we(),(Re=oe["disabled-list-footer"])==null?void 0:Re.call(oe)])]}})};return watch(()=>ee.code,Ae=>{be.value=Ae}),watch(windowHeight,$e),watch(be,Ae=>ne("update:code",Ae)),watch(()=>ee.displayedCouponIndex,Ee),onMounted(()=>{$e(),Ee(ee.displayedCouponIndex)}),()=>createVNode("div",{ref:se,class:bem$O()},[Pe(),createVNode(Tabs,{active:fe.value,"onUpdate:active":Ae=>fe.value=Ae,class:bem$O("tab")},{default:()=>[Ce(),Oe()]}),createVNode("div",{class:bem$O("bottom")},[oe["list-button"]?oe["list-button"]():withDirectives(createVNode(Button,{round:!0,block:!0,type:"primary",class:bem$O("close"),text:ee.closeButtonText||t$9("close"),onClick:()=>ne("change",Array.isArray(ee.chosenCoupon)?[]:-1)},null),[[vShow,ee.showCloseButton]])])])}});const CouponList=withInstall(stdin_default$W),currentYear=new Date().getFullYear(),[name$O]=createNamespace("date-picker"),datePickerProps=extend$1({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate$1},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate$1}});var stdin_default$V=defineComponent({name:name$O,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.modelValue),ie=ref(!1),se=ref(),de=()=>{const ke=ee.minDate.getFullYear(),Re=ee.maxDate.getFullYear();return genOptions(ke,Re,"year",ee.formatter,ee.filter)},fe=ke=>ke===ee.minDate.getFullYear(),ve=ke=>ke===ee.maxDate.getFullYear(),be=ke=>ke===ee.minDate.getMonth()+1,ye=ke=>ke===ee.maxDate.getMonth()+1,$e=ke=>{const{minDate:Re,columnsType:Le}=ee,Me=Le.indexOf(ke),Ie=ie.value?ee.modelValue[Me]:ae.value[Me];if(Ie)return+Ie;switch(ke){case"year":return Re.getFullYear();case"month":return Re.getMonth()+1;case"day":return Re.getDate()}},_e=()=>{const ke=$e("year"),Re=fe(ke)?ee.minDate.getMonth()+1:1,Le=ve(ke)?ee.maxDate.getMonth()+1:12;return genOptions(Re,Le,"month",ee.formatter,ee.filter)},Ee=()=>{const ke=$e("year"),Re=$e("month"),Le=fe(ke)&&be(Re)?ee.minDate.getDate():1,Me=ve(ke)&&ye(Re)?ee.maxDate.getDate():getMonthEndDay(ke,Re);return genOptions(Le,Me,"day",ee.formatter,ee.filter)},we=()=>{var ke;return(ke=se.value)==null?void 0:ke.confirm()},Pe=()=>ae.value,Ce=computed(()=>ee.columnsType.map(ke=>{switch(ke){case"year":return de();case"month":return _e();case"day":return Ee();default:return[]}}));watch(ae,ke=>{isSameValue(ke,ee.modelValue)||ne("update:modelValue",ke)}),watch(()=>ee.modelValue,(ke,Re)=>{ie.value=isSameValue(Re,ae.value),ke=formatValueRange(ke,Ce.value),isSameValue(ke,ae.value)||(ae.value=ke),ie.value=!1},{immediate:!0});const Oe=(...ke)=>ne("change",...ke),Ae=(...ke)=>ne("cancel",...ke),Ne=(...ke)=>ne("confirm",...ke);return useExpose({confirm:we,getSelectedDate:Pe}),()=>createVNode(Picker,mergeProps({ref:se,modelValue:ae.value,"onUpdate:modelValue":ke=>ae.value=ke,columns:Ce.value,onChange:Oe,onCancel:Ae,onConfirm:Ne},pick(ee,pickerInheritKeys)),oe)}});const DatePicker=withInstall(stdin_default$V),[name$N,bem$N,t$8]=createNamespace("dialog"),dialogProps=extend$1({},popupSharedProps,{title:String,theme:String,width:numericProp,message:[String,Function],callback:Function,allowHtml:Boolean,className:unknownProp,transition:makeStringProp("van-dialog-bounce"),messageAlign:String,closeOnPopstate:truthProp,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:truthProp,closeOnClickOverlay:Boolean}),popupInheritKeys$1=[...popupSharedPropKeys,"transition","closeOnPopstate"];var stdin_default$U=defineComponent({name:name$N,props:dialogProps,emits:["confirm","cancel","keydown","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=reactive({confirm:!1,cancel:!1}),se=Oe=>ne("update:show",Oe),de=Oe=>{var Ae;se(!1),(Ae=ee.callback)==null||Ae.call(ee,Oe)},fe=Oe=>()=>{ee.show&&(ne(Oe),ee.beforeClose?(ie[Oe]=!0,callInterceptor(ee.beforeClose,{args:[Oe],done(){de(Oe),ie[Oe]=!1},canceled(){ie[Oe]=!1}})):de(Oe))},ve=fe("cancel"),be=fe("confirm"),ye=withKeys(Oe=>{var Ae,Ne;if(Oe.target!==((Ne=(Ae=ae.value)==null?void 0:Ae.popupRef)==null?void 0:Ne.value))return;({Enter:ee.showConfirmButton?be:noop$1,Escape:ee.showCancelButton?ve:noop$1})[Oe.key](),ne("keydown",Oe)},["enter","esc"]),$e=()=>{const Oe=oe.title?oe.title():ee.title;if(Oe)return createVNode("div",{class:bem$N("header",{isolated:!ee.message&&!oe.default})},[Oe])},_e=Oe=>{const{message:Ae,allowHtml:Ne,messageAlign:ke}=ee,Re=bem$N("message",{"has-title":Oe,[ke]:ke}),Le=isFunction$1(Ae)?Ae():Ae;return Ne&&typeof Le=="string"?createVNode("div",{class:Re,innerHTML:Le},null):createVNode("div",{class:Re},[Le])},Ee=()=>{if(oe.default)return createVNode("div",{class:bem$N("content")},[oe.default()]);const{title:Oe,message:Ae,allowHtml:Ne}=ee;if(Ae){const ke=!!(Oe||oe.title);return createVNode("div",{key:Ne?1:0,class:bem$N("content",{isolated:!ke})},[_e(ke)])}},we=()=>createVNode("div",{class:[BORDER_TOP,bem$N("footer")]},[ee.showCancelButton&&createVNode(Button,{size:"large",text:ee.cancelButtonText||t$8("cancel"),class:bem$N("cancel"),style:{color:ee.cancelButtonColor},loading:ie.cancel,disabled:ee.cancelButtonDisabled,onClick:ve},null),ee.showConfirmButton&&createVNode(Button,{size:"large",text:ee.confirmButtonText||t$8("confirm"),class:[bem$N("confirm"),{[BORDER_LEFT]:ee.showCancelButton}],style:{color:ee.confirmButtonColor},loading:ie.confirm,disabled:ee.confirmButtonDisabled,onClick:be},null)]),Pe=()=>createVNode(ActionBar,{class:bem$N("footer")},{default:()=>[ee.showCancelButton&&createVNode(ActionBarButton,{type:"warning",text:ee.cancelButtonText||t$8("cancel"),class:bem$N("cancel"),color:ee.cancelButtonColor,loading:ie.cancel,disabled:ee.cancelButtonDisabled,onClick:ve},null),ee.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:ee.confirmButtonText||t$8("confirm"),class:bem$N("confirm"),color:ee.confirmButtonColor,loading:ie.confirm,disabled:ee.confirmButtonDisabled,onClick:be},null)]}),Ce=()=>oe.footer?oe.footer():ee.theme==="round-button"?Pe():we();return()=>{const{width:Oe,title:Ae,theme:Ne,message:ke,className:Re}=ee;return createVNode(Popup,mergeProps({ref:ae,role:"dialog",class:[bem$N([Ne]),Re],style:{width:addUnit(Oe)},tabindex:0,"aria-labelledby":Ae||ke,onKeydown:ye,"onUpdate:show":se},pick(ee,popupInheritKeys$1)),{default:()=>[$e(),Ee(),Ce()]})}}});const Dialog=withInstall(stdin_default$U),[name$M,bem$M]=createNamespace("divider"),dividerProps={dashed:Boolean,hairline:truthProp,vertical:Boolean,contentPosition:makeStringProp("center")};var stdin_default$T=defineComponent({name:name$M,props:dividerProps,setup(ee,{slots:ne}){return()=>{var oe;return createVNode("div",{role:"separator",class:bem$M({dashed:ee.dashed,hairline:ee.hairline,vertical:ee.vertical,[`content-${ee.contentPosition}`]:!!ne.default&&!ee.vertical})},[!ee.vertical&&((oe=ne.default)==null?void 0:oe.call(ne))])}}});const Divider=withInstall(stdin_default$T),[name$L,bem$L]=createNamespace("dropdown-menu"),dropdownMenuProps={overlay:truthProp,zIndex:numericProp,duration:makeNumericProp(.2),direction:makeStringProp("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:truthProp,closeOnClickOverlay:truthProp,swipeThreshold:numericProp},DROPDOWN_KEY=Symbol(name$L);var stdin_default$S=defineComponent({name:name$L,props:dropdownMenuProps,setup(ee,{slots:ne}){const oe=useId(),ae=ref(),ie=ref(),se=ref(0),{children:de,linkChildren:fe}=useChildren(DROPDOWN_KEY),ve=useScrollParent(ae),be=computed(()=>de.some(Ae=>Ae.state.showWrapper)),ye=computed(()=>ee.swipeThreshold&&de.length>+ee.swipeThreshold),$e=computed(()=>{if(be.value&&isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),_e=()=>{de.forEach(Ae=>{Ae.toggle(!1)})},Ee=()=>{ee.closeOnClickOutside&&_e()},we=()=>{if(ie.value){const Ae=useRect(ie);ee.direction==="down"?se.value=Ae.bottom:se.value=windowHeight.value-Ae.top}},Pe=()=>{be.value&&we()},Ce=Ae=>{de.forEach((Ne,ke)=>{ke===Ae?Ne.toggle():Ne.state.showPopup&&Ne.toggle(!1,{immediate:!0})})},Oe=(Ae,Ne)=>{const{showPopup:ke}=Ae.state,{disabled:Re,titleClass:Le}=Ae;return createVNode("div",{id:`${oe}-${Ne}`,role:"button",tabindex:Re?void 0:0,class:[bem$L("item",{disabled:Re,grow:ye.value}),{[HAPTICS_FEEDBACK]:!Re}],onClick:()=>{Re||Ce(Ne)}},[createVNode("span",{class:[bem$L("title",{down:ke===(ee.direction==="down"),active:ke}),Le],style:{color:ke?ee.activeColor:""}},[createVNode("div",{class:"van-ellipsis"},[Ae.renderTitle()])])])};return useExpose({close:_e}),fe({id:oe,props:ee,offset:se,updateOffset:we}),useClickAway(ae,Ee),useEventListener("scroll",Pe,{target:ve,passive:!0}),()=>{var Ae;return createVNode("div",{ref:ae,class:bem$L()},[createVNode("div",{ref:ie,style:$e.value,class:bem$L("bar",{opened:be.value,scrollable:ye.value})},[de.map(Oe)]),(Ae=ne.default)==null?void 0:Ae.call(ne)])}}});const[name$K,bem$K]=createNamespace("dropdown-item"),dropdownItemProps={title:String,options:makeArrayProp(),disabled:Boolean,teleport:[String,Object],lazyRender:truthProp,modelValue:unknownProp,titleClass:unknownProp};var stdin_default$R=defineComponent({name:name$K,inheritAttrs:!1,props:dropdownItemProps,emits:["open","opened","close","closed","change","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=reactive({showPopup:!1,transition:!0,showWrapper:!1}),se=ref(),{parent:de,index:fe}=useParent(DROPDOWN_KEY);if(!de)return;const ve=Ae=>()=>ne(Ae),be=ve("open"),ye=ve("close"),$e=ve("opened"),_e=()=>{ie.showWrapper=!1,ne("closed")},Ee=Ae=>{ee.teleport&&Ae.stopPropagation()},we=(Ae=!ie.showPopup,Ne={})=>{Ae!==ie.showPopup&&(ie.showPopup=Ae,ie.transition=!Ne.immediate,Ae&&(de.updateOffset(),ie.showWrapper=!0))},Pe=()=>{if(oe.title)return oe.title();if(ee.title)return ee.title;const Ae=ee.options.find(Ne=>Ne.value===ee.modelValue);return Ae?Ae.text:""},Ce=Ae=>{const{activeColor:Ne}=de.props,{disabled:ke}=Ae,Re=Ae.value===ee.modelValue,Le=()=>{ke||(ie.showPopup=!1,Ae.value!==ee.modelValue&&(ne("update:modelValue",Ae.value),ne("change",Ae.value)))},Me=()=>{if(Re)return createVNode(Icon,{class:bem$K("icon"),color:ke?void 0:Ne,name:"success"},null)};return createVNode(Cell,{role:"menuitem",key:String(Ae.value),icon:Ae.icon,title:Ae.text,class:bem$K("option",{active:Re,disabled:ke}),style:{color:Re?Ne:""},tabindex:Re?0:-1,clickable:!ke,onClick:Le},{value:Me})},Oe=()=>{const{offset:Ae}=de,{autoLocate:Ne,zIndex:ke,overlay:Re,duration:Le,direction:Me,closeOnClickOverlay:Ie}=de.props,Fe=getZIndexStyle(ke);let je=Ae.value;if(Ne&&se.value){const Be=getContainingBlock$1(se.value);Be&&(je-=useRect(Be).top)}return Me==="down"?Fe.top=`${je}px`:Fe.bottom=`${je}px`,withDirectives(createVNode("div",mergeProps({ref:se,style:Fe,class:bem$K([Me]),onClick:Ee},ae),[createVNode(Popup,{show:ie.showPopup,"onUpdate:show":Be=>ie.showPopup=Be,role:"menu",class:bem$K("content"),overlay:Re,position:Me==="down"?"top":"bottom",duration:ie.transition?Le:0,lazyRender:ee.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${de.id}-${fe.value}`,closeOnClickOverlay:Ie,onOpen:be,onClose:ye,onOpened:$e,onClosed:_e},{default:()=>{var Be;return[ee.options.map(Ce),(Be=oe.default)==null?void 0:Be.call(oe)]}})]),[[vShow,ie.showWrapper]])};return useExpose({state:ie,toggle:we,renderTitle:Pe}),()=>ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Oe()]}):Oe()}});const DropdownItem=withInstall(stdin_default$R),DropdownMenu=withInstall(stdin_default$S),floatingBubbleProps={gap:makeNumberProp(24),icon:String,axis:makeStringProp("y"),magnetic:String,offset:{type:Object,default:()=>({x:-1,y:-1})},teleport:{type:[String,Object],default:"body"}},[name$J,bem$J]=createNamespace("floating-bubble");var stdin_default$Q=defineComponent({name:name$J,inheritAttrs:!1,props:floatingBubbleProps,emits:["click","update:offset","offsetChange"],setup(ee,{slots:ne,emit:oe,attrs:ae}){const ie=ref(),se=ref({x:0,y:0,width:0,height:0}),de=computed(()=>({top:ee.gap,right:windowWidth.value-se.value.width-ee.gap,bottom:windowHeight.value-se.value.height-ee.gap,left:ee.gap})),fe=ref(!1);let ve=!1;const be=computed(()=>{const Ne={},ke=addUnit(se.value.x),Re=addUnit(se.value.y);return Ne.transform=`translate3d(${ke}, ${Re}, 0)`,(fe.value||!ve)&&(Ne.transition="none"),Ne}),ye=()=>{if(!Ae.value)return;const{width:Ne,height:ke}=useRect(ie.value),{offset:Re}=ee;se.value={x:Re.x>-1?Re.x:windowWidth.value-Ne-ee.gap,y:Re.y>-1?Re.y:windowHeight.value-ke-ee.gap,width:Ne,height:ke}},$e=useTouch();let _e=0,Ee=0;const we=Ne=>{$e.start(Ne),fe.value=!0,_e=se.value.x,Ee=se.value.y};useEventListener("touchmove",Ne=>{if(Ne.preventDefault(),$e.move(Ne),ee.axis!=="lock"&&!$e.isTap.value){if(ee.axis==="x"||ee.axis==="xy"){let Re=_e+$e.deltaX.value;Rede.value.right&&(Re=de.value.right),se.value.x=Re}if(ee.axis==="y"||ee.axis==="xy"){let Re=Ee+$e.deltaY.value;Rede.value.bottom&&(Re=de.value.bottom),se.value.y=Re}const ke=pick(se.value,["x","y"]);oe("update:offset",ke)}},{target:ie});const Ce=()=>{fe.value=!1,nextTick(()=>{if(ee.magnetic==="x"){const Ne=closest([de.value.left,de.value.right],se.value.x);se.value.x=Ne}if(ee.magnetic==="y"){const Ne=closest([de.value.top,de.value.bottom],se.value.y);se.value.y=Ne}if(!$e.isTap.value){const Ne=pick(se.value,["x","y"]);oe("update:offset",Ne),(_e!==Ne.x||Ee!==Ne.y)&&oe("offsetChange",Ne)}})},Oe=Ne=>{$e.isTap.value?oe("click",Ne):Ne.stopPropagation()};onMounted(()=>{ye(),nextTick(()=>{ve=!0})}),watch([windowWidth,windowHeight,()=>ee.gap,()=>ee.offset],ye,{deep:!0});const Ae=ref(!0);return onActivated(()=>{Ae.value=!0}),onDeactivated(()=>{ee.teleport&&(Ae.value=!1)}),()=>{const Ne=withDirectives(createVNode("div",mergeProps({class:bem$J(),ref:ie,onTouchstartPassive:we,onTouchend:Ce,onTouchcancel:Ce,onClickCapture:Oe,style:be.value},ae),[ne.default?ne.default():createVNode(stdin_default$1O,{name:ee.icon,class:bem$J("icon")},null)]),[[vShow,Ae.value]]);return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Ne]}):Ne}}});const FloatingBubble=withInstall(stdin_default$Q),floatingPanelProps={height:makeNumericProp(0),anchors:makeArrayProp(),duration:makeNumericProp(.3),contentDraggable:truthProp,lockScroll:Boolean,safeAreaInsetBottom:truthProp},[name$I,bem$I]=createNamespace("floating-panel");var stdin_default$P=defineComponent({name:name$I,props:floatingPanelProps,emits:["heightChange","update:height"],setup(ee,{emit:ne,slots:oe}){const ie=ref(),se=ref(),de=useSyncPropRef(()=>+ee.height,Ne=>ne("update:height",Ne)),fe=computed(()=>{var Ne,ke;return{min:(Ne=ee.anchors[0])!=null?Ne:100,max:(ke=ee.anchors[ee.anchors.length-1])!=null?ke:Math.round(windowHeight.value*.6)}}),ve=computed(()=>ee.anchors.length>=2?ee.anchors:[fe.value.min,fe.value.max]),be=ref(!1),ye=computed(()=>({height:addUnit(fe.value.max),transform:`translateY(calc(100% + ${addUnit(-de.value)}))`,transition:be.value?"none":`transform ${ee.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),$e=Ne=>{const ke=Math.abs(Ne),{min:Re,max:Le}=fe.value;return ke>Le?-(Le+(ke-Le)*.2):ke{we.start(Ne),be.value=!0,_e=-de.value,Ee=-1},Ce=Ne=>{var ke;we.move(Ne);const Re=Ne.target;if(se.value===Re||(ke=se.value)!=null&&ke.contains(Re)){const{scrollTop:Me}=se.value;if(Ee=Math.max(Ee,Me),!ee.contentDraggable)return;if(-_e0)||Ee>0)return}const Le=we.deltaY.value+_e;de.value=-$e(Le)},Oe=()=>{Ee=-1,be.value=!1,de.value=closest(ve.value,de.value),de.value!==-_e&&ne("heightChange",{height:de.value})};watch(fe,()=>{de.value=closest(ve.value,de.value)},{immediate:!0}),useLockScroll(ie,()=>ee.lockScroll||be.value),useEventListener("touchmove",Ce,{target:ie});const Ae=()=>oe.header?oe.header():createVNode("div",{class:bem$I("header")},[createVNode("div",{class:bem$I("header-bar")},null)]);return()=>{var Ne;return createVNode("div",{class:[bem$I(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}],ref:ie,style:ye.value,onTouchstartPassive:Pe,onTouchend:Oe,onTouchcancel:Oe},[Ae(),createVNode("div",{class:bem$I("content"),ref:se},[(Ne=oe.default)==null?void 0:Ne.call(oe)])])}}});const FloatingPanel=withInstall(stdin_default$P),[name$H,bem$H]=createNamespace("grid"),gridProps={square:Boolean,center:truthProp,border:truthProp,gutter:numericProp,reverse:Boolean,iconSize:numericProp,direction:String,clickable:Boolean,columnNum:makeNumericProp(4)},GRID_KEY=Symbol(name$H);var stdin_default$O=defineComponent({name:name$H,props:gridProps,setup(ee,{slots:ne}){const{linkChildren:oe}=useChildren(GRID_KEY);return oe({props:ee}),()=>{var ae;return createVNode("div",{style:{paddingLeft:addUnit(ee.gutter)},class:[bem$H(),{[BORDER_TOP]:ee.border&&!ee.gutter}]},[(ae=ne.default)==null?void 0:ae.call(ne)])}}});const Grid=withInstall(stdin_default$O),[name$G,bem$G]=createNamespace("grid-item"),gridItemProps=extend$1({},routeProps,{dot:Boolean,text:String,icon:String,badge:numericProp,iconColor:String,iconPrefix:String,badgeProps:Object});var stdin_default$N=defineComponent({name:name$G,props:gridItemProps,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(GRID_KEY),ie=useRoute();if(!oe)return;const se=computed(()=>{const{square:ye,gutter:$e,columnNum:_e}=oe.props,Ee=`${100/+_e}%`,we={flexBasis:Ee};if(ye)we.paddingTop=Ee;else if($e){const Pe=addUnit($e);we.paddingRight=Pe,ae.value>=+_e&&(we.marginTop=Pe)}return we}),de=computed(()=>{const{square:ye,gutter:$e}=oe.props;if(ye&&$e){const _e=addUnit($e);return{right:_e,bottom:_e,height:"auto"}}}),fe=()=>{if(ne.icon)return createVNode(Badge,mergeProps({dot:ee.dot,content:ee.badge},ee.badgeProps),{default:ne.icon});if(ee.icon)return createVNode(Icon,{dot:ee.dot,name:ee.icon,size:oe.props.iconSize,badge:ee.badge,class:bem$G("icon"),color:ee.iconColor,badgeProps:ee.badgeProps,classPrefix:ee.iconPrefix},null)},ve=()=>{if(ne.text)return ne.text();if(ee.text)return createVNode("span",{class:bem$G("text")},[ee.text])},be=()=>ne.default?ne.default():[fe(),ve()];return()=>{const{center:ye,border:$e,square:_e,gutter:Ee,reverse:we,direction:Pe,clickable:Ce}=oe.props,Oe=[bem$G("content",[Pe,{center:ye,square:_e,reverse:we,clickable:Ce,surround:$e&&Ee}]),{[BORDER]:$e}];return createVNode("div",{class:[bem$G({square:_e})],style:se.value},[createVNode("div",{role:Ce?"button":void 0,class:Oe,style:de.value,tabindex:Ce?0:void 0,onClick:ie},[be()])])}}});const GridItem=withInstall(stdin_default$N),[name$F,bem$F]=createNamespace("highlight"),highlightProps={autoEscape:truthProp,caseSensitive:Boolean,highlightClass:String,highlightTag:makeStringProp("span"),keywords:makeRequiredProp([String,Array]),sourceString:makeStringProp(""),tag:makeStringProp("div"),unhighlightClass:String,unhighlightTag:makeStringProp("span")};var stdin_default$M=defineComponent({name:name$F,props:highlightProps,setup(ee){const ne=computed(()=>{const{autoEscape:ae,caseSensitive:ie,keywords:se,sourceString:de}=ee,fe=ie?"g":"gi";let be=(Array.isArray(se)?se:[se]).filter($e=>$e).reduce(($e,_e)=>{ae&&(_e=_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const Ee=new RegExp(_e,fe);let we;for(;we=Ee.exec(de);){const Pe=we.index,Ce=Ee.lastIndex;if(Pe>=Ce){Ee.lastIndex++;continue}$e.push({start:Pe,end:Ce,highlight:!0})}return $e},[]);be=be.sort(($e,_e)=>$e.start-_e.start).reduce(($e,_e)=>{const Ee=$e[$e.length-1];if(!Ee||_e.start>Ee.end){const we=Ee?Ee.end:0,Pe=_e.start;we!==Pe&&$e.push({start:we,end:Pe,highlight:!1}),$e.push(_e)}else Ee.end=Math.max(Ee.end,_e.end);return $e},[]);const ye=be[be.length-1];return ye||be.push({start:0,end:de.length,highlight:!1}),ye&&ye.end{const{sourceString:ae,highlightClass:ie,unhighlightClass:se,highlightTag:de,unhighlightTag:fe}=ee;return ne.value.map(ve=>{const{start:be,end:ye,highlight:$e}=ve,_e=ae.slice(be,ye);return $e?createVNode(de,{class:[bem$F("tag"),ie]},{default:()=>[_e]}):createVNode(fe,{class:se},{default:()=>[_e]})})};return()=>{const{tag:ae}=ee;return createVNode(ae,{class:bem$F()},{default:()=>[oe()]})}}});const Highlight=withInstall(stdin_default$M),getDistance=ee=>Math.sqrt((ee[0].clientX-ee[1].clientX)**2+(ee[0].clientY-ee[1].clientY)**2),getCenter=ee=>({x:(ee[0].clientX+ee[1].clientX)/2,y:(ee[0].clientY+ee[1].clientY)/2}),bem$E=createNamespace("image-preview")[1],longImageRatio=2.6,imagePreviewItemProps={src:String,show:Boolean,active:Number,minZoom:makeRequiredProp(numericProp),maxZoom:makeRequiredProp(numericProp),rootWidth:makeRequiredProp(Number),rootHeight:makeRequiredProp(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var stdin_default$L=defineComponent({props:imagePreviewItemProps,emits:["scale","close","longPress"],setup(ee,{emit:ne,slots:oe}){const ae=reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),ie=useTouch(),se=ref(),de=ref(),fe=ref(!1),ve=ref(!1);let be=0;const ye=computed(()=>{const{scale:Ue,moveX:Ze,moveY:Tt,moving:Vt,zooming:Ut,initializing:We}=ae,Pt={transitionDuration:Ut||Vt||We?"0s":".3s"};return(Ue!==1||ve.value)&&(Pt.transform=`matrix(${Ue}, 0, 0, ${Ue}, ${Ze}, ${Tt})`),Pt}),$e=computed(()=>{if(ae.imageRatio){const{rootWidth:Ue,rootHeight:Ze}=ee,Tt=fe.value?Ze/ae.imageRatio:Ue;return Math.max(0,(ae.scale*Tt-Ue)/2)}return 0}),_e=computed(()=>{if(ae.imageRatio){const{rootWidth:Ue,rootHeight:Ze}=ee,Tt=fe.value?Ze:Ue*ae.imageRatio;return Math.max(0,(ae.scale*Tt-Ze)/2)}return 0}),Ee=(Ue,Ze)=>{var Tt;if(Ue=clamp(Ue,+ee.minZoom,+ee.maxZoom+1),Ue!==ae.scale){const Vt=Ue/ae.scale;if(ae.scale=Ue,Ze){const Ut=useRect((Tt=se.value)==null?void 0:Tt.$el),We={x:Ut.width*.5,y:Ut.height*.5},Pt=ae.moveX-(Ze.x-Ut.left-We.x)*(Vt-1),Mt=ae.moveY-(Ze.y-Ut.top-We.y)*(Vt-1);ae.moveX=clamp(Pt,-$e.value,$e.value),ae.moveY=clamp(Mt,-_e.value,_e.value)}else ae.moveX=0,ae.moveY=ve.value?be:0;ne("scale",{scale:Ue,index:ee.active})}},we=()=>{Ee(1)},Pe=()=>{const Ue=ae.scale>1?1:2;Ee(Ue,Ue===2||ve.value?{x:ie.startX.value,y:ie.startY.value}:void 0)};let Ce,Oe,Ae,Ne,ke,Re,Le,Me,Ie=!1;const Fe=Ue=>{const{touches:Ze}=Ue;if(Ce=Ze.length,Ce===2&&ee.disableZoom)return;const{offsetX:Tt}=ie;ie.start(Ue),Oe=ae.moveX,Ae=ae.moveY,Me=Date.now(),Ie=!1,ae.moving=Ce===1&&(ae.scale!==1||ve.value),ae.zooming=Ce===2&&!Tt.value,ae.zooming&&(Ne=ae.scale,ke=getDistance(Ze))},je=Ue=>{const{touches:Ze}=Ue;if(ie.move(Ue),ae.moving){const{deltaX:Tt,deltaY:Vt}=ie,Ut=Tt.value+Oe,We=Vt.value+Ae;if((ee.vertical?ie.isVertical()&&Math.abs(We)>_e.value:ie.isHorizontal()&&Math.abs(Ut)>$e.value)&&!Ie){ae.moving=!1;return}Ie=!0,preventDefault(Ue,!0),ae.moveX=clamp(Ut,-$e.value,$e.value),ae.moveY=clamp(We,-_e.value,_e.value)}if(ae.zooming&&(preventDefault(Ue,!0),Ze.length===2)){const Tt=getDistance(Ze),Vt=Ne*Tt/ke;Re=getCenter(Ze),Ee(Vt,Re)}},Be=Ue=>{var Ze;const Tt=(Ze=de.value)==null?void 0:Ze.$el;if(!Tt)return;const Vt=Tt.firstElementChild,Ut=Ue.target===Tt,We=Vt==null?void 0:Vt.contains(Ue.target);!ee.closeOnClickImage&&We||!ee.closeOnClickOverlay&&Ut||ne("close")},He=Ue=>{if(Ce>1)return;const Ze=Date.now()-Me,Tt=250;ie.isTap.value&&(Ze{Be(Ue),Le=null},Tt):Be(Ue):Ze>LONG_PRESS_START_TIME&&ne("longPress"))},ot=Ue=>{let Ze=!1;if((ae.moving||ae.zooming)&&(Ze=!0,ae.moving&&Oe===ae.moveX&&Ae===ae.moveY&&(Ze=!1),!Ue.touches.length)){ae.zooming&&(ae.moveX=clamp(ae.moveX,-$e.value,$e.value),ae.moveY=clamp(ae.moveY,-_e.value,_e.value),ae.zooming=!1),ae.moving=!1,Oe=0,Ae=0,Ne=1,ae.scale<1&&we();const Tt=+ee.maxZoom;ae.scale>Tt&&Ee(Tt,Re)}preventDefault(Ue,Ze),He(Ue),ie.reset()},Nt=()=>{const{rootWidth:Ue,rootHeight:Ze}=ee,Tt=Ze/Ue,{imageRatio:Vt}=ae;fe.value=ae.imageRatio>Tt&&VtTt&&Vt>=longImageRatio,ve.value&&(be=(Vt*Ue-Ze)/2,ae.moveY=be,ae.initializing=!0,raf(()=>{ae.initializing=!1})),we()},st=Ue=>{const{naturalWidth:Ze,naturalHeight:Tt}=Ue.target;ae.imageRatio=Tt/Ze,Nt()};return watch(()=>ee.active,we),watch(()=>ee.show,Ue=>{Ue||we()}),watch(()=>[ee.rootWidth,ee.rootHeight],Nt),useEventListener("touchmove",je,{target:computed(()=>{var Ue;return(Ue=de.value)==null?void 0:Ue.$el})}),useExpose({resetScale:we}),()=>{const Ue={loading:()=>createVNode(Loading,{type:"spinner"},null)};return createVNode(SwipeItem,{ref:de,class:bem$E("swipe-item"),onTouchstartPassive:Fe,onTouchend:ot,onTouchcancel:ot},{default:()=>[oe.image?createVNode("div",{class:bem$E("image-wrap")},[oe.image({src:ee.src,onLoad:st,style:ye.value})]):createVNode(Image$1,{ref:se,src:ee.src,fit:"contain",class:bem$E("image",{vertical:fe.value}),style:ye.value,onLoad:st},Ue)]})}}});const[name$E,bem$D]=createNamespace("image-preview"),popupProps$1=["show","teleport","transition","overlayStyle","closeOnPopstate"],imagePreviewProps={show:Boolean,loop:truthProp,images:makeArrayProp(),minZoom:makeNumericProp(1/3),maxZoom:makeNumericProp(3),overlay:truthProp,vertical:Boolean,closeable:Boolean,showIndex:truthProp,className:unknownProp,closeIcon:makeStringProp("clear"),transition:String,beforeClose:Function,doubleScale:truthProp,overlayClass:unknownProp,overlayStyle:Object,swipeDuration:makeNumericProp(300),startPosition:makeNumericProp(0),showIndicators:Boolean,closeOnPopstate:truthProp,closeOnClickImage:truthProp,closeOnClickOverlay:truthProp,closeIconPosition:makeStringProp("top-right"),teleport:[String,Object]};var stdin_default$K=defineComponent({name:name$E,props:imagePreviewProps,emits:["scale","close","closed","change","longPress","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=reactive({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),de=()=>{if(ae.value){const Ne=useRect(ae.value.$el);se.rootWidth=Ne.width,se.rootHeight=Ne.height,ae.value.resize()}},fe=Ne=>ne("scale",Ne),ve=Ne=>ne("update:show",Ne),be=()=>{callInterceptor(ee.beforeClose,{args:[se.active],done:()=>ve(!1)})},ye=Ne=>{Ne!==se.active&&(se.active=Ne,ne("change",Ne))},$e=()=>{if(ee.showIndex)return createVNode("div",{class:bem$D("index")},[oe.index?oe.index({index:se.active}):`${se.active+1} / ${ee.images.length}`])},_e=()=>{if(oe.cover)return createVNode("div",{class:bem$D("cover")},[oe.cover()])},Ee=()=>{se.disableZoom=!0},we=()=>{se.disableZoom=!1},Pe=()=>createVNode(Swipe,{ref:ae,lazyRender:!0,loop:ee.loop,class:bem$D("swipe"),vertical:ee.vertical,duration:ee.swipeDuration,initialSwipe:ee.startPosition,showIndicators:ee.showIndicators,indicatorColor:"white",onChange:ye,onDragEnd:we,onDragStart:Ee},{default:()=>[ee.images.map((Ne,ke)=>createVNode(stdin_default$L,{ref:Re=>{ke===se.active&&(ie.value=Re)},src:Ne,show:ee.show,active:se.active,maxZoom:ee.maxZoom,minZoom:ee.minZoom,rootWidth:se.rootWidth,rootHeight:se.rootHeight,disableZoom:se.disableZoom,doubleScale:ee.doubleScale,closeOnClickImage:ee.closeOnClickImage,closeOnClickOverlay:ee.closeOnClickOverlay,vertical:ee.vertical,onScale:fe,onClose:be,onLongPress:()=>ne("longPress",{index:ke})},{image:oe.image}))]}),Ce=()=>{if(ee.closeable)return createVNode(Icon,{role:"button",name:ee.closeIcon,class:[bem$D("close-icon",ee.closeIconPosition),HAPTICS_FEEDBACK],onClick:be},null)},Oe=()=>ne("closed"),Ae=(Ne,ke)=>{var Re;return(Re=ae.value)==null?void 0:Re.swipeTo(Ne,ke)};return useExpose({resetScale:()=>{var Ne;(Ne=ie.value)==null||Ne.resetScale()},swipeTo:Ae}),onMounted(de),watch([windowWidth,windowHeight],de),watch(()=>ee.startPosition,Ne=>ye(+Ne)),watch(()=>ee.show,Ne=>{const{images:ke,startPosition:Re}=ee;Ne?(ye(+Re),nextTick(()=>{de(),Ae(+Re,{immediate:!0})})):ne("close",{index:se.active,url:ke[se.active]})}),()=>createVNode(Popup,mergeProps({class:[bem$D(),ee.className],overlayClass:[bem$D("overlay"),ee.overlayClass],onClosed:Oe,"onUpdate:show":ve},pick(ee,popupProps$1)),{default:()=>[Ce(),Pe(),$e(),_e()]})}});let instance;const defaultConfig={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};function initInstance(){({instance}=mountComponent({setup(){const{state:ee,toggle:ne}=usePopupState(),oe=()=>{ee.images=[]};return()=>createVNode(stdin_default$K,mergeProps(ee,{onClosed:oe,"onUpdate:show":ne}),null)}}))}const showImagePreview=(ee,ne=0)=>{if(inBrowser$1)return instance||initInstance(),ee=Array.isArray(ee)?{images:ee,startPosition:ne}:ee,instance.open(extend$1({},defaultConfig,ee)),instance},ImagePreview=withInstall(stdin_default$K);function genAlphabet(){return Array(26).fill("").map((oe,ae)=>String.fromCharCode(65+ae))}const[name$D,bem$C]=createNamespace("index-bar"),indexBarProps={sticky:truthProp,zIndex:numericProp,teleport:[String,Object],highlightColor:String,stickyOffsetTop:makeNumberProp(0),indexList:{type:Array,default:genAlphabet}},INDEX_BAR_KEY=Symbol(name$D);var stdin_default$J=defineComponent({name:name$D,props:indexBarProps,emits:["select","change"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=ref(),se=ref(""),de=useTouch(),fe=useScrollParent(ae),{children:ve,linkChildren:be}=useChildren(INDEX_BAR_KEY);let ye;be({props:ee});const $e=computed(()=>{if(isDef(ee.zIndex))return{zIndex:+ee.zIndex+1}}),_e=computed(()=>{if(ee.highlightColor)return{color:ee.highlightColor}}),Ee=(Ie,Fe)=>{for(let je=ve.length-1;je>=0;je--){const Be=je>0?Fe[je-1].height:0,He=ee.sticky?Be+ee.stickyOffsetTop:0;if(Ie+He>=Fe[je].top)return je}return-1},we=Ie=>ve.find(Fe=>String(Fe.index)===Ie),Pe=()=>{if(isHidden(ae))return;const{sticky:Ie,indexList:Fe}=ee,je=getScrollTop(fe.value),Be=useRect(fe),He=ve.map(Nt=>Nt.getRect(fe.value,Be));let ot=-1;if(ye){const Nt=we(ye);if(Nt){const st=Nt.getRect(fe.value,Be);ee.sticky&&ee.stickyOffsetTop?ot=Ee(st.top-ee.stickyOffsetTop,He):ot=Ee(st.top,He)}}else ot=Ee(je,He);se.value=Fe[ot],Ie&&ve.forEach((Nt,st)=>{const{state:Ue,$el:Ze}=Nt;if(st===ot||st===ot-1){const Tt=Ze.getBoundingClientRect();Ue.left=Tt.left,Ue.width=Tt.width}else Ue.left=null,Ue.width=null;if(st===ot)Ue.active=!0,Ue.top=Math.max(ee.stickyOffsetTop,He[st].top-je)+Be.top;else if(st===ot-1&&ye===""){const Tt=He[ot].top-je;Ue.active=Tt>0,Ue.top=Tt+Be.top-He[st].height}else Ue.active=!1}),ye=""},Ce=()=>{nextTick(Pe)};useEventListener("scroll",Pe,{target:fe,passive:!0}),onMounted(Ce),watch(()=>ee.indexList,Ce),watch(se,Ie=>{Ie&&ne("change",Ie)});const Oe=()=>ee.indexList.map(Ie=>{const Fe=Ie===se.value;return createVNode("span",{class:bem$C("index",{active:Fe}),style:Fe?_e.value:void 0,"data-index":Ie},[Ie])}),Ae=Ie=>{ye=String(Ie);const Fe=we(ye);if(Fe){const je=getScrollTop(fe.value),Be=useRect(fe),{offsetHeight:He}=document.documentElement;if(Fe.$el.scrollIntoView(),je===He-Be.height){Pe();return}ee.sticky&&ee.stickyOffsetTop&&(getRootScrollTop()===He-Be.height?setRootScrollTop(getRootScrollTop()):setRootScrollTop(getRootScrollTop()-ee.stickyOffsetTop)),ne("select",Fe.index)}},Ne=Ie=>{const{index:Fe}=Ie.dataset;Fe&&Ae(Fe)},ke=Ie=>{Ne(Ie.target)};let Re;const Le=Ie=>{if(de.move(Ie),de.isVertical()){preventDefault(Ie);const{clientX:Fe,clientY:je}=Ie.touches[0],Be=document.elementFromPoint(Fe,je);if(Be){const{index:He}=Be.dataset;He&&Re!==He&&(Re=He,Ne(Be))}}},Me=()=>createVNode("div",{ref:ie,class:bem$C("sidebar"),style:$e.value,onClick:ke,onTouchstartPassive:de.start},[Oe()]);return useExpose({scrollTo:Ae}),useEventListener("touchmove",Le,{target:ie}),()=>{var Ie;return createVNode("div",{ref:ae,class:bem$C()},[ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Me()]}):Me(),(Ie=oe.default)==null?void 0:Ie.call(oe)])}}});const[name$C,bem$B]=createNamespace("index-anchor"),indexAnchorProps={index:numericProp};var stdin_default$I=defineComponent({name:name$C,props:indexAnchorProps,setup(ee,{slots:ne}){const oe=reactive({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),ae=ref(),{parent:ie}=useParent(INDEX_BAR_KEY);if(!ie)return;const se=()=>oe.active&&ie.props.sticky,de=computed(()=>{const{zIndex:ve,highlightColor:be}=ie.props;if(se())return extend$1(getZIndexStyle(ve),{left:oe.left?`${oe.left}px`:void 0,width:oe.width?`${oe.width}px`:void 0,transform:oe.top?`translate3d(0, ${oe.top}px, 0)`:void 0,color:be})});return useExpose({state:oe,getRect:(ve,be)=>{const ye=useRect(ae);return oe.rect.height=ye.height,ve===window||ve===document.body?oe.rect.top=ye.top+getRootScrollTop():oe.rect.top=ye.top+getScrollTop(ve)-be.top,oe.rect}}),()=>{const ve=se();return createVNode("div",{ref:ae,style:{height:ve?`${oe.rect.height}px`:void 0}},[createVNode("div",{style:de.value,class:[bem$B({sticky:ve}),{[BORDER_BOTTOM]:ve}]},[ne.default?ne.default():ee.index])])}}});const IndexAnchor=withInstall(stdin_default$I),IndexBar=withInstall(stdin_default$J),[name$B,bem$A,t$7]=createNamespace("list"),listProps={error:Boolean,offset:makeNumericProp(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:makeStringProp("down"),loadingText:String,finishedText:String,immediateCheck:truthProp};var stdin_default$H=defineComponent({name:name$B,props:listProps,emits:["load","update:error","update:loading"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.loading),ie=ref(),se=ref(),de=useTabStatus(),fe=useScrollParent(ie),ve=computed(()=>ee.scroller||fe.value),be=()=>{nextTick(()=>{if(ae.value||ee.finished||ee.disabled||ee.error||(de==null?void 0:de.value)===!1)return;const{direction:we}=ee,Pe=+ee.offset,Ce=useRect(ve);if(!Ce.height||isHidden(ie))return;let Oe=!1;const Ae=useRect(se);we==="up"?Oe=Ce.top-Ae.top<=Pe:Oe=Ae.bottom-Ce.bottom<=Pe,Oe&&(ae.value=!0,ne("update:loading",!0),ne("load"))})},ye=()=>{if(ee.finished){const we=oe.finished?oe.finished():ee.finishedText;if(we)return createVNode("div",{class:bem$A("finished-text")},[we])}},$e=()=>{ne("update:error",!1),be()},_e=()=>{if(ee.error){const we=oe.error?oe.error():ee.errorText;if(we)return createVNode("div",{role:"button",class:bem$A("error-text"),tabindex:0,onClick:$e},[we])}},Ee=()=>{if(ae.value&&!ee.finished&&!ee.disabled)return createVNode("div",{class:bem$A("loading")},[oe.loading?oe.loading():createVNode(Loading,{class:bem$A("loading-icon")},{default:()=>[ee.loadingText||t$7("loading")]})])};return watch(()=>[ee.loading,ee.finished,ee.error],be),de&&watch(de,we=>{we&&be()}),onUpdated(()=>{ae.value=ee.loading}),onMounted(()=>{ee.immediateCheck&&be()}),useExpose({check:be}),useEventListener("scroll",be,{target:ve,passive:!0}),()=>{var we;const Pe=(we=oe.default)==null?void 0:we.call(oe),Ce=createVNode("div",{ref:se,class:bem$A("placeholder")},null);return createVNode("div",{ref:ie,role:"feed",class:bem$A(),"aria-busy":ae.value},[ee.direction==="down"?Pe:Ce,Ee(),ye(),_e(),ee.direction==="up"?Pe:Ce])}}});const List=withInstall(stdin_default$H),[name$A,bem$z]=createNamespace("nav-bar"),navBarProps={title:String,fixed:Boolean,zIndex:numericProp,border:truthProp,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:truthProp};var stdin_default$G=defineComponent({name:name$A,props:navBarProps,emits:["clickLeft","clickRight"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=usePlaceholder(ae,bem$z),se=ye=>{ee.leftDisabled||ne("clickLeft",ye)},de=ye=>{ee.rightDisabled||ne("clickRight",ye)},fe=()=>oe.left?oe.left():[ee.leftArrow&&createVNode(Icon,{class:bem$z("arrow"),name:"arrow-left"},null),ee.leftText&&createVNode("span",{class:bem$z("text")},[ee.leftText])],ve=()=>oe.right?oe.right():createVNode("span",{class:bem$z("text")},[ee.rightText]),be=()=>{const{title:ye,fixed:$e,border:_e,zIndex:Ee}=ee,we=getZIndexStyle(Ee),Pe=ee.leftArrow||ee.leftText||oe.left,Ce=ee.rightText||oe.right;return createVNode("div",{ref:ae,style:we,class:[bem$z({fixed:$e}),{[BORDER_BOTTOM]:_e,"van-safe-area-top":ee.safeAreaInsetTop}]},[createVNode("div",{class:bem$z("content")},[Pe&&createVNode("div",{class:[bem$z("left",{disabled:ee.leftDisabled}),ee.clickable&&!ee.leftDisabled?HAPTICS_FEEDBACK:""],onClick:se},[fe()]),createVNode("div",{class:[bem$z("title"),"van-ellipsis"]},[oe.title?oe.title():ye]),Ce&&createVNode("div",{class:[bem$z("right",{disabled:ee.rightDisabled}),ee.clickable&&!ee.rightDisabled?HAPTICS_FEEDBACK:""],onClick:de},[ve()])])])};return()=>ee.fixed&&ee.placeholder?ie(be):be()}});const NavBar=withInstall(stdin_default$G),[name$z,bem$y]=createNamespace("notice-bar"),noticeBarProps={text:String,mode:String,color:String,delay:makeNumericProp(1),speed:makeNumericProp(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var stdin_default$F=defineComponent({name:name$z,props:noticeBarProps,emits:["close","replay"],setup(ee,{emit:ne,slots:oe}){let ae=0,ie=0,se;const de=ref(),fe=ref(),ve=reactive({show:!0,offset:0,duration:0}),be=()=>{if(oe["left-icon"])return oe["left-icon"]();if(ee.leftIcon)return createVNode(Icon,{class:bem$y("left-icon"),name:ee.leftIcon},null)},ye=()=>{if(ee.mode==="closeable")return"cross";if(ee.mode==="link")return"arrow"},$e=Ce=>{ee.mode==="closeable"&&(ve.show=!1,ne("close",Ce))},_e=()=>{if(oe["right-icon"])return oe["right-icon"]();const Ce=ye();if(Ce)return createVNode(Icon,{name:Ce,class:bem$y("right-icon"),onClick:$e},null)},Ee=()=>{ve.offset=ae,ve.duration=0,raf(()=>{doubleRaf(()=>{ve.offset=-ie,ve.duration=(ie+ae)/+ee.speed,ne("replay")})})},we=()=>{const Ce=ee.scrollable===!1&&!ee.wrapable,Oe={transform:ve.offset?`translateX(${ve.offset}px)`:"",transitionDuration:`${ve.duration}s`};return createVNode("div",{ref:de,role:"marquee",class:bem$y("wrap")},[createVNode("div",{ref:fe,style:Oe,class:[bem$y("content"),{"van-ellipsis":Ce}],onTransitionend:Ee},[oe.default?oe.default():ee.text])])},Pe=()=>{const{delay:Ce,speed:Oe,scrollable:Ae}=ee,Ne=isDef(Ce)?+Ce*1e3:0;ae=0,ie=0,ve.offset=0,ve.duration=0,clearTimeout(se),se=setTimeout(()=>{if(!de.value||!fe.value||Ae===!1)return;const ke=useRect(de).width,Re=useRect(fe).width;(Ae||Re>ke)&&doubleRaf(()=>{ae=ke,ie=Re,ve.offset=-ie,ve.duration=ie/+Oe})},Ne)};return onPopupReopen(Pe),onMountedOrActivated(Pe),useEventListener("pageshow",Pe),useExpose({reset:Pe}),watch(()=>[ee.text,ee.scrollable],Pe),()=>{const{color:Ce,wrapable:Oe,background:Ae}=ee;return withDirectives(createVNode("div",{role:"alert",class:bem$y({wrapable:Oe}),style:{color:Ce,background:Ae}},[be(),we(),_e()]),[[vShow,ve.show]])}}});const NoticeBar=withInstall(stdin_default$F),[name$y,bem$x]=createNamespace("notify"),popupInheritProps=["lockScroll","position","show","teleport","zIndex"],notifyProps=extend$1({},popupSharedProps,{type:makeStringProp("danger"),color:String,message:numericProp,position:makeStringProp("top"),className:unknownProp,background:String,lockScroll:Boolean});var stdin_default$E=defineComponent({name:name$y,props:notifyProps,emits:["update:show"],setup(ee,{emit:ne,slots:oe}){const ae=ie=>ne("update:show",ie);return()=>createVNode(Popup,mergeProps({class:[bem$x([ee.type]),ee.className],style:{color:ee.color,background:ee.background},overlay:!1,duration:.2,"onUpdate:show":ae},pick(ee,popupInheritProps)),{default:()=>[oe.default?oe.default():ee.message]})}});const Notify=withInstall(stdin_default$E),[name$x,bem$w]=createNamespace("key"),CollapseIcon=createVNode("svg",{class:bem$w("collapse-icon"),viewBox:"0 0 30 24"},[createVNode("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),DeleteIcon=createVNode("svg",{class:bem$w("delete-icon"),viewBox:"0 0 32 22"},[createVNode("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var stdin_default$D=defineComponent({name:name$x,props:{type:String,text:numericProp,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(ee,{emit:ne,slots:oe}){const ae=ref(!1),ie=useTouch(),se=be=>{ie.start(be),ae.value=!0},de=be=>{ie.move(be),ie.direction.value&&(ae.value=!1)},fe=be=>{ae.value&&(oe.default||preventDefault(be),ae.value=!1,ne("press",ee.text,ee.type))},ve=()=>{if(ee.loading)return createVNode(Loading,{class:bem$w("loading-icon")},null);const be=oe.default?oe.default():ee.text;switch(ee.type){case"delete":return be||DeleteIcon;case"extra":return be||CollapseIcon;default:return be}};return()=>createVNode("div",{class:bem$w("wrapper",{wider:ee.wider}),onTouchstartPassive:se,onTouchmovePassive:de,onTouchend:fe,onTouchcancel:fe},[createVNode("div",{role:"button",tabindex:0,class:bem$w([ee.color,{large:ee.large,active:ae.value,delete:ee.type==="delete"}])},[ve()])])}});const[name$w,bem$v]=createNamespace("number-keyboard"),numberKeyboardProps={show:Boolean,title:String,theme:makeStringProp("default"),zIndex:numericProp,teleport:[String,Object],maxlength:makeNumericProp(1/0),modelValue:makeStringProp(""),transition:truthProp,blurOnClose:truthProp,showDeleteKey:truthProp,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:truthProp,safeAreaInsetBottom:truthProp,extraKey:{type:[String,Array],default:""}};function shuffle(ee){for(let ne=ee.length-1;ne>0;ne--){const oe=Math.floor(Math.random()*(ne+1)),ae=ee[ne];ee[ne]=ee[oe],ee[oe]=ae}return ee}var stdin_default$C=defineComponent({name:name$w,inheritAttrs:!1,props:numberKeyboardProps,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=ref(),se=()=>{const Ce=Array(9).fill("").map((Oe,Ae)=>({text:Ae+1}));return ee.randomKeyOrder&&shuffle(Ce),Ce},de=()=>[...se(),{text:ee.extraKey,type:"extra"},{text:0},{text:ee.showDeleteKey?ee.deleteButtonText:"",type:ee.showDeleteKey?"delete":""}],fe=()=>{const Ce=se(),{extraKey:Oe}=ee,Ae=Array.isArray(Oe)?Oe:[Oe];return Ae.length===1?Ce.push({text:0,wider:!0},{text:Ae[0],type:"extra"}):Ae.length===2&&Ce.push({text:Ae[0],type:"extra"},{text:0},{text:Ae[1],type:"extra"}),Ce},ve=computed(()=>ee.theme==="custom"?fe():de()),be=()=>{ee.show&&ne("blur")},ye=()=>{ne("close"),ee.blurOnClose&&be()},$e=()=>ne(ee.show?"show":"hide"),_e=(Ce,Oe)=>{if(Ce===""){Oe==="extra"&&be();return}const Ae=ee.modelValue;Oe==="delete"?(ne("delete"),ne("update:modelValue",Ae.slice(0,Ae.length-1))):Oe==="close"?ye():Ae.length<+ee.maxlength&&(ne("input",Ce),ne("update:modelValue",Ae+Ce))},Ee=()=>{const{title:Ce,theme:Oe,closeButtonText:Ae}=ee,Ne=oe["title-left"],ke=Ae&&Oe==="default";if(Ce||ke||Ne)return createVNode("div",{class:bem$v("header")},[Ne&&createVNode("span",{class:bem$v("title-left")},[Ne()]),Ce&&createVNode("h2",{class:bem$v("title")},[Ce]),ke&&createVNode("button",{type:"button",class:[bem$v("close"),HAPTICS_FEEDBACK],onClick:ye},[Ae])])},we=()=>ve.value.map(Ce=>{const Oe={};return Ce.type==="delete"&&(Oe.default=oe.delete),Ce.type==="extra"&&(Oe.default=oe["extra-key"]),createVNode(stdin_default$D,{key:Ce.text,text:Ce.text,type:Ce.type,wider:Ce.wider,color:Ce.color,onPress:_e},Oe)}),Pe=()=>{if(ee.theme==="custom")return createVNode("div",{class:bem$v("sidebar")},[ee.showDeleteKey&&createVNode(stdin_default$D,{large:!0,text:ee.deleteButtonText,type:"delete",onPress:_e},{default:oe.delete}),createVNode(stdin_default$D,{large:!0,text:ee.closeButtonText,type:"close",color:"blue",loading:ee.closeButtonLoading,onPress:_e},null)])};return watch(()=>ee.show,Ce=>{ee.transition||ne(Ce?"show":"hide")}),ee.hideOnClickOutside&&useClickAway(ie,be,{eventName:"touchstart"}),()=>{const Ce=Ee(),Oe=createVNode(Transition,{name:ee.transition?"van-slide-up":""},{default:()=>[withDirectives(createVNode("div",mergeProps({ref:ie,style:getZIndexStyle(ee.zIndex),class:bem$v({unfit:!ee.safeAreaInsetBottom,"with-title":!!Ce}),onAnimationend:$e,onTouchstartPassive:stopPropagation},ae),[Ce,createVNode("div",{class:bem$v("body")},[createVNode("div",{class:bem$v("keys")},[we()]),Pe()])]),[[vShow,ee.show]])]});return ee.teleport?createVNode(Teleport,{to:ee.teleport},{default:()=>[Oe]}):Oe}}});const NumberKeyboard=withInstall(stdin_default$C),[name$v,bem$u,t$6]=createNamespace("pagination"),makePage=(ee,ne,oe)=>({number:ee,text:ne,active:oe}),paginationProps={mode:makeStringProp("multi"),prevText:String,nextText:String,pageCount:makeNumericProp(0),modelValue:makeNumberProp(0),totalItems:makeNumericProp(0),showPageSize:makeNumericProp(5),itemsPerPage:makeNumericProp(10),forceEllipses:Boolean,showPrevButton:truthProp,showNextButton:truthProp};var stdin_default$B=defineComponent({name:name$v,props:paginationProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=computed(()=>{const{pageCount:ye,totalItems:$e,itemsPerPage:_e}=ee,Ee=+ye||Math.ceil(+$e/+_e);return Math.max(1,Ee)}),ie=computed(()=>{const ye=[],$e=ae.value,_e=+ee.showPageSize,{modelValue:Ee,forceEllipses:we}=ee;let Pe=1,Ce=$e;const Oe=_e<$e;Oe&&(Pe=Math.max(Ee-Math.floor(_e/2),1),Ce=Pe+_e-1,Ce>$e&&(Ce=$e,Pe=Ce-_e+1));for(let Ae=Pe;Ae<=Ce;Ae++){const Ne=makePage(Ae,Ae,Ae===Ee);ye.push(Ne)}if(Oe&&_e>0&&we){if(Pe>1){const Ae=makePage(Pe-1,"...");ye.unshift(Ae)}if(Ce<$e){const Ae=makePage(Ce+1,"...");ye.push(Ae)}}return ye}),se=(ye,$e)=>{ye=clamp(ye,1,ae.value),ee.modelValue!==ye&&(ne("update:modelValue",ye),$e&&ne("change",ye))};watchEffect(()=>se(ee.modelValue));const de=()=>createVNode("li",{class:bem$u("page-desc")},[oe.pageDesc?oe.pageDesc():`${ee.modelValue}/${ae.value}`]),fe=()=>{const{mode:ye,modelValue:$e,showPrevButton:_e}=ee;if(!_e)return;const Ee=oe["prev-text"],we=$e===1;return createVNode("li",{class:[bem$u("item",{disabled:we,border:ye==="simple",prev:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:we,onClick:()=>se($e-1,!0)},[Ee?Ee():ee.prevText||t$6("prev")])])},ve=()=>{const{mode:ye,modelValue:$e,showNextButton:_e}=ee;if(!_e)return;const Ee=oe["next-text"],we=$e===ae.value;return createVNode("li",{class:[bem$u("item",{disabled:we,border:ye==="simple",next:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button",disabled:we,onClick:()=>se($e+1,!0)},[Ee?Ee():ee.nextText||t$6("next")])])},be=()=>ie.value.map(ye=>createVNode("li",{class:[bem$u("item",{active:ye.active,page:!0}),BORDER_SURROUND]},[createVNode("button",{type:"button","aria-current":ye.active||void 0,onClick:()=>se(ye.number,!0)},[oe.page?oe.page(ye):ye.text])]));return()=>createVNode("nav",{role:"navigation",class:bem$u()},[createVNode("ul",{class:bem$u("items")},[fe(),ee.mode==="simple"?de():be(),ve()])])}});const Pagination=withInstall(stdin_default$B),[name$u,bem$t]=createNamespace("password-input"),passwordInputProps={info:String,mask:truthProp,value:makeStringProp(""),gutter:numericProp,length:makeNumericProp(6),focused:Boolean,errorInfo:String};var stdin_default$A=defineComponent({name:name$u,props:passwordInputProps,emits:["focus"],setup(ee,{emit:ne}){const oe=ie=>{ie.stopPropagation(),ne("focus",ie)},ae=()=>{const ie=[],{mask:se,value:de,gutter:fe,focused:ve}=ee,be=+ee.length;for(let ye=0;ye{const ie=ee.errorInfo||ee.info;return createVNode("div",{class:bem$t()},[createVNode("ul",{class:[bem$t("security"),{[BORDER_SURROUND]:!ee.gutter}],onTouchstartPassive:oe},[ae()]),ie&&createVNode("div",{class:bem$t(ee.errorInfo?"error-info":"info")},[ie])])}}});const PasswordInput=withInstall(stdin_default$A),PickerGroup=withInstall(stdin_default$1y);function getWindow(ee){if(ee==null)return window;if(ee.toString()!=="[object Window]"){var ne=ee.ownerDocument;return ne&&ne.defaultView||window}return ee}function isElement(ee){var ne=getWindow(ee).Element;return ee instanceof ne||ee instanceof Element}function isHTMLElement(ee){var ne=getWindow(ee).HTMLElement;return ee instanceof ne||ee instanceof HTMLElement}function isShadowRoot(ee){if(typeof ShadowRoot>"u")return!1;var ne=getWindow(ee).ShadowRoot;return ee instanceof ne||ee instanceof ShadowRoot}var round=Math.round;function getUAString(){var ee=navigator.userAgentData;return ee!=null&&ee.brands?ee.brands.map(function(ne){return ne.brand+"/"+ne.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,ne,oe){ne===void 0&&(ne=!1),oe===void 0&&(oe=!1);var ae=ee.getBoundingClientRect(),ie=1,se=1;ne&&isHTMLElement(ee)&&(ie=ee.offsetWidth>0&&round(ae.width)/ee.offsetWidth||1,se=ee.offsetHeight>0&&round(ae.height)/ee.offsetHeight||1);var de=isElement(ee)?getWindow(ee):window,fe=de.visualViewport,ve=!isLayoutViewport()&&oe,be=(ae.left+(ve&&fe?fe.offsetLeft:0))/ie,ye=(ae.top+(ve&&fe?fe.offsetTop:0))/se,$e=ae.width/ie,_e=ae.height/se;return{width:$e,height:_e,top:ye,right:be+$e,bottom:ye+_e,left:be,x:be,y:ye}}function getWindowScroll(ee){var ne=getWindow(ee),oe=ne.pageXOffset,ae=ne.pageYOffset;return{scrollLeft:oe,scrollTop:ae}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee===getWindow(ee)||!isHTMLElement(ee)?getWindowScroll(ee):getHTMLElementScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle$1(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var ne=getComputedStyle$1(ee),oe=ne.overflow,ae=ne.overflowX,ie=ne.overflowY;return/auto|scroll|overlay|hidden/.test(oe+ie+ae)}function isElementScaled(ee){var ne=ee.getBoundingClientRect(),oe=round(ne.width)/ee.offsetWidth||1,ae=round(ne.height)/ee.offsetHeight||1;return oe!==1||ae!==1}function getCompositeRect(ee,ne,oe){oe===void 0&&(oe=!1);var ae=isHTMLElement(ne),ie=isHTMLElement(ne)&&isElementScaled(ne),se=getDocumentElement(ne),de=getBoundingClientRect(ee,ie,oe),fe={scrollLeft:0,scrollTop:0},ve={x:0,y:0};return(ae||!ae&&!oe)&&((getNodeName(ne)!=="body"||isScrollParent(se))&&(fe=getNodeScroll(ne)),isHTMLElement(ne)?(ve=getBoundingClientRect(ne,!0),ve.x+=ne.clientLeft,ve.y+=ne.clientTop):se&&(ve.x=getWindowScrollBarX(se))),{x:de.left+fe.scrollLeft-ve.x,y:de.top+fe.scrollTop-ve.y,width:de.width,height:de.height}}function getLayoutRect(ee){var ne=getBoundingClientRect(ee),oe=ee.offsetWidth,ae=ee.offsetHeight;return Math.abs(ne.width-oe)<=1&&(oe=ne.width),Math.abs(ne.height-ae)<=1&&(ae=ne.height),{x:ee.offsetLeft,y:ee.offsetTop,width:oe,height:ae}}function getParentNode(ee){return getNodeName(ee)==="html"?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,ne){var oe;ne===void 0&&(ne=[]);var ae=getScrollParent(ee),ie=ae===((oe=ee.ownerDocument)==null?void 0:oe.body),se=getWindow(ae),de=ie?[se].concat(se.visualViewport||[],isScrollParent(ae)?ae:[]):ae,fe=ne.concat(de);return ie?fe:fe.concat(listScrollParents(getParentNode(de)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return!isHTMLElement(ee)||getComputedStyle$1(ee).position==="fixed"?null:ee.offsetParent}function getContainingBlock(ee){var ne=/firefox/i.test(getUAString()),oe=/Trident/i.test(getUAString());if(oe&&isHTMLElement(ee)){var ae=getComputedStyle$1(ee);if(ae.position==="fixed")return null}var ie=getParentNode(ee);for(isShadowRoot(ie)&&(ie=ie.host);isHTMLElement(ie)&&["html","body"].indexOf(getNodeName(ie))<0;){var se=getComputedStyle$1(ie);if(se.transform!=="none"||se.perspective!=="none"||se.contain==="paint"||["transform","perspective"].indexOf(se.willChange)!==-1||ne&&se.willChange==="filter"||ne&&se.filter&&se.filter!=="none")return ie;ie=ie.parentNode}return null}function getOffsetParent(ee){for(var ne=getWindow(ee),oe=getTrueOffsetParent(ee);oe&&isTableElement(oe)&&getComputedStyle$1(oe).position==="static";)oe=getTrueOffsetParent(oe);return oe&&(getNodeName(oe)==="html"||getNodeName(oe)==="body"&&getComputedStyle$1(oe).position==="static")?ne:oe||getContainingBlock(ee)||ne}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",placements=[].concat(basePlacements,[auto]).reduce(function(ee,ne){return ee.concat([ne,ne+"-"+start,ne+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(ee){var ne=new Map,oe=new Set,ae=[];ee.forEach(function(se){ne.set(se.name,se)});function ie(se){oe.add(se.name);var de=[].concat(se.requires||[],se.requiresIfExists||[]);de.forEach(function(fe){if(!oe.has(fe)){var ve=ne.get(fe);ve&&ie(ve)}}),ae.push(se)}return ee.forEach(function(se){oe.has(se.name)||ie(se)}),ae}function orderModifiers(ee){var ne=order(ee);return modifierPhases.reduce(function(oe,ae){return oe.concat(ne.filter(function(ie){return ie.phase===ae}))},[])}function debounce(ee){var ne;return function(){return ne||(ne=new Promise(function(oe){Promise.resolve().then(function(){ne=void 0,oe(ee())})})),ne}}function format(ee){for(var ne=arguments.length,oe=new Array(ne>1?ne-1:0),ae=1;ae=0?"x":"y"}function computeOffsets(ee){var ne=ee.reference,oe=ee.element,ae=ee.placement,ie=ae?getBasePlacement(ae):null,se=ae?getVariation(ae):null,de=ne.x+ne.width/2-oe.width/2,fe=ne.y+ne.height/2-oe.height/2,ve;switch(ie){case top:ve={x:de,y:ne.y-oe.height};break;case bottom:ve={x:de,y:ne.y+ne.height};break;case right:ve={x:ne.x+ne.width,y:fe};break;case left:ve={x:ne.x-oe.width,y:fe};break;default:ve={x:ne.x,y:ne.y}}var be=ie?getMainAxisFromPlacement(ie):null;if(be!=null){var ye=be==="y"?"height":"width";switch(se){case start:ve[be]=ve[be]-(ne[ye]/2-oe[ye]/2);break;case end:ve[be]=ve[be]+(ne[ye]/2-oe[ye]/2);break}}return ve}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,ne=new Array(ee),oe=0;oe100){console.error(INFINITE_LOOP_ERROR);break}if(ye.reset===!0){ye.reset=!1,Re=-1;continue}var Le=ye.orderedModifiers[Re],Me=Le.fn,Ie=Le.options,Fe=Ie===void 0?{}:Ie,je=Le.name;typeof Me=="function"&&(ye=Me({state:ye,options:Fe,name:je,instance:Ee})||ye)}}},update:debounce(function(){return new Promise(function(Ce){Ee.forceUpdate(),Ce(ye)})}),destroy:function(){Pe(),_e=!0}};if(!areValidElements(fe,ve))return console.error(INVALID_ELEMENT_ERROR),Ee;Ee.setOptions(be).then(function(Ce){!_e&&be.onFirstUpdate&&be.onFirstUpdate(Ce)});function we(){ye.orderedModifiers.forEach(function(Ce){var Oe=Ce.name,Ae=Ce.options,Ne=Ae===void 0?{}:Ae,ke=Ce.effect;if(typeof ke=="function"){var Re=ke({state:ye,name:Oe,instance:Ee,options:Ne}),Le=function(){};$e.push(Re||Le)}})}function Pe(){$e.forEach(function(Ce){return Ce()}),$e=[]}return Ee}}var passive={passive:!0};function effect(ee){var ne=ee.state,oe=ee.instance,ae=ee.options,ie=ae.scroll,se=ie===void 0?!0:ie,de=ae.resize,fe=de===void 0?!0:de,ve=getWindow(ne.elements.popper),be=[].concat(ne.scrollParents.reference,ne.scrollParents.popper);return se&&be.forEach(function(ye){ye.addEventListener("scroll",oe.update,passive)}),fe&&ve.addEventListener("resize",oe.update,passive),function(){se&&be.forEach(function(ye){ye.removeEventListener("scroll",oe.update,passive)}),fe&&ve.removeEventListener("resize",oe.update,passive)}}var eventListeners_default={name:"eventListeners",enabled:!0,phase:"write",fn:function ee(){},effect,data:{}};function popperOffsets(ee){var ne=ee.state,oe=ee.name;ne.modifiersData[oe]=computeOffsets({reference:ne.rects.reference,element:ne.rects.popper,strategy:"absolute",placement:ne.placement})}var popperOffsets_default={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}},unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee){var ne=ee.x,oe=ee.y,ae=window,ie=ae.devicePixelRatio||1;return{x:round(ne*ie)/ie||0,y:round(oe*ie)/ie||0}}function mapToStyles(ee){var ne,oe=ee.popper,ae=ee.popperRect,ie=ee.placement,se=ee.variation,de=ee.offsets,fe=ee.position,ve=ee.gpuAcceleration,be=ee.adaptive,ye=ee.roundOffsets,$e=ee.isFixed,_e=de.x,Ee=_e===void 0?0:_e,we=de.y,Pe=we===void 0?0:we,Ce=typeof ye=="function"?ye({x:Ee,y:Pe}):{x:Ee,y:Pe};Ee=Ce.x,Pe=Ce.y;var Oe=de.hasOwnProperty("x"),Ae=de.hasOwnProperty("y"),Ne=left,ke=top,Re=window;if(be){var Le=getOffsetParent(oe),Me="clientHeight",Ie="clientWidth";if(Le===getWindow(oe)&&(Le=getDocumentElement(oe),getComputedStyle$1(Le).position!=="static"&&fe==="absolute"&&(Me="scrollHeight",Ie="scrollWidth")),Le=Le,ie===top||(ie===left||ie===right)&&se===end){ke=bottom;var Fe=$e&&Le===Re&&Re.visualViewport?Re.visualViewport.height:Le[Me];Pe-=Fe-ae.height,Pe*=ve?1:-1}if(ie===left||(ie===top||ie===bottom)&&se===end){Ne=right;var je=$e&&Le===Re&&Re.visualViewport?Re.visualViewport.width:Le[Ie];Ee-=je-ae.width,Ee*=ve?1:-1}}var Be=Object.assign({position:fe},be&&unsetSides),He=ye===!0?roundOffsetsByDPR({x:Ee,y:Pe}):{x:Ee,y:Pe};if(Ee=He.x,Pe=He.y,ve){var ot;return Object.assign({},Be,(ot={},ot[ke]=Ae?"0":"",ot[Ne]=Oe?"0":"",ot.transform=(Re.devicePixelRatio||1)<=1?"translate("+Ee+"px, "+Pe+"px)":"translate3d("+Ee+"px, "+Pe+"px, 0)",ot))}return Object.assign({},Be,(ne={},ne[ke]=Ae?Pe+"px":"",ne[Ne]=Oe?Ee+"px":"",ne.transform="",ne))}function computeStyles(ee){var ne=ee.state,oe=ee.options,ae=oe.gpuAcceleration,ie=ae===void 0?!0:ae,se=oe.adaptive,de=se===void 0?!0:se,fe=oe.roundOffsets,ve=fe===void 0?!0:fe;{var be=getComputedStyle$1(ne.elements.popper).transitionProperty||"";de&&["transform","top","right","bottom","left"].some(function($e){return be.indexOf($e)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` + +`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` + +`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var ye={placement:getBasePlacement(ne.placement),variation:getVariation(ne.placement),popper:ne.elements.popper,popperRect:ne.rects.popper,gpuAcceleration:ie,isFixed:ne.options.strategy==="fixed"};ne.modifiersData.popperOffsets!=null&&(ne.styles.popper=Object.assign({},ne.styles.popper,mapToStyles(Object.assign({},ye,{offsets:ne.modifiersData.popperOffsets,position:ne.options.strategy,adaptive:de,roundOffsets:ve})))),ne.modifiersData.arrow!=null&&(ne.styles.arrow=Object.assign({},ne.styles.arrow,mapToStyles(Object.assign({},ye,{offsets:ne.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ve})))),ne.attributes.popper=Object.assign({},ne.attributes.popper,{"data-popper-placement":ne.placement})}var computeStyles_default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(ee){var ne=ee.state;Object.keys(ne.elements).forEach(function(oe){var ae=ne.styles[oe]||{},ie=ne.attributes[oe]||{},se=ne.elements[oe];!isHTMLElement(se)||!getNodeName(se)||(Object.assign(se.style,ae),Object.keys(ie).forEach(function(de){var fe=ie[de];fe===!1?se.removeAttribute(de):se.setAttribute(de,fe===!0?"":fe)}))})}function effect2(ee){var ne=ee.state,oe={popper:{position:ne.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ne.elements.popper.style,oe.popper),ne.styles=oe,ne.elements.arrow&&Object.assign(ne.elements.arrow.style,oe.arrow),function(){Object.keys(ne.elements).forEach(function(ae){var ie=ne.elements[ae],se=ne.attributes[ae]||{},de=Object.keys(ne.styles.hasOwnProperty(ae)?ne.styles[ae]:oe[ae]),fe=de.reduce(function(ve,be){return ve[be]="",ve},{});!isHTMLElement(ie)||!getNodeName(ie)||(Object.assign(ie.style,fe),Object.keys(se).forEach(function(ve){ie.removeAttribute(ve)}))})}}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect2,requires:["computeStyles"]},defaultModifiers=[eventListeners_default,popperOffsets_default,computeStyles_default,applyStyles_default],createPopper=popperGenerator({defaultModifiers});function distanceAndSkiddingToXY(ee,ne,oe){var ae=getBasePlacement(ee),ie=[left,top].indexOf(ae)>=0?-1:1,se=typeof oe=="function"?oe(Object.assign({},ne,{placement:ee})):oe,de=se[0],fe=se[1];return de=de||0,fe=(fe||0)*ie,[left,right].indexOf(ae)>=0?{x:fe,y:de}:{x:de,y:fe}}function offset(ee){var ne=ee.state,oe=ee.options,ae=ee.name,ie=oe.offset,se=ie===void 0?[0,0]:ie,de=placements.reduce(function(ye,$e){return ye[$e]=distanceAndSkiddingToXY($e,ne.rects,se),ye},{}),fe=de[ne.placement],ve=fe.x,be=fe.y;ne.modifiersData.popperOffsets!=null&&(ne.modifiersData.popperOffsets.x+=ve,ne.modifiersData.popperOffsets.y+=be),ne.modifiersData[ae]=de}var offset_default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};const[name$t,bem$s]=createNamespace("popover"),popupProps=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],popoverProps={show:Boolean,theme:makeStringProp("light"),overlay:Boolean,actions:makeArrayProp(),actionsDirection:makeStringProp("vertical"),trigger:makeStringProp("click"),duration:numericProp,showArrow:truthProp,placement:makeStringProp("bottom"),iconPrefix:String,overlayClass:unknownProp,overlayStyle:Object,closeOnClickAction:truthProp,closeOnClickOverlay:truthProp,closeOnClickOutside:truthProp,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var stdin_default$z=defineComponent({name:name$t,props:popoverProps,emits:["select","touchstart","update:show"],setup(ee,{emit:ne,slots:oe,attrs:ae}){let ie;const se=ref(),de=ref(),fe=ref(),ve=useSyncPropRef(()=>ee.show,Ae=>ne("update:show",Ae)),be=()=>({placement:ee.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},extend$1({},offset_default,{options:{offset:ee.offset}})]}),ye=()=>de.value&&fe.value?createPopper(de.value,fe.value.popupRef.value,be()):null,$e=()=>{nextTick(()=>{ve.value&&(ie?ie.setOptions(be()):(ie=ye(),inBrowser$1&&(window.addEventListener("animationend",$e),window.addEventListener("transitionend",$e))))})},_e=Ae=>{ve.value=Ae},Ee=()=>{ee.trigger==="click"&&(ve.value=!ve.value)},we=(Ae,Ne)=>{Ae.disabled||(ne("select",Ae,Ne),ee.closeOnClickAction&&(ve.value=!1))},Pe=()=>{ve.value&&ee.closeOnClickOutside&&(!ee.overlay||ee.closeOnClickOverlay)&&(ve.value=!1)},Ce=(Ae,Ne)=>oe.action?oe.action({action:Ae,index:Ne}):[Ae.icon&&createVNode(Icon,{name:Ae.icon,classPrefix:ee.iconPrefix,class:bem$s("action-icon")},null),createVNode("div",{class:[bem$s("action-text"),{[BORDER_BOTTOM]:ee.actionsDirection==="vertical"}]},[Ae.text])],Oe=(Ae,Ne)=>{const{icon:ke,color:Re,disabled:Le,className:Me}=Ae;return createVNode("div",{role:"menuitem",class:[bem$s("action",{disabled:Le,"with-icon":ke}),{[BORDER_RIGHT]:ee.actionsDirection==="horizontal"},Me],style:{color:Re},tabindex:Le?void 0:0,"aria-disabled":Le||void 0,onClick:()=>we(Ae,Ne)},[Ce(Ae,Ne)])};return onMounted(()=>{$e(),watchEffect(()=>{var Ae;se.value=(Ae=fe.value)==null?void 0:Ae.popupRef.value})}),onBeforeUnmount(()=>{ie&&(inBrowser$1&&(window.removeEventListener("animationend",$e),window.removeEventListener("transitionend",$e)),ie.destroy(),ie=null)}),watch(()=>[ve.value,ee.offset,ee.placement],$e),useClickAway([de,se],Pe,{eventName:"touchstart"}),()=>{var Ae;return createVNode(Fragment,null,[createVNode("span",{ref:de,class:bem$s("wrapper"),onClick:Ee},[(Ae=oe.reference)==null?void 0:Ae.call(oe)]),createVNode(Popup,mergeProps({ref:fe,show:ve.value,class:bem$s([ee.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":_e},ae,useScopeId(),pick(ee,popupProps)),{default:()=>[ee.showArrow&&createVNode("div",{class:bem$s("arrow")},null),createVNode("div",{role:"menu",class:bem$s("content",ee.actionsDirection)},[oe.default?oe.default():ee.actions.map(Oe)])]})])}}});const Popover=withInstall(stdin_default$z),[name$s,bem$r]=createNamespace("progress"),progressProps={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:truthProp,pivotColor:String,trackColor:String,strokeWidth:numericProp,percentage:{type:numericProp,default:0,validator:ee=>+ee>=0&&+ee<=100}};var stdin_default$y=defineComponent({name:name$s,props:progressProps,setup(ee){const ne=computed(()=>ee.inactive?void 0:ee.color),oe=()=>{const{textColor:ae,pivotText:ie,pivotColor:se,percentage:de}=ee,fe=ie??`${de}%`;if(ee.showPivot&&fe){const ve={color:ae,left:`${+de}%`,transform:`translate(-${+de}%,-50%)`,background:se||ne.value};return createVNode("span",{style:ve,class:bem$r("pivot",{inactive:ee.inactive})},[fe])}};return()=>{const{trackColor:ae,percentage:ie,strokeWidth:se}=ee,de={background:ae,height:addUnit(se)},fe={width:`${ie}%`,background:ne.value};return createVNode("div",{class:bem$r(),style:de},[createVNode("span",{class:bem$r("portion",{inactive:ee.inactive}),style:fe},null),oe()])}}});const Progress=withInstall(stdin_default$y),[name$r,bem$q,t$5]=createNamespace("pull-refresh"),DEFAULT_HEAD_HEIGHT=50,TEXT_STATUS=["pulling","loosing","success"],pullRefreshProps={disabled:Boolean,modelValue:Boolean,headHeight:makeNumericProp(DEFAULT_HEAD_HEIGHT),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:numericProp,successDuration:makeNumericProp(500),animationDuration:makeNumericProp(300)};var stdin_default$x=defineComponent({name:name$r,props:pullRefreshProps,emits:["change","refresh","update:modelValue"],setup(ee,{emit:ne,slots:oe}){let ae;const ie=ref(),se=ref(),de=useScrollParent(ie),fe=reactive({status:"normal",distance:0,duration:0}),ve=useTouch(),be=()=>{if(ee.headHeight!==DEFAULT_HEAD_HEIGHT)return{height:`${ee.headHeight}px`}},ye=()=>fe.status!=="loading"&&fe.status!=="success"&&!ee.disabled,$e=ke=>{const Re=+(ee.pullDistance||ee.headHeight);return ke>Re&&(ke{const Le=+(ee.pullDistance||ee.headHeight);fe.distance=ke,Re?fe.status="loading":ke===0?fe.status="normal":ke{const{status:ke}=fe;return ke==="normal"?"":ee[`${ke}Text`]||t$5(ke)},we=()=>{const{status:ke,distance:Re}=fe;if(oe[ke])return oe[ke]({distance:Re});const Le=[];return TEXT_STATUS.includes(ke)&&Le.push(createVNode("div",{class:bem$q("text")},[Ee()])),ke==="loading"&&Le.push(createVNode(Loading,{class:bem$q("loading")},{default:Ee})),Le},Pe=()=>{fe.status="success",setTimeout(()=>{_e(0)},+ee.successDuration)},Ce=ke=>{ae=getScrollTop(de.value)===0,ae&&(fe.duration=0,ve.start(ke))},Oe=ke=>{ye()&&Ce(ke)},Ae=ke=>{if(ye()){ae||Ce(ke);const{deltaY:Re}=ve;ve.move(ke),ae&&Re.value>=0&&ve.isVertical()&&(preventDefault(ke),_e($e(Re.value)))}},Ne=()=>{ae&&ve.deltaY.value&&ye()&&(fe.duration=+ee.animationDuration,fe.status==="loosing"?(_e(+ee.headHeight,!0),ne("update:modelValue",!0),nextTick(()=>ne("refresh"))):_e(0))};return watch(()=>ee.modelValue,ke=>{fe.duration=+ee.animationDuration,ke?_e(+ee.headHeight,!0):oe.success||ee.successText?Pe():_e(0,!1)}),useEventListener("touchmove",Ae,{target:se}),()=>{var ke;const Re={transitionDuration:`${fe.duration}ms`,transform:fe.distance?`translate3d(0,${fe.distance}px, 0)`:""};return createVNode("div",{ref:ie,class:bem$q()},[createVNode("div",{ref:se,class:bem$q("track"),style:Re,onTouchstartPassive:Oe,onTouchend:Ne,onTouchcancel:Ne},[createVNode("div",{class:bem$q("head"),style:be()},[we()]),(ke=oe.default)==null?void 0:ke.call(oe)])])}}});const PullRefresh=withInstall(stdin_default$x),[name$q,bem$p]=createNamespace("rate");function getRateStatus(ee,ne,oe,ae){return ee>=ne?{status:"full",value:1}:ee+.5>=ne&&oe&&!ae?{status:"half",value:.5}:ee+1>=ne&&oe&&ae?{status:"half",value:Math.round((ee-ne+1)*1e10)/1e10}:{status:"void",value:0}}const rateProps={size:numericProp,icon:makeStringProp("star"),color:String,count:makeNumericProp(5),gutter:numericProp,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:makeStringProp("star-o"),allowHalf:Boolean,voidColor:String,touchable:truthProp,iconPrefix:String,modelValue:makeNumberProp(0),disabledColor:String};var stdin_default$w=defineComponent({name:name$q,props:rateProps,emits:["change","update:modelValue"],setup(ee,{emit:ne}){const oe=useTouch(),[ae,ie]=useRefs(),se=ref(),de=computed(()=>ee.readonly||ee.disabled),fe=computed(()=>de.value||!ee.touchable),ve=computed(()=>Array(+ee.count).fill("").map((Ne,ke)=>getRateStatus(ee.modelValue,ke+1,ee.allowHalf,ee.readonly)));let be,ye,$e=Number.MAX_SAFE_INTEGER,_e=Number.MIN_SAFE_INTEGER;const Ee=()=>{ye=useRect(se);const Ne=ae.value.map(useRect);be=[],Ne.forEach((ke,Re)=>{$e=Math.min(ke.top,$e),_e=Math.max(ke.top,_e),ee.allowHalf?be.push({score:Re+.5,left:ke.left,top:ke.top,height:ke.height},{score:Re+1,left:ke.left+ke.width/2,top:ke.top,height:ke.height}):be.push({score:Re+1,left:ke.left,top:ke.top,height:ke.height})})},we=(Ne,ke)=>{for(let Re=be.length-1;Re>0;Re--)if(ke>=ye.top&&ke<=ye.bottom){if(Ne>be[Re].left&&ke>=be[Re].top&&ke<=be[Re].top+be[Re].height)return be[Re].score}else{const Le=kebe[Re].left&&be[Re].top===Le)return be[Re].score}return ee.allowHalf?.5:1},Pe=Ne=>{de.value||Ne===ee.modelValue||(ne("update:modelValue",Ne),ne("change",Ne))},Ce=Ne=>{fe.value||(oe.start(Ne),Ee())},Oe=Ne=>{if(!fe.value&&(oe.move(Ne),oe.isHorizontal()&&!oe.isTap.value)){const{clientX:ke,clientY:Re}=Ne.touches[0];preventDefault(Ne),Pe(we(ke,Re))}},Ae=(Ne,ke)=>{const{icon:Re,size:Le,color:Me,count:Ie,gutter:Fe,voidIcon:je,disabled:Be,voidColor:He,allowHalf:ot,iconPrefix:Nt,disabledColor:st}=ee,Ue=ke+1,Ze=Ne.status==="full",Tt=Ne.status==="void",Vt=ot&&Ne.value>0&&Ne.value<1;let Ut;Fe&&Ue!==+Ie&&(Ut={paddingRight:addUnit(Fe)});const We=Pt=>{Ee();let Mt=ot?we(Pt.clientX,Pt.clientY):Ue;ee.clearable&&oe.isTap.value&&Mt===ee.modelValue&&(Mt=0),Pe(Mt)};return createVNode("div",{key:ke,ref:ie(ke),role:"radio",style:Ut,class:bem$p("item"),tabindex:Be?void 0:0,"aria-setsize":Ie,"aria-posinset":Ue,"aria-checked":!Tt,onClick:We},[createVNode(Icon,{size:Le,name:Ze?Re:je,class:bem$p("icon",{disabled:Be,full:Ze}),color:Be?st:Ze?Me:He,classPrefix:Nt},null),Vt&&createVNode(Icon,{size:Le,style:{width:Ne.value+"em"},name:Tt?je:Re,class:bem$p("icon",["half",{disabled:Be,full:!Tt}]),color:Be?st:Tt?He:Me,classPrefix:Nt},null)])};return useCustomFieldValue(()=>ee.modelValue),useEventListener("touchmove",Oe,{target:se}),()=>createVNode("div",{ref:se,role:"radiogroup",class:bem$p({readonly:ee.readonly,disabled:ee.disabled}),tabindex:ee.disabled?void 0:0,"aria-disabled":ee.disabled,"aria-readonly":ee.readonly,onTouchstartPassive:Ce},[ve.value.map(Ae)])}});const Rate=withInstall(stdin_default$w),props={figureArr:makeArrayProp(),delay:Number,duration:makeNumberProp(2),isStart:Boolean,direction:makeStringProp("down"),height:makeNumberProp(40)},[name$p,bem$o]=createNamespace("rolling-text-item");var stdin_default$v=defineComponent({name:name$p,props,setup(ee){const ne=computed(()=>ee.direction==="down"?ee.figureArr.slice().reverse():ee.figureArr),oe=computed(()=>`-${ee.height*(ee.figureArr.length-1)}px`),ae=computed(()=>({lineHeight:addUnit(ee.height)})),ie=computed(()=>({height:addUnit(ee.height),"--van-translate":oe.value,"--van-duration":ee.duration+"s","--van-delay":ee.delay+"s"}));return()=>createVNode("div",{class:bem$o([ee.direction]),style:ie.value},[createVNode("div",{class:bem$o("box",{animate:ee.isStart})},[Array.isArray(ne.value)&&ne.value.map(se=>createVNode("div",{class:bem$o("item"),style:ae.value},[se]))])])}});const[name$o,bem$n]=createNamespace("rolling-text"),rollingTextProps={startNum:makeNumberProp(0),targetNum:Number,textList:makeArrayProp(),duration:makeNumberProp(2),autoStart:truthProp,direction:makeStringProp("down"),stopOrder:makeStringProp("ltr"),height:makeNumberProp(40)},CIRCLE_NUM=2;var stdin_default$u=defineComponent({name:name$o,props:rollingTextProps,setup(ee){const ne=computed(()=>Array.isArray(ee.textList)&&ee.textList.length),oe=computed(()=>ne.value?ee.textList[0].length:`${Math.max(ee.startNum,ee.targetNum)}`.length),ae=$e=>{const _e=[];for(let Ee=0;Eene.value?new Array(oe.value).fill(""):padZero(ee.targetNum,oe.value).split("")),se=computed(()=>padZero(ee.startNum,oe.value).split("")),de=$e=>{const _e=+se.value[$e],Ee=+ie.value[$e],we=[];for(let Pe=_e;Pe<=9;Pe++)we.push(Pe);for(let Pe=0;Pe<=CIRCLE_NUM;Pe++)for(let Ce=0;Ce<=9;Ce++)we.push(Ce);for(let Pe=0;Pe<=Ee;Pe++)we.push(Pe);return we},fe=($e,_e)=>ee.stopOrder==="ltr"?.2*$e:.2*(_e-1-$e),ve=ref(ee.autoStart),be=()=>{ve.value=!0},ye=()=>{ve.value=!1,ee.autoStart&&raf(()=>be())};return watch(()=>ee.autoStart,$e=>{$e&&be()}),useExpose({start:be,reset:ye}),()=>createVNode("div",{class:bem$n()},[ie.value.map(($e,_e)=>createVNode(stdin_default$v,{figureArr:ne.value?ae(_e):de(_e),duration:ee.duration,direction:ee.direction,isStart:ve.value,height:ee.height,delay:fe(_e,oe.value)},null))])}});const RollingText=withInstall(stdin_default$u),Row=withInstall(stdin_default$15),[name$n,bem$m,t$4]=createNamespace("search"),searchProps=extend$1({},fieldSharedProps,{label:String,shape:makeStringProp("square"),leftIcon:makeStringProp("search"),clearable:truthProp,actionText:String,background:String,showAction:Boolean});var stdin_default$t=defineComponent({name:name$n,props:searchProps,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(ee,{emit:ne,slots:oe,attrs:ae}){const ie=useId(),se=ref(),de=()=>{oe.action||(ne("update:modelValue",""),ne("cancel"))},fe=Re=>{Re.keyCode===13&&(preventDefault(Re),ne("search",ee.modelValue))},ve=()=>ee.id||`${ie}-input`,be=()=>{if(oe.label||ee.label)return createVNode("label",{class:bem$m("label"),for:ve()},[oe.label?oe.label():ee.label])},ye=()=>{if(ee.showAction){const Re=ee.actionText||t$4("cancel");return createVNode("div",{class:bem$m("action"),role:"button",tabindex:0,onClick:de},[oe.action?oe.action():Re])}},$e=()=>{var Re;return(Re=se.value)==null?void 0:Re.blur()},_e=()=>{var Re;return(Re=se.value)==null?void 0:Re.focus()},Ee=Re=>ne("blur",Re),we=Re=>ne("focus",Re),Pe=Re=>ne("clear",Re),Ce=Re=>ne("clickInput",Re),Oe=Re=>ne("clickLeftIcon",Re),Ae=Re=>ne("clickRightIcon",Re),Ne=Object.keys(fieldSharedProps),ke=()=>{const Re=extend$1({},ae,pick(ee,Ne),{id:ve()}),Le=Me=>ne("update:modelValue",Me);return createVNode(Field,mergeProps({ref:se,type:"search",class:bem$m("field",{"with-message":Re.errorMessage}),border:!1,onBlur:Ee,onFocus:we,onClear:Pe,onKeypress:fe,onClickInput:Ce,onClickLeftIcon:Oe,onClickRightIcon:Ae,"onUpdate:modelValue":Le},Re),pick(oe,["left-icon","right-icon"]))};return useExpose({focus:_e,blur:$e}),()=>{var Re;return createVNode("div",{class:bem$m({"show-action":ee.showAction}),style:{background:ee.background}},[(Re=oe.left)==null?void 0:Re.call(oe),createVNode("div",{class:bem$m("content",ee.shape)},[be(),ke()]),ye()])}}});const Search=withInstall(stdin_default$t),isImage=ee=>ee==null?void 0:ee.includes("/"),popupInheritKeys=[...popupSharedPropKeys,"round","closeOnPopstate","safeAreaInsetBottom"],iconMap={qq:"qq",link:"link-o",weibo:"weibo",qrcode:"qr",poster:"photo-o",wechat:"wechat","weapp-qrcode":"miniprogram-o","wechat-moments":"wechat-moments"},[name$m,bem$l,t$3]=createNamespace("share-sheet"),shareSheetProps=extend$1({},popupSharedProps,{title:String,round:truthProp,options:makeArrayProp(),cancelText:String,description:String,closeOnPopstate:truthProp,safeAreaInsetBottom:truthProp});var stdin_default$s=defineComponent({name:name$m,props:shareSheetProps,emits:["cancel","select","update:show"],setup(ee,{emit:ne,slots:oe}){const ae=_e=>ne("update:show",_e),ie=()=>{ae(!1),ne("cancel")},se=(_e,Ee)=>ne("select",_e,Ee),de=()=>{const _e=oe.title?oe.title():ee.title,Ee=oe.description?oe.description():ee.description;if(_e||Ee)return createVNode("div",{class:bem$l("header")},[_e&&createVNode("h2",{class:bem$l("title")},[_e]),Ee&&createVNode("span",{class:bem$l("description")},[Ee])])},fe=_e=>isImage(_e)?createVNode("img",{src:_e,class:bem$l("image-icon")},null):createVNode("div",{class:bem$l("icon",[_e])},[createVNode(Icon,{name:iconMap[_e]||_e},null)]),ve=(_e,Ee)=>{const{name:we,icon:Pe,className:Ce,description:Oe}=_e;return createVNode("div",{role:"button",tabindex:0,class:[bem$l("option"),Ce,HAPTICS_FEEDBACK],onClick:()=>se(_e,Ee)},[fe(Pe),we&&createVNode("span",{class:bem$l("name")},[we]),Oe&&createVNode("span",{class:bem$l("option-description")},[Oe])])},be=(_e,Ee)=>createVNode("div",{class:bem$l("options",{border:Ee})},[_e.map(ve)]),ye=()=>{const{options:_e}=ee;return Array.isArray(_e[0])?_e.map((Ee,we)=>be(Ee,we!==0)):be(_e)},$e=()=>{var _e;const Ee=(_e=ee.cancelText)!=null?_e:t$3("cancel");if(oe.cancel||Ee)return createVNode("button",{type:"button",class:bem$l("cancel"),onClick:ie},[oe.cancel?oe.cancel():Ee])};return()=>createVNode(Popup,mergeProps({class:bem$l(),position:"bottom","onUpdate:show":ae},pick(ee,popupInheritKeys)),{default:()=>[de(),ye(),$e()]})}});const ShareSheet=withInstall(stdin_default$s),[name$l,bem$k]=createNamespace("sidebar"),SIDEBAR_KEY=Symbol(name$l),sidebarProps={modelValue:makeNumericProp(0)};var stdin_default$r=defineComponent({name:name$l,props:sidebarProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(SIDEBAR_KEY),ie=()=>+ee.modelValue;return ae({getActive:ie,setActive:de=>{de!==ie()&&(ne("update:modelValue",de),ne("change",de))}}),()=>{var de;return createVNode("div",{role:"tablist",class:bem$k()},[(de=oe.default)==null?void 0:de.call(oe)])}}});const Sidebar=withInstall(stdin_default$r),[name$k,bem$j]=createNamespace("sidebar-item"),sidebarItemProps=extend$1({},routeProps,{dot:Boolean,title:String,badge:numericProp,disabled:Boolean,badgeProps:Object});var stdin_default$q=defineComponent({name:name$k,props:sidebarItemProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),{parent:ie,index:se}=useParent(SIDEBAR_KEY);if(!ie)return;const de=()=>{ee.disabled||(ne("click",se.value),ie.setActive(se.value),ae())};return()=>{const{dot:fe,badge:ve,title:be,disabled:ye}=ee,$e=se.value===ie.getActive();return createVNode("div",{role:"tab",class:bem$j({select:$e,disabled:ye}),tabindex:ye?void 0:0,"aria-selected":$e,onClick:de},[createVNode(Badge,mergeProps({dot:fe,class:bem$j("text"),content:ve},ee.badgeProps),{default:()=>[oe.title?oe.title():be]})])}}});const SidebarItem=withInstall(stdin_default$q),[name$j,bem$i,t$2]=createNamespace("signature"),signatureProps={tips:String,type:makeStringProp("png"),penColor:makeStringProp("#000"),lineWidth:makeNumberProp(3),clearButtonText:String,backgroundColor:makeStringProp(""),confirmButtonText:String},hasCanvasSupport=()=>{var ee;const ne=document.createElement("canvas");return!!((ee=ne.getContext)!=null&&ee.call(ne,"2d"))};var stdin_default$p=defineComponent({name:name$j,props:signatureProps,emits:["submit","clear","start","end","signing"],setup(ee,{emit:ne}){const oe=ref(),ae=ref(),ie=computed(()=>oe.value?oe.value.getContext("2d"):null),se=inBrowser$1?hasCanvasSupport():!0;let de=0,fe=0,ve;const be=()=>{if(!ie.value)return!1;ie.value.beginPath(),ie.value.lineWidth=ee.lineWidth,ie.value.strokeStyle=ee.penColor,ve=useRect(oe),ne("start")},ye=Ae=>{if(!ie.value)return!1;preventDefault(Ae);const Ne=Ae.touches[0],ke=Ne.clientX-((ve==null?void 0:ve.left)||0),Re=Ne.clientY-((ve==null?void 0:ve.top)||0);ie.value.lineCap="round",ie.value.lineJoin="round",ie.value.lineTo(ke,Re),ie.value.stroke(),ne("signing",Ae)},$e=Ae=>{preventDefault(Ae),ne("end")},_e=Ae=>{const Ne=document.createElement("canvas");if(Ne.width=Ae.width,Ne.height=Ae.height,ee.backgroundColor){const ke=Ne.getContext("2d");Ee(ke)}return Ae.toDataURL()===Ne.toDataURL()},Ee=Ae=>{Ae&&ee.backgroundColor&&(Ae.fillStyle=ee.backgroundColor,Ae.fillRect(0,0,de,fe))},we=()=>{var Ae,Ne;const ke=oe.value;if(!ke)return;const Le=_e(ke)?"":((Ne=(Ae={jpg:()=>ke.toDataURL("image/jpeg",.8),jpeg:()=>ke.toDataURL("image/jpeg",.8)})[ee.type])==null?void 0:Ne.call(Ae))||ke.toDataURL(`image/${ee.type}`);ne("submit",{image:Le,canvas:ke})},Pe=()=>{ie.value&&(ie.value.clearRect(0,0,de,fe),ie.value.closePath(),Ee(ie.value)),ne("clear")},Ce=()=>{var Ae,Ne,ke;if(se&&oe.value){const Re=oe.value,Le=inBrowser$1?window.devicePixelRatio:1;de=Re.width=(((Ae=ae.value)==null?void 0:Ae.offsetWidth)||0)*Le,fe=Re.height=(((Ne=ae.value)==null?void 0:Ne.offsetHeight)||0)*Le,(ke=ie.value)==null||ke.scale(Le,Le),Ee(ie.value)}},Oe=()=>{if(ie.value){const Ae=ie.value.getImageData(0,0,de,fe);Ce(),ie.value.putImageData(Ae,0,0)}};return watch(windowWidth,Oe),onMounted(Ce),useExpose({resize:Oe,clear:Pe,submit:we}),()=>createVNode("div",{class:bem$i()},[createVNode("div",{class:bem$i("content"),ref:ae},[se?createVNode("canvas",{ref:oe,onTouchstartPassive:be,onTouchmove:ye,onTouchend:$e},null):createVNode("p",null,[ee.tips])]),createVNode("div",{class:bem$i("footer")},[createVNode(Button,{size:"small",onClick:Pe},{default:()=>[ee.clearButtonText||t$2("clear")]}),createVNode(Button,{type:"primary",size:"small",onClick:we},{default:()=>[ee.confirmButtonText||t$2("confirm")]})])])}});const Signature=withInstall(stdin_default$p),[name$i,bem$h]=createNamespace("skeleton-title"),skeletonTitleProps={round:Boolean,titleWidth:numericProp};var stdin_default$o=defineComponent({name:name$i,props:skeletonTitleProps,setup(ee){return()=>createVNode("h3",{class:bem$h([{round:ee.round}]),style:{width:addUnit(ee.titleWidth)}},null)}});const SkeletonTitle=withInstall(stdin_default$o);var stdin_default$n=SkeletonTitle;const[name$h,bem$g]=createNamespace("skeleton-avatar"),skeletonAvatarProps={avatarSize:numericProp,avatarShape:makeStringProp("round")};var stdin_default$m=defineComponent({name:name$h,props:skeletonAvatarProps,setup(ee){return()=>createVNode("div",{class:bem$g([ee.avatarShape]),style:getSizeStyle(ee.avatarSize)},null)}});const SkeletonAvatar=withInstall(stdin_default$m);var stdin_default$l=SkeletonAvatar;const DEFAULT_ROW_WIDTH="100%",skeletonParagraphProps={round:Boolean,rowWidth:{type:numericProp,default:DEFAULT_ROW_WIDTH}},[name$g,bem$f]=createNamespace("skeleton-paragraph");var stdin_default$k=defineComponent({name:name$g,props:skeletonParagraphProps,setup(ee){return()=>createVNode("div",{class:bem$f([{round:ee.round}]),style:{width:ee.rowWidth}},null)}});const SkeletonParagraph=withInstall(stdin_default$k);var stdin_default$j=SkeletonParagraph;const[name$f,bem$e]=createNamespace("skeleton"),DEFAULT_LAST_ROW_WIDTH="60%",skeletonProps={row:makeNumericProp(0),round:Boolean,title:Boolean,titleWidth:numericProp,avatar:Boolean,avatarSize:numericProp,avatarShape:makeStringProp("round"),loading:truthProp,animate:truthProp,rowWidth:{type:[Number,String,Array],default:DEFAULT_ROW_WIDTH}};var stdin_default$i=defineComponent({name:name$f,inheritAttrs:!1,props:skeletonProps,setup(ee,{slots:ne,attrs:oe}){const ae=()=>{if(ee.avatar)return createVNode(stdin_default$l,{avatarShape:ee.avatarShape,avatarSize:ee.avatarSize},null)},ie=()=>{if(ee.title)return createVNode(stdin_default$n,{round:ee.round,titleWidth:ee.titleWidth},null)},se=ve=>{const{rowWidth:be}=ee;return be===DEFAULT_ROW_WIDTH&&ve===+ee.row-1?DEFAULT_LAST_ROW_WIDTH:Array.isArray(be)?be[ve]:be},de=()=>Array(+ee.row).fill("").map((ve,be)=>createVNode(stdin_default$j,{key:be,round:ee.round,rowWidth:addUnit(se(be))},null)),fe=()=>ne.template?ne.template():createVNode(Fragment,null,[ae(),createVNode("div",{class:bem$e("content")},[ie(),de()])]);return()=>{var ve;return ee.loading?createVNode("div",mergeProps({class:bem$e({animate:ee.animate,round:ee.round})},oe),[fe()]):(ve=ne.default)==null?void 0:ve.call(ne)}}});const Skeleton=withInstall(stdin_default$i),[name$e,bem$d]=createNamespace("skeleton-image"),skeletonImageProps={imageSize:numericProp,imageShape:makeStringProp("square")};var stdin_default$h=defineComponent({name:name$e,props:skeletonImageProps,setup(ee){return()=>createVNode("div",{class:bem$d([ee.imageShape]),style:getSizeStyle(ee.imageSize)},[createVNode(Icon,{name:"photo",class:bem$d("icon")},null)])}});const SkeletonImage=withInstall(stdin_default$h),[name$d,bem$c]=createNamespace("slider"),sliderProps={min:makeNumericProp(0),max:makeNumericProp(100),step:makeNumericProp(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:numericProp,buttonSize:numericProp,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var stdin_default$g=defineComponent({name:name$d,props:sliderProps,emits:["change","dragEnd","dragStart","update:modelValue"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se;const de=ref(),fe=[ref(),ref()],ve=ref(),be=useTouch(),ye=computed(()=>Number(ee.max)-Number(ee.min)),$e=computed(()=>{const Be=ee.vertical?"width":"height";return{background:ee.inactiveColor,[Be]:addUnit(ee.barHeight)}}),_e=Be=>ee.range&&Array.isArray(Be),Ee=()=>{const{modelValue:Be,min:He}=ee;return _e(Be)?`${(Be[1]-Be[0])*100/ye.value}%`:`${(Be-Number(He))*100/ye.value}%`},we=()=>{const{modelValue:Be,min:He}=ee;return _e(Be)?`${(Be[0]-Number(He))*100/ye.value}%`:"0%"},Pe=computed(()=>{const He={[ee.vertical?"height":"width"]:Ee(),background:ee.activeColor};ve.value&&(He.transition="none");const ot=()=>ee.vertical?ee.reverse?"bottom":"top":ee.reverse?"right":"left";return He[ot()]=we(),He}),Ce=Be=>{const He=+ee.min,ot=+ee.max,Nt=+ee.step;Be=clamp(Be,He,ot);const st=Math.round((Be-He)/Nt)*Nt;return addNumber(He,st)},Oe=()=>{const Be=ee.modelValue;_e(Be)?se=Be.map(Ce):se=Ce(Be)},Ae=Be=>{var He,ot;const Nt=(He=Be[0])!=null?He:Number(ee.min),st=(ot=Be[1])!=null?ot:Number(ee.max);return Nt>st?[st,Nt]:[Nt,st]},Ne=(Be,He)=>{_e(Be)?Be=Ae(Be).map(Ce):Be=Ce(Be),isSameValue(Be,ee.modelValue)||ne("update:modelValue",Be),He&&!isSameValue(Be,se)&&ne("change",Be)},ke=Be=>{if(Be.stopPropagation(),ee.disabled||ee.readonly)return;Oe();const{min:He,reverse:ot,vertical:Nt,modelValue:st}=ee,Ue=useRect(de),Ze=()=>Nt?ot?Ue.bottom-Be.clientY:Be.clientY-Ue.top:ot?Ue.right-Be.clientX:Be.clientX-Ue.left,Tt=Nt?Ue.height:Ue.width,Vt=Number(He)+Ze()/Tt*ye.value;if(_e(st)){const[Ut,We]=st,Pt=(Ut+We)/2;Vt<=Pt?Ne([Vt,We],!0):Ne([Ut,Vt],!0)}else Ne(Vt,!0)},Re=Be=>{ee.disabled||ee.readonly||(be.start(Be),ie=ee.modelValue,Oe(),ve.value="start")},Le=Be=>{if(ee.disabled||ee.readonly)return;ve.value==="start"&&ne("dragStart",Be),preventDefault(Be,!0),be.move(Be),ve.value="dragging";const He=useRect(de),ot=ee.vertical?be.deltaY.value:be.deltaX.value,Nt=ee.vertical?He.height:He.width;let st=ot/Nt*ye.value;if(ee.reverse&&(st=-st),_e(se)){const Ue=ee.reverse?1-ae:ae;ie[Ue]=se[Ue]+st}else ie=se+st;Ne(ie)},Me=Be=>{ee.disabled||ee.readonly||(ve.value==="dragging"&&(Ne(ie,!0),ne("dragEnd",Be)),ve.value="")},Ie=Be=>typeof Be=="number"?bem$c("button-wrapper",["left","right"][Be]):bem$c("button-wrapper",ee.reverse?"left":"right"),Fe=(Be,He)=>{const ot=ve.value==="dragging";if(typeof He=="number"){const Nt=oe[He===0?"left-button":"right-button"];let st;if(ot&&Array.isArray(ie)&&(st=ie[0]>ie[1]?ae^1:ae),Nt)return Nt({value:Be,dragging:ot,dragIndex:st})}return oe.button?oe.button({value:Be,dragging:ot}):createVNode("div",{class:bem$c("button"),style:getSizeStyle(ee.buttonSize)},null)},je=Be=>{const He=typeof Be=="number"?ee.modelValue[Be]:ee.modelValue;return createVNode("div",{ref:fe[Be??0],role:"slider",class:Ie(Be),tabindex:ee.disabled?void 0:0,"aria-valuemin":ee.min,"aria-valuenow":He,"aria-valuemax":ee.max,"aria-disabled":ee.disabled||void 0,"aria-readonly":ee.readonly||void 0,"aria-orientation":ee.vertical?"vertical":"horizontal",onTouchstartPassive:ot=>{typeof Be=="number"&&(ae=Be),Re(ot)},onTouchend:Me,onTouchcancel:Me,onClick:stopPropagation},[Fe(He,Be)])};return Ne(ee.modelValue),useCustomFieldValue(()=>ee.modelValue),fe.forEach(Be=>{useEventListener("touchmove",Le,{target:Be})}),()=>createVNode("div",{ref:de,style:$e.value,class:bem$c({vertical:ee.vertical,disabled:ee.disabled}),onClick:ke},[createVNode("div",{class:bem$c("bar"),style:Pe.value},[ee.range?[je(0),je(1)]:je()])])}});const Slider=withInstall(stdin_default$g),[name$c,bem$b]=createNamespace("space"),spaceProps={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function filterEmpty(ee=[]){const ne=[];return ee.forEach(oe=>{Array.isArray(oe)?ne.push(...oe):oe.type===Fragment?ne.push(...filterEmpty(oe.children)):ne.push(oe)}),ne.filter(oe=>{var ae;return!(oe&&(oe.type===Comment$1||oe.type===Fragment&&((ae=oe.children)==null?void 0:ae.length)===0||oe.type===Text&&oe.children.trim()===""))})}var stdin_default$f=defineComponent({name:name$c,props:spaceProps,setup(ee,{slots:ne}){const oe=computed(()=>{var se;return(se=ee.align)!=null?se:ee.direction==="horizontal"?"center":""}),ae=se=>typeof se=="number"?se+"px":se,ie=se=>{const de={},fe=`${ae(Array.isArray(ee.size)?ee.size[0]:ee.size)}`,ve=`${ae(Array.isArray(ee.size)?ee.size[1]:ee.size)}`;return se?ee.wrap?{marginBottom:ve}:{}:(ee.direction==="horizontal"&&(de.marginRight=fe),(ee.direction==="vertical"||ee.wrap)&&(de.marginBottom=ve),de)};return()=>{var se;const de=filterEmpty((se=ne.default)==null?void 0:se.call(ne));return createVNode("div",{class:[bem$b({[ee.direction]:ee.direction,[`align-${oe.value}`]:oe.value,wrap:ee.wrap,fill:ee.fill})]},[de.map((fe,ve)=>createVNode("div",{key:`item-${ve}`,class:`${name$c}-item`,style:ie(ve===de.length-1)},[fe]))])}}});const Space=withInstall(stdin_default$f),[name$b,bem$a]=createNamespace("steps"),stepsProps={active:makeNumericProp(0),direction:makeStringProp("horizontal"),activeIcon:makeStringProp("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},STEPS_KEY=Symbol(name$b);var stdin_default$e=defineComponent({name:name$b,props:stepsProps,emits:["clickStep"],setup(ee,{emit:ne,slots:oe}){const{linkChildren:ae}=useChildren(STEPS_KEY);return ae({props:ee,onClickStep:se=>ne("clickStep",se)}),()=>{var se;return createVNode("div",{class:bem$a([ee.direction])},[createVNode("div",{class:bem$a("items")},[(se=oe.default)==null?void 0:se.call(oe)])])}}});const[name$a,bem$9]=createNamespace("step");var stdin_default$d=defineComponent({name:name$a,setup(ee,{slots:ne}){const{parent:oe,index:ae}=useParent(STEPS_KEY);if(!oe)return;const ie=oe.props,se=()=>{const $e=+ie.active;return ae.value<$e?"finish":ae.value===$e?"process":"waiting"},de=()=>se()==="process",fe=computed(()=>({background:se()==="finish"?ie.activeColor:ie.inactiveColor})),ve=computed(()=>{if(de())return{color:ie.activeColor};if(se()==="waiting")return{color:ie.inactiveColor}}),be=()=>oe.onClickStep(ae.value),ye=()=>{const{iconPrefix:$e,finishIcon:_e,activeIcon:Ee,activeColor:we,inactiveIcon:Pe}=ie;return de()?ne["active-icon"]?ne["active-icon"]():createVNode(Icon,{class:bem$9("icon","active"),name:Ee,color:we,classPrefix:$e},null):se()==="finish"&&(_e||ne["finish-icon"])?ne["finish-icon"]?ne["finish-icon"]():createVNode(Icon,{class:bem$9("icon","finish"),name:_e,color:we,classPrefix:$e},null):ne["inactive-icon"]?ne["inactive-icon"]():Pe?createVNode(Icon,{class:bem$9("icon"),name:Pe,classPrefix:$e},null):createVNode("i",{class:bem$9("circle"),style:fe.value},null)};return()=>{var $e;const _e=se();return createVNode("div",{class:[BORDER,bem$9([ie.direction,{[_e]:_e}])]},[createVNode("div",{class:bem$9("title",{active:de()}),style:ve.value,onClick:be},[($e=ne.default)==null?void 0:$e.call(ne)]),createVNode("div",{class:bem$9("circle-container"),onClick:be},[ye()]),createVNode("div",{class:bem$9("line"),style:fe.value},null)])}}});const Step=withInstall(stdin_default$d),[name$9,bem$8]=createNamespace("stepper"),LONG_PRESS_INTERVAL=200,isEqual=(ee,ne)=>String(ee)===String(ne),stepperProps={min:makeNumericProp(1),max:makeNumericProp(1/0),name:makeNumericProp(""),step:makeNumericProp(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:truthProp,showMinus:truthProp,showInput:truthProp,longPress:truthProp,autoFixed:truthProp,allowEmpty:Boolean,modelValue:numericProp,inputWidth:numericProp,buttonSize:numericProp,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:makeNumericProp(1),decimalLength:numericProp};var stdin_default$c=defineComponent({name:name$9,props:stepperProps,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(ee,{emit:ne}){const oe=(Ie,Fe=!0)=>{const{min:je,max:Be,allowEmpty:He,decimalLength:ot}=ee;return He&&Ie===""||(Ie=formatNumber(String(Ie),!ee.integer),Ie=Ie===""?0:+Ie,Ie=Number.isNaN(Ie)?+je:Ie,Ie=Fe?Math.max(Math.min(+Be,Ie),+je):Ie,isDef(ot)&&(Ie=Ie.toFixed(+ot))),Ie},ae=()=>{var Ie;const Fe=(Ie=ee.modelValue)!=null?Ie:ee.defaultValue,je=oe(Fe);return isEqual(je,ee.modelValue)||ne("update:modelValue",je),je};let ie;const se=ref(),de=ref(ae()),fe=computed(()=>ee.disabled||ee.disableMinus||+de.value<=+ee.min),ve=computed(()=>ee.disabled||ee.disablePlus||+de.value>=+ee.max),be=computed(()=>({width:addUnit(ee.inputWidth),height:addUnit(ee.buttonSize)})),ye=computed(()=>getSizeStyle(ee.buttonSize)),$e=()=>{const Ie=oe(de.value);isEqual(Ie,de.value)||(de.value=Ie)},_e=Ie=>{ee.beforeChange?callInterceptor(ee.beforeChange,{args:[Ie],done(){de.value=Ie}}):de.value=Ie},Ee=()=>{if(ie==="plus"&&ve.value||ie==="minus"&&fe.value){ne("overlimit",ie);return}const Ie=ie==="minus"?-ee.step:+ee.step,Fe=oe(addNumber(+de.value,Ie));_e(Fe),ne(ie)},we=Ie=>{const Fe=Ie.target,{value:je}=Fe,{decimalLength:Be}=ee;let He=formatNumber(String(je),!ee.integer);if(isDef(Be)&&He.includes(".")){const Nt=He.split(".");He=`${Nt[0]}.${Nt[1].slice(0,+Be)}`}ee.beforeChange?Fe.value=String(de.value):isEqual(je,He)||(Fe.value=He);const ot=He===String(+He);_e(ot?+He:He)},Pe=Ie=>{var Fe;ee.disableInput?(Fe=se.value)==null||Fe.blur():ne("focus",Ie)},Ce=Ie=>{const Fe=Ie.target,je=oe(Fe.value,ee.autoFixed);Fe.value=String(je),de.value=je,nextTick(()=>{ne("blur",Ie),resetScroll()})};let Oe,Ae;const Ne=()=>{Ae=setTimeout(()=>{Ee(),Ne()},LONG_PRESS_INTERVAL)},ke=()=>{ee.longPress&&(Oe=!1,clearTimeout(Ae),Ae=setTimeout(()=>{Oe=!0,Ee(),Ne()},LONG_PRESS_START_TIME))},Re=Ie=>{ee.longPress&&(clearTimeout(Ae),Oe&&preventDefault(Ie))},Le=Ie=>{ee.disableInput&&preventDefault(Ie)},Me=Ie=>({onClick:Fe=>{preventDefault(Fe),ie=Ie,Ee()},onTouchstartPassive:()=>{ie=Ie,ke()},onTouchend:Re,onTouchcancel:Re});return watch(()=>[ee.max,ee.min,ee.integer,ee.decimalLength],$e),watch(()=>ee.modelValue,Ie=>{isEqual(Ie,de.value)||(de.value=oe(Ie))}),watch(de,Ie=>{ne("update:modelValue",Ie),ne("change",Ie,{name:ee.name})}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode("div",{role:"group",class:bem$8([ee.theme])},[withDirectives(createVNode("button",mergeProps({type:"button",style:ye.value,class:[bem$8("minus",{disabled:fe.value}),{[HAPTICS_FEEDBACK]:!fe.value}],"aria-disabled":fe.value||void 0},Me("minus")),null),[[vShow,ee.showMinus]]),withDirectives(createVNode("input",{ref:se,type:ee.integer?"tel":"text",role:"spinbutton",class:bem$8("input"),value:de.value,style:be.value,disabled:ee.disabled,readonly:ee.disableInput,inputmode:ee.integer?"numeric":"decimal",placeholder:ee.placeholder,autocomplete:"off","aria-valuemax":ee.max,"aria-valuemin":ee.min,"aria-valuenow":de.value,onBlur:Ce,onInput:we,onFocus:Pe,onMousedown:Le},null),[[vShow,ee.showInput]]),withDirectives(createVNode("button",mergeProps({type:"button",style:ye.value,class:[bem$8("plus",{disabled:ve.value}),{[HAPTICS_FEEDBACK]:!ve.value}],"aria-disabled":ve.value||void 0},Me("plus")),null),[[vShow,ee.showPlus]])])}});const Stepper=withInstall(stdin_default$c),Steps=withInstall(stdin_default$e),[name$8,bem$7,t$1]=createNamespace("submit-bar"),submitBarProps={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:makeStringProp("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:makeStringProp("danger"),buttonColor:String,suffixLabel:String,placeholder:Boolean,decimalLength:makeNumericProp(2),safeAreaInsetBottom:truthProp};var stdin_default$b=defineComponent({name:name$8,props:submitBarProps,emits:["submit"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=usePlaceholder(ae,bem$7),se=()=>{const{price:ye,label:$e,currency:_e,textAlign:Ee,suffixLabel:we,decimalLength:Pe}=ee;if(typeof ye=="number"){const Ce=(ye/100).toFixed(+Pe).split("."),Oe=Pe?`.${Ce[1]}`:"";return createVNode("div",{class:bem$7("text"),style:{textAlign:Ee}},[createVNode("span",null,[$e||t$1("label")]),createVNode("span",{class:bem$7("price")},[_e,createVNode("span",{class:bem$7("price-integer")},[Ce[0]]),Oe]),we&&createVNode("span",{class:bem$7("suffix-label")},[we])])}},de=()=>{var ye;const{tip:$e,tipIcon:_e}=ee;if(oe.tip||$e)return createVNode("div",{class:bem$7("tip")},[_e&&createVNode(Icon,{class:bem$7("tip-icon"),name:_e},null),$e&&createVNode("span",{class:bem$7("tip-text")},[$e]),(ye=oe.tip)==null?void 0:ye.call(oe)])},fe=()=>ne("submit"),ve=()=>oe.button?oe.button():createVNode(Button,{round:!0,type:ee.buttonType,text:ee.buttonText,class:bem$7("button",ee.buttonType),color:ee.buttonColor,loading:ee.loading,disabled:ee.disabled,onClick:fe},null),be=()=>{var ye,$e;return createVNode("div",{ref:ae,class:[bem$7(),{"van-safe-area-bottom":ee.safeAreaInsetBottom}]},[(ye=oe.top)==null?void 0:ye.call(oe),de(),createVNode("div",{class:bem$7("bar")},[($e=oe.default)==null?void 0:$e.call(oe),se(),ve()])])};return()=>ee.placeholder?ie(be):be()}});const SubmitBar=withInstall(stdin_default$b),[name$7,bem$6]=createNamespace("swipe-cell"),swipeCellProps={name:makeNumericProp(""),disabled:Boolean,leftWidth:numericProp,rightWidth:numericProp,beforeClose:Function,stopPropagation:Boolean};var stdin_default$a=defineComponent({name:name$7,props:swipeCellProps,emits:["open","close","click"],setup(ee,{emit:ne,slots:oe}){let ae,ie,se,de;const fe=ref(),ve=ref(),be=ref(),ye=reactive({offset:0,dragging:!1}),$e=useTouch(),_e=Ie=>Ie.value?useRect(Ie).width:0,Ee=computed(()=>isDef(ee.leftWidth)?+ee.leftWidth:_e(ve)),we=computed(()=>isDef(ee.rightWidth)?+ee.rightWidth:_e(be)),Pe=Ie=>{ye.offset=Ie==="left"?Ee.value:-we.value,ae||(ae=!0,ne("open",{name:ee.name,position:Ie}))},Ce=Ie=>{ye.offset=0,ae&&(ae=!1,ne("close",{name:ee.name,position:Ie}))},Oe=Ie=>{const Fe=Math.abs(ye.offset),je=.15,Be=ae?1-je:je,He=Ie==="left"?Ee.value:we.value;He&&Fe>He*Be?Pe(Ie):Ce(Ie)},Ae=Ie=>{ee.disabled||(se=ye.offset,$e.start(Ie))},Ne=Ie=>{if(ee.disabled)return;const{deltaX:Fe}=$e;$e.move(Ie),$e.isHorizontal()&&(ie=!0,ye.dragging=!0,(!ae||Fe.value*se<0)&&preventDefault(Ie,ee.stopPropagation),ye.offset=clamp(Fe.value+se,-we.value,Ee.value))},ke=()=>{ye.dragging&&(ye.dragging=!1,Oe(ye.offset>0?"left":"right"),setTimeout(()=>{ie=!1},0))},Re=(Ie="outside",Fe)=>{de||(ne("click",Ie),ae&&!ie&&(de=!0,callInterceptor(ee.beforeClose,{args:[{event:Fe,name:ee.name,position:Ie}],done:()=>{de=!1,Ce(Ie)},canceled:()=>de=!1,error:()=>de=!1})))},Le=(Ie,Fe)=>je=>{Fe&&je.stopPropagation(),!ie&&Re(Ie,je)},Me=(Ie,Fe)=>{const je=oe[Ie];if(je)return createVNode("div",{ref:Fe,class:bem$6(Ie),onClick:Le(Ie,!0)},[je()])};return useExpose({open:Pe,close:Ce}),useClickAway(fe,Ie=>Re("outside",Ie),{eventName:"touchstart"}),useEventListener("touchmove",Ne,{target:fe}),()=>{var Ie;const Fe={transform:`translate3d(${ye.offset}px, 0, 0)`,transitionDuration:ye.dragging?"0s":".6s"};return createVNode("div",{ref:fe,class:bem$6(),onClick:Le("cell",ie),onTouchstartPassive:Ae,onTouchend:ke,onTouchcancel:ke},[createVNode("div",{class:bem$6("wrapper"),style:Fe},[Me("left",ve),(Ie=oe.default)==null?void 0:Ie.call(oe),Me("right",be)])])}}});const SwipeCell=withInstall(stdin_default$a),[name$6,bem$5]=createNamespace("tabbar"),tabbarProps={route:Boolean,fixed:truthProp,border:truthProp,zIndex:numericProp,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:makeNumericProp(0),safeAreaInsetBottom:{type:Boolean,default:null}},TABBAR_KEY=Symbol(name$6);var stdin_default$9=defineComponent({name:name$6,props:tabbarProps,emits:["change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),{linkChildren:ie}=useChildren(TABBAR_KEY),se=usePlaceholder(ae,bem$5),de=()=>{var be;return(be=ee.safeAreaInsetBottom)!=null?be:ee.fixed},fe=()=>{var be;const{fixed:ye,zIndex:$e,border:_e}=ee;return createVNode("div",{ref:ae,role:"tablist",style:getZIndexStyle($e),class:[bem$5({fixed:ye}),{[BORDER_TOP_BOTTOM]:_e,"van-safe-area-bottom":de()}]},[(be=oe.default)==null?void 0:be.call(oe)])};return ie({props:ee,setActive:(be,ye)=>{callInterceptor(ee.beforeChange,{args:[be],done(){ne("update:modelValue",be),ne("change",be),ye()}})}}),()=>ee.fixed&&ee.placeholder?se(fe):fe()}});const Tabbar=withInstall(stdin_default$9),[name$5,bem$4]=createNamespace("tabbar-item"),tabbarItemProps=extend$1({},routeProps,{dot:Boolean,icon:String,name:numericProp,badge:numericProp,badgeProps:Object,iconPrefix:String});var stdin_default$8=defineComponent({name:name$5,props:tabbarItemProps,emits:["click"],setup(ee,{emit:ne,slots:oe}){const ae=useRoute(),ie=getCurrentInstance().proxy,{parent:se,index:de}=useParent(TABBAR_KEY);if(!se)return;const fe=computed(()=>{var ye;const{route:$e,modelValue:_e}=se.props;if($e&&"$route"in ie){const{$route:Ee}=ie,{to:we}=ee,Pe=isObject$1(we)?we:{path:we};return!!Ee.matched.find(Ce=>{const Oe="path"in Pe&&Pe.path===Ce.path,Ae="name"in Pe&&Pe.name===Ce.name;return Oe||Ae})}return((ye=ee.name)!=null?ye:de.value)===_e}),ve=ye=>{var $e;fe.value||se.setActive(($e=ee.name)!=null?$e:de.value,ae),ne("click",ye)},be=()=>{if(oe.icon)return oe.icon({active:fe.value});if(ee.icon)return createVNode(Icon,{name:ee.icon,classPrefix:ee.iconPrefix},null)};return()=>{var ye;const{dot:$e,badge:_e}=ee,{activeColor:Ee,inactiveColor:we}=se.props,Pe=fe.value?Ee:we;return createVNode("div",{role:"tab",class:bem$4({active:fe.value}),style:{color:Pe},tabindex:0,"aria-selected":fe.value,onClick:ve},[createVNode(Badge,mergeProps({dot:$e,class:bem$4("icon"),content:_e},ee.badgeProps),{default:be}),createVNode("div",{class:bem$4("text")},[(ye=oe.default)==null?void 0:ye.call(oe,{active:fe.value})])])}}});const TabbarItem=withInstall(stdin_default$8),[name$4,bem$3]=createNamespace("text-ellipsis"),textEllipsisProps={rows:makeNumericProp(1),dots:makeStringProp("..."),content:makeStringProp(""),expandText:makeStringProp(""),collapseText:makeStringProp(""),position:makeStringProp("end")};var stdin_default$7=defineComponent({name:name$4,props:textEllipsisProps,emits:["clickAction"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.content),ie=ref(!1),se=ref(!1),de=ref(),fe=ref();let ve=!1;const be=computed(()=>ie.value?ee.collapseText:ee.expandText),ye=Oe=>{if(!Oe)return 0;const Ae=Oe.match(/^\d*(\.\d*)?/);return Ae?Number(Ae[0]):0},$e=()=>{if(!de.value||!de.value.isConnected)return;const Oe=window.getComputedStyle(de.value),Ae=document.createElement("div");return Array.prototype.slice.apply(Oe).forEach(ke=>{Ae.style.setProperty(ke,Oe.getPropertyValue(ke))}),Ae.style.position="fixed",Ae.style.zIndex="-9999",Ae.style.top="-9999px",Ae.style.height="auto",Ae.style.minHeight="auto",Ae.style.maxHeight="auto",Ae.innerText=ee.content,document.body.appendChild(Ae),Ae},_e=(Oe,Ae)=>{var Ne,ke;const{content:Re,position:Le,dots:Me}=ee,Ie=Re.length,Fe=0+Ie>>1,je=oe.action?(ke=(Ne=fe.value)==null?void 0:Ne.outerHTML)!=null?ke:"":ee.expandText,Be=()=>{const ot=(Nt,st)=>{if(st-Nt<=1)return Le==="end"?Re.slice(0,Nt)+Me:Me+Re.slice(st,Ie);const Ue=Math.round((Nt+st)/2);return Le==="end"?Oe.innerText=Re.slice(0,Ue)+Me:Oe.innerText=Me+Re.slice(Ue,Ie),Oe.innerHTML+=je,Oe.offsetHeight>Ae?Le==="end"?ot(Nt,Ue):ot(Ue,st):Le==="end"?ot(Ue,st):ot(Nt,Ue)};return ot(0,Ie)},He=(ot,Nt)=>{if(ot[1]-ot[0]<=1&&Nt[1]-Nt[0]<=1)return Re.slice(0,ot[0])+Me+Re.slice(Nt[1],Ie);const st=Math.floor((ot[0]+ot[1])/2),Ue=Math.ceil((Nt[0]+Nt[1])/2);return Oe.innerText=ee.content.slice(0,st)+ee.dots+ee.content.slice(Ue,Ie),Oe.innerHTML+=je,Oe.offsetHeight>=Ae?He([ot[0],st],[Ue,Nt[1]]):He([st,ot[1]],[Nt[0],Ue])};return ee.position==="middle"?He([0,Fe],[Fe,Ie]):Be()},Ee=()=>{const Oe=$e();if(!Oe){ve=!0;return}const{paddingBottom:Ae,paddingTop:Ne,lineHeight:ke}=Oe.style,Re=Math.ceil((Number(ee.rows)+.5)*ye(ke)+ye(Ne)+ye(Ae));Re{ie.value=Oe},Pe=Oe=>{we(),ne("clickAction",Oe)},Ce=()=>{const Oe=oe.action?oe.action({expanded:ie.value}):be.value;return createVNode("span",{ref:fe,class:bem$3("action"),onClick:Pe},[Oe])};return onMounted(()=>{Ee(),oe.action&&nextTick(Ee)}),onActivated(()=>{ve&&(ve=!1,Ee())}),watch([windowWidth,()=>[ee.content,ee.rows,ee.position]],Ee),useExpose({toggle:we}),()=>createVNode("div",{ref:de,class:bem$3()},[ie.value?ee.content:ae.value,se.value?Ce():null])}});const TextEllipsis=withInstall(stdin_default$7),[name$3]=createNamespace("time-picker"),validateTime=ee=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(ee),fullColumns=["hour","minute","second"],timePickerProps=extend$1({},sharedProps,{minHour:makeNumericProp(0),maxHour:makeNumericProp(23),minMinute:makeNumericProp(0),maxMinute:makeNumericProp(59),minSecond:makeNumericProp(0),maxSecond:makeNumericProp(59),minTime:{type:String,validator:validateTime},maxTime:{type:String,validator:validateTime},columnsType:{type:Array,default:()=>["hour","minute"]},filter:Function});var stdin_default$6=defineComponent({name:name$3,props:timePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(ee.modelValue),ie=ref(),se=_e=>{const Ee=_e.split(":");return fullColumns.map((we,Pe)=>ee.columnsType.includes(we)?Ee[Pe]:"00")},de=()=>{var _e;return(_e=ie.value)==null?void 0:_e.confirm()},fe=()=>ae.value,ve=computed(()=>{let{minHour:_e,maxHour:Ee,minMinute:we,maxMinute:Pe,minSecond:Ce,maxSecond:Oe}=ee;if(ee.minTime||ee.maxTime){const Ae={hour:0,minute:0,second:0};ee.columnsType.forEach((Re,Le)=>{var Me;Ae[Re]=(Me=ae.value[Le])!=null?Me:0});const{hour:Ne,minute:ke}=Ae;if(ee.minTime){const[Re,Le,Me]=se(ee.minTime);_e=Re,we=+Ne<=+_e?Le:"00",Ce=+Ne<=+_e&&+ke<=+we?Me:"00"}if(ee.maxTime){const[Re,Le,Me]=se(ee.maxTime);Ee=Re,Pe=+Ne>=+Ee?Le:"59",Oe=+Ne>=+Ee&&+ke>=+Pe?Me:"59"}}return ee.columnsType.map(Ae=>{const{filter:Ne,formatter:ke}=ee;switch(Ae){case"hour":return genOptions(+_e,+Ee,Ae,ke,Ne,ae.value);case"minute":return genOptions(+we,+Pe,Ae,ke,Ne,ae.value);case"second":return genOptions(+Ce,+Oe,Ae,ke,Ne,ae.value);default:return[]}})});watch(ae,_e=>{isSameValue(_e,ee.modelValue)||ne("update:modelValue",_e)}),watch(()=>ee.modelValue,_e=>{_e=formatValueRange(_e,ve.value),isSameValue(_e,ae.value)||(ae.value=_e)},{immediate:!0});const be=(..._e)=>ne("change",..._e),ye=(..._e)=>ne("cancel",..._e),$e=(..._e)=>ne("confirm",..._e);return useExpose({confirm:de,getSelectedTime:fe}),()=>createVNode(Picker,mergeProps({ref:ie,modelValue:ae.value,"onUpdate:modelValue":_e=>ae.value=_e,columns:ve.value,onChange:be,onCancel:ye,onConfirm:$e},pick(ee,pickerInheritKeys)),oe)}});const TimePicker=withInstall(stdin_default$6),[name$2,bem$2]=createNamespace("tree-select"),treeSelectProps={max:makeNumericProp(1/0),items:makeArrayProp(),height:makeNumericProp(300),selectedIcon:makeStringProp("success"),mainActiveIndex:makeNumericProp(0),activeId:{type:[Number,String,Array],default:0}};var stdin_default$5=defineComponent({name:name$2,props:treeSelectProps,emits:["clickNav","clickItem","update:activeId","update:mainActiveIndex"],setup(ee,{emit:ne,slots:oe}){const ae=be=>Array.isArray(ee.activeId)?ee.activeId.includes(be):ee.activeId===be,ie=be=>{const ye=()=>{if(be.disabled)return;let $e;if(Array.isArray(ee.activeId)){$e=ee.activeId.slice();const _e=$e.indexOf(be.id);_e!==-1?$e.splice(_e,1):$e.length<+ee.max&&$e.push(be.id)}else $e=be.id;ne("update:activeId",$e),ne("clickItem",be)};return createVNode("div",{key:be.id,class:["van-ellipsis",bem$2("item",{active:ae(be.id),disabled:be.disabled})],onClick:ye},[be.text,ae(be.id)&&createVNode(Icon,{name:ee.selectedIcon,class:bem$2("selected")},null)])},se=be=>{ne("update:mainActiveIndex",be)},de=be=>ne("clickNav",be),fe=()=>{const be=ee.items.map(ye=>createVNode(SidebarItem,{dot:ye.dot,badge:ye.badge,class:[bem$2("nav-item"),ye.className],disabled:ye.disabled,onClick:de},{title:()=>oe["nav-text"]?oe["nav-text"](ye):ye.text}));return createVNode(Sidebar,{class:bem$2("nav"),modelValue:ee.mainActiveIndex,onChange:se},{default:()=>[be]})},ve=()=>{if(oe.content)return oe.content();const be=ee.items[+ee.mainActiveIndex]||{};if(be.children)return be.children.map(ie)};return()=>createVNode("div",{class:bem$2(),style:{height:addUnit(ee.height)}},[fe(),createVNode("div",{class:bem$2("content")},[ve()])])}});const TreeSelect=withInstall(stdin_default$5),[name$1,bem$1,t]=createNamespace("uploader");function readFileContent(ee,ne){return new Promise(oe=>{if(ne==="file"){oe();return}const ae=new FileReader;ae.onload=ie=>{oe(ie.target.result)},ne==="dataUrl"?ae.readAsDataURL(ee):ne==="text"&&ae.readAsText(ee)})}function isOversize(ee,ne){return toArray$1(ee).some(oe=>oe.file?isFunction$1(ne)?ne(oe.file):oe.file.size>+ne:!1)}function filterFiles(ee,ne){const oe=[],ae=[];return ee.forEach(ie=>{isOversize(ie,ne)?ae.push(ie):oe.push(ie)}),{valid:oe,invalid:ae}}const IMAGE_REGEXP=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i,isImageUrl=ee=>IMAGE_REGEXP.test(ee);function isImageFile(ee){return ee.isImage?!0:ee.file&&ee.file.type?ee.file.type.indexOf("image")===0:ee.url?isImageUrl(ee.url):typeof ee.content=="string"?ee.content.indexOf("data:image")===0:!1}var stdin_default$4=defineComponent({props:{name:numericProp,item:makeRequiredProp(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,reupload:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview","reupload"],setup(ee,{emit:ne,slots:oe}){const ae=()=>{const{status:ye,message:$e}=ee.item;if(ye==="uploading"||ye==="failed"){const _e=ye==="failed"?createVNode(Icon,{name:"close",class:bem$1("mask-icon")},null):createVNode(Loading,{class:bem$1("loading")},null),Ee=isDef($e)&&$e!=="";return createVNode("div",{class:bem$1("mask")},[_e,Ee&&createVNode("div",{class:bem$1("mask-message")},[$e])])}},ie=ye=>{const{name:$e,item:_e,index:Ee,beforeDelete:we}=ee;ye.stopPropagation(),callInterceptor(we,{args:[_e,{name:$e,index:Ee}],done:()=>ne("delete")})},se=()=>ne("preview"),de=()=>ne("reupload"),fe=()=>{if(ee.deletable&&ee.item.status!=="uploading"){const ye=oe["preview-delete"];return createVNode("div",{role:"button",class:bem$1("preview-delete",{shadow:!ye}),tabindex:0,"aria-label":t("delete"),onClick:ie},[ye?ye():createVNode(Icon,{name:"cross",class:bem$1("preview-delete-icon")},null)])}},ve=()=>{if(oe["preview-cover"]){const{index:ye,item:$e}=ee;return createVNode("div",{class:bem$1("preview-cover")},[oe["preview-cover"](extend$1({index:ye},$e))])}},be=()=>{const{item:ye,lazyLoad:$e,imageFit:_e,previewSize:Ee,reupload:we}=ee;return isImageFile(ye)?createVNode(Image$1,{fit:_e,src:ye.objectUrl||ye.content||ye.url,class:bem$1("preview-image"),width:Array.isArray(Ee)?Ee[0]:Ee,height:Array.isArray(Ee)?Ee[1]:Ee,lazyLoad:$e,onClick:we?de:se},{default:ve}):createVNode("div",{class:bem$1("file"),style:getSizeStyle(ee.previewSize)},[createVNode(Icon,{class:bem$1("file-icon"),name:"description"},null),createVNode("div",{class:[bem$1("file-name"),"van-ellipsis"]},[ye.file?ye.file.name:ye.url]),ve()])};return()=>createVNode("div",{class:bem$1("preview")},[be(),ae(),fe()])}});const uploaderProps={name:makeNumericProp(""),accept:makeStringProp("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:makeNumericProp(1/0),imageFit:makeStringProp("cover"),resultType:makeStringProp("dataUrl"),uploadIcon:makeStringProp("photograph"),uploadText:String,deletable:truthProp,reupload:Boolean,afterRead:Function,showUpload:truthProp,modelValue:makeArrayProp(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:truthProp,previewOptions:Object,previewFullImage:truthProp,maxSize:{type:[Number,String,Function],default:1/0}};var stdin_default$3=defineComponent({name:name$1,props:uploaderProps,emits:["delete","oversize","clickUpload","closePreview","clickPreview","clickReupload","update:modelValue"],setup(ee,{emit:ne,slots:oe}){const ae=ref(),ie=[],se=ref(-1),de=ref(!1),fe=(Ie=ee.modelValue.length)=>({name:ee.name,index:Ie}),ve=()=>{ae.value&&(ae.value.value="")},be=Ie=>{if(ve(),isOversize(Ie,ee.maxSize))if(Array.isArray(Ie)){const Fe=filterFiles(Ie,ee.maxSize);if(Ie=Fe.valid,ne("oversize",Fe.invalid,fe()),!Ie.length)return}else{ne("oversize",Ie,fe());return}if(Ie=reactive(Ie),se.value>-1){const Fe=[...ee.modelValue];Fe.splice(se.value,1,Ie),ne("update:modelValue",Fe),se.value=-1}else ne("update:modelValue",[...ee.modelValue,...toArray$1(Ie)]);ee.afterRead&&ee.afterRead(Ie,fe())},ye=Ie=>{const{maxCount:Fe,modelValue:je,resultType:Be}=ee;if(Array.isArray(Ie)){const He=+Fe-je.length;Ie.length>He&&(Ie=Ie.slice(0,He)),Promise.all(Ie.map(ot=>readFileContent(ot,Be))).then(ot=>{const Nt=Ie.map((st,Ue)=>{const Ze={file:st,status:"",message:"",objectUrl:URL.createObjectURL(st)};return ot[Ue]&&(Ze.content=ot[Ue]),Ze});be(Nt)})}else readFileContent(Ie,Be).then(He=>{const ot={file:Ie,status:"",message:"",objectUrl:URL.createObjectURL(Ie)};He&&(ot.content=He),be(ot)})},$e=Ie=>{const{files:Fe}=Ie.target;if(ee.disabled||!Fe||!Fe.length)return;const je=Fe.length===1?Fe[0]:[].slice.call(Fe);if(ee.beforeRead){const Be=ee.beforeRead(je,fe());if(!Be){ve();return}if(isPromise(Be)){Be.then(He=>{ye(He||je)}).catch(ve);return}}ye(je)};let _e;const Ee=()=>ne("closePreview"),we=Ie=>{if(ee.previewFullImage){const Fe=ee.modelValue.filter(isImageFile),je=Fe.map(Be=>(Be.objectUrl&&!Be.url&&Be.status!=="failed"&&(Be.url=Be.objectUrl,ie.push(Be.url)),Be.url)).filter(Boolean);_e=showImagePreview(extend$1({images:je,startPosition:Fe.indexOf(Ie),onClose:Ee},ee.previewOptions))}},Pe=()=>{_e&&_e.close()},Ce=(Ie,Fe)=>{const je=ee.modelValue.slice(0);je.splice(Fe,1),ne("update:modelValue",je),ne("delete",Ie,fe(Fe))},Oe=Ie=>{de.value=!0,se.value=Ie,nextTick(()=>Me())},Ae=()=>{de.value||(se.value=-1),de.value=!1},Ne=(Ie,Fe)=>{const je=["imageFit","deletable","reupload","previewSize","beforeDelete"],Be=extend$1(pick(ee,je),pick(Ie,je,!0));return createVNode(stdin_default$4,mergeProps({item:Ie,index:Fe,onClick:()=>ne(ee.reupload?"clickReupload":"clickPreview",Ie,fe(Fe)),onDelete:()=>Ce(Ie,Fe),onPreview:()=>we(Ie),onReupload:()=>Oe(Fe)},pick(ee,["name","lazyLoad"]),Be),pick(oe,["preview-cover","preview-delete"]))},ke=()=>{if(ee.previewImage)return ee.modelValue.map(Ne)},Re=Ie=>ne("clickUpload",Ie),Le=()=>{const Ie=ee.modelValue.length<+ee.maxCount,Fe=ee.readonly?null:createVNode("input",{ref:ae,type:"file",class:bem$1("input"),accept:ee.accept,capture:ee.capture,multiple:ee.multiple&&se.value===-1,disabled:ee.disabled,onChange:$e,onClick:Ae},null);return oe.default?withDirectives(createVNode("div",{class:bem$1("input-wrapper"),onClick:Re},[oe.default(),Fe]),[[vShow,Ie]]):withDirectives(createVNode("div",{class:bem$1("upload",{readonly:ee.readonly}),style:getSizeStyle(ee.previewSize),onClick:Re},[createVNode(Icon,{name:ee.uploadIcon,class:bem$1("upload-icon")},null),ee.uploadText&&createVNode("span",{class:bem$1("upload-text")},[ee.uploadText]),Fe]),[[vShow,ee.showUpload&&Ie]])},Me=()=>{ae.value&&!ee.disabled&&ae.value.click()};return onBeforeUnmount(()=>{ie.forEach(Ie=>URL.revokeObjectURL(Ie))}),useExpose({chooseFile:Me,reuploadFile:Oe,closeImagePreview:Pe}),useCustomFieldValue(()=>ee.modelValue),()=>createVNode("div",{class:bem$1()},[createVNode("div",{class:bem$1("wrapper",{disabled:ee.disabled})},[ke(),Le()])])}});const Uploader=withInstall(stdin_default$3),[name,bem]=createNamespace("watermark"),watermarkProps={gapX:makeNumberProp(0),gapY:makeNumberProp(0),image:String,width:makeNumberProp(100),height:makeNumberProp(100),rotate:makeNumericProp(-22),zIndex:numericProp,content:String,opacity:numericProp,fullPage:truthProp,textColor:makeStringProp("#dcdee0")};var stdin_default$2=defineComponent({name,props:watermarkProps,setup(ee,{slots:ne}){const oe=ref(),ae=ref(""),ie=ref(""),se=()=>{const ve={transformOrigin:"center",transform:`rotate(${ee.rotate}deg)`},be=()=>ee.image&&!ne.content?createVNode("image",{href:ie.value,"xlink:href":ie.value,x:"0",y:"0",width:ee.width,height:ee.height,style:ve},null):createVNode("foreignObject",{x:"0",y:"0",width:ee.width,height:ee.height},[createVNode("div",{xmlns:"http://www.w3.org/1999/xhtml",style:ve},[ne.content?ne.content():createVNode("span",{style:{color:ee.textColor}},[ee.content])])]),ye=ee.width+ee.gapX,$e=ee.height+ee.gapY;return createVNode("svg",{viewBox:`0 0 ${ye} ${$e}`,width:ye,height:$e,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{padding:`0 ${ee.gapX}px ${ee.gapY}px 0`,opacity:ee.opacity}},[be()])},de=ve=>{const be=document.createElement("canvas"),ye=new Image;ye.crossOrigin="anonymous",ye.referrerPolicy="no-referrer",ye.onload=()=>{be.width=ye.naturalWidth,be.height=ye.naturalHeight;const $e=be.getContext("2d");$e==null||$e.drawImage(ye,0,0),ie.value=be.toDataURL()},ye.src=ve},fe=ve=>{const be=new Blob([ve],{type:"image/svg+xml"});return URL.createObjectURL(be)};return watchEffect(()=>{ee.image&&de(ee.image)}),watch(()=>[ie.value,ee.content,ee.textColor,ee.height,ee.width,ee.rotate,ee.gapX,ee.gapY],()=>{nextTick(()=>{oe.value&&(ae.value&&URL.revokeObjectURL(ae.value),ae.value=fe(oe.value.innerHTML))})},{immediate:!0}),onUnmounted(()=>{ae.value&&URL.revokeObjectURL(ae.value)}),()=>{const ve=extend$1({backgroundImage:`url(${ae.value})`},getZIndexStyle(ee.zIndex));return createVNode("div",{class:bem({full:ee.fullPage}),style:ve},[createVNode("div",{class:bem("wrapper"),ref:oe},[se()])])}}});const Watermark=withInstall(stdin_default$2),version="4.9.4";function install$1(ee){[ActionBar,ActionBarButton,ActionBarIcon,ActionSheet,AddressEdit,AddressList,Area,BackTop,Badge,Barrage,Button,Calendar,Card,Cascader,Cell,CellGroup,Checkbox,CheckboxGroup,Circle,Col,Collapse,CollapseItem,ConfigProvider,ContactCard,ContactEdit,ContactList,CountDown,Coupon,CouponCell,CouponList,DatePicker,Dialog,Divider,DropdownItem,DropdownMenu,Empty,Field,FloatingBubble,FloatingPanel,Form,Grid,GridItem,Highlight,Icon,Image$1,ImagePreview,IndexAnchor,IndexBar,List,Loading,Locale,NavBar,NoticeBar,Notify,NumberKeyboard,Overlay,Pagination,PasswordInput,Picker,PickerGroup,Popover,Popup,Progress,PullRefresh,Radio,RadioGroup,Rate,RollingText,Row,Search,ShareSheet,Sidebar,SidebarItem,Signature,Skeleton,SkeletonAvatar,SkeletonImage,SkeletonParagraph,SkeletonTitle,Slider,Space,Step,Stepper,Steps,Sticky,SubmitBar,Swipe,SwipeCell,SwipeItem,Switch,Tab,Tabbar,TabbarItem,Tabs,Tag,TextEllipsis,TimePicker,Toast,TreeSelect,Uploader,Watermark].forEach(oe=>{oe.install?ee.use(oe):oe.name&&ee.component(oe.name,oe)})}var stdin_default$1={install:install$1,version};(function(){if(typeof window>"u")return;var ee,ne="ontouchstart"in window;document.createTouch||(document.createTouch=function(ye,$e,_e,Ee,we,Pe,Ce){return new oe($e,_e,{pageX:Ee,pageY:we,screenX:Pe,screenY:Ce,clientX:Ee-window.pageXOffset,clientY:we-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var ye=ae(),$e=0;$e`${ee}/${ne}`,rangePrompt:ee=>`Choose no more than ${ee} days`},vanCascader:{select:"Select"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Unlimited",discount:ee=>`${ee*10}% off`,condition:ee=>`At least ${ee}`},vanCouponCell:{title:"Coupon",count:ee=>`You have ${ee} coupons`},vanCouponList:{exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",addressDetail:"Address",defaultAddress:"Set as the default address"},vanAddressList:{add:"Add new address"}};function install(ee){ee.use(stdin_default$1)}const locales={"zh-cn":stdin_default$1U,"en-us":stdin_default},ui={install},_sfc_main$1=defineComponent({__name:"index",setup(ee){const ne=useSettingsStore();return watch(()=>ne.lang,()=>{Locale.use(ne.lang,locales[ne.lang])}),(oe,ae)=>{const ie=resolveComponent("VanConfigProvider");return openBlock(),createBlock(ie,{theme:unref(ne).currentColorScheme,class:"min-h-vh supports-[(min-height:100dvh)]:min-h-dvh"},{default:withCtx(()=>[renderSlot(oe.$slots,"default")]),_:3},8,["theme"])}}}),useKeepAliveStore=defineStore("keepAlive",()=>{const ee=ref([]);function ne(ie){typeof ie=="string"?!ee.value.includes(ie)&&ee.value.push(ie):ie.forEach(se=>{se&&!ee.value.includes(se)&&ee.value.push(se)})}function oe(ie){typeof ie=="string"?ee.value=ee.value.filter(se=>se!==ie):ee.value=ee.value.filter(se=>!ie.includes(se))}function ae(){ee.value=[]}return{list:ee,add:ne,remove:oe,clean:ae}});function wmFn(){const ee={},ne={id:"wm_div_id",prefix:"mask_div_id",text:"测试水印",x:20,y:20,rows:0,cols:0,x_space:50,y_space:50,font:"微软雅黑",color:"black",fontsize:"18px",alpha:.15,width:100,height:100,angle:15,parent_width:0,parent_height:0,parent_node:null,monitor:!0};let oe=!1;const ae=new MutationObserver(de);function ie(be){var Fe;Object.assign(ne,be);const ye=document.getElementById(ne.id);(Fe=ye==null?void 0:ye.parentNode)==null||Fe.removeChild(ye);const $e=ne.parent_node,_e=$e||document.body,Ee=Math.max(_e.scrollWidth,_e.clientWidth),we=Math.max(_e.scrollHeight,_e.clientHeight);let Pe=0,Ce=0;be.parent_width||be.parent_height?_e&&(Pe=_e.offsetTop||0,Ce=_e.offsetLeft||0,ne.x=ne.x+Ce,ne.y=ne.y+Pe):_e&&(Pe=_e.offsetTop||0,Ce=_e.offsetLeft||0);let Oe=document.getElementById(ne.id),Ae=null;if(Oe)Oe.shadowRoot&&(Ae=Oe.shadowRoot);else{Oe=document.createElement("div"),Oe.id=ne.id,Oe.setAttribute("style","pointer-events: none !important; display: block !important"),typeof Oe.attachShadow=="function"?Ae=Oe.attachShadow({mode:"open"}):Ae=Oe;const je=_e.children,Be=Math.floor(Math.random()*(je.length-1));je[Be]?_e.insertBefore(Oe,je[Be]):_e.appendChild(Oe)}ne.cols=Math.floor((Ee-ne.x)/(ne.width+ne.x_space));const Ne=Math.floor((Ee-ne.x-ne.width*ne.cols)/ne.cols);ne.x_space=Ne&&ne.x_space;let ke;ne.rows=Math.floor((we-ne.y)/(ne.height+ne.y_space));const Re=Math.floor((we-ne.y-ne.height*ne.rows)/ne.rows);ne.y_space=Re&&ne.y_space;let Le;$e?(ke=ne.x+ne.width*ne.cols+ne.x_space*(ne.cols-1),Le=ne.y+ne.height*ne.rows+ne.y_space*(ne.rows-1)):(ke=Ce+ne.x+ne.width*ne.cols+ne.x_space*(ne.cols-1),Le=Pe+ne.y+ne.height*ne.rows+ne.y_space*(ne.rows-1));let Me,Ie;for(let je=0;je"),He.id=ne.prefix+je+Be,He.style.transform=`rotate(-${ne.angle}deg)`,He.style.visibility="",He.style.position="absolute",He.style.left=`${Me}px`,He.style.top=`${Ie}px`,He.style.overflow="hidden",He.style.zIndex="9999999",He.style.opacity=`${ne.alpha}`,He.style.fontSize=ne.fontsize,He.style.fontFamily=ne.font,He.style.color=ne.color,He.style.textAlign="center",He.style.width=`${ne.width}px`,He.style.height=`${ne.height}px`,He.style.display="block",He.style.userSelect="none",Ae==null||Ae.appendChild(He)}}if(ne.monitor){const je={childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"],attributeOldValue:!0};ae.observe(_e,je),ae.observe(document.getElementById(ne.id).shadowRoot,je)}}function se(){var ye;const be=document.getElementById(ne.id);(ye=be==null?void 0:be.parentNode)==null||ye.removeChild(be),ae.disconnect()}function de(be){if(oe){oe=!1;return}(ee&&be.length===1||be.length===1&&be[0].removedNodes.length>=1)&&ie(ee)}return{init:function(be){Object.assign(ee,be),ie(be)},remove:function(){oe=!0,se()}}}const useWatermarkStore=defineStore("watermark",()=>{const ee=useSettingsStore(),{init:ne,remove:oe}=wmFn(),ae=ref({}),ie=computed({get(){return Object.assign({text:`Fantastic-mobile +别具一格, 自成一派`,width:160,x:0,y:0,x_space:25,y_space:25,alpha:.1,color:ee.currentColorScheme==="light"?"black":"white",parent_node:document.getElementById("app")},ae.value)},set(ve){fe(ve)}});watch(ie,()=>{ee.settings.app.enableWatermark&&se()},{deep:!0}),watch(()=>ee.settings.app.enableWatermark,ve=>{ve?se():de()},{immediate:!0}),watch(()=>ee.currentColorScheme,()=>{ee.settings.app.enableWatermark&&se()});function se(){ne(ie.value)}function de(){try{oe()}catch{}}function fe(ve={}){ae.value=ve}return{update:fe}});function bind(ee,ne){return function(){return ee.apply(ne,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(ee=>ne=>{const oe=toString.call(ne);return ee[oe]||(ee[oe]=oe.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=ee=>(ee=ee.toLowerCase(),ne=>kindOf(ne)===ee),typeOfTest=ee=>ne=>typeof ne===ee,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(ee){return ee!==null&&!isUndefined(ee)&&ee.constructor!==null&&!isUndefined(ee.constructor)&&isFunction(ee.constructor.isBuffer)&&ee.constructor.isBuffer(ee)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(ee){let ne;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ne=ArrayBuffer.isView(ee):ne=ee&&ee.buffer&&isArrayBuffer(ee.buffer),ne}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=ee=>ee!==null&&typeof ee=="object",isBoolean=ee=>ee===!0||ee===!1,isPlainObject=ee=>{if(kindOf(ee)!=="object")return!1;const ne=getPrototypeOf(ee);return(ne===null||ne===Object.prototype||Object.getPrototypeOf(ne)===null)&&!(Symbol.toStringTag in ee)&&!(Symbol.iterator in ee)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=ee=>isObject(ee)&&isFunction(ee.pipe),isFormData=ee=>{let ne;return ee&&(typeof FormData=="function"&&ee instanceof FormData||isFunction(ee.append)&&((ne=kindOf(ee))==="formdata"||ne==="object"&&isFunction(ee.toString)&&ee.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=ee=>ee.trim?ee.trim():ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(ee,ne,{allOwnKeys:oe=!1}={}){if(ee===null||typeof ee>"u")return;let ae,ie;if(typeof ee!="object"&&(ee=[ee]),isArray(ee))for(ae=0,ie=ee.length;ae0;)if(ie=oe[ae],ne===ie.toLowerCase())return ie;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=ee=>!isUndefined(ee)&&ee!==_global;function merge(){const{caseless:ee}=isContextDefined(this)&&this||{},ne={},oe=(ae,ie)=>{const se=ee&&findKey(ne,ie)||ie;isPlainObject(ne[se])&&isPlainObject(ae)?ne[se]=merge(ne[se],ae):isPlainObject(ae)?ne[se]=merge({},ae):isArray(ae)?ne[se]=ae.slice():ne[se]=ae};for(let ae=0,ie=arguments.length;ae(forEach(ne,(ie,se)=>{oe&&isFunction(ie)?ee[se]=bind(ie,oe):ee[se]=ie},{allOwnKeys:ae}),ee),stripBOM=ee=>(ee.charCodeAt(0)===65279&&(ee=ee.slice(1)),ee),inherits=(ee,ne,oe,ae)=>{ee.prototype=Object.create(ne.prototype,ae),ee.prototype.constructor=ee,Object.defineProperty(ee,"super",{value:ne.prototype}),oe&&Object.assign(ee.prototype,oe)},toFlatObject=(ee,ne,oe,ae)=>{let ie,se,de;const fe={};if(ne=ne||{},ee==null)return ne;do{for(ie=Object.getOwnPropertyNames(ee),se=ie.length;se-- >0;)de=ie[se],(!ae||ae(de,ee,ne))&&!fe[de]&&(ne[de]=ee[de],fe[de]=!0);ee=oe!==!1&&getPrototypeOf(ee)}while(ee&&(!oe||oe(ee,ne))&&ee!==Object.prototype);return ne},endsWith=(ee,ne,oe)=>{ee=String(ee),(oe===void 0||oe>ee.length)&&(oe=ee.length),oe-=ne.length;const ae=ee.indexOf(ne,oe);return ae!==-1&&ae===oe},toArray=ee=>{if(!ee)return null;if(isArray(ee))return ee;let ne=ee.length;if(!isNumber(ne))return null;const oe=new Array(ne);for(;ne-- >0;)oe[ne]=ee[ne];return oe},isTypedArray=(ee=>ne=>ee&&ne instanceof ee)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(ee,ne)=>{const ae=(ee&&ee[Symbol.iterator]).call(ee);let ie;for(;(ie=ae.next())&&!ie.done;){const se=ie.value;ne.call(ee,se[0],se[1])}},matchAll=(ee,ne)=>{let oe;const ae=[];for(;(oe=ee.exec(ne))!==null;)ae.push(oe);return ae},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=ee=>ee.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(oe,ae,ie){return ae.toUpperCase()+ie}),hasOwnProperty=(({hasOwnProperty:ee})=>(ne,oe)=>ee.call(ne,oe))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(ee,ne)=>{const oe=Object.getOwnPropertyDescriptors(ee),ae={};forEach(oe,(ie,se)=>{let de;(de=ne(ie,se,ee))!==!1&&(ae[se]=de||ie)}),Object.defineProperties(ee,ae)},freezeMethods=ee=>{reduceDescriptors(ee,(ne,oe)=>{if(isFunction(ee)&&["arguments","caller","callee"].indexOf(oe)!==-1)return!1;const ae=ee[oe];if(isFunction(ae)){if(ne.enumerable=!1,"writable"in ne){ne.writable=!1;return}ne.set||(ne.set=()=>{throw Error("Can not rewrite read-only method '"+oe+"'")})}})},toObjectSet=(ee,ne)=>{const oe={},ae=ie=>{ie.forEach(se=>{oe[se]=!0})};return isArray(ee)?ae(ee):ae(String(ee).split(ne)),oe},noop=()=>{},toFiniteNumber=(ee,ne)=>ee!=null&&Number.isFinite(ee=+ee)?ee:ne,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(ee=16,ne=ALPHABET.ALPHA_DIGIT)=>{let oe="";const{length:ae}=ne;for(;ee--;)oe+=ne[Math.random()*ae|0];return oe};function isSpecCompliantForm(ee){return!!(ee&&isFunction(ee.append)&&ee[Symbol.toStringTag]==="FormData"&&ee[Symbol.iterator])}const toJSONObject=ee=>{const ne=new Array(10),oe=(ae,ie)=>{if(isObject(ae)){if(ne.indexOf(ae)>=0)return;if(!("toJSON"in ae)){ne[ie]=ae;const se=isArray(ae)?[]:{};return forEach(ae,(de,fe)=>{const ve=oe(de,ie+1);!isUndefined(ve)&&(se[fe]=ve)}),ne[ie]=void 0,se}}return ae};return oe(ee,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=ee=>ee&&(isObject(ee)||isFunction(ee))&&isFunction(ee.then)&&isFunction(ee.catch),_setImmediate=((ee,ne)=>ee?setImmediate:ne?((oe,ae)=>(_global.addEventListener("message",({source:ie,data:se})=>{ie===_global&&se===oe&&ae.length&&ae.shift()()},!1),ie=>{ae.push(ie),_global.postMessage(oe,"*")}))(`axios@${Math.random()}`,[]):oe=>setTimeout(oe))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(ee,ne,oe,ae,ie){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=ee,this.name="AxiosError",ne&&(this.code=ne),oe&&(this.config=oe),ae&&(this.request=ae),ie&&(this.response=ie)}utils$1.inherits(AxiosError,Error,{toJSON:function ee(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(ee=>{descriptors[ee]={value:ee}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(ee,ne,oe,ae,ie,se)=>{const de=Object.create(prototype$1);return utils$1.toFlatObject(ee,de,function(ve){return ve!==Error.prototype},fe=>fe!=="isAxiosError"),AxiosError.call(de,ee.message,ne,oe,ae,ie),de.cause=ee,de.name=ee.name,se&&Object.assign(de,se),de};const httpAdapter=null;function isVisitable(ee){return utils$1.isPlainObject(ee)||utils$1.isArray(ee)}function removeBrackets(ee){return utils$1.endsWith(ee,"[]")?ee.slice(0,-2):ee}function renderKey(ee,ne,oe){return ee?ee.concat(ne).map(function(ie,se){return ie=removeBrackets(ie),!oe&&se?"["+ie+"]":ie}).join(oe?".":""):ne}function isFlatArray(ee){return utils$1.isArray(ee)&&!ee.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function ee(ne){return/^is[A-Z]/.test(ne)});function toFormData(ee,ne,oe){if(!utils$1.isObject(ee))throw new TypeError("target must be an object");ne=ne||new FormData,oe=utils$1.toFlatObject(oe,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Pe,Ce){return!utils$1.isUndefined(Ce[Pe])});const ae=oe.metaTokens,ie=oe.visitor||ye,se=oe.dots,de=oe.indexes,ve=(oe.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(ne);if(!utils$1.isFunction(ie))throw new TypeError("visitor must be a function");function be(we){if(we===null)return"";if(utils$1.isDate(we))return we.toISOString();if(!ve&&utils$1.isBlob(we))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(we)||utils$1.isTypedArray(we)?ve&&typeof Blob=="function"?new Blob([we]):Buffer.from(we):we}function ye(we,Pe,Ce){let Oe=we;if(we&&!Ce&&typeof we=="object"){if(utils$1.endsWith(Pe,"{}"))Pe=ae?Pe:Pe.slice(0,-2),we=JSON.stringify(we);else if(utils$1.isArray(we)&&isFlatArray(we)||(utils$1.isFileList(we)||utils$1.endsWith(Pe,"[]"))&&(Oe=utils$1.toArray(we)))return Pe=removeBrackets(Pe),Oe.forEach(function(Ne,ke){!(utils$1.isUndefined(Ne)||Ne===null)&&ne.append(de===!0?renderKey([Pe],ke,se):de===null?Pe:Pe+"[]",be(Ne))}),!1}return isVisitable(we)?!0:(ne.append(renderKey(Ce,Pe,se),be(we)),!1)}const $e=[],_e=Object.assign(predicates,{defaultVisitor:ye,convertValue:be,isVisitable});function Ee(we,Pe){if(!utils$1.isUndefined(we)){if($e.indexOf(we)!==-1)throw Error("Circular reference detected in "+Pe.join("."));$e.push(we),utils$1.forEach(we,function(Oe,Ae){(!(utils$1.isUndefined(Oe)||Oe===null)&&ie.call(ne,Oe,utils$1.isString(Ae)?Ae.trim():Ae,Pe,_e))===!0&&Ee(Oe,Pe?Pe.concat(Ae):[Ae])}),$e.pop()}}if(!utils$1.isObject(ee))throw new TypeError("data must be an object");return Ee(ee),ne}function encode$1(ee){const ne={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ee).replace(/[!'()~]|%20|%00/g,function(ae){return ne[ae]})}function AxiosURLSearchParams(ee,ne){this._pairs=[],ee&&toFormData(ee,this,ne)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function ee(ne,oe){this._pairs.push([ne,oe])};prototype.toString=function ee(ne){const oe=ne?function(ae){return ne.call(this,ae,encode$1)}:encode$1;return this._pairs.map(function(ie){return oe(ie[0])+"="+oe(ie[1])},"").join("&")};function encode(ee){return encodeURIComponent(ee).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(ee,ne,oe){if(!ne)return ee;const ae=oe&&oe.encode||encode,ie=oe&&oe.serialize;let se;if(ie?se=ie(ne,oe):se=utils$1.isURLSearchParams(ne)?ne.toString():new AxiosURLSearchParams(ne,oe).toString(ae),se){const de=ee.indexOf("#");de!==-1&&(ee=ee.slice(0,de)),ee+=(ee.indexOf("?")===-1?"?":"&")+se}return ee}class InterceptorManager{constructor(){this.handlers=[]}use(ne,oe,ae){return this.handlers.push({fulfilled:ne,rejected:oe,synchronous:ae?ae.synchronous:!1,runWhen:ae?ae.runWhen:null}),this.handlers.length-1}eject(ne){this.handlers[ne]&&(this.handlers[ne]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ne){utils$1.forEach(this.handlers,function(ae){ae!==null&&ne(ae)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(ee=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(ee)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(ee,ne){return toFormData(ee,new platform.classes.URLSearchParams,Object.assign({visitor:function(oe,ae,ie,se){return platform.isNode&&utils$1.isBuffer(oe)?(this.append(ae,oe.toString("base64")),!1):se.defaultVisitor.apply(this,arguments)}},ne))}function parsePropPath(ee){return utils$1.matchAll(/\w+|\[(\w*)]/g,ee).map(ne=>ne[0]==="[]"?"":ne[1]||ne[0])}function arrayToObject(ee){const ne={},oe=Object.keys(ee);let ae;const ie=oe.length;let se;for(ae=0;ae=oe.length;return de=!de&&utils$1.isArray(ie)?ie.length:de,ve?(utils$1.hasOwnProp(ie,de)?ie[de]=[ie[de],ae]:ie[de]=ae,!fe):((!ie[de]||!utils$1.isObject(ie[de]))&&(ie[de]=[]),ne(oe,ae,ie[de],se)&&utils$1.isArray(ie[de])&&(ie[de]=arrayToObject(ie[de])),!fe)}if(utils$1.isFormData(ee)&&utils$1.isFunction(ee.entries)){const oe={};return utils$1.forEachEntry(ee,(ae,ie)=>{ne(parsePropPath(ae),ie,oe,0)}),oe}return null}function stringifySafely(ee,ne,oe){if(utils$1.isString(ee))try{return(ne||JSON.parse)(ee),utils$1.trim(ee)}catch(ae){if(ae.name!=="SyntaxError")throw ae}return(oe||JSON.stringify)(ee)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function ee(ne,oe){const ae=oe.getContentType()||"",ie=ae.indexOf("application/json")>-1,se=utils$1.isObject(ne);if(se&&utils$1.isHTMLForm(ne)&&(ne=new FormData(ne)),utils$1.isFormData(ne))return ie?JSON.stringify(formDataToJSON(ne)):ne;if(utils$1.isArrayBuffer(ne)||utils$1.isBuffer(ne)||utils$1.isStream(ne)||utils$1.isFile(ne)||utils$1.isBlob(ne)||utils$1.isReadableStream(ne))return ne;if(utils$1.isArrayBufferView(ne))return ne.buffer;if(utils$1.isURLSearchParams(ne))return oe.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ne.toString();let fe;if(se){if(ae.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(ne,this.formSerializer).toString();if((fe=utils$1.isFileList(ne))||ae.indexOf("multipart/form-data")>-1){const ve=this.env&&this.env.FormData;return toFormData(fe?{"files[]":ne}:ne,ve&&new ve,this.formSerializer)}}return se||ie?(oe.setContentType("application/json",!1),stringifySafely(ne)):ne}],transformResponse:[function ee(ne){const oe=this.transitional||defaults.transitional,ae=oe&&oe.forcedJSONParsing,ie=this.responseType==="json";if(utils$1.isResponse(ne)||utils$1.isReadableStream(ne))return ne;if(ne&&utils$1.isString(ne)&&(ae&&!this.responseType||ie)){const de=!(oe&&oe.silentJSONParsing)&&ie;try{return JSON.parse(ne)}catch(fe){if(de)throw fe.name==="SyntaxError"?AxiosError.from(fe,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):fe}}return ne}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function ee(ne){return ne>=200&&ne<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],ee=>{defaults.headers[ee]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=ee=>{const ne={};let oe,ae,ie;return ee&&ee.split(` +`).forEach(function(de){ie=de.indexOf(":"),oe=de.substring(0,ie).trim().toLowerCase(),ae=de.substring(ie+1).trim(),!(!oe||ne[oe]&&ignoreDuplicateOf[oe])&&(oe==="set-cookie"?ne[oe]?ne[oe].push(ae):ne[oe]=[ae]:ne[oe]=ne[oe]?ne[oe]+", "+ae:ae)}),ne},$internals=Symbol("internals");function normalizeHeader(ee){return ee&&String(ee).trim().toLowerCase()}function normalizeValue(ee){return ee===!1||ee==null?ee:utils$1.isArray(ee)?ee.map(normalizeValue):String(ee)}function parseTokens(ee){const ne=Object.create(null),oe=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ae;for(;ae=oe.exec(ee);)ne[ae[1]]=ae[2];return ne}const isValidHeaderName=ee=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(ee.trim());function matchHeaderValue(ee,ne,oe,ae,ie){if(utils$1.isFunction(ae))return ae.call(this,ne,oe);if(ie&&(ne=oe),!!utils$1.isString(ne)){if(utils$1.isString(ae))return ne.indexOf(ae)!==-1;if(utils$1.isRegExp(ae))return ae.test(ne)}}function formatHeader(ee){return ee.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(ne,oe,ae)=>oe.toUpperCase()+ae)}function buildAccessors(ee,ne){const oe=utils$1.toCamelCase(" "+ne);["get","set","has"].forEach(ae=>{Object.defineProperty(ee,ae+oe,{value:function(ie,se,de){return this[ae].call(this,ne,ie,se,de)},configurable:!0})})}class AxiosHeaders{constructor(ne){ne&&this.set(ne)}set(ne,oe,ae){const ie=this;function se(fe,ve,be){const ye=normalizeHeader(ve);if(!ye)throw new Error("header name must be a non-empty string");const $e=utils$1.findKey(ie,ye);(!$e||ie[$e]===void 0||be===!0||be===void 0&&ie[$e]!==!1)&&(ie[$e||ve]=normalizeValue(fe))}const de=(fe,ve)=>utils$1.forEach(fe,(be,ye)=>se(be,ye,ve));if(utils$1.isPlainObject(ne)||ne instanceof this.constructor)de(ne,oe);else if(utils$1.isString(ne)&&(ne=ne.trim())&&!isValidHeaderName(ne))de(parseHeaders(ne),oe);else if(utils$1.isHeaders(ne))for(const[fe,ve]of ne.entries())se(ve,fe,ae);else ne!=null&&se(oe,ne,ae);return this}get(ne,oe){if(ne=normalizeHeader(ne),ne){const ae=utils$1.findKey(this,ne);if(ae){const ie=this[ae];if(!oe)return ie;if(oe===!0)return parseTokens(ie);if(utils$1.isFunction(oe))return oe.call(this,ie,ae);if(utils$1.isRegExp(oe))return oe.exec(ie);throw new TypeError("parser must be boolean|regexp|function")}}}has(ne,oe){if(ne=normalizeHeader(ne),ne){const ae=utils$1.findKey(this,ne);return!!(ae&&this[ae]!==void 0&&(!oe||matchHeaderValue(this,this[ae],ae,oe)))}return!1}delete(ne,oe){const ae=this;let ie=!1;function se(de){if(de=normalizeHeader(de),de){const fe=utils$1.findKey(ae,de);fe&&(!oe||matchHeaderValue(ae,ae[fe],fe,oe))&&(delete ae[fe],ie=!0)}}return utils$1.isArray(ne)?ne.forEach(se):se(ne),ie}clear(ne){const oe=Object.keys(this);let ae=oe.length,ie=!1;for(;ae--;){const se=oe[ae];(!ne||matchHeaderValue(this,this[se],se,ne,!0))&&(delete this[se],ie=!0)}return ie}normalize(ne){const oe=this,ae={};return utils$1.forEach(this,(ie,se)=>{const de=utils$1.findKey(ae,se);if(de){oe[de]=normalizeValue(ie),delete oe[se];return}const fe=ne?formatHeader(se):String(se).trim();fe!==se&&delete oe[se],oe[fe]=normalizeValue(ie),ae[fe]=!0}),this}concat(...ne){return this.constructor.concat(this,...ne)}toJSON(ne){const oe=Object.create(null);return utils$1.forEach(this,(ae,ie)=>{ae!=null&&ae!==!1&&(oe[ie]=ne&&utils$1.isArray(ae)?ae.join(", "):ae)}),oe}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([ne,oe])=>ne+": "+oe).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(ne){return ne instanceof this?ne:new this(ne)}static concat(ne,...oe){const ae=new this(ne);return oe.forEach(ie=>ae.set(ie)),ae}static accessor(ne){const ae=(this[$internals]=this[$internals]={accessors:{}}).accessors,ie=this.prototype;function se(de){const fe=normalizeHeader(de);ae[fe]||(buildAccessors(ie,de),ae[fe]=!0)}return utils$1.isArray(ne)?ne.forEach(se):se(ne),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:ee},ne)=>{let oe=ne[0].toUpperCase()+ne.slice(1);return{get:()=>ee,set(ae){this[oe]=ae}}});utils$1.freezeMethods(AxiosHeaders);function transformData(ee,ne){const oe=this||defaults,ae=ne||oe,ie=AxiosHeaders.from(ae.headers);let se=ae.data;return utils$1.forEach(ee,function(fe){se=fe.call(oe,se,ie.normalize(),ne?ne.status:void 0)}),ie.normalize(),se}function isCancel(ee){return!!(ee&&ee.__CANCEL__)}function CanceledError(ee,ne,oe){AxiosError.call(this,ee??"canceled",AxiosError.ERR_CANCELED,ne,oe),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(ee,ne,oe){const ae=oe.config.validateStatus;!oe.status||!ae||ae(oe.status)?ee(oe):ne(new AxiosError("Request failed with status code "+oe.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(oe.status/100)-4],oe.config,oe.request,oe))}function parseProtocol(ee){const ne=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ee);return ne&&ne[1]||""}function speedometer(ee,ne){ee=ee||10;const oe=new Array(ee),ae=new Array(ee);let ie=0,se=0,de;return ne=ne!==void 0?ne:1e3,function(ve){const be=Date.now(),ye=ae[se];de||(de=be),oe[ie]=ve,ae[ie]=be;let $e=se,_e=0;for(;$e!==ie;)_e+=oe[$e++],$e=$e%ee;if(ie=(ie+1)%ee,ie===se&&(se=(se+1)%ee),be-de{oe=ye,ie=null,se&&(clearTimeout(se),se=null),ee.apply(null,be)};return[(...be)=>{const ye=Date.now(),$e=ye-oe;$e>=ae?de(be,ye):(ie=be,se||(se=setTimeout(()=>{se=null,de(ie)},ae-$e)))},()=>ie&&de(ie)]}const progressEventReducer=(ee,ne,oe=3)=>{let ae=0;const ie=speedometer(50,250);return throttle(se=>{const de=se.loaded,fe=se.lengthComputable?se.total:void 0,ve=de-ae,be=ie(ve),ye=de<=fe;ae=de;const $e={loaded:de,total:fe,progress:fe?de/fe:void 0,bytes:ve,rate:be||void 0,estimated:be&&fe&&ye?(fe-de)/be:void 0,event:se,lengthComputable:fe!=null,[ne?"download":"upload"]:!0};ee($e)},oe)},progressEventDecorator=(ee,ne)=>{const oe=ee!=null;return[ae=>ne[0]({lengthComputable:oe,total:ee,loaded:ae}),ne[1]]},asyncDecorator=ee=>(...ne)=>utils$1.asap(()=>ee(...ne)),isURLSameOrigin=platform.hasStandardBrowserEnv?function ee(){const ne=/(msie|trident)/i.test(navigator.userAgent),oe=document.createElement("a");let ae;function ie(se){let de=se;return ne&&(oe.setAttribute("href",de),de=oe.href),oe.setAttribute("href",de),{href:oe.href,protocol:oe.protocol?oe.protocol.replace(/:$/,""):"",host:oe.host,search:oe.search?oe.search.replace(/^\?/,""):"",hash:oe.hash?oe.hash.replace(/^#/,""):"",hostname:oe.hostname,port:oe.port,pathname:oe.pathname.charAt(0)==="/"?oe.pathname:"/"+oe.pathname}}return ae=ie(window.location.href),function(de){const fe=utils$1.isString(de)?ie(de):de;return fe.protocol===ae.protocol&&fe.host===ae.host}}():function ee(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(ee,ne,oe,ae,ie,se){const de=[ee+"="+encodeURIComponent(ne)];utils$1.isNumber(oe)&&de.push("expires="+new Date(oe).toGMTString()),utils$1.isString(ae)&&de.push("path="+ae),utils$1.isString(ie)&&de.push("domain="+ie),se===!0&&de.push("secure"),document.cookie=de.join("; ")},read(ee){const ne=document.cookie.match(new RegExp("(^|;\\s*)("+ee+")=([^;]*)"));return ne?decodeURIComponent(ne[3]):null},remove(ee){this.write(ee,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(ee){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ee)}function combineURLs(ee,ne){return ne?ee.replace(/\/?\/$/,"")+"/"+ne.replace(/^\/+/,""):ee}function buildFullPath(ee,ne){return ee&&!isAbsoluteURL(ne)?combineURLs(ee,ne):ne}const headersToObject=ee=>ee instanceof AxiosHeaders?{...ee}:ee;function mergeConfig(ee,ne){ne=ne||{};const oe={};function ae(be,ye,$e){return utils$1.isPlainObject(be)&&utils$1.isPlainObject(ye)?utils$1.merge.call({caseless:$e},be,ye):utils$1.isPlainObject(ye)?utils$1.merge({},ye):utils$1.isArray(ye)?ye.slice():ye}function ie(be,ye,$e){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(be))return ae(void 0,be,$e)}else return ae(be,ye,$e)}function se(be,ye){if(!utils$1.isUndefined(ye))return ae(void 0,ye)}function de(be,ye){if(utils$1.isUndefined(ye)){if(!utils$1.isUndefined(be))return ae(void 0,be)}else return ae(void 0,ye)}function fe(be,ye,$e){if($e in ne)return ae(be,ye);if($e in ee)return ae(void 0,be)}const ve={url:se,method:se,data:se,baseURL:de,transformRequest:de,transformResponse:de,paramsSerializer:de,timeout:de,timeoutMessage:de,withCredentials:de,withXSRFToken:de,adapter:de,responseType:de,xsrfCookieName:de,xsrfHeaderName:de,onUploadProgress:de,onDownloadProgress:de,decompress:de,maxContentLength:de,maxBodyLength:de,beforeRedirect:de,transport:de,httpAgent:de,httpsAgent:de,cancelToken:de,socketPath:de,responseEncoding:de,validateStatus:fe,headers:(be,ye)=>ie(headersToObject(be),headersToObject(ye),!0)};return utils$1.forEach(Object.keys(Object.assign({},ee,ne)),function(ye){const $e=ve[ye]||ie,_e=$e(ee[ye],ne[ye],ye);utils$1.isUndefined(_e)&&$e!==fe||(oe[ye]=_e)}),oe}const resolveConfig=ee=>{const ne=mergeConfig({},ee);let{data:oe,withXSRFToken:ae,xsrfHeaderName:ie,xsrfCookieName:se,headers:de,auth:fe}=ne;ne.headers=de=AxiosHeaders.from(de),ne.url=buildURL(buildFullPath(ne.baseURL,ne.url),ee.params,ee.paramsSerializer),fe&&de.set("Authorization","Basic "+btoa((fe.username||"")+":"+(fe.password?unescape(encodeURIComponent(fe.password)):"")));let ve;if(utils$1.isFormData(oe)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)de.setContentType(void 0);else if((ve=de.getContentType())!==!1){const[be,...ye]=ve?ve.split(";").map($e=>$e.trim()).filter(Boolean):[];de.setContentType([be||"multipart/form-data",...ye].join("; "))}}if(platform.hasStandardBrowserEnv&&(ae&&utils$1.isFunction(ae)&&(ae=ae(ne)),ae||ae!==!1&&isURLSameOrigin(ne.url))){const be=ie&&se&&cookies.read(se);be&&de.set(ie,be)}return ne},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(ee){return new Promise(function(oe,ae){const ie=resolveConfig(ee);let se=ie.data;const de=AxiosHeaders.from(ie.headers).normalize();let{responseType:fe,onUploadProgress:ve,onDownloadProgress:be}=ie,ye,$e,_e,Ee,we;function Pe(){Ee&&Ee(),we&&we(),ie.cancelToken&&ie.cancelToken.unsubscribe(ye),ie.signal&&ie.signal.removeEventListener("abort",ye)}let Ce=new XMLHttpRequest;Ce.open(ie.method.toUpperCase(),ie.url,!0),Ce.timeout=ie.timeout;function Oe(){if(!Ce)return;const Ne=AxiosHeaders.from("getAllResponseHeaders"in Ce&&Ce.getAllResponseHeaders()),Re={data:!fe||fe==="text"||fe==="json"?Ce.responseText:Ce.response,status:Ce.status,statusText:Ce.statusText,headers:Ne,config:ee,request:Ce};settle(function(Me){oe(Me),Pe()},function(Me){ae(Me),Pe()},Re),Ce=null}"onloadend"in Ce?Ce.onloadend=Oe:Ce.onreadystatechange=function(){!Ce||Ce.readyState!==4||Ce.status===0&&!(Ce.responseURL&&Ce.responseURL.indexOf("file:")===0)||setTimeout(Oe)},Ce.onabort=function(){Ce&&(ae(new AxiosError("Request aborted",AxiosError.ECONNABORTED,ee,Ce)),Ce=null)},Ce.onerror=function(){ae(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ee,Ce)),Ce=null},Ce.ontimeout=function(){let ke=ie.timeout?"timeout of "+ie.timeout+"ms exceeded":"timeout exceeded";const Re=ie.transitional||transitionalDefaults;ie.timeoutErrorMessage&&(ke=ie.timeoutErrorMessage),ae(new AxiosError(ke,Re.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,ee,Ce)),Ce=null},se===void 0&&de.setContentType(null),"setRequestHeader"in Ce&&utils$1.forEach(de.toJSON(),function(ke,Re){Ce.setRequestHeader(Re,ke)}),utils$1.isUndefined(ie.withCredentials)||(Ce.withCredentials=!!ie.withCredentials),fe&&fe!=="json"&&(Ce.responseType=ie.responseType),be&&([_e,we]=progressEventReducer(be,!0),Ce.addEventListener("progress",_e)),ve&&Ce.upload&&([$e,Ee]=progressEventReducer(ve),Ce.upload.addEventListener("progress",$e),Ce.upload.addEventListener("loadend",Ee)),(ie.cancelToken||ie.signal)&&(ye=Ne=>{Ce&&(ae(!Ne||Ne.type?new CanceledError(null,ee,Ce):Ne),Ce.abort(),Ce=null)},ie.cancelToken&&ie.cancelToken.subscribe(ye),ie.signal&&(ie.signal.aborted?ye():ie.signal.addEventListener("abort",ye)));const Ae=parseProtocol(ie.url);if(Ae&&platform.protocols.indexOf(Ae)===-1){ae(new AxiosError("Unsupported protocol "+Ae+":",AxiosError.ERR_BAD_REQUEST,ee));return}Ce.send(se||null)})},composeSignals=(ee,ne)=>{let oe=new AbortController,ae;const ie=function(ve){if(!ae){ae=!0,de();const be=ve instanceof Error?ve:this.reason;oe.abort(be instanceof AxiosError?be:new CanceledError(be instanceof Error?be.message:be))}};let se=ne&&setTimeout(()=>{ie(new AxiosError(`timeout ${ne} of ms exceeded`,AxiosError.ETIMEDOUT))},ne);const de=()=>{ee&&(se&&clearTimeout(se),se=null,ee.forEach(ve=>{ve&&(ve.removeEventListener?ve.removeEventListener("abort",ie):ve.unsubscribe(ie))}),ee=null)};ee.forEach(ve=>ve&&ve.addEventListener&&ve.addEventListener("abort",ie));const{signal:fe}=oe;return fe.unsubscribe=de,[fe,()=>{se&&clearTimeout(se),se=null}]},streamChunk=function*(ee,ne){let oe=ee.byteLength;if(!ne||oe{const se=readBytes(ee,ne,ie);let de=0,fe,ve=be=>{fe||(fe=!0,ae&&ae(be))};return new ReadableStream({async pull(be){try{const{done:ye,value:$e}=await se.next();if(ye){ve(),be.close();return}let _e=$e.byteLength;if(oe){let Ee=de+=_e;oe(Ee)}be.enqueue(new Uint8Array($e))}catch(ye){throw ve(ye),ye}},cancel(be){return ve(be),se.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(ee=>ne=>ee.encode(ne))(new TextEncoder):async ee=>new Uint8Array(await new Response(ee).arrayBuffer())),test=(ee,...ne)=>{try{return!!ee(...ne)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let ee=!1;const ne=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return ee=!0,"half"}}).headers.has("Content-Type");return ee&&!ne}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(ee=>ee.body)};isFetchSupported&&(ee=>{["text","arrayBuffer","blob","formData","stream"].forEach(ne=>{!resolvers[ne]&&(resolvers[ne]=utils$1.isFunction(ee[ne])?oe=>oe[ne]():(oe,ae)=>{throw new AxiosError(`Response type '${ne}' is not supported`,AxiosError.ERR_NOT_SUPPORT,ae)})})})(new Response);const getBodyLength=async ee=>{if(ee==null)return 0;if(utils$1.isBlob(ee))return ee.size;if(utils$1.isSpecCompliantForm(ee))return(await new Request(ee).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(ee)||utils$1.isArrayBuffer(ee))return ee.byteLength;if(utils$1.isURLSearchParams(ee)&&(ee=ee+""),utils$1.isString(ee))return(await encodeText(ee)).byteLength},resolveBodyLength=async(ee,ne)=>{const oe=utils$1.toFiniteNumber(ee.getContentLength());return oe??getBodyLength(ne)},fetchAdapter=isFetchSupported&&(async ee=>{let{url:ne,method:oe,data:ae,signal:ie,cancelToken:se,timeout:de,onDownloadProgress:fe,onUploadProgress:ve,responseType:be,headers:ye,withCredentials:$e="same-origin",fetchOptions:_e}=resolveConfig(ee);be=be?(be+"").toLowerCase():"text";let[Ee,we]=ie||se||de?composeSignals([ie,se],de):[],Pe,Ce;const Oe=()=>{!Pe&&setTimeout(()=>{Ee&&Ee.unsubscribe()}),Pe=!0};let Ae;try{if(ve&&supportsRequestStream&&oe!=="get"&&oe!=="head"&&(Ae=await resolveBodyLength(ye,ae))!==0){let Le=new Request(ne,{method:"POST",body:ae,duplex:"half"}),Me;if(utils$1.isFormData(ae)&&(Me=Le.headers.get("content-type"))&&ye.setContentType(Me),Le.body){const[Ie,Fe]=progressEventDecorator(Ae,progressEventReducer(asyncDecorator(ve)));ae=trackStream(Le.body,DEFAULT_CHUNK_SIZE,Ie,Fe,encodeText)}}utils$1.isString($e)||($e=$e?"include":"omit"),Ce=new Request(ne,{..._e,signal:Ee,method:oe.toUpperCase(),headers:ye.normalize().toJSON(),body:ae,duplex:"half",credentials:$e});let Ne=await fetch(Ce);const ke=supportsResponseStream&&(be==="stream"||be==="response");if(supportsResponseStream&&(fe||ke)){const Le={};["status","statusText","headers"].forEach(je=>{Le[je]=Ne[je]});const Me=utils$1.toFiniteNumber(Ne.headers.get("content-length")),[Ie,Fe]=fe&&progressEventDecorator(Me,progressEventReducer(asyncDecorator(fe),!0))||[];Ne=new Response(trackStream(Ne.body,DEFAULT_CHUNK_SIZE,Ie,()=>{Fe&&Fe(),ke&&Oe()},encodeText),Le)}be=be||"text";let Re=await resolvers[utils$1.findKey(resolvers,be)||"text"](Ne,ee);return!ke&&Oe(),we&&we(),await new Promise((Le,Me)=>{settle(Le,Me,{data:Re,headers:AxiosHeaders.from(Ne.headers),status:Ne.status,statusText:Ne.statusText,config:ee,request:Ce})})}catch(Ne){throw Oe(),Ne&&Ne.name==="TypeError"&&/fetch/i.test(Ne.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,ee,Ce),{cause:Ne.cause||Ne}):AxiosError.from(Ne,Ne&&Ne.code,ee,Ce)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(ee,ne)=>{if(ee){try{Object.defineProperty(ee,"name",{value:ne})}catch{}Object.defineProperty(ee,"adapterName",{value:ne})}});const renderReason=ee=>`- ${ee}`,isResolvedHandle=ee=>utils$1.isFunction(ee)||ee===null||ee===!1,adapters={getAdapter:ee=>{ee=utils$1.isArray(ee)?ee:[ee];const{length:ne}=ee;let oe,ae;const ie={};for(let se=0;se`adapter ${fe} `+(ve===!1?"is not supported by the environment":"is not available in the build"));let de=ne?se.length>1?`since : +`+se.map(renderReason).join(` +`):" "+renderReason(se[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+de,"ERR_NOT_SUPPORT")}return ae},adapters:knownAdapters};function throwIfCancellationRequested(ee){if(ee.cancelToken&&ee.cancelToken.throwIfRequested(),ee.signal&&ee.signal.aborted)throw new CanceledError(null,ee)}function dispatchRequest(ee){return throwIfCancellationRequested(ee),ee.headers=AxiosHeaders.from(ee.headers),ee.data=transformData.call(ee,ee.transformRequest),["post","put","patch"].indexOf(ee.method)!==-1&&ee.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(ee.adapter||defaults.adapter)(ee).then(function(ae){return throwIfCancellationRequested(ee),ae.data=transformData.call(ee,ee.transformResponse,ae),ae.headers=AxiosHeaders.from(ae.headers),ae},function(ae){return isCancel(ae)||(throwIfCancellationRequested(ee),ae&&ae.response&&(ae.response.data=transformData.call(ee,ee.transformResponse,ae.response),ae.response.headers=AxiosHeaders.from(ae.response.headers))),Promise.reject(ae)})}const VERSION="1.7.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((ee,ne)=>{validators$1[ee]=function(ae){return typeof ae===ee||"a"+(ne<1?"n ":" ")+ee}});const deprecatedWarnings={};validators$1.transitional=function ee(ne,oe,ae){function ie(se,de){return"[Axios v"+VERSION+"] Transitional option '"+se+"'"+de+(ae?". "+ae:"")}return(se,de,fe)=>{if(ne===!1)throw new AxiosError(ie(de," has been removed"+(oe?" in "+oe:"")),AxiosError.ERR_DEPRECATED);return oe&&!deprecatedWarnings[de]&&(deprecatedWarnings[de]=!0,console.warn(ie(de," has been deprecated since v"+oe+" and will be removed in the near future"))),ne?ne(se,de,fe):!0}};function assertOptions(ee,ne,oe){if(typeof ee!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ae=Object.keys(ee);let ie=ae.length;for(;ie-- >0;){const se=ae[ie],de=ne[se];if(de){const fe=ee[se],ve=fe===void 0||de(fe,se,ee);if(ve!==!0)throw new AxiosError("option "+se+" must be "+ve,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(oe!==!0)throw new AxiosError("Unknown option "+se,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(ne){this.defaults=ne,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(ne,oe){try{return await this._request(ne,oe)}catch(ae){if(ae instanceof Error){let ie;Error.captureStackTrace?Error.captureStackTrace(ie={}):ie=new Error;const se=ie.stack?ie.stack.replace(/^.+\n/,""):"";try{ae.stack?se&&!String(ae.stack).endsWith(se.replace(/^.+\n.+\n/,""))&&(ae.stack+=` +`+se):ae.stack=se}catch{}}throw ae}}_request(ne,oe){typeof ne=="string"?(oe=oe||{},oe.url=ne):oe=ne||{},oe=mergeConfig(this.defaults,oe);const{transitional:ae,paramsSerializer:ie,headers:se}=oe;ae!==void 0&&validator.assertOptions(ae,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ie!=null&&(utils$1.isFunction(ie)?oe.paramsSerializer={serialize:ie}:validator.assertOptions(ie,{encode:validators.function,serialize:validators.function},!0)),oe.method=(oe.method||this.defaults.method||"get").toLowerCase();let de=se&&utils$1.merge(se.common,se[oe.method]);se&&utils$1.forEach(["delete","get","head","post","put","patch","common"],we=>{delete se[we]}),oe.headers=AxiosHeaders.concat(de,se);const fe=[];let ve=!0;this.interceptors.request.forEach(function(Pe){typeof Pe.runWhen=="function"&&Pe.runWhen(oe)===!1||(ve=ve&&Pe.synchronous,fe.unshift(Pe.fulfilled,Pe.rejected))});const be=[];this.interceptors.response.forEach(function(Pe){be.push(Pe.fulfilled,Pe.rejected)});let ye,$e=0,_e;if(!ve){const we=[dispatchRequest.bind(this),void 0];for(we.unshift.apply(we,fe),we.push.apply(we,be),_e=we.length,ye=Promise.resolve(oe);$e<_e;)ye=ye.then(we[$e++],we[$e++]);return ye}_e=fe.length;let Ee=oe;for($e=0;$e<_e;){const we=fe[$e++],Pe=fe[$e++];try{Ee=we(Ee)}catch(Ce){Pe.call(this,Ce);break}}try{ye=dispatchRequest.call(this,Ee)}catch(we){return Promise.reject(we)}for($e=0,_e=be.length;$e<_e;)ye=ye.then(be[$e++],be[$e++]);return ye}getUri(ne){ne=mergeConfig(this.defaults,ne);const oe=buildFullPath(ne.baseURL,ne.url);return buildURL(oe,ne.params,ne.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function ee(ne){Axios.prototype[ne]=function(oe,ae){return this.request(mergeConfig(ae||{},{method:ne,url:oe,data:(ae||{}).data}))}});utils$1.forEach(["post","put","patch"],function ee(ne){function oe(ae){return function(se,de,fe){return this.request(mergeConfig(fe||{},{method:ne,headers:ae?{"Content-Type":"multipart/form-data"}:{},url:se,data:de}))}}Axios.prototype[ne]=oe(),Axios.prototype[ne+"Form"]=oe(!0)});class CancelToken{constructor(ne){if(typeof ne!="function")throw new TypeError("executor must be a function.");let oe;this.promise=new Promise(function(se){oe=se});const ae=this;this.promise.then(ie=>{if(!ae._listeners)return;let se=ae._listeners.length;for(;se-- >0;)ae._listeners[se](ie);ae._listeners=null}),this.promise.then=ie=>{let se;const de=new Promise(fe=>{ae.subscribe(fe),se=fe}).then(ie);return de.cancel=function(){ae.unsubscribe(se)},de},ne(function(se,de,fe){ae.reason||(ae.reason=new CanceledError(se,de,fe),oe(ae.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(ne){if(this.reason){ne(this.reason);return}this._listeners?this._listeners.push(ne):this._listeners=[ne]}unsubscribe(ne){if(!this._listeners)return;const oe=this._listeners.indexOf(ne);oe!==-1&&this._listeners.splice(oe,1)}static source(){let ne;return{token:new CancelToken(function(ie){ne=ie}),cancel:ne}}}function spread(ee){return function(oe){return ee.apply(null,oe)}}function isAxiosError(ee){return utils$1.isObject(ee)&&ee.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([ee,ne])=>{HttpStatusCode[ne]=ee});function createInstance(ee){const ne=new Axios(ee),oe=bind(Axios.prototype.request,ne);return utils$1.extend(oe,Axios.prototype,ne,{allOwnKeys:!0}),utils$1.extend(oe,ne,null,{allOwnKeys:!0}),oe.create=function(ie){return createInstance(mergeConfig(ee,ie))},oe}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function ee(ne){return Promise.all(ne)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=ee=>formDataToJSON(utils$1.isHTMLForm(ee)?new FormData(ee):ee);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const api=axios.create({baseURL:"/",timeout:1e3*60,responseType:"json"});api.interceptors.request.use(ee=>{const ne=useSettingsStore(),oe=useUserStore$1();return ee.headers&&(ee.headers["Accept-Language"]=ne.lang,oe.isLogin&&(ee.headers.Token=oe.token)),ee.method,ee});api.interceptors.response.use(ee=>{if(ee.data.status===1){if(ee.data.error!=="")return index.error(ee.data.error,{zIndex:2e3}),Promise.reject(ee.data)}else useUserStore$1().logout();return Promise.resolve(ee.data)},ee=>{let ne=ee.message;return ne==="Network Error"?ne="后端网络故障":ne.includes("timeout")?ne="接口请求超时":ne.includes("Request failed with status code")&&(ne=`接口${ne.substr(ne.length-3)}异常`),index.error(ne,{zIndex:2e3}),Promise.reject(ee)});const apiUser={login:ee=>api.post("user/login",ee,{baseURL:"/mock/"}),permission:()=>api.get("user/permission",{baseURL:"/mock/"})};function _mergeRouteRecord(ee,...ne){return ne.reduce((oe,ae)=>{const ie=Object.assign({},oe.meta,ae.meta),se=[].concat(oe.alias||[],ae.alias||[]);return Object.assign(oe,ae),oe.meta=ie,oe.alias=se,oe},ee)}function createRouter(ee){const{extendRoutes:ne,routes:oe}=ee;return ne&&console.warn('"extendRoutes()" is deprecated, please modify the routes directly. See https://uvr.esm.is/guide/extending-routes.html#extending-routes-at-runtime for an alternative.'),createRouter$1(Object.assign(ee,{routes:typeof ne=="function"&&ne(oe)||oe}))}const scriptRel="modulepreload",assetsURL=function(ee,ne){return new URL(ee,ne).href},seen={},__vitePreload=function ee(ne,oe,ae){let ie=Promise.resolve();if(oe&&oe.length>0){const se=document.getElementsByTagName("link"),de=document.querySelector("meta[property=csp-nonce]"),fe=(de==null?void 0:de.nonce)||(de==null?void 0:de.getAttribute("nonce"));ie=Promise.all(oe.map(ve=>{if(ve=assetsURL(ve,ae),ve in seen)return;seen[ve]=!0;const be=ve.endsWith(".css"),ye=be?'[rel="stylesheet"]':"";if(!!ae)for(let Ee=se.length-1;Ee>=0;Ee--){const we=se[Ee];if(we.href===ve&&(!be||we.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${ve}"]${ye}`))return;const _e=document.createElement("link");if(_e.rel=be?"stylesheet":scriptRel,be||(_e.as="script",_e.crossOrigin=""),_e.href=ve,fe&&_e.setAttribute("nonce",fe),document.head.appendChild(_e),be)return new Promise((Ee,we)=>{_e.addEventListener("load",Ee),_e.addEventListener("error",()=>we(new Error(`Unable to preload CSS for ${ve}`)))})}))}return ie.then(()=>ne()).catch(se=>{const de=new Event("vite:preloadError",{cancelable:!0});if(de.payload=se,window.dispatchEvent(de),!de.defaultPrevented)throw se})},_definePage_default_0={meta:{title:"找不到页面"}},_definePage_default_2={meta:{title:"tabbar.default.feature",cache:!0}},_definePage_default_3={meta:{title:"基础组件"}},_definePage_default_4={meta:{title:"内建组件"}},_definePage_default_5={meta:{title:"复合组件"}},_definePage_default_6={meta:{title:"PageMain"}},_definePage_default_7={meta:{title:"Spartline"}},_definePage_default_8={meta:{title:"Trend"}},_definePage_default_9={meta:{title:"pages.function.errorLog"}},_definePage_default_10={meta:{title:"pages.function.font"}},_definePage_default_11={meta:{title:"pages.function.i18n"}},_definePage_default_12={meta:{title:"pages.function.icon"}},_definePage_default_13={meta:{title:"pages.function.keepAlive",cache:!0}},_definePage_default_14={meta:{title:"pages.function.scroll",cache:"/feature/function/scroll2"}},_definePage_default_15={meta:{title:"pages.function.scroll"}},_definePage_default_16={meta:{title:"pages.function.title"}},_definePage_default_17={meta:{title:"UnoCSS"}},_definePage_default_18={meta:{title:"pages.function.watermark"}},_definePage_default_19={meta:{title:"pages.function.zoomable"}},_definePage_default_20={meta:{title:"pages.navbar.custom-area"}},_definePage_default_21={meta:{title:"pages.navbar.custom-navbar"}},_definePage_default_22={meta:{title:"pages.navbar.custom-title"}},_definePage_default_23={meta:{title:"pages.navbar.default"}},_definePage_default_24={meta:{title:"pages.navbar.mode"}},_definePage_default_25={meta:{title:"pages.navbar.preset"}},_definePage_default_26={meta:{title:"pages.navbar.title-no-center"}},_definePage_default_27={meta:{title:"加载更多"}},_definePage_default_28={meta:{title:"商品列表"}},_definePage_default_29={meta:{title:"日程表"}},_definePage_default_30={meta:{title:"权限验证",auth:!0}},_definePage_default_31={meta:{title:"权限验证",auth:"permission.browse"}},_definePage_default_32={meta:{title:"过渡动画"}},_definePage_default_33={meta:{title:"ECharts"}},_definePage_default_34={meta:{title:"电子签名"}},_definePage_default_35={meta:{title:"二维码"}},_definePage_default_36={meta:{title:"轮播动画"}},_definePage_default_37={meta:{title:"VChart"}},_definePage_default_38={meta:{title:"pages.tabbar.badge"}},_definePage_default_39={meta:{title:"pages.tabbar.custom-area"}},_definePage_default_40={meta:{title:"pages.tabbar.default"}},_definePage_default_41={meta:{title:"pages.tabbar.multi"}},_definePage_default_42={name:"login",meta:{title:"登录"}},_definePage_default_43={name:"reload",meta:{title:"刷新页面",navbar:{enable:!1}}},_definePage_default_44={meta:{title:"tabbar.default.user",auth:!0}},routes=[{path:"/",name:"/",component:()=>__vitePreload(()=>import("./index-BSEnowPx.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},_mergeRouteRecord({path:"/:all(.*)",name:"/[...all]",component:()=>__vitePreload(()=>import("./_...all_-fbNppPCv.js"),[],import.meta.url)},_definePage_default_0),{path:"/feature",children:[_mergeRouteRecord({path:"",name:"/feature/",component:()=>__vitePreload(()=>import("./index-N5lckUVv.js"),__vite__mapDeps([4,1,2]),import.meta.url)},_definePage_default_2),{path:"component",children:[_mergeRouteRecord({path:"basic",name:"/feature/component/basic",component:()=>__vitePreload(()=>import("./basic-C5i5Q2mp.js"),__vite__mapDeps([5,1,2,6]),import.meta.url)},_definePage_default_3),_mergeRouteRecord({path:"built-in",name:"/feature/component/built-in",component:()=>__vitePreload(()=>import("./built-in-C00q0YiL.js"),__vite__mapDeps([7,1,2,6,8]),import.meta.url)},_definePage_default_4),_mergeRouteRecord({path:"composite",name:"/feature/component/composite",component:()=>__vitePreload(()=>import("./composite-BtGdoNGI.js"),__vite__mapDeps([9,1,2,6]),import.meta.url)},_definePage_default_5),_mergeRouteRecord({path:"pagemain-demo",name:"/feature/component/pagemain-demo",component:()=>__vitePreload(()=>import("./pagemain-demo-CxlVjjNx.js"),__vite__mapDeps([10,1,2,6,3]),import.meta.url)},_definePage_default_6),_mergeRouteRecord({path:"sparkline-demo",name:"/feature/component/sparkline-demo",component:()=>__vitePreload(()=>import("./sparkline-demo-B0gveUBF.js"),__vite__mapDeps([11,1,2,6,12]),import.meta.url)},_definePage_default_7),_mergeRouteRecord({path:"trend-demo",name:"/feature/component/trend-demo",component:()=>__vitePreload(()=>import("./trend-demo-CArUNWpa.js"),__vite__mapDeps([13,1,2,6]),import.meta.url)},_definePage_default_8)]},{path:"function",children:[_mergeRouteRecord({path:"errorLog",name:"/feature/function/errorLog",component:()=>__vitePreload(()=>import("./errorLog-DNF13oPM.js"),__vite__mapDeps([14,1,2]),import.meta.url)},_definePage_default_9),_mergeRouteRecord({path:"font",name:"/feature/function/font",component:()=>__vitePreload(()=>import("./font-C1zKEPi_.js"),__vite__mapDeps([15,1,2,6,16]),import.meta.url)},_definePage_default_10),_mergeRouteRecord({path:"i18n",name:"/feature/function/i18n",component:()=>__vitePreload(()=>import("./i18n-CCeXPdyq.js"),__vite__mapDeps([17,1,2,6]),import.meta.url)},_definePage_default_11),_mergeRouteRecord({path:"icon",name:"/feature/function/icon",component:()=>__vitePreload(()=>import("./icon-DC97ELbi.js"),__vite__mapDeps([18,1,2,6]),import.meta.url)},_definePage_default_12),_mergeRouteRecord({path:"keepAlive",name:"/feature/function/keepAlive",component:()=>__vitePreload(()=>import("./keepAlive-LOsMjHf1.js"),__vite__mapDeps([19,1,2,6]),import.meta.url)},_definePage_default_13),_mergeRouteRecord({path:"scroll",name:"/feature/function/scroll",component:()=>__vitePreload(()=>import("./scroll-BSMG2auX.js"),__vite__mapDeps([20,1,2]),import.meta.url)},_definePage_default_14),_mergeRouteRecord({path:"scroll2",name:"/feature/function/scroll2",component:()=>__vitePreload(()=>import("./scroll2-COIRDF_1.js"),__vite__mapDeps([21,1,2]),import.meta.url)},_definePage_default_15),_mergeRouteRecord({path:"title",name:"/feature/function/title",component:()=>__vitePreload(()=>import("./title-DiAaza3u.js"),__vite__mapDeps([22,1,2,6]),import.meta.url)},_definePage_default_16),_mergeRouteRecord({path:"unocss",name:"/feature/function/unocss",component:()=>__vitePreload(()=>import("./unocss-IuzecXKj.js"),__vite__mapDeps([23,1,2]),import.meta.url)},_definePage_default_17),_mergeRouteRecord({path:"watermark",name:"/feature/function/watermark",component:()=>__vitePreload(()=>import("./watermark-CTGHlhS0.js"),__vite__mapDeps([24,1,2]),import.meta.url)},_definePage_default_18),_mergeRouteRecord({path:"zoomable",name:"/feature/function/zoomable",component:()=>__vitePreload(()=>import("./zoomable-DZwxrOOZ.js"),__vite__mapDeps([25,1,2,6]),import.meta.url)},_definePage_default_19)]},{path:"navbar",children:[_mergeRouteRecord({path:"custom-area",name:"/feature/navbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-CYTopuMS.js"),__vite__mapDeps([26,1,2]),import.meta.url)},_definePage_default_20),_mergeRouteRecord({path:"custom-navbar",name:"/feature/navbar/custom-navbar",component:()=>__vitePreload(()=>import("./custom-navbar-gMgypht4.js"),__vite__mapDeps([27,1,2,28]),import.meta.url)},_definePage_default_21),_mergeRouteRecord({path:"custom-title",name:"/feature/navbar/custom-title",component:()=>__vitePreload(()=>import("./custom-title-Cbe_yyXz.js"),__vite__mapDeps([29,1,2]),import.meta.url)},_definePage_default_22),_mergeRouteRecord({path:"default",name:"/feature/navbar/default",component:()=>__vitePreload(()=>import("./default-C6BSQCLW.js"),__vite__mapDeps([30,1,2]),import.meta.url)},_definePage_default_23),_mergeRouteRecord({path:"mode",name:"/feature/navbar/mode",component:()=>__vitePreload(()=>import("./mode-e-w6n-AW.js"),__vite__mapDeps([31,1,2]),import.meta.url)},_definePage_default_24),{path:"none",name:"/feature/navbar/none",component:()=>__vitePreload(()=>import("./none-CQ5_a5ku.js"),__vite__mapDeps([32,1,2]),import.meta.url)},_mergeRouteRecord({path:"preset",name:"/feature/navbar/preset",component:()=>__vitePreload(()=>import("./preset-CR-N72Ln.js"),__vite__mapDeps([33,1,2]),import.meta.url)},_definePage_default_25),_mergeRouteRecord({path:"title-no-center",name:"/feature/navbar/title-no-center",component:()=>__vitePreload(()=>import("./title-no-center-BUzBlr6i.js"),__vite__mapDeps([34,1,2]),import.meta.url)},_definePage_default_26)]},{path:"page",children:[_mergeRouteRecord({path:"loadmore",name:"/feature/page/loadmore",component:()=>__vitePreload(()=>import("./loadmore-7vCrxIa-.js"),__vite__mapDeps([35,1,2]),import.meta.url)},_definePage_default_27),_mergeRouteRecord({path:"productlist",name:"/feature/page/productlist",component:()=>__vitePreload(()=>import("./productlist-CyYSlhJ0.js"),__vite__mapDeps([36,1,2,37]),import.meta.url)},_definePage_default_28),_mergeRouteRecord({path:"schedule",name:"/feature/page/schedule",component:()=>__vitePreload(()=>import("./schedule-SSIWYKoH.js"),__vite__mapDeps([38,1,2,39]),import.meta.url)},_definePage_default_29)]},{path:"permission",children:[_mergeRouteRecord({path:"",name:"/feature/permission/",component:()=>__vitePreload(()=>import("./index-BvzAowwi.js"),__vite__mapDeps([40,1,2,6,41]),import.meta.url)},_definePage_default_30),_mergeRouteRecord({path:"test",name:"/feature/permission/test",component:()=>__vitePreload(()=>import("./test-BbJOcG75.js"),__vite__mapDeps([42,1,2,6]),import.meta.url)},_definePage_default_31)]},{path:"plugin",children:[_mergeRouteRecord({path:"animation",name:"/feature/plugin/animation",component:()=>__vitePreload(()=>import("./animation-DjlLcNUL.js"),__vite__mapDeps([43,1,2,6,44]),import.meta.url)},_definePage_default_32),_mergeRouteRecord({path:"echarts",name:"/feature/plugin/echarts",component:()=>__vitePreload(()=>import("./echarts-DqZtRDc9.js"),__vite__mapDeps([45,1,2,6]),import.meta.url)},_definePage_default_33),_mergeRouteRecord({path:"esign",name:"/feature/plugin/esign",component:()=>__vitePreload(()=>import("./esign-BYcxLvjR.js"),__vite__mapDeps([46,1,2,6,41,47]),import.meta.url)},_definePage_default_34),_mergeRouteRecord({path:"qrcode",name:"/feature/plugin/qrcode",component:()=>__vitePreload(()=>import("./qrcode-CkCW6XaE.js"),__vite__mapDeps([48,1,2,6]),import.meta.url)},_definePage_default_35),_mergeRouteRecord({path:"swiper",name:"/feature/plugin/swiper",component:()=>__vitePreload(()=>import("./swiper-BzuCNneQ.js"),__vite__mapDeps([49,1,2,6,50]),import.meta.url)},_definePage_default_36),_mergeRouteRecord({path:"vchart",name:"/feature/plugin/vchart",component:()=>__vitePreload(()=>import("./vchart-C-lrzy8e.js"),__vite__mapDeps([51,1,2,6]),import.meta.url)},_definePage_default_37)]},{path:"tabbar",children:[_mergeRouteRecord({path:"badge",name:"/feature/tabbar/badge",component:()=>__vitePreload(()=>import("./badge-DSB-TR_K.js"),__vite__mapDeps([52,1,2,6]),import.meta.url)},_definePage_default_38),_mergeRouteRecord({path:"custom-area",name:"/feature/tabbar/custom-area",component:()=>__vitePreload(()=>import("./custom-area-DRoNMEDd.js"),__vite__mapDeps([53,1,2]),import.meta.url)},_definePage_default_39),_mergeRouteRecord({path:"default",name:"/feature/tabbar/default",component:()=>__vitePreload(()=>import("./default-BOtOfq5q.js"),__vite__mapDeps([54,1,2]),import.meta.url)},_definePage_default_40),_mergeRouteRecord({path:"multi",name:"/feature/tabbar/multi",component:()=>__vitePreload(()=>import("./multi-DEX-W5yZ.js"),__vite__mapDeps([55,1,2]),import.meta.url)},_definePage_default_41)]}]},_mergeRouteRecord({path:"/login",name:"login",component:()=>__vitePreload(()=>import("./login-C1NrYxae.js"),__vite__mapDeps([56,1,2,3,57]),import.meta.url)},_definePage_default_42),_mergeRouteRecord({path:"/reload",name:"reload",component:()=>__vitePreload(()=>import("./reload-DoCFZtm8.js"),[],import.meta.url)},_definePage_default_43),{path:"/user",children:[_mergeRouteRecord({path:"",name:"/user/",component:()=>__vitePreload(()=>import("./index-B2HCp-RK.js"),__vite__mapDeps([58,1,2,6]),import.meta.url)},_definePage_default_44)]}];function assertPath(ee){if(typeof ee!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,ne){for(var oe="",ae=0,ie=-1,se=0,de,fe=0;fe<=ee.length;++fe){if(fe2){var ve=oe.lastIndexOf("/");if(ve!==oe.length-1){ve===-1?(oe="",ae=0):(oe=oe.slice(0,ve),ae=oe.length-1-oe.lastIndexOf("/")),ie=fe,se=0;continue}}else if(oe.length===2||oe.length===1){oe="",ae=0,ie=fe,se=0;continue}}ne&&(oe.length>0?oe+="/..":oe="..",ae=2)}else oe.length>0?oe+="/"+ee.slice(ie+1,fe):oe=ee.slice(ie+1,fe),ae=fe-ie-1;ie=fe,se=0}else de===46&&se!==-1?++se:se=-1}return oe}function _format(ee,ne){var oe=ne.dir||ne.root,ae=ne.base||(ne.name||"")+(ne.ext||"");return oe?oe===ne.root?oe+ae:oe+ee+ae:ae}var posix={resolve:function ee(){for(var ne="",oe=!1,ae,ie=arguments.length-1;ie>=-1&&!oe;ie--){var se;ie>=0?se=arguments[ie]:(ae===void 0&&(ae=process.cwd()),se=ae),assertPath(se),se.length!==0&&(ne=se+"/"+ne,oe=se.charCodeAt(0)===47)}return ne=normalizeStringPosix(ne,!oe),oe?ne.length>0?"/"+ne:"/":ne.length>0?ne:"."},normalize:function ee(ne){if(assertPath(ne),ne.length===0)return".";var oe=ne.charCodeAt(0)===47,ae=ne.charCodeAt(ne.length-1)===47;return ne=normalizeStringPosix(ne,!oe),ne.length===0&&!oe&&(ne="."),ne.length>0&&ae&&(ne+="/"),oe?"/"+ne:ne},isAbsolute:function ee(ne){return assertPath(ne),ne.length>0&&ne.charCodeAt(0)===47},join:function ee(){if(arguments.length===0)return".";for(var ne,oe=0;oe0&&(ne===void 0?ne=ae:ne+="/"+ae)}return ne===void 0?".":posix.normalize(ne)},relative:function ee(ne,oe){if(assertPath(ne),assertPath(oe),ne===oe||(ne=posix.resolve(ne),oe=posix.resolve(oe),ne===oe))return"";for(var ae=1;aebe){if(oe.charCodeAt(de+$e)===47)return oe.slice(de+$e+1);if($e===0)return oe.slice(de+$e)}else se>be&&(ne.charCodeAt(ae+$e)===47?ye=$e:$e===0&&(ye=0));break}var _e=ne.charCodeAt(ae+$e),Ee=oe.charCodeAt(de+$e);if(_e!==Ee)break;_e===47&&(ye=$e)}var we="";for($e=ae+ye+1;$e<=ie;++$e)($e===ie||ne.charCodeAt($e)===47)&&(we.length===0?we+="..":we+="/..");return we.length>0?we+oe.slice(de+ye):(de+=ye,oe.charCodeAt(de)===47&&++de,oe.slice(de))},_makeLong:function ee(ne){return ne},dirname:function ee(ne){if(assertPath(ne),ne.length===0)return".";for(var oe=ne.charCodeAt(0),ae=oe===47,ie=-1,se=!0,de=ne.length-1;de>=1;--de)if(oe=ne.charCodeAt(de),oe===47){if(!se){ie=de;break}}else se=!1;return ie===-1?ae?"/":".":ae&&ie===1?"//":ne.slice(0,ie)},basename:function ee(ne,oe){if(oe!==void 0&&typeof oe!="string")throw new TypeError('"ext" argument must be a string');assertPath(ne);var ae=0,ie=-1,se=!0,de;if(oe!==void 0&&oe.length>0&&oe.length<=ne.length){if(oe.length===ne.length&&oe===ne)return"";var fe=oe.length-1,ve=-1;for(de=ne.length-1;de>=0;--de){var be=ne.charCodeAt(de);if(be===47){if(!se){ae=de+1;break}}else ve===-1&&(se=!1,ve=de+1),fe>=0&&(be===oe.charCodeAt(fe)?--fe===-1&&(ie=de):(fe=-1,ie=ve))}return ae===ie?ie=ve:ie===-1&&(ie=ne.length),ne.slice(ae,ie)}else{for(de=ne.length-1;de>=0;--de)if(ne.charCodeAt(de)===47){if(!se){ae=de+1;break}}else ie===-1&&(se=!1,ie=de+1);return ie===-1?"":ne.slice(ae,ie)}},extname:function ee(ne){assertPath(ne);for(var oe=-1,ae=0,ie=-1,se=!0,de=0,fe=ne.length-1;fe>=0;--fe){var ve=ne.charCodeAt(fe);if(ve===47){if(!se){ae=fe+1;break}continue}ie===-1&&(se=!1,ie=fe+1),ve===46?oe===-1?oe=fe:de!==1&&(de=1):oe!==-1&&(de=-1)}return oe===-1||ie===-1||de===0||de===1&&oe===ie-1&&oe===ae+1?"":ne.slice(oe,ie)},format:function ee(ne){if(ne===null||typeof ne!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ne);return _format("/",ne)},parse:function ee(ne){assertPath(ne);var oe={root:"",dir:"",base:"",ext:"",name:""};if(ne.length===0)return oe;var ae=ne.charCodeAt(0),ie=ae===47,se;ie?(oe.root="/",se=1):se=0;for(var de=-1,fe=0,ve=-1,be=!0,ye=ne.length-1,$e=0;ye>=se;--ye){if(ae=ne.charCodeAt(ye),ae===47){if(!be){fe=ye+1;break}continue}ve===-1&&(be=!1,ve=ye+1),ae===46?de===-1?de=ye:$e!==1&&($e=1):de!==-1&&($e=-1)}return de===-1||ve===-1||$e===0||$e===1&&de===ve-1&&de===fe+1?ve!==-1&&(fe===0&&ie?oe.base=oe.name=ne.slice(1,ve):oe.base=oe.name=ne.slice(fe,ve)):(fe===0&&ie?(oe.name=ne.slice(1,de),oe.base=ne.slice(1,ve)):(oe.name=ne.slice(fe,de),oe.base=ne.slice(fe,ve)),oe.ext=ne.slice(de,ve)),fe>0?oe.dir=ne.slice(0,fe-1):ie&&(oe.dir="/"),oe},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix;const path=getDefaultExportFromCjs(pathBrowserify);var nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){var oe={};oe.version="0.2.0";var ae=oe.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};oe.configure=function(we){var Pe,Ce;for(Pe in we)Ce=we[Pe],Ce!==void 0&&we.hasOwnProperty(Pe)&&(ae[Pe]=Ce);return this},oe.status=null,oe.set=function(we){var Pe=oe.isStarted();we=ie(we,ae.minimum,1),oe.status=we===1?null:we;var Ce=oe.render(!Pe),Oe=Ce.querySelector(ae.barSelector),Ae=ae.speed,Ne=ae.easing;return Ce.offsetWidth,fe(function(ke){ae.positionUsing===""&&(ae.positionUsing=oe.getPositioningCSS()),ve(Oe,de(we,Ae,Ne)),we===1?(ve(Ce,{transition:"none",opacity:1}),Ce.offsetWidth,setTimeout(function(){ve(Ce,{transition:"all "+Ae+"ms linear",opacity:0}),setTimeout(function(){oe.remove(),ke()},Ae)},Ae)):setTimeout(ke,Ae)}),this},oe.isStarted=function(){return typeof oe.status=="number"},oe.start=function(){oe.status||oe.set(0);var we=function(){setTimeout(function(){oe.status&&(oe.trickle(),we())},ae.trickleSpeed)};return ae.trickle&&we(),this},oe.done=function(we){return!we&&!oe.status?this:oe.inc(.3+.5*Math.random()).set(1)},oe.inc=function(we){var Pe=oe.status;return Pe?(typeof we!="number"&&(we=(1-Pe)*ie(Math.random()*Pe,.1,.95)),Pe=ie(Pe+we,0,.994),oe.set(Pe)):oe.start()},oe.trickle=function(){return oe.inc(Math.random()*ae.trickleRate)},function(){var we=0,Pe=0;oe.promise=function(Ce){return!Ce||Ce.state()==="resolved"?this:(Pe===0&&oe.start(),we++,Pe++,Ce.always(function(){Pe--,Pe===0?(we=0,oe.done()):oe.set((we-Pe)/we)}),this)}}(),oe.render=function(we){if(oe.isRendered())return document.getElementById("nprogress");ye(document.documentElement,"nprogress-busy");var Pe=document.createElement("div");Pe.id="nprogress",Pe.innerHTML=ae.template;var Ce=Pe.querySelector(ae.barSelector),Oe=we?"-100":se(oe.status||0),Ae=document.querySelector(ae.parent),Ne;return ve(Ce,{transition:"all 0 linear",transform:"translate3d("+Oe+"%,0,0)"}),ae.showSpinner||(Ne=Pe.querySelector(ae.spinnerSelector),Ne&&Ee(Ne)),Ae!=document.body&&ye(Ae,"nprogress-custom-parent"),Ae.appendChild(Pe),Pe},oe.remove=function(){$e(document.documentElement,"nprogress-busy"),$e(document.querySelector(ae.parent),"nprogress-custom-parent");var we=document.getElementById("nprogress");we&&Ee(we)},oe.isRendered=function(){return!!document.getElementById("nprogress")},oe.getPositioningCSS=function(){var we=document.body.style,Pe="WebkitTransform"in we?"Webkit":"MozTransform"in we?"Moz":"msTransform"in we?"ms":"OTransform"in we?"O":"";return Pe+"Perspective"in we?"translate3d":Pe+"Transform"in we?"translate":"margin"};function ie(we,Pe,Ce){return weCe?Ce:we}function se(we){return(-1+we)*100}function de(we,Pe,Ce){var Oe;return ae.positionUsing==="translate3d"?Oe={transform:"translate3d("+se(we)+"%,0,0)"}:ae.positionUsing==="translate"?Oe={transform:"translate("+se(we)+"%,0)"}:Oe={"margin-left":se(we)+"%"},Oe.transition="all "+Pe+"ms "+Ce,Oe}var fe=function(){var we=[];function Pe(){var Ce=we.shift();Ce&&Ce(Pe)}return function(Ce){we.push(Ce),we.length==1&&Pe()}}(),ve=function(){var we=["Webkit","O","Moz","ms"],Pe={};function Ce(ke){return ke.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Re,Le){return Le.toUpperCase()})}function Oe(ke){var Re=document.body.style;if(ke in Re)return ke;for(var Le=we.length,Me=ke.charAt(0).toUpperCase()+ke.slice(1),Ie;Le--;)if(Ie=we[Le]+Me,Ie in Re)return Ie;return ke}function Ae(ke){return ke=Ce(ke),Pe[ke]||(Pe[ke]=Oe(ke))}function Ne(ke,Re,Le){Re=Ae(Re),ke.style[Re]=Le}return function(ke,Re){var Le=arguments,Me,Ie;if(Le.length==2)for(Me in Re)Ie=Re[Me],Ie!==void 0&&Re.hasOwnProperty(Me)&&Ne(ke,Me,Ie);else Ne(ke,Le[1],Le[2])}}();function be(we,Pe){var Ce=typeof we=="string"?we:_e(we);return Ce.indexOf(" "+Pe+" ")>=0}function ye(we,Pe){var Ce=_e(we),Oe=Ce+Pe;be(Ce,Pe)||(we.className=Oe.substring(1))}function $e(we,Pe){var Ce=_e(we),Oe;be(we,Pe)&&(Oe=Ce.replace(" "+Pe+" "," "),we.className=Oe.substring(1,Oe.length-1))}function _e(we){return(" "+(we.className||"")+" ").replace(/\s+/gi," ")}function Ee(we){we&&we.parentNode&&we.parentNode.removeChild(we)}return oe})})(nprogress$1);var nprogressExports=nprogress$1.exports;const nprogress=getDefaultExportFromCjs(nprogressExports);function useNProgress(ee=null,ne){const oe=ref(ee),ae=computed({set:se=>se?nprogress.start():nprogress.done(),get:()=>typeof oe.value=="number"&&oe.value<1});ne&&nprogress.configure(ne);const ie=nprogress.set;return nprogress.set=se=>(oe.value=se,ie.call(nprogress,se)),watchEffect(()=>{typeof oe.value=="number"&&isClient&&ie.call(nprogress,oe.value)}),tryOnScopeDispose(nprogress.remove),{isLoading:ae,progress:oe,start:nprogress.start,done:nprogress.done,remove:()=>{oe.value=null,nprogress.remove()}}}const{isLoading}=useNProgress(null,{showSpinner:!1,parent:"#app"});function resolveRoutePath(ee,ne){return ee?path.resolve(ee,ne??""):ne??""}function flatRoutesRecursive(ee,ne=""){const oe=[];for(const ae of ee)ae.children?oe.push(...flatRoutesRecursive(ae.children,resolveRoutePath(ne,ae.path))):oe.push({...ae,path:resolveRoutePath(ne,ae.path)});return oe}const router=createRouter({history:createWebHashHistory(),routes:flatRoutesRecursive(routes)});router.beforeEach(async(ee,ne,oe)=>{const ae=useSettingsStore(),ie=useUserStore$1();ae.settings.app.enableProgress&&(isLoading.value=!0),ee.meta.auth?ie.isLogin?(ae.settings.app.enablePermission&&!ie.isGetPermissions&&await ie.getPermissions(),oe()):oe({name:"login",query:{redirect:ee.fullPath}}):oe()});router.afterEach((ee,ne)=>{var ie,se,de,fe;const oe=useSettingsStore();oe.settings.app.enableProgress&&(isLoading.value=!1),oe.setTitle(ee.meta.title??"");const ae=useKeepAliveStore();if(ee.fullPath!==ne.fullPath){if(ee.meta.cache){const ve=(se=(ie=ee.matched.at(-1))==null?void 0:ie.components)==null?void 0:se.default.name;ve?ae.add(ve):console.warn("[Fantastic-mobile] 该页面组件未设置组件名,会导致缓存失效,请检查")}if(ne.meta.cache){const ve=(fe=(de=ne.matched.at(-1))==null?void 0:de.components)==null?void 0:fe.default.name;if(ve){switch(typeof ne.meta.cache){case"string":ne.meta.cache!==ee.name&&ae.remove(ve);break;case"object":ne.meta.cache.includes(ee.name)||ae.remove(ve);break}if(ne.meta.noCache)switch(typeof ne.meta.noCache){case"string":ne.meta.noCache===ee.name&&ae.remove(ve);break;case"object":ne.meta.noCache.includes(ee.name)&&ae.remove(ve);break}}}}document.documentElement.scrollTop=0});const settingsStore=useSettingsStore(pinia),storage={local:{has:ee=>{var ne;return Object.prototype.hasOwnProperty.call(localStorage,`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},get:ee=>{var ne;return localStorage.getItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},set:(ee,ne)=>{var oe;localStorage.setItem(`${(oe=settingsStore.settings.app)==null?void 0:oe.storagePrefix}${ee}`,ne)},remove:ee=>{var ne;localStorage.removeItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},clear:()=>{localStorage.clear()}},session:{has:ee=>{var ne;return Object.prototype.hasOwnProperty.call(sessionStorage,`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},get:ee=>{var ne;return sessionStorage.getItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},set:(ee,ne)=>{var oe;sessionStorage.setItem(`${(oe=settingsStore.settings.app)==null?void 0:oe.storagePrefix}${ee}`,ne)},remove:ee=>{var ne;sessionStorage.removeItem(`${(ne=settingsStore.settings.app)==null?void 0:ne.storagePrefix}${ee}`)},clear:()=>{sessionStorage.clear()}}},useUserStore=defineStore("user",()=>{const ee=ref(storage.local.get("account")??""),ne=ref(storage.local.get("token")??""),oe=ref(storage.local.get("avatar")??""),ae=ref(!1),ie=ref([]),se=computed(()=>!!ne.value);function de(be){return new Promise((ye,$e)=>{apiUser.login(be).then(_e=>{storage.local.set("account",_e.data.account),storage.local.set("token",_e.data.token),storage.local.set("avatar",_e.data.avatar),ee.value=_e.data.account,ne.value=_e.data.token,oe.value=_e.data.avatar,ye(_e)}).catch(_e=>{$e(_e)})})}function fe(){storage.local.remove("account"),storage.local.remove("token"),storage.local.remove("avatar"),ee.value="",ne.value="",oe.value="",router.push("/")}async function ve(){const be=await apiUser.permission();ie.value=be.data.permissions,ae.value=!0}return{account:ee,token:ne,avatar:oe,isLogin:se,isGetPermissions:ae,permissions:ie,login:de,logout:fe,getPermissions:ve}}),useUserStore$1=useUserStore;function useAuth(){function ee(ae){const ie=useSettingsStore(),se=useUserStore$1();return ie.settings.app.enablePermission?se.permissions.includes(ae):!0}function ne(ae){let ie;return typeof ae=="string"?ie=ae!==""?ee(ae):!0:ie=ae.length>0?ae.some(se=>ee(se)):!0,ie}function oe(ae){return ae.length>0?ae.every(ie=>ee(ie)):!0}return{auth:ne,authAll:oe}}const _sfc_main=defineComponent({__name:"App",setup(ee){const ne=useRoute$1(),oe=useSettingsStore(),ae=useKeepAliveStore();useWatermarkStore();const{auth:ie}=useAuth(),se=computed(()=>ne.matched.every(ye=>ye.meta.auth?ye.meta.auth===!0?!0:ie(ye.meta.auth):!0)),{t:de,te:fe,locale:ve}=useI18n();watch(()=>oe.lang,()=>{ve.value=oe.lang}),watch([()=>oe.settings.app.enableDynamicTitle,()=>oe.title,()=>oe.customTitleList,()=>oe.lang],()=>{nextTick(()=>{var ye;if(oe.settings.app.enableDynamicTitle&&oe.title){const $e=((ye=oe.customTitleList.find(_e=>_e.fullPath===ne.fullPath))==null?void 0:ye.title)||oe.title&&(fe(oe.title)?de(oe.title):oe.title);document.title=$e??"Fantastic-mobile 专业版"}else document.title="Fantastic-mobile 专业版"})},{immediate:!0,deep:!0});const be=!0;return(ye,$e)=>{const _e=_sfc_main$2,Ee=resolveComponent("RouterView"),we=_sfc_main$9,Pe=__unplugin_components_2;return openBlock(),createBlock(_sfc_main$1,null,{default:withCtx(()=>[createVNode(Ee,null,{default:withCtx(({Component:Ce})=>[createVNode(Transition,{name:unref(oe).settings.mainPage.enableTransition?unref(oe).settings.mainPage.transitionMode:"",mode:"out-in",appear:""},{default:withCtx(()=>[(openBlock(),createBlock(KeepAlive,{include:unref(ae).list},[unref(se)?(openBlock(),createBlock(resolveDynamicComponent(Ce),{key:unref(ne).fullPath})):(openBlock(),createBlock(_e,{key:1}))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),be?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",{class:"app-setting",onClick:$e[0]||($e[0]=Ce=>unref(eventBus).emit("global-app-setting-toggle"))},[createVNode(we,{name:"i-uiw:setting-o",class:"icon"})]),createVNode(Pe)],64)):createCommentVNode("",!0)]),_:1})}}}),App=_export_sfc(_sfc_main,[["__scopeId","data-v-5390d74d"]]);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var _extends=Object.assign||function(ee){for(var ne=1;ne1&&arguments[1]!==void 0?arguments[1]:{},ae=window.Promise||function(He){function ot(){}He(ot,ot)},ie=function(He){var ot=He.target;if(ot===Fe){we();return}Ne.indexOf(ot)!==-1&&Pe({target:ot})},se=function(){if(!(Re||!Ie.original)){var He=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(Le-He)>Me.scrollOffset&&setTimeout(we,150)}},de=function(He){var ot=He.key||He.keyCode;(ot==="Escape"||ot==="Esc"||ot===27)&&we()},fe=function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ot=He;if(He.background&&(Fe.style.background=He.background),He.container&&He.container instanceof Object&&(ot.container=_extends({},Me.container,He.container)),He.template){var Nt=isNode(He.template)?He.template:document.querySelector(He.template);ot.template=Nt}return Me=_extends({},Me,ot),Ne.forEach(function(st){st.dispatchEvent(createCustomEvent("medium-zoom:update",{detail:{zoom:je}}))}),je},ve=function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ee(_extends({},Me,He))},be=function(){for(var He=arguments.length,ot=Array(He),Nt=0;Nt0?ot.reduce(function(Ue,Ze){return[].concat(Ue,getImagesFromSelector(Ze))},[]):Ne;return st.forEach(function(Ue){Ue.classList.remove("medium-zoom-image"),Ue.dispatchEvent(createCustomEvent("medium-zoom:detach",{detail:{zoom:je}}))}),Ne=Ne.filter(function(Ue){return st.indexOf(Ue)===-1}),je},$e=function(He,ot){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.forEach(function(st){st.addEventListener("medium-zoom:"+He,ot,Nt)}),ke.push({type:"medium-zoom:"+He,listener:ot,options:Nt}),je},_e=function(He,ot){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.forEach(function(st){st.removeEventListener("medium-zoom:"+He,ot,Nt)}),ke=ke.filter(function(st){return!(st.type==="medium-zoom:"+He&&st.listener.toString()===ot.toString())}),je},Ee=function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ot=He.target,Nt=function(){var Ue={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Ze=void 0,Tt=void 0;if(Me.container)if(Me.container instanceof Object)Ue=_extends({},Ue,Me.container),Ze=Ue.width-Ue.left-Ue.right-Me.margin*2,Tt=Ue.height-Ue.top-Ue.bottom-Me.margin*2;else{var Vt=isNode(Me.container)?Me.container:document.querySelector(Me.container),Ut=Vt.getBoundingClientRect(),We=Ut.width,Pt=Ut.height,Mt=Ut.left,jt=Ut.top;Ue=_extends({},Ue,{width:We,height:Pt,left:Mt,top:jt})}Ze=Ze||Ue.width-Me.margin*2,Tt=Tt||Ue.height-Me.margin*2;var Rt=Ie.zoomedHd||Ie.original,Wt=isSvg(Rt)?Ze:Rt.naturalWidth||Ze,Ke=isSvg(Rt)?Tt:Rt.naturalHeight||Tt,It=Rt.getBoundingClientRect(),Lt=It.top,Dt=It.left,tn=It.width,Zt=It.height,Xe=Math.min(Math.max(tn,Wt),Ze)/tn,nt=Math.min(Math.max(Zt,Ke),Tt)/Zt,Bt=Math.min(Xe,nt),Gt=(-Dt+(Ze-tn)/2+Me.margin+Ue.left)/Bt,Kt=(-Lt+(Tt-Zt)/2+Me.margin+Ue.top)/Bt,Xt="scale("+Bt+") translate3d("+Gt+"px, "+Kt+"px, 0)";Ie.zoomed.style.transform=Xt,Ie.zoomedHd&&(Ie.zoomedHd.style.transform=Xt)};return new ae(function(st){if(ot&&Ne.indexOf(ot)===-1){st(je);return}var Ue=function We(){Re=!1,Ie.zoomed.removeEventListener("transitionend",We),Ie.original.dispatchEvent(createCustomEvent("medium-zoom:opened",{detail:{zoom:je}})),st(je)};if(Ie.zoomed){st(je);return}if(ot)Ie.original=ot;else if(Ne.length>0){var Ze=Ne;Ie.original=Ze[0]}else{st(je);return}if(Ie.original.dispatchEvent(createCustomEvent("medium-zoom:open",{detail:{zoom:je}})),Le=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Re=!0,Ie.zoomed=cloneTarget(Ie.original),document.body.appendChild(Fe),Me.template){var Tt=isNode(Me.template)?Me.template:document.querySelector(Me.template);Ie.template=document.createElement("div"),Ie.template.appendChild(Tt.content.cloneNode(!0)),document.body.appendChild(Ie.template)}if(Ie.original.parentElement&&Ie.original.parentElement.tagName==="PICTURE"&&Ie.original.currentSrc&&(Ie.zoomed.src=Ie.original.currentSrc),document.body.appendChild(Ie.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),Ie.original.classList.add("medium-zoom-image--hidden"),Ie.zoomed.classList.add("medium-zoom-image--opened"),Ie.zoomed.addEventListener("click",we),Ie.zoomed.addEventListener("transitionend",Ue),Ie.original.getAttribute("data-zoom-src")){Ie.zoomedHd=Ie.zoomed.cloneNode(),Ie.zoomedHd.removeAttribute("srcset"),Ie.zoomedHd.removeAttribute("sizes"),Ie.zoomedHd.removeAttribute("loading"),Ie.zoomedHd.src=Ie.zoomed.getAttribute("data-zoom-src"),Ie.zoomedHd.onerror=function(){clearInterval(Vt),console.warn("Unable to reach the zoom image target "+Ie.zoomedHd.src),Ie.zoomedHd=null,Nt()};var Vt=setInterval(function(){Ie.zoomedHd.complete&&(clearInterval(Vt),Ie.zoomedHd.classList.add("medium-zoom-image--opened"),Ie.zoomedHd.addEventListener("click",we),document.body.appendChild(Ie.zoomedHd),Nt())},10)}else if(Ie.original.hasAttribute("srcset")){Ie.zoomedHd=Ie.zoomed.cloneNode(),Ie.zoomedHd.removeAttribute("sizes"),Ie.zoomedHd.removeAttribute("loading");var Ut=Ie.zoomedHd.addEventListener("load",function(){Ie.zoomedHd.removeEventListener("load",Ut),Ie.zoomedHd.classList.add("medium-zoom-image--opened"),Ie.zoomedHd.addEventListener("click",we),document.body.appendChild(Ie.zoomedHd),Nt()})}else Nt()})},we=function(){return new ae(function(He){if(Re||!Ie.original){He(je);return}var ot=function Nt(){Ie.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(Ie.zoomed),Ie.zoomedHd&&document.body.removeChild(Ie.zoomedHd),document.body.removeChild(Fe),Ie.zoomed.classList.remove("medium-zoom-image--opened"),Ie.template&&document.body.removeChild(Ie.template),Re=!1,Ie.zoomed.removeEventListener("transitionend",Nt),Ie.original.dispatchEvent(createCustomEvent("medium-zoom:closed",{detail:{zoom:je}})),Ie.original=null,Ie.zoomed=null,Ie.zoomedHd=null,Ie.template=null,He(je)};Re=!0,document.body.classList.remove("medium-zoom--opened"),Ie.zoomed.style.transform="",Ie.zoomedHd&&(Ie.zoomedHd.style.transform=""),Ie.template&&(Ie.template.style.transition="opacity 150ms",Ie.template.style.opacity=0),Ie.original.dispatchEvent(createCustomEvent("medium-zoom:close",{detail:{zoom:je}})),Ie.zoomed.addEventListener("transitionend",ot)})},Pe=function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ot=He.target;return Ie.original?we():Ee({target:ot})},Ce=function(){return Me},Oe=function(){return Ne},Ae=function(){return Ie.original},Ne=[],ke=[],Re=!1,Le=0,Me=oe,Ie={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(ne)==="[object Object]"?Me=ne:(ne||typeof ne=="string")&&be(ne),Me=_extends({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},Me);var Fe=createOverlay(Me.background);document.addEventListener("click",ie),document.addEventListener("keyup",de),document.addEventListener("scroll",se),window.addEventListener("resize",we);var je={open:Ee,close:we,toggle:Pe,update:fe,clone:ve,attach:be,detach:ye,on:$e,off:_e,getOptions:Ce,getImages:Oe,getZoomedImage:Ae};return je};function styleInject(ee,ne){ne===void 0&&(ne={});var oe=ne.insertAt;if(!(typeof document>"u")){var ae=document.head||document.getElementsByTagName("head")[0],ie=document.createElement("style");ie.type="text/css",oe==="top"&&ae.firstChild?ae.insertBefore(ie,ae.firstChild):ae.appendChild(ie),ie.styleSheet?ie.styleSheet.cssText=ee:ie.appendChild(document.createTextNode(ee))}}var css=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";styleInject(css);function directive(ee){ee.directive("auth",{mounted:(ne,oe)=>{useAuth().auth(oe.value)||ne.remove()}}),ee.directive("auth-all",{mounted:(ne,oe)=>{useAuth().authAll(oe.value)||ne.remove()}}),ee.directive("zoomable",{mounted:ne=>{mediumZoom(ne,{background:"var(--g-bg)"})}})}var dayjs_min={exports:{}};(function(ee,ne){(function(oe,ae){ee.exports=ae()})(commonjsGlobal,function(){var oe=1e3,ae=6e4,ie=36e5,se="millisecond",de="second",fe="minute",ve="hour",be="day",ye="week",$e="month",_e="quarter",Ee="year",we="date",Pe="Invalid Date",Ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Oe=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Nt){var st=["th","st","nd","rd"],Ue=Nt%100;return"["+Nt+(st[(Ue-20)%10]||st[Ue]||st[0])+"]"}},Ne=function(Nt,st,Ue){var Ze=String(Nt);return!Ze||Ze.length>=st?Nt:""+Array(st+1-Ze.length).join(Ue)+Nt},ke={s:Ne,z:function(Nt){var st=-Nt.utcOffset(),Ue=Math.abs(st),Ze=Math.floor(Ue/60),Tt=Ue%60;return(st<=0?"+":"-")+Ne(Ze,2,"0")+":"+Ne(Tt,2,"0")},m:function Nt(st,Ue){if(st.date()1)return Nt(Ut[0])}else{var We=st.name;Le[We]=st,Tt=We}return!Ze&&Tt&&(Re=Tt),Tt||!Ze&&Re},je=function(Nt,st){if(Ie(Nt))return Nt.clone();var Ue=typeof st=="object"?st:{};return Ue.date=Nt,Ue.args=arguments,new He(Ue)},Be=ke;Be.l=Fe,Be.i=Ie,Be.w=function(Nt,st){return je(Nt,{locale:st.$L,utc:st.$u,x:st.$x,$offset:st.$offset})};var He=function(){function Nt(Ue){this.$L=Fe(Ue.locale,null,!0),this.parse(Ue),this.$x=this.$x||Ue.x||{},this[Me]=!0}var st=Nt.prototype;return st.parse=function(Ue){this.$d=function(Ze){var Tt=Ze.date,Vt=Ze.utc;if(Tt===null)return new Date(NaN);if(Be.u(Tt))return new Date;if(Tt instanceof Date)return new Date(Tt);if(typeof Tt=="string"&&!/Z$/i.test(Tt)){var Ut=Tt.match(Ce);if(Ut){var We=Ut[2]-1||0,Pt=(Ut[7]||"0").substring(0,3);return Vt?new Date(Date.UTC(Ut[1],We,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Pt)):new Date(Ut[1],We,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Pt)}}return new Date(Tt)}(Ue),this.init()},st.init=function(){var Ue=this.$d;this.$y=Ue.getFullYear(),this.$M=Ue.getMonth(),this.$D=Ue.getDate(),this.$W=Ue.getDay(),this.$H=Ue.getHours(),this.$m=Ue.getMinutes(),this.$s=Ue.getSeconds(),this.$ms=Ue.getMilliseconds()},st.$utils=function(){return Be},st.isValid=function(){return this.$d.toString()!==Pe},st.isSame=function(Ue,Ze){var Tt=je(Ue);return this.startOf(Ze)<=Tt&&Tt<=this.endOf(Ze)},st.isAfter=function(Ue,Ze){return je(Ue){const se={url:location.href,err:{message:oe.message,stack:oe.stack},info:ie,datetime:dayjs().format("YYYY-MM-DD HH:mm:ss")};sessionStorage.setItem("errorLog",JSON.stringify(se))})}if(typeof window<"u"){let ee=function(){var ne=document.body,oe=document.getElementById("__svg__icons__dom__");oe||(oe=document.createElementNS("http://www.w3.org/2000/svg","svg"),oe.style.position="absolute",oe.style.width="0",oe.style.height="0",oe.id="__svg__icons__dom__",oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),oe.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),oe.innerHTML='',ne.insertBefore(oe,ne.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ee):ee()}const app=createApp(App);app.use(index);app.use(pinia);app.use(router);app.use(ui);app.use(setupI18n());directive(app);errorLog(app);app.mount("#app");export{$t as $,isObjectLike as A,baseGetTag as B,isArray$3 as C,isArguments as D,arrayPush as E,Fragment as F,setToString as G,overRest as H,isLength as I,isIndex as J,isObject$5 as K,assignValue as L,MapCache as M,mergeModels as N,computed as O,useModel as P,dayjs as Q,mergeProps as R,Symbol$1 as S,useCssVars as T,withDirectives as U,vShow as V,normalizeStyle as W,useSettingsStore as X,nextTick as Y,pushScopeId as Z,_sfc_main$9 as _,createBaseVNode as a,popScopeId as a0,setupI18n as a1,getLocales as a2,useRoute$1 as a3,useWatermarkStore as a4,resolveDirective as a5,showToast as a6,withModifiers as a7,api as a8,renderSlot as a9,onBeforeUnmount as aA,h$2 as aB,onBeforeUpdate as aC,getDefaultExportFromCjs as aD,useTabbarBadgeStore as aE,normalizeProps as aa,guardReactiveProps as ab,Transition as ac,useSlots as ad,Ye as ae,he as af,Ge as ag,Ve as ah,Je as ai,Se as aj,localesName as ak,resolveDynamicComponent as al,onActivated as am,useElementSize as an,watch as ao,onBeforeRouteLeave as ap,useAuth as aq,useUserStore$1 as ar,inBrowser$1 as as,extend$1 as at,isObject$1 as au,mountComponent as av,usePopupState as aw,stdin_default$E as ax,onUpdated as ay,provide as az,createVNode as b,createBlock as c,defineComponent as d,createTextVNode as e,_sfc_main$7 as f,onUnmounted as g,onMounted as h,isRef as i,createElementBlock as j,useRouter as k,useI18n as l,resolveComponent as m,renderList as n,openBlock as o,createCommentVNode as p,normalizeClass as q,ref as r,_sfc_main$6 as s,toDisplayString$1 as t,unref as u,_sfc_main$8 as v,withCtx as w,_sfc_main$4 as x,_sfc_main$5 as y,_export_sfc as z}; diff --git a/assets/index-DpnASd8N.js.br b/assets/index-DpnASd8N.js.br new file mode 100644 index 00000000..5046fc3e Binary files /dev/null and b/assets/index-DpnASd8N.js.br differ diff --git a/assets/index-DpnASd8N.js.gz b/assets/index-DpnASd8N.js.gz new file mode 100644 index 00000000..5f4d7239 Binary files /dev/null and b/assets/index-DpnASd8N.js.gz differ diff --git a/assets/index-N5lckUVv.js b/assets/index-N5lckUVv.js new file mode 100644 index 00000000..4cf38dc6 --- /dev/null +++ b/assets/index-N5lckUVv.js @@ -0,0 +1 @@ +import{_ as k}from"./index-Cwg3TLNR.js";import{d as y,l as w,c as i,w as f,m as z,o as a,a as n,j as s,n as b,F as d,p as c,t as m,u as o,q as g,b as C,$ as t,_ as S}from"./index-DpnASd8N.js";const B={class:"p-4"},L={class:"inline-flex items-center gap-2 text-gray-7 dark-text-gray-3"},V={class:"relative z-0 inline-block text-2xl font-bold after:absolute after:bottom-0 after:left-0 after:h-2 after:w-full after:bg-yellow after:content-[''] after:-z-1 after:dark-bg-yellow-9"},q={class:"grid grid-cols-2 mt-4 gap-3"},F={key:1,class:"z-1 flex-center b-r-1 b-r-[var(--g-bg)] b-r-solid px-3 py-2 pe-2"},P=y({name:"Feature",__name:"index",setup(N){const{t:p,te:u}=w(),h=[{title:t("pages.navbar.root"),icon:"i-fluent:document-header-16-regular",routes:[{path:"/feature/navbar/default",title:t("pages.navbar.default")},{path:"/feature/navbar/none",title:t("pages.navbar.none")},{path:"/feature/navbar/preset",title:t("pages.navbar.preset"),pro:!0},{path:"/feature/navbar/mode",title:t("pages.navbar.mode"),pro:!0},{path:"/feature/navbar/title-no-center",title:t("pages.navbar.title-no-center"),pro:!0},{path:"/feature/navbar/custom-title",title:t("pages.navbar.custom-title"),pro:!0},{path:"/feature/navbar/custom-area",title:t("pages.navbar.custom-area")},{path:"/feature/navbar/custom-navbar",title:t("pages.navbar.custom-navbar")}]},{title:t("pages.tabbar.root"),icon:"i-fluent:document-footer-16-regular",routes:[{path:"/feature/tabbar/default",title:t("pages.tabbar.default")},{path:"/feature/tabbar/multi",title:t("pages.tabbar.multi"),pro:!0},{path:"/feature/tabbar/badge",title:t("pages.tabbar.badge"),pro:!0},{path:"/feature/tabbar/custom-area",title:t("pages.tabbar.custom-area")}]},{title:t("pages.function.root"),icon:"i-ri:function-add-line",routes:[{path:"/feature/function/unocss",title:"UnoCSS",icon:"i-logos:unocss"},{path:"/feature/function/icon",title:t("pages.function.icon"),icon:"i-ri:remixicon-line"},{path:"/feature/function/i18n",title:t("pages.function.i18n"),icon:"i-ri:earth-line",pro:!0},{path:"/feature/function/keepAlive",title:t("pages.function.keepAlive"),icon:"i-cil:window-restore"},{path:"/feature/function/font",title:t("pages.function.font"),icon:"i-ri:font-size",pro:!0},{path:"/feature/function/watermark",title:t("pages.function.watermark"),icon:"i-icon-park-outline:mosaic",pro:!0},{path:"/feature/function/errorLog",title:t("pages.function.errorLog"),icon:"i-ri:bug-line",pro:!0},{path:"/feature/function/zoomable",title:t("pages.function.zoomable"),icon:"i-mingcute:zoom-in-line",pro:!0},{path:"/feature/function/title",title:t("pages.function.title"),icon:"i-mdi:format-title",pro:!0},{path:"/feature/function/scroll",title:t("pages.function.scroll"),icon:"i-carbon:auto-scroll",pro:!0}]},{title:t("pages.permission.root"),icon:"i-ri:shield-keyhole-line",routes:[{path:"/feature/permission",title:"权限验证"}]},{title:"基础组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/basic",title:"基础组件"},{path:"/feature/component/composite",title:"复合组件"}]},{title:"内建组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/built-in",title:"内建组件"}]},{title:"扩展组件",icon:"i-bx:bxs-component",routes:[{path:"/feature/component/pagemain-demo",title:"PageMain"},{path:"/feature/component/trend-demo",title:"Trend"},{path:"/feature/component/sparkline-demo",title:"Sparkline",pro:!0}]},{title:"插件",icon:"i-clarity:plugin-outline-alerted",routes:[{path:"/feature/plugin/qrcode",title:"二维码",icon:"i-material-symbols:qr-code"},{path:"/feature/plugin/esign",title:"电子签名",icon:"i-mdi:draw"},{path:"/feature/plugin/animation",title:"过渡动画",icon:"i-clarity:animation-line"},{path:"/feature/plugin/swiper",title:"轮播动画",icon:"i-carbon:carousel-horizontal"},{path:"/feature/plugin/echarts",title:"ECharts",icon:"i-ri:bar-chart-2-line"},{path:"/feature/plugin/vchart",title:"VChart",icon:"i-ri:bar-chart-2-line"}]},{title:"页面",icon:"i-ri:pages-line",routes:[{path:"/feature/page/loadmore",title:"加载更多"},{path:"/feature/page/schedule",title:"日程表",pro:!0},{path:"/feature/page/productlist",title:"商品列表",pro:!0}]}];return($,A)=>{const l=S,v=z("router-link"),_=k;return a(),i(_,{navbar:!1,tabbar:"","saved-position":""},{default:f(()=>[n("div",B,[(a(),s(d,null,b(h,(r,x)=>n("div",{key:x,class:"mb-4"},[n("div",L,[r.icon?(a(),i(l,{key:0,name:r.icon,class:"text-6"},null,8,["name"])):c("",!0),n("div",V,m(o(u)(r.title)?o(p)(r.title):r.title),1)]),n("div",q,[(a(!0),s(d,null,b(r.routes,e=>(a(),i(v,{key:e.path,to:e.path,class:g(["relative flex of-hidden rounded-lg bg-[var(--g-container-bg)] text-sm text-gray-6 shadow-sm dark-text-gray-4",{"bg-gradient-to-r from-transparent to-[#ffd700] dark-to-[#ffd70030] b-1 b-solid b-[#d4af37]":e.pro}])},{default:f(()=>[e.pro?(a(),i(l,{key:0,name:"i-mdi:professional-hexagon",class:"right-[-12px] top--3 z-0 rotate-30 text-6xl c-[#d4af37] absolute! dark-c-[#d4af3730]"})):c("",!0),e.icon?(a(),s("div",F,[C(l,{name:e.icon},null,8,["name"])])):c("",!0),n("div",{class:g(["z-1 flex-1 truncate px-3 py-2",{"ps-2":e.icon}])},m(o(u)(e.title)?o(p)(e.title):e.title),3)]),_:2},1032,["to","class"]))),128))])])),64))])]),_:1})}}});export{P as default}; diff --git a/assets/index-N5lckUVv.js.br b/assets/index-N5lckUVv.js.br new file mode 100644 index 00000000..ea7f399e Binary files /dev/null and b/assets/index-N5lckUVv.js.br differ diff --git a/assets/index-N5lckUVv.js.gz b/assets/index-N5lckUVv.js.gz new file mode 100644 index 00000000..630aabca Binary files /dev/null and b/assets/index-N5lckUVv.js.gz differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js new file mode 100644 index 00000000..fd89102c --- /dev/null +++ b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js @@ -0,0 +1 @@ +import{d as m,ad as u,r as b,o,j as a,a9 as n,e as f,t as g,p as r,a as h,u as s,b as v,q as _,W as y,_ as k}from"./index-DpnASd8N.js";const C={key:0,class:"title-container border-b-1 border-b-[var(--g-bg)] border-b-solid px-4 py-3 transition-border-color-300"},S={class:"main-container p-4"},N=m({name:"PageMain",__name:"index",props:{title:{default:""},collaspe:{type:Boolean,default:!1},height:{default:""}},setup(l){const i=l,c=!!u().title,t=b(i.collaspe);function p(){t.value=!1}return(e,x)=>{const d=k;return o(),a("div",{class:_(["page-main relative m-4 flex flex-col bg-[var(--g-container-bg)] transition-background-color-300",{"of-hidden":s(t)}]),style:y({height:s(t)?e.height:""})},[c||e.title?(o(),a("div",C,[n(e.$slots,"title",{},()=>[f(g(e.title),1)])])):r("",!0),h("div",S,[n(e.$slots,"default")]),s(t)?(o(),a("div",{key:1,class:"collaspe absolute bottom-0 w-full cursor-pointer from-transparent to-[var(--g-container-bg)] bg-gradient-to-b pb-2 pt-10 text-center",onClick:p},[v(d,{name:"i-ep:arrow-down",class:"text-xl op-30 transition-opacity hover-op-100"})])):r("",!0)],6)}}});export{N as _}; diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.br b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.br new file mode 100644 index 00000000..5b0f715e Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.br differ diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.gz b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.gz new file mode 100644 index 00000000..57af1f32 Binary files /dev/null and b/assets/index.vue_vue_type_script_setup_true_lang-BPqlHTph.js.gz differ diff --git a/assets/keepAlive-LOsMjHf1.js b/assets/keepAlive-LOsMjHf1.js new file mode 100644 index 00000000..fd479a9c --- /dev/null +++ b/assets/keepAlive-LOsMjHf1.js @@ -0,0 +1 @@ +import{_}from"./index-Cwg3TLNR.js";import{_ as p}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as m,r as u,c,w as n,m as i,o as d,b as o,u as f,i as v}from"./index-DpnASd8N.js";const C=m({name:"FeatureStandardKeepAlive",__name:"keepAlive",setup(b){const e=u(1);return(k,a)=>{const t=i("van-stepper"),s=p,r=_;return d(),c(r,{navbar:"","navbar-start-side":"back"},{default:n(()=>[o(s,null,{default:n(()=>[o(t,{modelValue:f(e),"onUpdate:modelValue":a[0]||(a[0]=l=>v(e)?e.value=l:null)},null,8,["modelValue"])]),_:1})]),_:1})}}});export{C as default}; diff --git a/assets/keepAlive-LOsMjHf1.js.br b/assets/keepAlive-LOsMjHf1.js.br new file mode 100644 index 00000000..570138be Binary files /dev/null and b/assets/keepAlive-LOsMjHf1.js.br differ diff --git a/assets/keepAlive-LOsMjHf1.js.gz b/assets/keepAlive-LOsMjHf1.js.gz new file mode 100644 index 00000000..de5c2866 Binary files /dev/null and b/assets/keepAlive-LOsMjHf1.js.gz differ diff --git a/assets/loadmore-7vCrxIa-.js b/assets/loadmore-7vCrxIa-.js new file mode 100644 index 00000000..463cbf26 --- /dev/null +++ b/assets/loadmore-7vCrxIa-.js @@ -0,0 +1 @@ +import{_ as v}from"./index-Cwg3TLNR.js";import{d as b,r as t,h as x,c as k,w as y,a8 as w,Y as B,o as l,a as p,j as g,n as H,u as c,F as R,t as m}from"./index-DpnASd8N.js";const L={class:"m-4 flex flex-col gap-4"},j={class:"flex items-center justify-between gap-4 whitespace-nowrap text-sm text-stone-4 font-500 after:h-[1px] after:w-full before:h-[1px] before:w-full after:bg-stone-2 before:bg-stone-2 dark-text-stone-6 after:content-empty before:content-empty after:dark-bg-stone-6 before:dark-bg-stone-6"},N=b({__name:"loadmore",setup(C){const o=t(),f=t(0),i=t(10),a=t(0),e=t([]);function n(){w.get("page/loadmore",{baseURL:"/mock",params:{from:f.value*i.value,limit:i.value}}).then(s=>{e.value.push(...s.data.list),f.value+=1,a.value=s.data.total,B(()=>{const u=o.value.ref.clientHeight,r=o.value.ref.scrollHeight;u===r&&e.value.length{n()}),(s,u)=>{const r=v;return l(),k(r,{ref_key:"layoutRef",ref:o,navbar:"","navbar-start-side":"back",onReachBottom:d},{default:y(()=>[p("div",L,[(l(!0),g(R,null,H(c(e),(_,h)=>(l(),g("div",{key:h,class:"bg-[var(--g-container-bg)] p-4"},m(_),1))),128)),p("div",j,m(c(e).length(A("data-v-9358c44b"),r=r(),N(),r),Z={class:"mx-4 flex flex-1 flex-col justify-center gap-8"},E=g(()=>e("img",{src:S,class:"mx-auto h-24 w-24"},null,-1)),G={class:"mt-8 px-4"},M={class:"text-center space-x-4"},R=g(()=>e("svg",{width:"100%",viewBox:"0 0 1440 590",xmlns:"http://www.w3.org/2000/svg",class:"svg pointer-events-none transition duration-300 delay-150 ease-in-out"},[e("defs",null,[e("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[e("stop",{offset:"5%","stop-color":"#F78DA7"}),e("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),e("path",{d:"M 0,600 L 0,150 C 154.10714285714283,165.39285714285714 308.21428571428567,180.78571428571428 424,163 C 539.7857142857143,145.21428571428572 617.2500000000001,94.25 735,94 C 852.7499999999999,93.75 1010.7857142857142,144.21428571428572 1135,162 C 1259.2142857142858,179.78571428571428 1349.607142857143,164.89285714285714 1440,150 L 1440,600 L 0,600 Z",stroke:"none","stroke-width":"0",fill:"url(#gradient)","fill-opacity":"0.53",class:"path-1 transition-all duration-300 delay-150 ease-in-out"}),e("defs",null,[e("linearGradient",{id:"gradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%"},[e("stop",{offset:"5%","stop-color":"#F78DA7"}),e("stop",{offset:"95%","stop-color":"#8ED1FC"})])]),e("path",{d:"M 0,600 L 0,350 C 144.10714285714286,333.7857142857143 288.2142857142857,317.57142857142856 389,313 C 489.7857142857143,308.42857142857144 547.25,315.5 657,321 C 766.75,326.5 928.7857142857142,330.42857142857144 1068,335 C 1207.2142857142858,339.57142857142856 1323.607142857143,344.7857142857143 1440,350 L 1440,600 L 0,600 Z",stroke:"none","stroke-width":"0",fill:"url(#gradient)","fill-opacity":"1",class:"path-2 transition-all duration-300 delay-150 ease-in-out"})],-1)),$=F({__name:"login",setup(r){var _;const w=q(),x=I(),y=B(),h=v(((_=x.query.redirect)==null?void 0:_.toString())??"/"),t=v({account:"",password:""});function c(){y.login({account:t.value.account,password:t.value.password}).then(()=>{w.replace(h.value)})}function p(m){t.value.account=m,t.value.password="123456",c()}return(m,o)=>{const f=l("van-field"),C=l("van-cell-group"),u=l("van-button"),b=l("van-divider"),k=l("van-form"),V=L;return z(),D(V,{navbar:!1,copyright:""},{default:a(()=>[e("div",Z,[E,s(k,{onSubmit:c},{default:a(()=>[s(C,{inset:""},{default:a(()=>[s(f,{modelValue:i(t).account,"onUpdate:modelValue":o[0]||(o[0]=n=>i(t).account=n),name:"用户名",label:"用户名",placeholder:"用户名",rules:[{required:!0,message:"请填写用户名"}]},null,8,["modelValue"]),s(f,{modelValue:i(t).password,"onUpdate:modelValue":o[1]||(o[1]=n=>i(t).password=n),type:"password",name:"密码",label:"密码",placeholder:"密码",rules:[{required:!0,message:"请填写密码"}]},null,8,["modelValue"])]),_:1}),e("div",G,[s(u,{round:"",block:"",type:"primary","native-type":"submit"},{default:a(()=>[d(" 登录 ")]),_:1}),s(b,null,{default:a(()=>[d(" 演示账号一键登录 ")]),_:1}),e("div",M,[s(u,{type:"primary",size:"small",plain:"",onClick:o[2]||(o[2]=n=>p("admin"))},{default:a(()=>[d(" admin ")]),_:1}),s(u,{size:"small",plain:"",onClick:o[3]||(o[3]=n=>p("test"))},{default:a(()=>[d(" test ")]),_:1})])])]),_:1})]),R]),_:1})}}}),H=U($,[["__scopeId","data-v-9358c44b"]]);export{H as default}; diff --git a/assets/login-C1NrYxae.js.br b/assets/login-C1NrYxae.js.br new file mode 100644 index 00000000..9fe794db Binary files /dev/null and b/assets/login-C1NrYxae.js.br differ diff --git a/assets/login-C1NrYxae.js.gz b/assets/login-C1NrYxae.js.gz new file mode 100644 index 00000000..10524042 Binary files /dev/null and b/assets/login-C1NrYxae.js.gz differ diff --git a/assets/login-CqZTMcSL.css b/assets/login-CqZTMcSL.css new file mode 100644 index 00000000..7c2c0057 --- /dev/null +++ b/assets/login-CqZTMcSL.css @@ -0,0 +1 @@ +.svg[data-v-9358c44b]{position:absolute;bottom:0;z-index:0}.path-1[data-v-9358c44b]{animation:path-anim-1-9358c44b 4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes path-anim-1-9358c44b{0%{d:path("M 0,600 L 0,150 C 154.10714285714283,165.39285714285714 308.21428571428567,180.78571428571428 424,163 C 539.7857142857143,145.21428571428572 617.2500000000001,94.25 735,94 C 852.7499999999999,93.75 1010.7857142857142,144.21428571428572 1135,162 C 1259.2142857142858,179.78571428571428 1349.607142857143,164.89285714285714 1440,150 L 1440,600 L 0,600 Z")}25%{d:path("M 0,600 L 0,150 C 93.35714285714286,124.89285714285714 186.71428571428572,99.78571428571429 297,90 C 407.2857142857143,80.21428571428571 534.5,85.75 658,114 C 781.5,142.25 901.2857142857142,193.21428571428572 1031,203 C 1160.7142857142858,212.78571428571428 1300.357142857143,181.39285714285714 1440,150 L 1440,600 L 0,600 Z")}50%{d:path("M 0,600 L 0,150 C 86.85714285714286,184.78571428571428 173.71428571428572,219.57142857142858 306,199 C 438.2857142857143,178.42857142857142 616,102.49999999999999 753,78 C 890,53.500000000000014 986.2857142857142,80.42857142857143 1094,101 C 1201.7142857142858,121.57142857142857 1320.857142857143,135.78571428571428 1440,150 L 1440,600 L 0,600 Z")}75%{d:path("M 0,600 L 0,150 C 106.82142857142858,152.5 213.64285714285717,155 325,144 C 436.35714285714283,133 552.2499999999999,108.49999999999999 694,108 C 835.7500000000001,107.50000000000001 1003.3571428571429,131.00000000000003 1132,142 C 1260.642857142857,152.99999999999997 1350.3214285714284,151.5 1440,150 L 1440,600 L 0,600 Z")}to{d:path("M 0,600 L 0,150 C 154.10714285714283,165.39285714285714 308.21428571428567,180.78571428571428 424,163 C 539.7857142857143,145.21428571428572 617.2500000000001,94.25 735,94 C 852.7499999999999,93.75 1010.7857142857142,144.21428571428572 1135,162 C 1259.2142857142858,179.78571428571428 1349.607142857143,164.89285714285714 1440,150 L 1440,600 L 0,600 Z")}}.path-2[data-v-9358c44b]{animation:path-anim-2-9358c44b 4s;animation-timing-function:linear;animation-iteration-count:infinite}@keyframes path-anim-2-9358c44b{0%{d:path("M 0,600 L 0,350 C 144.10714285714286,333.7857142857143 288.2142857142857,317.57142857142856 389,313 C 489.7857142857143,308.42857142857144 547.25,315.5 657,321 C 766.75,326.5 928.7857142857142,330.42857142857144 1068,335 C 1207.2142857142858,339.57142857142856 1323.607142857143,344.7857142857143 1440,350 L 1440,600 L 0,600 Z")}25%{d:path("M 0,600 L 0,350 C 111.64285714285711,384.82142857142856 223.28571428571422,419.64285714285717 356,421 C 488.7142857142858,422.35714285714283 642.5000000000002,390.25 752,390 C 861.4999999999998,389.75 926.7142857142856,421.35714285714283 1034,420 C 1141.2857142857144,418.64285714285717 1290.6428571428573,384.32142857142856 1440,350 L 1440,600 L 0,600 Z")}50%{d:path("M 0,600 L 0,350 C 139.60714285714283,359.3571428571429 279.21428571428567,368.7142857142857 402,374 C 524.7857142857143,379.2857142857143 630.7500000000001,380.5 740,371 C 849.2499999999999,361.5 961.7857142857142,341.2857142857143 1079,336 C 1196.2142857142858,330.7142857142857 1318.107142857143,340.3571428571429 1440,350 L 1440,600 L 0,600 Z")}75%{d:path("M 0,600 L 0,350 C 136.53571428571428,364.5357142857143 273.07142857142856,379.07142857142856 370,362 C 466.92857142857144,344.92857142857144 524.2500000000001,296.25 654,282 C 783.7499999999999,267.75 985.9285714285716,287.92857142857144 1129,305 C 1272.0714285714284,322.07142857142856 1356.0357142857142,336.0357142857143 1440,350 L 1440,600 L 0,600 Z")}to{d:path("M 0,600 L 0,350 C 144.10714285714286,333.7857142857143 288.2142857142857,317.57142857142856 389,313 C 489.7857142857143,308.42857142857144 547.25,315.5 657,321 C 766.75,326.5 928.7857142857142,330.42857142857144 1068,335 C 1207.2142857142858,339.57142857142856 1323.607142857143,344.7857142857143 1440,350 L 1440,600 L 0,600 Z")}} diff --git a/assets/login-CqZTMcSL.css.br b/assets/login-CqZTMcSL.css.br new file mode 100644 index 00000000..63e7dbe3 Binary files /dev/null and b/assets/login-CqZTMcSL.css.br differ diff --git a/assets/login-CqZTMcSL.css.gz b/assets/login-CqZTMcSL.css.gz new file mode 100644 index 00000000..73e3802b Binary files /dev/null and b/assets/login-CqZTMcSL.css.gz differ diff --git a/assets/logo-CvGq432t.png b/assets/logo-CvGq432t.png new file mode 100644 index 00000000..cec31016 Binary files /dev/null and b/assets/logo-CvGq432t.png differ diff --git a/assets/logo-DvfkIia2.js b/assets/logo-DvfkIia2.js new file mode 100644 index 00000000..01678c27 --- /dev/null +++ b/assets/logo-DvfkIia2.js @@ -0,0 +1 @@ +const o=""+new URL("logo-CvGq432t.png",import.meta.url).href;export{o as _}; diff --git a/assets/mode-e-w6n-AW.js b/assets/mode-e-w6n-AW.js new file mode 100644 index 00000000..eb32fe0b --- /dev/null +++ b/assets/mode-e-w6n-AW.js @@ -0,0 +1 @@ +import{d as i,r as m,c as _,w as s,u as o,k as p,m as f,o as n,a as l,b as r,i as v,e as b,j as x,n as k,F as V,x as g,t as w}from"./index-DpnASd8N.js";import{_ as B}from"./index-Cwg3TLNR.js";const C={class:"flex flex-col gap-4 p-4"},R=i({__name:"mode",setup(y){const u=p(),a=m("fixed");return(N,t)=>{const c=g,d=f("van-button");return n(),_(B,{navbar:"","navbar-mode":o(a)},{default:s(()=>[l("div",C,[r(c,{modelValue:o(a),"onUpdate:modelValue":t[0]||(t[0]=e=>v(a)?a.value=e:null),options:[{label:"静止",value:"static"},{label:"固定",value:"fixed"},{label:"显隐固定",value:"show-hide-fixed"},{label:"粘性",value:"sticky"}],class:"w-full"},null,8,["modelValue"]),r(d,{onClick:t[1]||(t[1]=e=>o(u).back())},{default:s(()=>[b(" 返回 ")]),_:1}),(n(),x(V,null,k(50,e=>l("div",{key:e,class:"text-center"},w(e),1)),64))])]),_:1},8,["navbar-mode"])}}});export{R as default}; diff --git a/assets/mode-e-w6n-AW.js.br b/assets/mode-e-w6n-AW.js.br new file mode 100644 index 00000000..0c9afd74 Binary files /dev/null and b/assets/mode-e-w6n-AW.js.br differ diff --git a/assets/mode-e-w6n-AW.js.gz b/assets/mode-e-w6n-AW.js.gz new file mode 100644 index 00000000..293065b5 Binary files /dev/null and b/assets/mode-e-w6n-AW.js.gz differ diff --git a/assets/multi-DEX-W5yZ.js b/assets/multi-DEX-W5yZ.js new file mode 100644 index 00000000..d5b1f18f --- /dev/null +++ b/assets/multi-DEX-W5yZ.js @@ -0,0 +1 @@ +import{_ as r}from"./index-Cwg3TLNR.js";import{d as _,c,w as t,k as u,m as l,o as p,a as o,b as m,e as d,u as i}from"./index-DpnASd8N.js";const f={class:"flex flex-col gap-4 p-4"},b=o("div",null,"可以配置多套底部导航,并在不同页面选择启用某一套。",-1),B=_({__name:"multi",setup(v){const a=u();return(x,e)=>{const n=l("van-button"),s=r;return p(),c(s,{navbar:!1,tabbar:"","tabbar-name":"second"},{default:t(()=>[o("div",f,[b,m(n,{onClick:e[0]||(e[0]=k=>i(a).back())},{default:t(()=>[d(" 返回 ")]),_:1})])]),_:1})}}});export{B as default}; diff --git a/assets/multi-DEX-W5yZ.js.br b/assets/multi-DEX-W5yZ.js.br new file mode 100644 index 00000000..ae0e12d5 Binary files /dev/null and b/assets/multi-DEX-W5yZ.js.br differ diff --git a/assets/multi-DEX-W5yZ.js.gz b/assets/multi-DEX-W5yZ.js.gz new file mode 100644 index 00000000..ca24108c Binary files /dev/null and b/assets/multi-DEX-W5yZ.js.gz differ diff --git a/assets/none-CQ5_a5ku.js b/assets/none-CQ5_a5ku.js new file mode 100644 index 00000000..35fd870f --- /dev/null +++ b/assets/none-CQ5_a5ku.js @@ -0,0 +1 @@ +import{_ as s}from"./index-Cwg3TLNR.js";import{d as r,c as _,w as o,k as c,m as u,o as p,a as l,b as m,e as f,u as d}from"./index-DpnASd8N.js";const i={class:"flex flex-col gap-4 p-4"},g=r({__name:"none",setup(v){const t=c();return(x,e)=>{const n=u("van-button"),a=s;return p(),_(a,{navbar:!1},{default:o(()=>[l("div",i,[m(n,{onClick:e[0]||(e[0]=b=>d(t).back())},{default:o(()=>[f(" 返回 ")]),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/none-CQ5_a5ku.js.br b/assets/none-CQ5_a5ku.js.br new file mode 100644 index 00000000..1881157e Binary files /dev/null and b/assets/none-CQ5_a5ku.js.br differ diff --git a/assets/none-CQ5_a5ku.js.gz b/assets/none-CQ5_a5ku.js.gz new file mode 100644 index 00000000..784aebd0 Binary files /dev/null and b/assets/none-CQ5_a5ku.js.gz differ diff --git a/assets/pagemain-demo-CxlVjjNx.js b/assets/pagemain-demo-CxlVjjNx.js new file mode 100644 index 00000000..b611cf32 --- /dev/null +++ b/assets/pagemain-demo-CxlVjjNx.js @@ -0,0 +1 @@ +import{_ as c}from"./index-Cwg3TLNR.js";import{_ as i}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{_ as l}from"./logo-DvfkIia2.js";import{z as r,c as m,w as t,m as f,o as u,b as e,e as a,a as n}from"./index-DpnASd8N.js";const d={},p={class:"flex items-center justify-between"},h=n("h1",{class:"mt-0"}," Fantastic-mobile ",-1),b=n("img",{src:l},null,-1);function g(v,x){const o=i,s=f("van-button"),_=c;return u(),m(_,{navbar:"","navbar-start-side":"back"},{default:t(()=>[e(o,null,{default:t(()=>[a(" PageMain 是最常用的页面组件,几乎所有页面都会使用到 ")]),_:1}),e(o,{title:"你可以设置一个自定义的标题"},{default:t(()=>[a(" 这里放页面内容 ")]),_:1}),e(o,null,{title:t(()=>[n("div",p,[a(" 通过 slot 设置标题 "),e(s,{size:"mini"},{default:t(()=>[a(" 还可以放置自定义按钮 ")]),_:1})])]),default:t(()=>[a(" 这里放页面内容 ")]),_:1}),e(o,{title:"带展开功能",collaspe:"",height:"20vh"},{default:t(()=>[h,b]),_:1})]),_:1})}const P=r(d,[["render",g]]);export{P as default}; diff --git a/assets/pagemain-demo-CxlVjjNx.js.br b/assets/pagemain-demo-CxlVjjNx.js.br new file mode 100644 index 00000000..8865794d Binary files /dev/null and b/assets/pagemain-demo-CxlVjjNx.js.br differ diff --git a/assets/pagemain-demo-CxlVjjNx.js.gz b/assets/pagemain-demo-CxlVjjNx.js.gz new file mode 100644 index 00000000..37080794 Binary files /dev/null and b/assets/pagemain-demo-CxlVjjNx.js.gz differ diff --git a/assets/preset-CR-N72Ln.js b/assets/preset-CR-N72Ln.js new file mode 100644 index 00000000..123101c6 --- /dev/null +++ b/assets/preset-CR-N72Ln.js @@ -0,0 +1 @@ +import{_ as N}from"./index-Cwg3TLNR.js";import{d as T,r as b,c as $,w as s,u,k as F,m as i,o as r,a as c,b as n,j as k,n as x,F as g,i as h,e as O,a7 as C}from"./index-DpnASd8N.js";const R={class:"flex flex-col gap-4 p-4"},U={class:"flex gap-4"},j={class:"flex-1"},E=c("div",{class:"mb-2 text-center"}," 左侧 ",-1),M={class:"flex-1"},P=c("div",{class:"mb-2 text-center"}," 右侧 ",-1),D=T({__name:"preset",setup(q){const V=F(),_=[{label:"主页",value:"home"},{label:"返回",value:"back"},{label:"前进",value:"forward"},{label:"语言",value:"i18n"},{label:"明暗模式",value:"colorScheme"}],a=b(["home"]);function S(t){a.value.includes(t)?a.value.splice(a.value.indexOf(t),1):a.value.push(t)}const o=b(["i18n"]);function w(t){o.value.includes(t)?o.value.splice(o.value.indexOf(t),1):o.value.push(t)}return(t,l)=>{const v=i("van-checkbox"),p=i("van-cell"),m=i("van-cell-group"),f=i("van-checkbox-group"),B=i("van-button"),y=N;return r(),$(y,{navbar:"","navbar-start-side":u(a),"navbar-end-side":u(o)},{default:s(()=>[c("div",R,[c("div",U,[c("div",j,[E,n(f,{modelValue:u(a),"onUpdate:modelValue":l[1]||(l[1]=e=>h(a)?a.value=e:null)},{default:s(()=>[n(m,null,{default:s(()=>[(r(),k(g,null,x(_,(e,d)=>n(p,{key:d,clickable:"",title:e.label,onClick:L=>S(e.value)},{"right-icon":s(()=>[n(v,{name:e.value,onClick:l[0]||(l[0]=C(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])]),c("div",M,[P,n(f,{modelValue:u(o),"onUpdate:modelValue":l[3]||(l[3]=e=>h(o)?o.value=e:null)},{default:s(()=>[n(m,null,{default:s(()=>[(r(),k(g,null,x(_,(e,d)=>n(p,{key:d,clickable:"",title:e.label,onClick:L=>w(e.value)},{"right-icon":s(()=>[n(v,{name:e.value,onClick:l[2]||(l[2]=C(()=>{},["stop"]))},null,8,["name"])]),_:2},1032,["title","onClick"])),64))]),_:1})]),_:1},8,["modelValue"])])]),n(B,{onClick:l[4]||(l[4]=e=>u(V).back())},{default:s(()=>[O(" 返回 ")]),_:1})])]),_:1},8,["navbar-start-side","navbar-end-side"])}}});export{D as default}; diff --git a/assets/preset-CR-N72Ln.js.br b/assets/preset-CR-N72Ln.js.br new file mode 100644 index 00000000..07ef50d5 Binary files /dev/null and b/assets/preset-CR-N72Ln.js.br differ diff --git a/assets/preset-CR-N72Ln.js.gz b/assets/preset-CR-N72Ln.js.gz new file mode 100644 index 00000000..46ea7e09 Binary files /dev/null and b/assets/preset-CR-N72Ln.js.gz differ diff --git a/assets/productlist-CyYSlhJ0.js b/assets/productlist-CyYSlhJ0.js new file mode 100644 index 00000000..9c3d470f --- /dev/null +++ b/assets/productlist-CyYSlhJ0.js @@ -0,0 +1 @@ +import{_ as v}from"./index-Cwg3TLNR.js";import{d as f,r,c as x,w as h,o as a,a as e,j as l,n as d,u as i,F as _,q as b,t as y,b as k,_ as w,Z as I,a0 as C,e as p,z as S}from"./index-DpnASd8N.js";const n=t=>(I("data-v-c91ee0aa"),t=t(),C(),t),B={class:"category-list w-[80px] of-auto overscroll-none"},F=["onClick"],N={class:"truncate"},P={class:"product-list ml-[80px] flex flex-col gap-4 of-auto overscroll-none bg-[var(--g-container-bg)] p-4"},V=n(()=>e("img",{src:"https://fakeimg.pl/80/282828/?retina=1",class:"block h-[80px] w-[80px]"},null,-1)),j={class:"flex flex-col gap-1"},z=n(()=>e("div",{class:"line-clamp-2 font-bold leading-tight"}," 大红番茄500g,大红番茄500g,大红番茄500g ",-1)),L=n(()=>e("div",{class:"text-xs c-stone"}," 大山里的美味 | 番茄味浓郁 ",-1)),$={class:"flex items-baseline justify-between"},q=n(()=>e("div",{class:"flex items-baseline gap-2"},[e("div",{class:"text-xs c-red font-bold"},[p(" ¥"),e("span",{class:"text-lg"},"8"),p(".99 ")]),e("div",{class:"text-xs c-stone/50 line-through"}," ¥12.99 ")],-1)),A={class:"flex-center rounded-md bg-red p-1 c-white"},D=f({name:"FeaturePageProductlist",__name:"productlist",setup(t){const o=r(0),m=r([{name:"为你推荐"},{name:"超低折扣"},{name:"新品上架"},{name:"分类1"},{name:"分类2"},{name:"分类3"},{name:"分类4"},{name:"分类5"},{name:"分类6"},{name:"分类7"},{name:"分类8"},{name:"分类9"},{name:"分类10"},{name:"分类11"},{name:"分类12"},{name:"分类13"},{name:"分类14"},{name:"分类15"}]);return(E,T)=>{const u=w,g=v;return a(),x(g,{navbar:"","navbar-start-side":"back",copyright:!1},{default:h(()=>[e("div",B,[(a(!0),l(_,null,d(i(m),(c,s)=>(a(),l("div",{key:s,class:b(["relative w-full px-2 py-4 text-center text-xs",{"active-item bg-[var(--g-container-bg)]":i(o)===s,"cursor-pointer":i(o)!==s}]),onClick:Z=>o.value=s},[e("div",N,y(c.name),1)],10,F))),128))]),e("div",P,[(a(),l(_,null,d(20,c=>e("div",{key:c,class:"flex gap-2"},[V,e("div",j,[z,L,e("div",$,[q,e("div",A,[k(u,{name:"i-typcn:plus"})])])])])),64))])]),_:1})}}}),J=S(D,[["__scopeId","data-v-c91ee0aa"]]);export{J as default}; diff --git a/assets/productlist-CyYSlhJ0.js.br b/assets/productlist-CyYSlhJ0.js.br new file mode 100644 index 00000000..4c0e5d82 Binary files /dev/null and b/assets/productlist-CyYSlhJ0.js.br differ diff --git a/assets/productlist-CyYSlhJ0.js.gz b/assets/productlist-CyYSlhJ0.js.gz new file mode 100644 index 00000000..4640e803 Binary files /dev/null and b/assets/productlist-CyYSlhJ0.js.gz differ diff --git a/assets/productlist-hvN4cIGx.css b/assets/productlist-hvN4cIGx.css new file mode 100644 index 00000000..37aefd69 --- /dev/null +++ b/assets/productlist-hvN4cIGx.css @@ -0,0 +1 @@ +.category-list[data-v-c91ee0aa]{position:absolute;top:0;bottom:0;left:0}.category-list .active-item[data-v-c91ee0aa]:before,.category-list .active-item[data-v-c91ee0aa]:after{position:absolute;right:0;width:min(5.333vw,32px);height:min(5.333vw,32px);content:"";border-radius:100%;box-shadow:0 0 0 min(5.333vw,32px) var(--g-container-bg);transition:box-shadow .3s}.category-list .active-item[data-v-c91ee0aa]:before{top:max(-5.333vw,-32px);clip-path:inset(50% max(-2.667vw,-16px) 0 50%)}.category-list .active-item[data-v-c91ee0aa]:after{bottom:max(-5.333vw,-32px);clip-path:inset(0 max(-2.667vw,-16px) 50% 50%)}.product-list[data-v-c91ee0aa]{position:absolute;top:0;right:0;bottom:0;left:0} diff --git a/assets/productlist-hvN4cIGx.css.br b/assets/productlist-hvN4cIGx.css.br new file mode 100644 index 00000000..45e43d98 Binary files /dev/null and b/assets/productlist-hvN4cIGx.css.br differ diff --git a/assets/productlist-hvN4cIGx.css.gz b/assets/productlist-hvN4cIGx.css.gz new file mode 100644 index 00000000..967cf78b Binary files /dev/null and b/assets/productlist-hvN4cIGx.css.gz differ diff --git a/assets/qrcode-CkCW6XaE.js b/assets/qrcode-CkCW6XaE.js new file mode 100644 index 00000000..b3b84771 --- /dev/null +++ b/assets/qrcode-CkCW6XaE.js @@ -0,0 +1,8 @@ +import{_ as kt}from"./index-Cwg3TLNR.js";import{_ as Ft}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as zt,r as K,h as Vt,c as Ht,w as P,m as mt,o as Kt,a as S,b as L,e as wt,u as O,i as Jt,_ as $t}from"./index-DpnASd8N.js";var D={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ct={},N={};let lt;const Ot=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Ot[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};N.isKanjiModeEnabled=function(){return typeof lt<"u"};N.toSJIS=function(t){return lt(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch{return n}}})(W);function Bt(){this.buffer=[],this.length=0}Bt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var jt=Bt;function Y(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Y.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};Y.prototype.get=function(e,t){return this.data[e*this.size+t]};Y.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};Y.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=Y,At={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let c=1;c=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,a=0,c=0,u=null,l=null;for(let E=0;E=5&&(s+=t.N1+(a-5)),u=f,a=1),f=n.get(h,E),f===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=f,c=1)}a>=5&&(s+=t.N1+(a-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,c=c<<1&2047|n.get(l,u),l>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let c=0;c=0;){const s=r[0];for(let c=0;c0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var Qt=ft,bt={},v={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var b={};const Mt="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let $="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$=$.replace(/u/g,"\\u");const Zt="(?:(?![A-Z0-9 $%*+\\-./:]|"+$+`)(?:.|[\r +]))+`;b.KANJI=new RegExp($,"g");b.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");b.BYTE=new RegExp(Zt,"g");b.NUMERIC=new RegExp(Mt,"g");b.ALPHANUMERIC=new RegExp(Wt,"g");const Xt=new RegExp("^"+$+"$"),xt=new RegExp("^"+Mt+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");b.testKanji=function(t){return Xt.test(t)};b.testNumeric=function(t){return xt.test(t)};b.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=b;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch{return s}}})(v);(function(e){const t=N,i=Z,o=W,n=v,r=dt,s=7973,a=t.getBCHDigit(s);function c(h,f,w){for(let y=1;y<=40;y++)if(f<=e.getCapacity(y,w,h))return y}function u(h,f){return n.getCharCountIndicator(h,f)+4}function l(h,f){let w=0;return h.forEach(function(y){const _=u(y.mode,f);w+=_+y.getBitsLength()}),w}function E(h,f){for(let w=1;w<=40;w++)if(l(h,w)<=e.getCapacity(w,f,n.MIXED))return w}e.from=function(f,w){return r.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,y){if(!r.isValid(f))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=n.BYTE);const _=t.getSymbolTotalCodewords(f),m=i.getTotalCodewordsCount(f,w),p=(_-m)*8;if(y===n.MIXED)return p;const g=p-u(y,f);switch(y){case n.NUMERIC:return Math.floor(g/10*3);case n.ALPHANUMERIC:return Math.floor(g/11*2);case n.KANJI:return Math.floor(g/13);case n.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let y;const _=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,_);if(f.length===0)return 1;y=f[0]}else y=f;return c(y.mode,y.getLength(),_)},e.getEncodedBits=function(f){if(!r.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-a>=0;)w^=s<=0;)n^=St<0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var oe=k;const re=v,et=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(e){this.mode=re.ALPHANUMERIC,this.data=e}F.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=et.indexOf(this.data[i])*45;o+=et.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(et.indexOf(this.data[i]),6)};var ie=F;const se=v;function z(e){this.mode=se.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}z.getBitsLength=function(t){return t*8};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(e){for(let t=0,i=this.data.length;t=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` +Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var le=V,Lt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,n){var r={},s={};s[o]=0;var a=t.PriorityQueue.make();a.push(o,0);for(var c,u,l,E,h,f,w,y,_;!a.empty();){c=a.pop(),u=c.value,E=c.cost,h=i[u]||{};for(l in h)h.hasOwnProperty(l)&&(f=h[l],w=E+f,y=s[l],_=typeof s[l]>"u",(_||y>w)&&(s[l]=w,a.push(l,w),r[l]=u))}if(typeof n<"u"&&typeof s[n]>"u"){var m=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(i,o){for(var n=[],r=o;r;)n.push(r),i[r],r=i[r];return n.reverse(),n},find_path:function(i,o,n){var r=t.single_source_shortest_paths(i,o,n);return t.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,n={},r;i=i||{};for(r in o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=i.sorter||o.default_sorter,n},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var n={value:i,cost:o};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Lt);var fe=Lt.exports;(function(e){const t=v,i=oe,o=ie,n=ae,r=le,s=b,a=N,c=fe;function u(m){return unescape(encodeURIComponent(m)).length}function l(m,p,g){const d=[];let C;for(;(C=m.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:p,length:C[0].length});return d}function E(m){const p=l(s.NUMERIC,t.NUMERIC,m),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,m);let d,C;return a.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,m),C=l(s.KANJI,t.KANJI,m)):(d=l(s.BYTE_KANJI,t.BYTE,m),C=[]),p.concat(g,d,C).sort(function(A,T){return A.index-T.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function h(m,p){switch(p){case t.NUMERIC:return i.getBitsLength(m);case t.ALPHANUMERIC:return o.getBitsLength(m);case t.KANJI:return r.getBitsLength(m);case t.BYTE:return n.getBitsLength(m)}}function f(m){return m.reduce(function(p,g){const d=p.length-1>=0?p[p.length-1]:null;return d&&d.mode===g.mode?(p[p.length-1].data+=g.data,p):(p.push(g),p)},[])}function w(m){const p=[];for(let g=0;g=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?e.set(r+a,s+c,!0,!0):e.set(r+a,s+c,!1,!0))}}function Ce(e){const t=e.size;for(let i=8;i>a&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function rt(e,t,i){const o=e.size,n=ye.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function _e(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!e.isReserved(n,a-c)){let u=!1;s>>r&1)===1),e.set(n,a-c,u),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function Ne(e,t,i){const o=new de;i.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),pe.getCharCountIndicator(c.mode,e)),c.write(o)});const n=x.getSymbolTotalCodewords(e),r=ct.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let c=0;c=7&&Ae(c,t),_e(c,s),isNaN(o)&&(o=at.getBestMask(c,rt.bind(null,c,i))),at.applyMask(o,c),rt(c,i,o),{modules:c,version:t,errorCorrectionLevel:i,maskPattern:o,segments:n}}Ct.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=nt.M,n,r;return typeof i<"u"&&(o=nt.from(i.errorCorrectionLevel,nt.M),n=Q.from(i.version),r=at.from(i.maskPattern),i.toSJISFunc&&x.setToSJISFunction(i.toSJISFunc)),Ie(t,n,o,r)};var Dt={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(r){return[r,r]}))),o.length===6&&o.push("F","F");const n=parseInt(o.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,r=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:r,scale:r?4:s,margin:n,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,n){return n.width&&n.width>=o+n.margin*2?n.width/(o+n.margin*2):n.scale},e.getImageWidth=function(o,n){const r=e.getScale(o,n);return Math.floor((o+n.margin*2)*r)},e.qrToImageData=function(o,n,r){const s=n.modules.size,a=n.modules.data,c=e.getScale(s,r),u=Math.floor((s+r.margin*2)*c),l=r.margin*c,E=[r.color.light,r.color.dark];for(let h=0;h=l&&f>=l&&h"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=o()),c=t.getOptions(c);const l=t.getImageWidth(r.modules.size,c),E=u.getContext("2d"),h=E.createImageData(l,l);return t.qrToImageData(h.data,r,c),i(E,u,l),E.putImageData(h,0,0),u},e.renderToDataURL=function(r,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=e.render(r,s,c),l=c.type||"image/png",E=c.rendererOpts||{};return u.toDataURL(l,E.quality)}})(Dt);var Ut={};const be=gt;function Et(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function it(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Me(e,t,i){let o="",n=0,r=!1,s=0;for(let a=0;a0&&c>0&&e[a-1]||(o+=r?it("M",c+i,.5+u+i):it("m",n,0),n=0,r=!1),c+1':"",u="',l='viewBox="0 0 '+a+" "+a+'"',h=''+c+u+` +`;return typeof o=="function"&&o(null,h),h};const Pe=Yt,ut=Ct,vt=Dt,Se=Ut;function ht(e,t,i,o,n){const r=[].slice.call(arguments,1),s=r.length,a=typeof r[s-1]=="function";if(!a&&!Pe())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(n=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof n>"u"?(n=o,o=void 0):(n=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(c,u){try{const l=ut.create(i,o);c(e(l,t,o))}catch(l){u(l)}})}try{const c=ut.create(i,o);n(null,e(c,t,o))}catch(c){n(c)}}D.create=ut.create;D.toCanvas=ht.bind(null,vt.render);D.toDataURL=ht.bind(null,vt.renderToDataURL);D.toString=ht.bind(null,function(e,t,i){return Se.render(e,i)});const Re={class:"whitespace-break-spaces p-4 space-y-2"},Le=S("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),De=S("div",null,"安装命令:",-1),Ue={class:"space-x-2"},ve=["src"],ke=["src"],Fe=["src"],Ke=zt({__name:"qrcode",setup(e){const t=K(!1),i=K(""),o=K(""),n=K(""),r=K();return Vt(()=>{D.toDataURL("Fantastic-mobile 真棒!").then(s=>{i.value=s}).catch(s=>{console.log(s)}),D.toCanvas(r.value,"Fantastic-mobile 真棒!").then(()=>{}).catch(s=>{console.log(s)}),D.toDataURL("Fantastic-mobile 真棒!",{color:{dark:"#5482EE",light:"#E8E8E8"}}).then(s=>{o.value=s}).catch(s=>{console.log(s)}),D.toDataURL("Fantastic-mobile 真棒!",{width:100}).then(s=>{n.value=s}).catch(s=>{console.log(s)})}),(s,a)=>{const c=$t,u=mt("van-tag"),l=mt("van-action-sheet"),E=Ft,h=kt;return Kt(),Ht(h,{navbar:"","navbar-start-side":"back"},{"navbar-end":P(()=>[S("div",{class:"h-full flex-center px-1",onClick:a[0]||(a[0]=f=>t.value=!0)},[L(c,{name:"i-mdi:information",class:"text-4"})]),L(l,{show:O(t),"onUpdate:show":a[1]||(a[1]=f=>Jt(t)?t.value=f:null),teleport:"body"},{default:P(()=>[S("div",Re,[Le,De,S("div",Ue,[L(u,{type:"primary",plain:""},{default:P(()=>[wt(" pnpm add qrcode ")]),_:1}),L(u,{type:"primary",plain:""},{default:P(()=>[wt(" pnpm add @types/qrcode -D ")]),_:1})])])]),_:1},8,["show"])]),default:P(()=>[L(E,{title:"渲染成 img 标签"},{default:P(()=>[S("img",{src:O(i)},null,8,ve)]),_:1}),L(E,{title:"渲染成 canvas 标签"},{default:P(()=>[S("canvas",{ref_key:"canvasRef",ref:r},null,512)]),_:1}),L(E,{title:"自定义颜色"},{default:P(()=>[S("img",{src:O(o)},null,8,ke)]),_:1}),L(E,{title:"指定宽度"},{default:P(()=>[S("img",{src:O(n)},null,8,Fe)]),_:1})]),_:1})}}});export{Ke as default}; diff --git a/assets/qrcode-CkCW6XaE.js.br b/assets/qrcode-CkCW6XaE.js.br new file mode 100644 index 00000000..9bffffe8 Binary files /dev/null and b/assets/qrcode-CkCW6XaE.js.br differ diff --git a/assets/qrcode-CkCW6XaE.js.gz b/assets/qrcode-CkCW6XaE.js.gz new file mode 100644 index 00000000..18411803 Binary files /dev/null and b/assets/qrcode-CkCW6XaE.js.gz differ diff --git a/assets/reload-DoCFZtm8.js b/assets/reload-DoCFZtm8.js new file mode 100644 index 00000000..fa9dec76 --- /dev/null +++ b/assets/reload-DoCFZtm8.js @@ -0,0 +1 @@ +import{d as o,h as t,j as n,k as r,o as a}from"./index-DpnASd8N.js";const p=o({__name:"reload",setup(s){const e=r();return t(()=>{e.go(-1)}),(c,u)=>(a(),n("div"))}});export{p as default}; diff --git a/assets/reload-DoCFZtm8.js.br b/assets/reload-DoCFZtm8.js.br new file mode 100644 index 00000000..41ee0b01 Binary files /dev/null and b/assets/reload-DoCFZtm8.js.br differ diff --git a/assets/reload-DoCFZtm8.js.gz b/assets/reload-DoCFZtm8.js.gz new file mode 100644 index 00000000..d9f49f62 Binary files /dev/null and b/assets/reload-DoCFZtm8.js.gz differ diff --git a/assets/schedule-Cu8efIXb.css b/assets/schedule-Cu8efIXb.css new file mode 100644 index 00000000..d9aba396 --- /dev/null +++ b/assets/schedule-Cu8efIXb.css @@ -0,0 +1 @@ +table[data-v-a4dde5e7]{border-collapse:collapse}table th[data-v-a4dde5e7],table td[data-v-a4dde5e7]{border-right-width:1px;border-bottom-width:1px;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(221 221 221 / var(--un-border-right-opacity));--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(221 221 221 / var(--un-border-bottom-opacity));border-right-style:solid;border-bottom-style:solid;padding:12px;text-align:center}.dark table th[data-v-a4dde5e7],.dark table td[data-v-a4dde5e7]{--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(51 51 51 / var(--un-border-right-opacity));--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(51 51 51 / var(--un-border-bottom-opacity))}table th[data-v-a4dde5e7]{position:sticky;top:0;z-index:1;min-width:200px;--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity));font-size:16px;line-height:24px}.dark table th[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}table th[data-v-a4dde5e7]:first-child{left:0;z-index:2;min-width:120px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cline x2='100%25' y2='100%25' stroke='%23ddd'/%3E%3C/svg%3E")}.dark table th[data-v-a4dde5e7]:first-child{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cline x2='100%25' y2='100%25' stroke='%23333'/%3E%3C/svg%3E")}table th:first-child .col[data-v-a4dde5e7]{position:absolute;top:4px;right:4px}table th:first-child .row[data-v-a4dde5e7]{position:absolute;bottom:4px;left:4px}table td[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));font-size:16px;line-height:24px}.dark table td[data-v-a4dde5e7]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}table td[data-v-a4dde5e7]:first-child{position:sticky;left:0;z-index:1;--un-bg-opacity:1;background-color:rgb(246 246 246 / var(--un-bg-opacity))}.dark table td[data-v-a4dde5e7]:first-child{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}table td[data-v-a4dde5e7]:last-child{border-right-style:none}table tr:last-child td[data-v-a4dde5e7]{border-bottom-style:none} diff --git a/assets/schedule-Cu8efIXb.css.br b/assets/schedule-Cu8efIXb.css.br new file mode 100644 index 00000000..919be22a Binary files /dev/null and b/assets/schedule-Cu8efIXb.css.br differ diff --git a/assets/schedule-Cu8efIXb.css.gz b/assets/schedule-Cu8efIXb.css.gz new file mode 100644 index 00000000..82c86a44 Binary files /dev/null and b/assets/schedule-Cu8efIXb.css.gz differ diff --git a/assets/schedule-SSIWYKoH.js b/assets/schedule-SSIWYKoH.js new file mode 100644 index 00000000..bd7e2311 --- /dev/null +++ b/assets/schedule-SSIWYKoH.js @@ -0,0 +1 @@ +import{_ as S}from"./index-Cwg3TLNR.js";import{d as z,r as p,c as b,w as f,m as L,o as e,a as t,j as o,n as m,u as d,F as h,t as v,e as k,b as N,Z as V,a0 as D,z as F}from"./index-DpnASd8N.js";const $=l=>(V("data-v-a4dde5e7"),l=l(),D(),l),j={class:"absolute left-0 top-0 h-full w-full of-auto overscroll-none"},A=$(()=>t("th",null,[t("span",{class:"col"},"时段"),t("span",{class:"row"},"日期")],-1)),E={key:0,class:"flex flex-col items-center gap-2"},P=z({__name:"schedule",setup(l){const x=p(["01/01","01/02","01/03","01/04","01/05","01/06","01/07","01/08","01/09","01/10","01/11","01/12","01/13","01/14","01/15","01/16","01/17","01/18","01/19","01/20","01/21","01/22","01/23","01/24","01/25","01/26","01/27","01/28","01/29","01/30","01/31"]),y=p(["09:00-10:00","10:00-11:00","11:00-12:00","14:00-15:00","15:00-16:00","16:00-17:00"]),c=p([{row:"01/05",col:"11:00-12:00",content:"张三"},{row:"01/08",col:"09:00-10:00",content:"李四"},{row:"01/15",col:"16:00-17:00",content:"王五"},{row:"01/26",col:"15:00-16:00",content:"某某"}]);function i(a,r){return c.value.findIndex(s=>s.row===a&&s.col===r)}function w(a,r){c.value.push({row:a,col:r,content:"某某"})}function C(a){c.value.splice(a,1)}return(a,r)=>{const s=L("van-button"),g=S;return e(),b(g,{navbar:"","navbar-start-side":"back"},{default:f(()=>[t("div",j,[t("table",null,[t("thead",null,[t("tr",null,[A,(e(!0),o(h,null,m(d(y),(n,_)=>(e(),o("th",{key:_},v(n),1))),128))])]),t("tbody",null,[(e(!0),o(h,null,m(d(x),(n,_)=>(e(),o("tr",{key:_},[t("td",null,v(n),1),(e(!0),o(h,null,m(d(y),(u,I)=>(e(),o("td",{key:I},[i(n,u)>=0?(e(),o("div",E,[k(v(d(c)[i(n,u)].content)+" ",1),N(s,{type:"danger",size:"mini",onClick:B=>C(i(n,u))},{default:f(()=>[k(" 取消预约 ")]),_:2},1032,["onClick"])])):(e(),b(s,{key:1,type:"primary",size:"mini",onClick:B=>w(n,u)},{default:f(()=>[k(" 预约 ")]),_:2},1032,["onClick"]))]))),128))]))),128))])])])]),_:1})}}}),q=F(P,[["__scopeId","data-v-a4dde5e7"]]);export{q as default}; diff --git a/assets/schedule-SSIWYKoH.js.br b/assets/schedule-SSIWYKoH.js.br new file mode 100644 index 00000000..86c72c3d Binary files /dev/null and b/assets/schedule-SSIWYKoH.js.br differ diff --git a/assets/schedule-SSIWYKoH.js.gz b/assets/schedule-SSIWYKoH.js.gz new file mode 100644 index 00000000..c178ca40 Binary files /dev/null and b/assets/schedule-SSIWYKoH.js.gz differ diff --git a/assets/scroll-BSMG2auX.js b/assets/scroll-BSMG2auX.js new file mode 100644 index 00000000..763adfcb --- /dev/null +++ b/assets/scroll-BSMG2auX.js @@ -0,0 +1 @@ +import{_ as c}from"./index-Cwg3TLNR.js";import{d as _,c as d,w as a,m as i,o,b as u,e as p,a as e,j as m,n as v,F as f,t as b}from"./index-DpnASd8N.js";const k={class:"flex flex-col gap-4 p-4"},x=e("div",null,"随意滚动当前页面到任意位置并点击右上角的「下一页」按钮,再次返回页面时会定位在离开时的位置。",-1),g=e("div",null,"注意:这个特性需要当前页面设置页面缓存,当前页面是否被缓存直接影响滚动位置是否会被记录。例如当前页面,只有在进入下一页时才会被缓存,返回上一页则不会。",-1),y=_({name:"FeatureStandardScroll",__name:"scroll",setup(h){return(s,n)=>{const r=i("van-button"),l=c;return o(),d(l,{navbar:"","navbar-start-side":"back","saved-position":""},{"navbar-end":a(()=>[u(r,{size:"small",onClick:n[0]||(n[0]=t=>s.$router.push("/feature/function/scroll2"))},{default:a(()=>[p(" 下一页 ")]),_:1})]),default:a(()=>[e("div",k,[x,g,(o(),m(f,null,v(50,t=>e("div",{key:t,class:"text-center"},b(t),1)),64))])]),_:1})}}});export{y as default}; diff --git a/assets/scroll-BSMG2auX.js.br b/assets/scroll-BSMG2auX.js.br new file mode 100644 index 00000000..0055a8e3 Binary files /dev/null and b/assets/scroll-BSMG2auX.js.br differ diff --git a/assets/scroll-BSMG2auX.js.gz b/assets/scroll-BSMG2auX.js.gz new file mode 100644 index 00000000..ac0ff604 Binary files /dev/null and b/assets/scroll-BSMG2auX.js.gz differ diff --git a/assets/scroll2-COIRDF_1.js b/assets/scroll2-COIRDF_1.js new file mode 100644 index 00000000..fd97aedf --- /dev/null +++ b/assets/scroll2-COIRDF_1.js @@ -0,0 +1 @@ +import{_ as r}from"./index-Cwg3TLNR.js";import{d as c,c as _,w as o,k as u,m as l,o as p,a as t,b as d,e as i,u as m}from"./index-DpnASd8N.js";const f={class:"flex flex-col gap-4 p-4"},v=t("div",null,"现在你可以返回上一页查看效果。",-1),B=c({__name:"scroll2",setup(b){const a=u();return(k,e)=>{const n=l("van-button"),s=r;return p(),_(s,{navbar:"","navbar-start-side":"back"},{default:o(()=>[t("div",f,[v,d(n,{onClick:e[0]||(e[0]=x=>m(a).back())},{default:o(()=>[i(" 返回 ")]),_:1})])]),_:1})}}});export{B as default}; diff --git a/assets/scroll2-COIRDF_1.js.br b/assets/scroll2-COIRDF_1.js.br new file mode 100644 index 00000000..93d11494 Binary files /dev/null and b/assets/scroll2-COIRDF_1.js.br differ diff --git a/assets/scroll2-COIRDF_1.js.gz b/assets/scroll2-COIRDF_1.js.gz new file mode 100644 index 00000000..7154fb36 Binary files /dev/null and b/assets/scroll2-COIRDF_1.js.gz differ diff --git a/assets/sparkline-demo-B0gveUBF.js b/assets/sparkline-demo-B0gveUBF.js new file mode 100644 index 00000000..8649f4e6 --- /dev/null +++ b/assets/sparkline-demo-B0gveUBF.js @@ -0,0 +1 @@ +import{_ as H}from"./index-Cwg3TLNR.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{d as V,T as U,r as y,h as Z,o as C,j as E,U as G,V as J,u as i,W as K,t as Q,p as tt,z as et,c as ot,w as W,b as _}from"./index-DpnASd8N.js";function P(t,e,o,a){return Number.parseFloat((e-a*e/t+o).toFixed(2))}function at(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function lt(t){return t.value}function k(t,e){const o=document.createElementNS("http://www.w3.org/2000/svg",t);for(const a in e)o.setAttribute(a,e[a]);return o}function st(t,e,o){if(at(t),e.length<=1)return;o=o||{},typeof e[0]=="number"&&(e=e.map(s=>({value:s})));const a=o.onmousemove,l=o.onmouseout,n="interactive"in o?o.interactive:!!a,f=o.spotRadius||2,u=f*2,B=o.cursorWidth||2,g=Number.parseFloat(t.attributes["stroke-width"].value),M=o.fetch||lt,b=e.map(s=>M(s)),R=Number.parseFloat(t.attributes.width.value)-u*2,w=Number.parseFloat(t.attributes.height.value),N=w-g*2-u,D=Math.max(...b),c=-1e3,F=b.length-1,I=R/F,h=[],X=P(D,N,g+f,b[0]);let $=`M${u} ${X}`;b.forEach((s,d)=>{const r=d*I+u,p=P(D,N,g+f,s);h.push(Object.assign({},e[d],{index:d,x:r,y:p})),$+=` L ${r} ${p}`});const Y=k("path",{class:"sparkline--line",d:$,fill:"none"}),j=`${$} V ${w} L ${u} ${w} Z`,z=k("path",{class:"sparkline--fill",d:j,stroke:"none"});if(t.appendChild(z),t.appendChild(Y),!n)return;const m=k("line",{class:"sparkline--cursor",x1:c,x2:c,y1:0,y2:w,"stroke-width":B}),x=k("circle",{class:"sparkline--spot",cx:c,cy:c,r:f});t.appendChild(m),t.appendChild(x);const S=k("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(S),S.addEventListener("mouseout",s=>{m.setAttribute("x1",c.toString()),m.setAttribute("x2",c.toString()),x.setAttribute("cx",c.toString()),l&&l(s)}),S.addEventListener("mousemove",s=>{const d=s.offsetX;let r=h.find(q=>q.x>=d);r||(r=h[F]);const p=h[h.indexOf(r)-1];let v,L;p?(L=p.x+(r.x-p.x)/2,v=d>=L?r:p):v=r;const A=v.x,O=v.y;x.setAttribute("cx",A),x.setAttribute("cy",O),m.setAttribute("x1",A),m.setAttribute("x2",A),a&&a(s,v)})}const nt={class:"sparkline"},rt=["width","height","stroke-width","stroke","fill"],it=V({name:"Sparkline",__name:"index",props:{value:{},width:{default:100},height:{default:30},strokeWidth:{default:3},strokeColor:{default:"#dc2b33"},fillColor:{default:"transparent"},cursorColor:{default:"#dc2b33"},spotColor:{default:"#dc2b33"},tooltip:{type:Boolean,default:!1}},setup(t){U(l=>({"1759bdf4":l.cursorColor,"9e222cf0":l.spotColor}));const e=t,o=y(),a=y({show:!1,content:"",top:0,left:0});return Z(()=>{st(o.value,e.value,e.tooltip&&{onmousemove:(l,n)=>{a.value.show=!0,a.value.content=n.tooltip,a.value.top=l.offsetY,a.value.left=l.offsetX+20},onmouseout:()=>{a.value.show=!1}})}),(l,n)=>(C(),E("div",nt,[(C(),E("svg",{ref_key:"sparklineRef",ref:o,width:l.width,height:l.height,"stroke-width":l.strokeWidth,stroke:l.strokeColor,fill:l.fillColor},null,8,rt)),l.tooltip?G((C(),E("span",{key:0,class:"tooltip",style:K([`left: ${i(a).left}px`,`top: ${i(a).top}px`])},Q(i(a).content),5)),[[J,i(a).show]]):tt("",!0)]))}}),ut=et(it,[["__scopeId","data-v-b4211adf"]]),dt=V({__name:"sparkline-demo",setup(t){const e=y([1,5,2,4,8,3,7]),o=y([{tooltip:"值:1",value:1},{tooltip:"值:3",value:3},{tooltip:"值:5",value:5},{tooltip:"值:8",value:8},{tooltip:"值:4",value:4},{tooltip:"值:6",value:6},{tooltip:"值:9",value:9}]);return(a,l)=>{const n=ut,f=T,u=H;return C(),ot(u,{navbar:"","navbar-start-side":"back"},{default:W(()=>[_(f,null,{default:W(()=>[_(n,{value:i(e)},null,8,["value"]),_(n,{value:i(e),"stroke-color":"#409eff","fill-color":"#b3d8ff"},null,8,["value"]),_(n,{value:i(o),tooltip:""},null,8,["value"]),_(n,{value:i(o),tooltip:"","stroke-color":"#409eff","fill-color":"#b3d8ff","cursor-color":"#e6a23c","spot-color":"#909399"},null,8,["value"])]),_:1})]),_:1})}}});export{dt as default}; diff --git a/assets/sparkline-demo-B0gveUBF.js.br b/assets/sparkline-demo-B0gveUBF.js.br new file mode 100644 index 00000000..91b39b6b Binary files /dev/null and b/assets/sparkline-demo-B0gveUBF.js.br differ diff --git a/assets/sparkline-demo-B0gveUBF.js.gz b/assets/sparkline-demo-B0gveUBF.js.gz new file mode 100644 index 00000000..d0b13017 Binary files /dev/null and b/assets/sparkline-demo-B0gveUBF.js.gz differ diff --git a/assets/sparkline-demo-DEUWp43m.css b/assets/sparkline-demo-DEUWp43m.css new file mode 100644 index 00000000..545171d0 --- /dev/null +++ b/assets/sparkline-demo-DEUWp43m.css @@ -0,0 +1 @@ +.sparkline[data-v-b4211adf]{position:relative}.sparkline[data-v-b4211adf] .sparkline--cursor{stroke:var(--1759bdf4)}.sparkline[data-v-b4211adf] .sparkline--spot{fill:var(--9e222cf0);stroke:var(--9e222cf0)}.sparkline .tooltip[data-v-b4211adf]{position:absolute;z-index:9999;padding:min(.533vw,3.2px) min(1.333vw,8px);font-size:min(3.2vw,19.2px);color:#fff;white-space:nowrap;background:#000000b3} diff --git a/assets/sparkline-demo-DEUWp43m.css.br b/assets/sparkline-demo-DEUWp43m.css.br new file mode 100644 index 00000000..4e8005a5 Binary files /dev/null and b/assets/sparkline-demo-DEUWp43m.css.br differ diff --git a/assets/sparkline-demo-DEUWp43m.css.gz b/assets/sparkline-demo-DEUWp43m.css.gz new file mode 100644 index 00000000..52aef395 Binary files /dev/null and b/assets/sparkline-demo-DEUWp43m.css.gz differ diff --git a/assets/swiper-BzuCNneQ.js b/assets/swiper-BzuCNneQ.js new file mode 100644 index 00000000..445fe578 --- /dev/null +++ b/assets/swiper-BzuCNneQ.js @@ -0,0 +1 @@ +import{_ as et}from"./index-Cwg3TLNR.js";import{_ as tt}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{r as H,ay as Ge,az as ke,ao as it,Y as st,h as Ne,aA as $e,aB as q,aC as nt,O as at,d as rt,c as lt,w as I,m as Ie,o as ot,a as ae,b as _,e as A,u as z,i as dt,_ as ut,Z as ct,a0 as ft,z as pt}from"./index-DpnASd8N.js";function _e(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Pe(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:_e(e[i])&&_e(t[i])&&Object.keys(e[i]).length>0&&Pe(t[i],e[i])})}const Ve={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function X(){const t=typeof document<"u"?document:{};return Pe(t,Ve),t}const mt={document:Ve,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function j(){const t=typeof window<"u"?window:{};return Pe(t,mt),t}function Q(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function gt(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function fe(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function pe(){return Date.now()}function ht(t){const e=j();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function vt(t,e){e===void 0&&(e="x");const i=j();let s,n,a;const l=ht(t);return i.WebKitCSSMatrix?(n=l.transform||l.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix(n==="none"?"":n)):(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?n=a.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?n=a.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function de(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function wt(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function W(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(a)<0);for(let a=0,l=n.length;aa?"next":"prev",d=(v,m)=>f==="next"&&v>=m||f==="prev"&&v<=m,c=()=>{o=new Date().getTime(),l===null&&(l=o);const v=Math.max(Math.min((o-l)/r,1),0),m=.5-Math.cos(v*Math.PI)/2;let g=a+m*(i-a);if(d(g,i)&&(g=i),e.wrapperEl.scrollTo({[s]:g}),d(g,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:g})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(c)};c()}function Y(t,e){e===void 0&&(e="");const i=[...t.children];return t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(s=>s.matches(e)):i}function St(t,e){const i=e.contains(t);return!i&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(t):i}function me(t){try{console.warn(t);return}catch{}}function ne(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Q(e)),i}function bt(t){const e=j(),i=X(),s=t.getBoundingClientRect(),n=i.body,a=t.clientTop||n.clientTop||0,l=t.clientLeft||n.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:s.top+o-a,left:s.left+r-l}}function yt(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function xt(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function ee(t,e){return j().getComputedStyle(t,null).getPropertyValue(e)}function re(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Fe(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function Te(t,e,i){const s=j();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function $(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Me(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&i.auto===!0){let a=Y(t.el,`.${s[n]}`)[0];a||(a=ne("div",s[n]),a.className=s[n],t.el.append(a)),i[n]=a,e[n]=a}}),i}function Tt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function a(g){let w;return g&&typeof g=="string"&&e.isElement&&(w=e.el.querySelector(g),w)?w:(g&&(typeof g=="string"&&(w=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&w&&w.length>1&&e.el.querySelectorAll(g).length===1?w=e.el.querySelector(g):w&&w.length===1&&(w=w[0])),g&&!w?g:w)}function l(g,w){const C=e.params.navigation;g=$(g),g.forEach(u=>{u&&(u.classList[w?"add":"remove"](...C.disabledClass.split(" ")),u.tagName==="BUTTON"&&(u.disabled=w),e.params.watchOverflow&&e.enabled&&u.classList[e.isLocked?"add":"remove"](C.lockClass))})}function o(){const{nextEl:g,prevEl:w}=e.navigation;if(e.params.loop){l(w,!1),l(g,!1);return}l(w,e.isBeginning&&!e.params.rewind),l(g,e.isEnd&&!e.params.rewind)}function r(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function f(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function d(){const g=e.params.navigation;if(e.params.navigation=Me(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let w=a(g.nextEl),C=a(g.prevEl);Object.assign(e.navigation,{nextEl:w,prevEl:C}),w=$(w),C=$(C);const u=(p,h)=>{p&&p.addEventListener("click",h==="next"?f:r),!e.enabled&&p&&p.classList.add(...g.lockClass.split(" "))};w.forEach(p=>u(p,"next")),C.forEach(p=>u(p,"prev"))}function c(){let{nextEl:g,prevEl:w}=e.navigation;g=$(g),w=$(w);const C=(u,p)=>{u.removeEventListener("click",p==="next"?f:r),u.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(u=>C(u,"next")),w.forEach(u=>C(u,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?m():(d(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{c()}),s("enable disable",()=>{let{nextEl:g,prevEl:w}=e.navigation;if(g=$(g),w=$(w),e.enabled){o();return}[...g,...w].filter(C=>!!C).forEach(C=>C.classList.add(e.params.navigation.lockClass))}),s("click",(g,w)=>{let{nextEl:C,prevEl:u}=e.navigation;C=$(C),u=$(u);const p=w.target;let h=u.includes(p)||C.includes(p);if(e.isElement&&!h){const y=w.path||w.composedPath&&w.composedPath();y&&(h=y.find(P=>C.includes(P)||u.includes(P)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===p||e.pagination.el.contains(p)))return;let y;C.length?y=C[0].classList.contains(e.params.navigation.hiddenClass):u.length&&(y=u[0].classList.contains(e.params.navigation.hiddenClass)),n(y===!0?"navigationShow":"navigationHide"),[...C,...u].filter(P=>!!P).forEach(P=>P.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),o()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:v,disable:m,update:o,init:d,destroy:c})}function K(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Et(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:u=>u,formatFractionTotal:u=>u,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let l,o=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function f(u,p){const{bulletActiveClass:h}=e.params.pagination;u&&(u=u[`${p==="prev"?"previous":"next"}ElementSibling`],u&&(u.classList.add(`${h}-${p}`),u=u[`${p==="prev"?"previous":"next"}ElementSibling`],u&&u.classList.add(`${h}-${p}-${p}`)))}function d(u){const p=u.target.closest(K(e.params.pagination.bulletClass));if(!p)return;u.preventDefault();const h=re(p)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;e.slideToLoop(h)}else e.slideTo(h)}function c(){const u=e.rtl,p=e.params.pagination;if(r())return;let h=e.pagination.el;h=$(h);let y,P;const N=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,R=e.params.loop?Math.ceil(N/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(y=e.snapIndex,P=e.previousSnapIndex):(P=e.previousIndex||0,y=e.activeIndex||0),p.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const O=e.pagination.bullets;let E,T,D;if(p.dynamicBullets&&(l=Te(O[0],e.isHorizontal()?"width":"height"),h.forEach(b=>{b.style[e.isHorizontal()?"width":"height"]=`${l*(p.dynamicMainBullets+4)}px`}),p.dynamicMainBullets>1&&P!==void 0&&(o+=y-(P||0),o>p.dynamicMainBullets-1?o=p.dynamicMainBullets-1:o<0&&(o=0)),E=Math.max(y-o,0),T=E+(Math.min(O.length,p.dynamicMainBullets)-1),D=(T+E)/2),O.forEach(b=>{const x=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(M=>`${p.bulletActiveClass}${M}`)].map(M=>typeof M=="string"&&M.includes(" ")?M.split(" "):M).flat();b.classList.remove(...x)}),h.length>1)O.forEach(b=>{const x=re(b);x===y?b.classList.add(...p.bulletActiveClass.split(" ")):e.isElement&&b.setAttribute("part","bullet"),p.dynamicBullets&&(x>=E&&x<=T&&b.classList.add(...`${p.bulletActiveClass}-main`.split(" ")),x===E&&f(b,"prev"),x===T&&f(b,"next"))});else{const b=O[y];if(b&&b.classList.add(...p.bulletActiveClass.split(" ")),e.isElement&&O.forEach((x,M)=>{x.setAttribute("part",M===y?"bullet-active":"bullet")}),p.dynamicBullets){const x=O[E],M=O[T];for(let G=E;G<=T;G+=1)O[G]&&O[G].classList.add(...`${p.bulletActiveClass}-main`.split(" "));f(x,"prev"),f(M,"next")}}if(p.dynamicBullets){const b=Math.min(O.length,p.dynamicMainBullets+4),x=(l*b-l)/2-D*l,M=u?"right":"left";O.forEach(G=>{G.style[e.isHorizontal()?M:"top"]=`${x}px`})}}h.forEach((O,E)=>{if(p.type==="fraction"&&(O.querySelectorAll(K(p.currentClass)).forEach(T=>{T.textContent=p.formatFractionCurrent(y+1)}),O.querySelectorAll(K(p.totalClass)).forEach(T=>{T.textContent=p.formatFractionTotal(R)})),p.type==="progressbar"){let T;p.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const D=(y+1)/R;let b=1,x=1;T==="horizontal"?b=D:x=D,O.querySelectorAll(K(p.progressbarFillClass)).forEach(M=>{M.style.transform=`translate3d(0,0,0) scaleX(${b}) scaleY(${x})`,M.style.transitionDuration=`${e.params.speed}ms`})}p.type==="custom"&&p.renderCustom?(O.innerHTML=p.renderCustom(e,y+1,R),E===0&&n("paginationRender",O)):(E===0&&n("paginationRender",O),n("paginationUpdate",O)),e.params.watchOverflow&&e.enabled&&O.classList[e.isLocked?"add":"remove"](p.lockClass)})}function v(){const u=e.params.pagination;if(r())return;const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let h=e.pagination.el;h=$(h);let y="";if(u.type==="bullets"){let P=e.params.loop?Math.ceil(p/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>p&&(P=p);for(let N=0;N`}u.type==="fraction"&&(u.renderFraction?y=u.renderFraction.call(e,u.currentClass,u.totalClass):y=` / `),u.type==="progressbar"&&(u.renderProgressbar?y=u.renderProgressbar.call(e,u.progressbarFillClass):y=``),e.pagination.bullets=[],h.forEach(P=>{u.type!=="custom"&&(P.innerHTML=y||""),u.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(K(u.bulletClass)))}),u.type!=="custom"&&n("paginationRender",h[0])}function m(){e.params.pagination=Me(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const u=e.params.pagination;if(!u.el)return;let p;typeof u.el=="string"&&e.isElement&&(p=e.el.querySelector(u.el)),!p&&typeof u.el=="string"&&(p=[...document.querySelectorAll(u.el)]),p||(p=u.el),!(!p||p.length===0)&&(e.params.uniqueNavElements&&typeof u.el=="string"&&Array.isArray(p)&&p.length>1&&(p=[...e.el.querySelectorAll(u.el)],p.length>1&&(p=p.filter(h=>Fe(h,".swiper")[0]===e.el)[0])),Array.isArray(p)&&p.length===1&&(p=p[0]),Object.assign(e.pagination,{el:p}),p=$(p),p.forEach(h=>{u.type==="bullets"&&u.clickable&&h.classList.add(...(u.clickableClass||"").split(" ")),h.classList.add(u.modifierClass+u.type),h.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.type==="bullets"&&u.dynamicBullets&&(h.classList.add(`${u.modifierClass}${u.type}-dynamic`),o=0,u.dynamicMainBullets<1&&(u.dynamicMainBullets=1)),u.type==="progressbar"&&u.progressbarOpposite&&h.classList.add(u.progressbarOppositeClass),u.clickable&&h.addEventListener("click",d),e.enabled||h.classList.add(u.lockClass)}))}function g(){const u=e.params.pagination;if(r())return;let p=e.pagination.el;p&&(p=$(p),p.forEach(h=>{h.classList.remove(u.hiddenClass),h.classList.remove(u.modifierClass+u.type),h.classList.remove(e.isHorizontal()?u.horizontalClass:u.verticalClass),u.clickable&&(h.classList.remove(...(u.clickableClass||"").split(" ")),h.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...u.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const u=e.params.pagination;let{el:p}=e.pagination;p=$(p),p.forEach(h=>{h.classList.remove(u.horizontalClass,u.verticalClass),h.classList.add(e.isHorizontal()?u.horizontalClass:u.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?C():(m(),v(),c())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&c()}),s("snapIndexChange",()=>{c()}),s("snapGridLengthChange",()=>{v(),c()}),s("destroy",()=>{g()}),s("enable disable",()=>{let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{c()}),s("click",(u,p)=>{const h=p.target,y=$(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const P=y[0].classList.contains(e.params.pagination.hiddenClass);n(P===!0?"paginationShow":"paginationHide"),y.forEach(N=>N.classList.toggle(e.params.pagination.hiddenClass))}});const w=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList.remove(e.params.pagination.paginationDisabledClass))),m(),v(),c()},C=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:u}=e.pagination;u&&(u=$(u),u.forEach(p=>p.classList.add(e.params.pagination.paginationDisabledClass))),g()};Object.assign(e.pagination,{enable:w,disable:C,render:v,update:c,init:m,destroy:g})}function Ct(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a=X();let l=!1,o=null,r=null,f,d,c,v;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:b,rtlTranslate:x}=e,{dragEl:M,el:G}=b,V=e.params.scrollbar,S=e.params.loop?e.progressLoop:e.progress;let L=d,k=(c-d)*S;x?(k=-k,k>0?(L=d-k,k=0):-k+d>c&&(L=c+k)):k<0?(L=d+k,k=0):k+d>c&&(L=c-k),e.isHorizontal()?(M.style.transform=`translate3d(${k}px, 0, 0)`,M.style.width=`${L}px`):(M.style.transform=`translate3d(0px, ${k}px, 0)`,M.style.height=`${L}px`),V.hide&&(clearTimeout(o),G.style.opacity=1,o=setTimeout(()=>{G.style.opacity=0,G.style.transitionDuration="400ms"},1e3))}function g(b){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${b}ms`)}function w(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:b}=e,{dragEl:x,el:M}=b;x.style.width="",x.style.height="",c=e.isHorizontal()?M.offsetWidth:M.offsetHeight,v=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=c*v:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?x.style.width=`${d}px`:x.style.height=`${d}px`,v>=1?M.style.display="none":M.style.display="",e.params.scrollbar.hide&&(M.style.opacity=0),e.params.watchOverflow&&e.enabled&&b.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function C(b){return e.isHorizontal()?b.clientX:b.clientY}function u(b){const{scrollbar:x,rtlTranslate:M}=e,{el:G}=x;let V;V=(C(b)-bt(G)[e.isHorizontal()?"left":"top"]-(f!==null?f:d/2))/(c-d),V=Math.max(Math.min(V,1),0),M&&(V=1-V);const S=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*V;e.updateProgress(S),e.setTranslate(S),e.updateActiveIndex(),e.updateSlidesClasses()}function p(b){const x=e.params.scrollbar,{scrollbar:M,wrapperEl:G}=e,{el:V,dragEl:S}=M;l=!0,f=b.target===S?C(b)-b.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,b.preventDefault(),b.stopPropagation(),G.style.transitionDuration="100ms",S.style.transitionDuration="100ms",u(b),clearTimeout(r),V.style.transitionDuration="0ms",x.hide&&(V.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",b)}function h(b){const{scrollbar:x,wrapperEl:M}=e,{el:G,dragEl:V}=x;l&&(b.preventDefault&&b.cancelable?b.preventDefault():b.returnValue=!1,u(b),M.style.transitionDuration="0ms",G.style.transitionDuration="0ms",V.style.transitionDuration="0ms",n("scrollbarDragMove",b))}function y(b){const x=e.params.scrollbar,{scrollbar:M,wrapperEl:G}=e,{el:V}=M;l&&(l=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",G.style.transitionDuration=""),x.hide&&(clearTimeout(r),r=fe(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),n("scrollbarDragEnd",b),x.snapOnRelease&&e.slideToClosest())}function P(b){const{scrollbar:x,params:M}=e,G=x.el;if(!G)return;const V=G,S=M.passiveListeners?{passive:!1,capture:!1}:!1,L=M.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;const k=b==="on"?"addEventListener":"removeEventListener";V[k]("pointerdown",p,S),a[k]("pointermove",h,S),a[k]("pointerup",y,L)}function N(){!e.params.scrollbar.el||!e.scrollbar.el||P("on")}function R(){!e.params.scrollbar.el||!e.scrollbar.el||P("off")}function O(){const{scrollbar:b,el:x}=e;e.params.scrollbar=Me(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const M=e.params.scrollbar;if(!M.el)return;let G;if(typeof M.el=="string"&&e.isElement&&(G=e.el.querySelector(M.el)),!G&&typeof M.el=="string"){if(G=a.querySelectorAll(M.el),!G.length)return}else G||(G=M.el);e.params.uniqueNavElements&&typeof M.el=="string"&&G.length>1&&x.querySelectorAll(M.el).length===1&&(G=x.querySelector(M.el)),G.length>0&&(G=G[0]),G.classList.add(e.isHorizontal()?M.horizontalClass:M.verticalClass);let V;G&&(V=G.querySelector(K(e.params.scrollbar.dragClass)),V||(V=ne("div",e.params.scrollbar.dragClass),G.append(V))),Object.assign(b,{el:G,dragEl:V}),M.draggable&&N(),G&&G.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}function E(){const b=e.params.scrollbar,x=e.scrollbar.el;x&&x.classList.remove(...Q(e.isHorizontal()?b.horizontalClass:b.verticalClass)),R()}s("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const b=e.params.scrollbar;let{el:x}=e.scrollbar;x=$(x),x.forEach(M=>{M.classList.remove(b.horizontalClass,b.verticalClass),M.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),s("init",()=>{e.params.scrollbar.enabled===!1?D():(O(),w(),m())}),s("update resize observerUpdate lock unlock changeDirection",()=>{w()}),s("setTranslate",()=>{m()}),s("setTransition",(b,x)=>{g(x)}),s("enable disable",()=>{const{el:b}=e.scrollbar;b&&b.classList[e.enabled?"remove":"add"](...Q(e.params.scrollbar.lockClass))}),s("destroy",()=>{E()});const T=()=>{e.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Q(e.params.scrollbar.scrollbarDisabledClass)),O(),w(),m()},D=()=>{e.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Q(e.params.scrollbar.scrollbarDisabledClass)),E()};Object.assign(e.scrollbar,{enable:T,disable:D,updateSize:w,setTranslate:m,init:O,destroy:E})}function Pt(t){let{swiper:e,extendParams:i,on:s}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let n=null,a,l,o=new Date().getTime();function r(S){const L=n;L.length!==0&&(L.innerHTML="",L.innerHTML=S)}function f(S){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(S).replace(/x/g,L)}function d(S){S=$(S),S.forEach(L=>{L.setAttribute("tabIndex","0")})}function c(S){S=$(S),S.forEach(L=>{L.setAttribute("tabIndex","-1")})}function v(S,L){S=$(S),S.forEach(k=>{k.setAttribute("role",L)})}function m(S,L){S=$(S),S.forEach(k=>{k.setAttribute("aria-roledescription",L)})}function g(S,L){S=$(S),S.forEach(k=>{k.setAttribute("aria-controls",L)})}function w(S,L){S=$(S),S.forEach(k=>{k.setAttribute("aria-label",L)})}function C(S,L){S=$(S),S.forEach(k=>{k.setAttribute("id",L)})}function u(S,L){S=$(S),S.forEach(k=>{k.setAttribute("aria-live",L)})}function p(S){S=$(S),S.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function h(S){S=$(S),S.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function y(S){if(S.keyCode!==13&&S.keyCode!==32)return;const L=e.params.a11y,k=S.target;if(!(e.pagination&&e.pagination.el&&(k===e.pagination.el||e.pagination.el.contains(S.target))&&!S.target.matches(K(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const F=$(e.navigation.prevEl);$(e.navigation.nextEl).includes(k)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?r(L.lastSlideMessage):r(L.nextSlideMessage)),F.includes(k)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?r(L.firstSlideMessage):r(L.prevSlideMessage))}e.pagination&&k.matches(K(e.params.pagination.bulletClass))&&k.click()}}function P(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:S,prevEl:L}=e.navigation;L&&(e.isBeginning?(p(L),c(L)):(h(L),d(L))),S&&(e.isEnd?(p(S),c(S)):(h(S),d(S)))}function N(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function R(){return N()&&e.params.pagination.clickable}function O(){const S=e.params.a11y;N()&&e.pagination.bullets.forEach(L=>{e.params.pagination.clickable&&(d(L),e.params.pagination.renderBullet||(v(L,"button"),w(L,S.paginationBulletMessage.replace(/\{\{index\}\}/,re(L)+1)))),L.matches(K(e.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const E=(S,L,k)=>{d(S),S.tagName!=="BUTTON"&&(v(S,"button"),S.addEventListener("keydown",y)),w(S,k),g(S,L)},T=S=>{l&&l!==S.target&&!l.contains(S.target)&&(a=!0),e.a11y.clicked=!0},D=()=>{a=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},b=S=>{o=new Date().getTime()},x=S=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const L=S.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!L||!e.slides.includes(L))return;l=L;const k=e.slides.indexOf(L)===e.activeIndex,F=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(L);k||F||S.sourceCapabilities&&S.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{a||(e.params.loop?e.slideToLoop(parseInt(L.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(L),0),a=!1)}))},M=()=>{const S=e.params.a11y;S.itemRoleDescriptionMessage&&m(e.slides,S.itemRoleDescriptionMessage),S.slideRole&&v(e.slides,S.slideRole);const L=e.slides.length;S.slideLabelMessage&&e.slides.forEach((k,F)=>{const Z=e.params.loop?parseInt(k.getAttribute("data-swiper-slide-index"),10):F,J=S.slideLabelMessage.replace(/\{\{index\}\}/,Z+1).replace(/\{\{slidesLength\}\}/,L);w(k,J)})},G=()=>{const S=e.params.a11y;e.el.append(n);const L=e.el;S.containerRoleDescriptionMessage&&m(L,S.containerRoleDescriptionMessage),S.containerMessage&&w(L,S.containerMessage);const k=e.wrapperEl,F=S.id||k.getAttribute("id")||`swiper-wrapper-${f(16)}`,Z=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";C(k,F),u(k,Z),M();let{nextEl:J,prevEl:le}=e.navigation?e.navigation:{};J=$(J),le=$(le),J&&J.forEach(oe=>E(oe,F,S.nextSlideMessage)),le&&le.forEach(oe=>E(oe,F,S.prevSlideMessage)),R()&&$(e.pagination.el).forEach(Qe=>{Qe.addEventListener("keydown",y)}),X().addEventListener("visibilitychange",b),e.el.addEventListener("focus",x,!0),e.el.addEventListener("focus",x,!0),e.el.addEventListener("pointerdown",T,!0),e.el.addEventListener("pointerup",D,!0)};function V(){n&&n.remove();let{nextEl:S,prevEl:L}=e.navigation?e.navigation:{};S=$(S),L=$(L),S&&S.forEach(F=>F.removeEventListener("keydown",y)),L&&L.forEach(F=>F.removeEventListener("keydown",y)),R()&&$(e.pagination.el).forEach(Z=>{Z.removeEventListener("keydown",y)}),X().removeEventListener("visibilitychange",b),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",x,!0),e.el.removeEventListener("pointerdown",T,!0),e.el.removeEventListener("pointerup",D,!0))}s("beforeInit",()=>{n=ne("span",e.params.a11y.notificationClass),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true")}),s("afterInit",()=>{e.params.a11y.enabled&&G()}),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&M()}),s("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&P()}),s("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),s("destroy",()=>{e.params.a11y.enabled&&V()})}let ge;function Mt(){const t=j(),e=X();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function He(){return ge||(ge=Mt()),ge}let he;function Lt(t){let{userAgent:e}=t===void 0?{}:t;const i=He(),s=j(),n=s.navigator.platform,a=e||s.navigator.userAgent,l={ios:!1,android:!1},o=s.screen.width,r=s.screen.height,f=a.match(/(Android);?[\s\/]+([\d.]+)?/);let d=a.match(/(iPad).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),v=!d&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=n==="Win32";let g=n==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&i.touch&&w.indexOf(`${o}x${r}`)>=0&&(d=a.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),f&&!m&&(l.os="android",l.android=!0),(d||v||c)&&(l.os="ios",l.ios=!0),l}function je(t){return t===void 0&&(t={}),he||(he=Lt(t)),he}let ve;function It(){const t=j(),e=je();let i=!1;function s(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[r,f]=o.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=r<16||r===16&&f<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),a=s(),l=a||n&&e.ios;return{isSafari:i||a,needPerspectiveFix:i,need3dFix:l,isWebView:n}}function _t(){return ve||(ve=It()),ve}function Ot(t){let{swiper:e,on:i,emit:s}=t;const n=j();let a=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(c=>{l=n.requestAnimationFrame(()=>{const{width:v,height:m}=e;let g=v,w=m;c.forEach(C=>{let{contentBoxSize:u,contentRect:p,target:h}=C;h&&h!==e.el||(g=p?p.width:(u[0]||u).inlineSize,w=p?p.height:(u[0]||u).blockSize)}),(g!==v||w!==m)&&o()})}),a.observe(e.el))},f=()=>{l&&n.cancelAnimationFrame(l),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){r();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",d)}),i("destroy",()=>{f(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",d)})}function zt(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a=[],l=j(),o=function(d,c){c===void 0&&(c={});const v=l.MutationObserver||l.WebkitMutationObserver,m=new v(g=>{if(e.__preventObserver__)return;if(g.length===1){n("observerUpdate",g[0]);return}const w=function(){n("observerUpdate",g[0])};l.requestAnimationFrame?l.requestAnimationFrame(w):l.setTimeout(w,0)});m.observe(d,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(m)},r=()=>{if(e.params.observer){if(e.params.observeParents){const d=Fe(e.hostEl);for(let c=0;c{a.forEach(d=>{d.disconnect()}),a.splice(0,a.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",r),s("destroy",f)}var At={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const n=i?"unshift":"push";return t.split(" ").forEach(a=>{s.eventsListeners[a]||(s.eventsListeners[a]=[]),s.eventsListeners[a][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var a=arguments.length,l=new Array(a),o=0;o=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((n,a)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[s].splice(a,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,a=new Array(n),l=0;l{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(f=>{f.apply(s,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(f=>{f.apply(s,i)})}),t}};function Bt(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ee(s,"padding-left")||0,10)-parseInt(ee(s,"padding-right")||0,10),i=i-parseInt(ee(s,"padding-top")||0,10)-parseInt(ee(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Dt(){const t=this;function e(T,D){return parseFloat(T.getPropertyValue(t.getDirectionLabel(D))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:a,rtlTranslate:l,wrongRTL:o}=t,r=t.virtual&&i.virtual.enabled,f=r?t.virtual.slides.length:t.slides.length,d=Y(n,`.${t.params.slideClass}, swiper-slide`),c=r?t.virtual.slides.length:d.length;let v=[];const m=[],g=[];let w=i.slidesOffsetBefore;typeof w=="function"&&(w=i.slidesOffsetBefore.call(t));let C=i.slidesOffsetAfter;typeof C=="function"&&(C=i.slidesOffsetAfter.call(t));const u=t.snapGrid.length,p=t.slidesGrid.length;let h=i.spaceBetween,y=-w,P=0,N=0;if(typeof a>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*a:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,d.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(ue(s,"--swiper-centered-offset-before",""),ue(s,"--swiper-centered-offset-after",""));const R=i.grid&&i.grid.rows>1&&t.grid;R?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let O;const E=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T1&&v.push(t.virtualSize-a)}if(r&&i.loop){const T=g[0]+h;if(i.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),b=T*i.slidesPerGroup;for(let x=0;x!i.cssMode||i.loop?!0:b!==d.length-1).forEach(D=>{D.style[T]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;g.forEach(b=>{T+=b+(h||0)}),T-=h;const D=T-a;v=v.map(b=>b<=0?-w:b>D?D+C:b)}if(i.centerInsufficientSlides){let T=0;g.forEach(b=>{T+=b+(h||0)}),T-=h;const D=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(T+D{v[M]=x-b}),m.forEach((x,M)=>{m[M]=x+b})}}if(Object.assign(t,{slides:d,snapGrid:v,slidesGrid:m,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ue(s,"--swiper-centered-offset-before",`${-v[0]}px`),ue(s,"--swiper-centered-offset-after",`${t.size/2-g[g.length-1]/2}px`);const T=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(b=>b+T),t.slidesGrid=t.slidesGrid.map(b=>b+D)}if(c!==f&&t.emit("slidesLengthChange"),v.length!==u&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==p&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,D=t.el.classList.contains(T);c<=i.maxBackfaceHiddenSlides?D||t.el.classList.add(T):D&&t.el.classList.remove(T)}}function Gt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n=0,a;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const l=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{i.push(o)});else for(a=0;ae.slides.length&&!s)break;i.push(l(o))}else i.push(l(e.activeIndex));for(a=0;an?o:n}(n||n===0)&&(e.wrapperEl.style.height=`${n}px`)}function kt(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nt(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:a}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-t;n&&(l=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let r=0;r=0&&m<=e.size-e.slidesSizesGrid[r],C=m>=0&&m1&&g<=e.size||m<=0&&g>=e.size;C&&(e.visibleSlides.push(f),e.visibleSlidesIndexes.push(r)),Oe(f,C,i.slideVisibleClass),Oe(f,w,i.slideFullyVisibleClass),f.progress=n?-c:c,f.originalProgress=n?-v:v}}function $t(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:a,isEnd:l,progressLoop:o}=e;const r=a,f=l;if(s===0)n=0,a=!0,l=!0;else{n=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,c=Math.abs(t-e.maxTranslate())<1;a=d||n<=0,l=c||n>=1,d&&(n=0),c&&(n=1)}if(i.loop){const d=e.getSlideIndexByData(0),c=e.getSlideIndexByData(e.slides.length-1),v=e.slidesGrid[d],m=e.slidesGrid[c],g=e.slidesGrid[e.slidesGrid.length-1],w=Math.abs(t);w>=v?o=(w-v)/g:o=(w+g-m)/g,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:a,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!r&&e.emit("reachBeginning toEdge"),l&&!f&&e.emit("reachEnd toEdge"),(r&&!a||f&&!l)&&e.emit("fromEdge"),e.emit("progress",n)}const we=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Vt(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,a=t.virtual&&i.virtual.enabled,l=t.grid&&i.grid&&i.grid.rows>1,o=c=>Y(s,`.${i.slideClass}${c}, swiper-slide${c}`)[0];let r,f,d;if(a)if(i.loop){let c=n-t.virtual.slidesBefore;c<0&&(c=t.virtual.slides.length+c),c>=t.virtual.slides.length&&(c-=t.virtual.slides.length),r=o(`[data-swiper-slide-index="${c}"]`)}else r=o(`[data-swiper-slide-index="${n}"]`);else l?(r=e.filter(c=>c.column===n)[0],d=e.filter(c=>c.column===n+1)[0],f=e.filter(c=>c.column===n-1)[0]):r=e[n];r&&(l||(d=xt(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),f=yt(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!f===0&&(f=e[e.length-1]))),e.forEach(c=>{we(c,c===r,i.slideActiveClass),we(c,c===d,i.slideNextClass),we(c,c===f,i.slidePrevClass)}),t.emitSlidesClasses()}const ce=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let n=s.querySelector(`.${t.params.lazyPreloaderClass}`);!n&&t.isElement&&(s.shadowRoot?n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(n=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),n&&n.remove())})),n&&n.remove()}},Se=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Ee=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const l=n,o=[l-e];o.push(...Array.from({length:e}).map((r,f)=>l+s+f)),t.slides.forEach((r,f)=>{o.includes(r.column)&&Se(t,f)});return}const a=n+s-1;if(t.params.rewind||t.params.loop)for(let l=n-e;l<=a+e;l+=1){const o=(l%i+i)%i;(oa)&&Se(t,o)}else for(let l=Math.max(n-e,0);l<=Math.min(a+e,i-1);l+=1)l!==n&&(l>a||l=e[a]&&s=e[a]&&s=e[a]&&(n=a);return i.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Ft(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:l,snapIndex:o}=e;let r=t,f;const d=m=>{let g=m-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof r>"u"&&(r=Rt(e)),s.indexOf(i)>=0)f=s.indexOf(i);else{const m=Math.min(n.slidesPerGroupSkip,r);f=m+Math.floor((r-m)/n.slidesPerGroup)}if(f>=s.length&&(f=s.length-1),r===a&&!e.params.loop){f!==o&&(e.snapIndex=f,e.emit("snapIndexChange"));return}if(r===a&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(r);return}const c=e.grid&&n.grid&&n.grid.rows>1;let v;if(e.virtual&&n.virtual.enabled&&n.loop)v=d(r);else if(c){const m=e.slides.filter(w=>w.column===r)[0];let g=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(m),0)),v=Math.floor(g/n.grid.rows)}else if(e.slides[r]){const m=e.slides[r].getAttribute("data-swiper-slide-index");m?v=parseInt(m,10):v=r}else v=r;Object.assign(e,{previousSnapIndex:o,snapIndex:f,previousRealIndex:l,realIndex:v,previousIndex:a,activeIndex:r}),e.initialized&&Ee(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==v&&e.emit("realIndexChange"),e.emit("slideChange"))}function Ht(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!n&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(n=o)});let a=!1,l;if(n){for(let o=0;or?d=r:s&&tl?o="next":a"u"&&(e=a.params.speed);const w=Math.min(a.params.slidesPerGroupSkip,l);let C=w+Math.floor((l-w)/a.params.slidesPerGroup);C>=r.length&&(C=r.length-1);const u=-r[C];if(o.normalizeSlideIndex)for(let h=0;h=P&&y=P&&y=P&&(l=h)}if(a.initialized&&l!==c&&(!a.allowSlideNext&&(v?u>a.translate&&u>a.minTranslate():ua.translate&&u>a.maxTranslate()&&(c||0)!==l))return!1;l!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(u);let p;if(l>c?p="next":l0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[h?"scrollLeft":"scrollTop"]=y})):m[h?"scrollLeft":"scrollTop"]=y,P&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return Re({swiper:a,targetPosition:y,side:h?"left":"top"}),!0;m.scrollTo({[h?"left":"top"]:y,behavior:"smooth"})}return!0}return a.setTransition(e),a.setTranslate(u),a.updateActiveIndex(l),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,s),a.transitionStart(i,p),e===0?a.transitionEnd(i,p):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(y){!a||a.destroyed||y.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,p))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function ii(t,e,i,s){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);const a=n.grid&&n.params.grid&&n.params.grid.rows>1;let l=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)l=l+n.virtual.slidesBefore;else{let o;if(a){const v=l*n.params.grid.rows;o=n.slides.filter(m=>m.getAttribute("data-swiper-slide-index")*1===v)[0].column}else o=n.getSlideIndexByData(l);const r=a?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:f}=n.params;let d=n.params.slidesPerView;d==="auto"?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),f&&d%2===0&&(d=d+1));let c=r-om.getAttribute("data-swiper-slide-index")*1===v)[0].column}else l=n.getSlideIndexByData(l)}return requestAnimationFrame(()=>{n.slideTo(l,e,i,s)}),n}function si(t,e,i){e===void 0&&(e=!0);const s=this,{enabled:n,params:a,animating:l}=s;if(!n||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const r=s.activeIndex{s.slideTo(s.activeIndex+r,t,e,i)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+r,t,e,i)}function ni(t,e,i){e===void 0&&(e=!0);const s=this,{params:n,snapGrid:a,slidesGrid:l,rtlTranslate:o,enabled:r,animating:f}=s;if(!r||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(f&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const c=o?s.translate:-s.translate;function v(u){return u<0?-Math.floor(Math.abs(u)):Math.floor(u)}const m=v(c),g=a.map(u=>v(u));let w=a[g.indexOf(m)-1];if(typeof w>"u"&&n.cssMode){let u;a.forEach((p,h)=>{m>=p&&(u=h)}),typeof u<"u"&&(w=a[u>0?u-1:u])}let C=0;if(typeof w<"u"&&(C=l.indexOf(w),C<0&&(C=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(C=C-s.slidesPerViewDynamic("previous",!0)+1,C=Math.max(C,0))),n.rewind&&s.isBeginning){const u=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(u,t,e,i)}else if(n.loop&&s.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(C,t,e,i)}),!0;return s.slideTo(C,t,e,i)}function ai(t,e,i){e===void 0&&(e=!0);const s=this;if(!s.destroyed)return typeof t>"u"&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,i)}function ri(t,e,i,s){e===void 0&&(e=!0),s===void 0&&(s=.5);const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);let a=n.activeIndex;const l=Math.min(n.params.slidesPerGroupSkip,a),o=l+Math.floor((a-l)/n.params.slidesPerGroup),r=n.rtlTranslate?n.translate:-n.translate;if(r>=n.snapGrid[o]){const f=n.snapGrid[o],d=n.snapGrid[o+1];r-f>(d-f)*s&&(a+=n.params.slidesPerGroup)}else{const f=n.snapGrid[o-1],d=n.snapGrid[o];r-f<=(d-f)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,t,e,i)}function li(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let n=t.clickedIndex,a;const l=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;a=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?nt.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=t.getSlideIndex(Y(i,`${l}[data-swiper-slide-index="${a}"]`)[0]),fe(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=t.getSlideIndex(Y(i,`${l}[data-swiper-slide-index="${a}"]`)[0]),fe(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}var oi={slideTo:ti,slideToLoop:ii,slideNext:si,slidePrev:ni,slideReset:ai,slideToClosest:ri,slideToClickedSlide:li};function di(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const n=()=>{Y(s,`.${i.slideClass}, swiper-slide`).forEach((c,v)=>{c.setAttribute("data-swiper-slide-index",v)})},a=e.grid&&i.grid&&i.grid.rows>1,l=i.slidesPerGroup*(a?i.grid.rows:1),o=e.slides.length%l!==0,r=a&&e.slides.length%i.grid.rows!==0,f=d=>{for(let c=0;c1;f.length"u"?a=r.getSlideIndex(f.filter(x=>x.classList.contains(m.slideActiveClass))[0]):P=a;const N=s==="next"||!s,R=s==="prev"||!s;let O=0,E=0;const T=p?Math.ceil(f.length/m.grid.rows):f.length,b=(p?f[a].column:a)+(g&&typeof n>"u"?-w/2+.5:0);if(b=0;V-=1)f[V].column===G&&h.push(V)}else h.push(T-M-1)}}else if(b+w>T-u){E=Math.max(b-(T-u*2),C);for(let x=0;x{G.column===M&&y.push(V)}):y.push(M)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),R&&h.forEach(x=>{f[x].swiperLoopMoveDOM=!0,v.prepend(f[x]),f[x].swiperLoopMoveDOM=!1}),N&&y.forEach(x=>{f[x].swiperLoopMoveDOM=!0,v.append(f[x]),f[x].swiperLoopMoveDOM=!1}),r.recalcSlides(),m.slidesPerView==="auto"?r.updateSlides():p&&(h.length>0&&R||y.length>0&&N)&&r.slides.forEach((x,M)=>{r.grid.updateSlide(M,x,r.slides)}),m.watchSlidesProgress&&r.updateSlidesOffset(),i){if(h.length>0&&R){if(typeof e>"u"){const x=r.slidesGrid[P],G=r.slidesGrid[P+O]-x;o?r.setTranslate(r.translate-G):(r.slideTo(P+Math.ceil(O),0,!1,!0),n&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-G,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-G))}else if(n){const x=p?h.length/m.grid.rows:h.length;r.slideTo(r.activeIndex+x,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(y.length>0&&N)if(typeof e>"u"){const x=r.slidesGrid[P],G=r.slidesGrid[P-E]-x;o?r.setTranslate(r.translate-G):(r.slideTo(P-E,0,!1,!0),n&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-G,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-G))}else{const x=p?y.length/m.grid.rows:y.length;r.slideTo(r.activeIndex-x,0,!1,!0)}}if(r.allowSlidePrev=d,r.allowSlideNext=c,r.controller&&r.controller.control&&!l){const x={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:a,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...x,slideTo:M.params.slidesPerView===m.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...x,slideTo:r.controller.control.params.slidesPerView===m.slidesPerView?i:!1})}r.emit("loopFix")}function ci(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(n=>{const a=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;s[a]=n}),t.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),s.forEach(n=>{i.append(n)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var fi={loopCreate:di,loopFix:ui,loopDestroy:ci};function pi(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function mi(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var gi={setGrabCursor:pi,unsetGrabCursor:mi};function hi(t,e){e===void 0&&(e=this);function i(s){if(!s||s===X()||s===j())return null;s.assignedSlot&&(s=s.assignedSlot);const n=s.closest(t);return!n&&!s.getRootNode?null:n||i(s.getRootNode().host)}return i(e)}function ze(t,e,i){const s=j(),{params:n}=t,a=n.edgeSwipeDetection,l=n.edgeSwipeThreshold;return a&&(i<=l||i>=s.innerWidth-l)?a==="prevent"?(e.preventDefault(),!0):!1:!0}function vi(t){const e=this,i=X();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if(s.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(n.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){ze(e,s,s.targetTouches[0].pageX);return}const{params:a,touches:l,enabled:o}=e;if(!o||!a.simulateTouch&&s.pointerType==="mouse"||e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let r=s.target;if(a.touchEventsTarget==="wrapper"&&!St(r,e.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||n.isTouched&&n.isMoved)return;const f=!!a.noSwipingClass&&a.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;f&&s.target&&s.target.shadowRoot&&d&&(r=d[0]);const c=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,v=!!(s.target&&s.target.shadowRoot);if(a.noSwiping&&(v?hi(c,r):r.closest(c))){e.allowClick=!0;return}if(a.swipeHandler&&!r.closest(a.swipeHandler))return;l.currentX=s.pageX,l.currentY=s.pageY;const m=l.currentX,g=l.currentY;if(!ze(e,s,m))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=m,l.startY=g,n.touchStartTime=pe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1);let w=!0;r.matches(n.focusableElements)&&(w=!1,r.nodeName==="SELECT"&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const C=w&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||C)&&!r.isContentEditable&&s.preventDefault(),a.freeMode&&a.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function wi(t){const e=X(),i=this,s=i.touchEventsData,{params:n,touches:a,rtlTranslate:l,enabled:o}=i;if(!o||!n.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(s.touchId!==null||r.pointerId!==s.pointerId))return;let f;if(r.type==="touchmove"){if(f=[...r.changedTouches].filter(N=>N.identifier===s.touchId)[0],!f||f.identifier!==s.touchId)return}else f=r;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",r);return}const d=f.pageX,c=f.pageY;if(r.preventedByNestedSwiper){a.startX=d,a.startY=c;return}if(!i.allowTouchMove){r.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(a,{startX:d,startY:c,currentX:d,currentY:c}),s.touchStartTime=pe());return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(ca.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(da.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",r),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=d,a.currentY=c;const v=a.currentX-a.startX,m=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(v**2+m**2)"u"){let N;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:v*v+m*m>=25&&(N=Math.atan2(Math.abs(m),Math.abs(v))*180/Math.PI,s.isScrolling=i.isHorizontal()?N>n.touchAngle:90-N>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",r),typeof s.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(s.startMoving=!0),s.isScrolling||r.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&r.cancelable&&r.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&r.stopPropagation();let g=i.isHorizontal()?v:m,w=i.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;n.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),w=Math.abs(w)*(l?1:-1)),a.diff=g,g*=n.touchRatio,l&&(g=-g,w=-w);const C=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=w>0?"prev":"next";const u=i.params.loop&&!n.cssMode,p=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(u&&p&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const N=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(N)}s.allowMomentumBounce=!1,n.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let h;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&C!==i.touchesDirection&&u&&p&&Math.abs(g)>=1){Object.assign(a,{startX:d,startY:c,currentX:d,currentY:c,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",r),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let y=!0,P=n.resistanceRatio;if(n.touchReleaseOnEdges&&(P=0),g>0?(u&&p&&!h&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(y=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+g)**P))):g<0&&(u&&p&&!h&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(n.slidesPerView!=="auto"&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(g)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Si(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let n;if(s.type==="touchend"||s.type==="touchcancel"){if(n=[...s.changedTouches].filter(P=>P.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:l,touches:o,rtlTranslate:r,slidesGrid:f,enabled:d}=e;if(!d||!l.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&l.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}l.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=pe(),v=c-i.touchStartTime;if(e.allowClick){const P=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(P&&P[0]||s.target,P),e.emit("tap click",s),v<300&&c-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=pe(),fe(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||o.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let m;if(l.followFinger?m=r?e.translate:-e.translate:m=-i.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const g=m>=-e.maxTranslate()&&!e.params.loop;let w=0,C=e.slidesSizesGrid[0];for(let P=0;P=f[P]&&m=f[P])&&(w=P,C=f[f.length-1]-f[f.length-2])}let u=null,p=null;l.rewind&&(e.isBeginning?p=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(u=0));const h=(m-f[w])/C,y=wl.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?u:w+y):e.slideTo(w)),e.swipeDirection==="prev"&&(h>1-l.longSwipesRatio?e.slideTo(w+y):p!==null&&h<0&&Math.abs(h)>l.longSwipesRatio?e.slideTo(p):e.slideTo(w))}else{if(!l.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(w+y):e.slideTo(w):(e.swipeDirection==="next"&&e.slideTo(u!==null?u:w+y),e.swipeDirection==="prev"&&e.slideTo(p!==null?p:w))}}function Ae(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=t,l=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=l&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!l?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&a!==t.snapGrid&&t.checkOverflow()}function bi(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function yi(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let n;const a=t.maxTranslate()-t.minTranslate();a===0?n=0:n=(t.translate-t.minTranslate())/a,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function xi(t){const e=this;ce(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Ti(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const qe=(t,e)=>{const i=X(),{params:s,el:n,wrapperEl:a,device:l}=t,o=!!s.nested,r=e==="on"?"addEventListener":"removeEventListener",f=e;!n||typeof n=="string"||(i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[r]("touchstart",t.onTouchStart,{passive:!1}),n[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[r]("click",t.onClick,!0),s.cssMode&&a[r]("scroll",t.onScroll),s.updateOnWindowResize?t[f](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ae,!0):t[f]("observerUpdate",Ae,!0),n[r]("load",t.onLoad,{capture:!0}))};function Ei(){const t=this,{params:e}=t;t.onTouchStart=vi.bind(t),t.onTouchMove=wi.bind(t),t.onTouchEnd=Si.bind(t),t.onDocumentTouchStart=Ti.bind(t),e.cssMode&&(t.onScroll=yi.bind(t)),t.onClick=bi.bind(t),t.onLoad=xi.bind(t),qe(t,"on")}function Ci(){qe(this,"off")}var Pi={attachEvents:Ei,detachEvents:Ci};const Be=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Mi(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,a=s.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const l=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!l||t.currentBreakpoint===l)return;const r=(l in a?a[l]:void 0)||t.originalParams,f=Be(t,s),d=Be(t,r),c=t.params.grabCursor,v=r.grabCursor,m=s.enabled;f&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&s.grid.fill==="column")&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),c&&!v?t.unsetGrabCursor():!c&&v&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof r[h]>"u")return;const y=s[h]&&s[h].enabled,P=r[h]&&r[h].enabled;y&&!P&&t[h].disable(),!y&&P&&t[h].enable()});const g=r.direction&&r.direction!==s.direction,w=s.loop&&(r.slidesPerView!==s.slidesPerView||g),C=s.loop;g&&i&&t.changeDirection(),W(t.params,r);const u=t.params.enabled,p=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!u?t.disable():!m&&u&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",r),i&&(w?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!C&&p?(t.loopCreate(e),t.updateSlides()):C&&!p&&t.loopDestroy()),t.emit("breakpoint",r)}function Li(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const n=j(),a=e==="window"?n.innerHeight:i.clientHeight,l=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const r=parseFloat(o.substr(1));return{value:a*r,point:o}}return{value:o,point:o}});l.sort((o,r)=>parseInt(o.value,10)-parseInt(r.value,10));for(let o=0;o{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&i.push(e+n)}):typeof s=="string"&&i.push(e+s)}),i}function Oi(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:a}=t,l=_i(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...l),n.classList.add(...e),t.emitContainerClasses()}function zi(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ai={addClasses:Oi,removeClasses:zi};function Bi(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const n=t.slides.length-1,a=t.slidesGrid[n]+t.slidesSizesGrid[n]+s*2;t.isLocked=t.size>a}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Di={checkOverflow:Bi},Ce={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Gi(t,e){return function(s){s===void 0&&(s={});const n=Object.keys(s)[0],a=s[n];if(typeof a!="object"||a===null){W(e,s);return}if(t[n]===!0&&(t[n]={enabled:!0}),n==="navigation"&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),!(n in t&&"enabled"in a)){W(e,s);return}typeof t[n]=="object"&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),W(e,s)}}const be={eventsEmitter:At,update:jt,translate:Kt,transition:ei,slide:oi,loop:fi,grabCursor:gi,events:Pi,breakpoints:Ii,checkOverflow:Di,classes:Ai},ye={};let Le=class U{constructor(){let e,i;for(var s=arguments.length,n=new Array(s),a=0;a1){const d=[];return l.querySelectorAll(i.el).forEach(c=>{const v=W({},i,{el:c});d.push(new U(v))}),d}const o=this;o.__swiper__=!0,o.support=He(),o.device=je({userAgent:i.userAgent}),o.browser=_t(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const r={};o.modules.forEach(d=>{d({params:i,swiper:o,extendParams:Gi(i,r),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const f=W({},Ce,r);return o.params=W({},f,ye,i),o.originalParams=W({},o.params),o.passedParams=W({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:s}=this,n=Y(i,`.${s.slideClass}, swiper-slide`),a=re(n[0]);return re(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=Y(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const n=s.minTranslate(),l=(s.maxTranslate()-n)*e+n;s.translateTo(l,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const n=e.getSlideClasses(s);i.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:n,slides:a,slidesGrid:l,slidesSizesGrid:o,size:r,activeIndex:f}=s;let d=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let c=a[f]?Math.ceil(a[f].swiperSlideSize):0,v;for(let m=f+1;mr&&(v=!0));for(let m=f-1;m>=0;m-=1)a[m]&&!v&&(c+=a[m].swiperSlideSize,d+=1,c>r&&(v=!0))}else if(e==="current")for(let c=f+1;c=0;c-=1)l[f]-l[c]{l.complete&&ce(e,l)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){const l=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let a;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)n(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const l=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;a=e.slideTo(l.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||n()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${n}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(a=>{e==="vertical"?a.style.width="":a.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const n=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(n()):Y(s,n())[0];return!l&&i.params.createElements&&(l=ne("div",i.params.wrapperClass),s.append(l),Y(s,`.${i.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(i,{el:s,wrapperEl:l,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:l,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||ee(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||ee(s,"direction")==="rtl"),wrongRTL:ee(l,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const n=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(a=>{a.complete?ce(i,a):a.addEventListener("load",l=>{ce(i,l.target)})}),Ee(i),i.initialized=!0,Ee(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:n,el:a,wrapperEl:l,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),i&&(s.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),l&&l.removeAttribute("style"),o&&o.length&&o.forEach(r=>{r.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(r=>{s.off(r)}),e!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),gt(s)),s.destroyed=!0),null}static extendDefaults(e){W(ye,e)}static get extendedDefaults(){return ye}static get defaults(){return Ce}static installModule(e){U.prototype.__modules__||(U.prototype.__modules__=[]);const i=U.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>U.installModule(i)),U):(U.installModule(e),U)}};Object.keys(be).forEach(t=>{Object.keys(be[t]).forEach(e=>{Le.prototype[e]=be[t][e]})});Le.use([Ot,zt]);const Ye=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function te(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function se(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>i.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:te(e[s])&&te(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:se(t[s],e[s]):t[s]=e[s]})}function Xe(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Ue(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ke(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Ze(t){t===void 0&&(t="");const e=t.split(" ").map(s=>s.trim()).filter(s=>!!s),i=[];return e.forEach(s=>{i.indexOf(s)<0&&i.push(s)}),i.join(" ")}function ki(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ni(t){let{swiper:e,slides:i,passedParams:s,changedParams:n,nextEl:a,prevEl:l,scrollbarEl:o,paginationEl:r}=t;const f=n.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:d,pagination:c,navigation:v,scrollbar:m,virtual:g,thumbs:w}=e;let C,u,p,h,y,P,N,R;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(C=!0),n.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(u=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||r)&&(d.pagination||d.pagination===!1)&&c&&!c.el&&(p=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&m&&!m.el&&(h=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||l)&&(s.navigation.nextEl||a)&&(d.navigation||d.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(y=!0);const O=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),d[E].prevEl=void 0,d[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),d[E].el=void 0,e[E].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!s.loop?P=!0:!d.loop&&s.loop?N=!0:R=!0),f.forEach(E=>{if(te(d[E])&&te(s[E]))Object.assign(d[E],s[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in s[E]&&!s[E].enabled&&O(E);else{const T=s[E];(T===!0||T===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?T===!1&&O(E):d[E]=s[E]}}),f.includes("controller")&&!u&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&i&&g&&d.virtual.enabled?(g.slides=i,g.update(!0)):n.includes("virtual")&&g&&d.virtual.enabled&&(i&&(g.slides=i),g.update(!0)),n.includes("children")&&i&&d.loop&&(R=!0),C&&w.init()&&w.update(!0),u&&(e.controller.control=d.controller.control),p&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(d.pagination.el=r),c.init(),c.render(),c.update()),h&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),m.init(),m.updateSize(),m.setTranslate()),y&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),a.innerHTML=e.hostEl.constructor.nextButtonSvg,a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),l.innerHTML=e.hostEl.constructor.prevButtonSvg,l.part.add("button-prev"),e.el.appendChild(l))),a&&(d.navigation.nextEl=a),l&&(d.navigation.prevEl=l),v.init(),v.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&e.changeDirection(s.direction,!1),(P||R)&&e.loopDestroy(),(N||R)&&e.loopCreate(),e.update()}function De(t,e){t===void 0&&(t={});const i={on:{}},s={},n={};se(i,Ce),i._emitClasses=!0,i.init=!1;const a={},l=Ye.map(r=>r.replace(/_/,"")),o=Object.assign({},t);return Object.keys(o).forEach(r=>{typeof t[r]>"u"||(l.indexOf(r)>=0?te(t[r])?(i[r]={},n[r]={},se(i[r],t[r]),se(n[r],t[r])):(i[r]=t[r],n[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:a[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:n,rest:a,events:s}}function $i(t,e){let{el:i,nextEl:s,prevEl:n,paginationEl:a,scrollbarEl:l,swiper:o}=t;Xe(e)&&s&&n&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),Ue(e)&&a&&(o.params.pagination.el=a,o.originalParams.pagination.el=a),Ke(e)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(i)}function Vi(t,e,i,s,n){const a=[];if(!e)return a;const l=r=>{a.indexOf(r)<0&&a.push(r)};if(i&&s){const r=s.map(n),f=i.map(n);r.join("")!==f.join("")&&l("children"),s.length!==i.length&&l("children")}return Ye.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(te(t[r])&&te(e[r])){const f=Object.keys(t[r]),d=Object.keys(e[r]);f.length!==d.length?l(r):(f.forEach(c=>{t[r][c]!==e[r][c]&&l(r)}),d.forEach(c=>{t[r][c]!==e[r][c]&&l(r)}))}else t[r]!==e[r]&&l(r)}),a}const Ri=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function xe(t,e,i){t===void 0&&(t={});const s=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},a=(l,o)=>{Array.isArray(l)&&l.forEach(r=>{const f=typeof r.type=="symbol";o==="default"&&(o="container-end"),f&&r.children?a(r.children,o):r.type&&(r.type.name==="SwiperSlide"||r.type.name==="AsyncComponentWrapper")||r.componentOptions&&r.componentOptions.tag==="SwiperSlide"?s.push(r):n[o]&&n[o].push(r)})};return Object.keys(t).forEach(l=>{if(typeof t[l]!="function")return;const o=t[l]();a(o,l)}),i.value=e.value,e.value=s,{slides:s,slots:n}}function Fi(t,e,i){if(!i)return null;const s=d=>{let c=d;return d<0?c=e.length+d:c>=e.length&&(c=c-e.length),c},n=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:a,to:l}=i,o=t.value.params.loop?-e.length:0,r=t.value.params.loop?e.length*2:e.length,f=[];for(let d=o;d=a&&d<=l&&f.length{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=t,d.props.style=n,d.type)return q(d.type,{...d.props},d.children);if(d.componentOptions)return q(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}const ie={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:i,emit:s}=e;const{tag:n,wrapperTag:a}=t,l=H("swiper"),o=H(null),r=H(!1),f=H(!1),d=H(null),c=H(null),v=H(null),m={value:[]},g={value:[]},w=H(null),C=H(null),u=H(null),p=H(null),{params:h,passedParams:y}=De(t);xe(i,m,g),v.value=y,g.value=m.value;const P=()=>{xe(i,m,g),r.value=!0};h.onAny=function(O){for(var E=arguments.length,T=new Array(E>1?E-1:0),D=1;D{o.value=E},renderExternalUpdate:!1};se(c.value.params.virtual,O),se(c.value.originalParams.virtual,O)}Ge(()=>{!f.value&&c.value&&(c.value.emitSlidesClasses(),f.value=!0);const{passedParams:O}=De(t),E=Vi(O,v.value,m.value,g.value,T=>T.props&&T.props.key);v.value=O,(E.length||r.value)&&c.value&&!c.value.destroyed&&Ni({swiper:c.value,slides:m.value,passedParams:O,changedParams:E,nextEl:w.value,prevEl:C.value,scrollbarEl:p.value,paginationEl:u.value}),r.value=!1}),ke("swiper",c),it(o,()=>{st(()=>{Ri(c.value)})}),Ne(()=>{d.value&&($i({el:d.value,nextEl:w.value,prevEl:C.value,paginationEl:u.value,scrollbarEl:p.value,swiper:c.value},h),s("swiper",c.value))}),$e(()=>{c.value&&!c.value.destroyed&&c.value.destroy(!0,!1)});function R(O){return h.virtual?Fi(c,O,o.value):(O.forEach((E,T)=>{E.props||(E.props={}),E.props.swiperRef=c,E.props.swiperSlideIndex=T}),O)}return()=>{const{slides:O,slots:E}=xe(i,m,g);return q(n,{ref:d,class:Ze(l.value)},[E["container-start"],q(a,{class:ki(h.wrapperClass)},[E["wrapper-start"],R(O),E["wrapper-end"]]),Xe(t)&&[q("div",{ref:C,class:"swiper-button-prev"}),q("div",{ref:w,class:"swiper-button-next"})],Ke(t)&&q("div",{ref:p,class:"swiper-scrollbar"}),Ue(t)&&q("div",{ref:u,class:"swiper-pagination"}),E["container-end"]])}}},B={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:i}=e,s=!1;const{swiperRef:n}=t,a=H(null),l=H("swiper-slide"),o=H(!1);function r(c,v,m){v===a.value&&(l.value=m)}Ne(()=>{!n||!n.value||(n.value.on("_slideClass",r),s=!0)}),nt(()=>{s||!n||!n.value||(n.value.on("_slideClass",r),s=!0)}),Ge(()=>{!a.value||!n||!n.value||(typeof t.swiperSlideIndex<"u"&&(a.value.swiperSlideIndex=t.swiperSlideIndex),n.value.destroyed&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),$e(()=>{!n||!n.value||n.value.off("_slideClass",r)});const f=at(()=>({isActive:l.value.indexOf("swiper-slide-active")>=0,isVisible:l.value.indexOf("swiper-slide-visible")>=0,isPrev:l.value.indexOf("swiper-slide-prev")>=0,isNext:l.value.indexOf("swiper-slide-next")>=0}));ke("swiperSlide",f);const d=()=>{o.value=!0};return()=>q(t.tag,{class:Ze(`${l.value}`),ref:a,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&n&&n.value&&n.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:d},t.zoom?q("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[i.default&&i.default(f.value),t.lazy&&!o.value&&q("div",{class:"swiper-lazy-preloader"})]):[i.default&&i.default(f.value),t.lazy&&!o.value&&q("div",{class:"swiper-lazy-preloader"})])}},Je=t=>(ct("data-v-488af924"),t=t(),ft(),t),Hi={class:"whitespace-break-spaces p-4 space-y-2"},ji=Je(()=>ae("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1)),Wi=Je(()=>ae("div",null,"安装命令:",-1)),qi={class:"space-x-2"},Yi=rt({__name:"swiper",setup(t){const e=H(!1),i=[Tt,Et,Ct,Pt];return(s,n)=>{const a=ut,l=Ie("van-tag"),o=Ie("van-action-sheet"),r=tt,f=et;return ot(),lt(f,{navbar:"","navbar-start-side":"back"},{"navbar-end":I(()=>[ae("div",{class:"h-full flex-center px-1",onClick:n[0]||(n[0]=d=>e.value=!0)},[_(a,{name:"i-mdi:information",class:"text-4"})]),_(o,{show:z(e),"onUpdate:show":n[1]||(n[1]=d=>dt(e)?e.value=d:null),teleport:"body"},{default:I(()=>[ae("div",Hi,[ji,Wi,ae("div",qi,[_(l,{type:"primary",plain:""},{default:I(()=>[A(" pnpm add swiper ")]),_:1})])])]),_:1},8,["show"])]),default:I(()=>[_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",autoplay:""},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{clickable:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",navigation:""},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{dynamicBullets:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",pagination:{type:"fraction"}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1}),_(r,null,{default:I(()=>[_(z(ie),{modules:i,class:"swiper",scrollbar:{draggable:!0}},{default:I(()=>[_(z(B),null,{default:I(()=>[A("Slide 1")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 2")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 3")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 4")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 5")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 6")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 7")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 8")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 9")]),_:1}),_(z(B),null,{default:I(()=>[A("Slide 10")]),_:1})]),_:1})]),_:1})]),_:1})}}}),Ji=pt(Yi,[["__scopeId","data-v-488af924"]]);export{Ji as default}; diff --git a/assets/swiper-BzuCNneQ.js.br b/assets/swiper-BzuCNneQ.js.br new file mode 100644 index 00000000..cb049b76 Binary files /dev/null and b/assets/swiper-BzuCNneQ.js.br differ diff --git a/assets/swiper-BzuCNneQ.js.gz b/assets/swiper-BzuCNneQ.js.gz new file mode 100644 index 00000000..6c1f7f9d Binary files /dev/null and b/assets/swiper-BzuCNneQ.js.gz differ diff --git a/assets/swiper-cYx4GvkC.css b/assets/swiper-cYx4GvkC.css new file mode 100644 index 00000000..29def299 --- /dev/null +++ b/assets/swiper-cYx4GvkC.css @@ -0,0 +1 @@ +@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:min(320vw,1920px)}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:min(320vw,1920px)}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:min(.267vw,1.6px);width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:min(.267vw,1.6px);height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:min(11.2vw,67.2px);height:min(11.2vw,67.2px);position:absolute;left:50%;top:50%;margin-left:max(-5.6vw,-33.6px);margin-top:max(-5.6vw,-33.6px);z-index:10;transform-origin:50%;box-sizing:border-box;border:min(1.067vw,6.4px) solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--swiper-navigation-size: min(11.733vw, 70.4px)}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, min(2.667vw, 16px));right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, min(2.667vw, 16px));left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, min(2.133vw, 12.8px));top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, min(2.133vw, 12.8px)));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, min(2.133vw, 12.8px)));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, min(2.133vw, 12.8px));left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, min(1.6vw, 9.6px)) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:min(2.133vw,12.8px)}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, min(1.067vw, 6.4px))}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, min(1.067vw, 6.4px));left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, min(1.067vw, 6.4px));height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, min(2.667vw, 16px));position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, min(1.067vw, 6.4px));top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, min(1.067vw, 6.4px));width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, min(1.067vw, 6.4px));top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, min(1.067vw, 6.4px));height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, min(2.667vw, 16px));left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper[data-v-488af924]{width:100%;height:min(80vw,480px)}.swiper .swiper-slide[data-v-488af924]{display:flex;align-items:center;justify-content:center;font-size:min(9.6vw,57.6px);font-weight:700;text-align:center;background-color:#fff} diff --git a/assets/swiper-cYx4GvkC.css.br b/assets/swiper-cYx4GvkC.css.br new file mode 100644 index 00000000..efcfa462 Binary files /dev/null and b/assets/swiper-cYx4GvkC.css.br differ diff --git a/assets/swiper-cYx4GvkC.css.gz b/assets/swiper-cYx4GvkC.css.gz new file mode 100644 index 00000000..c91cb2ea Binary files /dev/null and b/assets/swiper-cYx4GvkC.css.gz differ diff --git a/assets/test-BbJOcG75.js b/assets/test-BbJOcG75.js new file mode 100644 index 00000000..5058e001 --- /dev/null +++ b/assets/test-BbJOcG75.js @@ -0,0 +1 @@ +import{_ as o}from"./index-Cwg3TLNR.js";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{z as c,c as _,w as e,o as s,b as r,e as f}from"./index-DpnASd8N.js";const m={};function i(p,u){const t=n,a=o;return s(),_(a,{navbar:"","navbar-start-side":"back"},{default:e(()=>[r(t,null,{default:e(()=>[f(" 你能看到这个页面,说明你有访问权限。 ")]),_:1})]),_:1})}const b=c(m,[["render",i]]);export{b as default}; diff --git a/assets/test-BbJOcG75.js.br b/assets/test-BbJOcG75.js.br new file mode 100644 index 00000000..8ffa1da1 Binary files /dev/null and b/assets/test-BbJOcG75.js.br differ diff --git a/assets/test-BbJOcG75.js.gz b/assets/test-BbJOcG75.js.gz new file mode 100644 index 00000000..4ad0f400 Binary files /dev/null and b/assets/test-BbJOcG75.js.gz differ diff --git a/assets/title-DiAaza3u.js b/assets/title-DiAaza3u.js new file mode 100644 index 00000000..bb574823 --- /dev/null +++ b/assets/title-DiAaza3u.js @@ -0,0 +1 @@ +import{_ as m}from"./index-Cwg3TLNR.js";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{X as p,a3 as d,k as C,d as g,c as T,w as n,m as k,o as h,b as u,e as i}from"./index-DpnASd8N.js";function P(){const s=d(),t=C(),e=p();function a(){t.push({name:"reload"})}function r(o){e.setCustomTitle(s.fullPath,o)}function c(){e.resetCustomTitle(s.fullPath)}return{reload:a,setCustomTitle:r,resetCustomTitle:c}}const V=g({__name:"title",setup(s){const t=P();function e(){t.setCustomTitle("测试标题")}function a(){t.resetCustomTitle()}return(r,c)=>{const o=k("VanButton"),l=f,_=m;return h(),T(_,{navbar:"","navbar-start-side":"back"},{default:n(()=>[u(l,null,{default:n(()=>[u(o,{onClick:e},{default:n(()=>[i(" 标题设置为「 测试标题 」 ")]),_:1}),u(o,{onClick:a},{default:n(()=>[i(" 标题重置 ")]),_:1})]),_:1})]),_:1})}}});export{V as default}; diff --git a/assets/title-DiAaza3u.js.br b/assets/title-DiAaza3u.js.br new file mode 100644 index 00000000..fec3735a Binary files /dev/null and b/assets/title-DiAaza3u.js.br differ diff --git a/assets/title-DiAaza3u.js.gz b/assets/title-DiAaza3u.js.gz new file mode 100644 index 00000000..f2281a10 Binary files /dev/null and b/assets/title-DiAaza3u.js.gz differ diff --git a/assets/title-no-center-BUzBlr6i.js b/assets/title-no-center-BUzBlr6i.js new file mode 100644 index 00000000..993954b2 --- /dev/null +++ b/assets/title-no-center-BUzBlr6i.js @@ -0,0 +1 @@ +import{_ as s}from"./index-Cwg3TLNR.js";import{d as r,c,w as t,k as _,m as u,o as l,a as p,b as m,e as f,u as i}from"./index-DpnASd8N.js";const d={class:"flex flex-col gap-4 p-4"},g=r({__name:"title-no-center",setup(v){const o=_();return(x,e)=>{const n=u("van-button"),a=s;return l(),c(a,{"title-center":!1,navbar:""},{default:t(()=>[p("div",d,[m(n,{onClick:e[0]||(e[0]=b=>i(o).back())},{default:t(()=>[f(" 返回 ")]),_:1})])]),_:1})}}});export{g as default}; diff --git a/assets/title-no-center-BUzBlr6i.js.br b/assets/title-no-center-BUzBlr6i.js.br new file mode 100644 index 00000000..39f68e97 Binary files /dev/null and b/assets/title-no-center-BUzBlr6i.js.br differ diff --git a/assets/title-no-center-BUzBlr6i.js.gz b/assets/title-no-center-BUzBlr6i.js.gz new file mode 100644 index 00000000..0af5fc29 Binary files /dev/null and b/assets/title-no-center-BUzBlr6i.js.gz differ diff --git a/assets/trend-demo-CArUNWpa.js b/assets/trend-demo-CArUNWpa.js new file mode 100644 index 00000000..3f834ab1 --- /dev/null +++ b/assets/trend-demo-CArUNWpa.js @@ -0,0 +1 @@ +import{_ as d}from"./index-Cwg3TLNR.js";import{d as m,O as v,o,j as l,t as c,p as i,a as s,b as t,u as f,q as x,_ as y,z as g,c as h,w as n,e as k}from"./index-DpnASd8N.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";const $={key:0,class:"prefix"},b={class:"text"},w={key:1,class:"suffix"},C=m({name:"Trend",__name:"index",props:{value:{},type:{default:"up"},prefix:{default:""},suffix:{default:""},reverse:{type:Boolean,default:!1}},setup(u){const r=u,a=v(()=>{let e=r.type==="up";return r.reverse&&(e=!e),e});return(e,p)=>{const _=y;return o(),l("div",{class:x(["flex items-center transition",`${f(a)?"c-green":"c-red"}`])},[e.prefix?(o(),l("span",$,c(e.prefix),1)):i("",!0),s("span",b,c(e.value),1),e.suffix?(o(),l("span",w,c(e.suffix),1)):i("",!0),t(_,{name:"i-ep:caret-top",rotate:f(a)?0:180,class:"ml-1 transition"},null,8,["rotate"])],2)}}}),N={};function V(u,r){const a=B,e=C,p=d;return o(),h(p,{navbar:"","navbar-start-side":"back"},{default:n(()=>[t(a,null,{default:n(()=>[k(" 标记上升和下降趋势。通常用绿色代表“好”,红色代表“不好”,股票涨跌场景除外 ")]),_:1}),t(a,{title:"基础用法"},{default:n(()=>[s("p",null,[t(e,{value:"12.3"})]),s("p",null,[t(e,{value:"12.3",type:"down"})])]),_:1}),t(a,{title:"颜色反转"},{default:n(()=>[s("p",null,[t(e,{value:"12.3",reverse:""})]),s("p",null,[t(e,{value:"12.3",type:"down",reverse:""})])]),_:1}),t(a,{title:"前缀后缀"},{default:n(()=>[s("p",null,[t(e,{value:"12.3",prefix:"$"})]),s("p",null,[t(e,{value:"12.3",suffix:"%"})])]),_:1})]),_:1})}const P=g(N,[["render",V]]);export{P as default}; diff --git a/assets/trend-demo-CArUNWpa.js.br b/assets/trend-demo-CArUNWpa.js.br new file mode 100644 index 00000000..282371c1 Binary files /dev/null and b/assets/trend-demo-CArUNWpa.js.br differ diff --git a/assets/trend-demo-CArUNWpa.js.gz b/assets/trend-demo-CArUNWpa.js.gz new file mode 100644 index 00000000..04844cec Binary files /dev/null and b/assets/trend-demo-CArUNWpa.js.gz differ diff --git a/assets/unocss-IuzecXKj.js b/assets/unocss-IuzecXKj.js new file mode 100644 index 00000000..361c82ab --- /dev/null +++ b/assets/unocss-IuzecXKj.js @@ -0,0 +1 @@ +import{_ as a}from"./index-Cwg3TLNR.js";import{z as n,c as o,w as c,o as s,a as t}from"./index-DpnASd8N.js";const i={},r=t("div",{flex:"","flex-1":"","flex-col":"","select-none":"","text-center":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"animate-bounce-alt":"","animate-duration-1s":"","animate-count-infinite":"","text-5xl":"",fw100:""}," UnoCSS ")])],-1);function _(l,f){const e=a;return s(),o(e,{navbar:"","navbar-start-side":"back"},{default:c(()=>[r]),_:1})}const u=n(i,[["render",_]]);export{u as default}; diff --git a/assets/unocss-IuzecXKj.js.br b/assets/unocss-IuzecXKj.js.br new file mode 100644 index 00000000..9f7f336d Binary files /dev/null and b/assets/unocss-IuzecXKj.js.br differ diff --git a/assets/unocss-IuzecXKj.js.gz b/assets/unocss-IuzecXKj.js.gz new file mode 100644 index 00000000..8762b391 Binary files /dev/null and b/assets/unocss-IuzecXKj.js.gz differ diff --git a/assets/vchart-C-lrzy8e.js b/assets/vchart-C-lrzy8e.js new file mode 100644 index 00000000..a84f31f1 --- /dev/null +++ b/assets/vchart-C-lrzy8e.js @@ -0,0 +1,64 @@ +import{_ as F2}from"./index-Cwg3TLNR.js";import{_ as z2}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{aD as SP,d as j2,r as jh,h as H2,c as V2,w as Vr,m as r1,o as W2,a as ar,b as Ua,e as N2,u as G2,i as U2,_ as $2}from"./index-DpnASd8N.js";const AP=n=>n;var Ke;(function(n){n["desktop-browser"]="desktop-browser",n["mobile-browser"]="mobile-browser",n.node="node",n.worker="worker",n.miniApp="miniApp",n.wx="wx",n.tt="tt",n.harmony="harmony",n["desktop-miniApp"]="desktop-miniApp",n.lynx="lynx"})(Ke||(Ke={}));var U;(function(n){n.cartesianAxis="cartesianAxis",n.cartesianBandAxis="cartesianAxis-band",n.cartesianLinearAxis="cartesianAxis-linear",n.cartesianTimeAxis="cartesianAxis-time",n.cartesianLogAxis="cartesianAxis-log",n.cartesianSymlogAxis="cartesianAxis-symlog",n.polarAxis="polarAxis",n.polarBandAxis="polarAxis-band",n.polarLinearAxis="polarAxis-linear",n.crosshair="crosshair",n.cartesianCrosshair="cartesianCrosshair",n.polarCrosshair="polarCrosshair",n.dataZoom="dataZoom",n.geoCoordinate="geoCoordinate",n.indicator="indicator",n.discreteLegend="discreteLegend",n.continuousLegend="continuousLegend",n.colorLegend="colorLegend",n.sizeLegend="sizeLegend",n.mapLabel="mapLabel",n.markLine="markLine",n.markArea="markArea",n.markPoint="markPoint",n.polarMarkLine="polarMarkLine",n.polarMarkArea="polarMarkArea",n.polarMarkPoint="polarMarkPoint",n.geoMarkPoint="geoMarkPoint",n.tooltip="tooltip",n.title="title",n.player="player",n.scrollBar="scrollBar",n.label="label",n.totalLabel="totalLabel",n.brush="brush",n.poptip="poptip",n.customMark="customMark"})(U||(U={}));var kP={exports:{}};(function(n){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function s(l,h,d){this.fn=l,this.context=h,this.once=d||!1}function r(l,h,d,c,u){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new s(d,c||l,u),g=e?e+h:h;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function a(l,h){--l._eventsCount===0?l._events=new i:delete l._events[h]}function o(){this._events=new i,this._eventsCount=0}o.prototype.eventNames=function(){var h=[],d,c;if(this._eventsCount===0)return h;for(c in d=this._events)t.call(d,c)&&h.push(e?c.slice(1):c);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},o.prototype.listeners=function(h){var d=e?e+h:h,c=this._events[d];if(!c)return[];if(c.fn)return[c.fn];for(var u=0,p=c.length,g=new Array(p);uObject.prototype.toString.call(n)===`[object ${t}]`,be=(n,t=!1)=>t?typeof n=="boolean":n===!0||n===!1||Ah(n,"Boolean"),G=n=>typeof n=="function",C=n=>n==null,P=n=>n!=null,Ct=n=>{const t=typeof n;return n!==null&&t==="object"||t==="function"},vv=n=>typeof n=="object"&&n!==null,vs=function(n){if(!vv(n)||!Ah(n,"Object"))return!1;if(Object.getPrototypeOf(n)===null)return!0;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t},Ae=n=>n===void 0,at=(n,t=!1)=>{const e=typeof n;return t?e==="string":e==="string"||Ah(n,"String")},V=n=>Array.isArray?Array.isArray(n):Ah(n,"Array"),B_=function(n){return n!==null&&typeof n!="function"&&Number.isFinite(n.length)},X2=n=>Ah(n,"Date"),nt=(n,t=!1)=>{const e=typeof n;return t?e==="number":e==="number"||Ah(n,"Number")},K2=n=>typeof n=="string"&&!isNaN(Number(n))&&!isNaN(parseFloat(n)),z=n=>nt(n)&&Number.isFinite(n),TP=n=>new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(n),MP=n=>new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(n),q2=n=>({}).toString.call(n).replace(/^\[object /,"").replace(/]$/,""),Z2=Object.prototype,J2=function(n){const t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||Z2)},Q2=Object.prototype.hasOwnProperty;function _t(n){if(C(n))return!0;if(B_(n))return!n.length;const t=q2(n);if(t==="Map"||t==="Set")return!n.size;if(J2(n))return!Object.keys(n).length;for(const e in n)if(Q2.call(n,e))return!1;return!0}const Pt=(n,t,e)=>{const i=at(t)?t.split("."):t;for(let s=0;sn!=null&&tF.call(n,t);function on(n,t,e){let i;if(!P(n)||typeof n!="object"||t)return n;const s=V(n),r=n.length;i=s?new Array(r):typeof n=="object"?{}:be(n)||nt(n)||at(n)?n:X2(n)?new Date(+n):void 0;const a=s?void 0:Object.keys(Object(n));let o=-1;if(i)for(;++o<(a||n).length;){const l=a?a[o]:o,h=n[l];i[l]=on(h,t)}return i}function wP(n,t,e=!1,i=!1){if(t){if(n===t)return;if(P(t)&&typeof t=="object"){const s=Object(t),r=[];for(const l in s)r.push(l);let{length:a}=r,o=-1;for(;a--;){const l=r[++o];!P(s[l])||typeof s[l]!="object"||i&&V(n[l])?CP(n,l,s[l]):eF(n,t,l,e,i)}}}}function eF(n,t,e,i=!1,s=!1){const r=n[e],a=t[e];let o=t[e],l=!0;if(V(a)){if(i)o=[];else if(V(r))o=r;else if(B_(r)){o=new Array(r.length);let h=-1;const d=r.length;for(;++h{const s=n[i];let r=!1;t.forEach(a=>{(at(a)&&a===i||a instanceof RegExp&&i.match(a))&&(r=!0)}),r||(e[i]=s)}),e}function a1(n){return Object.prototype.toString.call(n)}function o1(n){return Object.keys(n)}function ue(n,t,e){if(n===t)return!0;if(typeof n!=typeof t||n==null||t==null)return!1;if(Number.isNaN(n)&&Number.isNaN(t))return!0;if(a1(n)!==a1(t)||G(n)||typeof n!="object")return!1;if(V(n)){if(n.length!==t.length)return!1;for(let r=n.length-1;r>=0;r--)if(!ue(n[r],t[r]))return!1;return!0}if(!vs(n))return!1;const i=o1(n),s=o1(t);if(i.length!==s.length)return!1;i.sort(),s.sort();for(let r=i.length-1;r>=0;r--)if(i[r]!=s[r])return!1;for(let r=i.length-1;r>=0;r--){const a=i[r];if(!ue(n[a],t[a]))return!1}return!0}function nF(n){if(!n)return[];if(Object.keys)return Object.keys(n);const t=[];for(const e in n)n.hasOwnProperty(e)&&t.push(e);return t}function sF(n,t,e){const i=nF(t);for(let s=0;s{var e;if(n.length===0)return;let i=n[0];for(let s=1;s0)&&(i=r)}return i},ti=(n,t)=>{var e;if(n.length===0)return;let i=n[0];for(let s=1;st?1:n>=t?0:NaN}function zs(n){return Number(n)}function aF(n,t,e=zs){const i=n.length;if(!i)return;if(i<2)return e(n[0],0,n);const s=(i-1)*t,r=Math.floor(s),a=e(n[r],r,n);return a+(e(n[r+1],r+1,n)-a)*(s-r)}const oF=typeof console<"u";function Wu(n,t,e){const i=[t].concat([].slice.call(e));oF&&console[n].apply(console,i)}var Bn;(function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Warn=2]="Warn",n[n.Info=3]="Info",n[n.Debug=4]="Debug"})(Bn||(Bn={}));class Lt{static getInstance(t,e){return Lt._instance&&nt(t)?Lt._instance.level(t):Lt._instance||(Lt._instance=new Lt(t,e)),Lt._instance}static setInstance(t){return Lt._instance=t}static setInstanceLevel(t){Lt._instance?Lt._instance.level(t):Lt._instance=new Lt(t)}static clearInstance(){Lt._instance=null}constructor(t=Bn.None,e){this._onErrorHandler=[],this._level=t,this._method=e}addErrorHandler(t){this._onErrorHandler.find(e=>e===t)||this._onErrorHandler.push(t)}removeErrorHandler(t){const e=this._onErrorHandler.findIndex(i=>i===t);e<0||this._onErrorHandler.splice(e,1)}callErrorHandler(...t){this._onErrorHandler.forEach(e=>e(...t))}canLogInfo(){return this._level>=Bn.Info}canLogDebug(){return this._level>=Bn.Debug}canLogError(){return this._level>=Bn.Error}canLogWarn(){return this._level>=Bn.Warn}level(t){return arguments.length?(this._level=+t,this):this._level}error(...t){var e;return this._level>=Bn.Error&&(this._onErrorHandler.length?this.callErrorHandler(...t):Wu((e=this._method)!==null&&e!==void 0?e:"error","ERROR",t)),this}warn(...t){return this._level>=Bn.Warn&&Wu(this._method||"warn","WARN",t),this}info(...t){return this._level>=Bn.Info&&Wu(this._method||"log","INFO",t),this}debug(...t){return this._level>=Bn.Debug&&Wu(this._method||"log","DEBUG",t),this}}Lt._instance=null;function BP(n,t,e=0,i){for(C(i)&&(i=n.length);e>>1;RP(n[s],t)>0?i=s:e=s+1}return e}const l1=(n,t)=>IP(0,n.length,e=>t(n[e])),IP=(n,t,e)=>{let i=n,s=t;for(;i=0?s=r:i=r+1}return i},lF=(n,t)=>{let e=n;return e=n.sort(RP),aF(e,.5)},hF=1e-10,dF=1e-10;function Ki(n,t,e=dF,i=hF){const s=i,r=e*Math.max(n,t);return Math.abs(n-t)<=Math.max(s,r)}function Rs(n,t,e,i){return n>t&&!Ki(n,t,e,i)}function hs(n,t,e,i){return n{let t=null,e=null;return(...i)=>(t&&i.every((s,r)=>s===t[r])||(t=i,e=n(...i)),e)},Fe=function(n,t,e){return ne?e:n},qa=(n,t,e)=>{let[i,s]=n;s=e-t?[t,e]:(i=Math.min(Math.max(i,t),e-r),[i,i+r])};function Kl(n,t){let e;return n>t&&(e=n,n=t,t=e),i=>Math.max(n,Math.min(t,i))}let Kp=!1;try{Kp=typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"}catch{Kp=!1}function Xs(n,t,e){let i,s,r,a,o,l,h=0,d=!1,c=!1,u=!0;const p=!t&&t!==0&&Kp;if(typeof n!="function")throw new TypeError("Expected a function");function g(v){const x=i,S=s;return i=s=void 0,h=v,a=n.apply(S,x),a}function f(v,x){return p?(cancelAnimationFrame(o),requestAnimationFrame(v)):setTimeout(v,x)}function _(v){const x=v-l;return l===void 0||x>=t||x<0||c&&v-h>=r}function m(){const v=Date.now();if(_(v))return y(v);o=f(m,function(x){const S=x-h,k=t-(x-l);return c?Math.min(k,r-S):k}(v))}function y(v){return o=void 0,u&&i?g(v):(i=s=void 0,a)}function b(...v){const x=Date.now(),S=_(x);if(i=v,s=this,l=x,S){if(o===void 0)return function(k){return h=k,o=f(m,t),d?g(k):a}(l);if(c)return o=f(m,t),g(l)}return o===void 0&&(o=f(m,t)),a}return t=+t||0,Ct(e)&&(d=!!e.leading,c="maxWait"in e,c&&(r=Math.max(z(e.maxWait)?e.maxWait:0,t)),u="trailing"in e?!!e.trailing:u),b.cancel=function(){o!==void 0&&function(v){if(p)return cancelAnimationFrame(v);clearTimeout(v)}(o),h=0,i=l=s=o=void 0},b.flush=function(){return o===void 0?a:y(Date.now())},b.pending=function(){return o!==void 0},b}Kp=!1;function za(n,t,e){let i=!0,s=!0;if(typeof n!="function")throw new TypeError("Expected a function");return Ct(e)&&(i="leading"in e?!!e.leading:i,s="trailing"in e?!!e.trailing:s),Xs(n,t,{leading:i,trailing:s,maxWait:t})}function fd(n,t){return e=>n*(1-e)+t*e}function cF(n,t){return function(e){return Math.round(n*(1-e)+t*e)}}function uF(n,t){const e=n.valueOf(),i=t.valueOf(),s=new Date;return r=>(s.setTime(e*(1-r)+i*r),s)}const bv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,h0=new RegExp(bv.source,"g");function pF(n){return function(){return n}}function gF(n){return function(t){return n(t)+""}}function fF(n,t){let e,i,s,r=bv.lastIndex=h0.lastIndex=0,a=-1;const o=[],l=[];for(n+="",t+="";(e=bv.exec(n))&&(i=h0.exec(t));)(s=i.index)>r&&(s=t.slice(r,s),o[a]?o[a]+=s:o[++a]=s),(e=e[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:fd(e,i)})),r=h0.lastIndex;return r1?0:n<-1?ee:Math.acos(n)}function h1(n){return n>=1?Yn:n<=-1?-Yn:Math.asin(n)}function d1(n,t,e,i,s){let r=e,a=i;return typeof n=="number"&&typeof e=="number"&&(r=(1-s)*n+s*e),typeof t=="number"&&typeof i=="number"&&(a=(1-s)*t+s*i),{x:r,y:a}}function c1(n,t){return n[0]*t[1]-n[1]*t[0]}function mF(n,t){return Gt(n[0]-t[0])+Gt(n[1]-t[1])<1e-12}function LP(n,t=10){return Math.round(n*t)/t}function ql(n){const t=n.toString().split(/[eE]/),e=(t[0].split(".")[1]||"").length-(+t[1]||0);return e>0?e:0}function us(n,t){return LP(n+t,10**Math.max(ql(n),ql(t)))}function xv(n,t){return LP(n-t,10**Math.max(ql(n),ql(t)))}class ze{constructor(t=0,e=0,i,s){this.x=0,this.y=0,this.x=t,this.y=e,this.x1=i,this.y1=s}clone(){return new ze(this.x,this.y)}copyFrom(t){return this.x=t.x,this.y=t.y,this.x1=t.x1,this.y1=t.y1,this.defined=t.defined,this.context=t.context,this}set(t,e){return this.x=t,this.y=e,this}add(t){return nt(t)?(this.x+=t,void(this.y+=t)):(this.x+=t.x,this.y+=t.y,this)}sub(t){return nt(t)?(this.x-=t,void(this.y-=t)):(this.x-=t.x,this.y-=t.y,this)}multi(t){throw new Error("暂不支持")}div(t){throw new Error("暂不支持")}}class Ce{static distancePP(t,e){return an(tl(t.x-e.x,2)+tl(t.y-e.y,2))}static distanceNN(t,e,i,s){return an(tl(t-i,2)+tl(e-s,2))}static distancePN(t,e,i){return an(tl(e-t.x,2)+tl(i-t.y,2))}static pointAtPP(t,e,i){return new ze((e.x-t.x)*i+t.x,(e.y-t.y)*i+t.y)}}function Sv(n,t,e){const{x1:i,y1:s,x2:r,y2:a}=t;return e.onlyTranslate()?(n!==t&&n.setValue(t.x1,t.y1,t.x2,t.y2),n.translate(e.e,e.f),t):(n.clear(),n.add(e.a*i+e.c*s+e.e,e.b*i+e.d*s+e.f),n.add(e.a*r+e.c*s+e.e,e.b*r+e.d*s+e.f),n.add(e.a*r+e.c*a+e.e,e.b*r+e.d*a+e.f),n.add(e.a*i+e.c*a+e.e,e.b*i+e.d*a+e.f),t)}class di{constructor(t){t?this.setValue(t.x1,t.y1,t.x2,t.y2):this.clear()}clone(){return new di(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}setValue(t=0,e=0,i=0,s=0){return this.x1=t,this.y1=e,this.x2=i,this.y2=s,this}set(t=0,e=0,i=0,s=0){return ithis.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this}expand(t=0){return V(t)?(this.y1-=t[0],this.x2+=t[1],this.y2+=t[2],this.x1-=t[3]):(this.x1-=t,this.y1-=t,this.x2+=t,this.y2+=t),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(t=0,e=0){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this}rotate(t=0,e=0,i=0){const s=this.rotatedPoints(t,e,i);return this.clear().add(s[0],s[1]).add(s[2],s[3]).add(s[4],s[5]).add(s[6],s[7])}scale(t=0,e=0,i=0,s=0){const r=this.scalePoints(t,e,i,s);return this.clear().add(r[0],r[1]).add(r[2],r[3])}union(t){return t.x1this.x2&&(this.x2=t.x2),t.y2>this.y2&&(this.y2=t.y2),this}intersect(t){return t.x1>this.x1&&(this.x1=t.x1),t.y1>this.y1&&(this.y1=t.y1),t.x2=t.x2&&this.y1<=t.y1&&this.y2>=t.y2}alignsWith(t){return t&&(this.x1===t.x1||this.x2===t.x2||this.y1===t.y1||this.y2===t.y2)}intersects(t){return t&&!(this.x2t.x2||this.y2t.y2)}contains(t=0,e=0){return!(tthis.x2||ethis.y2)}containsPoint(t){return!(t.xthis.x2||t.ythis.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(t=0){return this.x1*=t,this.x2*=t,this}scaleY(t=0){return this.y1*=t,this.y2*=t,this}transformWithMatrix(t){return Sv(this,this,t),this}copy(t){return this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2,this}rotatedPoints(t,e,i){const{x1:s,y1:r,x2:a,y2:o}=this,l=Math.cos(t),h=Math.sin(t),d=e-e*l+i*h,c=i-e*h-i*l;return[l*s-h*r+d,h*s+l*r+c,l*s-h*o+d,h*s+l*o+c,l*a-h*r+d,h*a+l*r+c,l*a-h*o+d,h*a+l*o+c]}scalePoints(t,e,i,s){const{x1:r,y1:a,x2:o,y2:l}=this;return[t*r+(1-t)*i,e*a+(1-e)*s,t*o+(1-t)*i,e*l+(1-e)*s]}}class _e extends di{}function Jt(n){return n*(Math.PI/180)}function Zl(n){return 180*n/Math.PI}const vF=(n=0)=>{if(n<0)for(;n<-li;)n+=li;else if(n>0)for(;n>li;)n-=li;return n},yF=vF;function Ue(n,t,e){return t?{x:n.x+t*Math.cos(e),y:n.y+t*Math.sin(e)}:{x:n.x,y:n.y}}function qp(n,t){return Math.atan2(t.y-n.y,t.x-n.x)}function js(n){for(;n<0;)n+=2*Math.PI;for(;n>=2*Math.PI;)n-=2*Math.PI;return n}function bF(n,t){const e=Math.abs(t-n);if(e>=2*Math.PI||2*Math.PI-e<1e-6)return[0,Math.PI/2,Math.PI,1.5*Math.PI];const i=js(Math.min(n,t)),s=i+e,r=[i,s];let a=Math.floor(i/Math.PI)*Math.PI/2;for(;ai&&r.push(a),a+=Math.PI/2;return r}function xF(n,t,e,i){const{x:s,y:r}=t,a=bF(e,i),{width:o,height:l}=n,h=[];return a.forEach(d=>{const c=Math.sin(d),u=Math.cos(d);c===1?h.push(l-r):c===-1?h.push(r):u===1?h.push(o-s):u===-1?h.push(s):(c>0?h.push(Math.abs((l-r)/u)):h.push(Math.abs(r/u)),u>0?h.push(Math.abs((o-s)/c)):h.push(Math.abs(s/c)))}),Math.min.apply(null,h)}class Re{constructor(t=1,e=0,i=0,s=1,r=0,a=0){this.a=t,this.b=e,this.c=i,this.d=s,this.e=r,this.f=a}equalToMatrix(t){return!(this.e!==t.e||this.f!==t.f||this.a!==t.a||this.d!==t.d||this.b!==t.b||this.c!==t.c)}equalTo(t,e,i,s,r,a){return!(this.e!==r||this.f!==a||this.a!==t||this.d!==s||this.b!==e||this.c!==i)}setValue(t,e,i,s,r,a){return this.a=t,this.b=e,this.c=i,this.d=s,this.e=r,this.f=a,this}reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this}getInverse(){const t=this.a,e=this.b,i=this.c,s=this.d,r=this.e,a=this.f,o=new Re,l=t*s-e*i;return o.a=s/l,o.b=-e/l,o.c=-i/l,o.d=t/l,o.e=(i*a-s*r)/l,o.f=-(t*a-e*r)/l,o}rotate(t){const e=Math.cos(t),i=Math.sin(t),s=this.a*e+this.c*i,r=this.b*e+this.d*i,a=this.a*-i+this.c*e,o=this.b*-i+this.d*e;return this.a=s,this.b=r,this.c=a,this.d=o,this}rotateByCenter(t,e,i){const s=Math.cos(t),r=Math.sin(t),a=(1-s)*e+r*i,o=(1-s)*i-r*e,l=s*this.a-r*this.b,h=r*this.a+s*this.b,d=s*this.c-r*this.d,c=r*this.c+s*this.d,u=s*this.e-r*this.f+a,p=r*this.e+s*this.f+o;return this.a=l,this.b=h,this.c=d,this.d=c,this.e=u,this.f=p,this}scale(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this}setScale(t,e){return this.b=this.b/this.a*t,this.c=this.c/this.d*e,this.a=t,this.d=e,this}transform(t,e,i,s,r,a){return this.multiply(t,e,i,s,r,a),this}translate(t,e){return this.e+=this.a*t+this.c*e,this.f+=this.b*t+this.d*e,this}transpose(){const{a:t,b:e,c:i,d:s,e:r,f:a}=this;return this.a=e,this.b=t,this.c=s,this.d=i,this.e=a,this.f=r,this}multiply(t,e,i,s,r,a){const o=this.a,l=this.b,h=this.c,d=this.d,c=o*t+h*e,u=l*t+d*e,p=o*i+h*s,g=l*i+d*s,f=o*r+h*a+this.e,_=l*r+d*a+this.f;return this.a=c,this.b=u,this.c=p,this.d=g,this.e=f,this.f=_,this}interpolate(t,e){const i=new Re;return i.a=this.a+(t.a-this.a)*e,i.b=this.b+(t.b-this.b)*e,i.c=this.c+(t.c-this.c)*e,i.d=this.d+(t.d-this.d)*e,i.e=this.e+(t.e-this.e)*e,i.f=this.f+(t.f-this.f)*e,i}transformPoint(t,e){const{a:i,b:s,c:r,d:a,e:o,f:l}=this,h=i*a-s*r,d=a/h,c=-s/h,u=-r/h,p=i/h,g=(r*l-a*o)/h,f=-(i*l-s*o)/h,{x:_,y:m}=t;e.x=_*d+m*u+g,e.y=_*c+m*p+f}onlyTranslate(t=1){return this.a===t&&this.b===0&&this.c===0&&this.d===t}clone(){return new Re(this.a,this.b,this.c,this.d,this.e,this.f)}toTransformAttrs(){const t=this.a,e=this.b,i=this.c,s=this.d,r=t*s-e*i,a={x:this.e,y:this.f,rotateDeg:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!==0||e!==0){const o=Math.sqrt(t*t+e*e);a.rotateDeg=e>0?Math.acos(t/o):-Math.acos(t/o),a.scaleX=o,a.scaleY=r/o,a.skewX=(t*i+e*s)/r,a.skewY=0}else if(i!==0||s!==0){const o=Math.sqrt(i*i+s*s);a.rotateDeg=Math.PI/2-(s>0?Math.acos(-i/o):-Math.acos(i/o)),a.scaleX=r/o,a.scaleY=o,a.skewX=0,a.skewY=(t*i+e*s)/r}return a.rotateDeg=Zl(a.rotateDeg),a}}function SF(n,t,e,i,s,r,a,o){const l=t.a,h=t.b,d=t.c,c=t.d,u=t.e,p=t.f,g=se(a),f=Kt(a);let _,m;o?(_=o[0],m=o[1]):(_=e,m=i);const y=_-e,b=m-i,v=l*g+d*f,x=h*g+c*f,S=d*g-l*f,k=c*g-h*f;n.a=s*v,n.b=s*x,n.c=r*S,n.d=r*k,n.e=u+l*_+d*m-v*y-S*b,n.f=p+h*_+c*m-x*y-k*b}class AF{constructor(){this.CLEAN_THRESHOLD=1e3,this.L_TIME=1e3,this.R_COUNT=1,this.R_TIMESTAMP_MAX_SIZE=20}clearCache(t,e){const{CLEAN_THRESHOLD:i=this.CLEAN_THRESHOLD,L_TIME:s=this.L_TIME,R_COUNT:r=this.R_COUNT}=e;if(t.size{a++,t.delete(h)},l=Date.now();return t.forEach((h,d)=>{if(h.timestamp.length=r)););if(cs;)h.timestamp.shift()}),a}addLimitedTimestamp(t,e,i){const{R_TIMESTAMP_MAX_SIZE:s=this.R_TIMESTAMP_MAX_SIZE}=i;t.timestamp.length>s&&t.timestamp.shift(),t.timestamp.push(e)}clearTimeStamp(t,e){const{L_TIME:i=this.L_TIME}=e,s=Date.now();t.forEach(r=>{for(;s-r.timestamp[0]>i;)r.timestamp.shift()})}clearItemTimestamp(t,e){const{L_TIME:i=this.L_TIME}=e,s=Date.now();for(;s-t.timestamp[0]>i;)t.timestamp.shift()}}function Zp(n,t,e){t/=100,e/=100;const i=(1-Math.abs(2*e-1))*t,s=i*(1-Math.abs(n/60%2-1)),r=e-i/2;let a=0,o=0,l=0;return 0<=n&&n<60?(a=i,o=s,l=0):60<=n&&n<120?(a=s,o=i,l=0):120<=n&&n<180?(a=0,o=i,l=s):180<=n&&n<240?(a=0,o=s,l=i):240<=n&&n<300?(a=s,o=0,l=i):300<=n&&n<360&&(a=i,o=0,l=s),a=Math.round(255*(a+r)),o=Math.round(255*(o+r)),l=Math.round(255*(l+r)),{r:a,g:o,b:l}}function I_(n,t,e){n/=255,t/=255,e/=255;const i=Math.min(n,t,e),s=Math.max(n,t,e),r=s-i;let a=0,o=0,l=0;return a=r===0?0:s===n?(t-e)/r%6:s===t?(e-n)/r+2:(n-t)/r+4,a=Math.round(60*a),a<0&&(a+=360),l=(s+i)/2,o=r===0?0:r/(1-Math.abs(2*l-1)),o=+(100*o).toFixed(1),l=+(100*l).toFixed(1),{h:a,s:o,l}}const kF=/^#([0-9a-f]{3,8})$/,u1={transparent:4294967040},Bp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Nu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function DP(n){return nt(n)?new rn(n>>16,n>>8&255,255&n,1):V(n)?new rn(n[0],n[1],n[2]):new rn(255,255,255)}function TF(n){return nt(n)?new rn(n>>>24,n>>>16&255,n>>>8&255,255&n):V(n)?new rn(n[0],n[1],n[2],n[3]):new rn(255,255,255,1)}function d0(n){return n<.04045?.0773993808*n:Math.pow(.9478672986*n+.0521327014,2.4)}function c0(n){return n<.0031308?12.92*n:1.055*Math.pow(n,.41666)-.055}const p1=(n,t)=>{const e=kF.exec(n);if(t||e){const i=parseInt(e[1],16),s=e[1].length;return s===3?new rn((i>>8&15)+((i>>8&15)<<4),(i>>4&15)+((i>>4&15)<<4),(15&i)+((15&i)<<4),1):s===6?DP(i):s===8?new rn(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):null}};class Je{static Brighter(t,e=1){return e===1?t:new Je(t).brighter(e).toRGBA()}static SetOpacity(t,e=1){return e===1?t:new Je(t).setOpacity(e).toRGBA()}static getColorBrightness(t,e="hsl"){const i=t instanceof Je?t:new Je(t);switch(e){case"hsv":default:return i.getHSVBrightness();case"hsl":return i.getHSLBrightness();case"lum":return i.getLuminance();case"lum2":return i.getLuminance2();case"lum3":return i.getLuminance3()}}static parseColorString(t){if(P(u1[t]))return TF(u1[t]);if(P(Bp[t]))return DP(Bp[t]);const e=`${t}`.trim().toLowerCase(),i=p1(e);if(i!==void 0)return i;if(/^(rgb|RGB|rgba|RGBA)/.test(e)){const s=e.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,"").split(",");return new rn(parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10),parseFloat(s[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(e)){const s=e.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,"").split(","),r=Zp(parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10));return new rn(r.r,r.g,r.b,parseFloat(s[3]))}}constructor(t){const e=Je.parseColorString(t);e?this.color=e:(console.warn(`Warn: 传入${t}无法解析为Color`),this.color=new rn(255,255,255))}toRGBA(){return this.color.formatRgb()}toString(){return this.color.formatRgb()}toHex(){return this.color.formatHex()}toHsl(){return this.color.formatHsl()}brighter(t){const{r:e,g:i,b:s}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(e*t))),this.color.g=Math.max(0,Math.min(255,Math.floor(i*t))),this.color.b=Math.max(0,Math.min(255,Math.floor(s*t))),this}add(t){const{r:e,g:i,b:s}=this.color;return this.color.r+=Math.min(255,e+t.color.r),this.color.g+=Math.min(255,i+t.color.g),this.color.b+=Math.min(255,s+t.color.b),this}sub(t){return this.color.r=Math.max(0,this.color.r-t.color.r),this.color.g=Math.max(0,this.color.g-t.color.g),this.color.b=Math.max(0,this.color.b-t.color.b),this}multiply(t){const{r:e,g:i,b:s}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(e*t.color.r))),this.color.g=Math.max(0,Math.min(255,Math.floor(i*t.color.g))),this.color.b=Math.max(0,Math.min(255,Math.floor(s*t.color.b))),this}getHSVBrightness(){return Math.max(this.color.r,this.color.g,this.color.b)/255}getHSLBrightness(){return .5*(Math.max(this.color.r,this.color.g,this.color.b)/255+Math.min(this.color.r,this.color.g,this.color.b)/255)}setHsl(t,e,i){const s=this.color.opacity,r=I_(this.color.r,this.color.g,this.color.b),a=Zp(C(t)?r.h:Fe(t,0,360),C(e)?r.s:e>=0&&e<=1?100*e:e,C(i)?r.l:i<=1&&i>=0?100*i:i);return this.color=new rn(a.r,a.g,a.b,s),this}setRGB(t,e,i){return!C(t)&&(this.color.r=t),!C(e)&&(this.color.g=e),!C(i)&&(this.color.b=i),this}setHex(t){const e=`${t}`.trim().toLowerCase(),i=p1(e,!0);return i??this}setColorName(t){const e=Bp[t.toLowerCase()];return e!==void 0?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}setScalar(t){return this.color.r=t,this.color.g=t,this.color.b=t,this}setOpacity(t=1){return this.color.opacity=t,this}getLuminance(){return(.2126*this.color.r+.7152*this.color.g+.0722*this.color.b)/255}getLuminance2(){return(.2627*this.color.r+.678*this.color.g+.0593*this.color.b)/255}getLuminance3(){return(.299*this.color.r+.587*this.color.g+.114*this.color.b)/255}clone(){return new Je(this.color.toString())}copyGammaToLinear(t,e=2){return this.color.r=Math.pow(t.color.r,e),this.color.g=Math.pow(t.color.g,e),this.color.b=Math.pow(t.color.b,e),this}copyLinearToGamma(t,e=2){const i=e>0?1/e:1;return this.color.r=Math.pow(t.color.r,i),this.color.g=Math.pow(t.color.g,i),this.color.b=Math.pow(t.color.b,i),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.color.r=d0(t.color.r),this.color.g=d0(t.color.g),this.color.b=d0(t.color.b),this}copyLinearToSRGB(t){return this.color.r=c0(t.color.r),this.color.g=c0(t.color.g),this.color.b=c0(t.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}}class rn{constructor(t,e,i,s){this.r=isNaN(+t)?255:Math.max(0,Math.min(255,+t)),this.g=isNaN(+e)?255:Math.max(0,Math.min(255,+e)),this.b=isNaN(+i)?255:Math.max(0,Math.min(255,+i)),P(s)?this.opacity=isNaN(+s)?1:Math.max(0,Math.min(1,+s)):this.opacity=1}formatHex(){return`#${Nu(this.r)+Nu(this.g)+Nu(this.b)+(this.opacity===1?"":Nu(255*this.opacity))}`}formatRgb(){const t=this.opacity;return`${t===1?"rgb(":"rgba("}${this.r},${this.g},${this.b}${t===1?")":`,${t})`}`}formatHsl(){const t=this.opacity,{h:e,s:i,l:s}=I_(this.r,this.g,this.b);return`${t===1?"hsl(":"hsla("}${e},${i}%,${s}%${t===1?")":`,${t})`}`}toString(){return this.formatHex()}}function FP(n){let t="",e="",i="";const s=n[0]==="#"?1:0;for(let r=s;r{const c=Math.round(e*(1-d)+i*d),u=Math.round(s*(1-d)+r*d),p=Math.round(a*(1-d)+o*d);return new rn(c,u,p,l*(1-d)+h*d)}}const CF=Object.freeze(Object.defineProperty({__proto__:null,Color:Je,DEFAULT_COLORS:Bp,RGB:rn,hexToRgb:FP,hslToRgb:Zp,interpolateRgb:wF,rgbToHex:MF,rgbToHsl:I_},Symbol.toStringTag,{value:"Module"}));function u0(n,t,e){n[0]=t[0]-e[0],n[1]=t[1]-e[1]}function zP(n,t,e,i){let s=n[0],r=t[0],a=e[0],o=i[0];return r=0&&o<=1&&[n[0]+s[0]*o,n[1]+s[1]*o]}function HP(n,t,e){if(n===null)return t;if(t===null)return n;const{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}=qb(n,t,e);return i>=l||s<=o||r>=d||a<=h?{x1:0,y1:0,x2:0,y2:0}:{x1:Math.max(i,o),y1:Math.max(r,h),x2:Math.min(s,l),y2:Math.min(a,d)}}var vl;(function(n){n[n.NONE=0]="NONE",n[n.BBOX1=1]="BBOX1",n[n.BBOX2=2]="BBOX2"})(vl||(vl={}));const qb=(n,t,e)=>{let i=n.x1,s=n.x2,r=n.y1,a=n.y2,o=t.x1,l=t.x2,h=t.y1,d=t.y2;return e&&(i>s&&([i,s]=[s,i]),r>a&&([r,a]=[a,r]),o>l&&([o,l]=[l,o]),h>d&&([h,d]=[d,h])),{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}};function PF(n,t,e){if(!n||!t)return vl.NONE;const{x11:i,x12:s,y11:r,y12:a,x21:o,x22:l,y21:h,y22:d}=qb(n,t,e);return i>o&&sh&&ai&&lr&&dt.x2||n.x2t.y2||n.y2l||sd||a=t.x1&&n.x<=t.x2&&n.y>=t.y1&&n.y<=t.y2;let i=t.x1,s=t.x2,r=t.y1,a=t.y2;return i>s&&([i,s]=[s,i]),r>a&&([r,a]=[a,r]),n.x>=i&&n.x<=s&&n.y>=r&&n.y<=a}function p0(n,t){return Math.abs(t[0]*n[0]+t[1]*n[1])}function Gu({x:n,y:t},e,i={x:0,y:0}){return{x:(n-i.x)*Math.cos(e)+(t-i.y)*Math.sin(e)+i.x,y:(n-i.x)*Math.sin(e)+(i.y-t)*Math.cos(e)+i.y}}function Av(n){return{x:(n.x1+n.x2)/2,y:(n.y1+n.y2)/2}}function g1(n,t){const e=t?n.angle:Jt(n.angle),i=Av(n);return[Gu({x:n.x1,y:n.y1},e,i),Gu({x:n.x2,y:n.y1},e,i),Gu({x:n.x2,y:n.y2},e,i),Gu({x:n.x1,y:n.y2},e,i)]}function EF(n,t,e=!1,i){const s=g1(n,e),r=g1(t,e),a=(b,v)=>[v.x-b.x,v.y-b.y],o=Av(n),l=Av(t),h=a(o,l),d=a(s[0],s[1]),c=a(s[1],s[2]),u=a(r[0],r[1]),p=a(r[1],r[2]),g=e?n.angle:Jt(n.angle);let f=e?n.angle+Yn:Jt(90-n.angle);const _=e?t.angle:Jt(t.angle);let m=e?t.angle+Yn:Jt(90-t.angle);f>Dt&&(f-=Dt),m>Dt&&(m-=Dt);const y=(b,v,x,S)=>{const k=[Math.cos(v),Math.sin(v)];return b+(p0(k,x)+p0(k,S))/2>p0(k,h)};return y((n.x2-n.x1)/2,g,u,p)&&y((n.y2-n.y1)/2,f,u,p)&&y((t.x2-t.x1)/2,_,d,c)&&y((t.y2-t.y1)/2,m,d,c)}let Uu,$u,Yu,Xu;function RF(n){return Uu=1/0,$u=1/0,Yu=-1/0,Xu=-1/0,n.forEach(t=>{Uu>t.x&&(Uu=t.x),Yut.y&&($u=t.y),Xut&&r>i||rs?o:0}function _1(n,t){return Math.abs(n-t)0&&IF(t[e-1].x,t[e-1].y,t[e].x,t[e].y,n))return!0;return!1}const v1=n=>{let t=n.charCodeAt(0),e=n.length===2?n.charCodeAt(1):0,i=t;return 55296<=t&&t<=56319&&56320<=e&&e<=57343&&(t&=1023,e&=1023,i=t<<10|e,i+=65536),i===12288||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":i===8361||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||i===172||i===175||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":i===161||i===164||167<=i&&i<=168||i===170||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||i===198||i===208||215<=i&&i<=216||222<=i&&i<=225||i===230||232<=i&&i<=234||236<=i&&i<=237||i===240||242<=i&&i<=243||247<=i&&i<=250||i===252||i===254||i===257||i===273||i===275||i===283||294<=i&&i<=295||i===299||305<=i&&i<=307||i===312||319<=i&&i<=322||i===324||328<=i&&i<=331||i===333||338<=i&&i<=339||358<=i&&i<=359||i===363||i===462||i===464||i===466||i===468||i===470||i===472||i===474||i===476||i===593||i===609||i===708||i===711||713<=i&&i<=715||i===717||i===720||728<=i&&i<=731||i===733||i===735||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||i===1025||1040<=i&&i<=1103||i===1105||i===8208||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||i===8240||8242<=i&&i<=8243||i===8245||i===8251||i===8254||i===8308||i===8319||8321<=i&&i<=8324||i===8364||i===8451||i===8453||i===8457||i===8467||i===8470||8481<=i&&i<=8482||i===8486||i===8491||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||i===8585||8592<=i&&i<=8601||8632<=i&&i<=8633||i===8658||i===8660||i===8679||i===8704||8706<=i&&i<=8707||8711<=i&&i<=8712||i===8715||i===8719||i===8721||i===8725||i===8730||8733<=i&&i<=8736||i===8739||i===8741||8743<=i&&i<=8748||i===8750||8756<=i&&i<=8759||8764<=i&&i<=8765||i===8776||i===8780||i===8786||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||i===8853||i===8857||i===8869||i===8895||i===8978||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||i===9675||9678<=i&&i<=9681||9698<=i&&i<=9701||i===9711||9733<=i&&i<=9734||i===9737||9742<=i&&i<=9743||9748<=i&&i<=9749||i===9756||i===9758||i===9792||i===9794||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||i===9839||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||i===9955||9960<=i&&i<=9983||i===10045||i===10071||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||i===65533||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"};function OF(n,t={},e){e||(e=1);const{fontStyle:i=t.fontStyle,fontVariant:s=t.fontVariant,fontWeight:r=t.fontWeight,fontSize:a=t.fontSize,fontFamily:o=t.fontFamily}=n;return(i?i+" ":"")+(s?s+" ":"")+(r?r+" ":"")+a*e+"px "+(o||"sans-serif")}class Yi{constructor(t,e){this._numberCharSize=null,this._fullCharSize=null,this._letterCharSize=null,this._specialCharSizeMap={},this._canvas=null,this._context=null,this._contextSaved=!1,this._notSupportCanvas=!1,this._notSupportVRender=!1,this._userSpec={},this.specialCharSet=`-/: .,@%'"~`,this._option=t,this._userSpec=e??{},this.textSpec=this._initSpec(),P(t.specialCharSet)&&(this.specialCharSet=t.specialCharSet),this._standardMethod=P(t.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(C(this._canvas)&&(P(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),C(this._canvas)&&typeof window<"u"&&window.document!==void 0&&globalThis&&P(globalThis.document)&&(this._canvas=globalThis.document.createElement("canvas"))),C(this._context)&&P(this._canvas)){const t=this._canvas.getContext("2d");P(t)&&(t.save(),t.font=OF(this.textSpec),this._contextSaved=!0,this._context=t)}return!C(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){var t,e,i;const{defaultFontParams:s={}}=this._option,{fontStyle:r=s.fontStyle,fontVariant:a=s.fontVariant,fontWeight:o=(t=s.fontWeight)!==null&&t!==void 0?t:"normal",fontSize:l=(e=s.fontSize)!==null&&e!==void 0?e:12,fontFamily:h=(i=s.fontFamily)!==null&&i!==void 0?i:"sans-serif",align:d,textAlign:c=d??"center",baseline:u,textBaseline:p=u??"middle",ellipsis:g,limit:f}=this._userSpec;let{lineHeight:_=l}=this._userSpec;if(at(_)&&_[_.length-1]==="%"){const m=Number.parseFloat(_.substring(0,_.length-1))/100;_=l*m}return{fontStyle:r,fontVariant:a,fontFamily:h,fontSize:l,fontWeight:o,textAlign:c,textBaseline:p,ellipsis:g,limit:f,lineHeight:_}}measure(t,e){switch(e){case"vrender":case"canopus":return this.fullMeasure(t);case"canvas":return this.measureWithNaiveCanvas(t);case"simple":return this.quickMeasureWithoutCanvas(t);default:return this.quickMeasure(t)}}fullMeasure(t){if(C(t))return{width:0,height:0};if(C(this._option.getTextBounds)||!this._notSupportVRender)return this.measureWithNaiveCanvas(t);const{fontFamily:e,fontSize:i,fontWeight:s,textAlign:r,textBaseline:a,ellipsis:o,limit:l,lineHeight:h}=this.textSpec;let d;try{const c=this._option.getTextBounds({text:t,fontFamily:e,fontSize:i,fontWeight:s,textAlign:r,textBaseline:a,ellipsis:!!o,maxLineWidth:l||1/0,lineHeight:h});d={width:c.width(),height:c.height()}}catch{this._notSupportVRender=!0,d=this.measureWithNaiveCanvas(t)}return d}measureWithNaiveCanvas(t){return this._measureReduce(t,this._measureWithNaiveCanvas.bind(this))}_measureWithNaiveCanvas(t){var e;if(!this.initContext())return this._quickMeasureWithoutCanvas(t);const i=this._context.measureText(t),{fontSize:s,lineHeight:r}=this.textSpec;return{width:i.width,height:(e=r)!==null&&e!==void 0?e:s}}quickMeasure(t){return this._measureReduce(t,this._quickMeasure.bind(this))}_quickMeasure(t){const e={width:0,height:0};for(let i=0;il.toString());return o.length===0?a:o.length===1?e(o[0]):{width:o.reduce((l,h)=>Math.max(l,e(h).width),0),height:o.length*(((i=r)!==null&&i!==void 0?i:s)+1)+1}}return e(t.toString())}_measureNumberChar(){if(C(this._numberCharSize)){const t=this._standardMethod(Yi.NUMBERS_CHAR_SET);this._numberCharSize={width:t.width/Yi.NUMBERS_CHAR_SET.length,height:t.height}}return this._numberCharSize}_measureFullSizeChar(){return C(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(Yi.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(C(this._letterCharSize)){const t=this._standardMethod(Yi.ALPHABET_CHAR_SET);this._letterCharSize={width:t.width/Yi.ALPHABET_CHAR_SET.length,height:t.height}}return this._letterCharSize}_measureSpecialChar(t){return P(this._specialCharSizeMap[t])?this._specialCharSizeMap[t]:this.specialCharSet.includes(t)?(this._specialCharSizeMap[t]=this._standardMethod(t),this._specialCharSizeMap[t]):null}release(){P(this._canvas)&&(this._canvas=null),P(this._context)&&(this._contextSaved&&(this._context.restore(),this._contextSaved=!1),this._context=null)}}Yi.ALPHABET_CHAR_SET="abcdefghijklmnopqrstuvwxyz",Yi.NUMBERS_CHAR_SET="0123456789",Yi.FULL_SIZE_CHAR="字";const VP=(n,t)=>{const{x1:e,x2:i,y1:s,y2:r}=n,a=Math.abs(i-e),o=Math.abs(r-s);let l=(e+i)/2,h=(s+r)/2,d=0,c=0;switch(t){case"top":case"inside-top":c=-.5;break;case"bottom":case"inside-bottom":c=.5;break;case"left":case"inside-left":d=-.5;break;case"right":case"inside-right":d=.5;break;case"top-right":d=.5,c=-.5;break;case"top-left":d=-.5,c=-.5;break;case"bottom-right":d=.5,c=.5;break;case"bottom-left":d=-.5,c=.5}return l+=d*a,h+=c*o,{x:l,y:h}};function ln(n){if(z(n))return[n,n,n,n];if(V(n)){const t=n.length;if(t===1){const e=n[0];return[e,e,e,e]}if(t===2){const[e,i]=n;return[e,i,e,i]}if(t===3){const[e,i,s]=n;return[e,i,s,i]}if(t===4)return n}if(Ct(n)){const{top:t=0,right:e=0,bottom:i=0,left:s=0}=n;return[t,e,i,s]}return[0,0,0,0]}function kv(n,t=0,e=0){if(!n)return{width:t,height:e};let i;try{i=window==null?void 0:window.getComputedStyle}catch{i=()=>({})}const s=i(n);if(/^(\d*\.?\d+)(px)$/.exec(s.width)){const r=parseFloat(s.width)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)||n.clientWidth-1,a=parseFloat(s.height)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)||n.clientHeight-1;return{width:r<=0?t:r,height:a<=0?e:a}}return{width:t,height:e}}function LF(n){const{x:t,y:e}=n.getBoundingClientRect();return{x:t,y:e}}function WP(n,t){let e=n.parentNode;for(;e!==null;){if(e===t)return!0;e=e.parentNode}return!1}const DF=(n="")=>{const t={};return n.split(";").forEach(e=>{if(e){const i=e.split(":");if(i.length===2){const s=i[0].trim(),r=i[1].trim();s&&r&&(t[s]=r)}}}),t},y1=n=>n.replace(/([A-Z])/g,"-$1").toLowerCase();var fn=63710088e-1,FF={centimeters:fn*100,centimetres:fn*100,degrees:fn/111325,feet:fn*3.28084,inches:fn*39.37,kilometers:fn/1e3,kilometres:fn/1e3,meters:fn,metres:fn,miles:fn/1609.344,millimeters:fn*1e3,millimetres:fn*1e3,nauticalmiles:fn/1852,radians:1,yards:fn*1.0936};function b1(n,t,e){e===void 0&&(e={});var i={type:"Feature"};return(e.id===0||e.id)&&(i.id=e.id),e.bbox&&(i.bbox=e.bbox),i.properties=t||{},i.geometry=n,i}function NP(n,t){t===void 0&&(t={});var e={type:"FeatureCollection"};return t.id&&(e.id=t.id),t.bbox&&(e.bbox=t.bbox),e.features=n,e}function zF(n,t){t===void 0&&(t="kilometers");var e=FF[t];if(!e)throw new Error(t+" units is invalid");return n/e}function jF(n){return!!n&&n.constructor===Object}function HF(n){return n.type==="Feature"?n.geometry:n}function VF(n,t){if(!n||!t)return!1;const e=HF(t),i=e.type,s=t.bbox;let r=e.coordinates;if(s&&_d(n,{x1:s[0],x2:s[1],y1:s[1],y2:s[3]},!0)===!0)return!1;i==="Polygon"&&(r=[r]);let a=!1;for(let o=0;o({x:h[0],y:h[1]})),n.x,n.y))return a=!0,a;return a}function WF(n,t,e,i={}){const s=Jt(n[0]),r=Jt(n[1]),a=Jt(e),o=zF(t,i.units),l=Math.asin(Math.sin(r)*Math.cos(o)+Math.cos(r)*Math.sin(o)*Math.cos(a)),h=s+Math.atan2(Math.sin(a)*Math.sin(o)*Math.cos(r),Math.cos(o)-Math.sin(r)*Math.sin(l));return{x:Zl(h),y:Zl(l)}}class gs{static getInstance(){return gs.instance||(gs.instance=new gs),gs.instance}constructor(){this.locale_shortWeekdays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.locale_periods=["AM","PM"],this.locale_weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.locale_shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.numberRe=/^\s*\d+/,this.pads={"-":"",_:" ",0:"0"},this.requoteRe=/[\\^$*+?|[\]().{}]/g,this.locale_months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.formatShortWeekday=t=>this.locale_shortWeekdays[t.getDay()],this.formatWeekday=t=>this.locale_weekdays[t.getDay()],this.formatShortMonth=t=>this.locale_shortMonths[t.getMonth()],this.formatMonth=t=>this.locale_months[t.getMonth()],this.formatDayOfMonth=(t,e)=>this.pad(t.getDate(),e,2),this.formatHour24=(t,e)=>this.pad(t.getHours(),e,2),this.formatHour12=(t,e)=>this.pad(t.getHours()%12||12,e,2),this.formatMilliseconds=(t,e)=>this.pad(t.getMilliseconds(),e,3),this.formatMonthNumber=(t,e)=>this.pad(t.getMonth()+1,e,2),this.formatMinutes=(t,e)=>this.pad(t.getMinutes(),e,2),this.formatPeriod=t=>this.locale_periods[+(t.getHours()>=12)],this.formatSeconds=(t,e)=>this.pad(t.getSeconds(),e,2),this.formatFullYear=(t,e)=>this.pad(t.getFullYear()%1e4,e,4),this.formatUTCShortWeekday=t=>this.locale_shortWeekdays[t.getUTCDay()],this.formatUTCWeekday=t=>this.locale_weekdays[t.getUTCDay()],this.formatUTCShortMonth=t=>this.locale_shortMonths[t.getUTCMonth()],this.formatUTCMonth=t=>this.locale_months[t.getUTCMonth()],this.formatUTCDayOfMonth=(t,e)=>this.pad(t.getUTCDate(),e,2),this.formatUTCHour24=(t,e)=>this.pad(t.getUTCHours(),e,2),this.formatUTCHour12=(t,e)=>this.pad(t.getUTCHours()%12||12,e,2),this.formatUTCMilliseconds=(t,e)=>this.pad(t.getUTCMilliseconds(),e,3),this.formatUTCMonthNumber=(t,e)=>this.pad(t.getUTCMonth()+1,e,2),this.formatUTCMinutes=(t,e)=>this.pad(t.getUTCMinutes(),e,2),this.formatUTCPeriod=t=>this.locale_periods[+(t.getUTCHours()>=12)],this.formatUTCSeconds=(t,e)=>this.pad(t.getUTCSeconds(),e,2),this.formatUTCFullYear=(t,e)=>this.pad(t.getUTCFullYear()%1e4,e,4),this.formats={a:this.formatShortWeekday,A:this.formatWeekday,b:this.formatShortMonth,B:this.formatMonth,d:this.formatDayOfMonth,e:this.formatDayOfMonth,H:this.formatHour24,I:this.formatHour12,L:this.formatMilliseconds,m:this.formatMonthNumber,M:this.formatMinutes,p:this.formatPeriod,S:this.formatSeconds,Y:this.formatFullYear},this.utcFormats={a:this.formatUTCShortWeekday,A:this.formatUTCWeekday,b:this.formatUTCShortMonth,B:this.formatUTCMonth,d:this.formatUTCDayOfMonth,e:this.formatUTCDayOfMonth,H:this.formatUTCHour24,I:this.formatUTCHour12,L:this.formatUTCMilliseconds,m:this.formatUTCMonthNumber,M:this.formatUTCMinutes,p:this.formatUTCPeriod,S:this.formatUTCSeconds,Y:this.formatUTCFullYear},this.parseShortWeekday=(t,e,i)=>{const s=this.shortWeekdayRe.exec(e.slice(i));return s?(t.w=this.shortWeekdayLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseWeekday=(t,e,i)=>{const s=this.weekdayRe.exec(e.slice(i));return s?(t.w=this.weekdayLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseShortMonth=(t,e,i)=>{const s=this.shortMonthRe.exec(e.slice(i));return s?(t.m=this.shortMonthLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseMonth=(t,e,i)=>{const s=this.monthRe.exec(e.slice(i));return s?(t.m=this.monthLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseDayOfMonth=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.d=+s[0],i+s[0].length):-1},this.parseHour24=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.H=+s[0],i+s[0].length):-1},this.parseMilliseconds=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+3));return s?(t.L=+s[0],i+s[0].length):-1},this.parseMonthNumber=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.m=s-1,i+s[0].length):-1},this.parseMinutes=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.M=+s[0],i+s[0].length):-1},this.parsePeriod=(t,e,i)=>{const s=this.periodRe.exec(e.slice(i));return s?(t.p=this.periodLookup.get(s[0].toLowerCase()),i+s[0].length):-1},this.parseSeconds=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+2));return s?(t.S=+s[0],i+s[0].length):-1},this.parseFullYear=(t,e,i)=>{const s=this.numberRe.exec(e.slice(i,i+4));return s?(t.y=+s[0],i+s[0].length):-1},this.parses={a:this.parseShortWeekday,A:this.parseWeekday,b:this.parseShortMonth,B:this.parseMonth,d:this.parseDayOfMonth,e:this.parseDayOfMonth,H:this.parseHour24,I:this.parseHour24,L:this.parseMilliseconds,m:this.parseMonthNumber,M:this.parseMinutes,p:this.parsePeriod,S:this.parseSeconds,Y:this.parseFullYear},this.timeFormat=(t,e)=>this.newFormat(t,this.formats)(new Date(this.getFullTimeStamp(e))),this.timeUTCFormat=(t,e)=>this.newFormat(t,this.utcFormats)(new Date(this.getFullTimeStamp(e))),this.timeParse=(t,e)=>this.newParse(t,!1)(e+""),this.requoteF=this.requote.bind(this),this.periodRe=this.formatRe(this.locale_periods),this.periodLookup=this.formatLookup(this.locale_periods),this.weekdayRe=this.formatRe(this.locale_weekdays),this.weekdayLookup=this.formatLookup(this.locale_weekdays),this.shortWeekdayRe=this.formatRe(this.locale_shortWeekdays),this.shortWeekdayLookup=this.formatLookup(this.locale_shortWeekdays),this.monthRe=this.formatRe(this.locale_months),this.monthLookup=this.formatLookup(this.locale_months),this.shortMonthRe=this.formatRe(this.locale_shortMonths),this.shortMonthLookup=this.formatLookup(this.locale_shortMonths)}requote(t){return t.replace(this.requoteRe,"\\$&")}localDate(t){if(0<=t.y&&t.y<100){const e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}utcDate(t){if(0<=t.y&&t.y<100){const e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}newDate(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}formatRe(t){return new RegExp("^(?:"+t.map(this.requoteF).join("|")+")","i")}formatLookup(t){return new Map(t.map((e,i)=>[e.toLowerCase(),i]))}pad(t,e,i){const s=t<0?"-":"",r=(s?-t:t)+"",a=r.length;return s+(a=o)return-1;if(l=e.charCodeAt(r++),l===37){if(l=e.charAt(r++),h=this.parses[l in this.pads?e.charAt(r++):l],!h||(s=h(t,i,s))<0)return-1}else if(l!==i.charCodeAt(s++))return-1}return s}newParse(t,e){const i=this;return function(s){const r=i.newDate(1900,void 0,1);return i.parseSpecifier(r,t,s+="",0)!==s.length?null:"Q"in r?new Date(r.Q):"s"in r?new Date(1e3*r.s+("L"in r?r.L:0)):(e&&!("Z"in r)&&(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),r.m===void 0&&(r.m="q"in r?r.q:0),"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,i.utcDate(r)):i.localDate(r))}}newFormat(t,e){const i=this;return function(s){const r=[];let a=-1,o=0;const l=t.length;let h,d,c;for(s instanceof Date||(s=new Date(+s));++a=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function Jp(n,t){const e=t?n.toExponential(t-1):n.toExponential(),i=e.indexOf("e");if(i<0)return null;const s=e.slice(0,i);return[s.length>1?s[0]+s.slice(2):s,+e.slice(i+1)]}function GF(n,t){return function(e,i){let s=e.length;const r=[];let a=0,o=n[0],l=0;for(;s>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),r.push(e.substring(s-=o,s+o)),!((l+=o+1)>i));)o=n[a=(a+1)%n.length];return r.reverse().join(t)}}let GP;function UF(n,t){const e=Jp(n,t);if(!e)return n+"";const i=e[0],s=e[1],r=s-(GP=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,a=i.length;return r===a?i:r>a?i+new Array(r-a+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+Jp(n,Math.max(0,t+r-1))[0]}function x1(n,t){const e=Jp(n,t);if(!e)return n+"";const i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}function $F(n){const t=n.length;let e,i=-1;t:for(let s=1;s0&&(i=0)}return i>0?n.slice(0,i)+n.slice(e+1):n}class YF{constructor(t={}){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}toString(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}}const UP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S1(n){let t;if(t=UP.exec(n))return new YF({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]});Lt.getInstance().error("invalid format: "+n)}const A1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];class io{constructor(){this.locale={thousands:",",grouping:[3],currency:["$",""]},this.group=this.locale.grouping===void 0||this.locale.thousands===void 0?t=>t:GF([...this.locale.grouping].map(Number),`${this.locale.thousands}`),this.currencyPrefix=this.locale.currency===void 0?"":this.locale.currency[0]+"",this.currencySuffix=this.locale.currency===void 0?"":this.locale.currency[1]+"",this.decimal=this.locale.decimal===void 0?".":this.locale.decimal+"",this.numerals=this.locale.numerals===void 0?t=>t:KF([...this.locale.numerals].map(String)),this.percent=this.locale.percent===void 0?"%":this.locale.percent+"",this.minus=this.locale.minus===void 0?"−":this.locale.minus+"",this.nan=this.locale.nan===void 0?"NaN":this.locale.nan+"",this.formatter=t=>this.newFormat(t),this.format=(t,e)=>this.formatter(t)(e),this.formatPrefix=(t,e)=>this._formatPrefix(t,e)}static getInstance(){return io.instance||(io.instance=new io),io.instance}newFormat(t){const e=S1(t);let i=e.fill,s=e.align;const r=e.sign,a=e.symbol;let o=e.zero;const l=e.width;let h=e.comma,d=e.precision,c=e.trim,u=e.type;u==="n"?(h=!0,u="g"):k1[u]||(d===void 0&&(d=12),c=!0,u="g"),(o||i==="0"&&s==="=")&&(o=!0,i="0",s="=");const p=a==="$"?this.currencyPrefix:a==="#"&&/[boxX]/.test(u)?"0"+u.toLowerCase():"",g=a==="$"?this.currencySuffix:/[%p]/.test(u)?this.percent:"",f=k1[u],_=/[defgprstz%]/.test(u);d=d===void 0?6:/[gprs]/.test(u)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d));const{nan:m,minus:y,decimal:b,group:v,numerals:x}=this;function S(k){let A,T,M,w=p,E=g,R=k;if(u==="c")E=f(R)+E,R="";else{R=+R;let I=R<0||1/R<0;if(R=isNaN(R)?m:f(Math.abs(R),d),c&&(R=$F(R)),I&&+R==0&&r!=="+"&&(I=!1),w=(I?r==="("?r:y:r==="-"||r==="("?"":r)+w,E=(u==="s"?A1[8+GP/3]:"")+E+(I&&r==="("?")":""),_){for(A=-1,T=R.length;++AM||M>57){E=(M===46?b+R.slice(A+1):R.slice(A))+E,R=R.slice(0,A);break}}}h&&!o&&(R=v(R,1/0));let O=w.length+R.length+E.length,B=O>1)+w+R+E+B.slice(O);break;default:R=B+w+R+E}return x(R)}return S.toString=function(){return t+""},S}_formatPrefix(t,e){const i=S1(t);i.type="f";const s=this.newFormat(i.toString()),r=3*Math.max(-8,Math.min(8,Math.floor(XF(e)/3))),a=Math.pow(10,-r),o=A1[8+r/3];return function(l){return s(a*l)+o}}}const k1={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:NF,f:(n,t)=>n.toFixed(t),e:(n,t)=>n.toExponential(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>x1(100*n,t),r:x1,s:UF,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16),t:(n,t)=>Number.isInteger(n)?n.toFixed(2):Math.floor(n*Math.pow(10,t))/Math.pow(10,t)+"",z:(n,t)=>n%1==0?n+"":n.toFixed(t)};function XF(n){const t=Jp(Math.abs(n));return t?t[1]:NaN}function KF(n){return function(t){return t.replace(/[0-9]/g,e=>n[+e])}}const qF=(n,t)=>{const{callback:e}=t;return e&&(n=n.filter(e)),n};function O_(){return new Qp}function Qp(){this.reset()}Qp.prototype={constructor:Qp,reset:function(){this.s=this.t=0},add:function(n){T1(Ku,n,this.t),T1(this,Ku.s,this.s),this.s?this.t+=Ku.t:this.s=Ku.t},valueOf:function(){return this.s}};var Ku=new Qp;function T1(n,t,e){var i=n.s=t+e,s=i-t,r=i-s;n.t=t-r+(e-s)}var Ht=1e-6,ZF=1e-12,Xt=Math.PI,Qe=Xt/2,M1=Xt/4,jn=Xt*2,Vi=180/Xt,Ne=Xt/180,fe=Math.abs,Th=Math.atan,Tr=Math.atan2,Yt=Math.cos,$P=Math.exp,tg=Math.log,g0=Math.pow,Vt=Math.sin,qn=Math.sign||function(n){return n>0?1:n<0?-1:0},kn=Math.sqrt,Zb=Math.tan;function YP(n){return n>1?0:n<-1?Xt:Math.acos(n)}function ts(n){return n>1?Qe:n<-1?-Qe:Math.asin(n)}function Zn(){}function eg(n,t){n&&C1.hasOwnProperty(n.type)&&C1[n.type](n,t)}var w1={Feature:function(n,t){eg(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,i=-1,s=e.length;++iXt?n+Math.round(-n/jn)*jn:n,t]}Pv.invert=Pv;function XP(n,t,e){return(n%=jn)?t||e?Cv(R1(n),B1(t,e)):R1(n):t||e?B1(t,e):Pv}function E1(n){return function(t,e){return t+=n,[t>Xt?t-jn:t<-Xt?t+jn:t,e]}}function R1(n){var t=E1(n);return t.invert=E1(-n),t}function B1(n,t){var e=Yt(n),i=Vt(n),s=Yt(t),r=Vt(t);function a(o,l){var h=Yt(l),d=Yt(o)*h,c=Vt(o)*h,u=Vt(l),p=u*e+d*i;return[Tr(c*s-p*r,d*e-u*i),ts(p*s+c*r)]}return a.invert=function(o,l){var h=Yt(l),d=Yt(o)*h,c=Vt(o)*h,u=Vt(l),p=u*s-c*r;return[Tr(c*s+u*r,d*e+p*i),ts(p*e-d*i)]},a}function JF(n){n=XP(n[0]*Ne,n[1]*Ne,n.length>2?n[2]*Ne:0);function t(e){return e=n(e[0]*Ne,e[1]*Ne),e[0]*=Vi,e[1]*=Vi,e}return t.invert=function(e){return e=n.invert(e[0]*Ne,e[1]*Ne),e[0]*=Vi,e[1]*=Vi,e},t}function QF(n,t,e,i,s,r){if(e){var a=Yt(t),o=Vt(t),l=i*e;s==null?(s=t+i*jn,r=t-l/2):(s=I1(a,s),r=I1(a,r),(i>0?sr)&&(s+=i*jn));for(var h,d=s;i>0?d>r:d1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Ip(n,t){return fe(n[0]-t[0])=0;--o)s.point((c=d[o])[0],c[1]);else i(u.x,u.p.x,-1,s);u=u.p}u=u.o,d=u.z,p=!p}while(!u.v);s.lineEnd()}}}function O1(n){if(t=n.length){for(var t,e=0,i=n[0],s;++e=0?1:-1,T=A*k,M=T>Xt,w=f*x;if(_0.add(Tr(w*A*Vt(T),_*S+w*Yt(T))),a+=M?k+A*jn:k,M^p>=e^b>=e){var E=ig(Jl(u),Jl(y));wv(E);var R=ig(r,E);wv(R);var O=(M^k>=0?-1:1)*ts(R[2]);(i>O||i===O&&(E[0]||E[1]))&&(o+=M^k>=0?1:-1)}}return(a<-Ht||at?1:n>=t?0:NaN}function ez(n){return n.length===1&&(n=iz(n)),{left:function(t,e,i,s){for(i==null&&(i=0),s==null&&(s=t.length);i>>1;n(t[r],e)<0?i=r+1:s=r}return i},right:function(t,e,i,s){for(i==null&&(i=0),s==null&&(s=t.length);i>>1;n(t[r],e)>0?s=r:i=r+1}return i}}}function iz(n){return function(t,e){return ZP(n(t),e)}}ez(ZP);function JP(n){for(var t=n.length,e,i=-1,s=0,r,a;++i=0;)for(a=n[t],e=a.length;--e>=0;)r[--s]=a[e];return r}function QP(n,t,e,i){return function(s){var r=t(s),a=KP(),o=t(a),l=!1,h,d,c,u={point:p,lineStart:f,lineEnd:_,polygonStart:function(){u.point=m,u.lineStart=y,u.lineEnd=b,d=[],h=[]},polygonEnd:function(){u.point=p,u.lineStart=f,u.lineEnd=_,d=JP(d);var v=tz(h,i);d.length?(l||(s.polygonStart(),l=!0),qP(d,sz,v,e,s)):v&&(l||(s.polygonStart(),l=!0),s.lineStart(),e(null,null,1,s),s.lineEnd()),l&&(s.polygonEnd(),l=!1),d=h=null},sphere:function(){s.polygonStart(),s.lineStart(),e(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function p(v,x){n(v,x)&&s.point(v,x)}function g(v,x){r.point(v,x)}function f(){u.point=g,r.lineStart()}function _(){u.point=p,r.lineEnd()}function m(v,x){c.push([v,x]),o.point(v,x)}function y(){o.lineStart(),c=[]}function b(){m(c[0][0],c[0][1]),o.lineEnd();var v=o.clean(),x=a.result(),S,k=x.length,A,T,M;if(c.pop(),h.push(c),c=null,!!k){if(v&1){if(T=x[0],(A=T.length-1)>0){for(l||(s.polygonStart(),l=!0),s.lineStart(),S=0;S1&&v&2&&x.push(x.pop().concat(x.shift())),d.push(x.filter(nz))}}return u}}function nz(n){return n.length>1}function sz(n,t){return((n=n.x)[0]<0?n[1]-Qe-Ht:Qe-n[1])-((t=t.x)[0]<0?t[1]-Qe-Ht:Qe-t[1])}const L1=QP(function(){return!0},rz,oz,[-Xt,-Qe]);function rz(n){var t=NaN,e=NaN,i=NaN,s;return{lineStart:function(){n.lineStart(),s=1},point:function(r,a){var o=r>0?Xt:-Xt,l=fe(r-t);fe(l-Xt)0?Qe:-Qe),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(o,e),n.point(r,e),s=0):i!==o&&l>=Xt&&(fe(t-i)Ht?Th((Vt(t)*(r=Yt(i))*Vt(e)-Vt(i)*(s=Yt(t))*Vt(n))/(s*r*a)):(t+i)/2}function oz(n,t,e,i){var s;if(n==null)s=e*Qe,i.point(-Xt,s),i.point(0,s),i.point(Xt,s),i.point(Xt,0),i.point(Xt,-s),i.point(0,-s),i.point(-Xt,-s),i.point(-Xt,0),i.point(-Xt,s);else if(fe(n[0]-t[0])>Ht){var r=n[0]0,s=fe(t)>Ht;function r(d,c,u,p){QF(p,n,e,u,d,c)}function a(d,c){return Yt(d)*Yt(c)>t}function o(d){var c,u,p,g,f;return{lineStart:function(){g=p=!1,f=1},point:function(_,m){var y=[_,m],b,v=a(_,m),x=i?v?0:h(_,m):v?h(_+(_<0?Xt:-Xt),m):0;if(!c&&(g=p=v)&&d.lineStart(),v!==p&&(b=l(c,y),(!b||Ip(c,b)||Ip(y,b))&&(y[2]=1)),v!==p)f=0,v?(d.lineStart(),b=l(y,c),d.point(b[0],b[1])):(b=l(c,y),d.point(b[0],b[1],2),d.lineEnd()),c=b;else if(s&&c&&i^v){var S;!(x&u)&&(S=l(y,c,!0))&&(f=0,i?(d.lineStart(),d.point(S[0][0],S[0][1]),d.point(S[1][0],S[1][1]),d.lineEnd()):(d.point(S[1][0],S[1][1]),d.lineEnd(),d.lineStart(),d.point(S[0][0],S[0][1],3)))}v&&(!c||!Ip(c,y))&&d.point(y[0],y[1]),c=y,p=v,u=x},lineEnd:function(){p&&d.lineEnd(),c=null},clean:function(){return f|(g&&p)<<1}}}function l(d,c,u){var p=Jl(d),g=Jl(c),f=[1,0,0],_=ig(p,g),m=qu(_,_),y=_[0],b=m-y*y;if(!b)return!u&&d;var v=t*m/b,x=-t*y/b,S=ig(f,_),k=Zu(f,v),A=Zu(_,x);f0(k,A);var T=S,M=qu(k,T),w=qu(T,T),E=M*M-w*(qu(k,k)-1);if(!(E<0)){var R=kn(E),O=Zu(T,(-M-R)/w);if(f0(O,k),O=Mv(O),!u)return O;var B=d[0],I=c[0],D=d[1],F=c[1],$;I0^O[1]<(fe(O[0]-B)Xt^(B<=O[0]&&O[0]<=I)){var Z=Zu(T,(-M+R)/w);return f0(Z,k),[O,Mv(Z)]}}}function h(d,c){var u=i?n:Xt-n,p=0;return d<-u?p|=1:d>u&&(p|=2),c<-u?p|=4:c>u&&(p|=8),p}return QP(a,o,r,i?[0,-n]:[-Xt,n-Xt])}function hz(n,t,e,i,s,r){var a=n[0],o=n[1],l=t[0],h=t[1],d=0,c=1,u=l-a,p=h-o,g;if(g=e-a,!(!u&&g>0)){if(g/=u,u<0){if(g0){if(g>c)return;g>d&&(d=g)}if(g=s-a,!(!u&&g<0)){if(g/=u,u<0){if(g>c)return;g>d&&(d=g)}else if(u>0){if(g0)){if(g/=p,p<0){if(g0){if(g>c)return;g>d&&(d=g)}if(g=r-o,!(!p&&g<0)){if(g/=p,p<0){if(g>c)return;g>d&&(d=g)}else if(p>0){if(g0&&(n[0]=a+d*u,n[1]=o+d*p),c<1&&(t[0]=a+c*u,t[1]=o+c*p),!0}}}}}var id=1e9,Qu=-id;function tE(n,t,e,i){function s(h,d){return n<=h&&h<=e&&t<=d&&d<=i}function r(h,d,c,u){var p=0,g=0;if(h==null||(p=a(h,c))!==(g=a(d,c))||l(h,d)<0^c>0)do u.point(p===0||p===3?n:e,p>1?i:t);while((p=(p+c+4)%4)!==g);else u.point(d[0],d[1])}function a(h,d){return fe(h[0]-n)0?0:3:fe(h[0]-e)0?2:1:fe(h[1]-t)0?1:0:d>0?3:2}function o(h,d){return l(h.x,d.x)}function l(h,d){var c=a(h,1),u=a(d,1);return c!==u?c-u:c===0?d[1]-h[1]:c===1?h[0]-d[0]:c===2?h[1]-d[1]:d[0]-h[0]}return function(h){var d=h,c=KP(),u,p,g,f,_,m,y,b,v,x,S,k={point:A,lineStart:E,lineEnd:R,polygonStart:M,polygonEnd:w};function A(B,I){s(B,I)&&d.point(B,I)}function T(){for(var B=0,I=0,D=p.length;Ii&&(ht-et)*(i-Z)>(J-Z)*(n-et)&&++B:J<=i&&(ht-et)*(i-Z)<(J-Z)*(n-et)&&--B;return B}function M(){d=c,u=[],p=[],S=!0}function w(){var B=T(),I=S&&B,D=(u=JP(u)).length;(I||D)&&(h.polygonStart(),I&&(h.lineStart(),r(null,null,1,h),h.lineEnd()),D&&qP(u,o,B,r,h),h.polygonEnd()),d=h,u=p=g=null}function E(){k.point=O,p&&p.push(g=[]),x=!0,v=!1,y=b=NaN}function R(){u&&(O(f,_),m&&v&&c.rejoin(),u.push(c.result())),k.point=A,v&&d.lineEnd()}function O(B,I){var D=s(B,I);if(p&&g.push([B,I]),x)f=B,_=I,m=D,x=!1,D&&(d.lineStart(),d.point(B,I));else if(D&&v)d.point(B,I);else{var F=[y=Math.max(Qu,Math.min(id,y)),b=Math.max(Qu,Math.min(id,b))],$=[B=Math.max(Qu,Math.min(id,B)),I=Math.max(Qu,Math.min(id,I))];hz(F,$,n,t,e,i)?(v||(d.lineStart(),d.point(F[0],F[1])),d.point($[0],$[1]),D||d.lineEnd(),S=!1):D&&(d.lineStart(),d.point(B,I),S=!1)}y=B,b=I,v=D}return k}}function fc(n){return n}var v0=O_(),Ev=O_(),eE,iE,Rv,Bv,ur={point:Zn,lineStart:Zn,lineEnd:Zn,polygonStart:function(){ur.lineStart=dz,ur.lineEnd=uz},polygonEnd:function(){ur.lineStart=ur.lineEnd=ur.point=Zn,v0.add(fe(Ev)),Ev.reset()},result:function(){var n=v0/2;return v0.reset(),n}};function dz(){ur.point=cz}function cz(n,t){ur.point=nE,eE=Rv=n,iE=Bv=t}function nE(n,t){Ev.add(Bv*n-Rv*t),Rv=n,Bv=t}function uz(){nE(eE,iE)}var Ql=1/0,ng=Ql,_c=-Ql,sg=_c,rg={point:pz,lineStart:Zn,lineEnd:Zn,polygonStart:Zn,polygonEnd:Zn,result:function(){var n=[[Ql,ng],[_c,sg]];return _c=sg=-(ng=Ql=1/0),n}};function pz(n,t){n_c&&(_c=n),tsg&&(sg=t)}var Iv=0,Ov=0,nd=0,ag=0,og=0,yl=0,Lv=0,Dv=0,sd=0,sE,rE,Os,Ls,Xn={point:Ao,lineStart:D1,lineEnd:F1,polygonStart:function(){Xn.lineStart=_z,Xn.lineEnd=mz},polygonEnd:function(){Xn.point=Ao,Xn.lineStart=D1,Xn.lineEnd=F1},result:function(){var n=sd?[Lv/sd,Dv/sd]:yl?[ag/yl,og/yl]:nd?[Iv/nd,Ov/nd]:[NaN,NaN];return Iv=Ov=nd=ag=og=yl=Lv=Dv=sd=0,n}};function Ao(n,t){Iv+=n,Ov+=t,++nd}function D1(){Xn.point=gz}function gz(n,t){Xn.point=fz,Ao(Os=n,Ls=t)}function fz(n,t){var e=n-Os,i=t-Ls,s=kn(e*e+i*i);ag+=s*(Os+n)/2,og+=s*(Ls+t)/2,yl+=s,Ao(Os=n,Ls=t)}function F1(){Xn.point=Ao}function _z(){Xn.point=vz}function mz(){aE(sE,rE)}function vz(n,t){Xn.point=aE,Ao(sE=Os=n,rE=Ls=t)}function aE(n,t){var e=n-Os,i=t-Ls,s=kn(e*e+i*i);ag+=s*(Os+n)/2,og+=s*(Ls+t)/2,yl+=s,s=Ls*n-Os*t,Lv+=s*(Os+n),Dv+=s*(Ls+t),sd+=s*3,Ao(Os=n,Ls=t)}function oE(n){this._context=n}oE.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:{this._context.moveTo(n,t),this._point=1;break}case 1:{this._context.lineTo(n,t);break}default:{this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,jn);break}}},result:Zn};var Fv=O_(),y0,lE,hE,rd,ad,mc={point:Zn,lineStart:function(){mc.point=yz},lineEnd:function(){y0&&dE(lE,hE),mc.point=Zn},polygonStart:function(){y0=!0},polygonEnd:function(){y0=null},result:function(){var n=+Fv;return Fv.reset(),n}};function yz(n,t){mc.point=dE,lE=rd=n,hE=ad=t}function dE(n,t){rd-=n,ad-=t,Fv.add(kn(rd*rd+ad*ad)),rd=n,ad=t}function cE(){this._string=[]}cE.prototype={_radius:4.5,_circle:z1(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,t){switch(this._point){case 0:{this._string.push("M",n,",",t),this._point=1;break}case 1:{this._string.push("L",n,",",t);break}default:{this._circle==null&&(this._circle=z1(this._radius)),this._string.push("M",n,",",t,this._circle);break}}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}else return null}};function z1(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Jb(n,t){var e=4.5,i,s;function r(a){return a&&(typeof e=="function"&&s.pointRadius(+e.apply(this,arguments)),dl(a,i(s))),s.result()}return r.area=function(a){return dl(a,i(ur)),ur.result()},r.measure=function(a){return dl(a,i(mc)),mc.result()},r.bounds=function(a){return dl(a,i(rg)),rg.result()},r.centroid=function(a){return dl(a,i(Xn)),Xn.result()},r.projection=function(a){return arguments.length?(i=a==null?(n=null,fc):(n=a).stream,r):n},r.context=function(a){return arguments.length?(s=a==null?(t=null,new cE):new oE(t=a),typeof e!="function"&&s.pointRadius(e),r):t},r.pointRadius=function(a){return arguments.length?(e=typeof a=="function"?a:(s.pointRadius(+a),+a),r):e},r.projection(n).context(t)}function L_(n){return function(t){var e=new zv;for(var i in n)e[i]=n[i];return e.stream=t,e}}function zv(){}zv.prototype={constructor:zv,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Qb(n,t,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),i!=null&&n.clipExtent(null),dl(e,n.stream(rg)),t(rg.result()),i!=null&&n.clipExtent(i),n}function D_(n,t,e){return Qb(n,function(i){var s=t[1][0]-t[0][0],r=t[1][1]-t[0][1],a=Math.min(s/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),o=+t[0][0]+(s-a*(i[1][0]+i[0][0]))/2,l=+t[0][1]+(r-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([o,l])},e)}function tx(n,t,e){return D_(n,[[0,0],t],e)}function ex(n,t,e){return Qb(n,function(i){var s=+t,r=s/(i[1][0]-i[0][0]),a=(s-r*(i[1][0]+i[0][0]))/2,o=-r*i[0][1];n.scale(150*r).translate([a,o])},e)}function ix(n,t,e){return Qb(n,function(i){var s=+t,r=s/(i[1][1]-i[0][1]),a=-r*i[0][0],o=(s-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([a,o])},e)}var j1=16,bz=Yt(30*Ne);function H1(n,t){return+t?Sz(n,t):xz(n)}function xz(n){return L_({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}})}function Sz(n,t){function e(i,s,r,a,o,l,h,d,c,u,p,g,f,_){var m=h-i,y=d-s,b=m*m+y*y;if(b>4*t&&f--){var v=a+u,x=o+p,S=l+g,k=kn(v*v+x*x+S*S),A=ts(S/=k),T=fe(fe(S)-1)t||fe((m*R+y*O)/b-.5)>.3||a*u+o*p+l*g2?B[2]%360*Ne:0,R()):[o*Vi,l*Vi,h*Vi]},w.angle=function(B){return arguments.length?(c=B%360*Ne,R()):c*Vi},w.reflectX=function(B){return arguments.length?(u=B?-1:1,R()):u<0},w.reflectY=function(B){return arguments.length?(p=B?-1:1,R()):p<0},w.precision=function(B){return arguments.length?(S=H1(k,x=B*B),O()):kn(x)},w.fitExtent=function(B,I){return D_(w,B,I)},w.fitSize=function(B,I){return tx(w,B,I)},w.fitWidth=function(B,I){return ex(w,B,I)},w.fitHeight=function(B,I){return ix(w,B,I)};function R(){var B=V1(e,0,0,u,p,c).apply(null,t(r,a)),I=(c?V1:Tz)(e,i-B[0],s-B[1],u,p,c);return d=XP(o,l,h),k=Cv(t,I),A=Cv(d,k),S=H1(k,x),O()}function O(){return T=M=null,w}return function(){return t=n.apply(this,arguments),w.invert=t.invert&&E,R()}}function nx(n){var t=0,e=Xt/3,i=uE(n),s=i(t,e);return s.parallels=function(r){return arguments.length?i(t=r[0]*Ne,e=r[1]*Ne):[t*Vi,e*Vi]},s}function Mz(n){var t=Yt(n);function e(i,s){return[i*t,Vt(s)/t]}return e.invert=function(i,s){return[i/t,ts(s*t)]},e}function wz(n,t){var e=Vt(n),i=(e+Vt(t))/2;if(fe(i)=.12&&_<.234&&f>=-.425&&f<-.214?s:_>=.166&&_<.234&&f>=-.214&&f<-.115?a:e).invert(u)},d.stream=function(u){return n&&t===u?n:n=Cz([e.stream(t=u),s.stream(u),a.stream(u)])},d.precision=function(u){return arguments.length?(e.precision(u),s.precision(u),a.precision(u),c()):e.precision()},d.scale=function(u){return arguments.length?(e.scale(u),s.scale(u*.35),a.scale(u),d.translate(e.translate())):e.scale()},d.translate=function(u){if(!arguments.length)return e.translate();var p=e.scale(),g=+u[0],f=+u[1];return i=e.translate(u).clipExtent([[g-.455*p,f-.238*p],[g+.455*p,f+.238*p]]).stream(h),r=s.translate([g-.307*p,f+.201*p]).clipExtent([[g-.425*p+Ht,f+.12*p+Ht],[g-.214*p-Ht,f+.234*p-Ht]]).stream(h),o=a.translate([g-.205*p,f+.212*p]).clipExtent([[g-.214*p+Ht,f+.166*p+Ht],[g-.115*p-Ht,f+.234*p-Ht]]).stream(h),c()},d.fitExtent=function(u,p){return D_(d,u,p)},d.fitSize=function(u,p){return tx(d,u,p)},d.fitWidth=function(u,p){return ex(d,u,p)},d.fitHeight=function(u,p){return ix(d,u,p)};function c(){return n=t=null,d}return d.scale(1070)}function gE(n){return function(t,e){var i=Yt(t),s=Yt(e),r=n(i*s);return[r*s*Vt(t),r*Vt(e)]}}function fu(n){return function(t,e){var i=kn(t*t+e*e),s=n(i),r=Vt(s),a=Yt(s);return[Tr(t*r,i*a),ts(i&&e*r/i)]}}var fE=gE(function(n){return kn(2/(1+n))});fE.invert=fu(function(n){return 2*ts(n/2)});function Ez(){return Br(fE).scale(124.75).clipAngle(180-.001)}var _E=gE(function(n){return(n=YP(n))&&n/Vt(n)});_E.invert=fu(function(n){return n});function Rz(){return Br(_E).scale(79.4188).clipAngle(180-.001)}function F_(n,t){return[n,tg(Zb((Qe+t)/2))]}F_.invert=function(n,t){return[n,2*Th($P(t))-Qe]};function Bz(){return mE(F_).scale(961/jn)}function mE(n){var t=Br(n),e=t.center,i=t.scale,s=t.translate,r=t.clipExtent,a=null,o,l,h;t.scale=function(c){return arguments.length?(i(c),d()):i()},t.translate=function(c){return arguments.length?(s(c),d()):s()},t.center=function(c){return arguments.length?(e(c),d()):e()},t.clipExtent=function(c){return arguments.length?(c==null?a=o=l=h=null:(a=+c[0][0],o=+c[0][1],l=+c[1][0],h=+c[1][1]),d()):a==null?null:[[a,o],[l,h]]};function d(){var c=Xt*i(),u=t(JF(t.rotate()).invert([0,0]));return r(a==null?[[u[0]-c,u[1]-c],[u[0]+c,u[1]+c]]:n===F_?[[Math.max(u[0]-c,a),o],[Math.min(u[0]+c,l),h]]:[[a,Math.max(u[1]-c,o)],[l,Math.min(u[1]+c,h)]])}return d()}function tp(n){return Zb((Qe+n)/2)}function Iz(n,t){var e=Yt(n),i=n===t?Vt(n):tg(e/Yt(t))/tg(tp(t)/tp(n)),s=e*g0(tp(n),i)/i;if(!i)return F_;function r(a,o){s>0?o<-Qe+Ht&&(o=-Qe+Ht):o>Qe-Ht&&(o=Qe-Ht);var l=s/g0(tp(o),i);return[l*Vt(i*a),s-l*Yt(i*a)]}return r.invert=function(a,o){var l=s-o,h=qn(i)*kn(a*a+l*l),d=Tr(a,fe(l))*qn(l);return l*i<0&&(d-=Xt*qn(a)*qn(l)),[d/i,2*Th(g0(s/h,1/i))-Qe]},r}function Oz(){return nx(Iz).scale(109.5).parallels([30,30])}function hg(n,t){return[n,t]}hg.invert=hg;function Lz(){return Br(hg).scale(152.63)}function Dz(n,t){var e=Yt(n),i=n===t?Vt(n):(e-Yt(t))/(t-n),s=e/i+n;if(fe(i)Ht&&--i>0);return[n/(.8707+(r=e*e)*(-.131979+r*(-.013791+r*r*r*(.003971-.001529*r)))),e]};function Wz(){return Br(bE).scale(175.295)}function xE(n,t){return[Yt(t)*Vt(n),Vt(t)]}xE.invert=fu(ts);function Nz(){return Br(xE).scale(249.5).clipAngle(90+Ht)}function SE(n,t){var e=Yt(t),i=1+Yt(n)*e;return[e*Vt(n)/i,Vt(t)/i]}SE.invert=fu(function(n){return 2*Th(n)});function Gz(){return Br(SE).scale(250).clipAngle(142)}function AE(n,t){return[tg(Zb((Qe+t)/2)),-n]}AE.invert=function(n,t){return[-t,2*Th($P(n))-Qe]};function Uz(){var n=mE(AE),t=n.center,e=n.rotate;return n.center=function(i){return arguments.length?t([-i[1],i[0]]):(i=t(),[i[1],-i[0]])},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):(i=e(),[i[0],i[1],i[2]-90])},e([0,0,90]).scale(159.155)}function $z(n){return n}function Yz(n){if(n==null)return $z;var t,e,i=n.scale[0],s=n.scale[1],r=n.translate[0],a=n.translate[1];return function(o,l){l||(t=e=0);var h=2,d=o.length,c=new Array(d);for(c[0]=(t+=o[0])*i+r,c[1]=(e+=o[1])*s+a;he&&(i=s,e=r)}if(e>t)var a=jv(n.slice(0,i),t),o=jv(n.slice(i,n.length),t),l=a.concat(o);else n.length>1?l=[n[0],n[n.length-1]]:l=[n[0]];return l},Qz=jv;(function(n){var t=Qz;n.exports=function(s,r,a){return a||(s=JSON.parse(JSON.stringify(s))),s.features?i(s,r):s.type&&s.type==="Feature"?e(s,r):new Error("FeatureCollection or individual Feature required")},n.exports.simplify=function(s,r){return t(s,r)};function e(s,r){var a=s.geometry,o=a.type;if(o==="LineString")a.coordinates=n.exports.simplify(a.coordinates,r);else if(o==="Polygon"||o==="MultiLineString")for(var l=0;l{const e=z_(s3,t),{tolerance:i}=e;return e3(n,i)};var ko;(function(n){n.DSV="dsv",n.TREE="tree",n.GEO="geo",n.BYTE="bytejson",n.HEX="hex",n.GRAPH="graph",n.TABLE="table",n.GEO_GRATICULE="geo-graticule"})(ko||(ko={}));const a3=(n,t)=>{const{fields:e,key:i,value:s,retains:r}=t,a=[];for(let o=0;o{const h={};if(h[i]=l,h[s]=n[o][l],r)r.forEach(d=>{h[d]=n[o][d]});else for(const d in n[o])e.indexOf(d)===-1&&(h[d]=n[o][d]);a.push(h)});return a},ME=(n,t)=>{var e,i;if(!(t!=null&&t.fields)||n.length===0)return n;const s=t.fields,r=n[0],a={},o=[];for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const h=s[l];if(!h.type){let c=r;l in r||(c=(e=n.find(u=>l in u))!==null&&e!==void 0?e:r),h.type=typeof c[l]=="number"?"linear":"ordinal"}let d;if(typeof h.sortIndex=="number"&&(d={key:l,type:h.type,index:h.sortIndex,sortIndex:{},sortIndexCount:0,sortReverse:h.sortReverse===!0},o.push(d)),((i=h.domain)===null||i===void 0?void 0:i.length)>0)if(h.type==="ordinal"){h._domainCache={},a[l]=h;const c={};h.domain.forEach((u,p)=>{c[u]=p,h._domainCache[u]=p}),d&&(d.sortIndex=c,d.sortIndexCount=h.domain.length)}else h.domain.length>=2&&(a[l]=h)}return Object.keys(a).length>0&&(n=n.filter(l=>{for(const h in a){const d=a[h];if(d.type==="ordinal"){if(!(l[h]in d._domainCache))return!1}else if(d.domain[0]>l[h]||d.domain[1]l.index-h.index),n.sort((l,h)=>o3(l,h,o)),n};function o3(n,t,e){for(let i=0;i9999?"+"+_n(n,6):_n(n,4)}function d3(n){var t=n.getUTCHours(),e=n.getUTCMinutes(),i=n.getUTCSeconds(),s=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":h3(n.getUTCFullYear())+"-"+_n(n.getUTCMonth()+1,2)+"-"+_n(n.getUTCDate(),2)+(s?"T"+_n(t,2)+":"+_n(e,2)+":"+_n(i,2)+"."+_n(s,3)+"Z":i?"T"+_n(t,2)+":"+_n(e,2)+":"+_n(i,2)+"Z":e||t?"T"+_n(t,2)+":"+_n(e,2)+"Z":"")}function sx(n){var t=new RegExp('["'+n+` +\r]`),e=n.charCodeAt(0);function i(c,u){var p,g,f=s(c,function(_,m){if(p)return p(_,m-1);g=_,p=u?l3(_,u):wE(_)});return f.columns=g||[],f}function s(c,u){var p=[],g=c.length,f=0,_=0,m,y=g<=0,b=!1;c.charCodeAt(g-1)===Hh&&--g,c.charCodeAt(g-1)===S0&&--g;function v(){if(y)return b0;if(b)return b=!1,N1;var S,k=f,A;if(c.charCodeAt(k)===x0){for(;f++=g?y=!0:(A=c.charCodeAt(f++))===Hh?b=!0:A===S0&&(b=!0,c.charCodeAt(f)===Hh&&++f),c.slice(k+1,S-1).replace(/""/g,'"')}for(;f{e.type=ko.DSV;const i=z_(f3,t),{delimiter:s}=i;if(!at(s))throw new TypeError("Invalid delimiter: must be a string!");return sx(s).parse(n)},PE=(n,t={},e)=>(e.type=ko.DSV,u3(n)),EE=(n,t={},e)=>(e.type=ko.DSV,g3(n));function _3(n){if(!n)throw new Error("geojson is required");switch(n.type){case"Feature":return RE(n);case"FeatureCollection":return m3(n);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return rx(n);default:throw new Error("unknown GeoJSON type")}}function RE(n){var t={type:"Feature"};return Object.keys(n).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:t[e]=n[e]}}),t.properties=BE(n.properties),t.geometry=rx(n.geometry),t}function BE(n){var t={};return n&&Object.keys(n).forEach(function(e){var i=n[e];typeof i=="object"?i===null?t[e]=null:Array.isArray(i)?t[e]=i.map(function(s){return s}):t[e]=BE(i):t[e]=i}),t}function m3(n){var t={type:"FeatureCollection"};return Object.keys(n).forEach(function(e){switch(e){case"type":case"features":return;default:t[e]=n[e]}}),t.features=n.features.map(function(e){return RE(e)}),t}function rx(n){var t={type:n.type};return n.bbox&&(t.bbox=n.bbox),n.type==="GeometryCollection"?(t.geometries=n.geometries.map(function(e){return rx(e)}),t):(t.coordinates=IE(n.coordinates),t)}function IE(n){var t=n;return typeof t[0]!="object"?t.slice():t.map(function(e){return IE(e)})}function od(n){if(Array.isArray(n))return n;if(n.type==="Feature"){if(n.geometry!==null)return n.geometry.coordinates}else if(n.coordinates)return n.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Hv(n){for(var t=od(n),e=0,i=1,s,r;i0}function U1(n,t){if(n.type==="Feature")t(n,0);else if(n.type==="FeatureCollection")for(var e=0;e is required");if(typeof e!="boolean")throw new Error(" must be a boolean");if(typeof i!="boolean")throw new Error(" must be a boolean");i===!1&&(n=_3(n));var s=[];switch(n.type){case"GeometryCollection":return ax(n,function(r){Op(r,e)}),n;case"FeatureCollection":return U1(n,function(r){U1(Op(r,e),function(a){s.push(a)})}),NP(s)}return Op(n,e)}function Op(n,t){var e=n.type==="Feature"?n.geometry.type:n.type;switch(e){case"GeometryCollection":return ax(n,function(i){Op(i,t)}),n;case"LineString":return $1(od(n),t),n;case"Polygon":return Y1(od(n),t),n;case"MultiLineString":return od(n).forEach(function(i){$1(i,t)}),n;case"MultiPolygon":return od(n).forEach(function(i){Y1(i,t)}),n;case"Point":case"MultiPoint":return n}}function $1(n,t){Hv(n)===t&&n.reverse()}function Y1(n,t){Hv(n[0])!==t&&n[0].reverse();for(var e=1;e{if(n.geometry.type.startsWith("Multi")){const t=b3(n).features[0];return Object.assign(Object.assign({},t),t.properties)}return Object.assign(Object.assign({},n),n.properties)},x3=n=>{const t=[];return n.forEach(e=>{e.type==="FeatureCollection"?e.features.forEach(i=>{t.push(K1(i))}):t.push(K1(e))}),t},LE=(n,t={},e)=>{e.type=ko.GEO;const i=z_(OE,t),{centroid:s,name:r,bbox:a,rewind:o}=i;if(Array.isArray(n))return x3(n);let l=n.features;return o&&(l=y3(n,{reverse:!Ct(o)||o.reverse}).features),l.forEach(h=>{if(s){const d=X1.centroid(h);h.centroidX=d[0],h.centroidY=d[1]}if(r&&(h.name=h.properties.name),a){const d=X1.bounds(h);h.bbox=d}}),n.features=l,n},S3={},A3=(n,t,e)=>{e.type=ko.GEO;const i=z_(OE,S3,t),{object:s}=i;if(!at(s))throw new TypeError("Invalid object: must be a string!");const r=Kz(n,n.objects[s]);return LE(r,i,e)},j_=(n,t,e)=>{const i=!be(t==null?void 0:t.dependencyUpdate)||(t==null?void 0:t.dependencyUpdate);if(!n||!V(n))throw new TypeError("Invalid data: must be DataView array!");return V(e.rawData)&&e.rawData.forEach(s=>{s.target&&(s.target.removeListener("change",e.reRunAllTransform),s.target.removeListener("markRunning",e.markRunning))}),i&&n.forEach(s=>{s.target.addListener("change",e.reRunAllTransform),s.target.addListener("markRunning",e.markRunning)}),n};let A0=0;const k3=1e8;function DE(n="dataset"){return A0>k3&&(A0=0),n+"_"+A0++}class Ra{constructor(t){var e;let i;this.options=t,this.isDataSet=!0,this.transformMap={},this.parserMap={},this.dataViewMap={},this.target=new Go,i=t!=null&&t.name?t.name:DE("dataset"),this.name=i,this._logger=(e=t==null?void 0:t.logger)!==null&&e!==void 0?e:Lt.getInstance()}setLogger(t){this._logger=t}getDataView(t){return this.dataViewMap[t]}setDataView(t,e){var i;this.dataViewMap[t]&&((i=this._logger)===null||i===void 0||i.error(`Error: dataView ${t} 之前已存在,请重新命名`)),this.dataViewMap[t]=e}removeDataView(t){this.dataViewMap[t]=null,delete this.dataViewMap[t]}registerParser(t,e){var i;this.parserMap[t]&&((i=this._logger)===null||i===void 0||i.warn(`Warn: transform ${t} 之前已注册,执行覆盖逻辑`)),this.parserMap[t]=e}removeParser(t){this.parserMap[t]=null,delete this.parserMap[t]}getParser(t){return this.parserMap[t]||this.parserMap.default}registerTransform(t,e){var i;this.transformMap[t]&&((i=this._logger)===null||i===void 0||i.warn(`Warn: transform ${t} 之前已注册,执行覆盖逻辑`)),this.transformMap[t]=e}removeTransform(t){this.transformMap[t]=null,delete this.transformMap[t]}getTransform(t){return this.transformMap[t]}multipleDataViewAddListener(t,e,i){this._callMap||(this._callMap=new Map);let s=this._callMap.get(i);s||(s=()=>{t.some(r=>r.isRunning)||i()}),t.forEach(r=>{r.target.addListener(e,s)}),this._callMap.set(i,s)}allDataViewAddListener(t,e){this.multipleDataViewAddListener(Object.values(this.dataViewMap),t,e)}multipleDataViewRemoveListener(t,e,i){if(this._callMap){const s=this._callMap.get(i);s&&t.forEach(r=>{r.target.removeListener(e,s)}),this._callMap.delete(i)}}multipleDataViewUpdateInParse(t){t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.markRunning()}),t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.parseNewData(e.data,e.options)})}multipleDataViewUpdateInRawData(t){t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.markRunning()}),t.forEach(e=>{var i;return(i=this.getDataView(e.name))===null||i===void 0?void 0:i.updateRawData(e.data,e.options)})}destroy(){this.transformMap=null,this.parserMap=null,this.dataViewMap=null,this._callMap=null,this.target.removeAllListeners()}}const k0="_data-view-diff-rank";class Ut{constructor(t,e){let i;this.dataSet=t,this.options=e,this.isDataView=!0,this.target=new Go,this.parseOption=null,this.transformsArr=[],this.isRunning=!1,this.rawData={},this.history=!1,this.parserData={},this.latestData={},this._fields=null,this.reRunAllTransform=(s={pushHistory:!0,emitMessage:!0})=>(this.isRunning=!0,this.resetTransformData(),this.transformsArr.forEach(r=>{this.executeTransform(r,{pushHistory:s.pushHistory,emitMessage:!1}),this.isLastTransform(r)&&this.diffLastData()}),this.isRunning=!1,s.emitMessage!==!1&&this.target.emit("change",[]),this),this.markRunning=()=>{this.isRunning=!0,this.target.emit("markRunning",[])},i=e!=null&&e.name?e.name:DE("dataview"),this.name=i,e!=null&&e.history&&(this.history=e.history,this.historyData=[]),this.dataSet.setDataView(i,this),this.setFields(e==null?void 0:e.fields)}parse(t,e,i=!1){var s;this.isRunning=!0,i&&this.target.emit("beforeParse",[]),e&&(this.parseOption=e);const r=this.cloneParseData(t,e);if(e!=null&&e.type){const a=((s=this.dataSet.getParser(e.type))!==null&&s!==void 0?s:this.dataSet.getParser("bytejson"))(r,e.options,this);this.rawData=r,this.parserData=a,this.history&&this.historyData.push(r,a),this.latestData=a}else this.parserData=r,this.rawData=r,this.history&&this.historyData.push(r),this.latestData=r;return this.isRunning=!1,i&&this.target.emit("afterParse",[]),this}transform(t,e=!0){if(this.isRunning=!0,t&&t.type){let i=!0;if(t.type==="fields"){this._fields=t.options.fields;const s=this.transformsArr.findIndex(r=>r.type===t.type);s>=0&&(i=!1,this.transformsArr[s].options.fields=this._fields)}if(i&&this.transformsArr.push(t),e){const s=this.isLastTransform(t);this.executeTransform(t),s&&this.diffLastData()}}return this.sortTransform(),this.isRunning=!1,this}isLastTransform(t){return this.transformsArr[this.transformsArr.length-1]===t}sortTransform(){this.transformsArr.length>=2&&this.transformsArr.sort((t,e)=>{var i,s;return((i=t.level)!==null&&i!==void 0?i:0)-((s=e.level)!==null&&s!==void 0?s:0)})}executeTransform(t,e={pushHistory:!0,emitMessage:!0}){const{pushHistory:i,emitMessage:s}=e,r=this.dataSet.getTransform(t.type)(this.latestData,t.options);this.history&&i!==!1&&this.historyData.push(r),this.latestData=r,s!==!1&&this.target.emit("change",[])}resetTransformData(){this.latestData=this.parserData,this.history&&(this.historyData.length=0,this.historyData.push(this.rawData,this.parserData))}enableDiff(t){this._diffData=!0,this._diffKeys=t,this._diffMap=new Map,this._diffRank=0}disableDiff(){this._diffData=!1,this._diffMap=null,this._diffRank=null}resetDiff(){this._diffMap=new Map,this._diffRank=0}diffLastData(){var t;if(!this._diffData||!this.latestData.forEach||!(!((t=this._diffKeys)===null||t===void 0)&&t.length))return;const e=this._diffRank+1;if(this._diffRank===0)this.latestData.forEach(i=>{i[k0]=e,this._diffMap.set(this._diffKeys.reduce((s,r)=>s+i[r],""),i)}),this.latestDataAUD={add:Array.from(this.latestData),del:[],update:[]};else{let i;this.latestDataAUD={add:[],del:[],update:[]},this.latestData.forEach(s=>{s[k0]=e,i=this._diffKeys.reduce((r,a)=>r+s[a],""),this._diffMap.get(i)?this.latestDataAUD.update.push(s):this.latestDataAUD.add.push(s),this._diffMap.set(i,s)}),this._diffMap.forEach((s,r)=>{s[k0]s.type==="fields");!C(this._fields)&&C(i)?(this.dataSet.registerTransform("fields",ME),this.transform({type:"fields",options:{fields:this._fields}},!1)):i&&(i.options.fields=this._fields)}destroy(){this.dataSet.removeDataView(this.name),this._diffMap=null,this._diffRank=null,this.latestData=null,this.rawData=null,this.parserData=null,this.transformsArr=null,this.target=null}}class Ye{static GenAutoIncrementId(){return Ye.auto_increment_id++}}Ye.auto_increment_id=0;class wt{constructor(t){this.id=Ye.GenAutoIncrementId(),this.registry=t}}const H_="named",FE="inject",zE="multi_inject",jE="inversify:tagged",HE="inversify:paramtypes";class ox{constructor(t,e){this.key=t,this.value=e}toString(){return this.key===H_?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}}var q1={};const Ll=function(n){var t;return function(e){const i=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",r=s&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",a=s&&Symbol.iterator!==void 0?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",l={__proto__:[]}instanceof Array,h=!o&&!l,d={create:o?function(){return J(Object.create(null))}:l?function(){return J({__proto__:null})}:function(){return J({})},has:h?function(N,q){return i.call(N,q)}:function(N,q){return q in N},get:h?function(N,q){return i.call(N,q)?N[q]:void 0}:function(N,q){return N[q]}},c=Object.getPrototypeOf(Function),u=typeof process=="object"&&q1&&q1.REFLECT_METADATA_USE_MAP_POLYFILL==="true",p=u||typeof Map!="function"||typeof Map.prototype.entries!="function"?et():Map,g=((u||typeof Set!="function"||typeof Set.prototype.entries!="function")&&Z(),new(u||typeof WeakMap!="function"?ht():WeakMap));function f(N,q,X,ot){if(!R(X))throw new TypeError;return A(N,q,X,ot)}function _(N,q,X){if(!R(q))throw new TypeError;return M(X)||(X=F(X)),v(N,q,X)}function m(N,q,X){if(!R(q))throw new TypeError;return M(X)||(X=F(X)),x(N,q,X)}function y(N,q,X){if(!R(q))throw new TypeError;return M(X)||(X=F(X)),S(N,q,X)}function b(N,q,X){let ot=g.get(N);if(M(ot)){if(!X)return;ot=new p,g.set(N,ot)}let ut=ot.get(q);if(M(ut)){if(!X)return;ut=new p,ot.set(q,ut)}return ut}function v(N,q,X){if(x(N,q,X))return!0;const ot=W(q);return!w(ot)&&v(N,ot,X)}function x(N,q,X){const ot=b(q,X,!1);return!M(ot)&&I(ot.has(N))}function S(N,q,X){if(x(N,q,X))return k(N,q,X);const ot=W(q);return w(ot)?void 0:S(N,ot,X)}function k(N,q,X){const ot=b(q,X,!1);if(!M(ot))return ot.get(N)}function A(N,q,X,ot){b(X,ot,!0).set(N,q)}function T(N){if(N===null)return 1;switch(typeof N){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return N===null?1:6;default:return 6}}function M(N){return N===void 0}function w(N){return N===null}function E(N){return typeof N=="symbol"}function R(N){return typeof N=="object"?N!==null:typeof N=="function"}function O(N,q){switch(T(N)){case 0:case 1:case 2:case 3:case 4:case 5:return N}const X="string",ot=K(N,r);if(ot!==void 0){const ut=ot.call(N,X);if(R(ut))throw new TypeError;return ut}return B(N)}function B(N,q){{const X=N.toString;if($(X)){const ut=X.call(N);if(!R(ut))return ut}const ot=N.valueOf;if($(ot)){const ut=ot.call(N);if(!R(ut))return ut}}throw new TypeError}function I(N){return!!N}function D(N){return""+N}function F(N){const q=O(N);return E(q)?q:D(q)}function $(N){return typeof N=="function"}function K(N,q){const X=N[q];if(X!=null){if(!$(X))throw new TypeError;return X}}function W(N){const q=Object.getPrototypeOf(N);if(typeof N!="function"||N===c||q!==c)return q;const X=N.prototype,ot=X&&Object.getPrototypeOf(X);if(ot==null||ot===Object.prototype)return q;const ut=ot.constructor;return typeof ut!="function"||ut===N?q:ut}function et(){const N={},q=[],X=function(){function lt(mt,xt,Bt){this._index=0,this._keys=mt,this._values=xt,this._selector=Bt}return lt.prototype["@@iterator"]=function(){return this},lt.prototype[a]=function(){return this},lt.prototype.next=function(){const mt=this._index;if(mt>=0&&mt=this._keys.length?(this._index=-1,this._keys=q,this._values=q):this._index++,{value:xt,done:!1}}return{value:void 0,done:!0}},lt.prototype.throw=function(mt){throw this._index>=0&&(this._index=-1,this._keys=q,this._values=q),mt},lt.prototype.return=function(mt){return this._index>=0&&(this._index=-1,this._keys=q,this._values=q),{value:mt,done:!0}},lt}();return function(){function lt(){this._keys=[],this._values=[],this._cacheKey=N,this._cacheIndex=-2}return Object.defineProperty(lt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),lt.prototype.has=function(mt){return this._find(mt,!1)>=0},lt.prototype.get=function(mt){const xt=this._find(mt,!1);return xt>=0?this._values[xt]:void 0},lt.prototype.set=function(mt,xt){const Bt=this._find(mt,!0);return this._values[Bt]=xt,this},lt.prototype.delete=function(mt){const xt=this._find(mt,!1);if(xt>=0){const Bt=this._keys.length;for(let At=xt+1;At{M3(t,e,i,n)}}function WE(n){return t=>(e,i,s)=>VE(new ox(n,t))(e,i,s)}const It=WE(FE),NE=WE(zE);function gt(){return function(n){return Ll.defineMetadata(HE,null,n),n}}function _i(n){return VE(new ox(H_,n))}const To={Singleton:"Singleton",Transient:"Transient"},Qr={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};class lx{constructor(t,e){this.id=Ye.GenAutoIncrementId(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=Qr.Invalid,this.constraint=i=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.dynamicValue=null}clone(){const t=new lx(this.serviceIdentifier,this.scope);return t.activated=t.scope===To.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.provider=this.provider,t.constraint=this.constraint,t.cache=this.cache,t}}class w3{getConstructorMetadata(t){return{compilerGeneratedMetadata:Ll.getMetadata(HE,t),userGeneratedMetadata:Ll.getMetadata(jE,t)||{}}}getPropertiesMetadata(t){throw new Error("暂未实现")}}const C3=n=>t=>{const e=i=>{if(i==null)return!1;if(i.key===n&&i.value===t)return!0;if(i.constructorArgsMetadata==null)return!1;const s=i.constructorArgsMetadata;for(let r=0;re.container.get(t))}}class R3{constructor(t){const e=t||{};e.defaultScope=e.defaultScope||To.Transient,this.options=e,this.id=Ye.GenAutoIncrementId(),this._bindingDictionary=new Map,this._metadataReader=new w3}load(t){const e=this._getContainerModuleHelpersFactory()(t.id);t.registry(e.bindFunction,e.unbindFunction,e.isboundFunction,e.rebindFunction)}get(t){const e=this._getNotAllArgs(t,!1);return this._get(e)}getAll(t){const e=this._getAllArgs(t);return this._get(e)}getTagged(t,e,i){const s=this._getNotAllArgs(t,!1,e,i);return this._get(s)}getNamed(t,e){return this.getTagged(t,H_,e)}isBound(t){return this._bindingDictionary.has(t)}bind(t){const e=this.options.defaultScope,i=new lx(t,e),s=this._bindingDictionary.get(t)||[];return s.push(i),this._bindingDictionary.set(t,s),new E3(i)}unbind(t){this._bindingDictionary.delete(t)}rebind(t){return this.unbind(t),this.bind(t)}_getContainerModuleHelpersFactory(){const t=(a,o)=>{a._binding.moduleId=o},e=a=>o=>{const l=this.bind(o);return t(l,a),l},i=()=>a=>this.unbind(a),s=()=>a=>this.isBound(a),r=a=>o=>{const l=this.rebind(o);return t(l,a),l};return a=>({bindFunction:e(a),isboundFunction:s(),rebindFunction:r(a),unbindFunction:i(),unbindAsyncFunction:o=>null})}_getNotAllArgs(t,e,i,s){return{avoidConstraints:!1,isMultiInject:e,serviceIdentifier:t,key:i,value:s}}_getAllArgs(t){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:t}}_get(t){const e=[];return this._bindingDictionary.get(t.serviceIdentifier).filter(i=>i.constraint(t)).forEach(i=>{e.push(this._resolveFromBinding(i))}),t.isMultiInject||e.length!==1?e:e[0]}_getChildRequest(t){const e=t.implementationType,{userGeneratedMetadata:i}=this._metadataReader.getConstructorMetadata(e),s=Object.keys(i),r=[];for(let a=0;a{l[p.key]=p.value});const h={inject:l[FE],multiInject:l[zE]},d=h.inject||h.multiInject,c={serviceIdentifier:d,constructorArgsMetadata:o},u={injectIdentifier:d,metadata:o,bindings:this._bindingDictionary.get(d).filter(p=>p.constraint(c))};r.push(u)}return r}_resolveFromBinding(t){const e=this._getResolvedFromBinding(t);return this._saveToScope(t,e),e}_getResolvedFromBinding(t){let e;switch(t.type){case Qr.ConstantValue:case Qr.Function:e=t.cache;break;case Qr.Instance:e=this._resolveInstance(t,t.implementationType);break;default:e=t.dynamicValue({container:this})}return e}_resolveInstance(t,e){if(t.activated)return t.cache;const i=this._getChildRequest(t);return this._createInstance(e,i)}_createInstance(t,e){return e.length?new t(...this._resolveRequests(e)):new t}_resolveRequests(t){return t.map(e=>e.bindings.length>1?e.bindings.map(i=>this._resolveFromBinding(i)):this._resolveFromBinding(e.bindings[0]))}_saveToScope(t,e){t.scope===To.Singleton&&(t.cache=e,t.activated=!0)}}const ni=Symbol("ContributionProvider");class GE{constructor(t,e){this.serviceIdentifier=t,this.container=e}getContributions(){return this.caches||(this.caches=[],this.container&&this.container.isBound(this.serviceIdentifier)&&this.caches.push(...this.container.getAll(this.serviceIdentifier))),this.caches}}function Ri(n,t){n(ni).toDynamicValue(({container:e})=>new GE(t,e)).inSingletonScope().whenTargetNamed(t)}function B3(n,t){n(ni).toDynamicValue(({container:e})=>new GE(t,e)).whenTargetNamed(t)}class I3{constructor(t,e){this._args=t,this.name=e,this.taps=[]}tap(t,e){this._tap("sync",t,e)}unTap(t,e){const i=typeof t=="string"?t.trim():t.name;i&&(this.taps=this.taps.filter(s=>!(s.name===i&&(!e||s.fn===e))))}_parseOptions(t,e,i){let s;if(typeof e=="string")s={name:e.trim()};else if(typeof e!="object"||e===null)throw new Error("Invalid tap options");if(typeof s.name!="string"||s.name==="")throw new Error("Missing name for tap");return s=Object.assign({type:t,fn:i},s),s}_tap(t,e,i){this._insert(this._parseOptions(t,e,i))}_insert(t){let e;typeof t.before=="string"?e=new Set([t.before]):Array.isArray(t.before)&&(e=new Set(t.before));let i=0;typeof t.stage=="number"&&(i=t.stage);let s=this.taps.length;for(;s>0;){s--;const r=this.taps[s];this.taps[s+1]=r;const a=r.stage||0;if(e){if(e.has(r.name)){e.delete(r.name);continue}if(e.size>0)continue}if(!(a>i)){s++;break}}this.taps[s]=t}}class In extends I3{call(...t){this.taps.map(e=>e.fn).forEach(e=>e(...t))}}const V_=Symbol.for("EnvContribution"),hx=Symbol.for("VGlobal");var O3=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},L3=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},Z1=function(n,t){return function(e,i){t(e,i,n)}};let Vv=class{get env(){return this._env}get devicePixelRatio(){return this._env||this.setEnv("browser"),this.envContribution.getDevicePixelRatio()}get supportEvent(){return this._env||this.setEnv("browser"),this.envContribution.supportEvent}set supportEvent(n){this._env||this.setEnv("browser"),this.envContribution.supportEvent=n}get supportsTouchEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents}set supportsTouchEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsTouchEvents=n}get supportsPointerEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents}set supportsPointerEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsPointerEvents=n}get supportsMouseEvents(){return this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents}set supportsMouseEvents(n){this._env||this.setEnv("browser"),this.envContribution.supportsMouseEvents=n}get applyStyles(){return this._env||this.setEnv("browser"),this.envContribution.applyStyles}set applyStyles(n){this._env||this.setEnv("browser"),this.envContribution.applyStyles=n}constructor(n){this.contributions=n,this.id=Ye.GenAutoIncrementId(),this.hooks={onSetEnv:new In(["lastEnv","env","global"])},this.measureTextMethod="native",this.optimizeVisible=!1}bindContribution(n){const t=[];if(this.contributions.getContributions().forEach(e=>{const i=e.configure(this,n);i&&i.then&&t.push(i)}),t.length)return Promise.all(t)}getDynamicCanvasCount(){return this._env||this.setEnv("browser"),this.envContribution.getDynamicCanvasCount()}getStaticCanvasCount(){return this._env||this.setEnv("browser"),this.envContribution.getStaticCanvasCount()}setEnv(n,t){if(t&&t.force===!0||this._env!==n)return this.deactiveCurrentEnv(),this.activeEnv(n,t)}deactiveCurrentEnv(){this.envContribution&&this.envContribution.release()}activeEnv(n,t){const e=this._env;this._env=n;const i=this.bindContribution(t);if(i&&i.then)return i.then(()=>{this.envParams=t,this.hooks.onSetEnv.call(e,n,this)});this.envParams=t,this.hooks.onSetEnv.call(e,n,this)}setActiveEnvContribution(n){this.envContribution=n}createCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.createCanvas(n)}createOffscreenCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.createOffscreenCanvas(n)}releaseCanvas(n){return this._env||this.setEnv("browser"),this.envContribution.releaseCanvas(n)}addEventListener(n,t,e){return this._env||this.setEnv("browser"),this.envContribution.addEventListener(n,t,e)}removeEventListener(n,t,e){return this._env||this.setEnv("browser"),this.envContribution.removeEventListener(n,t,e)}dispatchEvent(n){return this._env||this.setEnv("browser"),this.envContribution.dispatchEvent(n)}getRequestAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getRequestAnimationFrame()}getCancelAnimationFrame(){return this._env||this.setEnv("browser"),this.envContribution.getCancelAnimationFrame()}getElementById(n){return this._env||this.setEnv("browser"),this.envContribution.getElementById?this.envContribution.getElementById(n):null}getRootElement(){return this._env||this.setEnv("browser"),this.envContribution.getRootElement?this.envContribution.getRootElement():null}getDocument(){return this._env||this.setEnv("browser"),this.envContribution.getDocument?this.envContribution.getDocument():null}mapToCanvasPoint(n,t){return this._env||this.setEnv("browser"),this.envContribution.mapToCanvasPoint?this.envContribution.mapToCanvasPoint(n,t):null}loadImage(n){return this._env||this.setEnv("browser"),this.envContribution.loadImage(n)}loadSvg(n){return this._env||this.setEnv("browser"),this.envContribution.loadSvg(n)}loadJson(n){return this._env||this.setEnv("browser"),this.envContribution.loadJson(n)}loadArrayBuffer(n){return this._env||this.setEnv("browser"),this.envContribution.loadArrayBuffer(n)}loadBlob(n){return this._env||this.setEnv("browser"),this.envContribution.loadBlob(n)}isChrome(){return this._isChrome!=null||(this._env||this.setEnv("browser"),this._isChrome=this._env==="browser"&&navigator.userAgent.indexOf("Chrome")>-1),this._isChrome}isSafari(){return this._isSafari!=null||(this._env||this.setEnv("browser"),this._isSafari=this._env==="browser"&&/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)),this._isSafari}getNativeAABBBounds(n){return this._env||this.setEnv("browser"),this.envContribution.getNativeAABBBounds(n)}removeDom(n){return this._env||this.setEnv("browser"),this.envContribution.removeDom(n)}createDom(n){return this._env||this.setEnv("browser"),this.envContribution.createDom(n)}updateDom(n,t){return this._env||this.setEnv("browser"),this.envContribution.updateDom(n,t)}getElementTop(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTop(n,t)}getElementLeft(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementLeft(n,t)}getElementTopLeft(n,t=!1){return this._env||this.setEnv("browser"),this.envContribution.getElementTopLeft(n,t)}};Vv=O3([gt(),Z1(0,It(ni)),Z1(0,_i(V_)),L3("design:paramtypes",[Object])],Vv);const D3=li-1e-8;class UE{constructor(t){this.init(t)}init(t){this.bounds=t}arc(t,e,i,s,r,a){if(Math.abs(r-s)>D3)return this.bounds.add(t-i,e-i),void this.bounds.add(t+i,e+i);let o,l,h,d,c=1/0,u=-1/0,p=1/0,g=-1/0;function f(_){h=i*Math.cos(_),d=i*Math.sin(_),hu&&(u=h),dg&&(g=d)}if(f(s),f(r),r!==s)if((s%=li)<0&&(s+=li),(r%=li)<0&&(r+=li),rr;++l,o-=Yn)f(o);else for(o=s-s%Yn+Yn,l=0;l<4&&ot.getLength())}getPointAt(t){return{x:0,y:0}}getLength(){return 0}getBounds(){return this.bounds}}const z3=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,j3={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7},Ot={A:0,AT:1,C:2,Z:3,E:4,L:5,M:6,Q:7,R:8};let T0,J1,ip,Q1,M0,np;function H3(n){if(!n)return[];const t=n.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);if(t===null)return[];let e,i;const s=[];for(let r=0,a=t.length;rnp){let o;for(let l=1,h=e.length;l1&&(g=Math.sqrt(g),e*=g,i*=g);const f=c/e,_=d/e,m=-d/i,y=c/i,b=f*o+_*l,v=m*o+y*l,x=f*n+_*t,S=m*n+y*t;let k=1/((x-b)*(x-b)+(S-v)*(S-v))-.25;k<0&&(k=0);let A=Math.sqrt(k);r===s&&(A=-A);const T=.5*(b+x)-A*(S-v),M=.5*(v+S)+A*(x-b),w=Math.atan2(v-M,b-T);let E=Math.atan2(S-M,x-T)-w;E<0&&r===1?E+=li:E>0&&r===0&&(E-=li);const R=Math.ceil(Math.abs(E/(Yn+.001))),O=[];for(let B=0;B{const o=Math.abs(e-t),l=4*Math.tan(o/4)/3,h=et.arc(n[1]*s+e,n[2]*r+i,n[3]*(s+r)/2,n[4],n[5],n[6],a),(n,t,e,i,s,r,a)=>t.arcTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,n[5]*(s+r)/2,a),(n,t,e,i,s,r,a)=>t.bezierCurveTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,n[5]*s+e,n[6]*r+i,a),(n,t,e,i)=>t.closePath(),(n,t,e,i,s,r)=>t.ellipse(n[1]*s+e,n[2]*r+i,n[3]*s,n[4]*r,n[5],n[6],n[7],n[8]),(n,t,e,i,s,r,a)=>t.lineTo(n[1]*s+e,n[2]*r+i,a),(n,t,e,i,s,r,a)=>t.moveTo(n[1]*s+e,n[2]*r+i,a),(n,t,e,i,s,r,a)=>t.quadraticCurveTo(n[1]*s+e,n[2]*r+i,n[3]*s+e,n[4]*r+i,a),(n,t,e,i,s,r,a)=>t.rect(n[1]*s+e,n[2]*r+i,n[3]*s,n[4]*r,a)];function fr(n,t,e=0,i=0,s=1,r=1,a){for(let o=0;os+r.getLength(),0)),this.length}}class $3 extends dx{bezierCurveTo(t,e,i,s,r,a,o,l){return super.bezierCurveTo(e,t,s,i,a,r,o,l)}lineTo(t,e,i,s){return super.lineTo(e,t,i,s)}moveTo(t,e,i){return super.moveTo(e,t,i)}clear(){return super.clear()}}function Uo(n,t,e=1){let i=!1;for(let s=0,r=t.length;s<=r;s++)s>=r===i&&((i=!i)?n.lineStart():n.lineEnd()),i&&n.point(t[s])}function Mh(n,t,e){const i=t??(Gt(e[e.length-1].x-e[0].x)>Gt(e[e.length-1].y-e[0].y)?de.ROW:de.COLUMN);return n==="monotoneY"?new $3(n,i):new dx(n,i)}class XE{constructor(t,e){this.context=t,e&&(this.startPoint=e)}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;default:this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t)}this._lastDefined=t.defined}tryUpdateLength(){return this.context.tryUpdateLength()}}function wh(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;const s=Mh("linear",e,n);return Y3(new XE(s,i),n),s}function Y3(n,t){return Uo(n,t,1)}function nA(n,t,e,i,s){n.context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+e)/6,i,n.lastPoint1)}class X3{constructor(t,e){this.context=t,this.startPoint=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){this._point===2&&nA(this,6*this._x1-(this._x0+4*this._x1),6*this._y1-(this._y0+4*this._y1),this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1),(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;break;default:nA(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}function K3(n,t){return Uo(n,t,2)}function KE(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return wh(n,t);const s=Mh("basis",e,n);return K3(new X3(s,i),n),s}function sA(n){return n<0?-1:1}function rA(n,t,e){const i=n._x1-n._x0,s=t-n._x1,r=(n._y1-n._y0)/(i||Number(s<0&&-0)),a=(e-n._y1)/(s||Number(i<0&&-0)),o=(r*s+a*i)/(i+s);return(sA(r)+sA(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(o))||0}function aA(n,t){const e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-t)/2:t}function w0(n,t,e,i,s){const r=n._x0,a=n._y0,o=n._x1,l=n._y1,h=(o-r)/3;n.context.bezierCurveTo(r+h,a+h*t,o-h,l-h*e,o,l,i,n.lastPoint1)}class qE{constructor(t,e){this.context=t,this.startPoint=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x1,this._y1,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1);break;case 3:w0(this,this._t0,aA(this,this._t0),this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1)}(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){let e=NaN;const i=t.x,s=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(i,s,this._lastDefined1!==!1&&this._lastDefined2!==!1,t):this.context.moveTo(i,s,t);break;case 1:this._point=2;break;case 2:this._point=3,w0(this,aA(this,e=rA(this,i,s)),e,this._lastDefined1!==!1&&this._lastDefined2!==!1);break;default:w0(this,this._t0,e=rA(this,i,s),this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=s,this._t0=e,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined!==!1,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}class q3 extends qE{constructor(t,e){super(t,e)}point(t){return super.point({y:t.x,x:t.y,defined:t.defined})}}function Z3(n,t){return Uo(n,t,2)}function ZE(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return wh(n,t);const s=Mh("monotoneX",e,n);return Z3(new qE(s,i),n),s}function J3(n,t){return Uo(n,t,2)}function JE(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;if(n.length<3-+!!i)return wh(n,t);const s=Mh("monotoneY",e,n);return J3(new q3(s,i),n),s}let Q3=class{constructor(t,e=.5,i){this.context=t,this._t=e,this.startPoint=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x=this._y=NaN,this._point=0,this.startPoint&&this.point(this.startPoint)}lineEnd(){0=0&&(this._t=1-this._t,this._line=1-this._line)}point(t){const e=t.x,i=t.y;switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t):this.context.moveTo(e,i,t);break;case 1:this._point=2;default:if(this._t<=0)this.context.lineTo(this._x,i,this._lastDefined!==!1&&t.defined!==!1,this.lastPoint),this.context.lineTo(e,i,this._lastDefined!==!1&&t.defined!==!1,t);else{const s=this._x*(1-this._t)+e*this._t;this.context.lineTo(s,this._y,this._lastDefined!==!1&&t.defined!==!1,this.lastPoint),this.context.lineTo(s,i,this._lastDefined!==!1&&t.defined!==!1,t)}}this._lastDefined=t.defined,this._x=e,this._y=i,this.lastPoint=t}tryUpdateLength(){return this.context.tryUpdateLength()}};function Dl(n,t,e={}){const{direction:i,startPoint:s}=e;if(n.length<2-+!!s)return null;const r=new dx("step",i??(Gt(n[n.length-1].x-n[0].x)>Gt(n[n.length-1].y-n[0].y)?de.ROW:de.COLUMN));return tj(new Q3(r,t,s),n),r}function tj(n,t){return Uo(n,t,1)}class ej extends XE{lineEnd(){this.context.closePath()}}function QE(n,t={}){const{direction:e,startPoint:i}=t;if(n.length<2-+!!i)return null;const s=Mh("linear",e,n);return ij(new ej(s,i),n),s}function ij(n,t){return Uo(n,t,1)}function tR(n,t,e,i,s){let r=n._x1,a=n._y1,o=n._x2,l=n._y2;if(n._l01_a>$t){const h=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,d=3*n._l01_a*(n._l01_a+n._l12_a);r=(r*h-n._x0*n._l12_2a+n._x2*n._l01_2a)/d,a=(a*h-n._y0*n._l12_2a+n._y2*n._l01_2a)/d}if(n._l23_a>$t){const h=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,d=3*n._l23_a*(n._l23_a+n._l12_a);o=(o*h+n._x1*n._l23_2a-t*n._l12_2a)/d,l=(l*h+n._y1*n._l23_2a-e*n._l12_2a)/d}n.context.bezierCurveTo(r,a,o,l,n._x2,n._y2,i,n.lastPoint1)}class nj{constructor(t,e=.5,i){this.context=t,this.startPoint=i,this._alpha=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 2:this.context.lineTo(this._x2,this._y2,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1);break;case 3:this.point({x:this._x2,y:this._y2})}(this._line||this._line!==0&&this._point===1)&&this.context.closePath(),this._line=1-this._line}point(t){const{x:e,y:i}=t;if(this._point){const s=this._x2-e,r=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this.context.lineTo(e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1):this.context.moveTo(e,i);break;case 1:this._point=2;break;case 2:this._point=3;default:tR(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}function eR(n,t){return function(e,i,s={}){const{direction:r,startPoint:a}=s;if(e.length<2-+!!a)return null;if(e.length<3-+!!a)return wh(e,s);const o=Mh(n,r,e),l=new t(o,i,a);return Uo(l,e,2),o}}const iR=eR("catmullRom",nj);class sj{constructor(t,e=.5,i){this.context=t,this.startPoint=i,this._alpha=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0}lineEnd(){switch(this._point){case 1:this.context.moveTo(this._x3,this._y3,this.lastPoint1),this.context.closePath();break;case 2:this.context.lineTo(this._x3,this._y3,this._lastDefined1!==!1&&this._lastDefined2!==!1,this.lastPoint1),this.context.closePath();break;case 3:this.point({x:this._x3,y:this._y3}),this.point({x:this._x4,y:this._y4}),this.point({x:this._x5,y:this._y5})}}point(t){const{x:e,y:i}=t;if(this._point){const s=this._x2-e,r=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=i;break;case 1:this._point=2,this.context.moveTo(this._x4=e,this._y4=i,t);break;case 2:this._point=3,this._x5=e,this._y5=i;break;default:tR(this,e,i,this._lastDefined1!==!1&&this._lastDefined2!==!1)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=i,this._lastDefined1=this._lastDefined2,this._lastDefined2=t.defined,this.lastPoint0=this.lastPoint1,this.lastPoint1=t}tryUpdateLength(){return this.context.tryUpdateLength()}}const nR=eR("catmullRomClosed",sj);function Uv(n,t,e){var i,s;switch(t){case"linear":default:return wh(n,e);case"basis":return KE(n,e);case"monotoneX":return ZE(n,e);case"monotoneY":return JE(n,e);case"step":return Dl(n,.5,e);case"stepBefore":return Dl(n,0,e);case"stepAfter":return Dl(n,1,e);case"catmullRom":return iR(n,(i=e==null?void 0:e.curveTension)!==null&&i!==void 0?i:.5,e);case"catmullRomClosed":return nR(n,(s=e==null?void 0:e.curveTension)!==null&&s!==void 0?s:.5,e);case"linearClosed":return QE(n,e)}}class Pe extends F3{constructor(t){super(),this.commandList=[],t&&(this._ctx=t),this._boundsContext=new UE(this.bounds)}setCtx(t){this._ctx=t}moveTo(t,e){return this.commandList.push([Ot.M,t,e]),this._ctx&&this._ctx.moveTo(t,e),this}lineTo(t,e){return this.commandList.push([Ot.L,t,e]),this._ctx&&this._ctx.lineTo(t,e),this}quadraticCurveTo(t,e,i,s){return this.commandList.push([Ot.Q,t,e,i,s]),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,s),this}bezierCurveTo(t,e,i,s,r,a){return this.commandList.push([Ot.C,t,e,i,s,r,a]),this._ctx&&this._ctx.bezierCurveTo(t,e,i,s,r,a),this}arcTo(t,e,i,s,r){return this.commandList.push([Ot.AT,t,e,i,s,r]),this._ctx&&this._ctx.arcTo(t,e,i,s,r),this}ellipse(t,e,i,s,r,a,o,l){return this.commandList.push([Ot.E,t,e,i,s,r,a,o,l]),this._ctx&&this._ctx.ellipse(t,e,i,s,r,a,o,l),this}rect(t,e,i,s){return this.commandList.push([Ot.R,t,e,i,s]),this._ctx&&this._ctx.rect(t,e,i,s),this}arc(t,e,i,s,r,a){return this.commandList.push([Ot.A,t,e,i,s,r,a]),this._ctx&&this._ctx.arc(t,e,i,s,r,a),this}closePath(){return this.commandList.push([Ot.Z]),this._ctx&&this._ctx.closePath(),this}addCurve(t){this.curves.push(t)}clear(){this.transformCbList=null,this.commandList.length=0,this.curves.length=0}beginPath(){this.clear()}toString(){if(!this.toStringCbList){const i=[];i[Ot.M]=s=>`M${s[1]} ${s[2]}`,i[Ot.L]=s=>`L${s[1]} ${s[2]}`,i[Ot.Q]=s=>`Q${s[1]} ${s[2]} ${s[3]} ${s[4]}`,i[Ot.C]=s=>`C${s[1]} ${s[2]} ${s[3]} ${s[4]} ${s[5]} ${s[6]}`,i[Ot.A]=s=>{const r=[];Lp(r,s[4],s[5],s[1],s[2],s[3],s[3]);let a="";for(let o=0;o`M${s[1]} ${s[2]} h${s[3]} v${s[4]} H${s[1]}Z`,i[Ot.Z]=s=>"Z",this.toStringCbList=i}const t=this.toStringCbList;let e="";return this.commandList.forEach(i=>{e+=t[i[0]](i)}),e}fromString(t,e,i,s,r){this.clear();const a=H3(t);return this._runCommandStrList(a,e,i,s,r),this._updateBounds(),this}fromLine(t){const{points:e,curveType:i,clipRangeByDimension:s}=t.attribute;if(!e)return;const r=Uv(e,i);s==="x"?this.direction=de.ROW:s==="y"?this.direction=de.COLUMN:s==="auto"&&(this.direction=r.direction),this.curves=r.curves}fromCustomPath2D(t,e,i,s,r){return this.clear(),this._runCommandList(t.commandList,e,i,s,r),this._updateBounds(),this}transform(t,e,i,s){const r=this.commandList;if(!this.transformCbList){const a=[];a[Ot.M]=this.moveToTransform,a[Ot.L]=this.lineToTransform,a[Ot.Q]=this.quadraticCurveToTransform,a[Ot.C]=this.bezierCurveToTransform,a[Ot.AT]=this.arcToTransform,a[Ot.E]=this.ellipseTransform,a[Ot.R]=this.rectTransform,a[Ot.A]=this.arcTransform,a[Ot.Z]=this.closePathTransform,this.transformCbList=a}r.forEach(a=>{this.transformCbList[a[0]](a,t,e,i,s)}),this._updateBounds()}moveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i}lineToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i}quadraticCurveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i}bezierCurveToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i,t[5]=t[5]*s+e,t[6]=t[6]*r+i}arcToTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s+e,t[4]=t[4]*r+i,t[5]=t[5]*(s+r)/2}ellipseTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s,t[4]=t[4]*r}rectTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*s,t[4]=t[4]*r}arcTransform(t,e,i,s,r){t[1]=t[1]*s+e,t[2]=t[2]*r+i,t[3]=t[3]*(s+r)/2}closePathTransform(){}_runCommandStrList(t,e=0,i=0,s=1,r=1){let a,o,l,h,d,c=null,u=0,p=0,g=0,f=0;for(let _=0,m=t.length;_a.slice())}_updateBounds(){this.bounds.clear(),fr(this.commandList,this._boundsContext)}release(){this.commandList=[],this._boundsContext=null,this._ctx=null}getLength(){if(this.direction===de.COLUMN){if(!this.curves.length)return 0;const t=this.curves[0],e=this.curves[this.curves.length-1];return Gt(t.p0.y-e.p1.y)}if(this.direction===de.ROW){if(!this.curves.length)return 0;const t=this.curves[0],e=this.curves[this.curves.length-1];return Gt(t.p0.x-e.p1.x)}return this.curves.reduce((t,e)=>t+e.getLength(),0)}getAttrAt(t){if(!this.curves)return{pos:{x:0,y:0},angle:0};let e,i=0;for(let r=0;r=t)break;i+=a}const s=(t-i)/e.getLength(this.direction);return{pos:e.getPointAt(s),angle:e.getAngleAt(s)}}}const Vn=["l",0,0,0,0,0,0,0];function rj(n,t,e){const i=Vn[0]=n[0];if(i==="a"||i==="A")Vn[1]=t*n[1],Vn[2]=e*n[2],Vn[3]=n[3],Vn[4]=n[4],Vn[5]=n[5],Vn[6]=t*n[6],Vn[7]=e*n[7];else if(i==="h"||i==="H")Vn[1]=t*n[1];else if(i==="v"||i==="V")Vn[1]=e*n[1];else for(let s=1,r=n.length;s{Lt.getInstance().warn("空函数")}}),mj=Object.assign(Object.assign({},Be),{points:[],cornerRadius:0,closePath:!0}),vj=Object.assign(Object.assign({},Be),{width:0,height:0,x1:0,y1:0,strokeBoundsBuffer:0,cornerRadius:0});Object.assign(Object.assign({},Be),{width:0,height:0,x1:0,y1:0,cornerRadius:0,length:0});const yj=Object.assign(Object.assign({},Be),{symbolType:"circle",size:10,keepDirIn3d:!0}),oR=Object.assign(Object.assign(Object.assign({},Be),Ns),{strokeBoundsBuffer:0,keepDirIn3d:!0}),Cs=Object.assign(Object.assign(Object.assign({},Be),Ns),{editable:!1,width:300,height:300,ellipsis:!0,wordBreak:"break-word",verticalDirection:"top",textAlign:"left",textBaseline:"top",layoutDirection:"horizontal",textConfig:[],disableAutoWrapLine:!1,maxHeight:void 0,maxWidth:void 0,singleLine:!1}),yc=Object.assign(Object.assign({repeatX:"no-repeat",repeatY:"no-repeat",image:"",width:0,height:0},Be),{fill:!0,cornerRadius:0}),bj=Object.assign(Object.assign({},yc),{backgroundShowMode:"never",backgroundWidth:0,backgroundHeight:0,textAlign:"left",textBaseline:"middle",direction:"horizontal",margin:0,id:"",width:20,height:20,backgroundFill:"rgba(101, 117, 168, 0.1)",backgroundFillOpacity:1,backgroundStroke:!1,backgroundStrokeOpacity:1,backgroundRadius:4,opacity:1});class xj{}const Q=new xj,cx={horizontal:{width:"width",height:"height",left:"left",top:"top",x:"x",y:"y",bottom:"bottom"},vertical:{width:"height",height:"width",left:"top",top:"left",x:"y",y:"x",bottom:"right"}},lR={fontSize:16,fontFamily:"sans-serif",fill:!0,stroke:!1,fontWeight:"normal",lineHeight:"normal",fontStyle:"normal",textDecoration:"none",textAlign:"left",script:"normal"},oA=/\w|\(|\)|-/,Sj=/[.?!,;:/,。?!、;:]/,Aj=/\S/;function kj(n,t){const e=t&&t.fill||lR.fill;if(!e)return void(n.globalAlpha=0);const{fillOpacity:i=1,opacity:s=1}=t;n.globalAlpha=i*s,n.fillStyle=e;let r=t.fontSize||16;switch(t.script){case"super":case"sub":r*=.8}n.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:r,fontFamily:t.fontFamily||"sans-serif"})}function Tj(n,t){const e=t&&t.stroke||lR.stroke;if(!e)return void(n.globalAlpha=0);const{strokeOpacity:i=1,opacity:s=1}=t;n.globalAlpha=i*s,n.lineWidth=t&&typeof t.lineWidth=="number"?t.lineWidth:1,n.strokeStyle=e;let r=t.fontSize||16;switch(t.script){case"super":case"sub":r*=.8}n.setTextStyle({textAlign:"left",textBaseline:t.textBaseline||"alphabetic",fontStyle:t.fontStyle||"",fontWeight:t.fontWeight||"",fontSize:r,fontFamily:t.fontFamily||"sans-serif"})}function $v(n,t,e,i,s){if(!t||t<=0)return 0;const r=Q.graphicUtil.textMeasure;let a=i,o=n.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=n.slice(0,a+1),d=Math.floor(r.measureText(h,e).width);for(;l>t||d<=t;){if(l>t?a--:a++,a>n.length){a=n.length;break}if(a<0){a=0;break}o=n.slice(0,a),l=Math.floor(r.measureText(o,e).width),h=n.slice(0,a+1),d=Math.floor(r.measureText(h,e).width)}return s&&(a=Dp(n,a)),a}function Dp(n,t){let e=t;for(;oA.test(n[e-1])&&oA.test(n[e])||Sj.test(n[e]);)if(e--,e<=0)return t;return e}function xl(n,t){const e=Q.graphicUtil.textMeasure.measureText(n,t),i={ascent:0,height:0,descent:0,width:0};return typeof e.actualBoundingBoxAscent!="number"||typeof e.actualBoundingBoxDescent!="number"?(i.width=Math.floor(e.width),i.height=t.fontSize||0,i.ascent=i.height,i.descent=0):(i.width=Math.floor(e.width),i.height=Math.floor(e.actualBoundingBoxAscent+e.actualBoundingBoxDescent),i.ascent=Math.floor(e.actualBoundingBoxAscent),i.descent=i.height-i.ascent),i}var Mj=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Yv=class{configure(n,t){this.canvas=n.canvas,this.context=n.context,n.bindTextMeasure(this)}measureTextWidth(n,t){return this.context?(this.context.setTextStyleWithoutAlignBaseline(t),this.context.measureText(n).width):this.estimate(n,t).width}estimate(n,{fontSize:t=oR.fontSize}){let e=0,i=0;for(let s=0;s{l.width=l.direction===0?s:this.measureTextWidth(l.text,t)});const r=[];let a=0,o=0;for(;o1){const l=this._clipText(n[o].text,t,e-a,0,n[o].text.length-1,"end",!1);if(i&&l.str!==n[o].text){let h="",d=0;for(let p=0;pe)return{str:"",width:0};const r=this._clipText(n,t,e,0,n.length-1,"end",!1);if(i&&r.str!==n){const a=Dp(n,r.str.length);a!==r.str.length&&(r.str=n.substring(0,a),r.width=this.measureTextWidth(r.str,t))}return r}_clipText(n,t,e,i,s,r,a){let o;if(r==="start")o=this._clipTextStart(n,t,e,i,s),a&&(o.result=a+o.str);else if(r==="middle"){const l=this._clipTextMiddle(n,t,e,"","",0,0,1);o={str:"none",width:l.width,result:l.left+a+l.right}}else o=this._clipTextEnd(n,t,e,i,s),a&&(o.result=o.str+a);return o}_clipTextEnd(n,t,e,i,s){const r=Math.floor((i+s)/2),a=n.substring(0,r+1),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=n.substring(0,r);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextEnd(n,t,e,i,r)}if(o=n.length-1)return{str:n,width:this.measureTextWidth(n,t)};const h=n.substring(0,r+2);return l=this.measureTextWidth(h,t),l>=e?{str:a,width:o}:this._clipTextEnd(n,t,e,r,s)}return{str:a,width:o}}_clipTextStart(n,t,e,i,s){const r=Math.ceil((i+s)/2),a=n.substring(r-1,n.length-1),o=this.measureTextWidth(a,t);let l;if(o>e){if(a.length<=1)return{str:"",width:0};const h=n.substring(r,n.length-1);return l=this.measureTextWidth(h,t),l<=e?{str:h,width:l}:this._clipTextStart(n,t,e,r,n.length-1)}if(o=e?{str:a,width:o}:this._clipTextStart(n,t,e,i,r)}return{str:a,width:o}}_clipTextMiddle(n,t,e,i,s,r,a,o){const l=n.substring(0,o),h=this.measureTextWidth(l,t);if(h+a>e)return{left:i,right:s,width:r+a};const d=n.substring(n.length-o,n.length),c=this.measureTextWidth(d,t);return h+c>e?{left:l,right:s,width:h+a}:this._clipTextMiddle(n,t,e,l,d,h,c,o+1)}clipTextWithSuffixVertical(n,t,e,i,s,r){if(i==="")return this.clipTextVertical(n,t,e,s);if(n.length===0)return{verticalList:n,width:0};const a=this.clipTextVertical(n,t,e,s);if(a.verticalList.length===n.length&&a.verticalList[a.verticalList.length-1].width===n[n.length-1].width)return a;const o=this.measureTextWidth(i,t);if(o>e)return a;let l;if(e-=o,r==="start"){const h=this.revertVerticalList(n);l=this.clipTextVertical(h,t,e,s);const d=this.revertVerticalList(l.verticalList);d.unshift({text:i,direction:1,width:o}),l.verticalList=d}else if(r==="middle"){const h=this.clipTextVertical(n,t,e/2,s),d=this.revertVerticalList(n),c=this.clipTextVertical(d,t,e/2,s);h.verticalList.push({text:i,direction:1,width:o}),this.revertVerticalList(c.verticalList).forEach(u=>h.verticalList.push(u)),l={verticalList:h.verticalList,width:h.width+c.width}}else l=this.clipTextVertical(n,t,e,s),l.verticalList.push({text:i,direction:1,width:o});return l.width+=o,l}revertVerticalList(n){return n.reverse().map(t=>{const e=t.text.split("").reverse().join("");return Object.assign(Object.assign({},t),{text:e})})}clipTextWithSuffix(n,t,e,i,s,r,a=!1){if(i==="")return this.clipText(n,t,e,s);if(n.length===0)return{str:"",width:0};const o=this.measureTextWidth(n,t);if(!a&&o<=e)return{str:n,width:o};const l=this.measureTextWidth(i,t);if(l>e)return{str:"",width:0};if(a&&o+l<=e)return{str:n+i,width:o+l};e-=l;const h=this._clipText(n,t,e,0,n.length-1,r,i);if(s&&h.str!==n){const d=Dp(n,h.str.length);d!==h.str.length&&(h.result=n.substring(0,d),h.width=this.measureTextWidth(h.str,t))}else a&&h.str===n&&(h.result=n+i);return h.str=h.result,h.width+=l,h}};Yv=Mj([gt()],Yv);var wj=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const Xv=Symbol.for("TextMeasureContribution");let Kv=class extends Yv{};Kv=wj([gt()],Kv);const Mt=new R3,hR=Symbol.for("CanvasFactory"),Cj=Symbol.for("Context2dFactory");function ug(n){return Mt.getNamed(hR,Q.global.env)(n)}class Pj{constructor(){this.pools=[],this.allocatedCanvas=[]}shareCanvas(){return this.allocatedCanvas.length?this.allocatedCanvas[0]:this.getCommonCanvas()}getCommonCanvas(){return this._commonCanvas||(this._commonCanvas=this.allocate({width:100,height:100,dpr:2})),this._commonCanvas}allocate(t){if(!this.pools.length){const i=ug(Object.assign({nativeCanvas:Q.global.createCanvas(t)},t));return this.allocatedCanvas.push(i),i}const e=this.pools.pop();return e.resize(t.width,t.height),e.dpr=t.dpr,e}allocateByObj(t){if(!this.pools.length){const i={width:t.width/t.dpr,height:t.height/t.dpr,dpr:t.dpr},s=ug(Object.assign({nativeCanvas:Q.global.createCanvas(i)},i));return this.allocatedCanvas.push(s),s}const e=this.pools.pop();return e.width=t.width,e.height=t.height,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}const eh=new Pj;var Ej=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},Rj=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const pg=Symbol.for("VWindow"),ux=Symbol.for("WindowHandlerContribution");let qv=class{get width(){if(this._handler){const n=this._handler.getWH();return this._width=n.width}return this._width}get height(){if(this._handler){const n=this._handler.getWH();return this._height=n.height}return this._height}get dpr(){return this._handler.getDpr()}constructor(){this.hooks={onChange:new In(["x","y","width","height"])},this.active=()=>{const n=this.global;!n.env||this.actived||(Mt.getNamed(ux,n.env).configure(this,n),this.actived=!0)},this._uid=Ye.GenAutoIncrementId(),this.global=Q.global,this.postInit()}postInit(){this.global.hooks.onSetEnv.tap("window",this.active),this.active()}get style(){var n;return(n=this._handler.getStyle())!==null&&n!==void 0?n:{}}set style(n){this._handler.setStyle(n)}create(n){var t,e;this._handler.createWindow(n);const i=this._handler.getWH();this._width=i.width,this._height=i.height,n.viewBox?this.setViewBox(n.viewBox):n.canvasControled!==!1?this.setViewBox({x1:0,y1:0,x2:this._width,y2:this._height}):this.setViewBox({x1:0,y1:0,x2:(t=n.width)!==null&&t!==void 0?t:this._width,y2:(e=n.height)!==null&&e!==void 0?e:this._height}),this.title=this._handler.getTitle(),this.resizable=!0}setWindowHandler(n){this._handler=n}setDpr(n){return this._handler.setDpr(n)}resize(n,t){return this._handler.resizeWindow(n,t)}configure(){throw new Error("暂不支持")}release(){return this.global.hooks.onSetEnv.unTap("window",this.active),this._handler.releaseWindow()}getContext(){return this._handler.getContext()}getNativeHandler(){return this._handler.getNativeHandler()}getImageBuffer(n){return this._handler.getImageBuffer?this._handler.getImageBuffer(n):null}addEventListener(n,t,e){return this._handler.addEventListener(n,t,e)}removeEventListener(n,t,e){return this._handler.removeEventListener(n,t,e)}dispatchEvent(n){return this._handler.dispatchEvent(n)}getBoundingClientRect(){return this._handler.getBoundingClientRect()}getContainer(){return this._handler.container}clearViewBox(n){this._handler.clearViewBox(n)}setViewBox(n){this._handler.setViewBox(n)}setViewBoxTransform(n,t,e,i,s,r){this._handler.setViewBoxTransform(n,t,e,i,s,r)}getViewBox(){return this._handler.getViewBox()}getViewBoxTransform(){return this._handler.getViewBoxTransform()}pointTransform(n,t){const e=this._handler.getViewBox(),i={x:n,y:t};return this._handler.getViewBoxTransform().transformPoint({x:n,y:t},i),i.x-=e.x1,i.y-=e.y1,i}hasSubView(){const n=this._handler.getViewBox();return!(n.x1===0&&n.y1===0&&this.width===n.width()&&this.height===n.height())}isVisible(n){return this._handler.isVisible(n)}onVisibleChange(n){return this._handler.onVisibleChange(n)}getTopLeft(n){return this._handler.getTopLeft(n)}};qv=Ej([gt(),Rj("design:paramtypes",[])],qv);var dR=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},cR=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},lA=function(n,t){return function(e,i){t(e,i,n)}};let Zv=class{get canvas(){return this.tryInitCanvas(),this._canvas}get context(){return this.tryInitCanvas(),this._context}constructor(n){this.contributions=n,this.configured=!1,this.global=Q.global,this.global.hooks.onSetEnv.tap("graphic-util",(t,e,i)=>{this.configured=!1,this.configure(i,e)})}get textMeasure(){return this._textMeasure||this.configure(this.global,this.global.env),this._textMeasure}configure(n,t){this.configured||(this.contributions.getContributions().forEach(e=>{e.configure(this,t)}),this.configured=!0)}tryInitCanvas(){if(!this._canvas){const n=eh.shareCanvas();this._canvas=n,this._context=n.getContext("2d")}}bindTextMeasure(n){this._textMeasure=n}measureText(n,t,e="native"){var i;this.configure(this.global,this.global.env);const s=this.global.measureTextMethod;this.global.measureTextMethod=e;const r={width:this._textMeasure.measureTextWidth(n,t),height:(i=t.fontSize)!==null&&i!==void 0?i:Ns.fontSize};return this.global.measureTextMethod=s,r}createTextMeasureInstance(n,t,e){return this.configure(this.global,this.global.env),new Yi(Object.assign({defaultFontParams:{fontFamily:Ns.fontFamily,fontSize:Ns.fontSize},getCanvasForMeasure:e||(()=>this.canvas),getTextBounds:void 0,specialCharSet:`-/: .,@%'"~`+Yi.ALPHABET_CHAR_SET+Yi.ALPHABET_CHAR_SET.toUpperCase()},t??{}),n)}drawGraphicToCanvas(n,t,e){if(!t.defaultLayer)return null;const i=Mt.get(pg),s=n.AABBBounds,r=s.width(),a=s.height(),o=-s.x1,l=-s.y1;i.create({viewBox:{x1:o,y1:l,x2:s.x2,y2:s.y2},width:r,height:a,canvas:e,dpr:t.window.dpr,canvasControled:!0,offscreen:!0,title:""});const h=t.params.optimize.disableCheckGraphicWidthOutRange;t.params.optimize.disableCheckGraphicWidthOutRange=!0,t.defaultLayer.getNativeHandler().drawTo(i,[n],{transMatrix:i.getViewBoxTransform(),viewBox:i.getViewBox(),stage:t,layer:t.defaultLayer,renderService:t.renderService,background:"transparent",clear:!0,updateBounds:!1}),t.params.optimize.disableCheckGraphicWidthOutRange=h;const d=i.getNativeHandler();return d.nativeCanvas?d.nativeCanvas:null}};Zv=dR([gt(),lA(0,It(ni)),lA(0,_i(Xv)),cR("design:paramtypes",[Object])],Zv);var Yr;(function(n){n[n.transform=0]="transform",n[n.matrix=1]="matrix"})(Yr||(Yr={}));const ii=new Re;let Jv=class{constructor(){this.matrix=new Re}init(n){return this.mode=Yr.transform,this.originTransform=n,this.matrix.reset(),this}fromMatrix(n,t){return this.mode=Yr.matrix,this.outSourceMatrix=n,this.outTargetMatrix=t,this}scaleMatrix(n,t,e){const i=this.outSourceMatrix;if(ii.setValue(i.a,i.b,i.c,i.d,i.e,i.f),this.outTargetMatrix.reset(),e){const{x:s,y:r}=e;this.outTargetMatrix.translate(s,r),this.outTargetMatrix.scale(n,t),this.outTargetMatrix.translate(-s,-r)}else this.outTargetMatrix.scale(n,t);return this.outTargetMatrix.multiply(ii.a,ii.b,ii.c,ii.d,ii.e,ii.f),this}rotateMatrix(n,t){const e=this.outSourceMatrix;if(ii.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),t){const{x:i,y:s}=t;this.outTargetMatrix.translate(i,s),this.outTargetMatrix.rotate(n),this.outTargetMatrix.translate(-i,-s)}else this.outTargetMatrix.rotate(n);return this.outTargetMatrix.multiply(ii.a,ii.b,ii.c,ii.d,ii.e,ii.f),this}scale(n,t,e){return this.mode===Yr.matrix?this.scaleMatrix(n,t,e):this}rotate(n,t){return this.mode===Yr.matrix?this.rotateMatrix(n,t):this}translateMatrix(n,t){const e=this.outSourceMatrix;return ii.setValue(e.a,e.b,e.c,e.d,e.e,e.f),this.outTargetMatrix.reset(),this.outTargetMatrix.translate(n,t),this.outTargetMatrix.multiply(ii.a,ii.b,ii.c,ii.d,ii.e,ii.f),this}translate(n,t){return this.mode===Yr.matrix?this.translateMatrix(n,t):this}simplify(n){return this.mode===Yr.matrix?this.simplifyMatrix(n):this}simplifyMatrix(n){return this}};Jv=dR([gt(),cR("design:paramtypes",[])],Jv);const tn={arc:dj,area:cj,circle:uj,line:fj,path:_j,symbol:yj,text:oR,rect:vj,polygon:mj,richtext:Cs,richtextIcon:bj,image:yc,group:pj,glyph:gj},P0=Object.keys(tn);function Bj(){return{arc:Object.assign({},tn.arc),area:Object.assign({},tn.area),circle:Object.assign({},tn.circle),line:Object.assign({},tn.line),path:Object.assign({},tn.path),symbol:Object.assign({},tn.symbol),text:Object.assign({},tn.text),rect:Object.assign({},tn.rect),polygon:Object.assign({},tn.polygon),richtext:Object.assign({},tn.richtext),richtextIcon:Object.assign({},tn.richtextIcon),image:Object.assign({},tn.image),group:Object.assign({},tn.group),glyph:Object.assign({},tn.glyph)}}function sp(n,t){Object.keys(t).forEach(e=>{n[e]=t[e]})}const hA=Bj();class bc{constructor(){this.initTheme(),this.dirty=!1}initTheme(){this._defaultTheme={},P0.forEach(t=>{this._defaultTheme[t]=Object.create(hA[t])}),this.combinedTheme=this._defaultTheme}getTheme(t){if(!t)return this.combinedTheme;if(!this.dirty)return this.combinedTheme;let e={};const i=this.getParentWithTheme(t);return i&&(e=i.theme),this.applyTheme(t,e),this.combinedTheme}getParentWithTheme(t){for(;t.parent;)if((t=t.parent).theme)return t;return null}applyTheme(t,e,i=!1){if(this.dirty){const s=this.getParentWithTheme(t);if(s){const r=s.theme;(r.dirty||i)&&r.applyTheme(s,e,!0)}this.userTheme?this.doCombine(s&&s.theme.combinedTheme):(s?this.combinedTheme=s.theme.combinedTheme:(this.combinedTheme=this._defaultTheme,Lt.getInstance().warn("未知错误,走到不应该走的区域里")),this.dirty=!1)}return this.combinedTheme}doCombine(t){const e=this.userTheme,i=this.combinedTheme;P0.forEach(s=>{const r=Object.create(hA[s]);t&&t[s]&&sp(r,t[s]),i[s]&&sp(r,i[s]),e[s]&&sp(r,e[s]),this.combinedTheme[s]=r}),e.common&&P0.forEach(s=>{sp(this.combinedTheme[s],e.common)}),this.dirty=!1}setTheme(t,e){let i=this.userTheme;i?Object.keys(t).forEach(s=>{i[s]?Object.assign(i[s],t[s]):i[s]=Object.assign({},t[s])}):i=t,this.userTheme=i,this.dirty=!0,this.dirtyChildren(e)}resetTheme(t,e){this.userTheme=t,this.dirty=!0,this.dirtyChildren(e)}dirtyChildren(t){t.forEachChildren(e=>{e.isContainer&&(e.theme&&(e.theme.dirty=!0),this.dirtyChildren(e))})}}const uR=new bc;function st(n,t){return n.glyphHost?st(n.glyphHost):t?(n.isContainer,t):Ij(n)||n.attachedThemeGraphic&&st(n.attachedThemeGraphic)||uR.getTheme()}function Ij(n){let t;if(t=n.isContainer?n:n.parent,t){for(;t&&!t.theme;)t=t.parent;return t?(t.theme||t.createTheme(),t.theme.getTheme(t)):uR.getTheme()}return null}var Oj=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};class Lj extends Go{get previousSibling(){return this._prev}get nextSibling(){return this._next}get children(){return this.getChildren()}get firstChild(){return this._firstChild}get lastChild(){return this._lastChild}get count(){return this._count}get childrenCount(){return this._idMap?this._idMap.size:0}constructor(){super(),this._uid=Ye.GenAutoIncrementId(),this._firstChild=null,this._lastChild=null,this.parent=null,this._count=1}forEachChildren(t,e=!1){if(e){let i=this._lastChild,s=0;for(;i;){if(t(i,s++))return;i=i._prev}}else{let i=this._firstChild,s=0;for(;i;){if(t(i,s++))return;i=i._next}}}forEachChildrenAsync(t,e=!1){return Oj(this,void 0,void 0,function*(){if(e){let i=this._lastChild,s=0;for(;i;){let r=t(i,s++);if(r.then&&(r=yield r),r)return;i=i._prev}}else{let i=this._firstChild,s=0;for(;i;){let r=t(i,s++);if(r.then&&(r=yield r),r)return;i=i._next}}})}forEach(t){return this.forEachChildren(t)}appendChild(t,e=!0){if(this._uid===t._uid)return null;if(!e&&t.isAncestorsOf(this))throw new Error("【Node::appendChild】不能将父辈元素append为子元素");return t.parent&&t.parent.removeChild(t),t.parent=this,this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild,this._lastChild=t):(this._firstChild=this._lastChild=t,t._prev=t._next=null),this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this.setCount(t.count),this._structEdit=!0,t}appendChildArrHighPerformance(t,e=!1){return console.error("暂不支持该函数"),t}insertBefore(t,e){if(!e)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");return e.parent!==this?null:(t.parent&&t.parent.removeChild(t),t.parent=this,t._prev=e._prev,e._prev?e._prev._next=t:this._firstChild=t,e._prev=t,t._next=e,this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t)}insertAfter(t,e){if(!e)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertAfter】不能将父辈元素insert为子元素");return e.parent!==this?null:(t.parent&&t.parent.removeChild(t),t.parent=this,e._next?(e._next._prev=t,t._next=e._next):this._lastChild=t,e._next=t,t._prev=e,this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t)}insertInto(t,e){if(!this._ignoreWarn&&this._nodeList&&Lt.getInstance().warn("insertIntoKeepIdx和insertInto混用可能会存在错误"),e>=this.childrenCount)return this.appendChild(t);if(this._uid===t._uid)return null;if(t.isAncestorsOf(this))throw new Error("【Node::insertBefore】不能将父辈元素insert为子元素");if(t.parent&&t.parent.removeChild(t),t.parent=this,e===0)t._next=this._firstChild,this._firstChild&&(this._firstChild._prev=t),t._prev=null,this._firstChild=t;else{let i=this._firstChild;for(let s=0;s0&&(i=i._next)}if(!i)return null;t._next=i._next,t._prev=i,i._next=t,t._next&&(t._next._prev=t)}return this._idMap||(this._idMap=new Map),this._idMap.set(t._uid,t),this._structEdit=!0,this.setCount(t.count),t}insertIntoKeepIdx(t,e){if(this._nodeList||(this._nodeList=this.children),this._nodeList[e]){const r=this._nodeList[e];return this._nodeList.splice(e,0,t),this.insertBefore(t,r)}let i;this._nodeList[e]=t;for(let r=e-1;r>=0&&(i=this._nodeList[r],!i);r--);if(i)return i._next?this.insertBefore(t,i._next):this.appendChild(t);this._ignoreWarn=!0;const s=this.insertInto(t,0);return this._ignoreWarn=!1,s}removeChild(t){if(!this._idMap||!this._idMap.has(t._uid))return null;if(this._idMap.delete(t._uid),this._nodeList){const e=this._nodeList.findIndex(i=>i===t);e>=0&&this._nodeList.splice(e,1)}return t._prev?t._prev._next=t._next:this._firstChild=t._next,t._next?t._next._prev=t._prev:this._lastChild=t._prev,t.parent=null,t._prev=null,t._next=null,this._structEdit=!0,this.setCount(-t.count),t}delete(){this.parent&&this.parent.removeChild(this)}removeAllChild(t){if(!this._idMap)return;this._nodeList&&(this._nodeList.length=0);let e=this._firstChild;for(;e;){const i=e._next;e.parent=null,e._prev=null,e._next=null,e=e._next,e=i}this._firstChild=null,this._lastChild=null,this._idMap.clear(),this._structEdit=!0,this.setCount(1-this._count)}replaceChild(t,e){throw new Error("暂不支持")}find(t,e=!1){let i=null;return this.forEachChildren((s,r)=>!(s===this||!t(s,r))&&(i=s,!0)),e&&this.forEachChildren(s=>{if(s.isContainer){const r=s.find(t,!0);if(r)return i=r,!0}return!1}),i}findAll(t,e=!1){let i=[];return this.forEachChildren((s,r)=>{s!==this&&t(s,r)&&i.push(s)}),e&&this.forEachChildren(s=>{if(s.isContainer){const r=s.findAll(t,!0);r.length&&(i=i.concat(r))}}),i}getElementById(t){return this.find(e=>e.id===t,!0)}findChildById(t){return this.getElementById(t)}findChildByUid(t){return this._idMap&&this._idMap.get(t)||null}getElementsByName(t){return this.findAll(e=>e.name===t,!0)}findChildrenByName(t){return this.getElementsByName(t)}getElementsByType(t){return this.findAll(e=>e.type===t,!0)}getChildByName(t,e=!1){return this.find(i=>i.name===t,e)}getChildAt(t){let e=this._firstChild;if(!e)return null;for(let i=0;i{if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.createPointerEvent(i,i.type,s);if(this.dispatchEvent(r,"pointerdown"),r.pointerType==="touch")this.dispatchEvent(r,"touchstart");else if(Wr(r.pointerType)){const a=r.button===2;this.dispatchEvent(r,a?"rightdown":"mousedown")}this.trackingData(i.pointerId).pressTargetsByButton[i.button]=r.composedPath(),this.freeEvent(r)},this.onPointerMove=(i,s)=>{var r,a;if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const o=this.createPointerEvent(i,i.type,s),l=Wr(o.pointerType),h=this.trackingData(i.pointerId),d=this.findMountedTarget(h.overTargets);if(h.overTargets&&d&&d!==this.rootTarget&&d!==o.target){const c=i.type==="mousemove"?"mouseout":"pointerout",u=this.createPointerEvent(i,c,d||void 0);if(this.dispatchEvent(u,"pointerout"),l&&this.dispatchEvent(u,"mouseout"),!o.composedPath().includes(d)){const p=this.createPointerEvent(i,"pointerleave",d||void 0);for(p.eventPhase=p.AT_TARGET;p.target&&!o.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),l&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(u)}if(d!==o.target){const c=i.type==="mousemove"?"mouseover":"pointerover",u=this.clonePointerEvent(o,c);this.dispatchEvent(u,"pointerover"),l&&this.dispatchEvent(u,"mouseover");let p=d==null?void 0:d.parent;for(;p&&p!==this.rootTarget.parent&&p!==o.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const g=this.clonePointerEvent(o,"pointerenter");g.eventPhase=g.AT_TARGET;let f=g.target;const _=new Set;let m=d;for(;m&&m!==this.rootTarget;)_.add(m),m=m.parent;for(;f&&f!==d&&f!==this.rootTarget.parent;)_.has(f)||(g.currentTarget=f,this.notifyTarget(g),l&&this.notifyTarget(g,"mouseenter")),f=f.parent;this.freeEvent(g)}this.freeEvent(u)}this.dispatchEvent(o,"pointermove"),o.pointerType==="touch"&&this.dispatchEvent(o,"touchmove"),l&&(this.dispatchEvent(o,"mousemove"),this.cursorTarget=o.target,this.cursor=((a=(r=o.target)===null||r===void 0?void 0:r.attribute)===null||a===void 0?void 0:a.cursor)||this.rootTarget.getCursor()),h.overTargets=o.composedPath(),this.freeEvent(o)},this.onPointerOver=(i,s)=>{var r,a;if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const o=this.trackingData(i.pointerId),l=this.createPointerEvent(i,i.type,s),h=Wr(l.pointerType);this.dispatchEvent(l,"pointerover"),h&&this.dispatchEvent(l,"mouseover"),l.pointerType==="mouse"&&(this.cursorTarget=l.target,this.cursor=((a=(r=l.target)===null||r===void 0?void 0:r.attribute)===null||a===void 0?void 0:a.cursor)||this.rootTarget.getCursor());const d=this.clonePointerEvent(l,"pointerenter");for(d.eventPhase=d.AT_TARGET;d.target&&d.target!==this.rootTarget.parent;)d.currentTarget=d.target,this.notifyTarget(d),h&&this.notifyTarget(d,"mouseenter"),d.target=d.target.parent;o.overTargets=l.composedPath(),this.freeEvent(l),this.freeEvent(d)},this.onPointerOut=(i,s)=>{if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.trackingData(i.pointerId);if(r.overTargets){const a=Wr(i.pointerType),o=this.findMountedTarget(r.overTargets),l=this.createPointerEvent(i,"pointerout",o||void 0);this.dispatchEvent(l),a&&this.dispatchEvent(l,"mouseout");const h=this.createPointerEvent(i,"pointerleave",o||void 0);for(h.eventPhase=h.AT_TARGET;h.target&&h.target!==this.rootTarget.parent;)h.currentTarget=h.target,this.notifyTarget(h),a&&this.notifyTarget(h,"mouseleave"),h.target=h.target.parent;r.overTargets=[],this.freeEvent(l),this.freeEvent(h)}this.cursorTarget=null,this.cursor=""},this.onPointerUp=(i,s)=>{var r;if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const a=no.now(),o=this.createPointerEvent(i,i.type,s);if(this.dispatchEvent(o,"pointerup"),o.pointerType==="touch")this.dispatchEvent(o,"touchend");else if(Wr(o.pointerType)){const c=o.button===2;this.dispatchEvent(o,c?"rightup":"mouseup")}const l=this.trackingData(i.pointerId),h=this.findMountedTarget(l.pressTargetsByButton[i.button]);let d=h;if(h&&!o.composedPath().includes(h)){let c=h;for(;c&&!o.composedPath().includes(c);){if(o.currentTarget=c,this.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch")this.notifyTarget(o,"touchendoutside");else if(Wr(o.pointerType)){const u=o.button===2;this.notifyTarget(o,u?"rightupoutside":"mouseupoutside")}c=c.parent}delete l.pressTargetsByButton[i.button],d=c}if(d){const c=this.clonePointerEvent(o,"click");c.target=d,c.path=[],c.detailPath=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:c.target,timeStamp:a});const u=l.clicksByButton[i.button];u.target===c.target&&a-u.timeStamp<((r=this._config.clickInterval)!==null&&r!==void 0?r:200)?++u.clickCount:u.clickCount=1,u.target=c.target,u.timeStamp=a,c.detail=u.clickCount,Wr(c.pointerType)?(this.dispatchEvent(c,"click"),u.clickCount===2&&this.dispatchEvent(c,"dblclick")):c.pointerType==="touch"&&(this.dispatchEvent(c,"tap"),u.clickCount===2&&this.dispatchEvent(c,"dbltap")),this.dispatchEvent(c,"pointertap"),this.freeEvent(c)}this.freeEvent(o)},this.onPointerUpOutside=(i,s)=>{if(!(i instanceof Rn))return void Lt.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");const r=this.trackingData(i.pointerId),a=this.findMountedTarget(r.pressTargetsByButton[i.button]),o=this.createPointerEvent(i,i.type,s);if(a){let l=a;for(;l;)o.currentTarget=l,this.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch"?this.notifyTarget(o,"touchendoutside"):Wr(o.pointerType)&&this.notifyTarget(o,o.button===2?"rightupoutside":"mouseupoutside"),l=l.parent;delete r.pressTargetsByButton[i.button]}this.freeEvent(o)},this.onWheel=(i,s)=>{if(!(i instanceof ua))return void Lt.getInstance().warn("EventManager cannot map a non-wheel event as a wheel event");const r=this.createWheelEvent(i,s);this.dispatchEvent(r),this.freeEvent(r)},this.rootTarget=t,this.mappingTable={},this._config=Object.assign({clickInterval:200},e),this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel)}addEventMapping(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort((i,s)=>i.priority-s.priority)}dispatchEvent(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.dispatch.emit(e||t.type,t)}mapEvent(t){var e,i,s,r,a,o,l;if(!this.rootTarget)return;const h=this.mappingTable[t.type];let d;const c=`${t.canvasX}-${t.canvasY}`;if(!((e=this._prePointTargetCache)===null||e===void 0)&&e[c]&&(!((s=(i=this._prePointTargetCache)===null||i===void 0?void 0:i[c])===null||s===void 0)&&s.stage)&&((a=(r=this._prePointTargetCache)===null||r===void 0?void 0:r[c])===null||a===void 0?void 0:a.stage.renderCount)===((o=this._prePointTargetCache)===null||o===void 0?void 0:o.stageRenderCount)?d=this._prePointTargetCache[c]:(d=this.pickTarget(t.viewX,t.viewY,t),t.pickParams||(this._prePointTargetCache={[c]:d,stageRenderCount:(l=d==null?void 0:d.stage.renderCount)!==null&&l!==void 0?l:-1})),h)for(let u=0,p=h.length;u=0;s--)if(t.currentTarget=i[s],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}propagationPath(t){const e=[t];for(let i=0;i<2048&&t!==this.rootTarget&&t.parent;i++){if(!t.parent)throw new Error("Cannot find propagation path to disconnected target");e.push(t.parent),t=t.parent}return e.reverse(),e}notifyTarget(t,e){if(this.pauseNotify)return;e=e??t.type;const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${e}capture`:e;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)}findMountedTarget(t){if(!t)return null;let e=t[0];for(let i=1;i{e[i].x=t[i].x,e[i].y=t[i].y}))}copyData(t,e){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=no.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.which=t.which,e.layer.x=t.layer.x,e.layer.y=t.layer.y,e.page.x=t.page.x,e.page.y=t.page.y,e.pickParams=t.pickParams}trackingData(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]}allocateEvent(t){var e;this.eventPool.has(t)||this.eventPool.set(t,[]);const i=((e=this.eventPool.get(t))===null||e===void 0?void 0:e.pop())||new t(this);return i.eventPhase=i.NONE,i.currentTarget=null,i.path=[],i.detailPath=[],i.target=null,i}freeEvent(t){var e;if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventManager!");const i=t.constructor;this.eventPool.has(i)||this.eventPool.set(i,[]),(e=this.eventPool.get(i))===null||e===void 0||e.push(t)}notifyListeners(t,e){const i=t.currentTarget._events[e];if(i)if("fn"in i)i.once&&t.currentTarget.removeEventListener(e,i.fn,{once:!0}),i.fn.call(i.context,t);else for(let s=0,r=i.length;s{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.normalizeToPointerData(d);this.autoPreventDefault&&c[0].isNormalized&&(d.cancelable||!("cancelable"in d))&&d.preventDefault();for(let u=0,p=c.length;u{if(this.supportsTouchEvents&&d.pointerType==="touch"||this.isEventOutsideOfTargetElement(d))return;const c=this.normalizeToPointerData(d);for(let u=0,p=c.length;u{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.isEventOutsideOfTargetViewPort(d)?"outside":"",u=this.normalizeToPointerData(d);for(let p=0,g=u.length;p{if(this.supportsTouchEvents&&d.pointerType==="touch")return;const c=this.normalizeToPointerData(d);for(let u=0,p=c.length;u{const c=this.normalizeWheelEvent(d);this.manager.mapEvent(c)};const{targetElement:e,resolution:i,rootNode:s,global:r,autoPreventDefault:a=!1,clickInterval:o,supportsTouchEvents:l=r.supportsTouchEvents,supportsPointerEvents:h=r.supportsPointerEvents}=t;this.manager=new Dj(s,{clickInterval:o}),this.globalObj=r,this.supportsPointerEvents=h,this.supportsTouchEvents=l,this.supportsMouseEvents=r.supportsMouseEvents,this.applyStyles=r.applyStyles,this.autoPreventDefault=a,this.eventsAdded=!1,this.rootPointerEvent=new Rn,this.rootWheelEvent=new ua,this.cursorStyles={default:"inherit",pointer:"pointer"},this.resolution=i,this.setTargetElement(e)}release(){this.removeEvents(),this.manager&&this.manager.release(),this.domElement=null,this.manager=null,this.globalObj=null}setCursor(t,e){if(!e&&!this.manager.rootTarget.window._handler.canvas.controled)return;t||(t="default");const{applyStyles:i,domElement:s}=this;if(this.currentCursor===t)return;this.currentCursor=t;const r=this.cursorStyles[t];r?typeof r=="string"&&i?s.style.cursor=r:typeof r=="function"?r(t):typeof r=="object"&&i&&Object.assign(s.style,r):i&&at(t)&&!cs(this.cursorStyles,t)&&(s.style.cursor=t)}setTargetElement(t){this.removeEvents(),this.domElement=t,this.addEvents()}addEvents(){if(this.eventsAdded||!this.domElement)return;const{globalObj:t,domElement:e}=this;this.supportsPointerEvents?(t.getDocument()?(t.getDocument().addEventListener("pointermove",this.onPointerMove,!0),t.getDocument().addEventListener("pointerup",this.onPointerUp,!0)):(e.addEventListener("pointermove",this.onPointerMove,!0),e.addEventListener("pointerup",this.onPointerUp,!0)),e.addEventListener("pointerdown",this.onPointerDown,!0),e.addEventListener("pointerleave",this.onPointerOverOut,!0),e.addEventListener("pointerover",this.onPointerOverOut,!0)):(t.getDocument()?(t.getDocument().addEventListener("mousemove",this.onPointerMove,!0),t.getDocument().addEventListener("mouseup",this.onPointerUp,!0)):(e.addEventListener("mousemove",this.onPointerMove,!0),e.addEventListener("mouseup",this.onPointerUp,!0)),e.addEventListener("mousedown",this.onPointerDown,!0),e.addEventListener("mouseout",this.onPointerOverOut,!0),e.addEventListener("mouseover",this.onPointerOverOut,!0)),this.supportsTouchEvents&&(e.addEventListener("touchstart",this.onPointerDown,!0),e.addEventListener("touchend",this.onPointerUp,!0),e.addEventListener("touchmove",this.onPointerMove,!0)),e.addEventListener("wheel",this.onWheel,{capture:!0}),this.eventsAdded=!0}removeEvents(){if(!this.eventsAdded||!this.domElement)return;const{globalObj:t,domElement:e}=this;this.supportsPointerEvents?(t.getDocument()?(t.getDocument().removeEventListener("pointermove",this.onPointerMove,!0),t.getDocument().removeEventListener("pointerup",this.onPointerUp,!0)):(e.removeEventListener("pointermove",this.onPointerMove,!0),e.removeEventListener("pointerup",this.onPointerUp,!0)),e.removeEventListener("pointerdown",this.onPointerDown,!0),e.removeEventListener("pointerleave",this.onPointerOverOut,!0),e.removeEventListener("pointerover",this.onPointerOverOut,!0)):(t.getDocument()?(t.getDocument().removeEventListener("mousemove",this.onPointerMove,!0),t.getDocument().removeEventListener("mouseup",this.onPointerUp,!0)):(e.removeEventListener("mousemove",this.onPointerMove,!0),e.removeEventListener("mouseup",this.onPointerUp,!0)),e.removeEventListener("mousedown",this.onPointerDown,!0),e.removeEventListener("mouseout",this.onPointerOverOut,!0),e.removeEventListener("mouseover",this.onPointerOverOut,!0)),this.supportsTouchEvents&&(e.removeEventListener("touchstart",this.onPointerDown,!0),e.removeEventListener("touchend",this.onPointerUp,!0),e.removeEventListener("touchmove",this.onPointerMove,!0)),e.removeEventListener("wheel",this.onWheel,!0),this.domElement=null,this.eventsAdded=!1}mapToViewportPoint(t){return this.domElement.pointTransform?this.domElement.pointTransform(t.x,t.y):t}mapToCanvasPoint(t){var e,i;const s=(e=this.globalObj)===null||e===void 0?void 0:e.mapToCanvasPoint(t,this.domElement);if(s)return s;let r=0,a=0;if(t.changedTouches){const l=(i=t.changedTouches[0])!==null&&i!==void 0?i:{};r=l.clientX||0,a=l.clientY||0}else r=t.clientX||0,a=t.clientY||0;const o=this.domElement.getBoundingClientRect();return{x:r-o.left,y:a-o.top}}normalizeToPointerData(t){const e=[];if(this.supportsTouchEvents&&t.changedTouches&&t.changedTouches.length)for(let i=0,s=t.changedTouches.length;i0&&e.y>0)}return!1}isEventOutsideOfTargetElement(t){let e=t.target;return t.composedPath&&t.composedPath().length>0&&(e=t.composedPath()[0]),e!==(this.domElement.getNativeHandler?this.domElement.getNativeHandler().nativeCanvas:this.domElement)}pauseTriggerEvent(){this.manager.pauseNotify=!0}resumeTriggerEvent(){this.manager.pauseNotify=!1}}class fg{constructor(){this.time=0}static Avaliable(){return!0}avaliable(){return fg.Avaliable()}tick(t,e){this.time=Math.max(0,t+this.time),e(this,{once:!0})}tickTo(t,e){this.time=Math.max(0,t),e(this,{once:!0})}release(){this.timerId>0&&(this.timerId=-1)}getTime(){return this.time}}class _g{static Avaliable(){return!0}avaliable(){return _g.Avaliable()}tick(t,e){this.timerId=setTimeout(()=>{e(this)},t)}release(){this.timerId>0&&(clearTimeout(this.timerId),this.timerId=-1)}getTime(){return Date.now()}}class xd{static Avaliable(){return!!Q.global.getRequestAnimationFrame()}avaliable(){return xd.Avaliable()}tick(t,e){Q.global.getRequestAnimationFrame()(()=>{this.released||e(this)})}release(){this.released=!0}getTime(){return Date.now()}}var Gn;(function(n){n[n.INITIAL=0]="INITIAL",n[n.RUNNING=1]="RUNNING",n[n.PAUSE=2]="PAUSE"})(Gn||(Gn={}));class Hj{set mode(t){this._mode!==t&&(this._mode=t,this.setupTickHandler())}get mode(){return this._mode}constructor(t=[]){this.handleTick=(e,i)=>{const{once:s=!1}=i??{};this.ifCanStop()?this.stop():(this._handlerTick(e),s||e.tick(this.interval,this.handleTick))},this._handlerTick=e=>{const i=this.tickerHandler.getTime();let s=0;this.lastFrameTime>=0&&(s=i-this.lastFrameTime),this.lastFrameTime=i,this.status===Gn.RUNNING&&(this.tickCounts++,this.timelines.forEach(r=>{r.tick(s)}))},this.init(),this.lastFrameTime=-1,this.tickCounts=0,this.timelines=t,this.autoStop=!0}init(){this.interval=NaN,this.status=Gn.INITIAL,Q.global.hooks.onSetEnv.tap("default-ticker",()=>{this.initHandler()}),Q.global.env&&this.initHandler()}addTimeline(t){this.timelines.push(t)}remTimeline(t){this.timelines=this.timelines.filter(e=>e!==t)}initHandler(){if(this._mode)return null;const t=[{mode:"raf",cons:xd},{mode:"timeout",cons:_g},{mode:"manual",cons:fg}];for(let e=0;e{this.handleTick(e,{once:!0})})}tickTo(t){this.tickerHandler.tickTo&&this.tickerHandler.tickTo(t,e=>{this.handleTick(e,{once:!0})})}pause(){return this.status!==Gn.INITIAL&&(this.status=Gn.PAUSE,!0)}resume(){return this.status!==Gn.INITIAL&&(this.status=Gn.RUNNING,!0)}ifCanStop(){return!!(this.autoStop&&(!this.timelines.length||this.timelines.reduce((t,e)=>t+e.animateCount,0)===0))}start(t=!1){return this.status===Gn.RUNNING||!this.tickerHandler||!t&&(this.status===Gn.PAUSE||!this.timelines.length||this.timelines.reduce((e,i)=>e+i.animateCount,0)===0)?!1:(this.status=Gn.RUNNING,this.tickerHandler.tick(0,this.handleTick),!0)}stop(){this.status=Gn.INITIAL,this.setupTickHandler(),this.lastFrameTime=-1}}class jt{constructor(){}static linear(t){return t}static none(){return this.linear}static get(t){return t<-1?t=-1:t>1&&(t=1),function(e){return t===0?e:t<0?e*(e*-t+1+t):e*((2-e)*t+(1-t))}}static getPowIn(t){return function(e){return Math.pow(e,t)}}static getPowOut(t){return function(e){return 1-Math.pow(1-e,t)}}static getPowInOut(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}}static getBackIn(t){return function(e){return e*e*((t+1)*e-t)}}static getBackOut(t){return function(e){return--e*e*((t+1)*e+t)+1}}static getBackInOut(t){return t*=1.525,function(e){return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}}static sineIn(t){return 1-Math.cos(t*Math.PI/2)}static sineOut(t){return Math.sin(t*Math.PI/2)}static sineInOut(t){return-(Math.cos(Math.PI*t)-1)/2}static expoIn(t){return t===0?0:Math.pow(2,10*t-10)}static expoOut(t){return t===1?1:1-Math.pow(2,-10*t)}static expoInOut(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}static circIn(t){return-(Math.sqrt(1-t*t)-1)}static circOut(t){return Math.sqrt(1- --t*t)}static circInOut(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}static bounceOut(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}static bounceIn(t){return 1-jt.bounceOut(1-t)}static bounceInOut(t){return t<.5?.5*jt.bounceIn(2*t):.5*jt.bounceOut(2*t-1)+.5}static getElasticIn(t,e){return function(i){if(i===0||i===1)return i;const s=e/Dt*Math.asin(1/t);return-t*Math.pow(2,10*(i-=1))*Math.sin((i-s)*Dt/e)}}static getElasticOut(t,e){return function(i){if(i===0||i===1)return i;const s=e/Dt*Math.asin(1/t);return t*Math.pow(2,-10*i)*Math.sin((i-s)*Dt/e)+1}}static getElasticInOut(t,e){return function(i){const s=e/Dt*Math.asin(1/t);return(i*=2)<1?t*Math.pow(2,10*(i-=1))*Math.sin((i-s)*Dt/e)*-.5:t*Math.pow(2,-10*(i-=1))*Math.sin((i-s)*Dt/e)*.5+1}}}jt.quadIn=jt.getPowIn(2),jt.quadOut=jt.getPowOut(2),jt.quadInOut=jt.getPowInOut(2),jt.cubicIn=jt.getPowIn(3),jt.cubicOut=jt.getPowOut(3),jt.cubicInOut=jt.getPowInOut(3),jt.quartIn=jt.getPowIn(4),jt.quartOut=jt.getPowOut(4),jt.quartInOut=jt.getPowInOut(4),jt.quintIn=jt.getPowIn(5),jt.quintOut=jt.getPowOut(5),jt.quintInOut=jt.getPowInOut(5),jt.backIn=jt.getBackIn(1.7),jt.backOut=jt.getBackOut(1.7),jt.backInOut=jt.getBackInOut(1.7),jt.elasticIn=jt.getElasticIn(1,.3),jt.elasticOut=jt.getElasticOut(1,.3),jt.elasticInOut=jt.getElasticInOut(1,.3*1.5);class gR{constructor(){this.id=Ye.GenAutoIncrementId(),this.animateHead=null,this.animateTail=null,this.animateCount=0,this.paused=!1}addAnimate(t){this.animateTail?(this.animateTail.nextAnimate=t,t.prevAnimate=this.animateTail,this.animateTail=t,t.nextAnimate=null):(this.animateHead=t,this.animateTail=t),this.animateCount++}pause(){this.paused=!0}resume(){this.paused=!1}tick(t){if(this.paused)return;let e=this.animateHead;for(this.animateCount=0;e;)e.status===Hi.END?this.removeAnimate(e):e.status===Hi.RUNNING||e.status===Hi.INITIAL?(this.animateCount++,e.advance(t)):e.status===Hi.PAUSED&&this.animateCount++,e=e.nextAnimate}clear(){let t=this.animateHead;for(;t;)t.release(),t=t.nextAnimate;this.animateHead=null,this.animateTail=null,this.animateCount=0}removeAnimate(t,e=!0){t._onRemove&&t._onRemove.forEach(i=>i()),t===this.animateHead?(this.animateHead=t.nextAnimate,t===this.animateTail?this.animateTail=null:this.animateHead.prevAnimate=null):t===this.animateTail?(this.animateTail=t.prevAnimate,this.animateTail.nextAnimate=null):(t.prevAnimate.nextAnimate=t.nextAnimate,t.nextAnimate.prevAnimate=t.prevAnimate),e&&t.release()}}const fR=new gR;class dn{constructor(t,e,i,s,r){this.from=t,this.to=e,this.duration=i,this.easing=s,this.params=r,this.updateCount=0}bind(t,e){this.target=t,this.subAnimate=e,this.onBind()}onBind(){}onFirstRun(){}onStart(){}onEnd(){}getEndProps(){return this.to}getFromProps(){return this.from}getMergedEndProps(){var t;const e=this.getEndProps();return e?this._endProps===e?this._mergedEndProps:(this._endProps=e,void(this._mergedEndProps=Object.assign({},(t=this.step.prev.getLastProps())!==null&&t!==void 0?t:{},e))):this.step.prev?this.step.prev.getLastProps():e}update(t,e,i){if(this.updateCount===0){this.onFirstRun();const s=this.step.getLastProps();Object.keys(s).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=s[r])})}this.updateCount+=1,this.onUpdate(t,e,i),t&&this.onEnd()}}class Vj extends dn{constructor(t){super(null,null,0,"linear"),this.cb=t}onUpdate(t,e,i){}onStart(){this.cb()}}let mg=class ld{constructor(t=Ye.GenAutoIncrementId(),e=fR){this.id=t,this.timeline=e,this.status=Hi.INITIAL,this.tailAnimate=new dA(this),this.subAnimates=[this.tailAnimate],this.timeScale=1,this.rawPosition=-1,this._startTime=0,this._duringTime=0,this.timeline.addAnimate(this)}setTimeline(t){t!==this.timeline&&(this.timeline.removeAnimate(this,!1),t.addAnimate(this))}getStartTime(){return this._startTime}getDuration(){return this.subAnimates.reduce((t,e)=>t+e.totalDuration,0)}after(t){const e=t.getDuration();return this._startTime=e,this}afterAll(t){let e=-1/0;return t.forEach(i=>{e=sn(i.getDuration(),e)}),this._startTime=e,this}parallel(t){return this._startTime=t.getStartTime(),this}static AddInterpolate(t,e){ld.interpolateMap.set(t,e)}play(t){if(this.tailAnimate.play(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this.subAnimates.length===1&&this.tailAnimate.totalDuration===t.duration&&this.trySetAttribute(t.getFromProps(),t.mode),this}trySetAttribute(t,e=ld.mode){t&&e&th.SET_ATTR_IMMEDIATELY&&this.target.setAttributes&&this.target.setAttributes(t,!1,{type:we.ANIMATE_PLAY})}runCb(t){const e=new Vj(()=>{t(this,e.step.prev)});return this.tailAnimate.play(e),this}customInterpolate(t,e,i,s,r,a){const o=ld.interpolateMap.get(t)||ld.interpolateMap.get("");return!!o&&o(t,e,i,s,r,a)}pause(){this.status===Hi.RUNNING&&(this.status=Hi.PAUSED)}resume(){this.status===Hi.PAUSED&&(this.status=Hi.RUNNING)}to(t,e,i,s){if(this.tailAnimate.to(t,e,i,s),this.target){const r=this.target.stage;r&&r.renderNextFrame()}return this}from(t,e,i,s){if(this.tailAnimate.from(t,e,i,s),this.target){const r=this.target.stage;r&&r.renderNextFrame()}return this}wait(t){if(this.tailAnimate.wait(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}startAt(t){if(this.tailAnimate.startAt(t),this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}loop(t){if(this.tailAnimate.loop=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}reversed(t){if(this.tailAnimate.reversed=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}bounce(t){if(this.tailAnimate.bounce=t,this.target){const e=this.target.stage;e&&e.renderNextFrame()}return this}subAnimate(){const t=new dA(this,this.tailAnimate);return this.tailAnimate=t,this.subAnimates.push(t),t.bind(this.target),this}getStartProps(){return this.subAnimates[0].getStartProps()}getEndProps(){return this.tailAnimate.getEndProps()}depreventAttr(t){this._preventAttrs&&this._preventAttrs.delete(t)}preventAttr(t){this._preventAttrs||(this._preventAttrs=new Set),this._preventAttrs.add(t)}preventAttrs(t){t.forEach(e=>this.preventAttr(e))}validAttr(t){return!this._preventAttrs||!this._preventAttrs.has(t)}bind(t){return this.target=t,this.target.onAnimateBind&&this.target.onAnimateBind(this),this.subAnimates.forEach(e=>{e.bind(t)}),this}advance(t){if(this._duringTimee())),this.setPosition(this.rawPosition+t*this.timeScale)&&this.status===Hi.RUNNING&&(this.status=Hi.END,this._onEnd&&this._onEnd.forEach(e=>e()))}setPosition(t){let e,i=0;const s=this.rawPosition,r=this.subAnimates.reduce((o,l)=>o+l.totalDuration,0);t<0&&(t=0);const a=t>=r;if(a&&(t=r),t===s)return a;for(let o=0;o=t));o++)i+=e.totalDuration,e=void 0;return this.rawPosition=t,e.setPosition(t-i),a}onStart(t){this._onStart||(this._onStart=[]),this._onStart.push(t)}onEnd(t){this._onEnd||(this._onEnd=[]),this._onEnd.push(t)}onRemove(t){this._onRemove||(this._onRemove=[]),this._onRemove.push(t)}onFrame(t){this._onFrame||(this._onFrame=[]),this._onFrame.push(t)}release(){this.status=Hi.END}stop(t){t||this.target.onStop(),t==="start"?this.target.onStop(this.getStartProps()):t==="end"?this.target.onStop(this.getEndProps()):this.target.onStop(t),this.release()}};mg.mode=th.NORMAL,mg.interpolateMap=new Map;class dA{get totalDuration(){return this.calcAttr(),this._totalDuration+this._startAt}constructor(t,e){this.rawPosition=-1,this.position=0,this.loop=0,this.duration=0,this.animate=t,this.stepHead=new cA(0,0,e?Object.assign({},e.stepTail.props):{}),this.stepTail=this.stepHead,this.dirty=!0,this._startAt=0}calcAttr(){this.dirty&&(this._totalDuration=this.duration*(this.loop+1))}bind(t){return this.target=t,this}play(t){let e=t.duration;(e==null||e<0)&&(e=0);const i=t.easing,s=typeof i=="string"?jt[i]:i,r=this._addStep(e,null,s);return r.type=bl.customAnimate,this._appendProps(t.getEndProps(),r,!1),this._appendCustomAnimate(t,r),this}to(t,e,i,s){(e==null||e<0)&&(e=0);const r=typeof i=="string"?jt[i]:i,a=this._addStep(e,null,r);return a.type=bl.to,this._appendProps(t,a,!!s&&s.tempProps),a.propKeys||(a.propKeys=Object.keys(a.props)),s&&s.noPreventAttrs||this.target.animates.forEach(o=>{o.id!==this.animate.id&&o.preventAttrs(a.propKeys)}),this}from(t,e,i,s){this.to(t,0,i,s);const r={};this.stepTail.propKeys||(this.stepTail.propKeys=Object.keys(this.stepTail.props)),this.stepTail.propKeys.forEach(a=>{r[a]=this.getLastPropByName(a,this.stepTail)}),this.to(r,e,i,s),this.stepTail.type=bl.from}startAt(t){return t<0&&(t=0),this._startAt=t,this}getStartProps(){var t;return(t=this.stepHead)===null||t===void 0?void 0:t.props}getEndProps(){return this.stepTail.props}getLastStep(){return this._lastStep}wait(t){if(t>0){const e=this._addStep(+t,null);e.type=bl.wait,e.prev.customAnimate?e.props=e.prev.customAnimate.getEndProps():e.props=e.prev.props,this.target.onAddStep&&this.target.onAddStep(e)}return this}_addStep(t,e,i){const s=new cA(this.duration,t,e,i);return this.duration+=t,this.stepTail.append(s),this.stepTail=s,s}_appendProps(t,e,i){e.props=i?t:Object.assign({},t);let s=e.prev;const r=e.props;for(e.propKeys||(e.propKeys=Object.keys(e.props)),e.propKeys.forEach(o=>{e.props[o]===void 0&&(e.props[o]=this.target.getDefaultAttribute(o))});s.prev;)s.props&&(s.propKeys||(s.propKeys=Object.keys(s.props)),s.propKeys.forEach(o=>{r[o]===void 0&&(r[o]=s.props[o])})),e.propKeys=Object.keys(e.props),s=s.prev;const a=this.stepHead.props;e.propKeys||(e.propKeys=Object.keys(r)),e.propKeys.forEach(o=>{if(a[o]===void 0){const l=this.animate.getStartProps();a[o]=l[o]=this.target.getComputedAttribute(o)}}),this.target.onAddStep&&this.target.onAddStep(e)}_appendCustomAnimate(t,e){e.customAnimate=t,t.step=e,t.bind(this.target,this)}setPosition(t){var e;const i=this.duration,s=this.loop,r=this.rawPosition;let a,o,l=!1;const h=(e=this._startAt)!==null&&e!==void 0?e:0;if(t<0&&(t=0),t=s*i+i,l&&(o=i,a=s,t=o*a+i),t===r)return l;const d=!this.reversed!=!(this.bounce&&a%2);return d&&(o=i-o),this._deltaPosition=o-this.position,this.position=o,this.rawPosition=t+h,this.updatePosition(l,d),l}updatePosition(t,e){if(!this.stepHead)return;let i=this.stepHead.next;const s=this.position,r=this.duration;if(this.target&&i){let a=i.next;for(;a&&a.position<=s;)i=a,a=i.next;let o=t?r===0?1:s/r:(s-i.position)/i.duration;i.easing&&(o=i.easing(o)),this.tryCallCustomAnimateLifeCycle(i,this._lastStep||(e?this.stepTail:this.stepHead),e),this.updateTarget(i,o,t),this._lastStep=i,this.animate._onFrame&&this.animate._onFrame.forEach(l=>l(i,o))}}tryCallCustomAnimateLifeCycle(t,e,i){if(t!==e)if(i){let s=e.prev;for(;s&&s!==t;)s.customAnimate&&(s.customAnimate.onStart&&s.customAnimate.onStart(),s.customAnimate.onEnd&&s.customAnimate.onEnd()),s=t.prev;e&&e.customAnimate&&e.customAnimate.onEnd&&e.customAnimate.onEnd(),t&&t.customAnimate&&t.customAnimate.onStart&&t.customAnimate.onStart()}else{let s=e.next;for(;s&&s!==t;)s.customAnimate&&(s.customAnimate.onStart&&s.customAnimate.onStart(),s.customAnimate.onEnd&&s.customAnimate.onEnd()),s=s.next;e&&e.customAnimate&&e.customAnimate.onEnd&&e.customAnimate.onEnd(),t&&t.customAnimate&&t.customAnimate.onStart&&t.customAnimate.onStart()}}getLastPropByName(t,e){let i=e.prev;for(;i;){if(i.props&&i.props[t]!==void 0)return i.props[t];if(i.customAnimate){const s=i.customAnimate.getEndProps()[t];if(s!==void 0)return s}i=i.prev}return Lt.getInstance().warn("未知错误,step中找不到属性"),e.props[t]}updateTarget(t,e,i){t.props==null&&t.customAnimate==null||this.target.onStep(this,this.animate,t,e,i)}}class cA{constructor(t,e,i,s){this.duration=e,this.position=t,this.props=i,this.easing=s}append(t){t.prev=this,t.next=this.next,this.next=t}getLastProps(){let t=this.prev;for(;t;){if(t.props)return t.props;if(t.customAnimate)return t.customAnimate.getMergedEndProps();t=t.prev}return null}}const uA={duration:200,easing:"cubicOut"},Sl={duration:1e3,easing:"quadInOut"};var pA;(function(n){n[n.Top=1]="Top",n[n.Right=2]="Right",n[n.Bottom=4]="Bottom",n[n.Left=8]="Left",n[n.ALL=15]="ALL"})(pA||(pA={}));const Js=[!1,!1,!1,!1],Wj=n=>{var t;let e=!0;if(be(n,!0)){for(let i=0;i<4;i++)Js[i]=n,e&&(e=!((t=Js[i])!==null&&t!==void 0&&!t));e=n}else if(Array.isArray(n))for(let i=0;i<4;i++)Js[i]=!!n[i],e&&(e=!!Js[i]);else Js[0]=!1,Js[1]=!1,Js[2]=!1,Js[3]=!1;return{isFullStroke:e,stroke:Js}},Vh=[0,0,0,0],Bi=n=>n?V(n)?n.length===0?0:n.length===1?n[0]:n.length===2?(Vh[0]=n[0],Vh[2]=n[0],Vh[1]=n[1],Vh[3]=n[1],Vh):n:n:0,el=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}],rp=[1,2,3,0,1,2,3,0];function E0(n,t,e,i){for(;n>=Dt;)n-=Dt;for(;n<0;)n+=Dt;for(;n>t;)t+=Dt;el[0].x=e,el[1].y=e,el[2].x=-e,el[3].y=-e;const s=Math.ceil(n/Yn)%4,r=Math.ceil(t/Yn)%4;if(i.add(se(n)*e,Kt(n)*e),i.add(se(t)*e,Kt(t)*e),s!==r||t-n>ee){let a=!1;for(let o=0;ot.length){i=t.map(s=>{const r=new ze(s.x,s.y,s.x1,s.y1);return r.defined=s.defined,r});for(let s=0;s{const r=new ze(s.x,s.y,s.x1,s.y1);return r.defined=s.defined,r});for(let s=0;sNj.includes(n);function ap(n,t){if(V(n)){let e;for(let i=0;i{this.appendDuration(Date.now()-this.lastDate),t(0)},this.timeout,!0)}clear(t){clearTimeout(t)}appendDuration(t){this.durations.push(t),this.durations.length>this.durationsListThreshold&&this.durations.shift(),this.timeout=Math.min(Math.max(this.durations.reduce((e,i)=>e+i,0)/this.durations.length,1e3/60),1e3/30)}}N_.TimeOut=1e3/60;const gA=new N_,pr=(n,t)=>at(n)&&n[n.length-1]==="%"?t*(Number.parseFloat(n.substring(0,n.length-1))/100):n;class Uj extends dn{constructor(t,e,i,s,r){super(t,e,i,s,r)}getEndProps(){return this.valid===!1?{}:{text:this.to}}onBind(){var t,e,i,s,r,a,o,l;this.fromNumber=nt((t=this.from)===null||t===void 0?void 0:t.text)?(e=this.from)===null||e===void 0?void 0:e.text:Number.parseFloat((i=this.from)===null||i===void 0?void 0:i.text),this.toNumber=nt((s=this.to)===null||s===void 0?void 0:s.text)?(r=this.to)===null||r===void 0?void 0:r.text:Number.parseFloat((a=this.to)===null||a===void 0?void 0:a.text),Number.isFinite(this.toNumber)||(this.fromNumber=0),Number.isFinite(this.toNumber)||(this.valid=!1),this.valid!==!1&&(this.decimalLength=(l=(o=this.params)===null||o===void 0?void 0:o.fixed)!==null&&l!==void 0?l:Math.max(ql(this.fromNumber),ql(this.toNumber)))}onEnd(){}onUpdate(t,e,i){this.valid!==!1&&(i.text=t?this.toNumber:(this.fromNumber+(this.toNumber-this.fromNumber)*e).toFixed(this.decimalLength))}}var fA;(function(n){n[n.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",n[n.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT",n[n.TOP_TO_BOTTOM=2]="TOP_TO_BOTTOM",n[n.BOTTOM_TO_TOP=3]="BOTTOM_TO_TOP",n[n.STROKE=4]="STROKE"})(fA||(fA={}));class _R extends dn{constructor(t,e,i,s,r){var a,o;super(t,e,i,s,r),this.newPointAnimateType=(a=r==null?void 0:r.newPointAnimateType)!==null&&a!==void 0?a:"grow",this.clipRangeByDimension=(o=r==null?void 0:r.clipRangeByDimension)!==null&&o!==void 0?o:"x"}onBind(){var t,e;const i=(t=this.from)===null||t===void 0?void 0:t.points,s=(e=this.to)===null||e===void 0?void 0:e.points;this.fromPoints=i?Array.isArray(i)?i:[i]:[],this.toPoints=s?Array.isArray(s)?s:[s]:[];const r=new Map;this.fromPoints.forEach(c=>{c.context&&r.set(c.context,c)});let a,o,l=1/0,h=-1/0;for(let c=0;c=0;c-=1)if(r.has(this.toPoints[c].context)){h=c,o=r.get(this.toPoints[c].context);break}this.newPointAnimateType==="clip"&&this.toPoints.length!==0&&(Number.isFinite(h)?(this.clipRange=this.toPoints[h][this.clipRangeByDimension]/this.toPoints[this.toPoints.length-1][this.clipRangeByDimension],z(this.clipRange)?this.clipRange=Fe(this.clipRange,0,1):this.clipRange=0):this.clipRange=0);let d=this.toPoints[0];this.interpolatePoints=this.toPoints.map((c,u)=>{const p=r.get(c.context);return p?(d=p,[p,c]):this.newPointAnimateType==="appear"||this.newPointAnimateType==="clip"?[c,c]:uh&&o?[o,c]:[d,c]}),this.points=this.interpolatePoints.map(c=>{const u=c[0],p=c[1],g=new ze(u.x,u.y,u.x1,u.y1);return g.defined=p.defined,g.context=p.context,g})}onUpdate(t,e,i){this.points=this.points.map((s,r)=>{const a=Qv(this.interpolatePoints[r][0],this.interpolatePoints[r][1],e);return a.context=s.context,a}),this.clipRange&&(i.clipRange=this.clipRange+(1-this.clipRange)*e),i.points=this.points}}class mR extends dn{constructor(t,e,i,s,r){super(null,null,i,s,r),this.clipFromAttribute=t,this.clipToAttribute=e,this._group=r==null?void 0:r.group,this._clipGraphic=r==null?void 0:r.clipGraphic}onBind(){this._group&&this._clipGraphic&&(this._lastClip=this._group.attribute.clip,this._lastPath=this._group.attribute.path,this._group.setAttributes({clip:!0,path:[this._clipGraphic]},!1,{type:we.ANIMATE_BIND}))}onEnd(){this._group&&this._group.setAttributes({clip:this._lastClip,path:this._lastPath},!1,{type:we.ANIMATE_END})}onUpdate(t,e,i){if(!this._clipGraphic)return;const s={};Object.keys(this.clipFromAttribute).forEach(r=>{s[r]=this.clipFromAttribute[r]+(this.clipToAttribute[r]-this.clipFromAttribute[r])*e}),this._clipGraphic.setAttributes(s,!1,{type:we.ANIMATE_UPDATE,animationState:{ratio:e,end:t}})}}class $j extends mR{constructor(t,e,i,s,r){var a,o,l,h,d,c,u,p,g,f,_,m;const y=(o=(a=r==null?void 0:r.group)===null||a===void 0?void 0:a.attribute)!==null&&o!==void 0?o:{},b=(l=y.width)!==null&&l!==void 0?l:0,v=(h=y.height)!==null&&h!==void 0?h:0,x=(d=r==null?void 0:r.animationType)!==null&&d!==void 0?d:"in",S=(c=r==null?void 0:r.startAngle)!==null&&c!==void 0?c:0,k=(u=r==null?void 0:r.orient)!==null&&u!==void 0?u:"clockwise";let A=0,T=0;k==="anticlockwise"?(T=x==="in"?S+2*Math.PI:S,T=S+2*Math.PI):(A=S,T=x==="out"?S+2*Math.PI:S);const M=Q.graphicService.creator.arc({x:(g=(p=r==null?void 0:r.center)===null||p===void 0?void 0:p.x)!==null&&g!==void 0?g:b/2,y:(_=(f=r==null?void 0:r.center)===null||f===void 0?void 0:f.y)!==null&&_!==void 0?_:v/2,outerRadius:(m=r==null?void 0:r.radius)!==null&&m!==void 0?m:(b+v)/2,innerRadius:0,startAngle:A,endAngle:T,fill:!0});let w,E;k==="anticlockwise"?(w={startAngle:S+2*Math.PI},E={startAngle:S}):(w={endAngle:S},E={endAngle:S+2*Math.PI}),super(x==="in"?w:E,x==="in"?E:w,i,s,{group:r==null?void 0:r.group,clipGraphic:M})}}class _A extends mR{constructor(t,e,i,s,r){var a,o,l,h,d,c,u,p,g;const f=(o=(a=r==null?void 0:r.group)===null||a===void 0?void 0:a.attribute)!==null&&o!==void 0?o:{},_=(h=(l=r==null?void 0:r.width)!==null&&l!==void 0?l:f.width)!==null&&h!==void 0?h:0,m=(c=(d=r==null?void 0:r.height)!==null&&d!==void 0?d:f.height)!==null&&c!==void 0?c:0,y=(u=r==null?void 0:r.animationType)!==null&&u!==void 0?u:"in",b=(p=r==null?void 0:r.direction)!==null&&p!==void 0?p:"x",v=(g=r==null?void 0:r.orient)!==null&&g!==void 0?g:"positive",x=Q.graphicService.creator.rect({x:0,y:0,width:y==="in"&&b==="x"?0:_,height:y==="in"&&b==="y"?0:m,fill:!0});let S={},k={};b==="y"?v==="negative"?(S={y:m,height:0},k={y:0,height:m}):(S={height:0},k={height:m}):v==="negative"?(S={x:_,width:0},k={x:0,width:_}):(S={width:0},k={width:_}),super(y==="in"?S:k,y==="in"?k:S,i,s,{group:r==null?void 0:r.group,clipGraphic:x})}}class Yj extends dn{onStart(){const{center:t,r:e}=typeof this.params=="function"?this.params():this.params,i=this.target.getComputedAttribute("x"),s=this.target.getComputedAttribute("y"),r=this.target.getComputedAttribute("z"),a=Math.acos((s-t.y)/e);let o=Math.acos((i-t.x)/e/Math.sin(a));r-t.z<0&&(o=Dt-o),this.theta=o,this.phi=a}onBind(){}onEnd(){}onUpdate(t,e,i){if(this.phi==null||this.theta==null)return;const{center:s,r,cb:a}=typeof this.params=="function"?this.params():this.params,o=2*Math.PI*e,l=this.theta+o,h=this.phi,d=r*Math.sin(h)*Math.cos(l)+s.x,c=r*Math.cos(h)+s.y,u=r*Math.sin(h)*Math.sin(l)+s.z;for(i.x=d,i.y=c,i.z=u,i.alpha=l+ee/2;i.alpha>Dt;)i.alpha-=Dt;i.alpha=Dt-i.alpha,i.zIndex=-1e4*i.z,a&&a(i)}}class Xj extends dn{getEndProps(){return{}}onBind(){this.target.setTheme({common:{opacity:1}})}onEnd(){this.target.setTheme({common:{opacity:0}})}onUpdate(t,e,i){this.target.setTheme({common:{opacity:1-e}})}}class Kj extends dn{constructor(t,e){super(null,null,t,"linear"),this.customAnimates=e}initAnimates(){this.customAnimates.forEach(t=>{t.step=this.step,t.subAnimate=this.subAnimate,t.target=this.target})}getEndProps(){const t={};return this.customAnimates.forEach(e=>{Object.assign(t,e.getEndProps())}),t}onBind(){this.initAnimates(),this.customAnimates.forEach(t=>{t.onBind()})}onEnd(){this.customAnimates.forEach(t=>{t.onEnd()})}onStart(){this.customAnimates.forEach(t=>{t.onStart()})}onUpdate(t,e,i){this.updating||(this.updating=!0,this.customAnimates.forEach(s=>{const r=s.easing;e=(typeof r=="string"?jt[r]:r)(e),s.onUpdate(t,e,i)}),this.updating=!1)}}function mA(n,t,e,i,s,r){const a=(t-n)*s+n,o=(e-t)*s+t,l=(i-e)*s+e,h=(o-a)*s+a,d=(l-o)*s+o,c=(d-h)*s+h;r[0]=n,r[1]=a,r[2]=h,r[3]=c,r[4]=c,r[5]=d,r[6]=l,r[7]=i}function qj(n,t){const e=n.length,i=t.length;if(e===i)return[n,t];const s=[],r=[],a=e0){const b=i/e;for(let v=-i/2;v<=i/2;v+=b){const x=Math.sin(v),S=Math.cos(v);let k=0;for(let A=0;A{Ki(t,i)&&Ki(e,s)||n.push(t,e,i,s,i,s)};function ty(n){const t=n.commandList,e=[];let i,s=0,r=0,a=0,o=0;const l=(p,g)=>{i&&i.length>2&&e.push(i),i=[p,g]};let h,d,c,u;for(let p=0,g=t.length;pS:Tk:B2&&e.push(i),e}function bA(n,t){for(let e=0;e2){t.moveTo(i[0],i[1]);for(let s=2;s{if(!n)return{x:0,y:0,width:0,height:0};let t=C(n.width)?n.x1-n.x:n.width,e=C(n.height)?n.y1-n.y:n.height,i=0,s=0;return t<0?(i=t,t=-t):Number.isNaN(t)&&(t=0),e<0?(s=e,e=-e):Number.isNaN(e)&&(e=0),{x:i,y:s,width:t,height:e}};function gx(n,t,e){const i=n/t;let s,r;n>=t?(r=Math.ceil(Math.sqrt(e*i)),s=Math.floor(e/r),s===0&&(s=1,r=e)):(s=Math.ceil(Math.sqrt(e/i)),r=Math.floor(e/s),r===0&&(r=1,s=e));const a=[];for(let l=0;l0)for(let l=0;l{const{width:e,height:i}=vR(n.attribute),s=gx(e,i,t),r=[],a=i/s.length;for(let o=0,l=s.length;o{const e=n.getParsedAngle(),i=e.startAngle,s=e.endAngle,r=n.getComputedAttribute("innerRadius"),a=n.getComputedAttribute("outerRadius"),o=Math.abs(i-s),l=Math.abs(a-r),h=gx(o*(r+a)/2,l,t),d=[],c=l/h.length,u=a>=r?1:-1,p=s>=i?1:-1;for(let g=0,f=h.length;g{const e=n.getComputedAttribute("startAngle"),i=n.getComputedAttribute("endAngle"),s=n.getComputedAttribute("radius"),r=Math.abs(e-i),a=gx(r*s,s,t),o=[],l=r/a[0],h=s/a.length,d=i>=e?1:-1;for(let c=0,u=a.length;c{const e=n.filter(o=>o.defined!==!1&&nt(o.x)&&nt(o.y));if(e.length===0)return[];if(e.length===1)return new Array(t).fill(0).map(o=>e[0]);const i=[];if(t<=e.length){const o=e.length/t;let l=0,h=0;for(;l{var e,i;const s=n.attribute;let r=s.points;const a=s.segments;r||(r=a.reduce((d,c)=>{var u;return d.concat((u=c.points)!==null&&u!==void 0?u:[])},[]));const o=r.filter(d=>d.defined!==!1&&nt(d.x)&&nt(d.y));if(!o.length)return[];const l=[];o.forEach(d=>{l.push({x:d.x,y:d.y})});for(let d=o.length-1;d>=0;d--){const c=o[d];l.push({x:(e=c.x1)!==null&&e!==void 0?e:c.x,y:(i=c.y1)!==null&&i!==void 0?i:c.y})}const h=[];return xc(r,t,h),h},aH=(n,t)=>{const e=n.attribute,i=e.points;if(i)return xA(i,t);if(e.segments){const s=e.segments.reduce((r,a)=>{var o;return r.concat((o=a.points)!==null&&o!==void 0?o:[])},[]);return xA(s,t)}return[]};function oH(n,t){return n[0]*t[1]-n[1]*t[0]}const ey=n=>n.map(t=>({x:t.x,y:t.y})),SA=(n,t,e)=>{const i=n.length,s=[];for(let c=0;cc.dot-u.dot);let r=s[0],a=s[s.length-1];r.edgeIndex>a.edgeIndex&&([r,a]=[a,r]);const o=r.point,l=a.point,h=[{x:o.x,y:o.y}];for(let c=r.edgeIndex+1;c<=a.edgeIndex;c++)h.push({x:n[c].x,y:n[c].y});h.push({x:l.x,y:l.y});const d=[{x:l.x,y:l.y}];for(let c=a.edgeIndex+1,u=r.edgeIndex+i;c<=u;c++){const p=n[c%i];d.push({x:p.x,y:p.y})}return d.push({x:o.x,y:o.y}),[h,d]},lH=n=>{const t=new di;n.forEach(r=>{t.add(r.x,r.y)});const e=t.width(),i=t.height();if(e>=i){const r=t.x1+e/2;return SA(n,{x:r,y:t.y1},{x:r,y:t.y2})}const s=t.y1+i/2;return SA(n,{x:t.x1,y:s},{x:t.x2,y:s})},xc=(n,t,e)=>{if(t===1)e.push({points:n});else{const i=Math.floor(t/2),s=lH(n);xc(s[0],i,e),xc(s[1],t-i,e)}},hH=(n,t)=>{const e=n.attribute.points;if(!e||!e.length)return[];if(t===1)return[{points:ey(e)}];const i=[];return xc(e,t,i),i},dH=(n,t)=>{const e=n.getParsedPathShape(),i=ty(e);if(!i.length||t<0)return[];const s=i.length;if(i.length>=t){const l=[],h=Math.floor(i.length/t);for(let d=0;dAA(V(n)?n[a]:n,V(t)?t[a]:t,e,i)):AA(n,t,e,i,s)}function AA(n,t,e,i,s){if(!n||!t)return n&&op(n)||t&&op(t)||!1;let r,a,o=!1,l=!1;if(Array.isArray(n)?r=n:typeof n=="string"?r=Te.Get(n,qi.Color255):o=!0,Array.isArray(t)?a=t:typeof t=="string"?a=Te.Get(t,qi.Color255):l=!0,o!==l){const h=o?n:t,d=o?t:n,c=Object.assign(Object.assign({},h),{stops:h.stops.map(u=>Object.assign(Object.assign({},u),{color:op(d)}))});return o?ho(h,c,e,i,s):ho(c,h,e,i,s)}if(o){if(n.gradient===t.gradient){const h=n,d=t,c=h.stops,u=d.stops;if(c.length!==u.length)return!1;if(h.gradient==="linear")return cH(h,d,e);if(h.gradient==="radial")return uH(h,d,e);if(h.gradient==="conical")return pH(h,d,e)}return!1}return s&&s(r,a),op(gH(r,a,e),i)}function cH(n,t,e){const i=n.stops,s=t.stops;return{gradient:"linear",x0:n.x0+(t.x0-n.x0)*e,x1:n.x1+(t.x1-n.x1)*e,y0:n.y0+(t.y0-n.y0)*e,y1:n.y1+(t.y1-n.y1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:fx(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function uH(n,t,e){const i=n.stops,s=t.stops;return{gradient:"radial",x0:n.x0+(t.x0-n.x0)*e,x1:n.x1+(t.x1-n.x1)*e,y0:n.y0+(t.y0-n.y0)*e,y1:n.y1+(t.y1-n.y1)*e,r0:n.r0+(t.r0-n.r0)*e,r1:n.r1+(t.r1-n.r1)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:fx(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function pH(n,t,e){const i=n.stops,s=t.stops;return{gradient:"conical",startAngle:n.startAngle+(t.startAngle-n.startAngle)*e,endAngle:n.endAngle+(t.endAngle-n.endAngle)*e,x:n.x+(t.x-n.x)*e,y:n.y+(t.y-n.y)*e,stops:new Array(i.length).fill(0).map((r,a)=>({color:fx(i[a].color,s[a].color,e),offset:i[a].offset+(s[a].offset-i[a].offset)*e}))}}function gH(n,t,e){return[n[0]+(t[0]-n[0])*e,n[1]+(t[1]-n[1])*e,n[2]+(t[2]-n[2])*e,n[3]+(t[3]-n[3])*e]}const tr=[0,0,0,0],Wh=[0,0,0,0];function fx(n,t,e){return Te.Get(n,qi.Color255,tr),Te.Get(t,qi.Color255,Wh),`rgba(${Math.round(tr[0]+(Wh[0]-tr[0])*e)},${Math.round(tr[1]+(Wh[1]-tr[1])*e)},${Math.round(tr[2]+(Wh[2]-tr[2])*e)},${tr[3]+(Wh[3]-tr[3])*e})`}const yR=(n,t,e)=>{n.forEach(i=>{if(Number.isFinite(i.to))t[i.key]=i.from+(i.to-i.from)*e;else if(i.key==="fill"||i.key==="stroke"){const s=ho(i.from,i.to,e,!1);s&&(t[i.key]=s)}})},bR=(n,t,e)=>{const i=[],s=[];t.clear();for(let r=0;r{const i=n?ty(n):[],s=ty(t);e&&i&&(e.fromTransform&&bA(i,e.fromTransform.clone().getInverse()),bA(i,e.toTransfrom));const[r,a]=tH(i,s);return n?Qj(r,a,10,Math.PI):a.map((o,l)=>({from:r[l],to:o,fromCp:[0,0],toCp:[0,0],rotation:0}))},fH=["fill","fillOpacity","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","lineDashOffset"],SR=(n,t)=>{if(!n||!t)return null;const e=[];let i=!1;return Object.keys(n).forEach(s=>{if(!fH.includes(s))return;const r=t[s];C(r)||C(n[s])||r===n[s]||(s==="fill"||s==="stroke"?e.push({from:typeof n[s]=="string"?Te.Get(n[s],qi.Color255):n[s],to:typeof r=="string"?Te.Get(r,qi.Color255):r,key:s}):e.push({from:n[s],to:r,key:s}),i=!0)}),i?e:null};class AR extends dn{constructor(t,e,i){super(0,1,e,i),this.morphingData=t.morphingData,this.otherAttrs=t.otherAttrs,this.saveOnEnd=t.saveOnEnd}getEndProps(){return{}}onBind(){this.target.createPathProxy(),this.onUpdate(!1,0,this.target.attribute)}onEnd(){}onUpdate(t,e,i){const s=this.target,r=typeof s.pathProxy=="function"?s.pathProxy(s.attribute):s.pathProxy;bR(this.morphingData,r,e),this.otherAttrs&&this.otherAttrs.length&&yR(this.otherAttrs,i,e),t&&!this.saveOnEnd&&(this.target.pathProxy=null)}}const kR=(n,t,e,i)=>{var s,r,a;if(n&&(!n.valid||!n.toCustomPath))return __DEV__&&console.error(n," is not validate"),null;if(!t.valid||!t.toCustomPath)return __DEV__&&console.error(t," is not validate"),null;let o=n==null?void 0:n.globalTransMatrix;i&&o&&(o=i.clone().multiply(o.a,o.b,o.c,o.d,o.e,o.f));const l=xR((s=n==null?void 0:n.toCustomPath)===null||s===void 0?void 0:s.call(n),t.toCustomPath(),{fromTransform:o,toTransfrom:t.globalTransMatrix}),h=SR(n==null?void 0:n.attribute,t.attribute),d=t.animate(e);return e!=null&&e.delay&&d.wait(e.delay),d.play(new AR({morphingData:l,otherAttrs:h},(r=e==null?void 0:e.duration)!==null&&r!==void 0?r:Sl.duration,(a=e==null?void 0:e.easing)!==null&&a!==void 0?a:Sl.easing)),d},_H=(n,t,e)=>{var i;const s=t.filter(h=>h&&h.toCustomPath&&h.valid);s.length||__DEV__&&console.error(s," is not validate"),n.valid&&n.toCustomPath||__DEV__&&console.error(n," is not validate");const r=((e==null?void 0:e.splitPath)==="clone"?MR:(i=e==null?void 0:e.splitPath)!==null&&i!==void 0?i:wR)(n,s.length,!1),a=e==null?void 0:e.onEnd;let o=s.length;const l=()=>{o--,o===0&&a&&a()};s.forEach((h,d)=>{var c;const u=r[d],p=((c=e==null?void 0:e.delay)!==null&&c!==void 0?c:0)+(e!=null&&e.individualDelay?e.individualDelay(d,s.length,u,h):0);kR(u,h,Object.assign({},e,{onEnd:l,delay:p}),n.globalTransMatrix)})};class mH extends dn{constructor(t,e,i){super(0,1,e,i),this.morphingData=t.morphingData,this.otherAttrs=t.otherAttrs}getEndProps(){return{}}onBind(){this.addPathProxy()}addPathProxy(){this.target.shadowRoot.forEachChildren(t=>{t.createPathProxy()}),this.onUpdate(!1,0,this.target.attribute)}clearPathProxy(){this.target.shadowRoot.forEachChildren(t=>{t.pathProxy=null})}onEnd(){}onUpdate(t,e,i){this.target.shadowRoot.forEachChildren((s,r)=>{var a;bR(this.morphingData[r],typeof s.pathProxy=="function"?s.pathProxy(s.attribute):s.pathProxy,e),!((a=this.otherAttrs)===null||a===void 0)&&a[r]&&this.otherAttrs[r].length&&yR(this.otherAttrs[r],s.attribute,e)}),t&&(this.clearPathProxy(),this.morphingData=null)}}const _x=n=>{const t={};return Object.keys(n).forEach(e=>{Gj(e)||(t[e]=n[e])}),t},TR=(n,t,e)=>{const i=_x(n.attribute),s=n.attachShadow();if(t.length)s.setTheme({[t[0].type]:i}),t.forEach(r=>{s.appendChild(r)});else{const r=n.AABBBounds,a=r.width(),o=r.height();s.setTheme({rect:i}),new Array(e).fill(0).forEach(l=>{const h=Q.graphicService.creator.rect({x:0,y:0,width:a,height:o});s.appendChild(h),t.push(h)})}},MR=(n,t,e)=>{const i=[],s=e?null:_x(n.attribute),r=n.toCustomPath();for(let a=0;a{const i=[],s=e?null:_x(n.attribute);if(n.type==="rect")iH(n,t).forEach(r=>{i.push(Q.graphicService.creator.rect(e?r:Object.assign({},s,r)))});else if(n.type==="arc")nH(n,t).forEach(r=>{i.push(Q.graphicService.creator.arc(e?r:Object.assign({},s,r)))});else if(n.type==="circle")sH(n,t).forEach(r=>{i.push(Q.graphicService.creator.arc(e?r:Object.assign({},s,r)))});else if(n.type==="line"){const r=aH(n,t),a={size:10,symbolType:"circle"};r.forEach(o=>{i.push(Q.graphicService.creator.symbol(e?Object.assign({},o,a):Object.assign({},s,o,a)))})}else n.type==="polygon"?hH(n,t).forEach(r=>{i.push(Q.graphicService.creator.polygon(e?r:Object.assign({},s,r)))}):n.type==="area"?rH(n,t).forEach(r=>{i.push(Q.graphicService.creator.polygon(e?r:Object.assign({},s,r)))}):n.type==="path"&&dH(n,t).forEach(r=>{"path"in r?i.push(Q.graphicService.creator.path(e?r:Object.assign({},s,r))):i.push(Q.graphicService.creator.polygon(e?r:Object.assign({},s,r)))});return e&&TR(n,i,t),i},vH=(n,t,e)=>{var i,s,r;const a=n.filter(c=>c.toCustomPath&&c.valid);a.length||__DEV__&&console.error(n," is not validate"),t.valid&&t.toCustomPath||__DEV__&&console.error(t," is not validate");const o=((e==null?void 0:e.splitPath)==="clone"?MR:(i=e==null?void 0:e.splitPath)!==null&&i!==void 0?i:wR)(t,a.length,!0),l=t.attribute;t.setAttribute("visible",!1);const h=a.map((c,u)=>xR(c.toCustomPath(),o[u].toCustomPath(),{fromTransform:c.globalTransMatrix,toTransfrom:o[u].globalTransMatrix})),d=a.map((c,u)=>SR(c.attribute,l));if(e!=null&&e.individualDelay){const c=e.onEnd;let u=a.length;const p=()=>{u--,u===0&&(t.setAttributes({visible:!0,ratio:null},!1,{type:we.ANIMATE_END}),t.detachShadow(),c&&c())};o.forEach((g,f)=>{var _,m,y;const b=((_=e.delay)!==null&&_!==void 0?_:0)+e.individualDelay(f,a.length,n[f],g),v=g.animate(Object.assign({},e,{onEnd:p}));v.wait(b),v.play(new AR({morphingData:h[f],saveOnEnd:!0,otherAttrs:d[f]},(m=e.duration)!==null&&m!==void 0?m:Sl.duration,(y=e.easing)!==null&&y!==void 0?y:Sl.easing))})}else{const c=e==null?void 0:e.onEnd,u=e?Object.assign({},e):{};u.onEnd=()=>{t.setAttribute("visible",!0,!1,{type:we.ANIMATE_END}),t.detachShadow(),c&&c()};const p=t.animate(u);e!=null&&e.delay&&p.wait(e.delay),p.play(new mH({morphingData:h,otherAttrs:d},(s=e==null?void 0:e.duration)!==null&&s!==void 0?s:Sl.duration,(r=e==null?void 0:e.easing)!==null&&r!==void 0?r:Sl.easing))}};class le{static GetImage(t,e){var i;const s=le.cache.get(t);s?s.loadState==="fail"?Q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):s.loadState==="init"||s.loadState==="loading"?(i=s.waitingMark)===null||i===void 0||i.push(e):e&&e.imageLoadSuccess(t,s.data):le.loadImage(t,e)}static GetSvg(t,e){var i;let s=le.cache.get(t);s?s.loadState==="fail"?Q.global.getRequestAnimationFrame()(()=>{e.imageLoadFail(t)}):s.loadState==="init"||s.loadState==="loading"?(i=s.waitingMark)===null||i===void 0||i.push(e):e&&e.imageLoadSuccess(t,s.data):(s={type:"image",loadState:"init"},le.cache.set(t,s),s.dataPromise=Q.global.loadSvg(t),s.dataPromise?(s.waitingMark=[e],s.dataPromise.then(r=>{var a;s.loadState=r!=null&&r.data?"success":"fail",s.data=r==null?void 0:r.data,(a=s.waitingMark)===null||a===void 0||a.map((o,l)=>{r!=null&&r.data?(s.loadState="success",s.data=r.data,o.imageLoadSuccess(t,r.data)):(s.loadState="fail",o.imageLoadFail(t))})})):(s.loadState="fail",e.imageLoadFail(t)))}static GetFile(t,e){let i=le.cache.get(t);return i?i.loadState==="init"||i.loadState==="fail"?Promise.reject():i.loadState==="loading"?i.dataPromise.then(s=>s.data):Promise.resolve(i.data):(i={type:e,loadState:"init"},le.cache.set(t,i),e==="arrayBuffer"?i.dataPromise=Q.global.loadArrayBuffer(t):e==="blob"?i.dataPromise=Q.global.loadBlob(t):e==="json"&&(i.dataPromise=Q.global.loadJson(t)),i.dataPromise.then(s=>s.data))}static loading(){setTimeout(()=>{if(!le.isLoading&&le.toLoadAueue.length){le.isLoading=!0;const t=le.toLoadAueue.splice(0,10),e=[];t.forEach(i=>{const{url:s,marks:r}=i,a={type:"image",loadState:"init"};if(le.cache.set(s,a),a.dataPromise=Q.global.loadImage(s),a.dataPromise){a.waitingMark=r;const o=a.dataPromise.then(l=>{var h;a.loadState=l!=null&&l.data?"success":"fail",a.data=l==null?void 0:l.data,(h=a.waitingMark)===null||h===void 0||h.map((d,c)=>{l!=null&&l.data?(a.loadState="success",a.data=l.data,d.imageLoadSuccess(s,l.data)):(a.loadState="fail",d.imageLoadFail(s))})});e.push(o)}else a.loadState="fail",r.forEach(o=>o.imageLoadFail(s))}),Promise.all(e).then(()=>{le.isLoading=!1,this.onLoadSuccessCb.forEach(i=>i()),le.loading()}).catch(i=>{console.error(i),le.isLoading=!1,this.onLoadSuccessCb.forEach(s=>s()),le.loading()})}},0)}static loadImage(t,e){const i=kA(t,le.toLoadAueue);if(i!==-1)return le.toLoadAueue[i].marks.push(e),void le.loading();le.toLoadAueue.push({url:t,marks:[e]}),le.loading()}static improveImageLoading(t){const e=kA(t,le.toLoadAueue);if(e!==-1){const i=le.toLoadAueue.splice(e,1);le.toLoadAueue.unshift(i[0])}}static onLoadSuccess(t){this.onLoadSuccessCb.push(t)}}function kA(n,t){for(let e=0;e{this.animates.delete(e.id)}),e}onAttributeUpdate(t){t&&t.skipUpdateCallback||(Q.graphicService.onAttributeUpdate(this),this._emitCustomEvent("afterAttributeUpdate",t))}update(t){t?(t.bounds&&this.tryUpdateAABBBounds(this.attribute.boundsMode==="imprecise"),t.trans&&this.tryUpdateLocalTransMatrix()):(this.tryUpdateAABBBounds(this.attribute.boundsMode==="imprecise"),this.tryUpdateLocalTransMatrix())}hasState(t){return!(!this.currentStates||!this.currentStates.length)&&(!!C(t)||this.currentStates.includes(t))}getState(t){var e;return(e=this.states)===null||e===void 0?void 0:e[t]}applyStateAttrs(t,e,i,s){var r,a,o,l;if(i){const h=Object.keys(t),d=this.getNoWorkAnimateAttr(),c={};let u;h.forEach(g=>{d[g]?(u||(u={}),u[g]=t[g]):c[g]=s&&t[g]===void 0?this.getDefaultAttribute(g):t[g]});const p=this.animate();p.stateNames=e,p.to(c,(a=(r=this.stateAnimateConfig)===null||r===void 0?void 0:r.duration)!==null&&a!==void 0?a:uA.duration,(l=(o=this.stateAnimateConfig)===null||o===void 0?void 0:o.easing)!==null&&l!==void 0?l:uA.easing),u&&this.setAttributes(u,!1,{type:we.STATE})}else this.stopStateAnimates(),this.setAttributes(t,!1,{type:we.STATE})}updateNormalAttrs(t){const e={};this.normalAttrs?(Object.keys(t).forEach(i=>{i in this.normalAttrs?(e[i]=this.normalAttrs[i],delete this.normalAttrs[i]):e[i]=this.getNormalAttribute(i)}),Object.keys(this.normalAttrs).forEach(i=>{t[i]=this.normalAttrs[i]})):Object.keys(t).forEach(i=>{e[i]=this.getNormalAttribute(i)}),this.normalAttrs=e}stopStateAnimates(t="end"){this.animates&&this.animates.forEach(e=>{e.stateNames&&(e.stop(t),this.animates.delete(e.id))})}getNormalAttribute(t){let e=this.attribute[t];return this.animates&&this.animates.forEach(i=>{if(i.stateNames){const s=i.getEndProps();cs(s,t)&&(e=s[t])}}),e}clearStates(t){this.hasState()&&this.normalAttrs?(this.currentStates=[],this.applyStateAttrs(this.normalAttrs,this.currentStates,t,!0)):this.currentStates=[],this.normalAttrs=null}removeState(t,e){if((this.currentStates?this.currentStates.indexOf(t):-1)>=0){const i=this.currentStates.filter(s=>s!==t);this.useStates(i,e)}}toggleState(t,e){if(this.hasState(t))this.removeState(t,e);else if((this.currentStates?this.currentStates.indexOf(t):-1)<0){const i=this.currentStates?this.currentStates.slice():[];i.push(t),this.useStates(i,e)}}addState(t,e,i){var s;if(this.currentStates&&this.currentStates.includes(t)&&(e||this.currentStates.length===1))return;const r=e&&(!((s=this.currentStates)===null||s===void 0)&&s.length)?this.currentStates.concat([t]):[t];this.useStates(r,i)}useStates(t,e){var i;if(!t.length)return void this.clearStates(e);if(!(((i=this.currentStates)===null||i===void 0?void 0:i.length)!==t.length||t.some((r,a)=>this.currentStates[a]!==r)))return;const s={};t.forEach(r=>{var a;const o=this.stateProxy?this.stateProxy(r,t):(a=this.states)===null||a===void 0?void 0:a[r];o&&Object.assign(s,o)}),this.updateNormalAttrs(s),this.currentStates=t,this.applyStateAttrs(s,t,e)}addUpdateBoundTag(){this._updateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}addUpdateShapeTag(){this._updateTag|=oe.UPDATE_SHAPE}addUpdateShapeAndBoundsTag(){this._updateTag|=oe.UPDATE_SHAPE_AND_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag(),this.glyphHost&&this.glyphHost.addUpdateBoundTag()}updateShapeAndBoundsTagSetted(){return(this._updateTag&oe.UPDATE_SHAPE_AND_BOUNDS)===oe.UPDATE_SHAPE_AND_BOUNDS}clearUpdateBoundTag(){this._updateTag&=oe.CLEAR_BOUNDS}addUpdatePositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=oe.UPDATE_GLOBAL_LOCAL_MATRIX}addUpdateGlobalPositionTag(){this.shadowRoot&&this.shadowRoot.addUpdateGlobalPositionTag(),this._updateTag|=oe.UPDATE_GLOBAL_MATRIX}clearUpdateLocalPositionTag(){this._updateTag&=oe.CLEAR_LOCAL_MATRIX}clearUpdateGlobalPositionTag(){this._updateTag&=oe.CLEAR_GLOBAL_MATRIX}addUpdateLayoutTag(){this._updateTag|=oe.UPDATE_LAYOUT}clearUpdateLayoutTag(){this._updateTag&=oe.CLEAR_LAYOUT}needUpdateLayout(){return!!(this._updateTag&oe.UPDATE_LAYOUT)}getAnchor(t,e){const i=[0,0],s=()=>{if(e.b)return e.b;const{scaleX:r,scaleY:a,angle:o}=this.attribute;return TA.copy(this._AABBBounds),this.setAttributes({scaleX:1,scaleY:1,angle:0}),e.b=this.AABBBounds.clone(),this._AABBBounds.copy(TA),this.setAttributes({scaleX:r,scaleY:a,angle:o}),e.b};if(typeof t[0]=="string"){const r=parseFloat(t[0])/100,a=s();i[0]=a.x1+(a.x2-a.x1)*r}else i[0]=t[0];if(typeof t[1]=="string"){const r=parseFloat(t[1])/100,a=s();i[1]=a.y1+(a.y2-a.y1)*r}else i[1]=t[1];return i}doUpdateLocalMatrix(){const{x:t=fi.x,y:e=fi.y,scaleX:i=fi.scaleX,scaleY:s=fi.scaleY,angle:r=fi.angle,scaleCenter:a,anchor:o,postMatrix:l}=this.attribute;let h=[0,0];const d={};if(o&&(h=this.getAnchor(o,d)),!a||i===1&&s===1)SF(this._transMatrix,this._transMatrix.reset(),t,e,i,s,r,o&&h);else{const u=this._transMatrix;u.reset(),u.translate(h[0],h[1]),u.rotate(r),u.translate(-h[0],-h[1]),u.translate(t,e),h=this.getAnchor(a,d),Q.transformUtil.fromMatrix(u,u).scale(i,s,{x:h[0],y:h[1]})}const c=this.getOffsetXY(fi);if(this._transMatrix.e+=c.x,this._transMatrix.f+=c.y,l){const u=yH.setValue(l.a,l.b,l.c,l.d,l.e,l.f),p=this._transMatrix;u.multiply(p.a,p.b,p.c,p.d,p.e,p.f),p.setValue(u.a,u.b,u.c,u.d,u.e,u.f)}}doUpdateGlobalMatrix(){if(this.parent){this._globalTransMatrix.multiply(this.transMatrix.a,this.transMatrix.b,this.transMatrix.c,this.transMatrix.d,this.transMatrix.e,this.transMatrix.f);const{scrollX:t=0,scrollY:e=0}=this.parent.attribute;this._globalTransMatrix.translate(t,e)}}setStage(t,e){if(this.stage!==t){if(this.stage=t,this.layer=e,this.setStageToShadowRoot(t,e),this.animates&&this.animates.size){const i=t.getTimeline();this.animates.forEach(s=>{s.setTimeline(i)})}this._onSetStage&&this._onSetStage(this,t,e),Q.graphicService.onSetStage(this,t)}}setStageToShadowRoot(t,e){this.shadowRoot&&this.shadowRoot.setStage(t,e)}onAddStep(t){}onStop(t){t&&this.setAttributes(t,!1,{type:we.ANIMATE_END})}onStep(t,e,i,s,r){const a={};if(i.customAnimate)i.customAnimate.update(r,s,a);else{const o=i.props,l=i.parsedProps,h=i.propKeys;this.stepInterpolate(t,e,a,i,s,r,o,void 0,l,h)}this.setAttributes(a,!1,{type:we.ANIMATE_UPDATE,animationState:{ratio:s,end:r,step:i,isFirstFrameOfStep:t.getLastStep()!==i}}),this.stage&&this.stage.renderNextFrame()}stepInterpolate(t,e,i,s,r,a,o,l,h,d){d||(d=Object.keys(o),s.propKeys=d),a?s.propKeys.forEach(c=>{e.validAttr(c)&&(i[c]=o[c])}):d.forEach(c=>{var u;if(!e.validAttr(c))return;const p=o[c],g=(u=l&&l[c])!==null&&u!==void 0?u:t.getLastPropByName(c,s);if(p==null||g==null)return void(i[c]=p);let f;f=e.interpolateFunc&&e.interpolateFunc(c,r,g,p,i),f||(f=e.customInterpolate(c,r,g,p,this,i),f||this.defaultInterpolate(p,g,c,i,h,r)||this._interpolate(c,r,g,p,i))}),s.parsedProps=h}defaultInterpolate(t,e,i,s,r,a){if(Number.isFinite(t))return s[i]=e+(t-e)*a,!0;if(i==="fill"){r||(r={});const o=r.fillColorArray,l=ho(e,o??t,a,!1,(h,d)=>{r.fillColorArray=d});return l&&(s[i]=l),!0}if(i==="stroke"){r||(r={});const o=r.strokeColorArray,l=ho(e,o??t,a,!1,(h,d)=>{r.strokeColorArray=d});return l&&(s[i]=l),!0}if(i==="shadowColor"){r||(r={});const o=r.shadowColorArray,l=ho(e,o??t,a,!0,(h,d)=>{r.shadowColorArray=d});return l&&(s[i]=l),!0}return!1}_interpolate(t,e,i,s,r){}getDefaultAttribute(t){return st(this)[this.type][t]}getComputedAttribute(t){var e;return(e=this.attribute[t])!==null&&e!==void 0?e:this.getDefaultAttribute(t)}onSetStage(t,e=!1){this._onSetStage=t,e&&this.stage&&t(this,this.stage)}attachShadow(t){return t&&(t.shadowHost=this),this.shadowRoot=t??Q.graphicService.creator.shadowRoot(this),this.addUpdateBoundTag(),this.shadowRoot.setStage(this.stage,this.layer),this.shadowRoot}detachShadow(){this.shadowRoot&&(this.addUpdateBoundTag(),this.shadowRoot=null)}toJson(){return{attribute:this.attribute,_uid:this._uid,type:this.type,name:this.name,children:this.children.map(t=>t.toJson())}}createPathProxy(t){return at(t,!0)?this.pathProxy=new Pe().fromString(t):this.pathProxy=new Pe,this.pathProxy}loadImage(t,e=!1){if(!t||e&&bH(t))return;const i=t;this.resources||(this.resources=new Map);const s={data:"init",state:null};this.resources.set(i,s),typeof t=="string"?(s.state="loading",t.startsWith("{e.stop()})}stopAnimates(t=!1){this._stopAnimates(this.animates),this.shadowRoot&&this.shadowRoot.stopAnimates(!0),this.isContainer&&t&&this.forEachChildren(e=>{e.stopAnimates(t)})}release(){this.releaseStatus="released",Q.graphicService.onRelease(this)}_emitCustomEvent(t,e){var i,s;if(this._events&&t in this._events){const r=new W_(t,e);r.bubbles=!1,r.manager=(s=(i=this.stage)===null||i===void 0?void 0:i.eventSystem)===null||s===void 0?void 0:s.manager,this.dispatchEvent(r)}}}function bH(n){return!(!n.fill&&!n.stroke)}Zi.mixin(Fj);function xH(n,t){const e=[];let i=t.exec(n);for(;i;){const s=[];s.startIndex=t.lastIndex-i[0].length;const r=i.length;for(let a=0;a0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}function PA(n,t,e,i){const s=n.indexOf(t,e);if(s===-1)throw new Error(i);return s+t.length-1}function SH(n,t,e=">"){let i,s="";for(let r=t;r",a,"Closing Tag is not closed."),l=r.lastIndexOf(".");r=r.substring(0,l),i=this.tagsNodeStack.pop(),i&&i.child&&s&&i.child[i.child.length-1][":@"]&&(i.child[i.child.length-1][":@"].text=s),s="",a=o}else if(t[a+1]==="?")a=EA(t,a,!1,"?>").closeIndex+1;else if(t.substr(a+1,3)==="!--")a=PA(t,"-->",a+4,"Comment is not closed.");else{const o=EA(t,a);let l=o.tagName,h=o.tagExp;const d=o.attrExpPresent,c=o.closeIndex;if(l!==e.tagname&&(r+=r?"."+l:l),h.length>0&&h.lastIndexOf("/")===h.length-1){l[l.length-1]==="/"?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),h=l):h=h.substr(0,h.length-1);const u=new R0(l);l!==h&&d&&(u[":@"]=this.buildAttributesMap(h,r,l)),this.addChild(i,u,r),r=r.substr(0,r.lastIndexOf("."))}else{const u=new R0(l);this.tagsNodeStack.push(i),l!==h&&d&&(u[":@"]=this.buildAttributesMap(h,r,l)),this.addChild(i,u,r),i=u}s="",a=c}else s+=t[a];return e.child}}function TH(n,t){return CR(n)}function CR(n,t){const e={};for(let i=0;i{Q.global.getRequestAnimationFrame()(()=>{i(null)})}),e.forEach(i=>{i.subLayers.size&&i.subLayers.forEach(s=>{s.drawContribution&&s.drawContribution.hooks&&s.drawContribution.rendering&&t.push(new Promise(r=>{s.drawContribution.hooks.completeDraw.tap("outWait",()=>{s.drawContribution.hooks.completeDraw.taps=s.drawContribution.hooks.completeDraw.taps.filter(a=>a.name!=="outWait"),r(null)})}))})}),yield Promise.all(t)})}function Fp(n,t,e,i=0){return n.expand(t+(i/2+(e?BH(e,t):0))),n}function BH(n,t){return n?t:0}let IH=0;function Ji(){return IH++}var co;(function(n){n[n.HORIZONTAL=0]="HORIZONTAL",n[n.VERTICAL=1]="VERTICAL"})(co||(co={}));function RA(n){const t=[];let e=0,i="";for(let s=0;sPR.set(n,!0));const LH=[""],ER=new Map;function DH(n){if(PR.has(n))return!0;if(ER.has(n))return!1;let t=!1;return n.codePointAt(0)<256&&(t=!0),t}LH.forEach(n=>ER.set(n,!0));const U_=Ji(),mu=Ji(),vu=Ji(),$_=Ji(),Y_=Ji(),mx=Ji(),X_=Ji(),yu=Ji(),K_=Ji(),q_=Ji(),vx=Ji(),Z_=Ji(),yx=Ji(),bx=Ji(),J_=Ji(),Q_=Ji(),RR=Symbol.for("GraphicService"),BR=Symbol.for("GraphicCreator"),IR={"stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-width":"lineWidth","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity",stroke:"stroke",fill:"fill"},FH=Object.keys(IR);var BA;(function(n){n[n.LESS_GROUP=0]="LESS_GROUP",n[n.MORE_GROUP=1]="MORE_GROUP"})(BA||(BA={}));let Ch=class iy extends Zi{constructor(t){super(t),this.type="group",this.parent=null,this.isContainer=!0,this.numberType=mx,this._childUpdateTag=oe.UPDATE_BOUNDS}setMode(t){t==="3d"?this.set3dMode():this.set2dMode()}set3dMode(){this.in3dMode=!0}set2dMode(){this.in3dMode=!1}setTheme(t){return this.theme||(this.theme=new bc),this.theme.setTheme(t,this)}createTheme(){this.theme||(this.theme=new bc)}hideAll(){this.setAttribute("visible",!1),this.forEachChildren(t=>{t.isContainer&&t.hideAll?t.hideAll():t.setAttribute("visible",!1)})}showAll(){this.setAttribute("visible",!0),this.forEachChildren(t=>{t.isContainer&&t.showAll?t.showAll():t.setAttribute("visible",!0)})}containsPoint(t,e,i){if(i===vc.GLOBAL){const s=new ze(t,e);return this.parent&&this.parent.globalTransMatrix.transformPoint(s,s),this.AABBBounds.contains(s.x,s.y)}return this.AABBBounds.contains(t,e)}shouldUpdateAABBBounds(){return!!super.shouldUpdateAABBBounds()||!!(this._childUpdateTag&oe.UPDATE_BOUNDS)}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;Q.graphicService.beforeUpdateAABBBounds(this,this.stage,!0,this._AABBBounds);const t=this.shouldSelfChangeUpdateAABBBounds(),e=this.doUpdateAABBBounds();return this.addUpdateLayoutTag(),Q.graphicService.afterUpdateAABBBounds(this,this.stage,this._AABBBounds,this,t),e}doUpdateLocalMatrix(){const{x:t=fi.x,y:e=fi.y,dx:i=fi.dx,dy:s=fi.dy,scaleX:r=fi.scaleX,scaleY:a=fi.scaleY,angle:o=fi.angle,postMatrix:l}=this.attribute;if(t!==0||e!==0||i!==0||s!==0||r!==1||a!==1||o!==0||l)return super.doUpdateLocalMatrix();this._transMatrix.reset()}doUpdateAABBBounds(){const t=this.attribute,e=st(this).group;this._AABBBounds.clear();const i=Q.graphicService.updateGroupAABBBounds(t,e,this._AABBBounds,this),{boundsPadding:s=e.boundsPadding}=t,r=Bi(s);return r&&i.expand(r),this.parent&&this.parent.addChildUpdateBoundTag(),this.clearUpdateBoundTag(),this._emitCustomEvent("AAABBBoundsChange"),i}clearUpdateBoundTag(){this._updateTag&=oe.CLEAR_BOUNDS,this._childUpdateTag&=oe.CLEAR_BOUNDS}tryUpdateOBBBounds(){throw new Error("暂不支持")}addUpdateBoundTag(){this._updateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag()}addChildUpdateBoundTag(){this._childUpdateTag&oe.UPDATE_BOUNDS||(this._childUpdateTag|=oe.UPDATE_BOUNDS,this.parent&&this.parent.addChildUpdateBoundTag())}getTheme(){return this.theme.getTheme(this)}incrementalAppendChild(t){const e=super.appendChild(t);return this.stage&&e&&(e.stage=this.stage,e.layer=this.layer),this.addUpdateBoundTag(),Q.graphicService.onAddIncremental(t,this,this.stage),e}incrementalClearChild(){super.removeAllChild(),this.addUpdateBoundTag(),Q.graphicService.onClearIncremental(this,this.stage)}appendChild(t,e=!0){const i=super.appendChild(t);return e&&this.stage&&i&&i.setStage(this.stage,this.layer),this.addUpdateBoundTag(),i}insertBefore(t,e){const i=super.insertBefore(t,e);return this.stage&&i&&i.setStage(this.stage,this.layer),this.addUpdateBoundTag(),i}insertAfter(t,e){const i=super.insertAfter(t,e);return this.stage&&i&&i.setStage(this.stage,this.layer),this.addUpdateBoundTag(),i}insertInto(t,e){const i=super.insertInto(t,e);return this.stage&&i&&i.setStage(this.stage,this.layer),this.addUpdateBoundTag(),i}removeChild(t){const e=super.removeChild(t);return t.stage=null,Q.graphicService.onRemove(t),this.addUpdateBoundTag(),e}removeAllChild(t=!1){this.forEachChildren(e=>{Q.graphicService.onRemove(e),t&&e.isContainer&&e.removeAllChild(t)}),super.removeAllChild(),this.addUpdateBoundTag()}setStage(t,e){this.stage!==t&&(this.stage=t,this.layer=e,this.setStageToShadowRoot(t,e),this._onSetStage&&this._onSetStage(this,t,e),Q.graphicService.onSetStage(this,t),this.forEachChildren(i=>{i.setStage(t,this.layer)}))}addUpdatePositionTag(){super.addUpdatePositionTag(),this.forEachChildren(t=>{t.isContainer&&t.addUpdateGlobalPositionTag()})}addUpdateGlobalPositionTag(){super.addUpdateGlobalPositionTag(),this.forEachChildren(t=>{t.isContainer&&t.addUpdateGlobalPositionTag()})}tryUpdateGlobalTransMatrix(t=!0){if(this.shouldUpdateGlobalMatrix()){if(this._globalTransMatrix){if(this.parent){const e=this.parent.globalTransMatrix;this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f)}}else this._globalTransMatrix=this.parent?this.parent.globalTransMatrix.clone():this.transMatrix.clone();this.doUpdateGlobalMatrix(),t&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}shouldUpdateGlobalMatrix(){return!!(this._updateTag&oe.UPDATE_GLOBAL_MATRIX)}_getChildByName(t,e){return this.find(i=>i.name===t,e)}createOrUpdateChild(t,e,i){let s=this._getChildByName(t);return s?s.setAttributes(e):(s=Q.graphicService.creator[i](e),s.name=t,this.add(s)),s}clone(){return new iy(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return iy.NOWORK_ANIMATE_ATTR}};Ch.NOWORK_ANIMATE_ATTR=Li;function xx(n){return new Ch(n)}class zH extends Ch{get offscreen(){return this.layerHandler.offscreen}get layerMode(){return this.layerHandler.type}get width(){return this.stage?this.stage.width:0}get height(){return this.stage?this.stage.height:0}get viewWidth(){return this.stage?this.stage.viewWidth:0}get viewHeight(){return this.stage?this.stage.viewHeight:0}get dirtyBound(){throw new Error("暂不支持")}get dpr(){return this._dpr}constructor(t,e,i,s){var r;super({}),this.stage=t,this.global=e,this.window=i,this.main=s.main,this.layerHandler=s.layerHandler,this.layerHandler.init(this,i,{main:s.main,canvasId:s.canvasId,width:this.viewWidth,height:this.viewHeight,zIndex:(r=s.zIndex)!==null&&r!==void 0?r:0}),this.layer=this,this.subLayers=new Map,this.theme=new bc,this.background="rgba(0, 0, 0, 0)",this.afterDrawCbs=[]}combineSubLayer(t=!0){const e=Array.from(this.subLayers.values()).sort((i,s)=>i.zIndex-s.zIndex);this.layerHandler.merge(e.map(i=>(i.layer.subLayers.size&&i.layer.combineSubLayer(t),i.layer.getNativeHandler()))),t&&e.forEach(i=>{i.group&&(i.group.incremental=0)}),e.forEach(i=>{Q.layerService.releaseLayer(this.stage,i.layer)}),this.subLayers.clear()}getNativeHandler(){return this.layerHandler}setStage(t,e){super.setStage(t,this)}pick(t,e){throw new Error("暂不支持")}tryRenderSecondaryLayer(t,e){this.layerHandler.secondaryHandlers&&this.layerHandler.secondaryHandlers.length&&this.layerHandler.secondaryHandlers.forEach(i=>{i.layer.renderCount=this.renderCount,i.layer.render(t,e)})}render(t,e){var i;this.layerHandler.render([this],{renderService:t.renderService,stage:this.stage,layer:this,viewBox:t.viewBox,transMatrix:t.transMatrix,background:(i=t.background)!==null&&i!==void 0?i:this.background,updateBounds:t.updateBounds},e),this.afterDrawCbs.forEach(s=>s(this)),this.tryRenderSecondaryLayer(t,e)}resize(t,e){this.layerHandler.resize(t,e)}resizeView(t,e){this.layerHandler.resizeView(t,e)}setDpr(t){this.layerHandler.setDpr(t)}afterDraw(t){this.afterDrawCbs.push(t)}startAnimate(t){throw new Error("暂不支持")}setToFrame(t){throw new Error("暂不支持")}prepare(t,e){}release(){super.release(),this.layerHandler.release(),this.subLayers&&this.subLayers.forEach(t=>{Q.layerService.releaseLayer(this.stage,t.layer)})}drawTo(t,e){var i;this.layerHandler.drawTo(t,[this],Object.assign({background:(i=e.background)!==null&&i!==void 0?i:this.background,renderService:e.renderService,viewBox:e.viewBox,transMatrix:e.transMatrix,stage:this.stage,layer:this},e)),this.afterDrawCbs.forEach(s=>s(this))}}const OR=Symbol.for("TransformUtil"),LR=Symbol.for("GraphicUtil"),Sx=Symbol.for("LayerService"),DR=Symbol.for("StaticLayerHandlerContribution"),FR=Symbol.for("DynamicLayerHandlerContribution"),zR=Symbol.for("VirtualLayerHandlerContribution");var hd,jH=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},HH=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let dd=hd=class{static GenerateLayerId(){return`${hd.idprefix}_${hd.prefix_count++}`}constructor(){this.layerMap=new Map,this.global=Q.global}tryInit(){this.inited||(this.staticLayerCountInEnv=this.global.getStaticCanvasCount(),this.dynamicLayerCountInEnv=this.global.getDynamicCanvasCount(),this.inited=!0)}getStageLayer(n){return this.layerMap.get(n)}getRecommendedLayerType(n){return n||(this.staticLayerCountInEnv!==0?"static":this.dynamicLayerCountInEnv!==0?"dynamic":"virtual")}getLayerHandler(n){let t;return t=n==="static"?Mt.get(DR):n==="dynamic"?Mt.get(FR):Mt.get(zR),t}createLayer(n,t={main:!1}){var e;this.tryInit();let i=this.getRecommendedLayerType(t.layerMode);i=t.main||t.canvasId?"static":i;const s=this.getLayerHandler(i),r=new zH(n,this.global,n.window,Object.assign(Object.assign({main:!1},t),{layerMode:i,canvasId:(e=t.canvasId)!==null&&e!==void 0?e:hd.GenerateLayerId(),layerHandler:s})),a=this.layerMap.get(n)||[];return a.push(r),this.layerMap.set(n,a),this.staticLayerCountInEnv--,r}prepareStageLayer(n){let t;n.forEachChildren(e=>{const i=e.getNativeHandler();i.type==="virtual"?(i.mainHandler=t,t.secondaryHandlers.push(i)):(t=i,t.secondaryHandlers=[])})}releaseLayer(n,t){t.release();const e=this.layerMap.get(n)||[];this.layerMap.set(n,e.filter(i=>i!==t))}layerCount(n){return(this.layerMap.get(n)||[]).length}restLayerCount(n){return this.global.env==="browser"?10:0}releaseStage(n){this.layerMap.delete(n)}};dd.idprefix="visactor_layer",dd.prefix_count=0,dd=hd=jH([gt(),HH("design:paramtypes",[])],dd);const VH=new wt(n=>{n(hx).to(Vv).inSingletonScope(),n(pg).to(qv),n(LR).to(Zv).inSingletonScope(),n(OR).to(Jv).inSingletonScope(),n(Sx).to(dd).inSingletonScope()});function $o(n,t){return!(!n&&!t)}function Ph(n,t){let e;return e=V(n)?n.some(i=>i||i===void 0):!!n,e&&t>0}function Mo(n,t,e){return e&&n*t>0}function Ax(n,t,e,i,s){return s&&n*t>0&&e!==0&&i!==0}function kx(n,t){return n*t>0}function Tx(n,t,e,i){return n*t>0&&e!==0&&i!==0}function WH(n,t,e,i,s,r,a,o){if(!n.pathProxy)return!1;const l=st(n,r==null?void 0:r.theme)[n.type.replace("3d","")],{fill:h=l.fill,stroke:d=l.stroke,opacity:c=l.opacity,fillOpacity:u=l.fillOpacity,lineWidth:p=l.lineWidth,strokeOpacity:g=l.strokeOpacity,visible:f=l.visible,x:_=l.x,y:m=l.y}=n.attribute,y=Mo(c,u,h),b=kx(c,g),v=$o(h),x=Ph(d,p);if(!f||!v&&!x||!(y||b||a||o))return!0;t.beginPath();const S=typeof n.pathProxy=="function"?n.pathProxy(n.attribute):n.pathProxy;return fr(S.commandList,t,e,i),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),x&&b&&(t.setStrokeStyle(n,n.attribute,e-_,i-m,l),t.stroke()),v&&y&&(t.setCommonStyle(n,n.attribute,e-_,i-m,l),t.fill()),!0}function jR(n,t,e,i,s,r,a,o){const l=e-n,h=i-t,d=a-s,c=o-r;let u=c*l-d*h;return u*u<$t?[]:(u=(d*(t-r)-c*(n-s))/u,[n+u*l,t+u*h])}function ta(n,t,e,i,s,r,a){const o=n-e,l=t-i,h=(a?r:-r)/Math.sqrt(o*o+l*l),d=h*l,c=-h*o,u=n+d,p=t+c,g=e+d,f=i+c,_=(u+g)/2,m=(p+f)/2,y=g-u,b=f-p,v=y*y+b*b,x=s-r,S=u*f-g*p,k=(b<0?-1:1)*Math.sqrt(Math.max(0,x*x*v-S*S));let A=(S*b-y*k)/v,T=(-S*y-b*k)/v;const M=(S*b+y*k)/v,w=(-S*y+b*k)/v,E=A-_,R=T-m,O=M-_,B=w-m;return E*E+R*R>O*O+B*B&&(A=M,T=w),{cx:A,cy:T,x01:-d,y01:-c,x11:A*(s/x-1),y11:T*(s/x-1)}}function vg(n,t,e,i,s,r,a){const{startAngle:o,endAngle:l}=n.getParsedAngle(),h=Gt(l-o),d=l>o;let c=!1;if(s=Dt-$t)t.moveTo(e+s*se(o),i+s*Kt(o)),t.arc(e,i,s,o,l,!d),r>$t&&(t.moveTo(e+r*se(l),i+r*Kt(l)),t.arc(e,i,r,l,o,d));else{const u=n.getParsedCornerRadius(),p=V(u),{outerDeltaAngle:g,innerDeltaAngle:f,outerStartAngle:_,outerEndAngle:m,innerEndAngle:y,innerStartAngle:b}=n.getParsePadAngle(o,l),v=p?u[0]:u,x=p?u[1]:u,S=p?u[2]:u,k=p?u[3]:u,A=Math.max(x,v),T=Math.max(S,k);let M=A,w=T;const E=s*se(_),R=s*Kt(_),O=r*se(y),B=r*Kt(y);let I,D,F,$;if((T>$t||A>$t)&&(I=s*se(m),D=s*Kt(m),F=r*se(b),$=r*Kt(b),h$t){const K=ki(v,M),W=ki(x,M),et=ta(F,$,E,R,s,K,Number(d)),Z=ta(I,D,O,B,s,W,Number(d));M0&&t.arc(e+et.cx,i+et.cy,K,ne(et.y01,et.x01),ne(et.y11,et.x11),!d),t.arc(e,i,s,ne(et.cy+et.y11,et.cx+et.x11),ne(Z.cy+Z.y11,Z.cx+Z.x11),!d),W>0&&t.arc(e+Z.cx,i+Z.cy,W,ne(Z.y11,Z.x11),ne(Z.y01,Z.x01),!d)):W>0?t.moveTo(e+Z.cx+W*se(ne(Z.y01,Z.x01)),i+Z.cy+W*Kt(ne(Z.y01,Z.x01))):t.moveTo(e+I,i+s*Kt(m))}else!a||a[0]?(t.moveTo(e+E,i+R),t.arc(e,i,s,_,m,!d)):t.moveTo(e+s*se(m),i+s*Kt(m));if(!(r>$t)||f<.001)!a||a[1]?t.lineTo(e+O,i+B):t.moveTo(e+O,i+B),c=!0;else if(w>$t){const K=ki(k,w),W=ki(S,w),et=ta(O,B,I,D,r,-W,Number(d)),Z=ta(E,R,F,$,r,-K,Number(d));if(!a||a[1]?t.lineTo(e+et.cx+et.x01,i+et.cy+et.y01):t.moveTo(e+et.cx+et.x01,i+et.cy+et.y01),w0&&t.arc(e+et.cx,i+et.cy,W,ne(et.y01,et.x01),ne(et.y11,et.x11),!d),t.arc(e,i,r,ne(et.cy+et.y11,et.cx+et.x11),ne(Z.cy+Z.y11,Z.cx+Z.x11),d),K>0&&t.arc(e+Z.cx,i+Z.cy,K,ne(Z.y11,Z.x11),ne(Z.y01,Z.x01),!d)):K>0?t.moveTo(e+Z.cx+K*se(ne(Z.y01,Z.x01)),i+Z.cy+K*Kt(ne(Z.y01,Z.x01))):t.moveTo(e+F,i+$)}else!a||a[1]?t.lineTo(e+O,i+B):t.moveTo(e+O,i+B),!a||a[2]?t.arc(e,i,r,y,b,d):t.moveTo(e+r*se(b),i+r*Kt(b))}return a?a[3]&&t.lineTo(e+s*se(o),i+s*Kt(o)):t.closePath(),c}class $n{static GetCanvas(){try{return $n.canvas||($n.canvas=Q.global.createCanvas({})),$n.canvas}catch{return null}}static GetCtx(){if(!$n.ctx){const t=$n.GetCanvas();$n.ctx=t.getContext("2d")}return $n.ctx}}class Qa extends AF{static getInstance(){return Qa._instance||(Qa._instance=new Qa),Qa._instance}constructor(t=[],e=100){super(),this.cacheParams={CLEAN_THRESHOLD:100,L_TIME:1e3},this.dataMap=new Map;const i=$n.GetCanvas(),s=$n.GetCtx();if(i.width=e,i.height=1,!s)return;if(s.translate(0,0),!s)throw new Error("获取ctx发生错误");const r=s.createLinearGradient(0,0,e,0);t.forEach(a=>{r.addColorStop(a[0],a[1])}),s.fillStyle=r,s.fillRect(0,0,e,1),this.rgbaSet=s.getImageData(0,0,e,1).data}getColor(t){const e=this.rgbaSet.slice(4*t,4*t+4);return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]/255})`}GetOrCreate(t,e,i,s,r=[],a=100){let o=`${t}${e}${i}${s}`;r.forEach(h=>o+=h.join()),o+=a;let l=this.dataMap.get(o);return l||(l={data:new Qa(r,a),timestamp:[]},this.addLimitedTimestamp(l,Date.now(),{}),this.dataMap.set(o,l)),this.clearCache(this.dataMap,this.cacheParams),l.data}}class Wi{static GetSize(t){for(let e=0;e=t)return Wi.ImageSize[e];return t}static Get(t,e,i,s,r,a,o){const l=Wi.GenKey(t,e,i,s,r),h=Wi.cache[l];if(!h||h.length===0)return null;for(let d=0;d=a&&h[d].height>=o)return h[d].pattern;return null}static Set(t,e,i,s,r,a,o,l){const h=Wi.GenKey(t,e,i,s,r);Wi.cache[h]?Wi.cache[h].push({width:o,height:l,pattern:a}):Wi.cache[h]=[{width:o,height:l,pattern:a}]}static GenKey(t,e,i,s,r){return`${e},${i},${s},${r},${t.join()}`}}Wi.cache={},Wi.ImageSize=[20,40,80,160,320,640,1280,2560];function NH(n,t,e,i){const{stops:s,startAngle:r,endAngle:a}=i;for(;e<0;)e+=Dt;for(;e>Dt;)e-=Dt;if(ea)return s[0].color;let o,l,h=(e-r)/(a-r);for(let d=0;d=h){o=s[d-1],l=s[d];break}return h=(h-o.offset)/(l.offset-o.offset),ho(o.color,l.color,h,!1)}function GH(n,t,e,i,s,r,a,o,l){const h=Math.floor(180*s/Math.PI),d=$n.GetCanvas(),c=$n.GetCtx();if(!c)return null;const u=Wi.GetSize(o),p=Wi.GetSize(l);let g=Wi.Get(t,e,i,r,a,u,p);if(g)return g;const f=Math.sqrt(Math.max(Math.max(Math.pow(e,2)+Math.pow(i,2),Math.pow(u-e,2)+Math.pow(i,2)),Math.max(Math.pow(u-e,2)+Math.pow(p-i,2),Math.pow(e,2)+Math.pow(p-i,2)))),_=h+1,m=s/Math.max(1,_-1),y=Qa.getInstance().GetOrCreate(e,i,u,p,t,_),b=2*Math.PI*f/360;d.width=u,d.height=p,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,u,p),c.translate(e,i),c.rotate(r);for(let x=0,S=_-1;xa);x++){const k=y.getColor(x);c.beginPath(),c.rotate(m),c.moveTo(0,0),c.lineTo(f,-2*b),c.lineTo(f,0),c.fillStyle=k,c.closePath(),c.fill()}const v=c.getImageData(0,0,u,p);return d.width=v.width,d.height=v.height,c.putImageData(v,0,0),g=n.createPattern(d,"no-repeat"),g&&Wi.Set(t,e,i,r,a,g,u,p),g}const ny=Symbol.for("ArcRenderContribution"),sy=Symbol.for("AreaRenderContribution"),ry=Symbol.for("CircleRenderContribution"),HR=Symbol.for("GroupRenderContribution"),ay=Symbol.for("ImageRenderContribution"),oy=Symbol.for("PathRenderContribution"),ly=Symbol.for("PolygonRenderContribution"),cd=Symbol.for("RectRenderContribution"),hy=Symbol.for("SymbolRenderContribution"),dy=Symbol.for("TextRenderContribution"),Mx=Symbol.for("InteractiveSubRenderContribution"),IA=["radius","startAngle","endAngle",...Hn];class Sc extends Zi{constructor(t={radius:1}){super(t),this.type="circle",this.numberType=$_}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:t,endAngle:e,radius:i}=this.attribute;return this._validNumber(t)&&this._validNumber(e)&&this._validNumber(i)}doUpdateAABBBounds(t){const e=st(this).circle;this._AABBBounds.clear();const i=this.attribute,s=Q.graphicService.updateCircleAABBBounds(i,st(this).circle,this._AABBBounds,t,this),{boundsPadding:r=e.boundsPadding}=i,a=Bi(r);return a&&s.expand(a),this.clearUpdateBoundTag(),s}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).circle[t]}needUpdateTags(t){return super.needUpdateTags(t,IA)}needUpdateTag(t){return super.needUpdateTag(t,IA)}toCustomPath(){var t,e,i;const s=this.attribute,r=(t=s.radius)!==null&&t!==void 0?t:this.getDefaultAttribute("radius"),a=(e=s.startAngle)!==null&&e!==void 0?e:this.getDefaultAttribute("startAngle"),o=(i=s.endAngle)!==null&&i!==void 0?i:this.getDefaultAttribute("endAngle"),l=new Pe;return l.arc(0,0,r,a,o),l}clone(){return new Sc(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return Sc.NOWORK_ANIMATE_ATTR}}Sc.NOWORK_ANIMATE_ATTR=Li;function UH(n){return new Sc(n)}function cy(n,t={},e){e||(e=1);const{fontStyle:i=t.fontStyle,fontVariant:s=t.fontVariant,fontWeight:r=t.fontWeight,fontSize:a=t.fontSize,fontFamily:o=t.fontFamily}=n;return(i?i+" ":"")+(s?s+" ":"")+(r?r+" ":"")+a*e+"px "+(o||"sans-serif")}function $H(n,t){return n==="top"?Math.ceil(.79*t):n==="middle"?Math.round(.3*t):n==="bottom"?Math.round(-.21*t):0}function hr(n,t){return n==="end"||n==="right"?-t:n==="center"?-t/2:0}function Bs(n,t,e,i=0){return n==="middle"?-t/2:n==="top"?0:n==="bottom"?i-t:n&&n!=="alphabetic"?0:(e||(e=t),-(t-e)/2-.79*e)}function YH(n){const t={},e=i=>/^\d+(\.\d+)?$/.test(`${i}`)?`${i}px`:`${i}`;return["textAlign","fontFamily","fontVariant","fontStyle","fontWeight"].forEach(i=>{n[i]&&(t[y1(i)]=n[i])}),["fontSize","lineHeight"].forEach(i=>{const s=y1(i);C(n[i])||(t[s]=e(n[i]))}),P(n.maxLineWidth)&&(t["max-width"]=e(n.maxLineWidth)),n.underline?t["text-decoration"]="underline":n.lineThrough&&(t["text-decoration"]="line-through"),n.fill&&at(n.fill)&&(t.color=n.fill),t}class OA{constructor(t,e,i){this.fontFamily=t,this.textOptions=e,this.textMeasure=i}LayoutBBox(t,e,i){if(e==="left"||e==="start")t.xOffset=0;else if(e==="center")t.xOffset=t.width/-2;else{if(e!=="right"&&e!=="end")throw new Error("非法的textAlign");t.xOffset=-t.width}return t.yOffset=i==="top"?0:i==="middle"?t.height/-2:i==="alphabetic"?-.79*t.height:-t.height,t}GetLayout(t,e,i,s,r,a,o,l,h){const d=[],c=[e,i],u=[0,0];for(;t.length>0;){const{str:g}=this.textMeasure.clipTextWithSuffix(t,this.textOptions,e,o,l,h);d.push({str:g,width:this.textMeasure.measureTextWidth(g,this.textOptions)}),t=t.substring(g.length)}s==="left"||s==="start"||(s==="center"?u[0]=c[0]/-2:s!=="right"&&s!=="end"||(u[0]=-c[0])),r==="top"||(r==="middle"?u[1]=c[1]/-2:r==="bottom"&&(u[1]=-c[1]));const p={xOffset:u[0],yOffset:u[1],width:c[0],height:c[1]};return this.layoutWithBBox(p,d,s,r,a)}GetLayoutByLines(t,e,i,s,r="",a,o,l="end"){t=t.map(u=>u.toString());const h=[],d=[0,0];if(typeof o=="number"&&o!==1/0){let u;for(let p=0,g=t.length;pMath.max(u,p.width),0);const c={xOffset:0,yOffset:0,width:d[0],height:d[1]};return this.LayoutBBox(c,e,i),this.layoutWithBBox(c,h,e,i,s)}layoutWithBBox(t,e,i,s,r){const a=[0,0],o=e.length*r;s==="top"||(s==="middle"?a[1]=(t.height-o)/2:s==="bottom"&&(a[1]=t.height-o));for(let l=0;ls.text).join("")!==e.text.toString():this.clipedText!=null&&this.clipedText!==e.text.toString())}get multilineLayout(){if(this.isMultiLine)return this.tryUpdateAABBBounds(),this.cache.layoutData}isSimplify(){return!this.isMultiLine&&this.attribute.direction!=="vertical"}get isMultiLine(){return Array.isArray(this.attribute.text)||this.attribute.whiteSpace==="normal"}constructor(t={text:"",fontSize:16}){super(t),this.type="text",this.numberType=Q_,this.cache={}}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{text:t}=this.attribute;return V(t)?!t.every(e=>e==null||e===""):t!=null&&t!==""}doUpdateAABBBounds(){const t=st(this).text;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateTextAABBBounds(e,t,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=this.attribute,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}updateWrapAABBBounds(t){var e,i,s,r;const a=st(this).text,{fontFamily:o=a.fontFamily,textAlign:l=a.textAlign,textBaseline:h=a.textBaseline,fontSize:d=a.fontSize,ellipsis:c=a.ellipsis,maxLineWidth:u,stroke:p=a.stroke,lineWidth:g=a.lineWidth,wordBreak:f=a.wordBreak,fontWeight:_=a.fontWeight,ignoreBuf:m=a.ignoreBuf,suffixPosition:y=a.suffixPosition,heightLimit:b=0,lineClamp:v}=this.attribute,x=(e=pr(this.attribute.lineHeight,this.attribute.fontSize||a.fontSize))!==null&&e!==void 0?e:this.attribute.fontSize||a.fontSize,S=m?0:2;if(!this.shouldUpdateShape()&&(!((i=this.cache)===null||i===void 0)&&i.layoutData)){const B=this.cache.layoutData.bbox;return this._AABBBounds.set(B.xOffset,B.yOffset,B.xOffset+B.width,B.yOffset+B.height),p&&this._AABBBounds.expand(g/2),this._AABBBounds}const k=Q.graphicUtil.textMeasure,A=new OA(o,{fontSize:d,fontWeight:_,fontFamily:o},k),T=V(t)?t.map(B=>B.toString()):[t.toString()],M=[],w=[0,0];let E=1/0;if(b>0&&(E=Math.max(Math.floor(b/x),1)),v&&(E=Math.min(E,v)),typeof u=="number"&&u!==1/0){if(u>0)for(let I=0;I{B=Math.max(B,I.width)}),w[0]=B}else{let B,I,D=0;for(let F=0,$=T.length;F<$;F++){if(F===E-1){const K=A.textMeasure.clipTextWithSuffix(T[F],A.textOptions,u,c,!1,y);M.push({str:K.str,width:K.width}),D=Math.max(D,K.width);break}I=T[F],B=A.textMeasure.measureTextWidth(I,A.textOptions,f==="break-word"),D=Math.max(D,B),M.push({str:I,width:B})}w[0]=D}w[1]=M.length*(x+S);const R={xOffset:0,yOffset:0,width:w[0],height:w[1]};A.LayoutBBox(R,l,h);const O=A.layoutWithBBox(R,M,l,h,x);return this.cache.layoutData=O,this.clearUpdateShapeTag(),this._AABBBounds.set(R.xOffset,R.yOffset,R.xOffset+R.width,R.yOffset+R.height),p&&this._AABBBounds.expand(g/2),this._AABBBounds}updateSingallineAABBBounds(t){const e=st(this).text,{direction:i=e.direction,underlineOffset:s=e.underlineOffset}=this.attribute,r=i==="horizontal"?this.updateHorizontalSinglelineAABBBounds(t):this.updateVerticalSinglelineAABBBounds(t);return i==="horizontal"&&s&&this._AABBBounds.add(this._AABBBounds.x1,this._AABBBounds.y2+s),r}updateMultilineAABBBounds(t){const e=st(this).text,{direction:i=e.direction,underlineOffset:s=e.underlineOffset}=this.attribute,r=i==="horizontal"?this.updateHorizontalMultilineAABBBounds(t):this.updateVerticalMultilineAABBBounds(t);return i==="horizontal"&&s&&this._AABBBounds.add(this._AABBBounds.x1,this._AABBBounds.y2+s),r}updateHorizontalSinglelineAABBBounds(t){var e,i;const s=st(this).text,{wrap:r=s.wrap}=this.attribute;if(r)return this.updateWrapAABBBounds([t]);const a=Q.graphicUtil.textMeasure;let o,l;const h=this.attribute,{maxLineWidth:d=s.maxLineWidth,ellipsis:c=s.ellipsis,textAlign:u=s.textAlign,textBaseline:p=s.textBaseline,fontFamily:g=s.fontFamily,fontSize:f=s.fontSize,fontWeight:_=s.fontWeight,stroke:m=s.stroke,lineWidth:y=s.lineWidth,ignoreBuf:b=s.ignoreBuf,whiteSpace:v=s.whiteSpace,suffixPosition:x=s.suffixPosition}=h;if(v==="normal")return this.updateWrapAABBBounds(t);const S=b?0:Math.max(2,.075*f),k=h.fontSize||s.fontSize,A=(e=pr(h.lineHeight,k))!==null&&e!==void 0?e:k+S;if(!this.shouldUpdateShape()&&this.cache){o=(i=this.cache.clipedWidth)!==null&&i!==void 0?i:0;const E=hr(u,o),R=Bs(p,A,f);return this._AABBBounds.set(E,R,E+o,R+A),m&&this._AABBBounds.expand(y/2),this._AABBBounds}if(Number.isFinite(d)){if(c){const E=c===!0?s.ellipsis:c,R=a.clipTextWithSuffix(t.toString(),{fontSize:f,fontWeight:_,fontFamily:g},d,E,!1,x);l=R.str,o=R.width}else{const E=a.clipText(t.toString(),{fontSize:f,fontWeight:_,fontFamily:g},d,!1);l=E.str,o=E.width}this.cache.clipedText=l,this.cache.clipedWidth=o}else o=a.measureTextWidth(t.toString(),{fontSize:f,fontWeight:_,fontFamily:g}),this.cache.clipedText=t.toString(),this.cache.clipedWidth=o;this.clearUpdateShapeTag();const T=hr(u,o);let M=A;Q.global&&Q.global.isSafari()&&(M+=.2*f);const w=Bs(p,M,f,S);return this._AABBBounds.set(T,w,T+o,w+M),m&&this._AABBBounds.expand(y/2),this._AABBBounds}getBaselineMapAlign(){return nr.baselineMapAlign}getAlignMapBaseline(){return nr.alignMapBaseline}updateVerticalSinglelineAABBBounds(t){var e,i,s;const r=st(this).text,a=Q.graphicUtil.textMeasure;let o;const l=this.attribute,{ignoreBuf:h=r.ignoreBuf}=l,d=h?0:2,{maxLineWidth:c=r.maxLineWidth,ellipsis:u=r.ellipsis,fontSize:p=r.fontSize,fontWeight:g=r.fontWeight,fontFamily:f=r.fontFamily,stroke:_=r.stroke,lineWidth:m=r.lineWidth,verticalMode:y=r.verticalMode,suffixPosition:b=r.suffixPosition}=l,v=(e=pr(l.lineHeight,l.fontSize||r.fontSize))!==null&&e!==void 0?e:(l.fontSize||r.fontSize)+d;let{textAlign:x=r.textAlign,textBaseline:S=r.textBaseline}=l;if(!y){const M=x;x=(i=nr.baselineMapAlign[S])!==null&&i!==void 0?i:"left",S=(s=nr.alignMapBaseline[M])!==null&&s!==void 0?s:"top"}if(!this.shouldUpdateShape()&&this.cache){o=this.cache.clipedWidth;const M=hr(x,o),w=Bs(S,v,p);return this._AABBBounds.set(w,M,w+v,M+o),_&&this._AABBBounds.expand(m/2),this._AABBBounds}let k=[RA(t.toString())];if(Number.isFinite(c)){if(u){const M=u===!0?r.ellipsis:u,w=a.clipTextWithSuffixVertical(k[0],{fontSize:p,fontWeight:g,fontFamily:f},c,M,!1,b);k=[w.verticalList],o=w.width}else{const M=a.clipTextVertical(k[0],{fontSize:p,fontWeight:g,fontFamily:f},c,!1);k=[M.verticalList],o=M.width}this.cache.verticalList=k,this.cache.clipedWidth=o}else o=0,k[0].forEach(M=>{const w=M.direction===co.HORIZONTAL?p:a.measureTextWidth(M.text,{fontSize:p,fontWeight:g,fontFamily:f});o+=w,M.width=w}),this.cache.verticalList=k,this.cache.clipedWidth=o;this.clearUpdateShapeTag();const A=hr(x,o),T=Bs(S,v,p);return this._AABBBounds.set(T,A,T+v,A+o),_&&this._AABBBounds.expand(m/2),this._AABBBounds}updateHorizontalMultilineAABBBounds(t){var e,i;const s=st(this).text,{wrap:r=s.wrap}=this.attribute;if(r)return this.updateWrapAABBBounds(t);const a=this.attribute,{fontFamily:o=s.fontFamily,textAlign:l=s.textAlign,textBaseline:h=s.textBaseline,fontSize:d=s.fontSize,fontWeight:c=s.fontWeight,ellipsis:u=s.ellipsis,maxLineWidth:p,stroke:g=s.stroke,lineWidth:f=s.lineWidth,whiteSpace:_=s.whiteSpace,suffixPosition:m=s.suffixPosition}=a,y=(e=pr(a.lineHeight,a.fontSize||s.fontSize))!==null&&e!==void 0?e:a.fontSize||s.fontSize;if(_==="normal")return this.updateWrapAABBBounds(t);if(!this.shouldUpdateShape()&&(!((i=this.cache)===null||i===void 0)&&i.layoutData)){const S=this.cache.layoutData.bbox;return this._AABBBounds.set(S.xOffset,S.yOffset,S.xOffset+S.width,S.yOffset+S.height),g&&this._AABBBounds.expand(f/2),this._AABBBounds}const b=Q.graphicUtil.textMeasure,v=new OA(o,{fontSize:d,fontWeight:c,fontFamily:o},b).GetLayoutByLines(t,l,h,y,u===!0?s.ellipsis:u||void 0,!1,p,m),{bbox:x}=v;return this.cache.layoutData=v,this.clearUpdateShapeTag(),this._AABBBounds.set(x.xOffset,x.yOffset,x.xOffset+x.width,x.yOffset+x.height),g&&this._AABBBounds.expand(f/2),this._AABBBounds}updateVerticalMultilineAABBBounds(t){var e,i,s;const r=st(this).text,a=Q.graphicUtil.textMeasure;let o;const l=this.attribute,{ignoreBuf:h=r.ignoreBuf}=l,d=h?0:2,{maxLineWidth:c=r.maxLineWidth,ellipsis:u=r.ellipsis,fontFamily:p=r.fontFamily,fontSize:g=r.fontSize,fontWeight:f=r.fontWeight,stroke:_=r.stroke,lineWidth:m=r.lineWidth,verticalMode:y=r.verticalMode,suffixPosition:b=r.suffixPosition}=l,v=(e=pr(l.lineHeight,l.fontSize||r.fontSize))!==null&&e!==void 0?e:(l.fontSize||r.fontSize)+d;let{textAlign:x=r.textAlign,textBaseline:S=r.textBaseline}=l;if(!y){const w=x;x=(i=nr.baselineMapAlign[S])!==null&&i!==void 0?i:"left",S=(s=nr.alignMapBaseline[w])!==null&&s!==void 0?s:"top"}if(o=0,!this.shouldUpdateShape()&&this.cache){this.cache.verticalList.forEach(O=>{const B=O.reduce((I,D)=>I+D.width,0);o=sn(B,o)});const w=hr(x,o),E=this.cache.verticalList.length*v,R=Bs(S,E,g);return this._AABBBounds.set(R,w,R+E,w+o),_&&this._AABBBounds.expand(m/2),this._AABBBounds}const k=t.map(w=>RA(w.toString()));k.forEach((w,E)=>{if(Number.isFinite(c))if(u){const R=u===!0?r.ellipsis:u,O=a.clipTextWithSuffixVertical(w,{fontSize:g,fontWeight:f,fontFamily:p},c,R,!1,b);k[E]=O.verticalList,o=O.width}else{const R=a.clipTextVertical(w,{fontSize:g,fontWeight:f,fontFamily:p},c,!1);k[E]=R.verticalList,o=R.width}else o=0,w.forEach(R=>{const O=R.direction===co.HORIZONTAL?g:a.measureTextWidth(R.text,{fontSize:g,fontWeight:f,fontFamily:p});o+=O,R.width=O})}),this.cache.verticalList=k,this.clearUpdateShapeTag(),this.cache.verticalList.forEach(w=>{const E=w.reduce((R,O)=>R+O.width,0);o=sn(E,o)});const A=hr(x,o),T=this.cache.verticalList.length*v,M=Bs(S,T,g);return this._AABBBounds.set(M,A,M+T,A+o),_&&this._AABBBounds.expand(m/2),this._AABBBounds}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).text[t]}needUpdateTags(t,e=LA){return super.needUpdateTags(t,e)}needUpdateTag(t,e=LA){return super.needUpdateTag(t,e)}clone(){return new nr(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return nr.NOWORK_ANIMATE_ATTR}};zp.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,direction:1,textAlign:1,textBaseline:1,fontFamily:1,fontWeight:1},Li),zp.baselineMapAlign={top:"left",bottom:"right",middle:"center"},zp.alignMapBaseline={left:"top",right:"bottom",center:"middle"};function ih(n){return new zp(n)}class si{bounds(t,e){if(nt(t)){const i=t/2;e.x1=-i,e.x2=i,e.y1=-i,e.y2=i}else e.x1=-t[0]/2,e.x2=t[0]/2,e.y1=-t[1]/2,e.y2=t[1]/2}}function DA(n,t,e,i,s){return s?n.arc(e,i,t,0,li,!1,s):n.arc(e,i,t,0,li),!1}class XH extends si{constructor(){super(...arguments),this.type="circle",this.pathStr="M0.5,0A0.5,0.5,0,1,1,-0.5,0A0.5,0.5,0,1,1,0.5,0"}draw(t,e,i,s,r){return DA(t,e/2,i,s,r)}drawOffset(t,e,i,s,r,a){return DA(t,e/2+r,i,s,a)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i} a ${r},${r} 0 1,0 ${2*r},0 a ${r},${r} 0 1,0 -${2*r},0`}}const KH=new XH;function qH(n,t,e,i,s){return n.moveTo(-3*t+e,-t+i,s),n.lineTo(-t+e,-t+i,s),n.lineTo(-t+e,-3*t+i,s),n.lineTo(t+e,-3*t+i,s),n.lineTo(t+e,-t+i,s),n.lineTo(3*t+e,-t+i,s),n.lineTo(3*t+e,t+i,s),n.lineTo(t+e,t+i,s),n.lineTo(t+e,3*t+i,s),n.lineTo(-t+e,3*t+i,s),n.lineTo(-t+e,t+i,s),n.lineTo(-3*t+e,t+i,s),n.closePath(),!0}function ZH(n,t,e,i,s,r){return n.moveTo(-3*t+e-s,-t+i-s,r),n.lineTo(-t+e-s,-t+i-s,r),n.lineTo(-t+e-s,-3*t+i-s,r),n.lineTo(t+e+s,-3*t+i-s,r),n.lineTo(t+e+s,-t+i-s,r),n.lineTo(3*t+e+s,-t+i-s,r),n.lineTo(3*t+e+s,t+i+s,r),n.lineTo(t+e+s,t+i+s,r),n.lineTo(t+e+s,3*t+i+s,r),n.lineTo(-t+e-s,3*t+i+s,r),n.lineTo(-t+e-s,t+i+s,r),n.lineTo(-3*t+e-s,t+i+s,r),n.closePath(),!0}class JH extends si{constructor(){super(...arguments),this.type="cross",this.pathStr="M-0.5,-0.2L-0.5,0.2L-0.2,0.2L-0.2,0.5L0.2,0.5L0.2,0.2L0.5,0.2L0.5,-0.2L0.2,-0.2L0.2,-0.5L-0.2,-0.5L-0.2,-0.2Z"}draw(t,e,i,s,r){return qH(t,e/6,i,s,r)}drawOffset(t,e,i,s,r,a){return ZH(t,e/6,i,s,r,a)}}const QH=new JH;function B0(n,t,e,i,s){return n.moveTo(e,i-t,s),n.lineTo(t+e,i,s),n.lineTo(e,i+t,s),n.lineTo(e-t,i,s),n.closePath(),!0}class tV extends si{constructor(){super(...arguments),this.type="diamond",this.pathStr="M-0.5,0L0,-0.5L0.5,0L0,0.5Z"}draw(t,e,i,s,r){return B0(t,e/2,i,s,r)}drawFitDir(t,e,i,s,r){return B0(t,e/2,i,s,r)}drawOffset(t,e,i,s,r,a){return B0(t,e/2+r,i,s,a)}}const eV=new tV;function FA(n,t,e,i){const s=2*t;return n.rect(e-t,i-t,s,s),!1}class iV extends si{constructor(){super(...arguments),this.type="square",this.pathStr="M-0.5,-0.5h1v1h-1Z"}draw(t,e,i,s){return FA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return FA(t,e/2+r,i,s)}}const nV=new iV;function sV(n,t,e,i){return n.moveTo(e+t,t+i),n.lineTo(e-t,t+i),n.lineTo(e,i-t),n.closePath(),!0}function rV(n,t,e,i,s){return n.moveTo(e+t+2*s,t+i+s),n.lineTo(e-t-2*s,t+i+s),n.lineTo(e,i-t-2*s),n.closePath(),!0}class wx extends si{constructor(){super(...arguments),this.type="triangleUp",this.pathStr="M0.5,0.5 L-0.5,0.5 L0,-0.5 Z"}draw(t,e,i,s){return sV(t,e/2,i,s)}drawOffset(t,e,i,s,r){return rV(t,e/2,i,s,r)}}const aV=new wx;class oV extends wx{constructor(){super(...arguments),this.type="triangle"}}const lV=new oV,VR=Math.sin(Math.PI/10)/Math.sin(7*Math.PI/10),hV=Math.sin(li/10)*VR,dV=-Math.cos(li/10)*VR;function zA(n,t,e,i){const s=hV*t,r=dV*t;n.moveTo(e,-t+i),n.lineTo(s+e,r+i);for(let a=1;a<5;++a){const o=li*a/5,l=Math.cos(o),h=Math.sin(o);n.lineTo(h*t+e,-l*t+i),n.lineTo(l*s-h*r+e,h*s+l*r+i)}return n.closePath(),!0}class cV extends si{constructor(){super(...arguments),this.type="star",this.pathStr="M0 -1L0.22451398828979266 -0.3090169943749474L0.9510565162951535 -0.30901699437494745L0.3632712640026804 0.1180339887498948L0.5877852522924732 0.8090169943749473L8.326672684688674e-17 0.3819660112501051L-0.587785252292473 0.8090169943749476L-0.3632712640026804 0.11803398874989487L-0.9510565162951536 -0.30901699437494723L-0.22451398828979274 -0.30901699437494734Z"}draw(t,e,i,s){return zA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return zA(t,e/2+r,i,s)}}const uV=new cV,pV=an(3);function jA(n,t,e,i){const s=t,r=s/pV,a=r/5,o=t;return n.moveTo(0+e,-s+i),n.lineTo(r/2+e,i),n.lineTo(a/2+e,i),n.lineTo(a/2+e,o+i),n.lineTo(-a/2+e,o+i),n.lineTo(-a/2+e,i),n.lineTo(-r/2+e,i),n.closePath(),!0}class gV extends si{constructor(){super(...arguments),this.type="arrow",this.pathStr="M-0.07142857142857142,0.5L0.07142857142857142,0.5L0.07142857142857142,-0.0625L0.2,-0.0625L0,-0.5L-0.2,-0.0625L-0.07142857142857142,-0.0625Z"}draw(t,e,i,s){return jA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return jA(t,e/2+r,i,s)}}const fV=new gV;function HA(n,t,e,i){const s=2*t;return n.moveTo(e,-t+i),n.lineTo(s/3/2+e,t+i),n.lineTo(-s/3/2+e,t+i),n.closePath(),!0}class _V extends si{constructor(){super(...arguments),this.type="wedge",this.pathStr="M0,-0.5773502691896257L-0.125,0.28867513459481287L0.125,0.28867513459481287Z"}draw(t,e,i,s){return HA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return HA(t,e/2+r,i,s)}}const mV=new _V;function VA(n,t,e,i){return n.moveTo(-t+e,i),n.lineTo(e,t+i),!1}class vV extends si{constructor(){super(...arguments),this.type="stroke",this.pathStr=""}draw(t,e,i,s){return VA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return VA(t,e/2+r,i,s)}}const yV=new vV,Wn=-.5,Nn=an(3)/2,WA=1/an(12);function NA(n,t,e,i){const s=t/2,r=t*WA,a=s,o=t*WA+t,l=-a,h=o;return n.moveTo(s+e,r+i),n.lineTo(a+e,o+i),n.lineTo(l+e,h+i),n.lineTo(Wn*s-Nn*r+e,Nn*s+Wn*r+i),n.lineTo(Wn*a-Nn*o+e,Nn*a+Wn*o+i),n.lineTo(Wn*l-Nn*h+e,Nn*l+Wn*h+i),n.lineTo(Wn*s+Nn*r+e,Wn*r-Nn*s+i),n.lineTo(Wn*a+Nn*o+e,Wn*o-Nn*a+i),n.lineTo(Wn*l+Nn*h+e,Wn*h-Nn*l+i),n.closePath(),!1}class bV extends si{constructor(){super(...arguments),this.type="wye",this.pathStr="M0.25 0.14433756729740646L0.25 0.6443375672974064L-0.25 0.6443375672974064L-0.25 0.14433756729740643L-0.6830127018922193 -0.10566243270259357L-0.4330127018922193 -0.5386751345948129L0 -0.28867513459481287L0.4330127018922193 -0.5386751345948129L0.6830127018922193 -0.10566243270259357Z"}draw(t,e,i,s){return NA(t,e/2,i,s)}drawOffset(t,e,i,s,r){return NA(t,e/2+r,i,s)}}const xV=new bV;function SV(n,t,e,i){return n.moveTo(-t+e,i),n.lineTo(t+e,t+i),n.lineTo(t+e,i-t),n.closePath(),!0}function AV(n,t,e,i,s){return n.moveTo(-t+e-2*s,i),n.lineTo(t+e+s,t+i+2*s),n.lineTo(t+e+s,i-t-2*s),n.closePath(),!0}class kV extends si{constructor(){super(...arguments),this.type="triangleLeft",this.pathStr="M-0.5,0 L0.5,0.5 L0.5,-0.5 Z"}draw(t,e,i,s){return SV(t,e/2,i,s)}drawOffset(t,e,i,s,r){return AV(t,e/2,i,s,r)}}const TV=new kV;function MV(n,t,e,i){return n.moveTo(e-t,t+i),n.lineTo(t+e,i),n.lineTo(e-t,i-t),n.closePath(),!0}function wV(n,t,e,i,s){return n.moveTo(e-t-s,t+i+2*s),n.lineTo(t+e+2*s,i),n.lineTo(e-t-s,i-t-2*s),n.closePath(),!0}class CV extends si{constructor(){super(...arguments),this.type="triangleRight",this.pathStr="M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z"}draw(t,e,i,s){return MV(t,e/2,i,s)}drawOffset(t,e,i,s,r){return wV(t,e/2,i,s,r)}}const PV=new CV;function EV(n,t,e,i){return n.moveTo(e-t,i-t),n.lineTo(e+t,i-t),n.lineTo(e,i+t),n.closePath(),!0}function RV(n,t,e,i,s){return n.moveTo(e-t-2*s,i-t-s),n.lineTo(e+t+2*s,i-t-s),n.lineTo(e,i+t+2*s),n.closePath(),!0}class BV extends si{constructor(){super(...arguments),this.type="triangleDown",this.pathStr="M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z"}draw(t,e,i,s){return EV(t,e/2,i,s)}drawOffset(t,e,i,s,r){return RV(t,e/2,i,s,r)}}const IV=new BV,uy=an(3);function GA(n,t,e,i){const s=t*uy;return n.moveTo(e,i+-s/3*2),n.lineTo(t+e,i+s),n.lineTo(e-t,i+s),n.closePath(),!0}class OV extends wx{constructor(){super(...arguments),this.type="thinTriangle",this.pathStr="M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z"}draw(t,e,i,s){return GA(t,e/2/uy,i,s)}drawOffset(t,e,i,s,r){return GA(t,e/2/uy+r,i,s)}}const LV=new OV;function UA(n,t,e,i){const s=2*t;return n.moveTo(t+e,i-s),n.lineTo(e-t,i),n.lineTo(t+e,s+i),!0}class DV extends si{constructor(){super(...arguments),this.type="arrow2Left",this.pathStr="M 0.25 -0.5 L -0.25 0 l 0.25 0.5"}draw(t,e,i,s){return UA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return UA(t,e/4+r,i,s)}}const FV=new DV;function $A(n,t,e,i){const s=2*t;return n.moveTo(e-t,i-s),n.lineTo(e+t,i),n.lineTo(e-t,s+i),!0}class zV extends si{constructor(){super(...arguments),this.type="arrow2Right",this.pathStr="M -0.25 -0.5 l 0.25 0 l -0.25 0.5"}draw(t,e,i,s){return $A(t,e/4,i,s)}drawOffset(t,e,i,s,r){return $A(t,e/4+r,i,s)}}const jV=new zV;function YA(n,t,e,i){const s=2*t;return n.moveTo(e-s,i+t),n.lineTo(e,i-t),n.lineTo(e+s,i+t),!0}class HV extends si{constructor(){super(...arguments),this.type="arrow2Up",this.pathStr="M -0.5 0.25 L 0 -0.25 l 0.5 0.25"}draw(t,e,i,s){return YA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return YA(t,e/4+r,i,s)}}const VV=new HV;function XA(n,t,e,i){const s=2*t;return n.moveTo(e-s,i-t),n.lineTo(e,i+t),n.lineTo(e+s,i-t),!0}class WV extends si{constructor(){super(...arguments),this.type="arrow2Down",this.pathStr="M -0.5 -0.25 L 0 0.25 l 0.5 -0.25"}draw(t,e,i,s){return XA(t,e/4,i,s)}drawOffset(t,e,i,s,r){return XA(t,e/4+r,i,s)}}const NV=new WV;function KA(n,t,e,i,s){return n.moveTo(e,i-t),n.lineTo(e,i+t),!0}class GV extends si{constructor(){super(...arguments),this.type="lineV",this.pathStr="M0,-0.5L0,0.5"}draw(t,e,i,s,r){return KA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return KA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e}, ${i-r} L ${e},${i+r}`}}const UV=new GV;function qA(n,t,e,i,s){return n.moveTo(e-t,i),n.lineTo(e+t,i),!0}class $V extends si{constructor(){super(...arguments),this.type="lineH",this.pathStr="M-0.5,0L0.5,0"}draw(t,e,i,s,r){return qA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return qA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i} L ${e+r},${i}`}}const YV=new $V;function ZA(n,t,e,i,s){return n.moveTo(e-t,i-t),n.lineTo(e+t,i+t),n.moveTo(e+t,i-t),n.lineTo(e-t,i+t),!0}class XV extends si{constructor(){super(...arguments),this.type="close",this.pathStr="M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5"}draw(t,e,i,s,r){return ZA(t,e/2,i,s)}drawOffset(t,e,i,s,r,a){return ZA(t,e/2+r,i,s)}drawToSvgPath(t,e,i,s){const r=t/2;return`M ${e-r}, ${i-r} L ${e+r},${i+r} M ${e+r}, ${i-r} L ${e-r},${i+r}`}}const KV=new XV;function JA(n,t,e,i){return n.rect(e-t[0]/2,i-t[1]/2,t[0],t[1]),!1}function QA(n,t,e,i){const s=t,r=t/2;return n.rect(e-s/2,i-r/2,s,r),!1}class qV extends si{constructor(){super(...arguments),this.type="rect",this.pathStr="M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z"}draw(t,e,i,s){return nt(e)?QA(t,e,i,s):JA(t,e,i,s)}drawOffset(t,e,i,s,r){return nt(e)?QA(t,e+2*r,i,s):JA(t,[e[0]+2*r,e[1]+2*r],i,s)}}const ZV=new qV,Gh=new _e;class tk{constructor(t,e,i=!1){this.pathStr="",this.type=t,V(e)?this.svgCache=e:this.path=e,this.isSvg=i}drawOffset(t,e,i,s,r,a,o){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach(l=>{t.beginPath(),fr(l.path.commandList,t,i,s,e,e),o&&o(l.path,l.attribute)}),!1):(fr(this.path.commandList,t,i,s,e+r,e+r),!1)}draw(t,e,i,s,r,a){return this.isSvg?!!this.svgCache&&(this.svgCache.forEach(o=>{t.beginPath(),fr(o.path.commandList,t,i,s,e,e),a&&a(o.path,o.attribute)}),!1):(fr(this.path.commandList,t,i,s,e,e),!1)}bounds(t,e){if(this.isSvg)return this.svgCache?(e.clear(),void this.svgCache.forEach(({path:i})=>{Gh.x1=i.bounds.x1*t,Gh.y1=i.bounds.y1*t,Gh.x2=i.bounds.x2*t,Gh.y2=i.bounds.y2*t,e.union(Gh)})):void 0;this.path.bounds&&(e.x1=this.path.bounds.x1*t,e.y1=this.path.bounds.y1*t,e.x2=this.path.bounds.x2*t,e.y2=this.path.bounds.y2*t)}}const JV=[KH,QH,eV,nV,LV,lV,uV,fV,mV,yV,xV,TV,PV,aV,IV,FV,jV,VV,NV,ZV,UV,YV,KV],yg={};JV.forEach(n=>{yg[n.type]=n});const QV={arrowLeft:"M 0.25 -0.5 L -0.25 0 l 0.5 0.5",arrowRight:"M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5",rectRound:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",roundLine:"M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z"},lp=new _e,ek=["symbolType","size",...Hn];let Ac=class cl extends Zi{constructor(t={symbolType:"circle"}){super(t),this.type="symbol",this.numberType=J_}getParsedPath(){return this.shouldUpdateShape()&&(this.doUpdateParsedPath(),this.clearUpdateShapeTag()),this._parsedPath}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{size:t}=this.attribute;return V(t)?t.length===2&&t.every(this._validNumber):this._validNumber(t)}doUpdateParsedPath(){const t=st(this).symbol;let{symbolType:e=t.symbolType}=this.attribute,i=yg[e];if(i)return this._parsedPath=i,i;if(i=cl.userSymbolMap[e],i)return this._parsedPath=i,i;if(e=QV[e]||e,PH(e)===!0){const l=new G_,{svg:h}=l.parse(e);if(!h)return null;const d=V(h.path)?h.path:[h.path];lp.clear();const c=[];d.forEach(f=>{const _=new Pe().fromString(f.d),m={};FH.forEach(y=>{f[y]&&(m[IR[y]]=f[y])}),c.push({path:_,attribute:m}),lp.union(_.bounds)});const u=lp.width(),p=lp.height(),g=1/sn(u,p);return c.forEach(f=>f.path.transform(0,0,g,g)),this._parsedPath=new tk(e,c,!0),cl.userSymbolMap[e]=this._parsedPath,this._parsedPath}const s=new Pe().fromString(e),r=s.bounds.width(),a=s.bounds.height(),o=1/sn(r,a);return s.transform(0,0,o,o),this._parsedPath=new tk(e,s),cl.userSymbolMap[e]=this._parsedPath,this._parsedPath}doUpdateAABBBounds(t){const e=st(this).symbol;this._AABBBounds.clear();const i=this.attribute,s=Q.graphicService.updateSymbolAABBBounds(i,st(this).symbol,this._AABBBounds,t,this),{boundsPadding:r=e.boundsPadding}=i,a=Bi(r);return a&&s.expand(a),this.clearUpdateBoundTag(),s}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).symbol[t]}needUpdateTags(t){return super.needUpdateTags(t,ek)}needUpdateTag(t){return super.needUpdateTag(t,ek)}toCustomPath(){const t=this.getParsedPath(),e=this.attribute.size,i=V(e)?e:[e,e];return t.path?new Pe().fromCustomPath2D(t.path,0,0,i[0],i[1]):new Pe().fromString(t.pathStr,0,0,i[0],i[1])}clone(){return new cl(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return cl.NOWORK_ANIMATE_ATTR}};Ac.userSymbolMap={},Ac.NOWORK_ANIMATE_ATTR=Object.assign({symbolType:1},Li);function tm(n){return new Ac(n)}const ik=["segments","points","curveType","curveTension",...Hn];let WR=class py extends Zi{constructor(t={}){super(t),this.type="line",this.numberType=yu}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:t,segments:e}=this.attribute;return e?e.length!==0:!!t&&!(t.length<=1)}_interpolate(t,e,i,s,r){t==="points"&&(r.points=px(i,s,e))}doUpdateAABBBounds(){const t=st(this).line;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateLineAABBBounds(e,st(this).line,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).line[t]}needUpdateTags(t){return super.needUpdateTags(t,ik)}needUpdateTag(t){return super.needUpdateTag(t,ik)}toCustomPath(){const t=this.attribute,e=new Pe,i=t.segments,s=r=>{if(r&&r.length){let a=!0;r.forEach(o=>{o.defined!==!1&&(a?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y),a=!1)})}};return i&&i.length?i.forEach(r=>{s(r.points)}):t.points&&s(t.points),e}clone(){return new py(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return py.NOWORK_ANIMATE_ATTR}};WR.NOWORK_ANIMATE_ATTR=Object.assign({segments:1,curveType:1},Li);function Cx(n){return new WR(n)}const nk=["width","x1","y1","height","cornerRadius",...Hn];class nh extends Zi{constructor(t){super(t),this.type="rect",this.numberType=Z_}isValid(){return super.isValid()&&this._isValid()}_isValid(){return!0}doUpdateAABBBounds(){const t=st(this).rect;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateRectAABBBounds(e,st(this).rect,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).rect[t]}needUpdateTags(t){return super.needUpdateTags(t,nk)}needUpdateTag(t){return super.needUpdateTag(t,nk)}toCustomPath(){const t=this.attribute,{x:e,y:i,width:s,height:r}=vR(t),a=new Pe;return a.moveTo(e,i),a.rect(e,i,s,r),a}clone(){return new nh(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return nh.NOWORK_ANIMATE_ATTR}}nh.NOWORK_ANIMATE_ATTR=Li;function wo(n){return new nh(n)}const sk=[[0,0,0],[1,0,0],[1,1,0],[0,1,0],[0,0,1],[1,0,1],[1,1,1],[0,1,1]];class em extends nh{constructor(t){super(t),this.type="rect3d",this.numberType=yx}findFace(){const t={polygons:[],vertices:[],edges:[]},e=st(this).rect,{x1:i,y1:s,x:r,y:a,length:o=ki(e.width,e.height)}=this.attribute;let{width:l,height:h}=this.attribute;l=l??i-r,h=h??s-a;for(let d=0;d{e.glyphHost=this,Object.setPrototypeOf(e.attribute,this.attribute)}),this.valid=this.isValid(),this.addUpdateBoundTag()}detachSubGraphic(){this.subGraphic.forEach(t=>{t.glyphHost=null,Object.setPrototypeOf(t.attribute,{})})}getSubGraphic(){return this.subGraphic}onInit(t){this._onInit=t}onUpdate(t){this._onUpdate=t}isValid(){return!0}setAttribute(t,e,i,s){super.setAttribute(t,e,i,s),this.subGraphic.forEach(r=>{r.addUpdateShapeAndBoundsTag(),r.addUpdatePositionTag()})}setAttributes(t,e=!1,i){super.setAttributes(t,e,i),this.subGraphic.forEach(s=>{s.addUpdateShapeAndBoundsTag(),s.addUpdatePositionTag()})}translate(t,e){return super.translate(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}translateTo(t,e){return super.translateTo(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}scale(t,e,i){return super.scale(t,e,i),this.subGraphic.forEach(s=>{s.addUpdatePositionTag(),s.addUpdateBoundTag()}),this}scaleTo(t,e){return super.scaleTo(t,e),this.subGraphic.forEach(i=>{i.addUpdatePositionTag(),i.addUpdateBoundTag()}),this}rotate(t){return super.rotate(t),this.subGraphic.forEach(e=>{e.addUpdatePositionTag(),e.addUpdateBoundTag()}),this}rotateTo(t){return super.rotate(t),this.subGraphic.forEach(e=>{e.addUpdatePositionTag(),e.addUpdateBoundTag()}),this}doUpdateAABBBounds(){this._AABBBounds.clear();const t=Q.graphicService.updateGlyphAABBBounds(this.attribute,st(this).glyph,this._AABBBounds,this);return this.clearUpdateBoundTag(),t}tryUpdateOBBBounds(){throw new Error("暂不支持")}needUpdateTags(t){return!1}needUpdateTag(t){return!1}useStates(t,e){var i;if(!t.length)return void this.clearStates(e);if(!(((i=this.currentStates)===null||i===void 0?void 0:i.length)!==t.length||t.some((a,o)=>this.currentStates[o]!==a)))return;this.stopStateAnimates();const s={},r=this.subGraphic.map(()=>({}));t.forEach(a=>{var o;const l=this.glyphStateProxy?this.glyphStateProxy(a,t):this.glyphStates[a];l&&(Object.assign(s,l.attributes),!((o=l.subAttributes)===null||o===void 0)&&o.length&&r.forEach((h,d)=>{Object.assign(h,l.subAttributes[d])}))}),this.subGraphic.forEach((a,o)=>{a.updateNormalAttrs(r[o]),a.applyStateAttrs(r[o],t,e)}),this.updateNormalAttrs(s),this.currentStates=t,this.applyStateAttrs(s,t,e)}clearStates(t){this.stopStateAnimates(),this.hasState()&&this.normalAttrs?(this.currentStates=[],this.subGraphic.forEach(e=>{e.applyStateAttrs(e.normalAttrs,this.currentStates,t,!0),e.normalAttrs=null}),this.applyStateAttrs(this.normalAttrs,this.currentStates,t,!0)):this.currentStates=[],this.normalAttrs=null}clone(){const t=new kc(Object.assign({},this.attribute));return t.setSubGraphic(this.subGraphic.map(e=>e.clone())),t}getNoWorkAnimateAttr(){return kc.NOWORK_ANIMATE_ATTR}}kc.NOWORK_ANIMATE_ATTR=Li;function GR(n){return new kc(n)}class tW{constructor(t,e,i,s,r,a,o,l,h,d,c,u,p,g){this.left=t,this.top=e,this.width=i,this.height=s,this.actualHeight=0,this.bottom=e+s,this.right=t+i,this.ellipsis=r,this.wordBreak=a,this.verticalDirection=o,this.lines=[],this.globalAlign=l,this.globalBaseline=h,this.layoutDirection=d,this.directionKey=cx[this.layoutDirection],this.isWidthMax=c,this.isHeightMax=u,this.singleLine=p,g?(g.clear(),this.icons=g):this.icons=new Map}draw(t,e){const{width:i,height:s}=this.getActualSize(),r=this.isWidthMax?Math.min(this.width,i):this.width||i||0;let a=this.isHeightMax?Math.min(this.height,s):this.height||s||0;a=Math.min(a,s);let o=0;switch(this.globalBaseline){case"top":o=0;break;case"middle":o=-a/2;break;case"bottom":o=-a}let l=0;this.globalAlign==="right"||this.globalAlign==="end"?l=-r:this.globalAlign==="center"&&(l=-r/2);let h=this[this.directionKey.height];this.singleLine&&(h=this.lines[0].height+1);let d=!1;if(this.verticalDirection==="middle")if(this.actualHeight>=h&&h!==0)for(let c=0;cthis[this.directionKey.top]+h)return d;let g=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(g=!0,d=!0),this.lines[c].draw(t,g,this.lines[c][this.directionKey.left]+l,this.lines[c][this.directionKey.top]+o,this.ellipsis,e)}else{const c=Math.floor((h-this.actualHeight)/2);this.layoutDirection==="vertical"?l+=c:o+=c;for(let u=0;uthis[this.directionKey.top]+h||gthis[this.directionKey.top]+h)return d;{let g=!1;this.ellipsis&&this.lines[c+1]&&this.lines[c+1].top+this.lines[c+1].height>this[this.directionKey.top]+h&&(g=!0,d=!0),this.lines[c].draw(t,g,this.lines[c][this.directionKey.left]+l,this.lines[c][this.directionKey.top]+o,this.ellipsis,e)}}}}return d}getActualSize(){return this.ellipsis?this.getActualSizeWidthEllipsis():this.getRawActualSize()}getRawActualSize(){let t=0,e=0;for(let i=0;it&&(t=s.actualWidth),e+=s.height}return{width:this.layoutDirection==="vertical"?e:t,height:this.layoutDirection==="vertical"?t:e}}getActualSizeWidthEllipsis(){let t=0,e=0;const{width:i,height:s}=this.getRawActualSize();this.width,this.height;let r=this[this.directionKey.height];if(this.singleLine&&(r=this.lines[0].height+1),this.verticalDirection==="middle")if(this.actualHeight>=r&&r!==0)for(let a=0;athis[this.directionKey.top]+r))if(this.ellipsis&&this.lines[a+1]&&this.lines[a+1].top+this.lines[a+1].height>this[this.directionKey.top]+r){const h=this.ellipsis===!0?"...":this.ellipsis||"",d=this.lines[a].getWidthWithEllips(h);d>t&&(t=d),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else{Math.floor((r-this.actualHeight)/2);for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else if(this.verticalDirection==="bottom")for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height;else if(!(h+l>this[this.directionKey.top]+r||ht&&(t=c),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}else for(let a=0;at&&(t=this.lines[a].actualWidth),e+=this.lines[a].height;else if(!(o+lthis[this.directionKey.top]+r))if(this.ellipsis&&this.lines[a+1]&&this.lines[a+1].top+this.lines[a+1].height>this[this.directionKey.top]+r){const h=this.ellipsis===!0?"...":this.ellipsis||"",d=this.lines[a].getWidthWithEllips(h);d>t&&(t=d),e+=this.lines[a].height}else this.lines[a].actualWidth>t&&(t=this.lines[a].actualWidth),e+=this.lines[a].height}return{width:this.layoutDirection==="vertical"?e:t,height:this.layoutDirection==="vertical"?t:e}}}class Tc{constructor(t,e,i){this.fontSize=i.fontSize||16,this.textBaseline=i.textBaseline||"alphabetic";const s=pr(i.lineHeight,this.fontSize);this.lineHeight=typeof s=="number"?s>this.fontSize?s:this.fontSize:Math.floor(1.2*this.fontSize),this.height=this.lineHeight;const{ascent:r,height:a,descent:o,width:l}=xl(t,i);let h=0,d=0,c=0;this.height>a&&(h=(this.height-a)/2,d=Math.ceil(h),c=Math.floor(h)),this.textBaseline==="top"?(this.ascent=h,this.descent=a-h):this.textBaseline==="bottom"?(this.ascent=a-h,this.descent=h):this.textBaseline==="middle"?(this.ascent=this.height/2,this.descent=this.height/2):(this.ascent=r+d,this.descent=o+c),this.length=t.length,this.width=l||0,this.text=t||"",this.newLine=e||!1,this.character=i,this.left=0,this.top=0,this.ellipsis="normal",this.ellipsisWidth=0,this.ellipsisOtherParagraphWidth=0,i.direction==="vertical"&&(this.direction=i.direction,this.widthOrigin=this.width,this.heightOrigin=this.height,this.width=this.heightOrigin,this.height=this.widthOrigin,this.lineHeight=this.height),this.ellipsisStr="..."}updateWidth(){const{width:t}=xl(this.text,this.character);this.width=t,this.direction==="vertical"&&(this.widthOrigin=this.width,this.width=this.heightOrigin,this.height=this.widthOrigin)}draw(t,e,i,s,r){let a=this.text,o=this.left+i;e+=this.top;let l=this.direction;if(this.verticalEllipsis)a=this.ellipsisStr,l="vertical",e-=this.ellipsisWidth/2;else{if(this.ellipsis==="hide")return;if(this.ellipsis==="add")a+=this.ellipsisStr,r!=="right"&&r!=="end"||(o-=this.ellipsisWidth);else if(this.ellipsis==="replace"){const h=$v(a,(l==="vertical"?this.height:this.width)-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,a.length-1);if(a=a.slice(0,h),a+=this.ellipsisStr,r==="right"||r==="end"){const{width:d}=xl(this.text.slice(h),this.character);l==="vertical"||(o-=this.ellipsisWidth-d)}}}switch(this.character.script){case"super":e-=this.ascent*(1/3);break;case"sub":e+=this.descent/2}l==="vertical"&&(t.save(),t.rotateAbout(Math.PI/2,o,e),t.translate(-this.heightOrigin||-this.lineHeight/2,-this.descent/2),t.translate(o,e),o=0,e=0),this.character.stroke&&(Tj(t,this.character),t.strokeText(a,o,e)),kj(t,this.character),this.character.fill&&t.fillText(a,o,e),this.character.fill&&(typeof this.character.lineThrough=="boolean"||typeof this.character.underline=="boolean"?(this.character.underline&&t.fillRect(o,1+e,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1),this.character.lineThrough&&t.fillRect(o,1+e-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)):this.character.textDecoration==="underline"?t.fillRect(o,1+e,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1):this.character.textDecoration==="line-through"&&t.fillRect(o,1+e-this.ascent/2,this.widthOrigin||this.width,this.character.fontSize?Math.max(1,Math.floor(this.character.fontSize/10)):1)),l==="vertical"&&t.restore()}getWidthWithEllips(t){let e=this.text;const i=t==="vertical"?this.height:this.width;if(this.ellipsis==="hide")return i;if(this.ellipsis==="add")return i+this.ellipsisWidth;if(this.ellipsis==="replace"){const s=$v(e,i-this.ellipsisWidth+this.ellipsisOtherParagraphWidth,this.character,e.length-1);e=e.slice(0,s),e+=this.ellipsisStr;const{width:r}=xl(this.text.slice(s),this.character);return i+this.ellipsisWidth-r}return i}}function eW(n,t){const e=n.text.slice(0,t),i=n.text.slice(t);return[new Tc(e,n.newLine,n.character),new Tc(i,!0,n.character)]}const rk=["width","height","image",...Hn];class sh extends Zi{constructor(t){super(t),this.type="image",this.numberType=X_,this.loadImage(this.attribute.image)}get width(){var t;return(t=this.attribute.width)!==null&&t!==void 0?t:0}set width(t){this.attribute.width===t&&(this.attribute.width=t,this.addUpdateShapeAndBoundsTag())}get height(){var t;return(t=this.attribute.height)!==null&&t!==void 0?t:0}set height(t){this.attribute.height===t&&(this.attribute.height=t,this.addUpdateShapeAndBoundsTag())}get repeatX(){var t;return(t=this.attribute.repeatX)!==null&&t!==void 0?t:"no-repeat"}set repeatX(t){this.attribute.repeatX===t&&(this.attribute.repeatX=t)}get repeatY(){var t;return(t=this.attribute.repeatY)!==null&&t!==void 0?t:"no-repeat"}set repeatY(t){this.attribute.repeatY===t&&(this.attribute.repeatY=t)}get image(){return this.attribute.image}set image(t){t!==this.attribute.image&&(this.attribute.image=t,this.loadImage(this.attribute.image))}imageLoadSuccess(t,e,i){super.imageLoadSuccess(t,e,()=>{this.successCallback&&this.successCallback()})}imageLoadFail(t,e){super.imageLoadFail(t,()=>{this.failCallback&&this.failCallback()})}setAttributes(t,e,i){return t.image&&this.loadImage(t.image),super.setAttributes(t,e,i)}setAttribute(t,e,i,s){return t==="image"&&this.loadImage(e),super.setAttribute(t,e,i,s)}doUpdateAABBBounds(){const t=st(this).image;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateImageAABBBounds(e,st(this).image,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return yc[t]}needUpdateTags(t){return super.needUpdateTags(t,rk)}needUpdateTag(t){return super.needUpdateTag(t,rk)}clone(){return new sh(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return sh.NOWORK_ANIMATE_ATTR}}sh.NOWORK_ANIMATE_ATTR=Object.assign({image:1,repeatX:1,repeatY:1},Li);function Px(n){return new sh(n)}class dr extends sh{constructor(t){if(super(t),this._x=0,this._y=0,this._hovered=!1,this._marginArray=[0,0,0,0],t.backgroundShowMode==="always"&&(this._hovered=!0),t.margin){const e=Bi(t.margin);this._marginArray=typeof e=="number"?[e,e,e,e]:e}this.onBeforeAttributeUpdate=(e,i,s)=>{if(V(s)&&s.indexOf("margin")!==-1||s==="margin")if(i.margin){const r=Bi(i.margin);this._marginArray=typeof r=="number"?[r,r,r,r]:r}else this._marginArray=[0,0,0,0]}}get width(){var t;return((t=this.attribute.width)!==null&&t!==void 0?t:0)+this._marginArray[1]+this._marginArray[3]}get height(){var t;return((t=this.attribute.height)!==null&&t!==void 0?t:0)+this._marginArray[0]+this._marginArray[2]}tryUpdateAABBBounds(){if(!this.shouldUpdateAABBBounds())return this._AABBBounds;this.doUpdateAABBBounds();const{width:t=yc.width,height:e=yc.height}=this.attribute,{backgroundWidth:i=t,backgroundHeight:s=e}=this.attribute,r=(i-t)/2,a=(s-e)/2;return this._AABBBounds.expand([0,2*r,2*a,0]),this._AABBBounds}setHoverState(t){this.attribute.backgroundShowMode==="hover"&&this._hovered!==t&&(this._hovered=t)}}class iW{constructor(t,e,i,s,r,a,o,l){this.left=t,this.width=e,this.baseline=i,this.ascent=s,this.descent=r,this.top=i-s,this.paragraphs=a.map(d=>d),this.textAlign=(this.paragraphs[0]instanceof dr?this.paragraphs[0].attribute.textAlign:this.paragraphs[0].character.textAlign)||"left",this.direction=o,this.directionKey=cx[this.direction],this.actualWidth=0;let h=0;this.paragraphs.forEach((d,c)=>{if(c===0&&d instanceof Tc){const u=Aj.exec(d.text);(u==null?void 0:u.index)!==0&&(d.text=d.text.slice(u==null?void 0:u.index),d.updateWidth())}this.actualWidth+=d[this.directionKey.width],h=Math.max(d[this.directionKey.height],h)}),this.height=h,this.blankWidth=l?0:this.width-this.actualWidth,this.calcOffset(e,l)}calcOffset(t,e){const i=this.directionKey,s=this.height;let r=this.left,a=0;this.actualWidtho.overflow))){let o=0;for(let l=this.paragraphs.length-1;l>=0;l--){const h=this.paragraphs[l];if(h.overflow)continue;if(h instanceof dr)break;if(this.direction==="vertical"&&h.direction!=="vertical"){h.verticalEllipsis=!0;break}const d=r===!0?"...":r||"";h.ellipsisStr=d;const{width:c}=xl(d,h.character),u=c||0;if(u<=this.blankWidth+o){e&&(h.ellipsis="add");break}if(u<=this.blankWidth+o+h.width){h.ellipsis="replace",h.ellipsisWidth=u,h.ellipsisOtherParagraphWidth=this.blankWidth+o;break}h.ellipsis="hide",o+=h.width}}this.paragraphs.map((o,l)=>{if(o instanceof dr)return o.setAttributes({x:i+o._x,y:s+o._y}),void a(o,t,i+o._x,s+o._y,this.ascent);o.draw(t,s+this.ascent,i,l===0,this.textAlign)})}getWidthWithEllips(t){let e=0;for(let s=this.paragraphs.length-1;s>=0;s--){const r=this.paragraphs[s];if(r instanceof dr)break;const{width:a}=xl(t,r.character),o=a||0;if(o<=this.blankWidth+e){r.ellipsis="add",r.ellipsisWidth=o;break}if(o<=this.blankWidth+e+r.width){r.ellipsis="replace",r.ellipsisWidth=o,r.ellipsisOtherParagraphWidth=this.blankWidth+e;break}r.ellipsis="hide",e+=r.width}let i=0;return this.paragraphs.map((s,r)=>{i+=s instanceof dr?s.width:s.getWidthWithEllips(this.direction)}),i}}class nW{constructor(t){this.frame=t,this.width=this.frame.width,this.height=this.frame.height,this.lineWidth=0,this.y=this.frame.top,this.maxAscent=0,this.maxDescent=0,this.maxAscentForBlank=0,this.maxDescentForBlank=0,this.lineBuffer=[],this.direction=t.layoutDirection,this.directionKey=cx[this.direction]}store(t){if(t instanceof dr){this.frame.icons.set(t.richtextId,t),this.lineBuffer.push(t),this.lineWidth+=t[this.directionKey.width];let e=0,i=0;t.attribute.textBaseline==="top"?(e=0,i=t.height):t.attribute.textBaseline==="bottom"?(e=t.height,i=0):(e=t.height/2,i=t.height/2),this.maxAscent=Math.max(this.maxAscent,e),this.maxDescent=Math.max(this.maxDescent,i)}else this.lineBuffer.push(t),t.text.length!==0?(this.lineWidth+=t[this.directionKey.width],this.maxAscent=Math.max(this.maxAscent,t.ascent),this.maxDescent=Math.max(this.maxDescent,t.descent)):(this.maxAscentForBlank=Math.max(this.maxAscentForBlank,t.ascent),this.maxDescentForBlank=Math.max(this.maxDescentForBlank,t.descent))}send(){if(this.lineBuffer.length===0)return;const t=this.maxAscent===0?this.maxAscentForBlank:this.maxAscent,e=this.maxDescent===0?this.maxDescentForBlank:this.maxDescent,i=new iW(this.frame.left,this[this.directionKey.width],this.y+t,t,e,this.lineBuffer,this.direction,this.direction==="horizontal"?this.frame.isWidthMax:this.frame.isHeightMax);this.frame.lines.push(i),this.frame.actualHeight+=i.height,this.y+=i.height,this.lineBuffer.length=0,this.lineWidth=this.maxAscent=this.maxDescent=this.maxAscentForBlank=this.maxDescentForBlank=0}deal(t,e=!1){t instanceof dr?this.direction==="horizontal"&&this.width===0||this.direction==="vertical"&&this.height===0||this.lineWidth+t[this.directionKey.width]<=this[this.directionKey.width]?this.store(t):this.lineBuffer.length===0?(this.store(t),this.send()):(this.send(),this.deal(t)):typeof this.width!="number"||this.width<0||(t.newLine&&this.send(),t.text.length!==0&&(this.direction==="horizontal"&&this.width===0||this.direction==="vertical"&&this.height===0||this.lineWidth+t[this.directionKey.width]<=this[this.directionKey.width]?this.store(t):this.lineWidth===this[this.directionKey.width]?(this.send(),this.deal(t)):this.cut(t,e)))}cut(t,e){const i=this[this.directionKey.width]-this.lineWidth||0,s=Math.ceil(i/t[this.directionKey.width]*t.length)||0,r=$v(t.text,i,t.character,s,this.frame.wordBreak==="break-word");if(r!==0){const[a,o]=eW(t,r);this.store(a),e?this.send():this.deal(o)}else this.lineBuffer.length!==0&&(this.send(),this.deal(t))}}const ak=["width","height","ellipsis","wordBreak","verticalDirection","maxHeight","maxWidth","textAlign","textBaseline","textConfig","layoutDirection","fill","stroke","fontSize",...Hn];class Mc extends Zi{constructor(t){super(t),this.type="richtext",this._currentHoverIcon=null,this.numberType=bx}get width(){var t;return(t=this.attribute.width)!==null&&t!==void 0?t:Cs.width}set width(t){this.attribute.width!==t&&(this.attribute.width=t,this.addUpdateShapeAndBoundsTag())}get height(){var t;return(t=this.attribute.height)!==null&&t!==void 0?t:Cs.height}set height(t){this.attribute.height!==t&&(this.attribute.height=t,this.addUpdateShapeAndBoundsTag())}get maxWidth(){return this.attribute.maxWidth}set maxWidth(t){this.attribute.maxWidth!==t&&(this.attribute.maxWidth=t,this.addUpdateShapeAndBoundsTag())}get maxHeight(){return this.attribute.maxHeight}set maxHeight(t){this.attribute.maxHeight!==t&&(this.attribute.maxHeight=t,this.addUpdateShapeAndBoundsTag())}get ellipsis(){var t;return(t=this.attribute.ellipsis)!==null&&t!==void 0?t:Cs.ellipsis}set ellipsis(t){this.attribute.ellipsis!==t&&(this.attribute.ellipsis=t,this.addUpdateShapeAndBoundsTag())}get wordBreak(){var t;return(t=this.attribute.wordBreak)!==null&&t!==void 0?t:Cs.wordBreak}set wordBreak(t){this.attribute.wordBreak!==t&&(this.attribute.wordBreak=t,this.addUpdateShapeAndBoundsTag())}get verticalDirection(){var t;return(t=this.attribute.verticalDirection)!==null&&t!==void 0?t:Cs.verticalDirection}set verticalDirection(t){this.attribute.verticalDirection!==t&&(this.attribute.verticalDirection=t,this.addUpdateShapeAndBoundsTag())}get textAlign(){var t;return(t=this.attribute.textAlign)!==null&&t!==void 0?t:Cs.textAlign}set textAlign(t){this.attribute.textAlign!==t&&(this.attribute.textAlign=t,this.addUpdateShapeAndBoundsTag())}get textBaseline(){var t;return(t=this.attribute.textBaseline)!==null&&t!==void 0?t:Cs.textBaseline}set textBaseline(t){this.attribute.textBaseline!==t&&(this.attribute.textBaseline=t,this.addUpdateShapeAndBoundsTag())}get textConfig(){var t;return(t=this.attribute.textConfig)!==null&&t!==void 0?t:Cs.textConfig}set textConfig(t){this.attribute.textConfig=t,this.addUpdateShapeAndBoundsTag()}doUpdateAABBBounds(){const t=st(this).richtext;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateRichTextAABBBounds(e,st(this).richtext,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return Cs[t]}needUpdateTags(t){return super.needUpdateTags(t,ak)}needUpdateTag(t){return super.needUpdateTag(t,ak)}getFrameCache(){return this.shouldUpdateShape()&&(this.doUpdateFrameCache(),this.clearUpdateShapeTag()),this._frameCache}combinedStyleToCharacter(t){const{fill:e,stroke:i,fontSize:s,fontFamily:r,fontStyle:a,fontWeight:o,lineWidth:l,opacity:h,fillOpacity:d,strokeOpacity:c}=this.attribute;return Object.assign({fill:e,stroke:i,fontSize:s,fontFamily:r,fontStyle:a,fontWeight:o,lineWidth:l,opacity:h,fillOpacity:d,strokeOpacity:c},t)}doUpdateFrameCache(t){var e;const{textConfig:i=[],maxWidth:s,maxHeight:r,width:a,height:o,ellipsis:l,wordBreak:h,verticalDirection:d,textAlign:c,textBaseline:u,layoutDirection:p,singleLine:g,disableAutoWrapLine:f}=this.attribute,_=[],m=t??i;for(let A=0;A{var E;this.addUpdateBoundTag(),(E=this.stage)===null||E===void 0||E.renderNextFrame()},w.richtextId=T.id,_.push(w)}}else{const T=this.combinedStyleToCharacter(m[A]);if(nt(T.text)&&(T.text=`${T.text}`),T.text&&T.text.includes(` +`)){const M=T.text.split(` +`);for(let w=0;w0,b=typeof r=="number"&&Number.isFinite(r)&&r>0,v=typeof a=="number"&&Number.isFinite(a)&&a>0&&(!y||a<=s),x=typeof o=="number"&&Number.isFinite(o)&&o>0&&(!b||o<=r),S=new tW(0,0,(v?a:y?s:0)||0,(x?o:b?r:0)||0,l,h,d,c,u,p||"horizontal",!v&&y,!x&&b,g||!1,(e=this._frameCache)===null||e===void 0?void 0:e.icons),k=new nW(S);if(f){let A=0,T=!1;for(let M=0;M<_.length;M++){const w=_[M];T?(w.overflow=!0,w.left=1/0,w.top=1/0,!w.newLine&&S.lines[S.lines.length-1].paragraphs.push(w)):k.deal(w,!0),S.lines.length!==A&&(A=S.lines.length,k.lineBuffer.length=0,w.overflow=!0,w.left=1e3,w.top=1e3,S.lines[S.lines.length-1].paragraphs.push(w),T=!0),w.newLine&&(T=!1,k.lineWidth=0),k.send()}}else for(let A=0;A<_.length;A++)k.deal(_[A]);if(k.send(),!(S.layoutDirection==="horizontal"?v:x)){const A=S.getActualSizeWidthEllipsis();let T=S.layoutDirection==="horizontal"?A.width:A.height;(S.layoutDirection==="horizontal"?y:b)&&(T=Math.min(T,S.layoutDirection==="horizontal"?s:r)),S.lines.forEach(function(M){M.calcOffset(T,!1)})}this._frameCache=S}clone(){return new Mc(Object.assign({},this.attribute))}setStage(t,e){super.setStage(t,e),this.getFrameCache().icons.forEach(i=>{i.setStage(t,e)})}bindIconEvent(){this.addEventListener("pointermove",t=>{var e,i,s,r,a;const o=this.pickIcon(t.global);o&&o===this._currentHoverIcon||(o?((e=this._currentHoverIcon)===null||e===void 0||e.setHoverState(!1),this._currentHoverIcon=o,this._currentHoverIcon.setHoverState(!0),(i=this.stage)===null||i===void 0||i.setCursor(o.attribute.cursor),(s=this.stage)===null||s===void 0||s.renderNextFrame()):!o&&this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,(r=this.stage)===null||r===void 0||r.setCursor(),(a=this.stage)===null||a===void 0||a.renderNextFrame()))}),this.addEventListener("pointerleave",t=>{var e,i;this._currentHoverIcon&&(this._currentHoverIcon.setHoverState(!1),this._currentHoverIcon=null,(e=this.stage)===null||e===void 0||e.setCursor(),(i=this.stage)===null||i===void 0||i.renderNextFrame())})}pickIcon(t){const e=this.getFrameCache(),{e:i,f:s}=this.globalTransMatrix;let r;return e.icons.forEach(a=>{var o,l;const h=a.AABBBounds.clone();h.translate(a._marginArray[3],a._marginArray[0]),h.containsPoint({x:t.x-i,y:t.y-s})&&(r=a,r.globalX=((o=r.attribute.x)!==null&&o!==void 0?o:0)+i+a._marginArray[3],r.globalY=((l=r.attribute.y)!==null&&l!==void 0?l:0)+s+a._marginArray[0])}),r}getNoWorkAnimateAttr(){return Mc.NOWORK_ANIMATE_ATTR}}Mc.NOWORK_ANIMATE_ATTR=Object.assign({ellipsis:1,wordBreak:1,verticalDirection:1,textAlign:1,textBaseline:1,textConfig:1,layoutDirection:1},Li);function UR(n){return new Mc(n)}const ok=["path","customPath",...Hn];class wc extends Zi{constructor(t){super(t),this.type="path",this.numberType=K_}get pathShape(){return this.tryUpdateAABBBounds(),this.getParsedPathShape()}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{path:t}=this.attribute;return t!=null&&t!==""}getParsedPathShape(){const t=st(this).path;if(!this.valid)return t.path;const e=this.attribute;return e.path instanceof Pe?e.path:(C(this.cache)&&this.doUpdatePathShape(),this.cache instanceof Pe?this.cache:t.path)}doUpdateAABBBounds(){const t=st(this).path;this.doUpdatePathShape(),this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updatePathAABBBounds(e,st(this).path,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}doUpdatePathShape(){const t=this.attribute;at(t.path,!0)?this.cache=new Pe().fromString(t.path):t.customPath&&(this.cache=new Pe,t.customPath(this.cache,this))}tryUpdateOBBBounds(){throw new Error("暂不支持")}getDefaultAttribute(t){return st(this).path[t]}needUpdateTags(t){return super.needUpdateTags(t,ok)}needUpdateTag(t){return super.needUpdateTag(t,ok)}toCustomPath(){return new Pe().fromCustomPath2D(this.getParsedPathShape(),0,0)}clone(){return new wc(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return wc.NOWORK_ANIMATE_ATTR}}wc.NOWORK_ANIMATE_ATTR=Object.assign({path:1,customPath:1},Li);function $R(n){return new wc(n)}const lk=["segments","points","curveType","curveTension",...Hn];class Cc extends Zi{constructor(t){super(t),this.type="area",this.numberType=vu}isValid(){return super.isValid()&&this._isValid()}_isValid(){if(this.pathProxy)return!0;const{points:t,segments:e}=this.attribute;return e?e.length!==0:!!t&&t.length!==0}doUpdateAABBBounds(){const t=st(this).area;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateAreaAABBBounds(e,st(this).area,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),i}tryUpdateOBBBounds(){throw new Error("暂不支持")}_interpolate(t,e,i,s,r){t==="points"&&(r.points=px(i,s,e))}getDefaultAttribute(t){return st(this).area[t]}needUpdateTags(t){return super.needUpdateTags(t,lk)}needUpdateTag(t){return super.needUpdateTag(t,lk)}toCustomPath(){const t=new Pe,e=this.attribute,i=e.segments,s=r=>{if(r&&r.length){let a=!0;const o=[];if(r.forEach(l=>{var h,d;l.defined!==!1&&(a?t.moveTo(l.x,l.y):t.lineTo(l.x,l.y),o.push({x:(h=l.x1)!==null&&h!==void 0?h:l.x,y:(d=l.y1)!==null&&d!==void 0?d:l.y}),a=!1)}),o.length){for(let l=o.length-1;l>=0;l--)t.lineTo(o[l].x,o[l].y);t.closePath()}}};return e.points?s(e.points):i&&i.length&&i.forEach(r=>{s(r.points)}),t}clone(){return new Cc(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return Cc.NOWORK_ANIMATE_ATTR}}Cc.NOWORK_ANIMATE_ATTR=Object.assign({segments:1,curveType:1},Li);function YR(n){return new Cc(n)}const hk=["innerRadius","outerRadius","startAngle","endAngle","cornerRadius","padAngle","padRadius","cap",...Hn];class rh extends Zi{constructor(t){super(t),this.type="arc",this.numberType=U_}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{startAngle:t,endAngle:e,outerRadius:i,innerRadius:s}=this.attribute;return this._validNumber(t)&&this._validNumber(e)&&this._validNumber(i)&&this._validNumber(s)}getParsedCornerRadius(){const t=st(this).arc,{cornerRadius:e=t.cornerRadius,innerPadding:i=t.innerPadding,outerPadding:s=t.outerPadding}=this.attribute;let{outerRadius:r=t.outerRadius,innerRadius:a=t.innerRadius}=this.attribute;if(r+=s,a-=i,e===0||e==="0%")return 0;const o=Math.abs(r-a),l=h=>Math.min(nt(h,!0)?h:o*parseFloat(h)/100,o/2);if(V(e)){const h=e.map(d=>l(d)||0);return h.length===0?[h[0],h[0],h[0],h[0]]:h.length===2?[h[0],h[1],h[0],h[1]]:(h.length===3&&h.push(0),h)}return l(e)}getParsedAngle(){const t=st(this).arc;let{startAngle:e=t.startAngle,endAngle:i=t.endAngle}=this.attribute;const{cap:s=t.cap}=this.attribute,r=i-e>=0?1:-1,a=i-e;if(e=yF(e),i=e+a,s&&Gt(a)$t&&h>$t)return{startAngle:e-r*g*o,endAngle:i+r*g*l,sc:r*g*o,ec:r*g*l}}return{startAngle:e,endAngle:i}}getParsePadAngle(t,e){const i=st(this).arc,{innerPadding:s=i.innerPadding,outerPadding:r=i.outerPadding,padAngle:a=i.padAngle}=this.attribute;let{outerRadius:o=i.outerRadius,innerRadius:l=i.innerRadius}=this.attribute;o+=r,l-=s;const{padRadius:h=an(o*o+l*l)}=this.attribute,d=Gt(e-t);let c=t,u=e,p=t,g=e;const f=a/2;let _=d,m=d;if(f>$t&&h>$t){const y=e>t?1:-1;let b=h1(Number(h)/l*Kt(f)),v=h1(Number(h)/o*Kt(f));return(_-=2*b)>$t?(b*=y,p+=b,g-=b):(_=0,p=g=(t+e)/2),(m-=2*v)>$t?(v*=y,c+=v,u-=v):(m=0,c=u=(t+e)/2),{outerStartAngle:c,outerEndAngle:u,innerStartAngle:p,innerEndAngle:g,innerDeltaAngle:_,outerDeltaAngle:m}}return{outerStartAngle:c,outerEndAngle:u,innerStartAngle:p,innerEndAngle:g,innerDeltaAngle:_,outerDeltaAngle:m}}doUpdateAABBBounds(t){const e=st(this).arc;this._AABBBounds.clear();const i=this.attribute,s=Q.graphicService.updateArcAABBBounds(i,st(this).arc,this._AABBBounds,t,this),{boundsPadding:r=e.boundsPadding}=i,a=Bi(r);return a&&s.expand(a),this.clearUpdateBoundTag(),s}tryUpdateOBBBounds(){throw new Error("暂不支持")}needUpdateTags(t){return super.needUpdateTags(t,hk)}needUpdateTag(t){return super.needUpdateTag(t,hk)}getDefaultAttribute(t){return st(this).arc[t]}toCustomPath(){const t=this.attribute,{startAngle:e,endAngle:i}=this.getParsedAngle();let s=t.innerRadius-(t.innerPadding||0),r=t.outerRadius-(t.outerPadding||0);const a=Gt(i-e),o=i>e;if(r=Dt-$t)l.moveTo(0+r*se(e),0+r*Kt(e)),l.arc(0,0,r,e,i,!o),s>$t&&(l.moveTo(0+s*se(i),0+s*Kt(i)),l.arc(0,0,s,i,e,o));else{const h=r*se(e),d=r*Kt(e),c=s*se(i),u=s*Kt(i);l.moveTo(0+h,0+d),l.arc(0,0,r,e,i,!o),l.lineTo(0+c,0+u),l.arc(0,0,s,i,e,o),l.closePath()}return l}clone(){return new rh(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return rh.NOWORK_ANIMATE_ATTR}}rh.NOWORK_ANIMATE_ATTR=Object.assign({cap:1},Li);function Ex(n){return new rh(n)}class im extends rh{constructor(t){super(t),this.type="arc3d",this.numberType=mu}doUpdateAABBBounds(){const t=st(this).arc;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updateArc3dAABBBounds(e,st(this).polygon,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),this._AABBBounds}getNoWorkAnimateAttr(){return im.NOWORK_ANIMATE_ATTR}}im.NOWORK_ANIMATE_ATTR=Object.assign({cap:1},Li);function XR(n){return new im(n)}const dk=["points","cornerRadius",...Hn];class ah extends Zi{constructor(t){super(t),this.type="polygon",this.numberType=q_}isValid(){return super.isValid()&&this._isValid()}_isValid(){const{points:t}=this.attribute;return t&&t.length>=2}doUpdateAABBBounds(){const t=st(this).polygon;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updatePolygonAABBBounds(e,st(this).polygon,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),this._AABBBounds}tryUpdateOBBBounds(){throw new Error("暂不支持")}_interpolate(t,e,i,s,r){t==="points"&&(r.points=px(i,s,e))}getDefaultAttribute(t){return st(this).polygon[t]}needUpdateTags(t){return super.needUpdateTags(t,dk)}needUpdateTag(t){return super.needUpdateTag(t,dk)}toCustomPath(){const t=this.attribute.points,e=new Pe;return t.forEach((i,s)=>{s===0?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}),e.closePath(),e}clone(){return new ah(Object.assign({},this.attribute))}getNoWorkAnimateAttr(){return ah.NOWORK_ANIMATE_ATTR}}ah.NOWORK_ANIMATE_ATTR=Li;function KR(n){return new ah(n)}class nm extends ah{constructor(t){super(t),this.type="pyramid3d",this.numberType=vx}doUpdateAABBBounds(){const t=st(this).polygon;this._AABBBounds.clear();const e=this.attribute,i=Q.graphicService.updatePyramid3dAABBBounds(e,st(this).polygon,this._AABBBounds,this),{boundsPadding:s=t.boundsPadding}=e,r=Bi(s);return r&&i.expand(r),this.clearUpdateBoundTag(),this._AABBBounds}findFace(){const{points:t}=this.attribute,e=t.map((o,l)=>{const h=l===3?t[0]:t[l+1],d=o.x-h.x;return d===0?0:(o.y-h.y)/d}),i=t.map(o=>({p:o,d:0}));let s=!1,r=0;for(let o=0;o=0;o--){const l=t[o];i.unshift({p:l,d:0})}for(let o=0;o{a.vertices.push([o.p.x,o.p.y,o.d])}),a.polygons.push({polygon:[0,4,5,1],normal:[0,-1,0]}),a.polygons.push({polygon:[7,6,2,3],normal:[0,1,0]}),a.polygons.push({polygon:[0,4,7,3],normal:[-1,0,0]}),a.polygons.push({polygon:[1,5,6,2],normal:[1,0,0]}),a.polygons.push({polygon:[0,1,2,3],normal:[0,0,-1]}),a.polygons.push({polygon:[4,5,6,7],normal:[0,0,1]}),a.edges=[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[3,7],[1,5],[2,6]],a}_isValid(){return super._isValid()&&this.attribute.points.length===4}getNoWorkAnimateAttr(){return nm.NOWORK_ANIMATE_ATTR}}nm.NOWORK_ANIMATE_ATTR=Li;function qR(n){return new nm(n)}class sW extends Ch{constructor(t){super({x:0,y:0}),this.type="shadowroot",this.shadowHost=t}addUpdateBoundTag(){super.addUpdateBoundTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}addUpdateShapeAndBoundsTag(){super.addUpdateShapeAndBoundsTag(),this.shadowHost&&this.shadowHost.addUpdateBoundTag()}tryUpdateGlobalTransMatrix(t=!0){if(this.shouldUpdateGlobalMatrix()){const e=this.transMatrix;this._globalTransMatrix?this._globalTransMatrix.setValue(e.a,e.b,e.c,e.d,e.e,e.f):this._globalTransMatrix=e.clone(),this.doUpdateGlobalMatrix(),t&&this.clearUpdateGlobalPositionTag()}return this._globalTransMatrix}doUpdateGlobalMatrix(){if(this.shadowHost){const t=this.shadowHost.globalTransMatrix;this._globalTransMatrix.multiply(t.a,t.b,t.c,t.d,t.e,t.f)}}tryUpdateGlobalAABBBounds(){return this._globalAABBBounds?this._globalAABBBounds.setValue(this._AABBBounds.x1,this._AABBBounds.y1,this._AABBBounds.x2,this._AABBBounds.y2):this._globalAABBBounds=this._AABBBounds.clone(),this.shadowHost&&this._globalAABBBounds.transformWithMatrix(this.shadowHost.globalTransMatrix),this._globalAABBBounds}}function rW(n){return new sW(n)}class ul{updateBounds(t,e,i,s){const{outerBorder:r,shadowBlur:a=e.shadowBlur}=t;if(r){const o=e.outerBorder,{distance:l=o.distance,lineWidth:h=o.lineWidth}=r;i.expand(l+(a+h)/2)}return i}}class aW extends ul{updateBounds(t,e,i,s){const{outerBorder:r,shadowBlur:a=e.shadowBlur,strokeBoundsBuffer:o=e.strokeBoundsBuffer}=t;if(r){const l=e.outerBorder,{distance:h=l.distance,lineWidth:d=l.lineWidth}=r;Fp(i,h+(a+d)/2,!0,o)}return i}}function ck(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}class oW{constructor(){this.pools=[]}allocate(t,e,i,s,r,a){if(!this.pools.length)return new Re(t,e,i,s,r,a);const o=this.pools.pop();return o.a=t,o.b=e,o.c=i,o.d=s,o.e=r,o.f=a,o}allocateByObj(t){if(!this.pools.length)return new Re(t.a,t.b,t.c,t.d,t.e,t.f);const e=this.pools.pop();return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}class sm{constructor(){this.pools=[]}static identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}allocate(){if(!this.pools.length)return ck();const t=this.pools.pop();return sm.identity(t),t}allocateByObj(t){let e;e=this.pools.length?this.pools.pop():ck();for(let i=0;i=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},hW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},dW=function(n,t){return function(e,i){t(e,i,n)}};function cW(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function uW(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[4],a=t[5],o=t[6],l=t[7],h=t[8],d=t[9],c=t[10],u=t[11];return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[4]=r*s+h*i,n[5]=a*s+d*i,n[6]=o*s+c*i,n[7]=l*s+u*i,n[8]=h*s-r*i,n[9]=d*s-a*i,n[10]=c*s-o*i,n[11]=u*s-l*i,n}function pW(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[0],a=t[1],o=t[2],l=t[3],h=t[8],d=t[9],c=t[10],u=t[11];return t!==n&&(n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=r*s-h*i,n[1]=a*s-d*i,n[2]=o*s-c*i,n[3]=l*s-u*i,n[8]=r*i+h*s,n[9]=a*i+d*s,n[10]=o*i+c*s,n[11]=l*i+u*s,n}function gW(n,t,e){const i=Math.sin(e),s=Math.cos(e),r=t[0],a=t[1],o=t[2],l=t[3],h=t[4],d=t[5],c=t[6],u=t[7];return t!==n&&(n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=r*s+h*i,n[1]=a*s+d*i,n[2]=o*s+c*i,n[3]=l*s+u*i,n[4]=h*s-r*i,n[5]=d*s-a*i,n[6]=c*s-o*i,n[7]=u*s-l*i,n}function Uh(n,t,e){const i=e[0],s=e[1],r=e[2];let a,o,l,h,d,c,u,p,g,f,_,m;return t===n?(n[12]=t[0]*i+t[4]*s+t[8]*r+t[12],n[13]=t[1]*i+t[5]*s+t[9]*r+t[13],n[14]=t[2]*i+t[6]*s+t[10]*r+t[14],n[15]=t[3]*i+t[7]*s+t[11]*r+t[15]):(a=t[0],o=t[1],l=t[2],h=t[3],d=t[4],c=t[5],u=t[6],p=t[7],g=t[8],f=t[9],_=t[10],m=t[11],n[0]=a,n[1]=o,n[2]=l,n[3]=h,n[4]=d,n[5]=c,n[6]=u,n[7]=p,n[8]=g,n[9]=f,n[10]=_,n[11]=m,n[12]=a*i+d*s+g*r+t[12],n[13]=o*i+c*s+f*r+t[13],n[14]=l*i+u*s+_*r+t[14],n[15]=h*i+p*s+m*r+t[15]),n}function gy(n,t){n[0]=t.a,n[1]=t.b,n[2]=0,n[3]=0,n[4]=t.c,n[5]=t.d,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=t.e,n[13]=t.f,n[14]=0,n[15]=1}function fW(n,t,e){const i=e[0],s=e[1],r=e[2];return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=t[3]*i,n[4]=t[4]*s,n[5]=t[5]*s,n[6]=t[6]*s,n[7]=t[7]*s,n[8]=t[8]*r,n[9]=t[9]*r,n[10]=t[10]*r,n[11]=t[11]*r,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function bu(n,t,e){const i=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],d=t[7],c=t[8],u=t[9],p=t[10],g=t[11],f=t[12],_=t[13],m=t[14],y=t[15];let b=e[0],v=e[1],x=e[2],S=e[3];return n[0]=b*i+v*o+x*c+S*f,n[1]=b*s+v*l+x*u+S*_,n[2]=b*r+v*h+x*p+S*m,n[3]=b*a+v*d+x*g+S*y,b=e[4],v=e[5],x=e[6],S=e[7],n[4]=b*i+v*o+x*c+S*f,n[5]=b*s+v*l+x*u+S*_,n[6]=b*r+v*h+x*p+S*m,n[7]=b*a+v*d+x*g+S*y,b=e[8],v=e[9],x=e[10],S=e[11],n[8]=b*i+v*o+x*c+S*f,n[9]=b*s+v*l+x*u+S*_,n[10]=b*r+v*h+x*p+S*m,n[11]=b*a+v*d+x*g+S*y,b=e[12],v=e[13],x=e[14],S=e[15],n[12]=b*i+v*o+x*c+S*f,n[13]=b*s+v*l+x*u+S*_,n[14]=b*r+v*h+x*p+S*m,n[15]=b*a+v*d+x*g+S*y,n}function ZR(n,t,e){var i;const{x:s=e.x,y:r=e.y,z:a=e.z,dx:o=e.dx,dy:l=e.dy,dz:h=e.dz,scaleX:d=e.scaleX,scaleY:c=e.scaleY,scaleZ:u=e.scaleZ,alpha:p=e.alpha,beta:g=e.beta,angle:f=e.angle,anchor3d:_=t.attribute.anchor,anchor:m}=t.attribute,y=[0,0,0];if(_){if(typeof _[0]=="string"){const b=parseFloat(_[0])/100,v=t.AABBBounds;y[0]=v.x1+(v.x2-v.x1)*b}else y[0]=_[0];if(typeof _[1]=="string"){const b=parseFloat(_[1])/100,v=t.AABBBounds;y[1]=v.x1+(v.x2-v.x1)*b}else y[1]=_[1];y[2]=(i=_[2])!==null&&i!==void 0?i:0}if(cW(n),Uh(n,n,[s+o,r+l,a+h]),Uh(n,n,[y[0],y[1],y[2]]),uW(n,n,g),pW(n,n,p),Uh(n,n,[-y[0],-y[1],y[2]]),fW(n,n,[d,c,u]),f){const b=ce.allocate(),v=[0,0];if(m){if(typeof _[0]=="string"){const x=parseFloat(_[0])/100,S=t.AABBBounds;v[0]=S.x1+(S.x2-S.x1)*x}else v[0]=_[0];if(typeof _[1]=="string"){const x=parseFloat(_[1])/100,S=t.AABBBounds;v[1]=S.x1+(S.x2-S.x1)*x}else v[1]=_[1]}Uh(b,b,[v[0],v[1],0]),gW(b,b,f),Uh(b,b,[-v[0],-v[1],0]),bu(n,n,b)}}function _W(n){const{alpha:t,beta:e}=n.attribute;return t||e}let fy=class{constructor(n){this.creator=n,this.hooks={onAttributeUpdate:new In(["graphic"]),onSetStage:new In(["graphic","stage"]),onRemove:new In(["graphic"]),onRelease:new In(["graphic"]),onAddIncremental:new In(["graphic","group","stage"]),onClearIncremental:new In(["graphic","group","stage"]),beforeUpdateAABBBounds:new In(["graphic","stage","willUpdate","aabbBounds"]),afterUpdateAABBBounds:new In(["graphic","stage","aabbBounds","globalAABBBounds","selfChange"])},this.tempAABBBounds1=new _e,this.tempAABBBounds2=new _e,this._rectBoundsContribitions=[new ul],this._symbolBoundsContribitions=[new aW],this._imageBoundsContribitions=[new ul],this._circleBoundsContribitions=[new ul],this._arcBoundsContribitions=[new ul],this._pathBoundsContribitions=[new ul]}onAttributeUpdate(n){this.hooks.onAttributeUpdate.taps.length&&this.hooks.onAttributeUpdate.call(n)}onSetStage(n,t){this.hooks.onSetStage.taps.length&&this.hooks.onSetStage.call(n,t)}onRemove(n){this.hooks.onRemove.taps.length&&this.hooks.onRemove.call(n)}onRelease(n){this.hooks.onRelease.taps.length&&this.hooks.onRelease.call(n)}onAddIncremental(n,t,e){this.hooks.onAddIncremental.taps.length&&this.hooks.onAddIncremental.call(n,t,e)}onClearIncremental(n,t){this.hooks.onClearIncremental.taps.length&&this.hooks.onClearIncremental.call(n,t)}beforeUpdateAABBBounds(n,t,e,i){this.hooks.beforeUpdateAABBBounds.taps.length&&this.hooks.beforeUpdateAABBBounds.call(n,t,e,i)}afterUpdateAABBBounds(n,t,e,i,s){this.hooks.afterUpdateAABBBounds.taps.length&&this.hooks.afterUpdateAABBBounds.call(n,t,e,i,s)}updatePathProxyAABBBounds(n,t){const e=typeof t.pathProxy=="function"?t.pathProxy(t.attribute):t.pathProxy;if(!e)return!1;const i=new UE(n);return fr(e.commandList,i,0,0),!0}updateRectAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;if(!this.updatePathProxyAABBBounds(e,i)){let{width:a,height:o}=n;const{x1:l,y1:h,x:d,y:c}=n;a=a??l-d,o=o??h-c,(isFinite(a)||isFinite(o)||isFinite(d)||isFinite(c))&&e.set(0,0,a||0,o||0)}const s=this.tempAABBBounds1,r=this.tempAABBBounds2;return s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this._rectBoundsContribitions.length&&this._rectBoundsContribitions.forEach(a=>{a.updateBounds(n,t,s,i),e.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2)}),this.transformAABBBounds(n,e,t,!1,i),e}updateGroupAABBBounds(n,t,e,i){const s=e;e=e.clone();const{width:r,height:a,path:o,clip:l=t.clip,display:h}=n;o&&o.length?o.forEach(u=>{e.union(u.AABBBounds)}):r!=null&&a!=null&&e.set(0,0,Math.max(0,r),Math.max(0,a)),l||i.forEachChildren(u=>{e.union(u.AABBBounds)});const d=this.tempAABBBounds1,c=this.tempAABBBounds2;return d.setValue(e.x1,e.y1,e.x2,e.y2),c.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(n,e,t,!1,i),s.copy(e),s}updateGlyphAABBBounds(n,t,e,i){return this._validCheck(n,t,e,i)&&i.getSubGraphic().forEach(s=>{e.union(s.AABBBounds)}),e}updateHTMLTextAABBBounds(n,t,e,i){const{textAlign:s,textBaseline:r}=n;if(n.forceBoundsHeight!=null){const a=nt(n.forceBoundsHeight)?n.forceBoundsHeight:n.forceBoundsHeight(),o=Bs(r,a,a);e.set(e.x1,o,e.x2,o+a)}if(n.forceBoundsWidth!=null){const a=nt(n.forceBoundsWidth)?n.forceBoundsWidth:n.forceBoundsWidth(),o=hr(s,a);e.set(o,e.y1,o+a,e.y2)}}updateRichTextAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i)||!i)return e;const{width:s=t.width,height:r=t.height,maxWidth:a=t.maxWidth,maxHeight:o=t.maxHeight,textAlign:l=t.textAlign,textBaseline:h=t.textBaseline}=n;if(s>0&&r>0)e.set(0,0,s,r);else{const g=i.getFrameCache(),{width:f,height:_}=g.getActualSize();let m=s||f||0,y=r||_||0;y=typeof o=="number"&&y>o?o:y||0,m=typeof a=="number"&&m>a?a:m||0,e.set(0,0,m,y)}let d=0;switch(h){case"top":d=0;break;case"middle":d=-e.height()/2;break;case"bottom":d=-e.height()}let c=0;switch(l){case"left":c=0;break;case"center":c=-e.width()/2;break;case"right":c=-e.width()}e.translate(c,d);const u=this.tempAABBBounds1,p=this.tempAABBBounds2;return u.setValue(e.x1,e.y1,e.x2,e.y2),p.setValue(e.x1,e.y1,e.x2,e.y2),n.forceBoundsHeight==null&&n.forceBoundsWidth==null||this.updateHTMLTextAABBBounds(n,t,e),this.transformAABBBounds(n,e,t,!1,i),e}updateTextAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i)||!i)return e;const{text:s=t.text}=i.attribute;Array.isArray(s)?i.updateMultilineAABBBounds(s):i.updateSingallineAABBBounds(s);const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2);const{scaleX:o=t.scaleX,scaleY:l=t.scaleY,shadowBlur:h=t.shadowBlur,strokeBoundsBuffer:d=t.strokeBoundsBuffer}=n;if(h){const c=h/Math.abs(o+l);Fp(r,c,!0,d),e.union(r)}return this.combindShadowAABBBounds(e,i),n.forceBoundsHeight==null&&n.forceBoundsWidth==null||this.updateHTMLTextAABBBounds(n,t,e),Sv(e,e,i.transMatrix),e}updatePathAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||this.updatePathAABBBoundsImprecise(n,t,e,i);const s=this.tempAABBBounds1,r=this.tempAABBBounds2;s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this._pathBoundsContribitions.length&&this._pathBoundsContribitions.forEach(o=>{o.updateBounds(n,t,s,i),e.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2)});const{lineJoin:a=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,a==="miter",i),e}updatePathAABBBoundsImprecise(n,t,e,i){if(!i)return e;const s=i.getParsedPathShape();return e.union(s.getBounds()),e}updatePyramid3dAABBBounds(n,t,e,i){if(!i)return e;const s=i.stage;if(!s||!s.camera)return e;i.findFace().vertices.forEach(o=>{const l=o[0],h=o[1];e.add(l,h)});const r=this.tempAABBBounds1,a=this.tempAABBBounds2;return r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(n,e,t,!1,i),e}updateArc3dAABBBounds(n,t,e,i){if(!i)return e;const s=i.stage;if(!s||!s.camera)return e;const{outerRadius:r=t.outerRadius,height:a=0}=n,o=r+a;e.setValue(-o,-o,o,o);const l=this.tempAABBBounds1,h=this.tempAABBBounds2;return l.setValue(e.x1,e.y1,e.x2,e.y2),h.setValue(e.x1,e.y1,e.x2,e.y2),this.transformAABBBounds(n,e,t,!1,i),e}updatePolygonAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||this.updatePolygonAABBBoundsImprecise(n,t,e,i);const s=this.tempAABBBounds1,r=this.tempAABBBounds2;s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,a==="miter",i),e}updatePolygonAABBBoundsImprecise(n,t,e,i){const{points:s=t.points}=n;return s.forEach(r=>{e.add(r.x,r.y)}),e}updateLineAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||(n.segments?this.updateLineAABBBoundsBySegments(n,t,e,i):this.updateLineAABBBoundsByPoints(n,t,e,i));const s=this.tempAABBBounds1,r=this.tempAABBBounds2;s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,a==="miter",i),e}updateLineAABBBoundsByPoints(n,t,e,i){const{points:s=t.points,connectedType:r}=n,a=e;return s.forEach(o=>{o.defined===!1&&r!=="zero"||a.add(o.x,o.y)}),a}updateLineAABBBoundsBySegments(n,t,e,i){const{segments:s=t.segments,connectedType:r}=n,a=e;return s.forEach(o=>{o.points.forEach(l=>{l.defined===!1&&r!=="zero"||a.add(l.x,l.y)})}),a}updateAreaAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;this.updatePathProxyAABBBounds(e,i)||(n.segments?this.updateAreaAABBBoundsBySegments(n,t,e,i):this.updateAreaAABBBoundsByPoints(n,t,e,i));const s=this.tempAABBBounds1,r=this.tempAABBBounds2;s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2);const{lineJoin:a=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,a==="miter",i),e}updateAreaAABBBoundsByPoints(n,t,e,i){const{points:s=t.points}=n,r=e;return s.forEach(a=>{var o,l;r.add(a.x,a.y),r.add((o=a.x1)!==null&&o!==void 0?o:a.x,(l=a.y1)!==null&&l!==void 0?l:a.y)}),r}updateAreaAABBBoundsBySegments(n,t,e,i){const{segments:s=t.segments}=n,r=e;return s.forEach(a=>{a.points.forEach(o=>{var l,h;r.add(o.x,o.y),r.add((l=o.x1)!==null&&l!==void 0?l:o.x,(h=o.y1)!==null&&h!==void 0?h:o.y)})}),r}updateCircleAABBBounds(n,t,e,i,s){if(!this._validCheck(n,t,e,s))return e;this.updatePathProxyAABBBounds(e,s)||(i?this.updateCircleAABBBoundsImprecise(n,t,e,s):this.updateCircleAABBBoundsAccurate(n,t,e,s));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;return r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._circleBoundsContribitions.length&&this._circleBoundsContribitions.forEach(o=>{o.updateBounds(n,t,r,s),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)}),this.transformAABBBounds(n,e,t,!1,s),e}updateCircleAABBBoundsImprecise(n,t,e,i){const{radius:s=t.radius}=n;return e.set(-s,-s,s,s),e}updateCircleAABBBoundsAccurate(n,t,e,i){const{startAngle:s=t.startAngle,endAngle:r=t.endAngle,radius:a=t.radius}=n;return r-s>Dt-$t?e.set(-a,-a,a,a):E0(s,r,a,e),e}updateArcAABBBounds(n,t,e,i,s){if(!this._validCheck(n,t,e,s))return e;this.updatePathProxyAABBBounds(e,s)||(i?this.updateArcAABBBoundsImprecise(n,t,e,s):this.updateArcAABBBoundsAccurate(n,t,e,s));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._arcBoundsContribitions.length&&this._arcBoundsContribitions.forEach(l=>{l.updateBounds(n,t,r,s),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)});const{lineJoin:o=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,o==="miter",s),e}updateArcAABBBoundsImprecise(n,t,e,i){let{outerRadius:s=t.outerRadius,innerRadius:r=t.innerRadius}=n;const{outerPadding:a=t.outerPadding,innerPadding:o=t.innerPadding}=n;return s+=a,r-=o,sl){const d=h;h=l,l=d}return s<=$t?e.set(0,0,0,0):Math.abs(l-h)>Dt-$t?e.set(-s,-s,s,s):(E0(h,l,s,e),E0(h,l,r,e)),e}updateSymbolAABBBounds(n,t,e,i,s){if(!this._validCheck(n,t,e,s))return e;this.updatePathProxyAABBBounds(e,s)||(i?this.updateSymbolAABBBoundsImprecise(n,t,e,s):this.updateSymbolAABBBoundsAccurate(n,t,e,s));const r=this.tempAABBBounds1,a=this.tempAABBBounds2;r.setValue(e.x1,e.y1,e.x2,e.y2),a.setValue(e.x1,e.y1,e.x2,e.y2),this._symbolBoundsContribitions.length&&this._symbolBoundsContribitions.forEach(l=>{l.updateBounds(n,t,r,s),e.union(r),r.setValue(a.x1,a.y1,a.x2,a.y2)});const{lineJoin:o=t.lineJoin}=n;return this.transformAABBBounds(n,e,t,o==="miter",s),e}updateSymbolAABBBoundsImprecise(n,t,e,i){const{size:s=t.size}=n;if(V(s))e.set(-s[0]/2,-s[1]/2,s[0]/2,s[1]/2);else{const r=s/2;e.set(-r,-r,r,r)}return e}updateSymbolAABBBoundsAccurate(n,t,e,i){if(!i)return e;const{size:s=t.size}=n;return i.getParsedPath().bounds(s,e),e}updateImageAABBBounds(n,t,e,i){if(!this._validCheck(n,t,e,i))return e;if(!this.updatePathProxyAABBBounds(e,i)){const{width:a=t.width,height:o=t.height}=n;e.set(0,0,a,o)}const s=this.tempAABBBounds1,r=this.tempAABBBounds2;return s.setValue(e.x1,e.y1,e.x2,e.y2),r.setValue(e.x1,e.y1,e.x2,e.y2),this._imageBoundsContribitions.length&&this._imageBoundsContribitions.forEach(a=>{a.updateBounds(n,t,s,i),e.union(s),s.setValue(r.x1,r.y1,r.x2,r.y2)}),this.transformAABBBounds(n,e,t,!1,i),e}combindShadowAABBBounds(n,t){if(t&&t.shadowRoot){const e=t.shadowRoot.AABBBounds;n.union(e)}}transformAABBBounds(n,t,e,i,s){if(!t.empty()){const{scaleX:o=e.scaleX,scaleY:l=e.scaleY,stroke:h=e.stroke,shadowBlur:d=e.shadowBlur,lineWidth:c=e.lineWidth,pickStrokeBuffer:u=e.pickStrokeBuffer,strokeBoundsBuffer:p=e.strokeBoundsBuffer}=n,g=this.tempAABBBounds1,f=this.tempAABBBounds2;if(h&&c){const _=(c+u)/Math.abs(o+l);Fp(g,_,i,p),t.union(g),g.setValue(f.x1,f.y1,f.x2,f.y2)}if(d){const{shadowOffsetX:_=e.shadowOffsetX,shadowOffsetY:m=e.shadowOffsetY}=n,y=d/Math.abs(o+l)*2;Fp(g,y,!1,p+1),g.translate(_,m),t.union(g)}}if(this.combindShadowAABBBounds(t,s),t.empty())return;let r=!0;const a=s.transMatrix;s&&s.isContainer&&(r=!(a.a===1&&a.b===0&&a.c===0&&a.d===1&&a.e===0&&a.f===0)),r&&Sv(t,t,a)}_validCheck(n,t,e,i){if(!i||n.forceBoundsHeight!=null||n.forceBoundsWidth!=null)return!0;if(!i.valid)return e.clear(),!1;const{visible:s=t.visible}=n;return!!s||(e.clear(),!1)}};fy=lW([gt(),dW(0,It(BR)),hW("design:paramtypes",[Object])],fy);class mW{constructor(){this.store=new Map}RegisterGraphicCreator(t,e){this.store.set(t,e),this[t]=e}CreateGraphic(t,e){const i=this.store.get(t);return i?i(e):null}}const pt=new mW;let hp,dp;function xu(n){return hp||(hp=pt.CreateGraphic("text",{})),hp.initAttributes(n),hp.AABBBounds}function vW(n){return dp||(dp=pt.CreateGraphic("richtext",{})),dp.setAttributes(n),dp.AABBBounds}const Xe={x:0,y:0,z:0,lastModelMatrix:null};class cn{init(t){t&&(this._renderContribitions=t.getContributions()),this._renderContribitions||(this._renderContribitions=[]),this.builtinContributions&&this.builtinContributions.forEach(e=>this._renderContribitions.push(e)),this._renderContribitions.length&&(this._renderContribitions.sort((e,i)=>i.order-e.order),this._beforeRenderContribitions=this._renderContribitions.filter(e=>e.time===ci.beforeFillStroke),this._afterRenderContribitions=this._renderContribitions.filter(e=>e.time===ci.afterFillStroke))}beforeRenderStep(t,e,i,s,r,a,o,l,h,d,c,u,p){this._beforeRenderContribitions&&this._beforeRenderContribitions.forEach(g=>{g.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(g.supportedAppName)?g.supportedAppName:[g.supportedAppName]).includes(t.stage.params.context.appName)||g.drawShape(t,e,i,s,r,a,o,l,h,d,c,u,p)})}afterRenderStep(t,e,i,s,r,a,o,l,h,d,c,u,p){this._afterRenderContribitions&&this._afterRenderContribitions.forEach(g=>{g.supportedAppName&&t.stage&&t.stage.params&&t.stage.params.context&&t.stage.params.context.appName&&!(Array.isArray(g.supportedAppName)?g.supportedAppName:[g.supportedAppName]).includes(t.stage.params.context.appName)||g.drawShape(t,e,i,s,r,a,o,l,h,d,c,u,p)})}valid(t,e,i,s){const{fill:r=e.fill,background:a,stroke:o=e.stroke,opacity:l=e.opacity,fillOpacity:h=e.fillOpacity,lineWidth:d=e.lineWidth,strokeOpacity:c=e.strokeOpacity,visible:u=e.visible}=t.attribute,p=Mo(l,h,r),g=kx(l,c),f=$o(r,a),_=Ph(o,d);return!(!t.valid||!u)&&!(!f&&!_)&&!!(p||g||i||s||a)&&{fVisible:p,sVisible:g,doFill:f,doStroke:_}}transform(t,e,i,s=!1){const{x:r=e.x,y:a=e.y,z:o=e.z,scaleX:l=e.scaleX,scaleY:h=e.scaleY,angle:d=e.angle,postMatrix:c}=t.attribute,u=i.modelMatrix,p=i.camera;Xe.x=r,Xe.y=a,Xe.z=o,Xe.lastModelMatrix=u;const g=p&&(s||_W(t)),f=g?t.transMatrix.onlyTranslate()&&!c:l===1&&h===1&&d===0&&!c;if(g){const _=ce.allocate(),m=ce.allocate();ZR(m,t,e),bu(_,u||_,m),Xe.x=0,Xe.y=0,Xe.z=0,i.modelMatrix=_,i.setTransform(1,0,0,1,0,0,!0),ce.free(m)}if(f&&!u){const _=t.getOffsetXY(e);Xe.x+=_.x,Xe.y+=_.y,Xe.z=o,i.setTransformForCurrent()}else if(g)Xe.x=0,Xe.y=0,Xe.z=0,i.setTransform(1,0,0,1,0,0,!0);else if(p&&i.project){const _=t.getOffsetXY(e);Xe.x+=_.x,Xe.y+=_.y,this.transformWithoutTranslate(i,Xe.x,Xe.y,Xe.z,l,h,d)}else i.transformFromMatrix(t.transMatrix,!0),Xe.x=0,Xe.y=0,Xe.z=0;return Xe}transformUseContext2d(t,e,i,s){const r=s.camera;if(this.camera=r,r){const a=t.AABBBounds,o=a.x2-a.x1,l=a.y2-a.y1,h=s.project(0,0,i),d=s.project(o,0,i),c=s.project(o,l,i),u={x:0,y:0},p={x:o,y:0},g={x:o,y:l};s.camera=null;const f=1/(u.x*(g.y-p.y)-p.x*g.y+g.x*p.y+(p.x-g.x)*u.y),_=-(u.y*(c.x-d.x)-p.y*c.x+g.y*d.x+(p.y-g.y)*h.x)*f,m=(p.y*c.y+u.y*(d.y-c.y)-g.y*d.y+(g.y-p.y)*h.y)*f,y=(u.x*(c.x-d.x)-p.x*c.x+g.x*d.x+(p.x-g.x)*h.x)*f,b=-(p.x*c.y+u.x*(d.y-c.y)-g.x*d.y+(g.x-p.x)*h.y)*f,v=(u.x*(g.y*d.x-p.y*c.x)+u.y*(p.x*c.x-g.x*d.x)+(g.x*p.y-p.x*g.y)*h.x)*f,x=(u.x*(g.y*d.y-p.y*c.y)+u.y*(p.x*c.y-g.x*d.y)+(g.x*p.y-p.x*g.y)*h.y)*f;s.setTransform(_,m,y,b,v,x,!0)}}restoreTransformUseContext2d(t,e,i,s){this.camera&&(s.camera=this.camera)}transformWithoutTranslate(t,e,i,s,r,a,o){const l=t.project(e,i,s);t.translate(l.x,l.y,!1),t.scale(r,a,!1),t.rotate(o,!1),t.translate(-l.x,-l.y,!1),t.setTransformForCurrent()}_draw(t,e,i,s,r){const{context:a}=s;if(!a)return;const{renderable:o}=t.attribute;if(o===!1)return;a.highPerformanceSave();const l=this.transform(t,e,a,i),{x:h,y:d,z:c,lastModelMatrix:u}=l;this.z=c,WH(t,a,h,d,s,r)||(this.drawShape(t,a,h,d,s,r),this.z=0,a.modelMatrix!==u&&ce.free(a.modelMatrix),a.modelMatrix=u),a.highPerformanceRestore()}}const yW=function(){const n={linearGradient:/^(linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,fromAngleValue:/^from\s*(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/(^\#[0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^(rgb\(\d{1,3},\s*\d{1,3},\s*\d{1,3}\))/i,rgbaColor:/^(rgba\(\d{1,3},\s*\d{1,3},\s*\d{1,3},\s*((\d\.\d+)|\d{1,3})\))/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};let t="";function e(v){const x=new Error(t+": "+v);throw x.source=t,x}function i(){const v=p(s);return t.length>0&&e("Invalid input not EOF"),v}function s(){return r("linear",n.linearGradient,a)||r("radial",n.radialGradient,l)||r("conic",n.conicGradient,o)}function r(v,x,S){return function(k,A){const T=y(k);if(T){y(n.startCall)||e("Missing (");const M=A(T);return y(n.endCall)||e("Missing )"),M}}(x,function(k){const A=S();return A&&(y(n.comma)||e("Missing comma before color stops")),{type:v,orientation:A,colorStops:p(g)}})}function a(){return m("directional",n.sideOrCorner,1)||m("angular",n.angleValue,1)}function o(){return m("angular",n.fromAngleValue,1)}function l(){let v,x,S=h();return S&&(v=[],v.push(S),x=t,y(n.comma)&&(S=h(),S?v.push(S):t=x)),v}function h(){let v=function(){const x=m("shape",/^(circle)/i,0);return x&&(x.style=_()||d()),x}()||function(){const x=m("shape",/^(ellipse)/i,0);return x&&(x.style=f()||d()),x}();if(v)v.at=c();else{const x=d();if(x){v=x;const S=c();S&&(v.at=S)}else{const S=u();S&&(v={type:"default-radial",at:S})}}return v}function d(){return m("extent-keyword",n.extentKeywords,1)}function c(){if(m("position",/^at/,0)){const v=u();return v||e("Missing positioning value"),v}}function u(){const v={x:f(),y:f()};if(v.x||v.y)return{type:"position",value:v}}function p(v){let x=v();const S=[];if(x)for(S.push(x);y(n.comma);)x=v(),x?S.push(x):e("One extra comma");return S}function g(){const v=m("hex",n.hexColor,1)||m("rgba",n.rgbaColor,1)||m("rgb",n.rgbColor,1)||m("literal",n.literalColor,0);return v||e("Expected color definition"),v.length=f(),v}function f(){return m("%",n.percentageValue,1)||m("position-keyword",n.positionKeywords,1)||_()}function _(){return m("px",n.pixelValue,1)||m("em",n.emValue,1)}function m(v,x,S){const k=y(x);if(k)return{type:v,value:k[S]}}function y(v){const x=/^[\n\r\t\s]+/.exec(t);x&&b(x[0].length);const S=v.exec(t);return S&&b(S[0].length),S}function b(v){t=t.substr(v)}return function(v){return t=v.toString(),i()}}();class Al{static IsGradient(t){return!(typeof t=="string"&&!t.includes("gradient"))}static IsGradientStr(t){return typeof t=="string"&&t.includes("gradient")}static Parse(t){if(Al.IsGradientStr(t))try{const e=yW(t)[0];if(e){if(e.type==="linear")return Al.ParseLinear(e);if(e.type==="radial")return Al.ParseRadial(e);if(e.type==="conic")return Al.ParseConic(e)}}catch{return t}return t}static ParseConic(t){const{orientation:e,colorStops:i=[]}=t,s=ee/2,r=parseFloat(e.value)/180*ee-s;return{gradient:"conical",x:.5,y:.5,startAngle:r,endAngle:r+Dt,stops:i.map(a=>({color:a.value,offset:parseFloat(a.length.value)/100}))}}static ParseRadial(t){const{colorStops:e=[]}=t;return{gradient:"radial",x0:.5,y0:.5,x1:.5,y1:.5,r0:0,r1:1,stops:e.map(i=>({color:i.value,offset:parseFloat(i.length.value)/100}))}}static ParseLinear(t){const{orientation:e,colorStops:i=[]}=t,s=ee/2;let r=e.type==="angular"?parseFloat(e.value)/180*ee:0;for(;r<0;)r+=Dt;for(;r>Dt;)r-=Dt;let a=0,o=0,l=0,h=0;return r({color:d.value,offset:parseFloat(d.length.value)/100}))}}}function Ii(n,t,e){let i=t;const{a:s,b:r,c:a,d:o}=n.currentMatrix,l=Math.sign(s)*Math.sqrt(s*s+r*r),h=Math.sign(o)*Math.sqrt(a*a+o*o);return l+h===0?0:(i=i/Math.abs(l+h)*2*e,i)}function _y(n,t,e,i,s){if(!t||t===!0)return"black";let r,a;if(V(t))for(let o=0;o{g.addColorStop(f.offset,f.color)}),g}function xW(n,t,e,i=0,s=0){var r,a,o,l,h,d;const c=e.AABBBounds;if(!c)return;let u=c.x2-c.x1,p=c.y2-c.y1,g=c.x1-i,f=c.y1-s;if(e.attribute){const{scaleX:m=1,scaleY:y=1}=e.attribute;if(m*y==0)return;g/=m,f/=y,u/=m,p/=y}const _=n.createRadialGradient(g+((r=t.x0)!==null&&r!==void 0?r:.5)*u,f+((a=t.y0)!==null&&a!==void 0?a:.5)*p,Math.max(u,p)*((o=t.r0)!==null&&o!==void 0?o:0),g+((l=t.x1)!==null&&l!==void 0?l:.5)*u,f+((h=t.y1)!==null&&h!==void 0?h:.5)*p,Math.max(u,p)*((d=t.r1)!==null&&d!==void 0?d:.5));return t.stops.forEach(m=>{_.addColorStop(m.offset,m.color)}),_}function SW(n,t,e,i=0,s=0){var r,a;const o=e.AABBBounds;if(!o)return;let l=o.x2-o.x1,h=o.y2-o.y1,d=o.x1-i,c=o.y1-s;if(e.attribute){const{scaleX:p=1,scaleY:g=1}=e.attribute;if(p*g==0)return;l/=p,h/=g,d/=p,c/=g}const u=n.createConicGradient(d+((r=t.x)!==null&&r!==void 0?r:0)*l,c+((a=t.y)!==null&&a!==void 0?a:0)*h,t.startAngle,t.endAngle);return t.stops.forEach(p=>{u.addColorStop(p.offset,p.color)}),u.GetPattern(l+d,h+c,void 0)}var AW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},kW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},uk=function(n,t){return function(e,i){t(e,i,n)}};class Su{constructor(){this.time=ci.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,p){var g;const{background:f,backgroundOpacity:_=(g=t.attribute.fillOpacity)!==null&&g!==void 0?g:h.backgroundOpacity,opacity:m=h.opacity,backgroundMode:y=h.backgroundMode,backgroundFit:b=h.backgroundFit}=t.attribute;if(f)if(t.backgroundImg&&t.resources){const v=t.resources.get(f);if(v.state!=="success"||!v.data)return;if(e.save(),t.parent&&!t.transMatrix.onlyTranslate()){const S=st(t.parent).group,{scrollX:k=S.scrollX,scrollY:A=S.scrollY}=t.parent.attribute;e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.translate(k,A)}e.clip();const x=t.AABBBounds;e.setCommonStyle(t,t.attribute,i,s,h),e.globalAlpha=_*m,this.doDrawImage(e,v.data,x,y,b),e.restore(),t.transMatrix.onlyTranslate()||e.setTransformForCurrent()}else e.highPerformanceSave(),e.setCommonStyle(t,t.attribute,i,s,h),e.globalAlpha=_*m,e.fillStyle=f,e.fill(),e.highPerformanceRestore()}doDrawImage(t,e,i,s,r){if(s==="no-repeat")t.drawImage(e,i.x1,i.y1,i.width(),i.height());else{const a=i.width(),o=i.height();let l=a,h=o;if(r&&s!=="repeat"&&(e.width||e.height)){const u=e.width,p=e.height;s==="repeat-x"?(l=u*(o/p),h=o):s==="repeat-y"&&(h=p*(a/u),l=a);const g=t.dpr,f=eh.allocate({width:l,height:h,dpr:g}),_=f.getContext("2d");_&&(_.inuse=!0,_.clearMatrix(),_.setTransformForCurrent(!0),_.clearRect(0,0,l,h),_.drawImage(e,0,0,l,h),e=f.nativeCanvas),eh.free(f)}const d=t.dpr,c=t.createPattern(e,s);c.setTransform&&c.setTransform(new DOMMatrix([1/d,0,0,1/d,0,0])),t.fillStyle=c,t.translate(i.x1,i.y1),t.fillRect(0,0,a,o),t.translate(-i.x1,-i.y1)}}}const Yo=new Su;let es=class{constructor(n){this.subRenderContribitions=n,this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c,u){this._subRenderContribitions||(this._subRenderContribitions=this.subRenderContribitions.getContributions()),this._subRenderContribitions.forEach(p=>{p.render(n,t,e,i,s,r,a,o,l,h,d,c,u)})}};es=AW([gt(),uk(0,It(ni)),uk(0,_i(Mx)),kW("design:paramtypes",[Object])],es);class Rx{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=10}createCommonPattern(t,e,i,s,r){const a=(t-2*e)/2,o=s.dpr,l=eh.allocate({width:t,height:t,dpr:o}),h=l.getContext("2d");if(!h)return null;h.inuse=!0,h.clearMatrix(),h.setTransformForCurrent(!0),h.clearRect(0,0,t,t),r(a,h);const d=s.createPattern(l.nativeCanvas,"repeat");return d.setTransform&&d.setTransform(new DOMMatrix([1/o,0,0,1/o,0,0])),eh.free(l),d}createCirclePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.fillStyle=i,a.arc(r,r,r,0,Dt),a.fill()})}createDiamondPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=t/2,l=o;a.fillStyle=i,a.moveTo(o,l-r),a.lineTo(r+o,l),a.lineTo(o,l+r),a.lineTo(o-r,l),a.closePath(),a.fill()})}createRectPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e,l=o;a.fillStyle=i,a.fillRect(o,l,2*r,2*r)})}createVerticalLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(o,0,2*r,t)})}createHorizontalLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e;a.fillStyle=i,a.fillRect(0,o,t,2*r)})}createBiasLRLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.strokeStyle=i,a.lineWidth=r,a.moveTo(0,0),a.lineTo(t,t);const o=t/2,l=-o;a.moveTo(o,l),a.lineTo(o+t,l+t),a.moveTo(-o,-l),a.lineTo(-o+t,-l+t),a.stroke()})}createBiasRLLinePattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{a.strokeStyle=i,a.lineWidth=r,a.moveTo(t,0),a.lineTo(0,t);const o=t/2,l=o;a.moveTo(t+o,l),a.lineTo(o,l+t),a.moveTo(t-o,-l),a.lineTo(-o,-l+t),a.stroke()})}createGridPattern(t,e,i,s){return this.createCommonPattern(t,e,i,s,(r,a)=>{const o=e,l=o;a.fillStyle=i,a.fillRect(o,l,r,r),a.fillRect(o+r,l+r,r,r)})}initTextureMap(t,e){this.textureMap=new Map}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,p){this.textureMap||this.initTextureMap(e,t.stage);const{texture:g=h.texture,textureColor:f=h.textureColor,textureSize:_=h.textureSize,texturePadding:m=h.texturePadding}=t.attribute;g&&this.drawTexture(g,t,e,i,s,h,f,_,m)}drawTexture(t,e,i,s,r,a,o,l,h){let d=this.textureMap.get(t);if(!d)switch(t){case"circle":d=this.createCirclePattern(l,h,o,i);break;case"diamond":d=this.createDiamondPattern(l,h,o,i);break;case"rect":d=this.createRectPattern(l,h,o,i);break;case"vertical-line":d=this.createVerticalLinePattern(l,h,o,i);break;case"horizontal-line":d=this.createHorizontalLinePattern(l,h,o,i);break;case"bias-lr":d=this.createBiasLRLinePattern(l,h,o,i);break;case"bias-rl":d=this.createBiasRLLinePattern(l,h,o,i);break;case"grid":d=this.createGridPattern(l,h,o,i)}d&&(i.highPerformanceSave(),i.setCommonStyle(e,e.attribute,s,r,a),i.fillStyle=d,i.fill(),i.highPerformanceRestore())}}const Eh=new Rx;class TW{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{innerPadding:m=h.innerPadding,outerPadding:y=h.outerPadding,startAngle:b=h.startAngle,endAngle:v=h.endAngle,opacity:x=h.opacity,x:S=h.x,y:k=h.y,scaleX:A=h.scaleX,scaleY:T=h.scaleY}=t.attribute;let{innerRadius:M=h.innerRadius,outerRadius:w=h.outerRadius}=t.attribute;w+=y,M-=m;const E=!(!p||!p.stroke),R=!(!g||!g.stroke);if(f){const{distance:O=h.outerBorder.distance}=p,B=Ii(e,O,e.dpr),I=O/w;if(t.setAttributes({outerRadius:w+B,innerRadius:M-B,startAngle:b-I,endAngle:v+I}),e.beginPath(),vg(t,e,i,s,w+B,M-B),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(E){const D=h.outerBorder.opacity;h.outerBorder.opacity=x,e.setStrokeStyle(t,p,(S-i)/A,(k-s)/T,h.outerBorder),h.outerBorder.opacity=D,e.stroke()}}if(_){const{distance:O=h.innerBorder.distance}=g,B=Ii(e,O,e.dpr),I=O/w;if(t.setAttributes({outerRadius:w-B,innerRadius:M+B,startAngle:b+I,endAngle:v-I}),e.beginPath(),vg(t,e,i,s,w-B,M+B),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(R){const D=h.innerBorder.opacity;h.innerBorder.opacity=x,e.setStrokeStyle(t,g,(S-i)/A,(k-s)/T,h.innerBorder),h.innerBorder.opacity=D,e.stroke()}}t.setAttributes({outerRadius:w,innerRadius:M,startAngle:b,endAngle:v})}}const MW=new TW,wW=Eh,CW=Yo;class PW{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{radius:m=h.radius,startAngle:y=h.startAngle,endAngle:b=h.endAngle,opacity:v=h.opacity,x=h.x,y:S=h.y,scaleX:k=h.scaleX,scaleY:A=h.scaleY}=t.attribute,T=!(!p||!p.stroke),M=!(!g||!g.stroke);if(f){const{distance:w=h.outerBorder.distance}=p,E=Ii(e,w,e.dpr);if(e.beginPath(),e.arc(i,s,m+E,y,b),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(T){const R=h.outerBorder.opacity;h.outerBorder.opacity=v,e.setStrokeStyle(t,p,(x-i)/k,(S-s)/A,h.outerBorder),h.outerBorder.opacity=R,e.stroke()}}if(_){const{distance:w=h.innerBorder.distance}=g,E=Ii(e,w,e.dpr);if(e.beginPath(),e.arc(i,s,m-E,y,b),e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(M){const R=h.innerBorder.opacity;h.innerBorder.opacity=v,e.setStrokeStyle(t,g,(x-i)/k,(S-s)/A,h.innerBorder),h.innerBorder.opacity=R,e.stroke()}}}}const EW=new PW,RW=Eh,BW=Yo;class IW extends Su{constructor(){super(...arguments),this.time=ci.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{background:p,backgroundMode:g=h.backgroundMode,backgroundFit:f=h.backgroundFit}=t.attribute;if(p)if(t.backgroundImg&&t.resources){const _=t.resources.get(p);if(_.state!=="success"||!_.data)return;e.highPerformanceSave(),e.setTransformFromMatrix(t.parent.globalTransMatrix,!0);const m=t.AABBBounds;this.doDrawImage(e,_.data,m,g,f),e.highPerformanceRestore(),e.setTransformForCurrent()}else e.highPerformanceSave(),e.fillStyle=p,e.fill(),e.highPerformanceRestore()}}const OW=new IW,cp=ee/2;function Mr(n,t,e,i,s,r,a){let o;if(i<0&&(t+=i,i=-i),s<0&&(e+=s,s=-s),nt(r,!0))o=[r=Gt(r),r,r,r];else if(Array.isArray(r)){const S=r;let k,A;switch(S.length){case 0:o=[0,0,0,0];break;case 1:k=Gt(S[0]),o=[k,k,k,k];break;case 2:case 3:k=Gt(S[0]),A=Gt(S[1]),o=[k,A,k,A];break;default:o=S,o[0]=Gt(o[0]),o[1]=Gt(o[1]),o[2]=Gt(o[2]),o[3]=Gt(o[3])}}else o=[0,0,0,0];if(i<0||o[0]+o[1]+o[2]+o[3]<1e-12)return n.rect(t,e,i,s);const[l,h,d,c]=[[t,e],[t+i,e],[t+i,e+s],[t,e+s]],u=Math.min(i/2,s/2),p=[Math.min(u,o[0]),Math.min(u,o[1]),Math.min(u,o[2]),Math.min(u,o[3])],g=[l[0]+p[0],l[1]],f=[l[0],l[1]+p[0]],_=[h[0]-p[1],h[1]],m=[h[0],h[1]+p[1]],y=[d[0]-p[2],d[1]],b=[d[0],d[1]-p[2]],v=[c[0]+p[3],c[1]],x=[c[0],c[1]-p[3]];if(n.moveTo(g[0],g[1]),a&&a[0]?a[0](g[0],g[1],_[0],_[1]):n.lineTo(_[0],_[1]),!Vu(_,m)){a&&a[0]&&n.moveTo(_[0],_[1]);const S=_[0],k=_[1]+p[1];n.arc(S,k,p[1],-cp,0,!1)}if(a&&a[1]?a[1](m[0],m[1],b[0],b[1]):n.lineTo(b[0],b[1]),!Vu(y,b)){const S=b[0]-p[2],k=b[1];a&&a[1]&&n.moveTo(b[0],b[1]),n.arc(S,k,p[2],0,cp,!1)}if(a&&a[2]?a[2](y[0],y[1],v[0],v[1]):n.lineTo(v[0],v[1]),!Vu(v,x)){const S=v[0],k=v[1]-p[3];a&&a[2]&&n.moveTo(v[0],v[1]),n.arc(S,k,p[3],cp,ee,!1)}if(a&&a[3]?a[3](x[0],x[1],f[0],f[1]):n.lineTo(f[0],f[1]),!Vu(g,f)){const S=g[0],k=g[1]+p[0];a&&a[3]&&n.moveTo(f[0],f[1]),n.arc(S,k,p[0],ee,ee+cp,!1)}return!a&&n.closePath(),n}var JR=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};class QR{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{outerBorder:p,innerBorder:g}=t.attribute,f=p&&p.visible!==!1,_=g&&g.visible!==!1;if(!f&&!_)return;const{cornerRadius:m=h.cornerRadius,opacity:y=h.opacity,x:b=h.x,y:v=h.y,scaleX:x=h.scaleX,scaleY:S=h.scaleY,x1:k,y1:A}=t.attribute;let{width:T,height:M}=t.attribute;T=(T??k-i)||0,M=(M??A-s)||0;const w=!(!p||!p.stroke),E=!(!g||!g.stroke);if(f){const{distance:R=h.outerBorder.distance}=p,O=Ii(e,R,e.dpr),B=i-O,I=s-O,D=2*O;if(m===0||V(m)&&m.every(F=>F===0)?(e.beginPath(),e.rect(B,I,T+D,M+D)):(e.beginPath(),Mr(e,B,I,T+D,M+D,m)),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,p,h.outerBorder);else if(w){const F=h.outerBorder.opacity;h.outerBorder.opacity=y,e.setStrokeStyle(t,p,(b-i)/x,(v-s)/S,h.outerBorder),h.outerBorder.opacity=F,e.stroke()}}if(_){const{distance:R=h.innerBorder.distance}=g,O=Ii(e,R,e.dpr),B=i+O,I=s+O,D=2*O;if(m===0||V(m)&&m.every(F=>F===0)?(e.beginPath(),e.rect(B,I,T-D,M-D)):(e.beginPath(),Mr(e,B,I,T-D,M-D,m)),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.innerBorder);else if(E){const F=h.innerBorder.opacity;h.innerBorder.opacity=y,e.setStrokeStyle(t,g,(b-i)/x,(v-s)/S,h.innerBorder),h.innerBorder.opacity=F,e.stroke()}}}}let bg=class{constructor(){this.time=ci.beforeFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c,u){const{stroke:p=l.stroke}=n.attribute;Array.isArray(p)&&p.some(g=>g===!1)&&(u.doStroke=!1)}};bg=JR([gt()],bg);let xg=class{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(n,t,e,i,s,r,a,o,l,h,d,c){const{x1:u,y1:p,x:g=l.x,y:f=l.y,stroke:_=l.stroke,cornerRadius:m=l.cornerRadius}=n.attribute;let{width:y,height:b}=n.attribute;if(y=(y??u-g)||0,b=(b??p-f)||0,Array.isArray(_)&&_.some(v=>v===!1)){if(t.setStrokeStyle(n,n.attribute,e,i,l),!(m===0||V(m)&&m.every(v=>v===0))){let v,x=0;return Mr(t,e,i,y,b,m,new Array(4).fill(0).map((S,k)=>(A,T,M,w)=>{_[k]&&(x===k-1&&_[k]===v||(t.setStrokeStyle(n,Object.assign(Object.assign({},n.attribute),{stroke:_[k]}),e,i,l),t.beginPath(),t.moveTo(A,T),v=_[k]),x=k,t.lineTo(M,w),t.stroke(),k===3&&t.beginPath())})),void t.stroke()}if(t.beginPath(),t.moveTo(e,i),_[0]?t.lineTo(e+y,i):t.moveTo(e+y,i),_[1]?t.lineTo(e+y,i+b):t.moveTo(e+y,i+b),_[2]?t.lineTo(e,i+b):t.moveTo(e,i+b),_[3]){const v=_[0]?i-t.lineWidth/2:i;t.lineTo(e,v)}else t.moveTo(e,i);t.stroke()}}};xg=JR([gt()],xg);const LW=new QR,DW=Eh,FW=Yo;class zW extends Su{constructor(){super(...arguments),this.time=ci.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const{background:p,backgroundMode:g=h.backgroundMode,backgroundFit:f=h.backgroundFit}=t.attribute;if(p)if(t.backgroundImg){const _=t.resources.get(p);if(_.state!=="success"||!_.data)return;if(e.save(),t.parent&&!t.transMatrix.onlyTranslate()){const y=st(t.parent).group,{scrollX:b=y.scrollX,scrollY:v=y.scrollY}=t.parent.attribute;e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.translate(b,v)}const m=t.AABBBounds;this.doDrawImage(e,_.data,m,g,f),e.restore(),t.transMatrix.onlyTranslate()||e.setTransformForCurrent()}else if(Ct(p)){const{stroke:_,fill:m,lineWidth:y=1,cornerRadius:b=0,expandX:v=0,expandY:x=0}=p;if(!_&&!m)return;e.beginPath();const{x:S,y:k,width:A,height:T}=jW(t);b?Mr(e,S-v,k-x,A+2*v,T+2*x,b):e.rect(S-v,k-x,A+2*v,T+2*x),e.globalAlpha=1,m&&(e.fillStyle=m,e.fill()),_&&y>0&&(e.lineWidth=y,e.strokeStyle=_,e.stroke())}else{e.beginPath();const _=t.AABBBounds;e.rect(i,s,_.width(),_.height()),e.fillStyle=p,e.globalAlpha=1,e.fill()}}}function jW(n){const t=Bi(n.attribute.boundsPadding),e=n.AABBBounds;let i=e.x1,s=e.y1,r=e.width(),a=e.height();return nt(t)?(i+=t,s+=t,r-=2*t,a-=2*t):(i+=t[3],s+=t[0],r-=t[1]+t[3],a-=t[0]+t[2]),{x:i,y:s,width:r,height:a}}class HW extends QR{constructor(){super(...arguments),this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){return super.drawShape(t,e,i,s,r,a,o,l,h,d,c,u)}}const VW=new HW,WW=new zW;class NW{constructor(){this.time=ci.afterFillStroke,this.useStyle=!0,this.order=0}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){const p=t.getParsedPath();if(!p)return;const{outerBorder:g,innerBorder:f}=t.attribute,_=g&&g.visible!==!1,m=f&&f.visible!==!1;if(!_&&!m)return;const{size:y=h.size,opacity:b=h.opacity,x:v=h.x,y:x=h.y,scaleX:S=h.scaleX,scaleY:k=h.scaleY}=t.attribute,A=!(!g||!g.stroke),T=!(!f||!f.stroke);if(_){const{distance:M=h.outerBorder.distance}=g,w=Ii(e,M,e.dpr);if(e.beginPath(),p.drawOffset(e,y,i,s,w)===!1&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,g,h.outerBorder);else if(A){const E=h.outerBorder.opacity;h.outerBorder.opacity=b,e.setStrokeStyle(t,g,(v-i)/S,(x-s)/k,h.outerBorder),h.outerBorder.opacity=E,e.stroke()}}if(m){const{distance:M=h.innerBorder.distance}=f,w=Ii(e,M,e.dpr);if(e.beginPath(),p.drawOffset(e,y,i,s,-w)===!1&&e.closePath(),e.setShadowBlendStyle&&e.setShadowBlendStyle(t,t.attribute,h),u)u(e,f,h.innerBorder);else if(T){const E=h.innerBorder.opacity;h.innerBorder.opacity=b,e.setStrokeStyle(t,f,(v-i)/S,(x-s)/k,h.innerBorder),h.innerBorder.opacity=E,e.stroke()}}}}const GW=new NW,UW=Eh,$W=Yo;class YW extends Rx{constructor(){super(...arguments),this.time=ci.afterFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u,p){var g,f,_,m;this.textureMap||this.initTextureMap(e,t.stage);const{attribute:y=t.attribute}=p||{},{texture:b=(g=t.attribute.texture)!==null&&g!==void 0?g:ap(h,"texture"),textureColor:v=(f=t.attribute.textureColor)!==null&&f!==void 0?f:ap(h,"textureColor"),textureSize:x=(_=t.attribute.textureSize)!==null&&_!==void 0?_:ap(h,"textureSize"),texturePadding:S=(m=t.attribute.texturePadding)!==null&&m!==void 0?m:ap(h,"texturePadding")}=y;b&&this.drawTexture(b,t,e,i,s,h,v,x,S)}}var XW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},KW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},pk=function(n,t){return function(e,i){t(e,i,n)}};let Sg=class extends cn{constructor(n){super(),this.arcRenderContribitions=n,this.numberType=U_,this.builtinContributions=[MW,CW,wW],this.init(n)}drawArcTailCapPath(n,t,e,i,s,r,a,o){const l=o-a,h=n.getParsedAngle(),d=h.startAngle;let c=h.endAngle;c=o;const u=Gt(c-d),p=c>d;let g=!1;if(s$t||w>$t)&&($=s*se(v),K=s*Kt(v),W=r*se(S),et=r*Kt(S),u$t){const Z=ki(k,R),ht=ki(A,R),J=ta(W,et,B,I,s,Z,Number(p)),N=ta($,K,D,F,s,ht,Number(p));if(R0&&t.arc(e+N.cx,i+N.cy,ht,ne(N.y11,N.x11),ne(N.y01,N.x01),!p)}}else t.moveTo(e+B,i+I);if(!(r>$t)||y<.001)t.lineTo(e+D,i+F),g=!0;else if(O>$t){const Z=ki(M,O),ht=ki(T,O),J=ta(D,F,$,K,r,-ht,Number(p)),N=ta(B,I,W,et,r,-Z,Number(p));if(t.lineTo(e+J.cx+J.x01,i+J.cy+J.y01),O0&&t.arc(e+J.cx,i+J.cy,ht,ne(J.y01,J.x01),ne(J.y11,J.x11),!p);const q=ne(J.cy+J.y11,J.cx+J.x11),X=c-l-.03;t.arc(e,i,r,q,X,p)}}else t.lineTo(e+r*se(S),i+r*Kt(S));return g}drawShape(n,t,e,i,s,r,a,o){const l=st(n,r==null?void 0:r.theme).arc,{fill:h=l.fill,stroke:d=l.stroke,x:c=l.x,y:u=l.y}=n.attribute,p=this.valid(n,l,a,o);if(!p)return;const{fVisible:g,sVisible:f,doFill:_,doStroke:m}=p,{outerPadding:y=l.outerPadding,innerPadding:b=l.innerPadding,cap:v=l.cap,forceShowCap:x=l.forceShowCap}=n.attribute;let{outerRadius:S=l.outerRadius,innerRadius:k=l.innerRadius}=n.attribute;S+=y,k-=b;let A=0;const T=(be(v)&&v||v[0])&&h.gradient==="conical";if(T){const{sc:R,startAngle:O,endAngle:B}=n.getParsedAngle();Gt(B-O)=Dt-$t){t.beginPath();const B=Math.abs(S-k)/2/S,{endAngle:I=l.endAngle,fill:D=l.fill}=n.attribute,F=I;if(this.drawArcTailCapPath(n,t,e,i,S,k,F,F+B),M||this.beforeRenderStep(n,t,e,i,_,m,g,f,l,s,a,o),_){const $=D;if($.gradient==="conical"){const K=NH(0,0,I,$);a||Mo&&(t.setCommonStyle(n,n.attribute,e,i,l),t.fillStyle=K,t.fill())}}m&&(o||f&&(t.setStrokeStyle(n,n.attribute,e,i,l),t.stroke()))}}this.afterRenderStep(n,t,e,i,_,m,g,f,l,s,a,o),T&&(h.startAngle+=A,h.endAngle+=A)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).arc;this._draw(n,s,!1,e,i)}};Sg=XW([gt(),pk(0,It(ni)),pk(0,_i(ny)),KW("design:paramtypes",[Object])],Sg);var qW=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},ZW=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},gk=function(n,t){return function(e,i){t(e,i,n)}};let Ag=class extends cn{constructor(n){super(),this.circleRenderContribitions=n,this.numberType=$_,this.builtinContributions=[EW,BW,RW],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=st(n,r==null?void 0:r.theme).circle,{radius:h=l.radius,startAngle:d=l.startAngle,endAngle:c=l.endAngle,x:u=l.x,y:p=l.y}=n.attribute,g=this.valid(n,l,a,o);if(!g)return;const{fVisible:f,sVisible:_,doFill:m,doStroke:y}=g;t.beginPath(),t.arc(e,i,h,d,c),t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,e,i,m,y,f,_,l,s,a,o),m&&(a?a(t,n.attribute,l):f&&(t.setCommonStyle(n,n.attribute,u-e,p-i,l),t.fill())),y&&(o?o(t,n.attribute,l):_&&(t.setStrokeStyle(n,n.attribute,u-e,p-i,l),t.stroke())),this.afterRenderStep(n,t,e,i,m,y,f,_,l,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).circle;this._draw(n,s,!1,e,i)}};Ag=qW([gt(),gk(0,It(ni)),gk(0,_i(ry)),ZW("design:paramtypes",[Object])],Ag);function kg(n,t,e,i){if(!t.p1)return;const{offsetX:s=0,offsetY:r=0,offsetZ:a=0}=i||{};if(e===1)t.p2&&t.p3?n.bezierCurveTo(s+t.p1.x,r+t.p1.y,s+t.p2.x,r+t.p2.y,s+t.p3.x,r+t.p3.y,a):n.lineTo(s+t.p1.x,r+t.p1.y,a);else if(t.p2&&t.p3){const[o]=Wv(t,e);n.bezierCurveTo(s+o.p1.x,r+o.p1.y,s+o.p2.x,r+o.p2.y,s+o.p3.x,r+o.p3.y,a)}else{const o=t.getPointAt(e);n.lineTo(s+o.x,r+o.y,a)}}function my(n,t,e,i,s){var r;const{offsetX:a=0,offsetY:o=0,offsetZ:l=0,mode:h="none",drawConnect:d=!1,zeroX:c=0,zeroY:u=0}=s||{};if(d&&h==="none"||!t)return;let p=!0;const{curves:g}=t;if(e>=1){if(d){let v,x=!0;g.forEach((S,k)=>{var A;let T=S.p0;if(S.originP1!==S.originP2){if(v&&v.originP1===v.originP2&&(T=v.p0),S.defined)x||(n.lineTo(T.x+a,T.y+o,l),x=!x);else{const{originP1:M,originP2:w}=S;let E;if(M&&M.defined!==!1?E=T:M&&w.defined!==!1&&(E=(A=S.p3)!==null&&A!==void 0?A:S.p1),x){x=!x;const R=E?E.x:S.p0.x,O=E?E.y:S.p0.y;n.moveTo(R+a,O+o,l)}else E&&(x=!x,n.lineTo(E.x+a,E.y+o,l))}v=S}else v=S})}else g.forEach(v=>{v.defined?(p&&n.moveTo(v.p0.x+a,v.p0.y+o,l),kg(n,v,1,s),p=!1):p=!0});return}if(e<=0)return;let f;i==="x"?f=de.ROW:i==="y"?f=de.COLUMN:i==="auto"&&(f=t.direction);const _=e*t.tryUpdateLength(f);let m=0,y=!0,b=null;for(let v=0,x=g.length;v{o.defined!==!1?n.lineTo(o.x+s,o.y+r):n.moveTo(o.x+s,o.y+r)})}function QW(n,t,e,i){const{offsetX:s=0,offsetY:r=0}=i||{},{points:a}=e,o=[];for(let l=0;l{var d,c,u,p;const g=t&&h===0?t.points[t.points.length-1]:l[0];n.moveTo(g.x+s,g.y+r),l.forEach(f=>{f.defined!==!1?n.lineTo(f.x+s,f.y+r):n.moveTo(f.x+s,f.y+r)});for(let f=l.length-1;f>=0;f--){const _=l[f];n.lineTo((d=_.x1)!==null&&d!==void 0?d:_.x,(c=_.y1)!==null&&c!==void 0?c:_.y)}n.lineTo((u=g.x1)!==null&&u!==void 0?u:g.x,(p=g.y1)!==null&&p!==void 0?p:g.y),n.closePath()})}var t5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Pc=class extends cn{constructor(){super(...arguments),this.numberType=yu}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).line;this._draw(n,s,!1,e,i)}drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,p,g){var f,_,m,y,b;if(!t)return;n.beginPath();const v=(f=this.z)!==null&&f!==void 0?f:0;my(n.camera?n:n.nativeContext,t,l,h,{offsetX:d,offsetY:c,offsetZ:v}),u.cache&&!V(u.cache)&&u.cache.curves.every(w=>w.defined)&&u.attribute.curveType&&u.attribute.curveType.includes("Closed")&&n.closePath(),n.setShadowBlendStyle&&n.setShadowBlendStyle(u,a,o);const{x=0,x:S=0}=a;e!==!1&&(p?p(n,a,o):s&&(n.setCommonStyle(u,a,x-d,S-c,o),n.fill())),i!==!1&&(g?g(n,a,o):r&&(n.setStrokeStyle(u,a,x-d,S-c,o),n.stroke()));let{connectedType:k,connectedX:A,connectedY:T,connectedStyle:M}=a;if(V(o)?(k=(_=k??o[0].connectedType)!==null&&_!==void 0?_:o[1].connectedType,A=(m=A??o[0].connectedX)!==null&&m!==void 0?m:o[1].connectedX,T=(y=T??o[0].connectedY)!==null&&y!==void 0?y:o[1].connectedY,M=(b=M??o[0].connectedStyle)!==null&&b!==void 0?b:o[1].connectedStyle):(k=k??o.connectedType,A=A??o.connectedX,T=T??o.connectedY,M=M??o.connectedStyle),k!=="connect"&&k!=="zero"&&(k="none"),k!=="none"){n.beginPath(),my(n.camera?n:n.nativeContext,t,l,h,{offsetX:d,offsetY:c,offsetZ:v,drawConnect:!0,mode:k,zeroX:A,zeroY:T});const w=[];V(o)?o.forEach(E=>w.push(E)):w.push(o),w.push(a),e!==!1&&(p?p(n,a,o):s&&(n.setCommonStyle(u,M,x-d,S-c,w),n.fill())),i!==!1&&(g?g(n,a,o):r&&(n.setStrokeStyle(u,M,x-d,S-c,w),n.stroke()))}return!1}drawLinearLineHighPerformance(n,t,e,i,s,r,a,o,l,h,d,c,u){var p;t.beginPath();const g=(p=this.z)!==null&&p!==void 0?p:0,{points:f}=n.attribute,_=f[0];t.moveTo(_.x+a,_.y+o,g);for(let b=1;bv.defined===!1)&&m==="linear")return this.drawLinearLineHighPerformance(n,t,!!h,!!d,c,u,e,i,l,s,r,a,o);if(n.shouldUpdateShape()){const{points:v,segments:x}=n.attribute,S=v;if(x&&x.length){let k,A;if(n.cache=x.map((T,M)=>{if(T.points.length<=1&&M===0)return T.points[0]&&(A={endX:T.points[0].x,endY:T.points[0].y,curves:[{defined:T.points[0].defined!==!1}]}),null;M===1?k={x:A.endX,y:A.endY,defined:A.curves[A.curves.length-1].defined}:M>1&&(k.x=A.endX,k.y=A.endY,k.defined=A.curves[A.curves.length-1].defined);const w=Uv(T.points,m,{startPoint:k,curveTension:_});return A=w,w}).filter(T=>!!T),m==="linearClosed"){let T;for(let M=0;Mx.points.length);if(v[0].points.length===1&&v.shift(),y===1){let x=!1;n.cache.forEach((S,k)=>{x||(x=this.drawSegmentItem(t,S,!!h,!!d,c,u,v[k],[l,n.attribute],y,b,e,i,n,a,o))})}else{const x=n.cache.reduce((T,M)=>T+M.getLength(),0),S=y*x;let k=0,A=!1;n.cache.forEach((T,M)=>{if(A)return;const w=T.getLength(),E=(S-k)/w;k+=w,E>0&&(A=this.drawSegmentItem(t,T,!!h,!!d,c,u,v[M],[l,n.attribute],ki(E,1),b,e,i,n,a,o))})}}else this.drawSegmentItem(t,n.cache,!!h,!!d,c,u,n.attribute,l,y,b,e,i,n,a,o)}};Pc=t5([gt()],Pc);function e5(n,t,e,i){var s;const{drawConnect:r=!1,mode:a="none"}=i||{};if(r&&a==="none")return;const{top:o,bottom:l}=t;if(o.curves.length!==l.curves.length)return;if(e>=1){const S=[],k=[];let A=!0;if(r){let T,M,w=!0;const E=o.curves.length;o.curves.forEach((R,O)=>{const B=l.curves[E-O-1];let I=R,D=B;if(R.originP1===R.originP2)return T=R,void(M=B);if(T&&T.originP1===T.originP2&&(I=T,D=M),R.defined)w||(S.push(I),k.push(D),il(n,S,k,i),S.length=0,k.length=0,w=!w);else{const{originP1:F,originP2:$}=R;let K,W;F&&F.defined!==!1?(K=I,W=D):F&&$.defined!==!1&&(K=R,W=B),w?(w=!w,S.push(K||R),k.push(W||B)):K&&(w=!w,S.push(K||R),k.push(W||B),il(n,S,k,i),S.length=0,k.length=0)}T=R}),il(n,S,k,i)}else{for(let T=0,M=o.curves.length;Tp?de.ROW:de.COLUMN),Number.isFinite(u)||(h=de.COLUMN),Number.isFinite(p)||(h=de.ROW);const g=e*(h===de.ROW?u:p);let f=0,_=!0;const m=[],y=[];let b,v,x=!0;for(let S=0,k=o.curves.length;S{l.defined?(o&&n.moveTo(l.p0.x+s,l.p0.y+r,a),kg(n,l,1,i),o=!1):o=!0}),o=!0;for(let l=e.length-1;l>=0;l--){const h=e[l];h.defined?(o&&n.lineTo(h.p0.x+s,h.p0.y+r,a),kg(n,h,1,i),o=!1):o=!0}n.closePath()}const i5=new YW,n5=Yo;var s5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},r5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},fk=function(n,t){return function(e,i){t(e,i,n)}};function pp(n,t,e){var i,s;switch(t){case"linear":default:return wh(n,e);case"basis":return KE(n,e);case"monotoneX":return ZE(n,e);case"monotoneY":return JE(n,e);case"step":return Dl(n,.5,e);case"stepBefore":return Dl(n,0,e);case"stepAfter":return Dl(n,1,e);case"catmullRom":return iR(n,(i=e==null?void 0:e.curveTension)!==null&&i!==void 0?i:.5,e);case"catmullRomClosed":return nR(n,(s=e==null?void 0:e.curveTension)!==null&&s!==void 0?s:.5,e);case"linearClosed":return QE(n,e)}}let Ec=class extends cn{constructor(n){super(),this.areaRenderContribitions=n,this.numberType=vu,this.builtinContributions=[i5,n5],this.init(n)}drawLinearAreaHighPerformance(n,t,e,i,s,r,a,o,l,h,d,c,u){var p,g,f,_,m;const{points:y}=n.attribute;if(y.length<2)return;t.beginPath();const b=(p=this.z)!==null&&p!==void 0?p:0,v=y[0];t.moveTo(v.x+a,v.y+o,b);for(let k=1;k=0;k--){const A=y[k];t.lineTo(((g=A.x1)!==null&&g!==void 0?g:A.x)+a,((f=A.y1)!==null&&f!==void 0?f:A.y)+o,b)}t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,a,o,!!s,!1,e,!1,l,h,c,null,{attribute:n.attribute});const{x=0,x:S=0}=n.attribute;if(e!==!1&&(c?c(t,n.attribute,l):s&&(t.setCommonStyle(n,n.attribute,x-a,S-o,l),t.fill())),this.afterRenderStep(n,t,a,o,!!s,!1,e,!1,l,h,c,null,{attribute:n.attribute}),i){const{stroke:k=l&&l.stroke}=n.attribute;if(V(k)&&(k[0]||k[2])&&k[1]===!1){if(t.beginPath(),k[0]){t.moveTo(v.x+a,v.y+o,b);for(let A=1;A=0;T--){const M=y[T];t.lineTo(((_=M.x1)!==null&&_!==void 0?_:M.x)+a,((m=M.y1)!==null&&m!==void 0?m:M.y)+o,b)}}}u?u(t,n.attribute,l):(t.setStrokeStyle(n,n.attribute,x-a,S-o,l),t.stroke())}}drawShape(n,t,e,i,s,r,a,o){var l,h,d,c,u,p;const g=st(n,r==null?void 0:r.theme).area,{fill:f=g.fill,stroke:_=g.stroke,fillOpacity:m=g.fillOpacity,z:y=g.z,strokeOpacity:b=g.strokeOpacity,curveTension:v=g.curveTension}=n.attribute,x=this.valid(n,g,a,o);if(!x)return;const{doFill:S}=x,k=x.doStroke&&x.sVisible,{clipRange:A=g.clipRange,closePath:T,points:M,segments:w}=n.attribute;let{curveType:E=g.curveType}=n.attribute;if(T&&E==="linear"&&(E="linearClosed"),A===1&&!w&&!M.some(R=>R.defined===!1)&&E==="linear")return this.drawLinearAreaHighPerformance(n,t,!!f,k,m,b,e,i,g,s,r,a,o);if(n.shouldUpdateShape()){if(w&&w.length){let R,O;const B=w.map((F,$)=>{if(F.points.length<=1&&$===0)return F.points[0]&&(O={endX:F.points[0].x,endY:F.points[0].y}),null;$===1?R={x:O.endX,y:O.endY}:$>1&&(R.x=O.endX,R.y=O.endY);const K=pp(F.points,E,{startPoint:R,curveTension:v});return O=K,K}).filter(F=>!!F);let I;const D=[];for(let F=w.length-1;F>=0;F--){const $=w[F].points,K=[];for(let W=$.length-1;W>=0;W--)K.push({x:(l=$[W].x1)!==null&&l!==void 0?l:$[W].x,y:(h=$[W].y1)!==null&&h!==void 0?h:$[W].y});if(F!==0){const W=w[F-1].points,et=W[W.length-1];et&&K.push({x:(d=et.x1)!==null&&d!==void 0?d:et.x,y:(c=et.y1)!==null&&c!==void 0?c:et.y})}K.length>1&&(I=pp(K,E==="stepBefore"?"stepAfter":E==="stepAfter"?"stepBefore":E,{curveTension:v}),D.unshift(I))}n.cacheArea=D.map((F,$)=>({top:B[$],bottom:F}))}else{if(!M||!M.length)return n.cacheArea=null,void n.clearUpdateShapeTag();{const R=M,O=[];for(let D=M.length-1;D>=0;D--)O.push({x:(u=M[D].x1)!==null&&u!==void 0?u:M[D].x,y:(p=M[D].y1)!==null&&p!==void 0?p:M[D].y});const B=pp(R,E,{curveTension:v}),I=pp(O,E==="stepBefore"?"stepAfter":E==="stepAfter"?"stepBefore":E,{curveTension:v});n.cacheArea={top:B,bottom:I}}}n.clearUpdateShapeTag()}if(Array.isArray(n.cacheArea)){const R=n.attribute.segments.filter(O=>O.points.length);if(R[0].points.length===1&&R.shift(),A===1){let O=!1;n.cacheArea.forEach((B,I)=>{O||(O=this.drawSegmentItem(t,B,S,m,k,b,R[I],[g,n.attribute],A,e,i,y,n,s,a,o))})}else{const O=n.cacheArea.reduce((F,$)=>F+$.top.getLength(),0),B=A*O;let I=0,D=!1;n.cacheArea.forEach((F,$)=>{if(D)return;const K=F.top.getLength(),W=(B-I)/K;I+=K,W>0&&(D=this.drawSegmentItem(t,F,S,m,k,b,R[$],[g,n.attribute],ki(W,1),e,i,y,n,s,a,o))})}}else this.drawSegmentItem(t,n.cacheArea,S,m,k,b,n.attribute,g,A,e,i,y,n,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).area;this._draw(n,s,!1,e,i)}drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,p,g,f){let _=!1;return _=_||this._drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,p,!1,g,f),_=_||this._drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,p,!0,g,f),_}_drawSegmentItem(n,t,e,i,s,r,a,o,l,h,d,c,u,p,g,f,_){var m,y,b,v;if(!(t&&t.top&&t.bottom&&t.top.curves&&t.top.curves.length&&t.bottom.curves&&t.bottom.curves.length))return;let{connectedType:x,connectedX:S,connectedY:k,connectedStyle:A}=a;const T=[];if(g&&(V(o)?(x=(m=x??o[0].connectedType)!==null&&m!==void 0?m:o[1].connectedType,S=(y=S??o[0].connectedX)!==null&&y!==void 0?y:o[1].connectedX,k=(b=k??o[0].connectedY)!==null&&b!==void 0?b:o[1].connectedY,A=(v=A??o[0].connectedStyle)!==null&&v!==void 0?v:o[1].connectedStyle):(x=x??o.connectedType,S=S??o.connectedX,k=k??o.connectedY,A=A??o.connectedStyle),x!=="connect"&&x!=="zero"&&(x="none"),V(o)?o.forEach($=>T.push($)):T.push(o),T.push(a)),g&&x==="none")return!1;n.beginPath();const{points:M,segments:w}=u.attribute;let E,R,O=de.ROW;if(w){const $=w[w.length-1];R=w[0].points[0],E=$.points[$.points.length-1]}else R=M[0],E=M[M.length-1];const B=Gt(E.x-R.x),I=Gt(E.y-R.y);O=E.x1==null?de.ROW:E.y1==null?de.COLUMN:Number.isFinite(B+I)?B>I?de.ROW:de.COLUMN:de.ROW,e5(n.camera?n:n.nativeContext,t,l,{offsetX:h,offsetY:d,offsetZ:c,direction:O,drawConnect:g,mode:x,zeroX:S,zeroY:k}),this.beforeRenderStep(u,n,h,d,!!i,!1,e,!1,o,p,f,null,{attribute:a}),n.setShadowBlendStyle&&n.setShadowBlendStyle(u,a,o);const{x:D=0,x:F=0}=a;if(e!==!1&&(f?f(n,a,o):i&&(n.setCommonStyle(u,g?A:a,D-h,F-d,g?T:o),n.fill())),this.afterRenderStep(u,n,h,d,!!i,!1,e,!1,o,p,f,null,{attribute:a}),s!==!1)if(_)_(n,a,o);else{const{stroke:$=o&&o[1]&&o[1].stroke}=a;V($)&&($[0]||$[2])&&$[1]===!1&&(n.beginPath(),my(n.camera?n:n.nativeContext,$[0]?t.top:t.bottom,l,O===de.ROW?"x":"y",{offsetX:h,offsetY:d,offsetZ:c,drawConnect:g,mode:x,zeroX:S,zeroY:k})),n.setStrokeStyle(u,g?A:a,D-h,F-d,g?T:o),n.stroke()}return!1}};Ec=s5([gt(),fk(0,It(ni)),fk(0,_i(sy)),r5("design:paramtypes",[Object])],Ec);const a5=Eh,o5=Yo;var l5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},h5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},_k=function(n,t){return function(e,i){t(e,i,n)}};let Tg=class extends cn{constructor(n){super(),this.pathRenderContribitions=n,this.numberType=K_,this.builtinContributions=[o5,a5],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l,h,d;const c=(l=this.tempTheme)!==null&&l!==void 0?l:st(n,r==null?void 0:r.theme).path,{x:u=c.x,y:p=c.y}=n.attribute,g=(h=this.z)!==null&&h!==void 0?h:0,f=this.valid(n,c,a,o);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:b}=f;if(t.beginPath(),n.pathShape)fr(n.pathShape.commandList,t,e,i,1,1,g);else{const v=(d=n.attribute.path)!==null&&d!==void 0?d:c.path;fr(v.commandList,t,e,i,1,1,g)}t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,c),this.beforeRenderStep(n,t,e,i,y,b,_,m,c,s,a,o),b&&(o?o(t,n.attribute,c):m&&(t.setStrokeStyle(n,n.attribute,u-e,p-i,c),t.stroke())),y&&(a?a(t,n.attribute,c):_&&(t.setCommonStyle(n,n.attribute,u-e,p-i,c),t.fill())),this.afterRenderStep(n,t,e,i,y,b,_,m,c,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).path;this.tempTheme=s,this._draw(n,s,!1,e,i),this.tempTheme=null}};Tg=l5([gt(),_k(0,It(ni)),_k(0,_i(oy)),h5("design:paramtypes",[Object])],Tg);var d5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},c5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},mk=function(n,t){return function(e,i){t(e,i,n)}};let Mg=class extends cn{constructor(n){super(),this.rectRenderContribitions=n,this.type="rect",this.numberType=Z_,this.builtinContributions=[LW,FW,DW],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l;const h=(l=this.tempTheme)!==null&&l!==void 0?l:st(n,r==null?void 0:r.theme).rect,{fill:d=h.fill,background:c,stroke:u=h.stroke,cornerRadius:p=h.cornerRadius,opacity:g=h.opacity,fillOpacity:f=h.fillOpacity,lineWidth:_=h.lineWidth,strokeOpacity:m=h.strokeOpacity,visible:y=h.visible,x1:b,y1:v,x=h.x,y:S=h.y}=n.attribute;let{width:k,height:A}=n.attribute;k=(k??b-x)||0,A=(A??v-S)||0;const T=Ax(g,f,k,A,d),M=Tx(g,m,k,A),w=$o(d,c),E=Ph(u,_);if(!n.valid||!y||!w&&!E||!(T||M||a||o||c))return;p===0||V(p)&&p.every(O=>O===0)?(t.beginPath(),t.rect(e,i,k,A)):(t.beginPath(),Mr(t,e,i,k,A,p));const R={doFill:w,doStroke:E};t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),this.beforeRenderStep(n,t,e,i,w,E,T,M,h,s,a,o,R),R.doFill&&(a?a(t,n.attribute,h):T&&(t.setCommonStyle(n,n.attribute,x-e,S-i,h),t.fill())),R.doStroke&&(o?o(t,n.attribute,h):M&&(t.setStrokeStyle(n,n.attribute,x-e,S-i,h),t.stroke())),this.afterRenderStep(n,t,e,i,w,E,T,M,h,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).rect;this.tempTheme=s,this._draw(n,s,!1,e,i),this.tempTheme=null}};Mg=d5([gt(),mk(0,It(ni)),mk(0,_i(cd)),c5("design:paramtypes",[Object])],Mg);var u5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},p5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},vk=function(n,t){return function(e,i){t(e,i,n)}};let wg=class extends cn{constructor(n){super(),this.symbolRenderContribitions=n,this.numberType=J_,this.builtinContributions=[GW,$W,UW],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l;const h=st(n,r==null?void 0:r.theme).symbol,{size:d=h.size,x:c=h.x,y:u=h.y,scaleX:p=h.scaleX,scaleY:g=h.scaleY}=n.attribute,f=this.valid(n,h,a,o);if(!f)return;const{fVisible:_,sVisible:m,doFill:y,doStroke:b}=f,v=n.getParsedPath();if(!v)return;const{keepDirIn3d:x=h.keepDirIn3d}=n.attribute,S=(l=this.z)!==null&&l!==void 0?l:0;if(t.beginPath(),x&&t.camera&&t.project){const k=t.project(e,i,S),A=t.camera;t.camera=null,v.draw(t,V(d)?[d[0]*p,d[1]*g]:d*p,k.x,k.y,void 0,(T,M)=>{var w,E,R;if(n._parsedPath.svgCache){const O=Object.assign({},M);O.fill=(w=M.fill)!==null&&w!==void 0?w:n.attribute.fill,O.opacity=(E=M.fill)!==null&&E!==void 0?E:n.attribute.opacity,O.fillOpacity=n.attribute.fillOpacity,O.stroke=(R=M.stroke)!==null&&R!==void 0?R:n.attribute.stroke,M=O}M.fill&&(a?a(t,n.attribute,h):(t.setCommonStyle(n,M,c-e,u-i,h),t.fill())),M.stroke&&(o?o(t,n.attribute,h):(t.setStrokeStyle(n,M,(c-e)/p,(u-i)/g,h),t.stroke()))})===!1&&t.closePath(),t.camera=A}else v.draw(t,d,e,i,S,(k,A)=>{var T,M,w;if(n._parsedPath.svgCache){const E=Object.assign({},A);E.fill=(T=A.fill)!==null&&T!==void 0?T:n.attribute.fill,E.opacity=(M=A.opacity)!==null&&M!==void 0?M:n.attribute.opacity,E.fillOpacity=n.attribute.fillOpacity,E.stroke=(w=A.stroke)!==null&&w!==void 0?w:n.attribute.stroke,A=E}A.fill&&(a?a(t,n.attribute,h):(t.setCommonStyle(n,A,c-e,u-i,h),t.fill())),A.stroke&&(o?o(t,n.attribute,h):(t.setStrokeStyle(n,A,(c-e)/p,(u-i)/g,h),t.stroke()))})===!1&&t.closePath();t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),this.beforeRenderStep(n,t,e,i,y,b,_,m,h,s,a,o),y&&!v.isSvg&&(a?a(t,n.attribute,h):_&&(t.setCommonStyle(n,n.attribute,c-e,u-i,h),t.fill())),b&&!v.isSvg&&(o?o(t,n.attribute,h):m&&(t.setStrokeStyle(n,n.attribute,(c-e)/p,(u-i)/g,h),t.stroke())),this.afterRenderStep(n,t,e,i,y,b,_,m,h,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).symbol;this._draw(n,s,!1,e,i)}};wg=u5([gt(),vk(0,It(ni)),vk(0,_i(hy)),p5("design:paramtypes",[Object])],wg);class g5{constructor(){this.pools=[];for(let t=0;t<10;t++)this.pools.push(new _e)}allocate(t,e,i,s){if(!this.pools.length)return new _e().setValue(t,e,i,s);const r=this.pools.pop();return r.x1=t,r.y1=e,r.x2=i,r.y2=s,r}allocateByObj(t){if(!this.pools.length)return new _e(t);const e=this.pools.pop();return e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e}free(t){this.pools.push(t)}get length(){return this.pools.length}release(...t){this.pools=[]}}const Cg=new g5;class f5 extends Su{constructor(){super(...arguments),this.time=ci.beforeFillStroke}drawShape(t,e,i,s,r,a,o,l,h,d,c,u){var p,g,f,_,m,y,b,v,x,S;const{backgroundMode:k=h.backgroundMode,backgroundFit:A=h.backgroundFit}=t.attribute;let T,{background:M}=t.attribute;if(!M)return;const w=()=>{t.type==="richtext"&&(e.restore(),e.save(),T&&e.setTransformFromMatrix(T,!0,1))};let E;t.type==="richtext"&&(T=e.currentMatrix.clone(),e.restore(),e.save(),e.setTransformForCurrent());const R=Ct(M)&&M.background,O=t.transMatrix.onlyTranslate();if(R){const B=t.AABBBounds,I=((p=M.x)!==null&&p!==void 0?p:B.x1)+((g=M.dx)!==null&&g!==void 0?g:0),D=((f=M.y)!==null&&f!==void 0?f:B.y1)+((_=M.dy)!==null&&_!==void 0?_:0),F=(m=M.width)!==null&&m!==void 0?m:B.width(),$=(y=M.height)!==null&&y!==void 0?y:B.height();if(E=Cg.allocate(I,D,I+F,D+$),M=M.background,!O){const K=E.width(),W=E.height();E.set(((b=M.x)!==null&&b!==void 0?b:0)+((v=M.dx)!==null&&v!==void 0?v:0),((x=M.y)!==null&&x!==void 0?x:0)+((S=M.dy)!==null&&S!==void 0?S:0),K,W)}}else E=t.AABBBounds,O||(E=xu(Object.assign(Object.assign({},t.attribute),{angle:0,scaleX:1,scaleY:1,x:0,y:0,dx:0,dy:0})).clone());if(t.backgroundImg&&t.resources){const B=t.resources.get(M);if(B.state!=="success"||!B.data)return void w();e.highPerformanceSave(),O&&e.setTransformFromMatrix(t.parent.globalTransMatrix,!0),e.setCommonStyle(t,t.attribute,i,s,h),this.doDrawImage(e,B.data,E,k,A),e.highPerformanceRestore(),e.setTransformForCurrent()}else{const{backgroundCornerRadius:B}=t.attribute;e.highPerformanceSave(),e.setCommonStyle(t,t.attribute,i,s,h),e.fillStyle=M,B?(Mr(e,E.x1,E.y1,E.width(),E.height(),B),e.fill()):e.fillRect(E.x1,E.y1,E.width(),E.height()),e.highPerformanceRestore()}R&&Cg.free(E),w()}}const tB=new f5;var _5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},m5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},yk=function(n,t){return function(e,i){t(e,i,n)}};let vy=class extends cn{constructor(n){super(),this.textRenderContribitions=n,this.numberType=Q_,this.builtinContributions=[tB],this.init(n)}drawShape(n,t,e,i,s,r,a,o){var l,h,d;const c=st(n,r==null?void 0:r.theme).text,{text:u,underline:p=c.underline,lineThrough:g=c.lineThrough,keepDirIn3d:f=c.keepDirIn3d,direction:_=c.direction,whiteSpace:m=c.whiteSpace,fontSize:y=c.fontSize,verticalMode:b=c.verticalMode,x:v=c.x,y:x=c.y}=n.attribute;let{textAlign:S=c.textAlign,textBaseline:k=c.textBaseline}=n.attribute;if(!b&&_==="vertical"){const D=S;S=(l=n.getBaselineMapAlign()[k])!==null&&l!==void 0?l:"left",k=(h=n.getAlignMapBaseline()[D])!==null&&h!==void 0?h:"top"}const A=(d=pr(n.attribute.lineHeight,y))!==null&&d!==void 0?d:y,T=this.valid(n,c,a,o);if(!T)return;const{fVisible:M,sVisible:w,doFill:E,doStroke:R}=T,O=!f,B=this.z||0;t.beginPath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,c),this.beforeRenderStep(n,t,e,i,E,R,M,w,c,s,a,o),O&&this.transformUseContext2d(n,c,B,t);const I=(D,F,$,K)=>{let W=e+F;const et=i+$;if(K){t.highPerformanceSave(),W+=y;const Z=Fn.allocate(1,0,0,1,0,0);Z.rotateByCenter(Math.PI/2,W,et),t.transformFromMatrix(Z,!0),Fn.free(Z)}R&&(o?o(t,n.attribute,c):w&&(t.setStrokeStyle(n,n.attribute,v-e,x-i,c),t.strokeText(D,W,et,B))),E&&(a?a(t,n.attribute,c):M&&(t.setCommonStyle(n,n.attribute,v-e,x-i,c),t.fillText(D,W,et,B),this.drawUnderLine(p,g,n,W,et,B,c,t))),K&&(t.highPerformanceRestore(),t.setTransformForCurrent())};if(n.isMultiLine)if(t.setTextStyleWithoutAlignBaseline(n.attribute,c,B),_==="horizontal"){const{multilineLayout:D}=n;if(!D)return void t.highPerformanceRestore();const{xOffset:F,yOffset:$}=D.bbox;R&&(o?o(t,n.attribute,c):w&&(t.setStrokeStyle(n,n.attribute,v-e,x-i,c),D.lines.forEach(K=>{t.strokeText(K.str,(K.leftOffset||0)+F+e,(K.topOffset||0)+$+i,B)}))),E&&(a?a(t,n.attribute,c):M&&(t.setCommonStyle(n,n.attribute,v-e,x-i,c),D.lines.forEach(K=>{t.fillText(K.str,(K.leftOffset||0)+F+e,(K.topOffset||0)+$+i,B),this.drawMultiUnderLine(p,g,n,(K.leftOffset||0)+F+e,(K.topOffset||0)+$+i-$H("bottom",y)-.05*y,B,K.width,c,t)})))}else{n.tryUpdateAABBBounds();const D=n.cache,{verticalList:F}=D;t.textAlign="left",t.textBaseline="top";const $=A*F.length;let K=0;F.forEach(Z=>{const ht=Z.reduce((J,N)=>J+(N.width||0),0);K=sn(ht,K)});let W=0,et=0;k==="bottom"?et=-$:k==="middle"&&(et=-$/2),S==="center"?W-=K/2:S==="right"&&(W-=K),F.forEach((Z,ht)=>{const J=Z.reduce((X,ot)=>X+(ot.width||0),0),N=K-J;let q=W;S==="center"?q+=N/2:S==="right"&&(q+=N),Z.forEach(X=>{const{text:ot,width:ut,direction:bt}=X;I(ot,$-(ht+1)*A+et,q,bt),q+=ut})})}else if(_==="horizontal"){t.setTextStyle(n.attribute,c,B);const D=n.clipedText;let F=0;A!==y&&(k==="top"?F=(A-y)/2:k==="middle"||k==="bottom"&&(F=-(A-y)/2)),I(D,0,F,0)}else{n.tryUpdateAABBBounds();const D=n.cache;if(D){t.setTextStyleWithoutAlignBaseline(n.attribute,c,B);const{verticalList:F}=D;let $=0;const K=F[0].reduce((et,Z)=>et+(Z.width||0),0);let W=0;k==="bottom"?W=-A:k==="middle"&&(W=-A/2),S==="center"?$-=K/2:S==="right"&&($-=K),t.textAlign="left",t.textBaseline="top",F[0].forEach(et=>{const{text:Z,width:ht,direction:J}=et;I(Z,W,$,J),$+=ht})}}O&&this.restoreTransformUseContext2d(n,c,B,t),this.afterRenderStep(n,t,e,i,E,R,M,w,c,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).text,{keepDirIn3d:r=s.keepDirIn3d}=n.attribute,a=!r;this._draw(n,s,a,e,i)}drawUnderLine(n,t,e,i,s,r,a,o){if(t+n<=0)return;const{textAlign:l=a.textAlign,textBaseline:h=a.textBaseline,fontSize:d=a.fontSize,fill:c=a.fill,opacity:u=a.opacity,underlineOffset:p=a.underlineOffset,underlineDash:g=a.underlineDash,fillOpacity:f=a.fillOpacity}=e.attribute,_=e.clipedWidth,m=hr(l,_),y=Bs(h,d,d),b={lineWidth:0,stroke:c,opacity:u,strokeOpacity:f};if(n){b.lineWidth=n,o.setStrokeStyle(e,b,i,s,a),g&&o.setLineDash(g),o.beginPath();const v=s+y+d+p;o.moveTo(i+m,v,r),o.lineTo(i+m+_,v,r),o.stroke()}if(t){b.lineWidth=t,o.setStrokeStyle(e,b,i,s,a),o.beginPath();const v=s+y+d/2;o.moveTo(i+m,v,r),o.lineTo(i+m+_,v,r),o.stroke()}}drawMultiUnderLine(n,t,e,i,s,r,a,o,l){if(t+n<=0)return;const{fontSize:h=o.fontSize,fill:d=o.fill,opacity:c=o.opacity,underlineOffset:u=o.underlineOffset,underlineDash:p=o.underlineDash,fillOpacity:g=o.fillOpacity}=e.attribute,f=Bs("alphabetic",h,h),_={lineWidth:0,stroke:d,opacity:c,strokeOpacity:g};let m=-3;if(n){_.lineWidth=n,l.setStrokeStyle(e,_,i,s,o),p&&l.setLineDash(p),l.beginPath();const y=s+f+h+m+u;l.moveTo(i+0,y,r),l.lineTo(i+0+a,y,r),l.stroke()}if(m=-1,t){_.lineWidth=t,l.setStrokeStyle(e,_,i,s,o),l.beginPath();const y=s+f+h/2+m;l.moveTo(i+0,y,r),l.lineTo(i+0+a,y,r),l.stroke()}}};vy=_5([gt(),yk(0,It(ni)),yk(0,_i(dy)),m5("design:paramtypes",[Object])],vy);function eB(n,t,e,i){n.moveTo(t[0].x+e,t[0].y+i);for(let s=1;sk&&(v=k,b=k*y);const A=I0(c,v,x,p,g),T=I0(c,v,S,f,_),M=2*c.x-A.x-T.x,w=2*c.y-A.y-T.y,E=gp(M,w),R=I0(c,gp(v,b),E,M,w);let O=Math.atan2(A.y-R.y,A.x-R.x);const B=Math.atan2(T.y-R.y,T.x-R.x);let I=B-O;I<0&&(O=B,I=-I),I>Math.PI&&(I-=Math.PI),h===0?n.moveTo(A.x+e,A.y+i):n.lineTo(A.x+e,A.y+i),I&&n.arcTo(c.x+e,c.y+i,T.x+e,T.y+i,b),n.lineTo(T.x+e,T.y+i)}r||n.lineTo(t[l+1].x+e,t[l+1].y+i)}function gp(n,t){return Math.sqrt(n*n+t*t)}function I0(n,t,e,i,s){const r=t/e;return{x:n.x-i*r,y:n.y-s*r}}const y5=Eh,b5=Yo;var x5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},S5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},bk=function(n,t){return function(e,i){t(e,i,n)}};let yy=class extends cn{constructor(n){super(),this.polygonRenderContribitions=n,this.numberType=q_,this.builtinContributions=[b5,y5],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=st(n,r==null?void 0:r.theme).polygon,{points:h=l.points,cornerRadius:d=l.cornerRadius,x:c=l.x,y:u=l.y,closePath:p=l.closePath}=n.attribute,g=this.valid(n,l,a,o);if(!g)return;const{fVisible:f,sVisible:_,doFill:m,doStroke:y}=g;t.beginPath(),d<=0||V(d)&&d.every(b=>b===0)?eB(t.camera?t:t.nativeContext,h,e,i):v5(t.camera?t:t.nativeContext,h,e,i,d,p),p&&t.closePath(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),this.beforeRenderStep(n,t,e,i,m,y,f,_,l,s,a,o),m&&(a?a(t,n.attribute,l):f&&(t.setCommonStyle(n,n.attribute,c-e,u-i,l),t.fill())),y&&(o?o(t,n.attribute,l):_&&(t.setStrokeStyle(n,n.attribute,c-e,u-i,l),t.stroke())),this.afterRenderStep(n,t,e,i,m,y,f,_,l,s,a,o)}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).polygon;this._draw(n,s,!1,e,i)}};yy=x5([gt(),bk(0,It(ni)),bk(0,_i(ly)),S5("design:paramtypes",[Object])],yy);var A5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},k5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},xk=function(n,t){return function(e,i){t(e,i,n)}};let by=class{constructor(n){this.groupRenderContribitions=n,this.numberType=mx}drawShape(n,t,e,i,s,r,a,o){const l=st(n,r==null?void 0:r.theme).group,{fill:h=l.fill,background:d,stroke:c=l.stroke,opacity:u=l.opacity,width:p=l.width,height:g=l.height,clip:f=l.clip,fillOpacity:_=l.fillOpacity,strokeOpacity:m=l.strokeOpacity,cornerRadius:y=l.cornerRadius,path:b=l.path,lineWidth:v=l.lineWidth,visible:x=l.visible}=n.attribute,S=Ax(u,_,p,g,h),k=Tx(u,m,p,g),A=$o(h,d),T=Ph(c,v);if(!n.valid||!x||!f&&(!A&&!T||!(S||k||a||o||d)))return;if(b&&b.length&&s.drawContribution){const w=t.disableFill,E=t.disableStroke,R=t.disableBeginPath;t.disableFill=!0,t.disableStroke=!0,t.disableBeginPath=!0,b.forEach(O=>{s.drawContribution.getRenderContribution(O).draw(O,s.renderService,s,r)}),t.disableFill=w,t.disableStroke=E,t.disableBeginPath=R}else y===0||V(y)&&y.every(w=>w===0)?(t.beginPath(),t.rect(e,i,p,g)):(t.beginPath(),Mr(t,e,i,p,g,y));this._groupRenderContribitions||(this._groupRenderContribitions=this.groupRenderContribitions.getContributions()||[],this._groupRenderContribitions.push(OW));const M={doFill:A,doStroke:T};this._groupRenderContribitions.forEach(w=>{w.time===ci.beforeFillStroke&&w.drawShape(n,t,e,i,A,T,S,k,l,s,a,o,M)}),f&&t.clip(),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,l),M.doFill&&(a?a(t,n.attribute,l):S&&(t.setCommonStyle(n,n.attribute,e,i,l),t.fill())),M.doStroke&&(o?o(t,n.attribute,l):k&&(t.setStrokeStyle(n,n.attribute,e,i,l),t.stroke())),this._groupRenderContribitions.forEach(w=>{w.time===ci.afterFillStroke&&w.drawShape(n,t,e,i,A,T,S,k,l,s,a,o)})}draw(n,t,e,i){const{context:s}=e;if(!s)return;const{clip:r,baseOpacity:a=1}=n.attribute;r?s.save():s.highPerformanceSave();const o=s.baseGlobalAlpha;s.baseGlobalAlpha*=a;const l=st(n,i==null?void 0:i.theme).group,h=s.modelMatrix;if(s.camera){const p=ce.allocate(),g=ce.allocate();ZR(g,n,l),bu(p,h||p,g),s.modelMatrix=p,ce.free(g),s.setTransform(1,0,0,1,0,0,!0)}else s.transformFromMatrix(n.transMatrix,!0);s.beginPath(),i.skipDraw?this.drawShape(n,s,0,0,e,i,()=>!1,()=>!1):this.drawShape(n,s,0,0,e);const{scrollX:d=l.scrollX,scrollY:c=l.scrollY}=n.attribute;let u;(d||c)&&s.translate(d,c),i&&i.drawingCb&&(u=i.drawingCb()),s.modelMatrix!==h&&ce.free(s.modelMatrix),s.modelMatrix=h,s.baseGlobalAlpha=o,u&&u.then?u.then(()=>{r?s.restore():s.highPerformanceRestore()}):r?s.restore():s.highPerformanceRestore()}};by=A5([gt(),xk(0,It(ni)),xk(0,_i(HR)),k5("design:paramtypes",[Object])],by);var T5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},M5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},Sk=function(n,t){return function(e,i){t(e,i,n)}};const w5=["","repeat-x","repeat-y","repeat"];let xy=class extends cn{constructor(n){super(),this.imageRenderContribitions=n,this.numberType=X_,this.builtinContributions=[VW,WW],this.init(n)}drawShape(n,t,e,i,s,r,a,o){const l=st(n).image,{width:h=l.width,height:d=l.height,repeatX:c=l.repeatX,repeatY:u=l.repeatY,x:p=l.x,y:g=l.y,cornerRadius:f=l.cornerRadius,image:_}=n.attribute,m=this.valid(n,l,a);if(!m)return;const{fVisible:y,sVisible:b,doFill:v,doStroke:x}=m;if(t.setShadowBlendStyle&&t.setShadowBlendStyle(n,l),this.beforeRenderStep(n,t,e,i,v,!1,y,!1,l,s,a),v){if(a)a(t,n.attribute,l);else if(y){if(!_||!n.resources)return;const S=n.resources.get(_);if(S.state!=="success")return;let k=!1;f===0||V(f)&&f.every(T=>T===0)||(t.beginPath(),Mr(t,e,i,h,d,f),t.save(),t.clip(),k=!0),t.setCommonStyle(n,n.attribute,e,i,l);let A=0;if(c==="repeat"&&(A|=1),u==="repeat"&&(A|=2),A){const T=t.createPattern(S.data,w5[A]);t.fillStyle=T,t.translate(e,i,!0),t.fillRect(0,0,h,d),t.translate(-e,-i,!0)}else t.drawImage(S.data,e,i,h,d);k&&t.restore()}}x&&(o?o(t,n.attribute,l):b&&(t.setStrokeStyle(n,n.attribute,p-e,g-i,l),t.stroke())),this.afterRenderStep(n,t,e,i,v,!1,y,!1,l,s,a)}draw(n,t,e){const{image:i}=n.attribute;if(!i||!n.resources)return;const s=n.resources.get(i);if(s.state==="loading"&&at(i))return void le.improveImageLoading(i);if(s.state!=="success")return;const{context:r}=t.drawParams;if(!r)return;const a=st(n).image;this._draw(n,a,!1,e)}};xy=T5([gt(),Sk(0,It(ni)),Sk(0,_i(ay)),M5("design:paramtypes",[Object])],xy);const iB=Symbol.for("IncrementalDrawContribution"),Pg=Symbol.for("ArcRender"),Sy=Symbol.for("Arc3dRender"),Eg=Symbol.for("AreaRender"),Rg=Symbol.for("CircleRender"),mi=Symbol.for("GraphicRender"),Ak=Symbol.for("GroupRender"),Bg=Symbol.for("LineRender"),Ig=Symbol.for("PathRender"),Og=Symbol.for("PolygonRender"),Lg=Symbol.for("RectRender"),Ay=Symbol.for("Rect3DRender"),Dg=Symbol.for("SymbolRender"),ky=Symbol.for("TextRender"),Ty=Symbol.for("RichTextRender"),My=Symbol.for("Pyramid3dRender"),Fg=Symbol.for("GlyphRender"),kk=Symbol.for("ImageRender"),Bx=Symbol.for("DrawContribution");var C5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},P5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const zg=Symbol.for("DrawItemInterceptor"),Tk=new _e,Mk=new _e;class E5{constructor(){this.order=1}afterDrawItem(t,e,i,s,r){return t.attribute.shadowRootIdx==null&&t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx<0||(t.attribute.shadowRootIdx>0||!t.attribute.shadowRootIdx||t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx>0)&&this.drawItem(t,e,i,s,r),!1}beforeDrawItem(t,e,i,s,r){return t.attribute.shadowRootIdx==null&&t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx>0||(t.attribute.shadowRootIdx<0||t.shadowRoot&&t.shadowRoot.attribute.shadowRootIdx<0)&&this.drawItem(t,e,i,s,r),!1}drawItem(t,e,i,s,r){if(!t.shadowRoot)return!1;const{context:a}=i;if(a.highPerformanceSave(),a.transformFromMatrix(t.transMatrix,!0),s.dirtyBounds&&s.backupDirtyBounds){Tk.copy(s.dirtyBounds),Mk.copy(s.backupDirtyBounds);const o=t.globalTransMatrix.getInverse();s.dirtyBounds.copy(s.backupDirtyBounds).transformWithMatrix(o),s.backupDirtyBounds.copy(s.dirtyBounds)}return s.renderGroup(t.shadowRoot,i,Fn.allocate(1,0,0,1,0,0)),a.highPerformanceRestore(),s.dirtyBounds&&s.backupDirtyBounds&&(s.dirtyBounds.copy(Tk),s.backupDirtyBounds.copy(Mk)),!0}}class R5{constructor(){this.order=1}afterDrawItem(t,e,i,s,r){return t.attribute._debug_bounds&&this.drawItem(t,e,i,s,r),!1}drawItem(t,e,i,s,r){if(!t.attribute._debug_bounds)return!1;const{context:a}=i;a.highPerformanceSave(),t.parent&&a.setTransformFromMatrix(t.parent.globalTransMatrix,!0),t.glyphHost&&t.glyphHost.parent&&a.setTransformFromMatrix(t.glyphHost.parent.globalTransMatrix,!0);const o=t.AABBBounds;return t.attribute._debug_bounds!==!0&&t.attribute._debug_bounds(a,t),a.strokeRect(o.x1,o.y1,o.width(),o.height()),a.highPerformanceRestore(),!0}}let jg=class{constructor(){this.order=1,this.interceptors=[new E5,new I5,new B5,new R5]}afterDrawItem(n,t,e,i,s){for(let r=0;r(c=p.numberType===mu,!c)),t.forEachChildren(p=>(u=!!p.findFace,!u)),c){const p=t.getChildren(),g=[...p];g.sort((_,m)=>{var y,b,v,x;let S=(((y=_.attribute.startAngle)!==null&&y!==void 0?y:0)+((b=_.attribute.endAngle)!==null&&b!==void 0?b:0))/2,k=(((v=m.attribute.startAngle)!==null&&v!==void 0?v:0)+((x=m.attribute.endAngle)!==null&&x!==void 0?x:0))/2;for(;S<0;)S+=Dt;for(;k<0;)k+=Dt;return k-S}),g.forEach(_=>{_._next=null,_._prev=null}),t.removeAllChild(),t.update(),g.forEach(_=>{t.appendChild(_)});const f=t.parent.globalTransMatrix;i.hack_pieFace="outside",s.renderGroup(t,i,f),i.hack_pieFace="inside",s.renderGroup(t,i,f),i.hack_pieFace="top",s.renderGroup(t,i,f),t.removeAllChild(),p.forEach(_=>{_._next=null,_._prev=null}),p.forEach(_=>{t.appendChild(_)})}else if(u){const p=t.getChildren(),g=p.map(f=>({ave_z:f.findFace().vertices.map(_=>{var m;return a.view(_[0],_[1],(m=_[2]+f.attribute.z)!==null&&m!==void 0?m:0)[2]}).reduce((_,m)=>_+m,0),g:f}));g.sort((f,_)=>_.ave_z-f.ave_z),t.removeAllChild(),g.forEach(f=>{f.g._next=null,f.g._prev=null}),t.update(),g.forEach(f=>{t.add(f.g)}),s.renderGroup(t,i,t.parent.globalTransMatrix,!0),t.removeAllChild(),p.forEach(f=>{f._next=null,f._prev=null}),t.update(),p.forEach(f=>{t.add(f)})}else s.renderGroup(t,i,t.parent.globalTransMatrix)}else s.renderItem(t,i);return a.camera=null,a.restore(),a.modelMatrix!==d&&ce.free(a.modelMatrix),a.modelMatrix=d,i.in3dInterceptor=!1,!0}initCanvasCtx(t){t.setTransformForCurrent()}}var O5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},L5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},D5=function(n,t){return function(e,i){t(e,i,n)}};const nB=Symbol.for("RenderService");let wy=class{constructor(n){this.drawContribution=n}prepare(n){n&&this.renderTreeRoots.forEach(t=>{this._prepare(t,n)})}_prepare(n,t){n.forEachChildren(e=>{this._prepare(e,t)}),n.update({bounds:t,trans:!0})}prepareRenderList(){}beforeDraw(n){}draw(n){this.drawContribution.draw(this,Object.assign({},this.drawParams))}afterDraw(n){this.drawContribution.afterDraw&&this.drawContribution.afterDraw(this,Object.assign({},this.drawParams))}render(n,t){this.renderTreeRoots=n,this.drawParams=t;const e=t.updateBounds;this.prepare(e),this.prepareRenderList(),this.beforeDraw(t),this.draw(t),this.afterDraw(t),this.drawParams=null}};wy=O5([gt(),D5(0,It(Bx)),L5("design:paramtypes",[Object])],wy);const F5=new wt(n=>{n(nB).to(wy)}),Fl=Symbol.for("PickerService"),wk=Symbol.for("GlobalPickerService");var Ix=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};const kl=Symbol.for("PickItemInterceptor");let Hg=class{constructor(){this.order=1}afterPickItem(n,t,e,i,s){return n.attribute.shadowRootIdx>0||!n.attribute.shadowRootIdx?this._pickItem(n,t,e,i,s):null}beforePickItem(n,t,e,i,s){return n.attribute.shadowRootIdx<0?this._pickItem(n,t,e,i,s):null}_pickItem(n,t,e,i,s){var r;if(!n.shadowRoot)return null;const{parentMatrix:a}=s||{};if(!a)return null;const o=t.pickContext;o.highPerformanceSave();const l=(r=st(n))===null||r===void 0?void 0:r[n.type],{shadowPickMode:h=l==null?void 0:l.shadowPickMode}=n.attribute,d=n.shadowRoot,c=Fn.allocateByObj(a),u=new ze(c.a*e.x+c.c*e.y+c.e,c.b*e.x+c.d*e.y+c.f),p=t.pickGroup(d,u,c,i);return o.highPerformanceRestore(),!p.graphic&&p.group&&h==="full"&&(p.graphic=p.group),p}};Hg=Ix([gt()],Hg);let Vg=class{constructor(){this.order=1}beforePickItem(n,t,e,i,s){const r=n.baseGraphic;if(r&&r.parent){const a=new ze(e.x,e.y),o=t.pickContext;o.highPerformanceSave();const l=r.parent.globalTransMatrix;l.transformPoint(a,a);const h=r.isContainer?t.pickGroup(r,a.clone(),l,i):t.pickItem(r,a.clone(),l,i);return o.highPerformanceRestore(),h}return null}};Vg=Ix([gt()],Vg);let Wg=class{constructor(){this.order=1}beforePickItem(n,t,e,i,s){if(!n.in3dMode||i.in3dInterceptor)return null;const r=t.pickContext,a=n.stage;if(!r||!a)return null;if(i.in3dInterceptor=!0,r.save(),this.initCanvasCtx(r),r.camera=a.camera,n.isContainer){let o,l=!1,h=!1;if(n.forEachChildren(d=>(l=d.numberType===mu,!l)),n.forEachChildren(d=>(h=!!d.findFace,!h)),l){const d=n.getChildren(),c=[...d];c.sort((u,p)=>{var g,f,_,m;let y=((f=(g=u.attribute.startAngle)!==null&&g!==void 0?g:0+u.attribute.endAngle)!==null&&f!==void 0?f:0)/2,b=((m=(_=p.attribute.startAngle)!==null&&_!==void 0?_:0+p.attribute.endAngle)!==null&&m!==void 0?m:0)/2;for(;y<0;)y+=Dt;for(;b<0;)b+=Dt;return b-y}),c.forEach(u=>{u._next=null,u._prev=null}),n.removeAllChild(),n.update(),c.forEach(u=>{n.appendChild(u)}),i.hack_pieFace="outside",o=t.pickGroup(n,e,s.parentMatrix,i),o.graphic||(i.hack_pieFace="inside",o=t.pickGroup(n,e,s.parentMatrix,i)),o.graphic||(i.hack_pieFace="top",o=t.pickGroup(n,e,s.parentMatrix,i)),n.removeAllChild(),d.forEach(u=>{u._next=null,u._prev=null}),d.forEach(u=>{n.appendChild(u)})}else if(h){const d=n.getChildren(),c=d.map(u=>({ave_z:u.findFace().vertices.map(p=>{var g;return r.view(p[0],p[1],(g=p[2]+u.attribute.z)!==null&&g!==void 0?g:0)[2]}).reduce((p,g)=>p+g,0),g:u}));c.sort((u,p)=>p.ave_z-u.ave_z),n.removeAllChild(),c.forEach(u=>{u.g._next=null,u.g._prev=null}),n.update(),c.forEach(u=>{n.add(u.g)}),o=t.pickGroup(n,e,s.parentMatrix,i),n.removeAllChild(),d.forEach(u=>{u._next=null,u._prev=null}),n.update(),d.forEach(u=>{n.add(u)})}else o=t.pickGroup(n,e,s.parentMatrix,i);return r.camera=null,i.in3dInterceptor=!1,r.restore(),o}return r.restore(),null}initCanvasCtx(n){n.setTransformForCurrent()}};Wg=Ix([gt()],Wg);const z5=new wt((n,t,e)=>{e(Fl)||(n(wk).toSelf(),n(Fl).toService(wk)),n(Wg).toSelf().inSingletonScope(),n(kl).toService(Wg),n(Hg).toSelf().inSingletonScope(),n(kl).toService(Hg),n(Vg).toSelf().inSingletonScope(),n(kl).toService(Vg),Ri(n,kl)}),j5=new wt(n=>{n(RR).to(fy).inSingletonScope(),n(BR).toConstantValue(pt)}),Rc=Symbol.for("AutoEnablePlugins"),sB=Symbol.for("PluginService");var H5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},V5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},Ck=function(n,t){return function(e,i){t(e,i,n)}};let Cy=class{constructor(n){this.autoEnablePlugins=n,this.onStartupFinishedPlugin=[],this.onRegisterPlugin=[],this.actived=!1}active(n,t){this.stage=n,this.actived=!0;const{pluginList:e}=t;e&&Mt.isBound(Rc)&&this.autoEnablePlugins.getContributions().forEach(i=>{e.includes(i.name)&&this.register(i)})}findPluginsByName(n){const t=[];return this.onStartupFinishedPlugin.forEach(e=>{e.name===n&&t.push(e)}),this.onRegisterPlugin.forEach(e=>{e.name===n&&t.push(e)}),t}register(n){n.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.push(n):n.activeEvent==="onRegister"&&(this.onRegisterPlugin.push(n),n.activate(this))}unRegister(n){n.activeEvent==="onStartupFinished"?this.onStartupFinishedPlugin.splice(this.onStartupFinishedPlugin.indexOf(n),1):n.activeEvent==="onRegister"&&this.onRegisterPlugin.splice(this.onStartupFinishedPlugin.indexOf(n),1),n.deactivate(this)}release(...n){this.onStartupFinishedPlugin.forEach(t=>{t.deactivate(this)}),this.onStartupFinishedPlugin=[],this.onRegisterPlugin.forEach(t=>{t.deactivate(this)}),this.onRegisterPlugin=[]}};Cy=H5([gt(),Ck(0,It(ni)),Ck(0,_i(Rc)),V5("design:paramtypes",[Object])],Cy);const W5=new wt(n=>{n(sB).to(Cy),B3(n,Rc)}),N5=new wt(n=>{Ri(n,V_)}),G5=new wt(n=>{n(Xv).to(Kv).inSingletonScope(),Ri(n,Xv)});var U5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},$5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Ng=class{constructor(){this.type="static",this.offscreen=!1,this.global=Q.global}setDpr(n){this.canvas.dpr=n}init(n,t,e){if(this.layer=n,this.window=t,e.main)this.main=!0,this.context=t.getContext(),this.canvas=this.context.getCanvas();else{let i;this.main=!1,e.canvasId&&(i=this.global.getElementById(e.canvasId)),i||(i=this.global.createCanvas({width:t.width,height:t.height})),i.style&&(i.style["pointer-events"]="none");const s=t.getContext().getCanvas().nativeCanvas,r=ug({nativeCanvas:i,width:t.width,height:t.height,dpr:t.dpr,id:e.canvasId,canvasControled:!0,container:t.getContainer(),x:s.offsetLeft,y:s.offsetTop});r.applyPosition(),this.canvas=r,this.context=r.getContext()}}resize(n,t){this.canvas.resize(n,t)}resizeView(n,t){}render(n,t,e){var i;if(!this.main){const s=this.window.getContext().getCanvas().nativeCanvas;!s||this.canvas.x===s.offsetLeft&&this.canvas.y===s.offsetTop||(this.canvas.x=s.offsetLeft,this.canvas.y=s.offsetTop,this.canvas.applyPosition())}t.renderService.render(n,Object.assign(Object.assign({context:this.context,clear:(i=t.background)!==null&&i!==void 0?i:"#ffffff"},t),e))}merge(n){n.forEach(t=>{const e=t.getContext().canvas.nativeCanvas;this.context.drawImage(e,0,0)})}prepare(n,t){}drawTo(n,t,e){var i;const s=n.getContext();e.renderService.render(t,Object.assign(Object.assign({context:s},e),{clear:e.clear?(i=e.background)!==null&&i!==void 0?i:"#fff":void 0}))}getContext(){return this.context}release(){this.canvas.release()}};Ng=U5([gt(),$5("design:paramtypes",[])],Ng);var Y5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},X5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Gg=class{constructor(){this.offscreen=!1,this.type="virtual",this.global=Q.global}setDpr(n){}init(n,t,e){if(this.layer=n,this.window=t,e.main)throw new Error("virtual layer不能作为main layer");this.main=!1,this.canvas=null,this.context=null}resize(n,t){}resizeView(n,t){}render(n,t,e){this.mainHandler.render(n,t,Object.assign(Object.assign({},e),{clear:!1}))}merge(n){}prepare(n,t){}drawTo(n,t,e){var i;const s=n.getContext();e.renderService.render(t,Object.assign(Object.assign({context:s},e),{clear:e.clear?(i=e.background)!==null&&i!==void 0?i:"#fff":void 0}))}getContext(){return null}release(){}};Gg=Y5([gt(),X5("design:paramtypes",[])],Gg);var K5=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},q5=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Ug=class{constructor(){this.offscreen=!0,this.type="dynamic",this.global=Q.global}setDpr(n){this.canvas.dpr=n}init(n,t,e){this.layer=n;const i=this.global.createOffscreenCanvas({width:e.width,height:e.height,dpr:t.dpr}),s=ug({nativeCanvas:i,width:e.width,height:e.height,dpr:t.dpr,canvasControled:!0});this.canvas=s,this.context=s.getContext()}resize(n,t){this.canvas.resize(n,t)}resizeView(n,t){this.canvas.resize(n,t)}render(n,t){var e;t.renderService.render(n,Object.assign(Object.assign({context:this.context,viewBox:t.stage.window.getViewBox(),transMatrix:t.stage.window.getViewBoxTransform()},t),{clear:(e=t.background)!==null&&e!==void 0?e:"#ffffff"}))}prepare(n,t){}release(){this.canvas.release()}getContext(){return this.context}drawTo(n,t,e){const i=n.getContext(),s=n.dpr,{viewBox:r}=e,a=r.x1,o=r.y1,l=r.width(),h=r.height();i.nativeContext.save(),i.nativeContext.setTransform(s,0,0,s,0,0),e.clear&&i.clearRect(a,o,l,h),i.drawImage(this.canvas.nativeCanvas,0,0,this.canvas.width,this.canvas.height,a,o,l,h),i.nativeContext.restore()}merge(n){}};Ug=K5([gt(),q5("design:paramtypes",[])],Ug);const Z5=new wt(n=>{n(Ng).toSelf(),n(Ug).toSelf(),n(Gg).toSelf(),n(DR).toService(Ng),n(FR).toService(Ug),n(zR).toService(Gg)});function J5(n){n.load(N5),n.load(G5),n.load(Z5)}var Q5=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};function rB(n,t,e,i=!1,s=!1){const r={},a=[];let o=!1;if(s)o=!0;else{let l;n.forEachChildren((h,d)=>{const{zIndex:c=t}=h.attribute;if(d===0)l=c;else if(l!==c)return o=!0,!0;return!1},i)}if(o){n.forEachChildren(h=>{const{zIndex:d=t}=h.attribute;r[d]?r[d].push(h):(r[d]=[h],a.push(d))},i),a.sort((h,d)=>i?d-h:h-d);let l=!1;for(let h=0;h{var g,f;return(i?-1:1)*(((g=p.attribute.z)!==null&&g!==void 0?g:0)-((f=u.attribute.z)!==null&&f!==void 0?f:0))});for(let u=0;u{const{zIndex:c=e}=h.attribute;if(d!==0){if(c!==void 0)return a=!0,!0}return!1},i);let o=null,l=!1;if(a){n.forEachChildren(d=>{const{zIndex:c=e}=d.attribute;s[c]?s[c].push(d):(s[c]=[d],r.push(c))},i),r.sort((d,c)=>i?c-d:d-c);let h=!1;for(let d=0;dl?(o=h,!0):(h._uid===t&&(l=!0),!1),i);return o}var eN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},iN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},O0=function(n,t){return function(e,i){t(e,i,n)}};let $g=class{constructor(n,t){this.contributions=n,this.drawItemInterceptorContributions=t,this.currentRenderMap=new Map,this.defaultRenderMap=new Map,this.styleRenderMap=new Map,this.dirtyBounds=new di,this.backupDirtyBounds=new di,this.global=Q.global,this.layerService=Q.layerService,this.init()}init(){this.contributions.forEach(n=>{if(n.style){const t=this.styleRenderMap.get(n.style)||new Map;t.set(n.numberType,n),this.styleRenderMap.set(n.style,t)}else this.defaultRenderMap.set(n.numberType,n)}),this.InterceptorContributions=this.drawItemInterceptorContributions.getContributions().sort((n,t)=>n.order-t.order)}prepareForDraw(n,t){t.updateBounds?this.useDirtyBounds=!0:this.useDirtyBounds=!t.stage.params.optimize.disableCheckGraphicWidthOutRange}draw(n,t){this.prepareForDraw(n,t),t.drawContribution=this,this.currentRenderMap=this.styleRenderMap.get(t.renderStyle)||this.defaultRenderMap,this.currentRenderService=n;const{context:e,stage:i,viewBox:s,transMatrix:r}=t;if(!e)return;const a=this.dirtyBounds.setValue(0,0,s.width(),s.height());if(i.dirtyBounds&&!i.dirtyBounds.empty()){const l=HP(a,i.dirtyBounds,!1);a.x1=Math.floor(l.x1),a.y1=Math.floor(l.y1),a.x2=Math.ceil(l.x2),a.y2=Math.ceil(l.y2)}const o=e.dpr%1;(o||o!==.5)&&(a.x1=Math.floor(a.x1*e.dpr)/e.dpr,a.y1=Math.floor(a.y1*e.dpr)/e.dpr,a.x2=Math.ceil(a.x2*e.dpr)/e.dpr,a.y2=Math.ceil(a.y2*e.dpr)/e.dpr),this.backupDirtyBounds.copy(a),e.inuse=!0,e.setClearMatrix(r.a,r.b,r.c,r.d,r.e,r.f),e.clearMatrix(),e.setTransformForCurrent(!0),e.translate(s.x1,s.y1,!0),e.beginPath(),e.rect(a.x1,a.y1,a.width(),a.height()),e.clip(),i.camera&&(this.dirtyBounds.setValue(-1/0,-1/0,1/0,1/0),this.backupDirtyBounds.setValue(-1/0,-1/0,1/0,1/0)),this.clearScreen(n,e,t),e.save(),n.renderTreeRoots.sort((l,h)=>{var d,c;return((d=l.attribute.zIndex)!==null&&d!==void 0?d:Be.zIndex)-((c=h.attribute.zIndex)!==null&&c!==void 0?c:Be.zIndex)}).forEach(l=>{l.isContainer?this.renderGroup(l,t,Fn.allocate(1,0,0,1,0,0)):this.renderItem(l,t)}),e.restore(),e.setClearMatrix(1,0,0,1,0,0),e.inuse=!1,e.draw()}doRegister(){throw new Error("暂不支持")}_findNextGraphic(n){let t=n.parent,e=n._uid;for(;t;){const i=tN(t,e,Be.zIndex);if(i)return i;e=t._uid,t=t.parent}return null}renderGroup(n,t,e,i){if(t.break||n.attribute.visibleAll===!1)return;if(n.incremental&&(t.startAtId==null||t.startAtId===n._uid))return t.break=!0,void this._increaseRender(n,t);if(this.useDirtyBounds&&!gc(n.AABBBounds,this.dirtyBounds,!1))return;let s,r=e;if(this.useDirtyBounds){s=Cg.allocateByObj(this.dirtyBounds);const a=n.transMatrix;r=Fn.allocateByObj(e).multiply(a.a,a.b,a.c,a.d,a.e,a.f),this.dirtyBounds.copy(this.backupDirtyBounds).transformWithMatrix(r.getInverse())}this.renderItem(n,t,{drawingCb:()=>{var a;i?n.forEachChildren(o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))}):rB(n,Be.zIndex,o=>{t.break||(o.isContainer?this.renderGroup(o,t,r):this.renderItem(o,t))},!1,!!(!((a=t.context)===null||a===void 0)&&a.camera))}}),this.useDirtyBounds&&(this.dirtyBounds.copy(s),Cg.free(s),Fn.free(r))}_increaseRender(n,t){const{layer:e,stage:i}=t,{subLayers:s}=e;let r=s.get(n._uid);r||(r={layer:this.layerService.createLayer(i),zIndex:s.size,group:n},s.set(n._uid,r));const a=r.layer.getNativeHandler().getContext(),o=r.drawContribution||Mt.get(iB);o.dirtyBounds.setValue(-1/0,-1/0,1/0,1/0),o.backupDirtyBounds.setValue(-1/0,-1/0,1/0,1/0),o.draw(this.currentRenderService,Object.assign(Object.assign({},t),{drawContribution:o,clear:"transparent",layer:r.layer,context:a,startAtId:n._uid,break:!1})),r.drawContribution=o;const l=this._findNextGraphic(n);if(l)if(l.isContainer&&l.incremental)this._increaseRender(l,t);else{let h=s.get(l._uid);h||(h={layer:this.layerService.createLayer(i),zIndex:s.size},s.set(l._uid,h));const d=h.layer.getNativeHandler().getContext();this.draw(this.currentRenderService,Object.assign(Object.assign({},t),{drawContribution:o,clear:"transparent",layer:h.layer,context:d,startAtId:l._uid,break:!1}))}}getRenderContribution(n){let t;return t||(t=this.selectRenderByNumberType(n.numberType,n)),t||(t=this.selectRenderByType(n.type)),t}renderItem(n,t,e){if(this.InterceptorContributions.length)for(let o=0;o=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Yg=class extends Pc{constructor(){super(...arguments),this.numberType=yu}drawShape(n,t,e,i,s,r,a,o){if(n.incremental&&s.multiGraphicOptions){const{startAtIdx:l,length:h}=s.multiGraphicOptions,{segments:d=[]}=n.attribute;if(l>d.length)return;const c=st(n).line,{fill:u=c.fill,stroke:p=c.stroke,opacity:g=c.opacity,fillOpacity:f=c.fillOpacity,strokeOpacity:_=c.strokeOpacity,lineWidth:m=c.lineWidth,visible:y=c.visible}=n.attribute,b=Mo(g,f,u),v=kx(g,_),x=$o(u),S=Ph(p,m);if(!n.valid||!y||!x&&!S||!(b||v||a||o))return;const{context:k}=s;for(let A=l;A=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Xg=class extends Ec{constructor(){super(...arguments),this.numberType=vu}drawShape(n,t,e,i,s,r,a){if(n.incremental&&s.multiGraphicOptions){const{startAtIdx:o,length:l}=s.multiGraphicOptions,{segments:h=[]}=n.attribute;if(o>h.length)return;const d=st(n).area,{fill:c=d.fill,fillOpacity:u=d.fillOpacity,opacity:p=d.opacity,visible:g=d.visible}=n.attribute,f=Mo(p,u,c),_=$o(c);if(!n.valid||!g||!_||!f&&!a)return;for(let m=o;m=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},aN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},$h=function(n,t){return function(e,i){t(e,i,n)}},Ts=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};(function(n){n[n.NORMAL=0]="NORMAL",n[n.STOP=1]="STOP"})(Tl||(Tl={}));let Py=class extends $g{constructor(n,t,e,i){super(n,i),this.contributions=n,this.lineRender=t,this.areaRender=e,this.drawItemInterceptorContributions=i,this.rendering=!1,this.currFrameStartAt=0,this.currentIdx=0,this.status=Tl.NORMAL,this.checkingForDrawPromise=null,this.hooks={completeDraw:new In([])},this.defaultRenderMap.set(this.lineRender.numberType,this.lineRender),this.defaultRenderMap.set(this.areaRender.numberType,this.areaRender)}draw(n,t){return Ts(this,void 0,void 0,function*(){if(this.checkingForDrawPromise)return;this.lastRenderService=n,this.lastDrawContext=t,this.checkingForDrawPromise=this.checkForDraw(t);const e=yield this.checkingForDrawPromise;if(this.checkingForDrawPromise=null,e)return;this.currentRenderService=n;const{context:i,viewBox:s}=t;i&&(i.inuse=!0,i.clearMatrix(),i.setTransformForCurrent(!0),i.save(),t.restartIncremental&&this.clearScreen(this.currentRenderService,i,t),i.translate(s.x1,s.y1,!0),i.save(),n.renderTreeRoots.sort((r,a)=>{var o,l;return((o=r.attribute.zIndex)!==null&&o!==void 0?o:Be.zIndex)-((l=a.attribute.zIndex)!==null&&l!==void 0?l:Be.zIndex)}).forEach(r=>{this.renderGroup(r,t)}),this.hooks.completeDraw.tap("top-draw",()=>{i.restore(),i.restore(),i.draw(),i.inuse=!1,this.rendering=!1}))})}_increaseRender(n,t){return Ts(this,void 0,void 0,function*(){this.rendering=!0,yield this._renderIncrementalGroup(n,t)})}_renderIncrementalGroup(n,t){return Ts(this,void 0,void 0,function*(){this.count=n.count,yield new Promise(e=>{this.renderItem(n,t,{drawingCb:()=>Ts(this,void 0,void 0,function*(){if(n.count!==2)yield Pk(n,Be.zIndex,(i,s)=>{if(this.status===Tl.STOP)return!0;if(i.isContainer||s{this.global.getRequestAnimationFrame()(()=>{n(!1)})})})}checkForDraw(n){return Ts(this,void 0,void 0,function*(){let t=this.rendering;return n.restartIncremental&&(t=!1,yield this.forceStop(),this.resetToInit()),t})}forceStop(){return Ts(this,void 0,void 0,function*(){this.rendering&&(this.status=Tl.STOP,yield new Promise(n=>{this.hooks.completeDraw.tap("stopCb",()=>{this.status=Tl.NORMAL,this.hooks.completeDraw.taps=this.hooks.completeDraw.taps.filter(t=>t.name!=="stopCb"),n(!1)})}))})}resetToInit(){this.currFrameStartAt=0,this.currentIdx=0}renderGroup(n,t){return Ts(this,void 0,void 0,function*(){if(!t.break&&n.attribute.visibleAll!==!1)return n.incremental&&t.startAtId===n._uid?(yield this._increaseRender(n,t),void(t.break=!0)):void(yield new Promise(e=>{this.renderItem(n,t,{drawingCb:()=>Ts(this,void 0,void 0,function*(){yield Pk(n,Be.zIndex,i=>Ts(this,void 0,void 0,function*(){t.break||i.isContainer&&(yield this.renderGroup(i,t))})),e(!1)})})}))})}};Py=rN([gt(),$h(0,NE(mi)),$h(1,It(Yg)),$h(2,It(Xg)),$h(3,It(ni)),$h(3,_i(zg)),aN("design:paramtypes",[Array,Object,Object,Object])],Py);const oN=new wt(n=>{n(Su).toSelf().inSingletonScope(),n(Rx).toSelf().inSingletonScope(),n(Bx).to($g),n(iB).to(Py),n(Ak).to(by).inSingletonScope(),n(mi).toService(Ak),Ri(n,HR),n(es).toSelf().inSingletonScope(),Ri(n,Mx),Ri(n,mi),n(jg).toSelf().inSingletonScope(),n(zg).toService(jg),Ri(n,zg)});function lN(n){n.load(oN)}function Kg(){Kg.__loaded||(Kg.__loaded=!0,Mt.load(VH),Mt.load(j5),Mt.load(F5),Mt.load(z5),Mt.load(W5),J5(Mt),lN(Mt))}Kg.__loaded=!1,Kg();const Rt=Mt.get(hx);Q.global=Rt;const hN=Mt.get(LR);Q.graphicUtil=hN;const dN=Mt.get(OR);Q.transformUtil=dN;const cN=Mt.get(RR);Q.graphicService=cN;const uN=Mt.get(Sx);Q.layerService=uN;class pN{constructor(){this.name="AutoRenderPlugin",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid}activate(t){this.pluginService=t,Q.graphicService.hooks.onAttributeUpdate.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&e.stage.renderNextFrame()}),Q.graphicService.hooks.onSetStage.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&e.stage.renderNextFrame()})}deactivate(t){Q.graphicService.hooks.onAttributeUpdate.taps=Q.graphicService.hooks.onAttributeUpdate.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.onSetStage.taps=Q.graphicService.hooks.onSetStage.taps.filter(e=>e.name!==this.key)}}class gN{constructor(){this.name="ViewTransform3dPlugin",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid,this.onMouseDown=t=>{this.option3d||(this.option3d=this.pluginService.stage.option3d),this.option3d&&(this.mousedown=!0,this.pageX=t.page.x,this.pageY=t.page.y)},this.onMouseUp=t=>{this.option3d||(this.option3d=this.pluginService.stage.option3d),this.option3d&&(this.mousedown=!1)},this.onMouseMove=t=>{var e,i;const s=this.pluginService.stage;if(this.option3d||(this.option3d=s.option3d),this.option3d&&this.mousedown)if(this.pageX&&this.pageY){const r=t.page.x-this.pageX,a=t.page.y-this.pageY;this.pageX=t.page.x,this.pageY=t.page.y;const o=r/100,l=a/100;this.option3d.alpha=((e=this.option3d.alpha)!==null&&e!==void 0?e:0)+o,this.option3d.beta=((i=this.option3d.beta)!==null&&i!==void 0?i:0)+l,s.set3dOptions(this.option3d),s.renderNextFrame()}else this.pageX=t.page.x,this.pageY=t.page.y}}activate(t){this.pluginService=t;const e=t.stage;this.option3d=e.option3d,e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mousemove",this.onMouseMove)}deactivate(t){const e=t.stage;e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mousemove",this.onMouseMove)}}class fN{constructor(){this.name="IncrementalAutoRenderPlugin",this.activeEvent="onRegister",this.nextFrameRenderGroupSet=new Set,this.willNextFrameRender=!1,this.nextUserParams={},this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid}activate(t){this.pluginService=t,Q.graphicService.hooks.onAddIncremental.tap(this.key,(e,i,s)=>{e.glyphHost&&(e=e.glyphHost),e.stage===t.stage&&e.stage!=null&&(this.nextUserParams.startAtId=i._uid,this.renderNextFrame(i))}),Q.graphicService.hooks.onClearIncremental.tap(this.key,(e,i)=>{e.stage===t.stage&&e.stage!=null&&(this.nextUserParams.startAtId=e._uid,this.nextUserParams.restartIncremental=!0,this.renderNextFrame(e))})}deactivate(t){Q.graphicService.hooks.onAddIncremental.taps=Q.graphicService.hooks.onAddIncremental.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.onClearIncremental.taps=Q.graphicService.hooks.onClearIncremental.taps.filter(e=>e.name!==this.key)}renderNextFrame(t){this.nextFrameRenderGroupSet.add(t),this.willNextFrameRender||(this.willNextFrameRender=!0,Q.global.getRequestAnimationFrame()(()=>{this._doRenderInThisFrame(),this.willNextFrameRender=!1}))}_doRenderInThisFrame(){const t=this.pluginService.stage;this.nextFrameRenderGroupSet.size&&(this.nextFrameRenderGroupSet.forEach(e=>{const i=e.layer;if(!i||!e.layer.subLayers)return;const s=e.layer.subLayers.get(e._uid);s&&s.drawContribution&&s.drawContribution.draw(t.renderService,Object.assign({stage:t,layer:i,viewBox:t.window.getViewBox(),transMatrix:t.window.getViewBoxTransform(),clear:"transparent",renderService:t.renderService,updateBounds:!1,startAtId:e._uid,context:s.layer.getNativeHandler().getContext()},this.nextUserParams))}),this.nextUserParams={},this.nextFrameRenderGroupSet.clear())}}class aB{constructor(){this.name="HtmlAttributePlugin",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={},this.renderId=0}activate(t){this.pluginService=t,t.stage.hooks.afterRender.tap(this.key,e=>{e&&e===this.pluginService.stage&&this.drawHTML(t.stage.renderService)})}deactivate(t){t.stage.hooks.afterRender.taps=t.stage.hooks.afterRender.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.onRemove.unTap(this.key),Q.graphicService.hooks.onRelease.unTap(this.key),this.release()}getWrapContainer(t,e,i){let s;return s=e?typeof e=="string"?Q.global.getElementById(e):e:t.window.getContainer(),{wrapContainer:Q.global.createDom(Object.assign({tagName:"div",parent:s},i)),nativeContainer:s}}parseDefaultStyleFromGraphic(t){const e=t.type==="text"&&t.attribute?t.attribute:st(t).text;return YH(e)}getTransformOfText(t){const e=st(t).text,{textAlign:i=e.textAlign,textBaseline:s=e.textBaseline}=t.attribute,r=t.globalTransMatrix.toTransformAttrs(),{rotateDeg:a,scaleX:o,scaleY:l}=r,h={left:"0",start:"0",end:"-100%",center:"-50%",right:"-100%",top:"0",middle:"-50%",bottom:"-100%",alphabetic:"-79%"},d={left:"0",start:"0",end:"100%",center:"50%",right:"100%",top:"0",middle:"50%",bottom:"100%",alphabetic:"79%"};return{textAlign:i,transform:`translate(${h[i]},${h[s]}) rotate(${a}deg) scaleX(${o}) scaleY(${l})`,transformOrigin:`${d[i]} ${d[s]}`}}updateStyleOfWrapContainer(t,e,i,s,r){const{pointerEvents:a}=r;let o=this.parseDefaultStyleFromGraphic(t);o.display=t.attribute.visible!==!1?"block":"none",o.pointerEvents=a===!0?"all":a||"none",i.style.position||(i.style.position="absolute",s.style.position="relative");let l=0,h=0;const d=t.globalAABBBounds;let c=r.anchorType;if(C(c)&&(c=t.type==="text"?"position":"boundsLeftTop"),c==="boundsLeftTop"&&(c="top-left"),c==="position"||d.empty()){const m=t.globalTransMatrix;l=m.e,h=m.f}else{const m=VP(d,c);l=m.x,h=m.y}const u=Q.global.getElementTopLeft(s,!1),p=e.window.getTopLeft(!1),g=e.viewBox,f=l+p.left-u.left+g.x1,_=h+p.top-u.top+g.y1;if(o.left=`${f}px`,o.top=`${_}px`,t.type==="text"&&c==="position"&&(o=Object.assign(Object.assign({},o),this.getTransformOfText(t))),G(r.style)){const m=r.style({top:_,left:f,width:d.width(),height:d.height()},t,i);m&&(o=Object.assign(Object.assign({},o),m))}else Ct(r.style)?o=Object.assign(Object.assign({},o),r.style):at(r.style)&&r.style&&(o=Object.assign(Object.assign({},o),DF(r.style)));Q.global.updateDom(i,{width:r.width,height:r.width,style:o})}clearCacheContainer(){this.htmlMap&&Object.keys(this.htmlMap).forEach(t=>{this.htmlMap[t]&&this.htmlMap[t].renderId!==this.renderId&&this.removeElement(t)}),this.renderId+=1}drawHTML(t){Q.global.env==="browser"&&(t.renderTreeRoots.sort((e,i)=>{var s,r;return((s=e.attribute.zIndex)!==null&&s!==void 0?s:Be.zIndex)-((r=i.attribute.zIndex)!==null&&r!==void 0?r:Be.zIndex)}).forEach(e=>{this.renderGroupHTML(e)}),this.clearCacheContainer())}renderGroupHTML(t){this.renderGraphicHTML(t),t.forEachChildren(e=>{e.isContainer?this.renderGroupHTML(e):this.renderGraphicHTML(e)})}removeElement(t){if(!this.htmlMap||!this.htmlMap[t])return;const{wrapContainer:e}=this.htmlMap[t];e&&Q.global.removeDom(e),this.htmlMap[t]=null}renderGraphicHTML(t){var e;const{html:i}=t.attribute;if(!i)return;const s=t.stage;if(!s)return;const{dom:r,container:a}=i;if(!r)return;const o=C(i.id)?`${(e=t.id)!==null&&e!==void 0?e:t._uid}_react`:i.id;if(this.htmlMap&&this.htmlMap[o]&&a&&a!==this.htmlMap[o].container&&this.removeElement(o),this.htmlMap&&this.htmlMap[o])typeof r=="string"?this.htmlMap[o].wrapContainer.innerHTML=r:r!==this.htmlMap[o].wrapContainer.firstChild&&(this.htmlMap[o].wrapContainer.removeChild(this.htmlMap[o].wrapContainer.firstChild),this.htmlMap[o].wrapContainer.appendChild(r));else{const{wrapContainer:d,nativeContainer:c}=this.getWrapContainer(s,a);d&&(typeof r=="string"?d.innerHTML=r:d.appendChild(r),this.htmlMap||(this.htmlMap={}),this.htmlMap[o]={wrapContainer:d,nativeContainer:c,container:a,renderId:this.renderId})}if(!this.htmlMap||!this.htmlMap[o])return;const{wrapContainer:l,nativeContainer:h}=this.htmlMap[o];this.updateStyleOfWrapContainer(t,s,l,h,i),this.htmlMap[o].renderId=this.renderId}release(){Q.global.env==="browser"&&this.removeAllDom(this.pluginService.stage.defaultLayer)}removeAllDom(t){this.htmlMap&&(Object.keys(this.htmlMap).forEach(e=>{this.removeElement(e)}),this.htmlMap=null)}}const Ek=new _e;class _N{constructor(){this.name="DirtyBoundsPlugin",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid}activate(t){this.pluginService=t,t.stage.hooks.afterRender.tap(this.key,e=>{e&&e===this.pluginService.stage&&e.dirtyBounds.clear()}),Q.graphicService.hooks.beforeUpdateAABBBounds.tap(this.key,(e,i,s,r)=>{e.glyphHost&&(e=e.glyphHost),i&&i===this.pluginService.stage&&i.renderCount&&(e.isContainer&&!e.shouldSelfChangeUpdateAABBBounds()||s&&(Ek.setValue(r.x1,r.y1,r.x2,r.y2),i.dirty(Ek,e.parent&&e.parent.globalTransMatrix)))}),Q.graphicService.hooks.afterUpdateAABBBounds.tap(this.key,(e,i,s,r,a)=>{i&&i===this.pluginService.stage&&i.renderCount&&(e.isContainer&&!a||i.dirty(r.globalAABBBounds))}),Q.graphicService.hooks.onRemove.tap(this.key,e=>{const i=e.stage;i&&i===this.pluginService.stage&&i.renderCount&&i&&i.dirty(e.globalAABBBounds)})}deactivate(t){Q.graphicService.hooks.beforeUpdateAABBBounds.taps=Q.graphicService.hooks.beforeUpdateAABBBounds.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.afterUpdateAABBBounds.taps=Q.graphicService.hooks.afterUpdateAABBBounds.taps.filter(e=>e.name!==this.key),t.stage.hooks.afterRender.taps=t.stage.hooks.afterRender.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.onRemove.taps=Q.graphicService.hooks.onRemove.taps.filter(e=>e.name!==this.key)}}const Rk=new _e;class mN{constructor(){this.name="FlexLayoutPlugin",this.activeEvent="onRegister",this.id=Ye.GenAutoIncrementId(),this.key=this.name+this.id,this.tempBounds=new _e}pauseLayout(t){this.pause=t}tryLayoutChildren(t){t.firstChild&&this.tryLayout(t.firstChild)}tryLayout(t,e=!0){if(this.pause)return;const i=t.parent;if(!(e||i&&t.needUpdateLayout()))return;const s=st(i).group,{display:r=s.display}=i.attribute;if(r!=="flex")return;const{flexDirection:a=s.flexDirection,flexWrap:o=s.flexWrap,alignItems:l=s.alignItems,clip:h=s.clip}=i.attribute,{alignContent:d=l??s.alignContent}=i.attribute;let{width:c,height:u,justifyContent:p=s.justifyContent}=i.attribute;const g=i.getChildren();if(c==null||u==null){let A=0,T=0,M=0;if(g.forEach(w=>{const E=this.getAABBBounds(w);E.empty()||(a==="column"||a==="column-reverse"?(T+=E.height(),A=Math.max(A,E.width())):(A+=E.width(),T=Math.max(T,E.height())),M+=E.x1,M+=E.y1,M+=E.x2,M+=E.y2)}),!isFinite(M))return;c=A,u=T}i.attribute.width==null?i.attribute.width=c:c=i.attribute.width,i.attribute.height==null?i.attribute.height=u:u=i.attribute.height,this.tempBounds.copy(i._AABBBounds);const f={main:{len:c,field:"x"},cross:{len:u,field:"y"}},_=f.main,m=f.cross;a!=="column"&&a!=="column-reverse"||(_.len=u,m.len=c,_.field="y",m.field="x"),a!=="row-reverse"&&a!=="column-reverse"||(p==="flex-start"?p="flex-end":p==="flex-end"?p="flex-start":g.reverse());let y=0,b=0;const v=[];g.forEach(A=>{const T=this.getAABBBounds(A);if(T.empty())return;const M=_.field==="x"?T.width():T.height(),w=m.field==="x"?T.width():T.height();v.push({mainLen:M,crossLen:w}),y+=M,b=Math.max(b,w)});const x=[];if(y>_.len&&o==="wrap"){let A=0,T=0;v.forEach(({mainLen:M,crossLen:w},E)=>{A+M>_.len?A===0?(x.push({idx:E,mainLen:A+M,crossLen:w}),A=0,T=0):(x.push({idx:E-1,mainLen:A,crossLen:T}),A=M,T=w):(A+=M,T=Math.max(T,w))}),x.push({idx:v.length-1,mainLen:A,crossLen:T})}else x.push({idx:v.length-1,mainLen:y,crossLen:b});let S=0;if(x.forEach(A=>{this.layoutMain(i,g,p,_,v,S,A),S=A.idx+1}),b=x.reduce((A,T)=>A+T.crossLen,0),x.length===1){const A={"flex-start":0,"flex-end":m.len,center:m.len/2};this.layoutCross(g,l,m,A,v,x[0],0)}else if(d==="flex-start"){S=0;let A=0;x.forEach((T,M)=>{const w={"flex-start":A,"flex-end":A+T.crossLen,center:A+T.crossLen/2};this.layoutCross(g,"flex-start",m,w,v,x[M],S),S=T.idx+1,A+=T.crossLen})}else if(d==="center"){S=0;let A=Math.max(0,(m.len-b)/2);x.forEach((T,M)=>{const w={"flex-start":A,"flex-end":A+T.crossLen,center:A+T.crossLen/2};this.layoutCross(g,"center",m,w,v,x[M],S),S=T.idx+1,A+=T.crossLen})}else if(d==="space-around"){S=0;const A=Math.max(0,(m.len-b)/x.length/2);let T=A;x.forEach((M,w)=>{const E={"flex-start":T,"flex-end":T+M.crossLen,center:T+M.crossLen/2};this.layoutCross(g,"flex-start",m,E,v,x[w],S),S=M.idx+1,T+=M.crossLen+2*A})}else if(d==="space-between"){S=0;const A=Math.max(0,(m.len-b)/(2*x.length-2));let T=0;x.forEach((M,w)=>{const E={"flex-start":T,"flex-end":T+M.crossLen,center:T+M.crossLen/2};this.layoutCross(g,"flex-start",m,E,v,x[w],S),S=M.idx+1,T+=M.crossLen+2*A})}g.forEach((A,T)=>{A.addUpdateBoundTag(),A.addUpdatePositionTag(),A.clearUpdateLayoutTag()}),i.addUpdateLayoutTag();const k=this.getAABBBounds(i);h||this.tempBounds.equals(k)||this.tryLayout(i,!1)}getAABBBounds(t){this.skipBoundsTrigger=!0;const e=t.AABBBounds;return this.skipBoundsTrigger=!1,e}updateChildPos(t,e,i){return t+(e??0)-i}layoutMain(t,e,i,s,r,a,o){if(i==="flex-start"){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Ms(e[h],s.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[s.field]=this.updateChildPos(d,e[h].attribute[s.field],c[`${s.field}1`])),l+=r[h].mainLen}}else if(i==="flex-end"){let l=s.len;for(let h=o.idx;h>=a;h--){l-=r[h].mainLen;const d=l+Ms(e[h],s.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[s.field]=this.updateChildPos(d,e[h].attribute[s.field],c[`${s.field}1`]))}}else if(i==="space-around")if(o.mainLen>=s.len){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Ms(e[h],s.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[s.field]=this.updateChildPos(d,e[h].attribute[s.field],c[`${s.field}1`])),l+=r[h].mainLen}}else{const l=o.idx-a+1,h=(s.len-o.mainLen)/l/2;let d=h;for(let c=a;c<=o.idx;c++){const u=d+Ms(e[c],s.field),p=this.getAABBBounds(e[c]);!p.empty()&&(e[c].attribute[s.field]=this.updateChildPos(u,e[c].attribute[s.field],p[`${s.field}1`])),d+=r[c].mainLen+2*h}}else if(i==="space-between")if(o.mainLen>=s.len){let l=0;for(let h=a;h<=o.idx;h++){const d=l+Ms(e[h],s.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[s.field]=this.updateChildPos(d,e[h].attribute[s.field],c[`${s.field}1`])),l+=r[h].mainLen}}else{const l=o.idx-a+1,h=(s.len-o.mainLen)/(2*l-2);let d=0;for(let c=a;c<=o.idx;c++){const u=d+Ms(e[c],s.field),p=this.getAABBBounds(e[c]);!p.empty()&&(e[c].attribute[s.field]=this.updateChildPos(u,e[c].attribute[s.field],p[`${s.field}1`])),d+=r[c].mainLen+2*h}}else if(i==="center"){let l=(s.len-o.mainLen)/2;for(let h=a;h<=o.idx;h++){const d=l+Ms(e[h],s.field),c=this.getAABBBounds(e[h]);!c.empty()&&(e[h].attribute[s.field]=this.updateChildPos(d,e[h].attribute[s.field],c[`${s.field}1`])),l+=r[h].mainLen}}}layoutCross(t,e,i,s,r,a,o){var l;for(let h=o;h<=a.idx;h++){const d=t[h];let{alignSelf:c}=d.attribute;c&&c!=="auto"||(c=e);const u=this.getAABBBounds(d),p=(l=s[c])!==null&&l!==void 0?l:s["flex-start"];c==="flex-end"?!u.empty()&&(d.attribute[i.field]=this.updateChildPos(p-r[h].crossLen+Ms(d,i.field),d.attribute[i.field],u[`${i.field}1`])):c==="center"?!u.empty()&&(d.attribute[i.field]=this.updateChildPos(p-r[h].crossLen/2+Ms(d,i.field),d.attribute[i.field],u[`${i.field}1`])):!u.empty()&&(d.attribute[i.field]=this.updateChildPos(p+Ms(d,i.field),d.attribute[i.field],u[`${i.field}1`]))}}activate(t){this.pluginService=t,Q.graphicService.hooks.onAttributeUpdate.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),e.stage&&e.stage===this.pluginService.stage&&this.tryLayout(e,!1)}),Q.graphicService.hooks.beforeUpdateAABBBounds.tap(this.key,(e,i,s,r)=>{e.glyphHost&&(e=e.glyphHost),i&&i===this.pluginService.stage&&e.isContainer&&!this.skipBoundsTrigger&&Rk.copy(r)}),Q.graphicService.hooks.afterUpdateAABBBounds.tap(this.key,(e,i,s,r,a)=>{i&&i===this.pluginService.stage&&e.isContainer&&!this.skipBoundsTrigger&&(Rk.equals(s)||this.tryLayout(e,!1))}),Q.graphicService.hooks.onSetStage.tap(this.key,e=>{e.glyphHost&&(e=e.glyphHost),this.tryLayout(e,!1)})}deactivate(t){Q.graphicService.hooks.onAttributeUpdate.taps=Q.graphicService.hooks.onAttributeUpdate.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.beforeUpdateAABBBounds.taps=Q.graphicService.hooks.beforeUpdateAABBBounds.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.afterUpdateAABBBounds.taps=Q.graphicService.hooks.afterUpdateAABBBounds.taps.filter(e=>e.name!==this.key),Q.graphicService.hooks.onSetStage.taps=Q.graphicService.hooks.onSetStage.taps.filter(e=>e.name!==this.key)}}function Ms(n,t){return 0}const Ox=new Hj;Ox.addTimeline(fR);Ox.setFPS(60);class vN{constructor(t,e,i=.8){this.dir=t,this.color=e,this.colorRgb=Te.Get(e,qi.Color1),this.ambient=i;const s=an(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);this.formatedDir=[t[0]/s,t[1]/s,t[2]/s]}computeColor(t,e){const i=this.formatedDir,s=ki(sn((t[0]*i[0]+t[1]*i[1]+t[2]*i[2])*(1-this.ambient/2),0)+this.ambient,1);let r;r=at(e)?Te.Get(e,qi.Color1):e;const a=this.colorRgb;return`rgb(${a[0]*r[0]*s}, ${a[1]*r[1]*s}, ${a[2]*r[2]*s})`}}function yN(n,t,e,i){let s,r,a,o,l,h,d,c,u,p;const g=t[0],f=t[1],_=t[2],m=i[0],y=i[1],b=i[2],v=e[0],x=e[1],S=e[2];return Math.abs(g-v)<$t&&Math.abs(f-x)<$t&&Math.abs(_-S)<$t?sm.identity(n):(d=g-v,c=f-x,u=_-S,p=1/Math.hypot(d,c,u),d*=p,c*=p,u*=p,s=y*u-b*c,r=b*d-m*u,a=m*c-y*d,p=Math.hypot(s,r,a),p?(p=1/p,s*=p,r*=p,a*=p):(s=0,r=0,a=0),o=c*a-u*r,l=u*s-d*a,h=d*r-c*s,p=Math.hypot(o,l,h),p?(p=1/p,o*=p,l*=p,h*=p):(o=0,l=0,h=0),n[0]=s,n[1]=o,n[2]=d,n[3]=0,n[4]=r,n[5]=l,n[6]=c,n[7]=0,n[8]=a,n[9]=h,n[10]=u,n[11]=0,n[12]=-(s*g+r*f+a*_),n[13]=-(o*g+l*f+h*_),n[14]=-(d*g+c*f+u*_),n[15]=1,n)}function bN(n,t,e,i,s,r,a){const o=1/(t-e),l=1/(i-s),h=1/(r-a);return n[0]=-2*o,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=-2*l,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=2*h,n[11]=0,n[12]=(t+e)*o,n[13]=(s+i)*l,n[14]=(a+r)*h,n[15]=1,n}function Bk(n,t,e){const i=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],d=t[7],c=t[8],u=t[9],p=t[10],g=t[11],f=t[12],_=t[13],m=t[14],y=t[15];let b=e[0],v=e[1],x=e[2],S=e[3];return n[0]=b*i+v*o+x*c+S*f,n[1]=b*s+v*l+x*u+S*_,n[2]=b*r+v*h+x*p+S*m,n[3]=b*a+v*d+x*g+S*y,b=e[4],v=e[5],x=e[6],S=e[7],n[4]=b*i+v*o+x*c+S*f,n[5]=b*s+v*l+x*u+S*_,n[6]=b*r+v*h+x*p+S*m,n[7]=b*a+v*d+x*g+S*y,b=e[8],v=e[9],x=e[10],S=e[11],n[8]=b*i+v*o+x*c+S*f,n[9]=b*s+v*l+x*u+S*_,n[10]=b*r+v*h+x*p+S*m,n[11]=b*a+v*d+x*g+S*y,b=e[12],v=e[13],x=e[14],S=e[15],n[12]=b*i+v*o+x*c+S*f,n[13]=b*s+v*l+x*u+S*_,n[14]=b*r+v*h+x*p+S*m,n[15]=b*a+v*d+x*g+S*y,n}function En(n,t,e){const i=t[0],s=t[1],r=t[2];let a=e[3]*i+e[7]*s+e[11]*r+e[15];return a=a||1,n[0]=(e[0]*i+e[4]*s+e[8]*r+e[12])/a,n[1]=(e[1]*i+e[5]*s+e[9]*r+e[13])/a,n[2]=(e[2]*i+e[6]*s+e[10]*r+e[14])/a,n}class xN{set params(t){this._params=Object.assign({},t),this._projectionMatrixCached=this.forceGetProjectionMatrix(),this._viewMatrixCached=this.forceGetViewMatrix()}get params(){return Object.assign({},this._params)}constructor(t){this.params=t}getViewMatrix(){return this._viewMatrixCached||(this._viewMatrixCached=ce.allocate()),this._viewMatrixCached}forceGetViewMatrix(){this._viewMatrixCached||(this._viewMatrixCached=ce.allocate());const{pos:t,center:e,up:i}=this.params.viewParams;return yN(this._viewMatrixCached,t,e,i),this._vp||(this._vp=ce.allocate()),this._vp=Bk(this._vp,this.getProjectionMatrix(),this.getViewMatrix()),this._viewMatrixCached}getProjectionMatrix(){return this._projectionMatrixCached||(this._projectionMatrixCached=ce.allocate()),this._projectionMatrixCached}forceGetProjectionMatrix(){this._projectionMatrixCached||(this._projectionMatrixCached=ce.allocate());const{left:t,top:e,right:i,bottom:s}=this._params;return bN(this._projectionMatrixCached,t,i,s,e,0,-2e6),this._vp||(this._vp=ce.allocate()),this._vp=Bk(this._vp,this.getProjectionMatrix(),this.getViewMatrix()),this._projectionMatrixCached}getField(){const{fieldRatio:t=.8,fieldDepth:e,left:i,right:s}=this._params;return(e??s-i)*t}getProjectionScale(t){const e=this.getField();return e/(e+t)}view(t,e,i){const s=[0,0,0];return En(s,[t,e,i],this._viewMatrixCached),s}vp(t,e,i){const s=[0,0,0],{pos:r}=this._params.viewParams;En(s,[t,e,i],this._viewMatrixCached),t=s[0],e=s[1],i=s[2];const a=this.getProjectionScale(i);return{x:t*a+r[0],y:e*a+r[1]}}}let pl;function SN(){if(pl==null)try{const n=document.createElement("canvas"),t=n.getContext("2d");pl=!!(window&&n.getBoundingClientRect&&requestAnimationFrame&&window.devicePixelRatio&&t&&t.isPointInPath&&t.isPointInStroke),pl&&(pl=!!document.createElement)}catch{pl=!1}}function Lx(){SN();const n=Q.global&&Q.global.env;return n?n==="browser":pl}class AN extends aB{constructor(){super(...arguments),this.name="ReactAttributePlugin",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid,this.htmlMap={}}removeElement(t){if(!this.htmlMap||!this.htmlMap[t])return;const{root:e,wrapContainer:i,unmount:s}=this.htmlMap[t];e?Q.global.getRequestAnimationFrame()(()=>{e.unmount()}):s&&s(),i&&Q.global.removeDom(i),this.htmlMap[t]=null}renderGraphicHTML(t){var e;const{react:i}=t.attribute;if(!i)return;const s=t.stage;if(!s)return;const r=s.params.ReactDOM,{element:a,container:o}=i;if(!a||!r||!r.createRoot&&!r.render)return;const l=C(i.id)?`${(e=t.id)!==null&&e!==void 0?e:t._uid}_react`:i.id;if(this.htmlMap&&this.htmlMap[l]&&o&&o!==this.htmlMap[l].container&&this.removeElement(l),this.htmlMap&&this.htmlMap[l])r.createRoot?this.htmlMap[l].root.render(a):r.render(a,this.htmlMap[l].wrapContainer);else{const{wrapContainer:c,nativeContainer:u}=this.getWrapContainer(s,o);if(c)if(this.htmlMap||(this.htmlMap={}),r.createRoot){const p=r.createRoot(c);p.render(a),this.htmlMap[l]={root:p,wrapContainer:c,nativeContainer:u,container:o,renderId:this.renderId}}else r.render(a,c),this.htmlMap[l]={wrapContainer:c,nativeContainer:u,container:o,renderId:this.renderId,unmount:()=>{r.unmountComponentAtNode(c)}}}if(!this.htmlMap||!this.htmlMap[l])return;const{wrapContainer:h,nativeContainer:d}=this.htmlMap[l];this.updateStyleOfWrapContainer(t,s,h,d,i),this.htmlMap[l].renderId=this.renderId}}const Ik={WIDTH:500,HEIGHT:500,X:0,Y:0,BACKGROUND:"white"};class kN extends Ch{set viewBox(t){this.window.setViewBox(t)}get viewBox(){return this.window.getViewBox()}get x(){return this.window.getViewBox().x1}set x(t){const e=this.window.getViewBox();e.translate(t-e.x1,0),this.window.setViewBox(e)}get y(){return this.window.getViewBox().y1}set y(t){const e=this.window.getViewBox();e.translate(0,t-e.y1),this.window.setViewBox(e)}get width(){return this.window.width}set width(t){this.resize(t,this.height)}get viewWidth(){return this.window.getViewBox().width()}set viewWidth(t){this.resizeView(t,this.viewHeight)}get viewHeight(){return this.window.getViewBox().height()}set viewHeight(t){this.resizeView(this.viewWidth,t)}get height(){return this.window.height}set height(t){this.resize(this.width,t)}get dpr(){return this.window.dpr}set dpr(t){this.setDpr(t)}get background(){var t;return(t=this._background)!==null&&t!==void 0?t:Ik.BACKGROUND}set background(t){this._background=t}get defaultLayer(){return this.at(0)}get eventSystem(){return this._eventSystem}constructor(t={}){var e;super({}),this._onVisibleChange=i=>{if(!(this._skipRender<0))if(i){if(this.dirtyBounds){const s=this.window.getViewBox();this.dirtyBounds.setValue(s.x1,s.y1,s.width(),s.height())}this._skipRender>1&&this.renderNextFrame(),this._skipRender=0}else this._skipRender=1},this.beforeRender=i=>{this._beforeRender&&this._beforeRender(i)},this.afterRender=i=>{this.renderCount++,this._afterRender&&this._afterRender(i),this._afterNextRenderCbs&&this._afterNextRenderCbs.forEach(s=>s(i)),this._afterNextRenderCbs=null},this.params=t,this.theme=new bc,this.hooks={beforeRender:new In(["stage"]),afterRender:new In(["stage"])},this.global=Q.global,!this.global.env&&Lx()&&this.global.setEnv("browser"),this.window=Mt.get(pg),this.renderService=Mt.get(nB),this.pluginService=Mt.get(sB),this.layerService=Mt.get(Sx),this.pluginService.active(this,t),this.window.create({width:t.width,height:t.height,viewBox:t.viewBox,container:t.container,dpr:t.dpr||this.global.devicePixelRatio,canvasControled:t.canvasControled!==!1,title:t.title||"",canvas:t.canvas}),this.state="normal",this.renderCount=0,this.tryInitEventSystem(),this._background=(e=t.background)!==null&&e!==void 0?e:Ik.BACKGROUND,this.appendChild(this.layerService.createLayer(this,{main:!0})),this.nextFrameRenderLayerSet=new Set,this.willNextFrameRender=!1,this.stage=this,this.renderStyle=t.renderStyle,t.autoRender&&this.enableAutoRender(),t.disableDirtyBounds===!1&&this.enableDirtyBounds(),t.enableHtmlAttribute&&this.enableHtmlAttribute(t.enableHtmlAttribute),t.ReactDOM&&this.enableReactAttribute(t.ReactDOM),t.enableLayout&&this.enableLayout(),this.hooks.beforeRender.tap("constructor",this.beforeRender),this.hooks.afterRender.tap("constructor",this.afterRender),this._beforeRender=t.beforeRender,this._afterRender=t.afterRender,this.ticker=t.ticker||Ox,this.supportInteractiveLayer=t.interactiveLayer!==!1,this.timeline=new gR,this.ticker.addTimeline(this.timeline),this.timeline.pause(),t.optimize||(t.optimize={}),this.optmize(t.optimize),t.background&&at(this._background)&&this._background.includes("/")&&this.setAttributes({background:this._background})}pauseRender(){this._skipRender=-1}resumeRender(){this._skipRender=0}tryInitEventSystem(){this.global.supportEvent&&!this._eventSystem&&(this._eventSystem=new jj(Object.assign({targetElement:this.window,resolution:this.window.dpr||this.global.devicePixelRatio,rootNode:this,global:this.global,supportsPointerEvents:this.params.supportsPointerEvents,supportsTouchEvents:this.params.supportsTouchEvents},this.params.event)))}preventRender(t){t?this._skipRender=-1/0:this.params.optimize.skipRenderWithOutRange!==!1?this._skipRender=this.window.isVisible()?0:1:this._skipRender=0}optmize(t){this.optmizeRender(t.skipRenderWithOutRange),this.params.optimize=t}optmizeRender(t=!1){t&&(this._skipRender=this._skipRender<0?this._skipRender:this.window.isVisible()?0:1,this.window.onVisibleChange(this._onVisibleChange))}getTimeline(){return this.timeline}get3dOptions(t){const{center:e={x:this.width/2,y:this.height/2,z:0,dx:0,dy:0,dz:0},light:i={},alpha:s=0,beta:r=0,camera:a,fieldRatio:o=1,fieldDepth:l}=t;return Object.assign(Object.assign({},t),{center:e,light:i,alpha:s,beta:r,camera:a,fieldRatio:o,fieldDepth:l})}set3dOptions(t){var e,i,s,r,a,o;this.option3d=t;const l=this.get3dOptions(t),{light:h,center:d,camera:c,alpha:u,beta:p,fieldRatio:g,fieldDepth:f}=l,{dir:_=[1,1,-1],color:m="white",ambient:y}=h,b=((e=d.x)!==null&&e!==void 0?e:this.width/2)+((i=d.dx)!==null&&i!==void 0?i:0),v=((s=d.y)!==null&&s!==void 0?s:this.height/2)+((r=d.dy)!==null&&r!==void 0?r:0),x=[b,v,((a=d.z)!==null&&a!==void 0?a:0)+((o=d.dz)!==null&&o!==void 0?o:0)];let S=0,k=0,A=0;c||(S=Math.sin(u)+b,k=Math.sin(p)+v,A=Math.cos(u)*Math.cos(p)*1),this.light=new vN(_,m,y);const T={left:0,right:this.width,top:0,bottom:this.height,fieldRatio:g,fieldDepth:f,viewParams:{pos:[S,k,A],center:x,up:[0,1,0]}};this.camera?this.camera.params=T:this.camera=new xN(T),t.enableView3dTransform&&this.enableView3dTransform()}setBeforeRender(t){this._beforeRender=t}setAfterRender(t){this._afterRender=t}afterNextRender(t){this._afterNextRenderCbs||(this._afterNextRenderCbs=[]),this._afterNextRenderCbs.push(t)}enableView3dTransform(){this.view3dTranform||(this.view3dTranform=!0,this.pluginService.register(new gN))}disableView3dTranform(){this.view3dTranform&&(this.view3dTranform=!1,this.pluginService.findPluginsByName("ViewTransform3dPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableAutoRender(){this.autoRender||(this.autoRender=!0,this.pluginService.register(new pN))}disableAutoRender(){this.autoRender&&(this.autoRender=!1,this.pluginService.findPluginsByName("AutoRenderPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableIncrementalAutoRender(){this.increaseAutoRender||(this.increaseAutoRender=!0,this.pluginService.register(new fN))}disableIncrementalAutoRender(){this.increaseAutoRender&&(this.increaseAutoRender=!1,this.pluginService.findPluginsByName("IncrementalAutoRenderPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableDirtyBounds(){if(this.dirtyBounds)return;this.dirtyBounds=new di;let t=this.pluginService.findPluginsByName("DirtyBoundsPlugin")[0];t?t.activate(this.pluginService):(t=new _N,this.pluginService.register(t))}disableDirtyBounds(){this.dirtyBounds&&(this.dirtyBounds=null,this.pluginService.findPluginsByName("DirtyBoundsPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableLayout(){this._enableLayout||(this._enableLayout=!0,this.pluginService.register(new mN))}disableLayout(){this._enableLayout&&(this._enableLayout=!1,this.pluginService.findPluginsByName("FlexLayoutPlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableHtmlAttribute(t){this.htmlAttribute||(this.htmlAttribute=t,this.pluginService.register(new aB))}disableHtmlAttribute(){this.htmlAttribute&&(this.htmlAttribute=!1,this.pluginService.findPluginsByName("HtmlAttributePlugin").forEach(t=>{this.pluginService.unRegister(t)}))}enableReactAttribute(t){this.reactAttribute||(this.reactAttribute=t,this.pluginService.register(new AN))}disableReactAttribute(){this.reactAttribute&&(this.reactAttribute=!1,this.pluginService.findPluginsByName("ReactAttributePlugin").forEach(t=>{this.pluginService.unRegister(t)}))}getPluginsByName(t){return this.pluginService.findPluginsByName(t)}tryUpdateAABBBounds(){const t=this.window.getViewBox();return this._AABBBounds.setValue(t.x1,t.y1,t.x2,t.y2),this._AABBBounds}combineLayer(t,e){throw new Error("暂不支持")}createLayer(t,e){if(this.releaseStatus==="released")return;const i=this.layerService.createLayer(this,{main:!1,layerMode:e,canvasId:t});return this.appendChild(i),i}sortLayer(t){const e=this.children;e.sort(t),this.removeAllChild(),e.forEach(i=>{this.appendChild(i)})}removeLayer(t){return this.removeChild(this.findChildByUid(t))}tryInitInteractiveLayer(){this.releaseStatus!=="released"&&this.supportInteractiveLayer&&!this.interactiveLayer&&(this.interactiveLayer=this.createLayer(),this.interactiveLayer.name="_builtin_interactive",this.interactiveLayer.attribute.pickable=!1,this.nextFrameRenderLayerSet.add(this.interactiveLayer))}clearViewBox(t){this.window.clearViewBox(t)}render(t,e){if(this.releaseStatus==="released")return;this.ticker.start(),this.timeline.resume();const i=this.state;this.state="rendering",this.layerService.prepareStageLayer(this),this._skipRender||(this.lastRenderparams=e,this.hooks.beforeRender.call(this),this._skipRender||(this.renderLayerList(this.children),this.combineLayersToWindow(),this.nextFrameRenderLayerSet.clear()),this.hooks.afterRender.call(this)),this.state=i,this._skipRender&&this._skipRender++}combineLayersToWindow(){if(this.global.env==="harmony"){const t=this.window.getContext().nativeContext;this.forEachChildren((e,i)=>{if(i>0){const s=e.getNativeHandler().getContext().canvas.nativeCanvas.nativeCanvas._c.transferToImageBitmap();t.transferFromImageBitmap(s)}})}}renderNextFrame(t,e){this.nextFrameRenderLayerSet.size!==this.childrenCount&&(t||this).forEach(i=>{this.nextFrameRenderLayerSet.add(i)}),this.willNextFrameRender||(this.willNextFrameRender=!0,this.global.getRequestAnimationFrame()(()=>{this._doRenderInThisFrame(),this.willNextFrameRender=!1}))}_doRenderInThisFrame(){if(this.releaseStatus==="released")return;this.timeline.resume(),this.ticker.start();const t=this.state;this.state="rendering",this.layerService.prepareStageLayer(this),this.nextFrameRenderLayerSet.size&&!this._skipRender&&(this.hooks.beforeRender.call(this),this._skipRender||(this.renderLayerList(Array.from(this.nextFrameRenderLayerSet.values()),this.lastRenderparams||{}),this.combineLayersToWindow(),this.nextFrameRenderLayerSet.clear()),this.hooks.afterRender.call(this)),this.state=t,this._skipRender&&this._skipRender++}renderLayerList(t,e){const i=[];for(let s=0;s{s.renderCount>this.renderCount||(s.renderCount=this.renderCount+1,s.render({renderService:this.renderService,background:s===this.defaultLayer?this.background:void 0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},Object.assign({renderStyle:this.renderStyle},e)))}),this.interactiveLayer&&!t.includes(this.interactiveLayer)&&this.interactiveLayer.render({renderService:this.renderService,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty()),viewBox:this.window.getViewBox(),transMatrix:this.window.getViewBoxTransform()},Object.assign({renderStyle:this.renderStyle},e))}resizeWindow(t,e,i=!0){this.window.resize(t,e),i&&this.render()}resize(t,e,i=!0){this.releaseStatus!=="released"&&(this.window.hasSubView()||this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+t,this.viewBox.y1+e),this.window.resize(t,e),this.forEachChildren(s=>{s.resize(t,e)}),this.camera&&this.option3d&&this.set3dOptions(this.option3d),i&&this.render())}resizeView(t,e,i=!0){this.releaseStatus!=="released"&&(this.viewBox.setValue(this.viewBox.x1,this.viewBox.y1,this.viewBox.x1+t,this.viewBox.y1+e),this.forEachChildren(s=>{s.resizeView(t,e)}),this.camera&&(this.camera.params=Object.assign(Object.assign({},this.camera.params),{right:this.width,bottom:this.height})),i&&this.render())}setViewBox(t,e,i,s,r){let a=!0;typeof t=="object"?(this.viewBox.setValue(t.x1,t.y1,t.x2,t.y2),e===!1&&(a=!1)):(this.viewBox.setValue(t,e,t+i,e+s),r===!1&&(a=!1)),this.forEachChildren(o=>{o.resizeView(this.viewBox.width(),this.viewBox.height())}),a&&this.render()}setDpr(t,e=!0){this.forEachChildren(i=>{i.setDpr(t)}),e&&this.render()}setOrigin(t,e){throw new Error("暂不支持")}export(t){throw new Error("暂不支持")}pick(t,e){if(this.releaseStatus==="released")return;this.pickerService||(this.pickerService=Mt.get(Fl));const i=this.pickerService.pick(this.children,new ze(t,e),{bounds:this.AABBBounds});return!(!(i!=null&&i.graphic)&&!(i!=null&&i.group))&&i}startAnimate(t){throw new Error("暂不支持")}setToFrame(t){throw new Error("暂不支持")}release(){super.release(),this.hooks.beforeRender.unTap("constructor",this.beforeRender),this.hooks.afterRender.unTap("constructor",this.afterRender),this.eventSystem&&this.eventSystem.release(),this.layerService.releaseStage(this),this.pluginService.release(),this.forEach(t=>{t.release()}),this.interactiveLayer&&this.interactiveLayer.release(),this.window.release(),this.ticker.remTimeline(this.timeline),this.renderService.renderTreeRoots=[]}setStage(t){}dirty(t,e){this.releaseStatus!=="released"&&(e&&t.transformWithMatrix(e),this.dirtyBounds.empty()&&this.dirtyBounds.setValue(t.x1,t.y1,t.x2,t.y2),this.dirtyBounds.union(t))}getLayer(t){return this.children.filter(e=>e.name===t)[0]}renderTo(t){this.releaseStatus!=="released"&&this.forEachChildren((e,i)=>{e.drawTo(t,{renderService:this.renderService,viewBox:t.getViewBox(),transMatrix:t.getViewBoxTransform(),background:e===this.defaultLayer?this.background:void 0,clear:i===0,updateBounds:!(!this.dirtyBounds||this.dirtyBounds.empty())})})}renderToNewWindow(t=!0,e){if(this.releaseStatus==="released")return;const i=Mt.get(pg),s=e?-e.x1:0,r=e?-e.y1:0,a=e?e.x2:this.viewWidth,o=e?e.y2:this.viewHeight,l=e?e.width():this.viewWidth,h=e?e.height():this.viewHeight;return i.create({viewBox:{x1:s,y1:r,x2:a,y2:o},width:l,height:h,dpr:this.window.dpr,canvasControled:!0,offscreen:!0,title:""}),this.renderTo(i),i}toCanvas(t=!0,e){if(this.releaseStatus==="released")return;const i=this.renderToNewWindow(t,e).getNativeHandler();return i.nativeCanvas?i.nativeCanvas:null}setCursor(t){this._cursor=t,this.eventSystem.setCursor(t,"ignore")}getCursor(){return this._cursor}eventPointTransform(t){const e=this.global.mapToCanvasPoint(t,this.window.getContext().canvas.nativeCanvas);return this.stage.window.pointTransform(e.x,e.y)}pauseTriggerEvent(){this._eventSystem&&this._eventSystem.pauseTriggerEvent()}resumeTriggerEvent(){this._eventSystem&&this._eventSystem.resumeTriggerEvent()}}function TN(n){return new kN(n)}var MN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},wN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const L0={WIDTH:500,HEIGHT:500,DPR:1};let Sd=class{get displayWidth(){return this._pixelWidth/this._dpr}get displayHeight(){return this._pixelHeight/this._dpr}get id(){return this._id}get x(){return this._x}set x(n){this._x=n}get y(){return this._y}set y(n){this._y=n}get nativeCanvas(){return this._nativeCanvas}get width(){return this._pixelWidth}set width(n){this._pixelWidth=n,this._displayWidth=n/(this._dpr||1)}get height(){return this._pixelHeight}set height(n){this._pixelHeight=n,this._displayHeight=n/(this._dpr||1)}getContext(n){return this._context}get visiable(){return this._visiable}set visiable(n){this._visiable=n,n?this.show():this.hide()}get dpr(){return this._dpr}set dpr(n){this._dpr=n,this.resize(this._displayWidth,this._displayHeight)}constructor(n){var t;const{nativeCanvas:e,width:i=L0.WIDTH,height:s=L0.HEIGHT,dpr:r=L0.DPR,x:a,y:o,id:l,canvasControled:h=!0}=n;this._x=a??0,this._y=o??0,this._pixelWidth=i*r,this._pixelHeight=s*r,this._visiable=n.visiable!==!1,this.controled=h,this._displayWidth=i,this._displayHeight=s,this._dpr=r,this._nativeCanvas=e,this._id=(t=e.id)!==null&&t!==void 0?t:l,l&&(e.id=l),this.init(n)}getNativeCanvas(){return this._nativeCanvas}hide(){}show(){}applyPosition(){}resetStyle(n){}resize(n,t){}toDataURL(n,t){return""}readPixels(n,t,e,i){return this._context.getImageData(n,t,e,i)}convertToBlob(n){throw new Error("暂未实现")}transferToImageBitmap(){throw new Error("暂未实现")}release(...n){this.controled&&this._nativeCanvas.parentElement&&this._nativeCanvas.parentElement.removeChild(this._nativeCanvas)}};Sd.env="browser",Sd=MN([gt(),wN("design:paramtypes",[Object])],Sd);var CN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let qg=class{configure(n,...t){n.env===this.type&&n.setActiveEnvContribution(this)}getNativeAABBBounds(n){return new _e}removeDom(n){return!1}createDom(n){return null}updateDom(n,t){return!1}getDynamicCanvasCount(){return 999}getStaticCanvasCount(){return 999}getElementById(n){return document.getElementById(n)}getRootElement(){return document.body}loadJson(n){const t=fetch(n).then(e=>e.json());return t.then(e=>({data:e,state:"success"})).catch(()=>({data:null,state:"fail"})),t}loadArrayBuffer(n){return fetch(n).then(t=>t.arrayBuffer()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadBlob(n){return fetch(n).then(t=>t.blob()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}getElementTop(n,t){return 0}getElementLeft(n,t){return 0}getElementTopLeft(n,t){return{top:0,left:0}}};qg=CN([gt()],qg);var PN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},EN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Zg=class{constructor(){this._uid=Ye.GenAutoIncrementId(),this.viewBox=new _e,this.modelMatrix=new Re(1,0,0,1,0,0)}onChange(n){this._onChangeCb=n}configure(n,t){t.env===this.type&&n.setWindowHandler(this)}release(...n){this.releaseWindow()}isVisible(n){return!0}onVisibleChange(n){}getTopLeft(n){return{top:0,left:0}}setViewBox(n){this.viewBox.setValue(n.x1,n.y1,n.x2,n.y2)}getViewBox(){return this.viewBox}setViewBoxTransform(n,t,e,i,s,r){this.modelMatrix.setValue(n,t,e,i,s,r)}getViewBoxTransform(){return this.modelMatrix}};Zg=PN([gt(),EN("design:paramtypes",[])],Zg);var RN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},BN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},Ok=function(n,t){return function(e,i){t(e,i,n)}};let Ey=class{constructor(n){this.pickItemInterceptorContributions=n,this.type="default",this.global=Q.global}_init(){this.InterceptorContributions=this.pickItemInterceptorContributions.getContributions().sort((n,t)=>n.order-t.order)}pick(n,t,e){let i={graphic:null,group:null};e.pickerService=this;const s=e.bounds.width(),r=e.bounds.height();if(!new _e().setValue(0,0,s,r).containsPoint(t))return i;this.pickContext&&(this.pickContext.inuse=!0),e.pickContext=this.pickContext,this.pickContext&&this.pickContext.clearMatrix(!0,1);const a=new Re(1,0,0,1,0,0);let o;for(let l=n.length-1;l>=0&&(i=n[l].isContainer?this.pickGroup(n[l],t,a,e):this.pickItem(n[l],t,a,e),!i.graphic);l--)o||(o=i.group);if(i.graphic||(i.group=o),this.pickContext&&(this.pickContext.inuse=!1),i.graphic){let l=i.graphic;for(;l.parent;)l=l.parent;l.shadowHost&&(i.params={shadowTarget:i.graphic},i.graphic=l.shadowHost)}return i}containsPoint(n,t,e){var i;return!!(!((i=this.pickItem(n,t,null,e??{pickContext:this.pickContext,pickerService:this}))===null||i===void 0)&&i.graphic)}pickGroup(n,t,e,i){let s={group:null,graphic:null};if(n.attribute.visibleAll===!1)return s;const r=i.pickContext,a=r.modelMatrix;if(r.camera){const p=n.transMatrix,g=ce.allocate();if(gy(g,p),a){if(g){const f=ce.allocate();r.modelMatrix=bu(f,a,g),ce.free(g)}}else gy(g,n.globalTransMatrix),r.modelMatrix=g}if(this.InterceptorContributions.length)for(let p=0;p{if(p.isContainer){const g=new ze(t.x,t.y),f=st(n).group,{scrollX:_=f.scrollX,scrollY:m=f.scrollY}=n.attribute;g.x-=_,g.y-=m,s=this.pickGroup(p,g,l,i)}else{const g=new ze(t.x,t.y);l.transformPoint(g,g);const f=st(n).group,{scrollX:_=f.scrollX,scrollY:m=f.scrollY}=n.attribute;g.x-=_,g.y-=m;const y=this.pickItem(p,g,e,i);y&&y.graphic&&(s.graphic=y.graphic,s.params=y.params)}return!!s.graphic||!!s.group},!0,!!r.camera),r.modelMatrix!==a&&ce.free(r.modelMatrix),r.modelMatrix=a,s.graphic||s.group||!u||n.stage.camera||(s.group=n),Fn.free(l),s}selectPicker(n){return this.pickerMap.get(n.numberType)||null}};Ey=RN([gt(),Ok(0,It(ni)),Ok(0,_i(kl)),BN("design:paramtypes",[Object])],Ey);function IN(n,t){let e,i,s=n[0].x,r=n[0].y;const a=[n[0]];for(let o=1,l=n.length;ot&&(s=n[o].x,r=n[o].y,a.push(n[o]));return n[n.length-1].x===s&&n[n.length-1].y===r||a.push(n[n.length-1]),a}function Ry(n,t,e,i,s){let r=i,a=t;const o=n[t].x,l=n[t].y,h=n[e].x-o,d=n[e].y-l,c=h*h+d*d;let u,p,g,f,_;for(let m=t+1,y=e-1;mr&&(r=g,a=m);r>i&&(a-t>2&&Ry(n,t,a,i,s),s.push(n[a],n[a+1]),e-a>2&&Ry(n,a,e,i,s))}function ON(n,t){const e=n.length-1,i=[n[0]];return Ry(n,0,e,t,i),i.push(n[e]),i}function LN(n,t,e){if(n.length<=10)return n;const i=t!==void 0?t*t:1;return n=ON(n=IN(n,i),i)}let Lk=!1;const DN=new wt(n=>{Lk||(Lk=!0,n(Sg).toSelf().inSingletonScope(),n(Pg).to(Sg).inSingletonScope(),n(mi).toService(Pg),n(ny).toService(es),Ri(n,ny))});let Dk=!1;const FN=new wt(n=>{Dk||(Dk=!0,n(Mg).toSelf().inSingletonScope(),n(Lg).to(Mg).inSingletonScope(),n(mi).toService(Lg),n(xg).toSelf(),n(bg).toSelf(),n(cd).toService(xg),n(cd).toService(bg),n(cd).toService(es),Ri(n,cd))});let Fk=!1;const zN=new wt(n=>{Fk||(Fk=!0,n(Pc).toSelf().inSingletonScope(),n(Yg).toSelf().inSingletonScope(),n(Bg).to(Pc).inSingletonScope(),n(mi).toService(Bg))});let zk=!1;const jN=new wt(n=>{zk||(zk=!0,n(Ec).toSelf().inSingletonScope(),n(Eg).to(Ec).inSingletonScope(),n(mi).toService(Eg),n(sy).toService(es),Ri(n,sy),n(Xg).toSelf().inSingletonScope())});let jk=!1;const HN=new wt(n=>{jk||(jk=!0,n(wg).toSelf().inSingletonScope(),n(Dg).to(wg).inSingletonScope(),n(mi).toService(Dg),n(hy).toService(es),Ri(n,hy))});let Hk=!1;const VN=new wt(n=>{Hk||(Hk=!0,n(Ag).toSelf().inSingletonScope(),n(Rg).to(Ag).inSingletonScope(),n(mi).toService(Rg),n(ry).toService(es),Ri(n,ry))});let Vk=!1;const WN=new wt(n=>{Vk||(Vk=!0,n(ky).to(vy).inSingletonScope(),n(mi).toService(ky),n(dy).toService(es),Ri(n,dy))});let Wk=!1;const NN=new wt(n=>{Wk||(Wk=!0,n(Tg).toSelf().inSingletonScope(),n(Ig).to(Tg).inSingletonScope(),n(mi).toService(Ig),n(oy).toService(es),Ri(n,oy))});let Nk=!1;const GN=new wt(n=>{Nk||(Nk=!0,n(Og).to(yy).inSingletonScope(),n(mi).toService(Og),n(ly).toService(es),Ri(n,ly))});var UN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let By=class{constructor(){this.numberType=Y_}drawShape(n,t,e,i,s,r,a,o){s.drawContribution&&n.getSubGraphic().forEach(l=>{const h=s.drawContribution.getRenderContribution(l);h&&h.drawShape&&h.drawShape(l,t,e,i,s,r,a,o)})}draw(n,t,e,i){const{context:s}=e;if(!s||(s.highPerformanceSave(),!e.drawContribution))return;const r=st(n),a=n.getSubGraphic();a.length&&a.forEach(o=>{e.drawContribution.renderItem(o,e,{theme:r})}),s.highPerformanceRestore()}};By=UN([gt()],By);let Gk=!1;const $N=new wt(n=>{Gk||(Gk=!0,n(Fg).to(By).inSingletonScope(),n(mi).toService(Fg))});var YN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},XN=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Iy=class extends cn{constructor(){super(),this.numberType=bx,this.builtinContributions=[tB],this.init()}drawShape(n,t,e,i,s){const r=st(n).richtext,{strokeOpacity:a=r.strokeOpacity,opacity:o=r.opacity,fillOpacity:l=r.fillOpacity,visible:h=r.visible}=n.attribute;if(!n.valid||!h)return;const d=Mo(o,l,!0),c=Mo(o,a,!0);d&&(t.translate(e,i),this.beforeRenderStep(n,t,e,i,d,c,d,c,r,s),n.getFrameCache().draw(t,this.drawIcon),this.afterRenderStep(n,t,e,i,d,c,d,c,r,s))}drawIcon(n,t,e,i,s){var r;const a=st(n).richtextIcon,{width:o=a.width,height:l=a.height,opacity:h=a.opacity,image:d,backgroundFill:c=a.backgroundFill,backgroundFillOpacity:u=a.backgroundFillOpacity,backgroundStroke:p=a.backgroundStroke,backgroundStrokeOpacity:g=a.backgroundStrokeOpacity,backgroundRadius:f=a.backgroundRadius,margin:_}=n.attribute,{backgroundWidth:m=o,backgroundHeight:y=l}=n.attribute;if(_&&(e+=n._marginArray[3],i+=n._marginArray[0]),n._hovered){const v=(m-o)/2,x=(y-l)/2;f===0?(t.beginPath(),t.rect(e-v,i-x,m,y)):(t.beginPath(),Mr(t,e-v,i-x,m,y,f)),c&&(t.globalAlpha=u,t.fillStyle=c,t.fill()),p&&(t.globalAlpha=g,t.strokeStyle=p,t.stroke())}const b=d&&((r=n==null?void 0:n.resources)===null||r===void 0?void 0:r.get(d));b&&b.state==="success"&&(t.globalAlpha=h,t.drawImage(b.data,e,i,o,l))}draw(n,t,e){const i=st(n).richtext;this._draw(n,i,!1,e)}};Iy=YN([gt(),XN("design:paramtypes",[])],Iy);let Uk=!1;const KN=new wt(n=>{Uk||(Uk=!0,n(Ty).to(Iy).inSingletonScope(),n(mi).toService(Ty))});let $k=!1;const qN=new wt(n=>{$k||($k=!0,n(kk).to(xy).inSingletonScope(),n(mi).toService(kk),n(ay).toService(es),Ri(n,ay))});var ZN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Oy=class extends cn{constructor(){super(...arguments),this.type="rect3d",this.numberType=yx}drawShape(n,t,e,i,s,r,a,o){var l;const h=st(n,r==null?void 0:r.theme).rect,{fill:d=h.fill,stroke:c=h.stroke,x1:u,y1:p,x:g,y:f,opacity:_=h.opacity,fillOpacity:m=h.fillOpacity,lineWidth:y=h.lineWidth,strokeOpacity:b=h.strokeOpacity,visible:v=h.visible}=n.attribute;let{width:x,height:S}=n.attribute;x=(x??u-g)||0,S=(S??p-f)||0;const k=(l=this.z)!==null&&l!==void 0?l:0,A=Ax(_,m,x,S,d),T=Tx(_,b,x,S),M=$o(d),w=Ph(c,y);if(!n.valid||!v||!M&&!w||!(A||T||a||o))return;const{light:E,camera:R}=s.stage||{},O=n.findFace();if(d!==!1){t.setCommonStyle(n,n.attribute,e,i,h);let B=d;typeof B!="string"&&(B="black"),this.fill(e,i,k,O,B,t,E,a)}c!==!1&&(t.setStrokeStyle(n,n.attribute,e,i,h),this.stroke(e,i,k,O,t))}stroke(n,t,e,i,s){const r=i.vertices;i.edges.forEach(a=>{const o=r[a[0]],l={x:n+o[0],y:t+o[1],z:e+o[2]},h=r[a[1]],d={x:n+h[0],y:t+h[1],z:e+h[2]};s.beginPath(),s.moveTo(l.x,l.y,l.z),s.lineTo(d.x,d.y,d.z),s.stroke()})}fill(n,t,e,i,s,r,a,o){const l=Te.Get(s,qi.Color255),h=i.vertices,d=h.map(u=>r.view(u[0],u[1],u[2])[2]),c=[];i.polygons.forEach((u,p)=>{c.push({faceIdx:p,polygon:u});const{polygon:g,normal:f}=u,_=d[g[0]],m=d[g[1]],y=d[g[2]],b=d[g[3]];u.ave_z=_+m+y+b}),c.sort((u,p)=>p.polygon.ave_z-u.polygon.ave_z),c.forEach(u=>{const{polygon:p,normal:g}=u.polygon,f=h[p[0]],_=h[p[1]],m=h[p[2]],y=h[p[3]],b={x:n+f[0],y:t+f[1],z:e+f[2]},v={x:n+_[0],y:t+_[1],z:e+_[2]},x={x:n+m[0],y:t+m[1],z:e+m[2]},S={x:n+y[0],y:t+y[1],z:e+y[2]};r.beginPath(),r.moveTo(b.x,b.y,b.z),r.lineTo(v.x,v.y,v.z),r.lineTo(x.x,x.y,x.z),r.lineTo(S.x,S.y,S.z),r.closePath(),o?o(r,null,null):(r.fillStyle=a?a.computeColor(g,l):s,r.fill())})}draw(n,t,e){const i=st(n).rect;this._draw(n,i,!1,e)}};Oy=ZN([gt()],Oy);let Yk=!1;const JN=new wt(n=>{Yk||(Yk=!0,n(Ay).to(Oy).inSingletonScope(),n(mi).toService(Ay))});var QN=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function tG(n,t,e,i,s,r,a){const{startAngle:o,endAngle:l}=n.getParsedAngle(),h=Gt(l-o),d=l>o;let c=!1;if(r=Dt-$t)t.moveTo(e+r*se(o),i+r*Kt(o),s),t.arc(e,i,r,o,l,!d,s),a>$t&&(t.moveTo(e+a*se(l),i+a*Kt(l),s),t.arc(e,i,a,l,o,d,s));else{const{outerDeltaAngle:u,innerDeltaAngle:p,outerStartAngle:g,outerEndAngle:f,innerEndAngle:_,innerStartAngle:m}=n.getParsePadAngle(o,l),y=r*se(g),b=r*Kt(g),v=a*se(_),x=a*Kt(_);u<.001?c=!0:(t.moveTo(e+y,i+b,s),t.arc(e,i,r,g,f,!d,s)),!(a>$t)||p<.001?(t.lineTo(e+v,i+x,s),c=!0):(t.lineTo(e+v,i+x,s),t.arc(e,i,a,_,m,d,s))}return t.closePath(),c}function eG(n,t,e,i,s,r,a,o){const{startAngle:l,endAngle:h}=n.getParsedAngle(),d=Gt(h-l),c=h>l;let u=!1;if(a<=$t)t.moveTo(e,i,s);else if(d>=Dt-$t)t.moveTo(e+a*se(l),i+a*Kt(l),s),t.arc(e,i,a,l,h,!c,s),t.lineTo(e+a*se(h),i+a*Kt(h),r),t.arc(e,i,a,h,l,c,r);else{const{innerouterDeltaAngle:p,innerouterStartAngle:g,innerouterEndAngle:f}=o(l,h),_=a*se(g),m=a*Kt(g),y=a*se(f),b=a*Kt(f);p<.001?u=!0:(t.moveTo(e+_,i+m,s),t.arc(e,i,a,g,f,!c,s),t.lineTo(e+y,i+b,r),t.arc(e,i,a,f,g,c,r))}return t.closePath(),u}let Ly=class extends cn{constructor(){super(...arguments),this.numberType=mu}drawShape(n,t,e,i,s,r,a,o){var l;const h=st(n,r==null?void 0:r.theme).arc,{fill:d=h.fill}=n.attribute,c=this.valid(n,h,a,o);if(!c)return;const{fVisible:u,sVisible:p,doFill:g,doStroke:f}=c,_=(l=this.z)!==null&&l!==void 0?l:0,{outerPadding:m=h.outerPadding,innerPadding:y=h.innerPadding,height:b=10}=n.attribute;let{outerRadius:v=h.outerRadius,innerRadius:x=h.innerRadius}=n.attribute;v+=m,x-=y;const S=Te.Get(d,qi.Color255),{light:k}=s.stage||{},A=s.hack_pieFace,T={top:_,bottom:_+b},M={top:[0,1,0],bottom:[0,-1,0],outside:[1,0,-1],inside:[1,0,-1]};A==="bottom"||A==="top"?(t.beginPath(),tG(n,t,e,i,T[A],v,x),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),g&&(a?a(t,n.attribute,h):u&&(t.setCommonStyle(n,n.attribute,e,i,h),t.fillStyle=k?k.computeColor(M[A],S):d,t.fill())),f&&(o?o(t,n.attribute,h):p&&(t.setStrokeStyle(n,n.attribute,e,i,h),t.stroke()))):A!=="outside"&&A!=="inside"||(A==="inside"&&(t.save(),t.beginPath(),t.arc(e,i,x,0,Dt,!0,T.top),t.clip()),t.beginPath(),eG(n,t,e,i,T.top,T.bottom,A==="outside"?v:x,(w,E)=>{const{outerDeltaAngle:R,innerDeltaAngle:O,outerStartAngle:B,outerEndAngle:I,innerEndAngle:D,innerStartAngle:F}=n.getParsePadAngle(w,E);return A==="outside"?{innerouterDeltaAngle:R,innerouterEndAngle:I,innerouterStartAngle:B}:{innerouterDeltaAngle:O,innerouterEndAngle:D,innerouterStartAngle:F}}),t.setShadowBlendStyle&&t.setShadowBlendStyle(n,n.attribute,h),g&&(a?a(t,n.attribute,h):u&&(t.setCommonStyle(n,n.attribute,e,i,h),t.fillStyle=k?k.computeColor(M[A],S):d,t.fill())),f&&(o?o(t,n.attribute,h):p&&(t.setStrokeStyle(n,n.attribute,e,i,h),t.stroke())),A==="inside"&&t.restore())}draw(n,t,e,i){const s=st(n,i==null?void 0:i.theme).arc;this._draw(n,s,!1,e,i)}};Ly=QN([gt()],Ly);let Xk=!1;const iG=new wt(n=>{Xk||(Xk=!0,n(Sy).to(Ly).inSingletonScope(),n(mi).toService(Sy))});var nG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Dy=class extends cn{constructor(){super(...arguments),this.type="pyramid3d",this.numberType=vx}drawShape(n,t,e,i,s,r,a,o){var l;const h=st(n,r==null?void 0:r.theme).polygon,{fill:d=h.fill,stroke:c=h.stroke,face:u=[!0,!0,!0,!0,!0,!0]}=n.attribute,p=(l=this.z)!==null&&l!==void 0?l:0;if(!this.valid(n,h,a,o))return;const{light:g,camera:f}=s.stage||{},_=n.findFace();if(d!==!1){t.setCommonStyle(n,n.attribute,e,i,h);let m=d;typeof m!="string"&&(m="black"),this.fill(e,i,p,_,u,m,t,g,f,n,h,a)}c!==!1&&(t.setStrokeStyle(n,n.attribute,e,i,h),this.stroke(e,i,p,_,t))}stroke(n,t,e,i,s){const r=i.vertices;i.edges.forEach(a=>{const o=r[a[0]],l=r[a[1]],h={x:n+o[0],y:t+o[1],z:e+o[2]},d={x:n+l[0],y:t+l[1],z:e+l[2]};s.beginPath(),s.moveTo(h.x,h.y,h.z),s.lineTo(d.x,d.y,d.z),s.stroke()})}fill(n,t,e,i,s,r,a,o,l,h,d,c){const u=Te.Get(r,qi.Color255),p=i.vertices,g=p.map(_=>a.view(_[0],_[1],_[2])[2]),f=[];i.polygons.forEach((_,m)=>{if(!s[m])return;f.push({faceIdx:m,polygon:_});const{polygon:y,normal:b}=_,v=g[y[0]],x=g[y[1]],S=g[y[2]],k=g[y[3]];_.ave_z=v+x+S+k}),f.sort((_,m)=>m.polygon.ave_z-_.polygon.ave_z),f.forEach(_=>{const{polygon:m,normal:y}=_.polygon,b=p[m[0]],v=p[m[1]],x=p[m[2]],S=p[m[3]],k={x:n+b[0],y:t+b[1],z:e+b[2]},A={x:n+v[0],y:t+v[1],z:e+v[2]},T={x:n+x[0],y:t+x[1],z:e+x[2]},M={x:n+S[0],y:t+S[1],z:e+S[2]};a.beginPath(),a.moveTo(k.x,k.y,k.z),a.lineTo(A.x,A.y,A.z),a.lineTo(T.x,T.y,T.z),a.lineTo(M.x,M.y,M.z),a.closePath(),c?c(a,h.attribute,d):(a.fillStyle=o?o.computeColor(y,u):r,a.fill())})}draw(n,t,e){const i=st(n).polygon;this._draw(n,i,!1,e)}};Dy=nG([gt()],Dy);let Kk=!1;const sG=new wt(n=>{Kk||(Kk=!0,n(My).to(Dy).inSingletonScope(),n(mi).toService(My))});function rG(){pt.RegisterGraphicCreator("arc",Ex)}function aG(){pt.RegisterGraphicCreator("arc3d",XR)}function oG(){pt.RegisterGraphicCreator("area",YR)}function lG(){pt.RegisterGraphicCreator("circle",UH)}function hG(){pt.RegisterGraphicCreator("glyph",GR)}function dG(){pt.RegisterGraphicCreator("group",xx)}function cG(){pt.RegisterGraphicCreator("image",Px)}function uG(){pt.RegisterGraphicCreator("line",Cx)}function pG(){pt.RegisterGraphicCreator("path",$R)}function gG(){pt.RegisterGraphicCreator("polygon",KR)}function fG(){pt.RegisterGraphicCreator("pyramid3d",qR)}function _G(){pt.RegisterGraphicCreator("rect",wo)}function mG(){pt.RegisterGraphicCreator("rect3d",NR)}function vG(){pt.RegisterGraphicCreator("richtext",UR)}function yG(){pt.RegisterGraphicCreator("symbol",tm)}function bG(){pt.RegisterGraphicCreator("text",ih)}function xG(){pt.RegisterGraphicCreator("shadowRoot",rW)}const Us=(n,t)=>(G(Jg.warnHandler)&&Jg.warnHandler.call(null,n,t),Lt.getInstance().warn(`[VChart warn]: ${n}`)),Co=(n,t,e)=>{{if(!G(Jg.errorHandler))throw new Error(n);Jg.errorHandler.call(null,n,t)}},Jg={silent:!1,warnHandler:!1,errorHandler:!1},oB=Lx(),ea=oB&&globalThis?globalThis.document:void 0;function zn(n){return(n==="desktop-browser"||n==="mobile-browser")&&oB}function Ba(n){return ja(n)||n==="mobile-browser"}function ja(n){return n.includes("miniApp")||n==="lynx"||n==="wx"||n==="harmony"}let D0=0;function Xo(){return D0>=9999999&&(D0=0),D0++}function oh(n){return n!=null&&n!==""&&(!!nt(n)||+n==+n)}function SG(n){if(z(n))return n;const t=+n;return z(t)?t:0}function Ml(n){return!(!n||n.length===0)&&!C(n[0])&&!C(n[0].dataId)&&V(n[0].fields)}const Ko=(n,t,e)=>(n.fields=t||[],n.fname=e,n),AG=n=>t=>Pt(t,n),uo=n=>{Lt.getInstance().error(n)},kG=n=>{const t=[],e=n.length;let i,s,r,a=null,o=0,l="";n+="";const h=()=>{t.push(l+n.substring(i,s)),l="",i=s+1};for(i=0,s=0;si&&h(),i=s+1,o=i):r==="]"&&(o||uo("Access path missing open bracket: "+n),o>0&&h(),o=0,i=s+1):s>i?h():i=s+1}return o&&uo("Access path missing closing bracket: "+n),a&&uo("Access path missing closing quote: "+n),s>i&&(s+=1,h()),t},qk=(n,t,e={})=>{if(G(n))return n;const i=kG(n),s=i.length===1?i[0]:n;return Ko((e&&e.get||AG)(i),[s],s)},bs=(n,t,e={})=>{if(V(n)){const i=n.map(s=>qk(s,t,e));return s=>i.map(r=>r(s))}return qk(n,t,e)};bs("id");const TG=Ko(function(n){return n},[],"identity"),MG=Ko(function(){return 0},[],"zero");Ko(function(){return 1},[],"one");Ko(function(){return!0},[],"true");Ko(function(){return!1},[],"false");Ko(function(){return{}},[],"emptyObject");const Fy=(n,t)=>{const e=G(t)?t:r=>r;let i,s;if(n&&n.length){const r=n.length;for(let a=0;a{if(t===e)return!0;if(C(t)||C(e))return C(t)&&C(e);if(!vv(t)&&!vv(e))return t===e;const s=V(t)?t:t[n],r=V(e)?e:e[n];return s===r||i!==!1&&(V(r)?!(!V(s)||r.length!==s.length||!r.every((a,o)=>a===s[o])):!!Ct(r)&&!(!Ct(s)||Object.keys(r).length!==Object.keys(s).length||!Object.keys(r).every(a=>rm(a,r,s))))},Dn=(n,t)=>C(n)?t:at(n)?t*parseFloat(n)/100:n;function wG(n,t,e,i){const s=i-n*n,r=Math.abs(s)<1e-24?0:(e-n*t)/s;return[t-r*n,r]}function lB(n,t,e,i){let s,r,a=-1;n.forEach(o=>{s=t(o),r=e(o),!C(s)&&(s=+s)>=s&&!C(r)&&(r=+r)>=r&&i(s,r,++a)})}function CG(n,t,e,i,s){let r=0,a=0;return lB(n,t,e,(o,l)=>{const h=l-s(o),d=l-i;r+=h*h,a+=d*d}),1-r/a}function PG(n,t=i=>i.x,e=i=>i.y){let i=0,s=0,r=0,a=0,o=0;lB(n,t,e,(d,c)=>{++o,i+=(d-i)/o,s+=(c-s)/o,r+=(d*c-r)/o,a+=(d*d-a)/o});const l=wG(i,s,r,a),h=d=>l[0]+l[1]*d;return{coef:l,predict:h,rSquared:CG(n,t,e,s,h)}}function Ei(n){return n==="horizontal"}function Zk(n){return n==="vertical"}const Jk=["x","y","dx","dy","scaleX","scaleY","angle","anchor","postMatrix","visible","clip","pickable","childrenPickable","zIndex","cursor"];class ui extends Ch{constructor(t,e){super(t),e!=null&&e.mode&&(this.mode=e.mode,this.setMode(e.mode)),e!=null&&e.skipDefault&&(this.skipDefault=!0),this.setTheme({common:{strokeBoundsBuffer:0}}),this.attribute=t,this.onSetStage(()=>{this.render(),this.bindEvents()})}setAttribute(t,e,i){vs(this.attribute[t])&&vs(e)&&!G(this.attribute[t])&&!G(e)?Y(this.attribute[t],e):this.attribute[t]=e,Jk.includes(t)||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!i&&!this.needUpdateTag(t)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}setAttributes(t,e){const i=Object.keys(t);this._mergeAttributes(t,i),i.every(s=>Jk.includes(s))||this.render(),this.valid=this.isValid(),this.updateShapeAndBoundsTagSetted()||!e&&!this.needUpdateTags(i)?this.addUpdateBoundTag():this.addUpdateShapeAndBoundsTag(),this.addUpdatePositionTag(),this.onAttributeUpdate()}_mergeAttributes(t,e){C(e)&&(e=Object.keys(t));for(let i=0;i{const i=e.target,s=this.rootNode,r=i===s;if(i&&!r){let l=function(d){if(o||(d.type="dragstart",i==null||i.dispatchEvent(d),o=!0),d.type="drag",i==null||i.dispatchEvent(d),!r){i.attribute.pickable=!1;const c=(s==null?void 0:s.pick(d.global.x,d.global.y)).graphic;i.attribute.pickable=!0,a!==c&&(a&&(d.type="dragleave",d.target=a,a.dispatchEvent(d)),c&&(d.type="dragenter",d.target=c,c.dispatchEvent(d)),a=c,a&&(d.type="dragover",d.target=a,a.dispatchEvent(d)))}},a,o=!1;s==null||s.addEventListener("pointermove",l);const h=function(){o&&(a&&(e.type="drop",e.target=a,a.dispatchEvent(e)),e.type="dragend",i.dispatchEvent(e),o=!1),s==null||s.removeEventListener("pointermove",l)};i.addEventListener("pointerup",h,{once:!0}),i.addEventListener("pointerupoutside",h,{once:!0})}},this.rootNode=t,this.initEvents()}initEvents(){var t;(t=this.rootNode)===null||t===void 0||t.addEventListener("pointerdown",this.onPointerDown)}removeEvents(){var t;(t=this.rootNode)===null||t===void 0||t.removeEventListener("pointerdown",this.onPointerDown)}release(){this.removeEvents(),this.rootNode=null}}const TT=(n,t)=>{const e=t.x-n.x,i=t.y-n.y;return Math.abs(e)>Math.abs(i)?e>0?"right":"left":i>0?"down":"up"},fp=(n,t)=>{const e=Math.abs(t.x-n.x),i=Math.abs(t.y-n.y);return Math.sqrt(e*e+i*i)},RG=n=>{const t=n.length;if(t===1)return{x:Math.round(n[0].x),y:Math.round(n[0].y)};let e=0,i=0,s=0;for(;s{this.reset(),this.startTime=no.now();const{cachedEvents:g,startPoints:f}=this;p&&g.push(p.clone()),f.length=g.length;for(let _=0;_{_.direction="none",_.deltaX=0,_.deltaY=0,_.points=f,this.triggerStartEvent("press",_),this.triggerEvent("press",_),this.eventType="press",this.direction="none"},this.config.press.time)}},this.onMove=p=>{this.clearPressTimeout();const{startPoints:g,cachedEvents:f}=this;if(!g.length)return;const _=p.clone(),{x:m,y,pointerId:b}=_;for(let T=0,M=f.length;T({x:T.x,y:T.y})),S=no.now();if(this.prevMoveTime=this.lastMoveTime,this.prevMovePoint=this.lastMovePoint,this.lastMoveTime=S,this.lastMovePoint=v,g.length===1){const T=g[0],M=m-T.x,w=y-T.y,E=this.direction||TT(T,v);this.direction=E;const R=this.getEventType(v);return _.direction=E,_.deltaX=M,_.deltaY=w,_.points=x,this.triggerStartEvent(R,_),void this.triggerEvent(R,_)}const{startDistance:k}=this,A=fp(x[0],x[1]);_.scale=A/k,_.center=this.center,_.points=x,this.triggerStartEvent("pinch",_),this.triggerEvent("pinch",_)},this.onEnd=p=>{const g=p.clone(),{cachedEvents:f,startPoints:_}=this,m=f.map(y=>({x:y.x,y:y.y}));if(g.points=m,this.triggerEndEvent(g),f.length===1){const y=no.now(),b=this.lastMoveTime;if(y-b<100){const v=b-(this.prevMoveTime||this.startTime);if(v>0){const x=this.prevMovePoint||_[0],S=this.lastMovePoint||_[0],k=fp(x,S),A=k/v;A>this.config.swipe.velocity&&k>this.config.swipe.threshold&&(g.velocity=A,g.direction=TT(x,S),this.triggerEvent("swipe",g))}}y-this.lastTapTime0&&this.onStart()},this.element=t,this.tapCount=0,this.lastTapTime=0,this.config={press:{time:(s=(i=e==null?void 0:e.press)===null||i===void 0?void 0:i.time)!==null&&s!==void 0?s:251,threshold:(a=(r=e==null?void 0:e.press)===null||r===void 0?void 0:r.threshold)!==null&&a!==void 0?a:9},swipe:{threshold:(l=(o=e==null?void 0:e.swipe)===null||o===void 0?void 0:o.threshold)!==null&&l!==void 0?l:10,velocity:(d=(h=e==null?void 0:e.swipe)===null||h===void 0?void 0:h.velocity)!==null&&d!==void 0?d:.3},tap:{interval:(u=(c=e==null?void 0:e.tap)===null||c===void 0?void 0:c.interval)!==null&&u!==void 0?u:300}},this.initEvents()}initEvents(){const{element:t}=this;t&&(t.addEventListener("pointerdown",this.onStart),t.addEventListener("pointermove",this.onMove),t.addEventListener("pointerup",this.onEnd),t.addEventListener("pointerupoutside",this.onEnd))}removeEvents(){const{element:t}=this;t&&(t.removeEventListener("pointerdown",this.onStart),t.removeEventListener("pointermove",this.onMove),t.removeEventListener("pointerup",this.onEnd),t.removeEventListener("pointerupoutside",this.onEnd))}release(){this.removeEvents(),this.element=null}getEventType(t){const{eventType:e,startTime:i,startPoints:s}=this;if(e)return e;let r;return r=no.now()-i>this.config.press.time&&fp(s[0],t){for(let r=0,a=s.length;r{this.triggerEvent(`${i}end`,t),i==="press"&&this.triggerEvent(`${i}up`,t),delete e[i]})}emitEvent(t,e){const i=this.element._events[pR];if(i)if("fn"in i)i.fn.call(i.context,e,t);else for(let s=0,r=i.length;s=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},OG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};const Ft=[0,0,0],LG=(n,t,e,i,s,r,a,o)=>{if(o)for(;e>t;)e-=Dt;else for(;et?1:-1);let h=t,d=h;for(;d!==e;){d=l>0?Math.min(d+l,e):Math.max(d+l,e);const c=Math.abs(d-h),u=4*Math.tan(c/4)/3,p=d0&&(Fn.free(this.matrix),this.matrix=this.stack.pop(),this.setTransformForCurrent(!0))}highPerformanceRestore(){this.stack.length>0&&(Fn.free(this.matrix),this.matrix=this.stack.pop())}rotate(n,t=!0){this.matrix.rotate(n),t&&this.setTransformForCurrent()}save(){const n=this.cloneMatrix(this.matrix);this.stack.push(n),this.nativeContext.save()}highPerformanceSave(){const n=this.cloneMatrix(this.matrix);this.stack.push(n)}scale(n,t,e=!0){this.matrix.scale(n,t),e&&this.setTransformForCurrent()}setScale(n,t,e=!0){this.matrix.setScale(n,t),e&&this.setTransformForCurrent()}scalePoint(n,t,e,i,s=!0){this.translate(e,i,!1),this.scale(n,t,!1),this.translate(-e,-i,!1),s&&this.setTransformForCurrent()}setTransform(n,t,e,i,s,r,a=!0,o=this.dpr){this.matrix.setValue(o*n,o*t,o*e,o*i,o*s,o*r),a&&this.setTransformForCurrent()}setTransformFromMatrix(n,t=!0,e=this.dpr){this.matrix.setValue(n.a*e,n.b*e,n.c*e,n.d*e,n.e*e,n.f*e),t&&this.setTransformForCurrent()}resetTransform(n=!0,t=this.dpr){this.setTransform(t,0,0,t,0,0),n&&this.setTransformForCurrent()}transform(n,t,e,i,s,r,a=!0){this.matrix.multiply(n,t,e,i,s,r),a&&this.setTransformForCurrent()}transformFromMatrix(n,t){this.matrix.multiply(n.a,n.b,n.c,n.d,n.e,n.f),t&&this.setTransformForCurrent()}translate(n,t,e=!0){this.matrix.translate(n,t),e&&this.setTransformForCurrent()}rotateDegrees(n,t=!0){const e=n*Math.PI/180;this.rotate(e,t)}rotateAbout(n,t,e,i=!0){this.translate(t,e,!1),this.rotate(n,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}rotateDegreesAbout(n,t,e,i=!0){this.translate(t,e,!1),this.rotateDegrees(n,!1),this.translate(-t,-e,!1),i&&this.setTransformForCurrent()}beginPath(){this.disableBeginPath||this.nativeContext.beginPath()}clip(n,t){n?typeof n=="string"?this.nativeContext.clip(n):this.nativeContext.clip(n,t):this.nativeContext.clip()}arc(n,t,e,i,s,r,a){if(a=a||0,this.camera){const o=[];LG(o,i,s,n,t,e,e,r);for(let l=0;lthis.canvas.nativeCanvas));const s=(e=this.fontFamily)!==null&&e!==void 0?e:Ns.fontFamily,r=(i=this.fontSize)!==null&&i!==void 0?i:Ns.fontSize;return this.mathTextMeasure.textSpec.fontFamily===s&&this.mathTextMeasure.textSpec.fontSize===r||(this.mathTextMeasure.textSpec.fontFamily=s,this.mathTextMeasure.textSpec.fontSize=r,this.mathTextMeasure._numberCharSize=null,this.mathTextMeasure._fullCharSize=null,this.mathTextMeasure._letterCharSize=null,this.mathTextMeasure._specialCharSizeMap={}),this.mathTextMeasure.measure(n,t)}putImageData(n,t,e){this.nativeContext.putImageData(n,t,e)}setLineDash(n){const t=arguments,e=this.nativeContext;this.nativeContext.setLineDash?t[0]&&e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])}stroke(n){this.disableStroke||(n?this.nativeContext.stroke(n):this.nativeContext.stroke())}strokeRect(n,t,e,i){this.nativeContext.strokeRect(n,t,e,i)}strokeText(n,t,e,i){if(i=i||0,this.camera){this.modelMatrix&&(En(Ft,[t,e,i],this.modelMatrix),t=Ft[0],e=Ft[1],i=Ft[2]);const s=this.camera.vp(t,e,i);t=s.x,e=s.y}this.nativeContext.strokeText(n,t,e)}drawImage(){const n=this.nativeContext,t=arguments;t.length===3?n.drawImage(t[0],t[1],t[2]):t.length===5?n.drawImage(t[0],t[1],t[2],t[3],t[4]):t.length===9&&n.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}setCommonStyle(n,t,e,i,s){if(Array.isArray(s)){if(s.length<=1)return this._setCommonStyle(n,t,e,i,s[0]);const r=Object.create(s[0]);return s.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setCommonStyle(n,t,e,i,r)}return this._setCommonStyle(n,t,e,i,s)}_setCommonStyle(n,t,e,i,s){const r=this.nativeContext;s||(s=this.fillAttributes);const{fillOpacity:a=s.fillOpacity,opacity:o=s.opacity,fill:l=s.fill}=t;r.globalAlpha=a*o*this.baseGlobalAlpha,a>1e-12&&o>1e-12&&(r.fillStyle=_y(this,l,n,e,i))}setShadowBlendStyle(n,t,e){if(Array.isArray(e)){if(e.length<=1)return this._setShadowBlendStyle(n,e[0]);const i=Object.create(e[0]);return e.forEach((s,r)=>{r!==0&&Object.assign(i,s)}),this._setShadowBlendStyle(n,t,i)}return this._setShadowBlendStyle(n,t,e)}_setShadowBlendStyle(n,t,e){const i=this.nativeContext;e||(e=this.fillAttributes);const{opacity:s=e.opacity,shadowBlur:r=e.shadowBlur,shadowColor:a=e.shadowColor,shadowOffsetX:o=e.shadowOffsetX,shadowOffsetY:l=e.shadowOffsetY,blur:h=e.blur,globalCompositeOperation:d=e.globalCompositeOperation}=t;s<=1e-12||(r||o||l?(i.shadowBlur=r*this.dpr,i.shadowColor=a,i.shadowOffsetX=o*this.dpr,i.shadowOffsetY=l*this.dpr,this._clearShadowStyle=!0):this._clearShadowStyle&&(i.shadowBlur=0,i.shadowOffsetX=0,i.shadowOffsetY=0),h?(i.filter=`blur(${h}px)`,this._clearFilterStyle=!0):this._clearFilterStyle&&(i.filter="blur(0px)",this._clearFilterStyle=!1),d?(i.globalCompositeOperation=d,this._clearGlobalCompositeOperationStyle=!0):this._clearGlobalCompositeOperationStyle&&(i.globalCompositeOperation="source-over",this._clearGlobalCompositeOperationStyle=!1))}setStrokeStyle(n,t,e,i,s){if(Array.isArray(s)){if(s.length<=1)return this._setStrokeStyle(n,t,e,i,s[0]);const r=Object.create(s[0]);return s.forEach((a,o)=>{o!==0&&Object.assign(r,a)}),this._setStrokeStyle(n,t,e,i,r)}return this._setStrokeStyle(n,t,e,i,s)}_setStrokeStyle(n,t,e,i,s){const r=this.nativeContext;s||(s=this.strokeAttributes);const{strokeOpacity:a=s.strokeOpacity,opacity:o=s.opacity}=t;if(r.globalAlpha=a*o*this.baseGlobalAlpha,a>1e-12&&o>1e-12){const{lineWidth:l=s.lineWidth,stroke:h=s.stroke,lineJoin:d=s.lineJoin,lineDash:c=s.lineDash,lineCap:u=s.lineCap,miterLimit:p=s.miterLimit}=t;r.lineWidth=Ii(this,l,this.dpr),r.strokeStyle=_y(this,h,n,e,i),r.lineJoin=d,c&&r.setLineDash(c),r.lineCap=u,r.miterLimit=p}}setTextStyleWithoutAlignBaseline(n,t,e){const i=this.nativeContext;t||(t=this.textAttributes);const{scaleIn3d:s=t.scaleIn3d}=n;n.font?i.font=n.font:i.font=cy(n,t,s&&this.camera&&this.camera.getProjectionScale(e));const{fontFamily:r=t.fontFamily,fontSize:a=t.fontSize}=n;this.fontFamily=r,this.fontSize=a,i.textAlign="left",i.textBaseline="alphabetic"}setTextStyle(n,t,e){var i,s;const r=this.nativeContext;t||(t=this.textAttributes),n.font?r.font=n.font:r.font=cy(n,t,this.camera&&this.camera.getProjectionScale(e));const{fontFamily:a=t.fontFamily,fontSize:o=t.fontSize}=n;this.fontFamily=a,this.fontSize=o,r.textAlign=(i=n.textAlign)!==null&&i!==void 0?i:t.textAlign,r.textBaseline=(s=n.textBaseline)!==null&&s!==void 0?s:t.textBaseline}draw(){}clearMatrix(n=!0,t=this.dpr){this.setTransformFromMatrix(this._clearMatrix,n,t)}setClearMatrix(n,t,e,i,s,r){this._clearMatrix.setValue(n,t,e,i,s,r)}onlyTranslate(n=this.dpr){return this.matrix.a===n&&this.matrix.b===0&&this.matrix.c===0&&this.matrix.d===n}release(...n){this.stack.forEach(t=>Fn.free(t)),this.stack.length=0}};zl.env="browser",zl=IG([gt(),OG("design:paramtypes",[Object,Number])],zl);var DG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},FG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let jl=class extends Sd{constructor(n){super(n)}init(n){const{container:t}=n;if(typeof t=="string"){const e=Q.global.getElementById(t);e&&(this._container=e)}else this._container=t;this._context=new zl(this,this._dpr),this.initStyle()}initStyle(){if(!this.controled)return;const{nativeCanvas:n}=this;n.width=this._pixelWidth,n.height=this._pixelHeight,!n.style||this.setCanvasStyle(n,this._x,this._y,this._displayWidth,this._displayHeight),this._container&&this._container.appendChild(n),this.visiable||this.hide()}hide(){this._nativeCanvas&&(this._nativeCanvas.style.display="none")}show(){this._nativeCanvas&&(this._nativeCanvas.style.display="block")}applyPosition(){const n=this._nativeCanvas;n.style.position="absolute",n.style.top=`${this._y}px`,n.style.left=`${this._x}px`}resetStyle(n){if(!this.controled)return;const{width:t=this._displayWidth,height:e=this._displayHeight,dpr:i=this._dpr,x:s=this._x,y:r=this._y}=n,{nativeCanvas:a}=this;a.width=t*i,a.height=e*i,!a.style||this.setCanvasStyle(a,s,r,t,e),n.id&&(a.id=n.id),this.visiable||this.hide()}setCanvasStyle(n,t,e,i,s){this.controled&&(n.style.width=`${i}px`,n.style.height=`${s}px`)}toDataURL(n,t){return n==="image/jpeg"?this._nativeCanvas.toDataURL(n,t):n==="image/png"?this._nativeCanvas.toDataURL(n):this._nativeCanvas.toDataURL(n,t)}resize(n,t){this.controled&&(this._pixelWidth=n*this._dpr,this._pixelHeight=t*this._dpr,this._displayWidth=n,this._displayHeight=t,this._nativeCanvas.style&&(this._nativeCanvas.style.width=`${n}px`,this._nativeCanvas.style.height=`${t}px`),this._nativeCanvas.width=this._pixelWidth,this._nativeCanvas.height=this._pixelHeight,this._context.dpr=this._dpr)}};jl.env="browser",jl=DG([gt(),FG("design:paramtypes",[Object])],jl);function hB(n,t){return new wt(e=>{e(hR).toDynamicValue(()=>i=>new n(i)).whenTargetNamed(n.env),e(Cj).toDynamicValue(()=>(i,s)=>new t(i,s)).whenTargetNamed(t.env)})}const zG=hB(jl,zl);var jG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},HG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},Yh=function(n,t){return function(e,i){t(e,i,n)}};let wl=class extends Ey{constructor(n,t,e){super(e),this.contributions=n,this.drawContribution=t,this.pickItemInterceptorContributions=e,this.global.hooks.onSetEnv.tap("canvas-picker-service",(i,s,r)=>{this.configure(r,s)}),this.configure(this.global,this.global.env),this.pickerMap=new Map,this.init()}init(){this.contributions.getContributions().forEach(n=>{this.pickerMap.set(n.numberType,n)}),super._init()}configure(n,t){this.pickCanvas=eh.shareCanvas(),this.pickContext=this.pickCanvas.getContext("2d")}pickItem(n,t,e,i){if(n.attribute.pickable===!1)return null;if(this.InterceptorContributions.length)for(let l=0;l=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let zy=class{constructor(){this.type="group",this.numberType=mx}contains(n,t,e){return!1}};zy=VG([gt()],zy);const tf=new wt((n,t,e,i)=>{tf.__vloaded||(tf.__vloaded=!0,n(kT).to(zy).inSingletonScope(),n(Ti).toService(kT),Ri(n,Ti))});tf.__vloaded=!1;const WG=new wt((n,t,e,i)=>{e(wl)||n(wl).toSelf().inSingletonScope(),e(Fl)?i(Fl).toService(wl):n(Fl).toService(wl)});function NG(n){n.load(tf),n.load(WG)}var ud,GG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},UG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let qr=ud=class extends Zg{get container(){return this.canvas.nativeCanvas.parentElement}static GenerateCanvasId(){return`${ud.idprefix}_${ud.prefix_count++}`}constructor(){super(),this.type="browser",this._canvasIsIntersecting=!0,this.global=Q.global,this.viewBox=new _e,this.modelMatrix=new Re(1,0,0,1,0,0)}getTitle(){return this.canvas.id&&this.canvas.id.toString()}getWH(){return{width:this.canvas.width/(this.canvas.dpr||1),height:this.canvas.height/(this.canvas.dpr||1)}}getXY(){return this.canvas.nativeCanvas.getBoundingClientRect()}createWindow(n){n.canvas?this.createWindowByCanvas(n):this.createWindowByConfig(n),this.postInit()}postInit(){if(this.global.optimizeVisible)try{this.observerCanvas()}catch{console.error("发生错误,该环境不存在IntersectionObserver")}}isElementVisible(n){const t=n.getBoundingClientRect(),e=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return!(t.right<0||t.bottom<0||t.left>e||t.top>i)}observerCanvas(){this._canvasIsIntersecting=this.isElementVisible(this.canvas.nativeCanvas);const n=new IntersectionObserver((t,e)=>{t.forEach(i=>{this._canvasIsIntersecting!==i.isIntersecting?(this._canvasIsIntersecting=i.isIntersecting,this._onVisibleChangeCb&&this._onVisibleChangeCb(i.isIntersecting)):this._canvasIsIntersecting=i.isIntersecting})});n&&n.observe(this.canvas.nativeCanvas)}createWindowByConfig(n){const t=this.global.createCanvas({width:n.width,height:n.height});let e;if(e=typeof n.container=="string"?this.global.getElementById(n.container):n.container?n.container:this.global.getRootElement(),!e)throw new Error("发生错误,containerId可能传入有误");n.offscreen?e=null:e.appendChild(t);const i={width:n.width,height:n.height,dpr:n.dpr,nativeCanvas:t,container:e,id:ud.GenerateCanvasId(),canvasControled:!0};this.canvas=new jl(i)}createWindowByCanvas(n){var t;let e;if(typeof n.canvas=="string"){if(e=this.global.getElementById(n.canvas),!e)throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom")}else e=n.canvas;if(!e)throw new Error("发生错误,传入的canvas不正确");let i=n.width,s=n.height;if(i==null||s==null||!n.canvasControled){const a=e.getBoundingClientRect();i=a.width,s=a.height}let r=n.dpr;r==null&&(r=(t=e.getContext("2d").pixelRatio)!==null&&t!==void 0?t:e.width/i),this.canvas=new jl({width:i,height:s,dpr:r,nativeCanvas:e,canvasControled:n.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(n,t){this.canvas.resize(n,t)}setDpr(n){this.canvas.dpr=n}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}addEventListener(n,t,e){return this.canvas.nativeCanvas.addEventListener(n,t,e)}removeEventListener(n,t,e){return this.canvas.nativeCanvas.removeEventListener(n,t,e)}dispatchEvent(n){return this.canvas.nativeCanvas.dispatchEvent(n)}getStyle(){var n;return(n=this.canvas.nativeCanvas.style)!==null&&n!==void 0?n:{}}setStyle(n){this.canvas.nativeCanvas.style=n}getBoundingClientRect(){const n=this.canvas.nativeCanvas,t=this.getWH();return n.parentElement?this.canvas.nativeCanvas.getBoundingClientRect():{x:0,y:0,width:t.width,height:t.height,left:0,top:0,right:0,bottom:0}}clearViewBox(n){const t=this.viewBox,e=this.getContext(),i=this.getDpr();e.nativeContext.save(),e.nativeContext.setTransform(i,0,0,i,0,0),e.clearRect(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1),n&&(e.fillStyle=n,e.fillRect(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1)),e.nativeContext.restore()}isVisible(n){return this._canvasIsIntersecting}onVisibleChange(n){this._onVisibleChangeCb=n}getTopLeft(n){return this.global.getElementTopLeft(this.canvas.nativeCanvas,n)}};qr.env="browser",qr.idprefix="visactor_window",qr.prefix_count=0,qr=ud=GG([gt(),UG("design:paramtypes",[])],qr);const $G=new wt(n=>{n(qr).toSelf(),n(ux).toDynamicValue(t=>t.container.get(qr)).whenTargetNamed(qr.env)});var YG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},XG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};class KG{get x1(){return this.dom.getBoundingClientRect().left}get x2(){return this.dom.getBoundingClientRect().right}get y1(){return this.dom.getBoundingClientRect().top}get y2(){return this.dom.getBoundingClientRect().bottom}get width(){return this.dom.getBoundingClientRect().width}get height(){return this.dom.getBoundingClientRect().height}constructor(t){this.dom=t}}function MT(n,t=!1){const e=document.createElement("img");if(e.crossOrigin="anonymous",t){const i=new Blob([n],{type:"image/svg+xml"});n=window.URL.createObjectURL(i)}return e.src=n,e.complete?Promise.resolve(e):new Promise((i,s)=>{e.onload=()=>{i(e)},e.onerror=()=>{s(new Error("加载失败"))}})}let ef=class extends qg{constructor(){super(),this.type="browser",this.supportEvent=!0;try{this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.supportsMouseEvents=!!globalThis.MouseEvent}catch{this.supportsTouchEvents=!1,this.supportsPointerEvents=!1,this.supportsPointerEvents=!1}this.applyStyles=!0}mapToCanvasPoint(n,t){var e,i;let s=0,r=0,a=0,o=0;if(n.changedTouches){const l=(e=n.changedTouches[0])!==null&&e!==void 0?e:{};s=l.clientX||0,r=l.clientY||0,a=s,o=r}else s=n.clientX||0,r=n.clientY||0,a=n.offsetX||0,o=n.offsetY||0;if(t){const l=s,h=r,d=t.getBoundingClientRect(),c=(i=t.getNativeHandler)===null||i===void 0?void 0:i.call(t).nativeCanvas;let u,p;return c&&(u=d.width/c.offsetWidth,p=d.height/c.offsetHeight),{x:(l-d.left)/(z(u)?u:1),y:(h-d.top)/(z(p)?p:1)}}return{x:a,y:o}}getNativeAABBBounds(n){let t=n;if(typeof n=="string"&&(t=new DOMParser().parseFromString(n,"text/html").firstChild,t.lastChild&&(t=t.lastChild.firstChild)),t.getBoundingClientRect){const e=t.getBoundingClientRect();return new KG(e)}return new _e}removeDom(n){return n.parentElement.removeChild(n),!0}updateDom(n,t){const{width:e,height:i,style:s}=t;return s&&(at(s)?n.setAttribute("style",s):Object.keys(s).forEach(r=>{n.style[r]=s[r]})),e!=null&&(n.style.width=`${e}px`),i!=null&&(n.style.height=`${i}px`),!0}createDom(n){const{tagName:t="div",parent:e}=n,i=document.createElement(t);if(this.updateDom(i,n),e){const s=at(e)?this.getElementById(e):e;s&&s.appendChild&&s.appendChild(i)}return i}loadImage(n){return MT(n,!1).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadSvg(n){return MT(n,!0).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}createCanvas(n){var t,e;const i=document.createElement("canvas");n.id&&(i.id=(t=n.id)!==null&&t!==void 0?t:Ye.GenAutoIncrementId().toString());const s=(e=n.dpr)!==null&&e!==void 0?e:window.devicePixelRatio;return n.width&&n.height&&(i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.width=n.width*s,i.height=n.height*s),i}createOffscreenCanvas(n){var t;const e=(t=n.dpr)!==null&&t!==void 0?t:window.devicePixelRatio;return new OffscreenCanvas(n.width*e,n.height*e)}releaseCanvas(n){let t;t=typeof n=="string"?document.getElementById(n):n,t&&t.parentElement&&t.parentElement.removeChild(t)}getDevicePixelRatio(){return window.devicePixelRatio}getRequestAnimationFrame(){return window.requestAnimationFrame}getCancelAnimationFrame(){return window.cancelAnimationFrame}addEventListener(n,t,e){return document.addEventListener(n,t,e)}removeEventListener(n,t,e){return document.removeEventListener(n,t,e)}dispatchEvent(n){return document.dispatchEvent(n)}getElementById(n){return document.getElementById(n)}getRootElement(){return document.body}getDocument(){return document}release(...n){}getElementTop(n,t){let e=n.offsetTop,i=n.offsetParent;for(;i!==null;)e+=i.offsetTop,i=i.offsetParent;return e}getElementLeft(n,t){let e=n.offsetLeft,i=n.offsetParent;for(;i!==null;)e+=i.offsetLeft,i=i.offsetParent;return e}getElementTopLeft(n,t){let e=n.offsetTop,i=n.offsetLeft,s=n.offsetParent;for(;s!==null;)e+=s.offsetTop,i+=s.offsetLeft,s=s.offsetParent;return{top:e,left:i}}};ef=YG([gt(),XG("design:paramtypes",[])],ef);const nf=new wt(n=>{nf.isBrowserBound||(nf.isBrowserBound=!0,n(ef).toSelf().inSingletonScope(),n(V_).toService(ef))});nf.isBrowserBound=!1;function sf(n,t=!0){sf.__loaded||(sf.__loaded=!0,n.load(nf),n.load(zG),n.load($G),t&&NG(n))}sf.__loaded=!1;var qG=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},ZG=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},JG=function(n,t){return function(e,i){t(e,i,n)}};let jy=class{constructor(n){this.canvasRenderer=n,this.type="arc",this.numberType=U_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).arc;i.highPerformanceSave();let{x:r=s.x,y:a=s.y}=n.attribute;if(n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};jy=qG([gt(),JG(0,It(Pg)),ZG("design:paramtypes",[Object])],jy);let wT=!1;const QG=new wt((n,t,e,i)=>{wT||(wT=!0,n(Qk).to(jy).inSingletonScope(),n(Ir).toService(Qk))});var tU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},eU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},iU=function(n,t){return function(e,i){t(e,i,n)}};let Hy=class{constructor(n){this.canvasRenderer=n,this.type="area",this.numberType=vu}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).area;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,l=>!!o||(o=l.isPointInPath(t.x,t.y),o)),i.highPerformanceRestore(),o}};Hy=tU([gt(),iU(0,It(Eg)),eU("design:paramtypes",[Object])],Hy);let CT=!1;const nU=new wt((n,t,e,i)=>{CT||(CT=!0,n(tT).to(Hy).inSingletonScope(),n(Ir).toService(tT))});var sU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},rU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},aU=function(n,t){return function(e,i){t(e,i,n)}};let Vy=class{constructor(n){this.canvasRenderer=n,this.type="circle",this.numberType=$_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).circle;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Vy=sU([gt(),aU(0,It(Rg)),rU("design:paramtypes",[Object])],Vy);let PT=!1;const oU=new wt((n,t,e,i)=>{PT||(PT=!0,n(eT).to(Vy).inSingletonScope(),n(Ir).toService(eT))});var lU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},hU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},dU=function(n,t){return function(e,i){t(e,i,n)}};let rf=class{constructor(n){this.canvasRenderer=n,this.type="glyph",this.numberType=Y_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=e==null?void 0:e.pickerService;if(s){let r=!1;return n.getSubGraphic().forEach(a=>{r||(r=!!s.pickItem(a,t,null,e))}),r}return!1}};rf=lU([gt(),dU(0,It(Fg)),hU("design:paramtypes",[Object])],rf);let ET=!1;const cU=new wt((n,t,e,i)=>{ET||(ET=!0,n(lT).to(rf).inSingletonScope(),n(rf).toService(lT))});var uU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let lh=class{constructor(){this.type="image",this.numberType=X_}contains(n,t,e){const{pickContext:i}=e??{};return!!i&&!!n.AABBBounds.containsPoint(t)}};lh=uU([gt()],lh);let RT=!1;const pU=new wt((n,t,e,i)=>{RT||(RT=!0,n(Qg).to(lh).inSingletonScope(),n(lh).toService(Qg))});var gU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},fU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},_U=function(n,t){return function(e,i){t(e,i,n)}};let Wy=class{constructor(n){this.canvasRenderer=n,this.type="line",this.numberType=yu}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).line;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,l=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Wy=gU([gt(),_U(0,It(Bg)),fU("design:paramtypes",[Object])],Wy);let BT=!1;const mU=new wt((n,t,e,i)=>{BT||(BT=!0,n(iT).to(Wy).inSingletonScope(),n(Ir).toService(iT))});var vU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},yU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},bU=function(n,t){return function(e,i){t(e,i,n)}};let Ny=class{constructor(n){this.canvasRenderer=n,this.type="polygon",this.numberType=q_}contains(n,t,e){if(!n.AABBBounds.contains(t.x,t.y))return!1;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).polygon;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Ny=vU([gt(),bU(0,It(Og)),yU("design:paramtypes",[Object])],Ny);let IT=!1;const xU=new wt((n,t,e,i)=>{IT||(IT=!0,n(oT).to(Ny).inSingletonScope(),n(Ir).toService(oT))});var SU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},AU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},kU=function(n,t){return function(e,i){t(e,i,n)}};let Gy=class{constructor(n){this.canvasRenderer=n,this.type="path",this.numberType=K_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).path;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Gy=SU([gt(),kU(0,It(Ig)),AU("design:paramtypes",[Object])],Gy);let OT=!1;const TU=new wt((n,t,e,i)=>{OT||(OT=!0,n(nT).to(Gy).inSingletonScope(),n(Ir).toService(nT))});var MU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},wU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},CU=function(n,t){return function(e,i){t(e,i,n)}};const F0=new _e;let Uy=class{constructor(n){this.canvasRenderer=n,this.type="rect",this.numberType=Z_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).rect,{cornerRadius:r=s.cornerRadius}=n.attribute;let{x:a=s.x,y:o=s.y}=n.attribute;i.highPerformanceSave();let l=!0;if(n.transMatrix.onlyTranslate()){const d=n.getOffsetXY(s);a+=d.x,o+=d.y,i.setTransformForCurrent()}else a=0,o=0,l=!1,i.transformFromMatrix(n.transMatrix,!0);let h=!0;if(!l||nt(r,!0)&&r!==0||V(r)&&r.some(d=>d!==0))h=!1,this.canvasRenderer.drawShape(n,i,a,o,{},null,(d,c,u)=>!!h||(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=p+g,h=d.isPointInStroke(t.x,t.y),h});else if(h){const{fill:d=s.fill,stroke:c=s.stroke,lineWidth:u=s.lineWidth}=n.attribute;if(d)h=!0;else if(c){const p=n.AABBBounds;F0.setValue(p.x1,p.y1,p.x2,p.y2),F0.expand(-u/2),h=!F0.containsPoint(t)}}return i.highPerformanceRestore(),h}};Uy=MU([gt(),CU(0,It(Lg)),wU("design:paramtypes",[Object])],Uy);let LT=!1;const PU=new wt((n,t,e,i)=>{LT||(LT=!0,n(sT).to(Uy).inSingletonScope(),n(Ir).toService(sT))});let DT=!1;const EU=new wt((n,t,e,i)=>{DT||(DT=!0,n(Qg).to(lh).inSingletonScope(),n(lh).toService(Qg))});var RU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},BU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},IU=function(n,t){return function(e,i){t(e,i,n)}};let $y=class{constructor(n){this.canvasRenderer=n,this.type="symbol",this.numberType=J_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).symbol;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=c+u,o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};$y=RU([gt(),IU(0,It(Dg)),BU("design:paramtypes",[Object])],$y);let FT=!1;const OU=new wt((n,t,e,i)=>{FT||(FT=!0,n(rT).to($y).inSingletonScope(),n(Ir).toService(rT))});var LU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Yy=class{constructor(){this.type="text",this.numberType=Q_}contains(n,t,e){return!!n.AABBBounds.containsPoint(t)}};Yy=LU([gt()],Yy);let zT=!1;const DU=new wt((n,t,e,i)=>{zT||(zT=!0,n(aT).to(Yy).inSingletonScope(),n(Ir).toService(aT))});var FU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},zU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Ad=class extends zl{constructor(n,t){super(n,t);const e=n.nativeCanvas.getContext("2d");if(!e)throw new Error("发生错误,获取2d上下文失败");this.nativeContext=e,this.canvas=n,this.matrix=new Re(1,0,0,1,0,0),this.stack=[],this.dpr=t??1}release(...n){}};Ad.env="node",Ad=FU([gt(),zU("design:paramtypes",[Object,Number])],Ad);var jU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},HU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)};let Hl=class extends Sd{constructor(n){super(n)}init(){this._context=new Ad(this,this._dpr),this.nativeCanvas.width=this._pixelWidth,this.nativeCanvas.height=this._pixelHeight}release(...n){this._nativeCanvas.release&&G(this._nativeCanvas.release)&&this._nativeCanvas.release()}};Hl.env="node",Hl=jU([gt(),HU("design:paramtypes",[Object])],Hl);const VU=hB(Hl,Ad);var WU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},NU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},GU=function(n,t){return function(e,i){t(e,i,n)}};let Vl=class extends Zg{get container(){return null}constructor(n){super(),this.global=n,this.type="node"}getTitle(){return""}getWH(){return{width:this.canvas.displayWidth,height:this.canvas.displayHeight}}getXY(){return{x:0,y:0}}createWindow(n){n.canvas?this.createWindowByCanvas(n):this.createWindowByConfig(n)}createWindowByConfig(n){const t=this.global.createCanvas({width:n.width,height:n.height}),e={width:n.width,height:n.height,dpr:n.dpr,nativeCanvas:t,id:Ye.GenAutoIncrementId().toString(),canvasControled:!0};this.canvas=new Hl(e)}createWindowByCanvas(n){const t=n.canvas;let e=n.width,i=n.height;e!=null&&i!=null&&n.canvasControled||(e=t.width,i=t.height),this.canvas=new Hl({width:e,height:i,dpr:1,nativeCanvas:t,canvasControled:n.canvasControled})}releaseWindow(){this.canvas.release()}resizeWindow(n,t){this.canvas.resize(n,t)}setDpr(n){this.canvas.dpr=n}getContext(){return this.canvas.getContext()}getNativeHandler(){return this.canvas}getDpr(){return this.canvas.dpr}getImageBuffer(n="image/png"){return this.canvas.nativeCanvas.toBuffer(n)}addEventListener(n,t,e){}dispatchEvent(n){return!0}removeEventListener(n,t,e){}getStyle(){}setStyle(n){}getBoundingClientRect(){return null}clearViewBox(n){}};Vl.env="node",Vl=WU([gt(),GU(0,It(hx)),NU("design:paramtypes",[Object])],Vl);const UU=new wt(n=>{n(Vl).toSelf(),n(ux).toDynamicValue(t=>t.container.get(Vl)).whenTargetNamed(Vl.env)});var $U=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let af=class extends qg{constructor(){super(...arguments),this.type="node",this._lastTime=0,this.supportEvent=!1}configure(n,t){n.env===this.type&&(n.setActiveEnvContribution(this),this.pkg=t)}getDynamicCanvasCount(){return 0}getStaticCanvasCount(){return 999}loadJson(n){const t=fetch(n).then(e=>e.json());return t.then(e=>({data:e,state:"success"})).catch(()=>({data:null,state:"fail"})),t}loadArrayBuffer(n){return fetch(n).then(t=>t.arrayBuffer()).then(t=>({data:t,loadState:"success"})).catch(()=>({data:null,loadState:"fail"}))}loadImage(n){const{loadImage:t}=this.pkg;return t?t(n).then(e=>({loadState:e?"success":"fail",data:e})).catch(()=>({loadState:"fail",data:null})):Promise.reject(new Error("node-canvas loadImage could not be found!"))}loadSvg(n){const t=this.pkg.Resvg;if(!t)return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));const e=new t(n).render().asPng();return this.loadImage(e)}createCanvas(n){return this.pkg.createCanvas(n.width,n.height)}releaseCanvas(n){}getDevicePixelRatio(){return 1}getRequestAnimationFrame(){return function(n){return gA.call(n)}}getCancelAnimationFrame(){return n=>{gA.clear(n)}}addEventListener(n,t,e){}removeEventListener(n,t,e){}getElementById(n){return null}getRootElement(){return null}dispatchEvent(n){}release(...n){}createOffscreenCanvas(n){}};af=$U([gt()],af);const of=new wt(n=>{of.isNodeBound||(of.isNodeBound=!0,n(af).toSelf().inSingletonScope(),n(V_).toService(af))});of.isNodeBound=!1;function lf(n,t=!0){lf.__loaded||(lf.__loaded=!0,n.load(of),n.load(VU),n.load(UU))}lf.__loaded=!1;var YU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},XU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},KU=function(n,t){return function(e,i){t(e,i,n)}};let Xy=class{constructor(n){this.canvasRenderer=n,this.type="arc",this.numberType=U_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).arc;i.highPerformanceSave();let{x:r=s.x,y:a=s.y}=n.attribute;if(n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Ii(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Xy=YU([gt(),KU(0,It(Pg)),XU("design:paramtypes",[Object])],Xy);let jT=!1;const qU=new wt((n,t,e,i)=>{jT||(jT=!0,n(hT).to(Xy).inSingletonScope(),n(Ti).toService(hT))});var ZU=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},JU=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},QU=function(n,t){return function(e,i){t(e,i,n)}};const z0=new _e;let Ky=class{constructor(n){this.canvasRenderer=n,this.type="rect",this.numberType=Z_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).rect,{cornerRadius:r=s.cornerRadius}=n.attribute;let{x:a=s.x,y:o=s.y}=n.attribute;i.highPerformanceSave();let l=!0;if(n.transMatrix.onlyTranslate()){const d=n.getOffsetXY(s);a+=d.x,o+=d.y,i.setTransformForCurrent()}else a=0,o=0,l=!1,i.transformFromMatrix(n.transMatrix,!0);let h=!0;if(!l||n.shadowRoot||nt(r,!0)&&r!==0||V(r)&&r.some(d=>d!==0))h=!1,this.canvasRenderer.drawShape(n,i,a,o,{},null,(d,c,u)=>!!h||(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=Ii(i,p+g,i.dpr),h=d.isPointInStroke(t.x,t.y),h});else{const{fill:d=s.fill,stroke:c=s.stroke,lineWidth:u=s.lineWidth}=n.attribute;if(d)h=!0;else if(c){const p=n.AABBBounds;z0.setValue(p.x1,p.y1,p.x2,p.y2),z0.expand(-u/2),h=!z0.containsPoint(t)}}return i.highPerformanceRestore(),h}};Ky=ZU([gt(),QU(0,It(Lg)),JU("design:paramtypes",[Object])],Ky);let HT=!1;const t4=new wt((n,t,e,i)=>{HT||(HT=!0,n(_T).to(Ky).inSingletonScope(),n(Ti).toService(_T))});var e4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let wr=class extends cn{};wr=e4([gt()],wr);var i4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},n4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},s4=function(n,t){return function(e,i){t(e,i,n)}};let qy=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="line",this.numberType=yu}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;i.highPerformanceSave();const s=st(n).line,r=this.transform(n,s,i),{x:a,y:o,z:l,lastModelMatrix:h}=r;let d=t;if(i.camera){d=t.clone();const u=n.parent.globalTransMatrix;d.x=u.a*t.x+u.c*t.y+u.e,d.y=u.b*t.x+u.d*t.y+u.f}this.canvasRenderer.z=l;let c=!1;return this.canvasRenderer.drawShape(n,i,a,o,{},null,u=>!!c||(c=u.isPointInPath(d.x,d.y),c),(u,p,g)=>{if(c)return!0;const f=p.lineWidth||g.lineWidth,_=p.pickStrokeBuffer||g.pickStrokeBuffer;return i.lineWidth=Ii(i,f+_,i.dpr),c=u.isPointInStroke(d.x,d.y),c}),this.canvasRenderer.z=0,i.modelMatrix!==h&&ce.free(i.modelMatrix),i.modelMatrix=h,i.highPerformanceRestore(),c}};qy=i4([gt(),s4(0,It(Bg)),n4("design:paramtypes",[Object])],qy);let VT=!1;const r4=new wt((n,t,e,i)=>{VT||(VT=!0,n(gT).to(qy).inSingletonScope(),n(Ti).toService(gT))});var a4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},o4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},l4=function(n,t){return function(e,i){t(e,i,n)}};let Zy=class{constructor(n){this.canvasRenderer=n,this.type="area",this.numberType=vu}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).area;let{x:r=s.x,y:a=s.y}=n.attribute;const{fillPickable:o=s.fillPickable,strokePickable:l=s.strokePickable}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const d=n.getOffsetXY(s);r+=d.x,a+=d.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let h=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,d=>!!h||!!o&&(h=d.isPointInPath(t.x,t.y),h),(d,c,u)=>{if(h)return!0;if(!l)return!1;const p=c.lineWidth||u.lineWidth,g=c.pickStrokeBuffer||u.pickStrokeBuffer;return i.lineWidth=Ii(i,p+g,i.dpr),h=d.isPointInStroke(t.x,t.y),h}),i.highPerformanceRestore(),h}};Zy=a4([gt(),l4(0,It(Eg)),o4("design:paramtypes",[Object])],Zy);let WT=!1;const h4=new wt((n,t,e,i)=>{WT||(WT=!0,n(cT).to(Zy).inSingletonScope(),n(Ti).toService(cT))});var d4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},c4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},u4=function(n,t){return function(e,i){t(e,i,n)}};let Jy=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="symbol",this.numberType=J_}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=n.getParsedPath();if(!i.camera){if(!n.AABBBounds.containsPoint(t))return!1;if(s.isSvg||n.attribute.pickMode==="imprecise")return!0}i.highPerformanceSave();const r=st(n).symbol,a=this.transform(n,r,i),{x:o,y:l,z:h,lastModelMatrix:d}=a;let c=t;if(i.camera){c=t.clone();const p=n.parent.globalTransMatrix;c.x=p.a*t.x+p.c*t.y+p.e,c.y=p.b*t.x+p.d*t.y+p.f}this.canvasRenderer.z=h;let u=!1;return this.canvasRenderer.drawShape(n,i,o,l,{},null,(p,g,f)=>!!u||(u=p.isPointInPath(c.x,c.y),u),(p,g,f)=>{if(u)return!0;const _=g.lineWidth||f.lineWidth,m=g.pickStrokeBuffer||f.pickStrokeBuffer;return i.lineWidth=Ii(i,_+m,i.dpr),u=p.isPointInStroke(c.x,c.y),u}),this.canvasRenderer.z=0,i.modelMatrix!==d&&ce.free(i.modelMatrix),i.modelMatrix=d,i.highPerformanceRestore(),u}};Jy=d4([gt(),u4(0,It(Dg)),c4("design:paramtypes",[Object])],Jy);let NT=!1;const p4=new wt((n,t,e,i)=>{NT||(NT=!0,n(vT).to(Jy).inSingletonScope(),n(Ti).toService(vT))});var g4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},f4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},_4=function(n,t){return function(e,i){t(e,i,n)}};let Qy=class{constructor(n){this.canvasRenderer=n,this.type="circle",this.numberType=$_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).circle;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Ii(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};Qy=g4([gt(),_4(0,It(Rg)),f4("design:paramtypes",[Object])],Qy);let GT=!1;const m4=new wt((n,t,e,i)=>{GT||(GT=!0,n(uT).to(Qy).inSingletonScope(),n(Ti).toService(uT))});var v4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},y4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},b4=function(n,t){return function(e,i){t(e,i,n)}};let tb=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="text",this.numberType=Q_}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=n.AABBBounds;if(!i.camera)return!!s.containsPoint(t);i.highPerformanceSave();const r=st(n).text,{keepDirIn3d:a=r.keepDirIn3d}=n.attribute,o=!a,l=this.transform(n,r,i,o),{x:h,y:d,z:c,lastModelMatrix:u}=l;this.canvasRenderer.z=c;let p=t;if(i.camera){p=t.clone();const f=n.parent.globalTransMatrix;p.x=f.a*t.x+f.c*t.y+f.e,p.y=f.b*t.x+f.d*t.y+f.f}let g=!1;return this.canvasRenderer.drawShape(n,i,h,d,{},null,(f,_,m)=>{if(g)return!0;const{fontSize:y=r.fontSize,textBaseline:b=r.textBaseline,textAlign:v=r.textAlign}=n.attribute,x=n.AABBBounds,S=x.height(),k=x.width(),A=Bs(b,S,y),T=hr(v,k);return f.rect(T+h,A+d,k,S,c),g=f.isPointInPath(p.x,p.y),g},(f,_,m)=>g),this.canvasRenderer.z=0,i.modelMatrix!==u&&ce.free(i.modelMatrix),i.modelMatrix=u,i.highPerformanceRestore(),g}};tb=v4([gt(),b4(0,It(ky)),y4("design:paramtypes",[Object])],tb);let UT=!1;const x4=new wt((n,t,e,i)=>{UT||(UT=!0,n(yT).to(tb).inSingletonScope(),n(Ti).toService(yT))});var S4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},A4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},k4=function(n,t){return function(e,i){t(e,i,n)}};let eb=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="path",this.numberType=K_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).path;i.highPerformanceSave();const r=this.transform(n,s,i),{x:a,y:o,z:l,lastModelMatrix:h}=r;let d=t;if(i.camera){d=t.clone();const u=n.parent.globalTransMatrix;d.x=u.a*t.x+u.c*t.y+u.e,d.y=u.b*t.x+u.d*t.y+u.f}this.canvasRenderer.z=l;let c=!1;return this.canvasRenderer.drawShape(n,i,a,o,{},null,(u,p,g)=>!!c||(c=u.isPointInPath(d.x,d.y),c),(u,p,g)=>{if(c)return!0;const f=p.lineWidth||g.lineWidth,_=p.pickStrokeBuffer||g.pickStrokeBuffer;return i.lineWidth=Ii(i,f+_,i.dpr),c=u.isPointInStroke(d.x,d.y),c}),this.canvasRenderer.z=0,i.modelMatrix!==h&&ce.free(i.modelMatrix),i.modelMatrix=h,i.highPerformanceRestore(),c}};eb=S4([gt(),k4(0,It(Ig)),A4("design:paramtypes",[Object])],eb);let $T=!1;const T4=new wt((n,t,e,i)=>{$T||($T=!0,n(fT).to(eb).inSingletonScope(),n(Ti).toService(fT))});var M4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},w4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},C4=function(n,t){return function(e,i){t(e,i,n)}};let ib=class{constructor(n){this.canvasRenderer=n,this.type="polygon",this.numberType=q_}contains(n,t,e){if(!n.AABBBounds.contains(t.x,t.y))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).polygon;let{x:r=s.x,y:a=s.y}=n.attribute;if(i.highPerformanceSave(),n.transMatrix.onlyTranslate()){const l=n.getOffsetXY(s);r+=l.x,a+=l.y,i.setTransformForCurrent()}else r=0,a=0,i.transformFromMatrix(n.transMatrix,!0);let o=!1;return this.canvasRenderer.drawShape(n,i,r,a,{},null,(l,h,d)=>!!o||(o=l.isPointInPath(t.x,t.y),o),(l,h,d)=>{if(o)return!0;const c=h.lineWidth||d.lineWidth,u=h.pickStrokeBuffer||d.pickStrokeBuffer;return i.lineWidth=Ii(i,c+u,i.dpr),o=l.isPointInStroke(t.x,t.y),o}),i.highPerformanceRestore(),o}};ib=M4([gt(),C4(0,It(Og)),w4("design:paramtypes",[Object])],ib);let YT=!1;const P4=new wt((n,t,e,i)=>{YT||(YT=!0,n(bT).to(ib).inSingletonScope(),n(Ti).toService(bT))});var E4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},R4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},B4=function(n,t){return function(e,i){t(e,i,n)}};let nb=class{constructor(n){this.canvasRenderer=n,this.type="glyph",this.numberType=Y_}contains(n,t,e){if(!n.AABBBounds.containsPoint(t))return!1;if(n.attribute.pickMode==="imprecise")return!0;const{pickContext:i}=e??{};if(!i)return!1;const s=e==null?void 0:e.pickerService;if(s){let r=!1;return n.getSubGraphic().forEach(a=>{if(r)return;const o=s.pickItem(a,t,null,e);r=!(!o||!o.graphic)}),r}return!1}};nb=E4([gt(),B4(0,It(Fg)),R4("design:paramtypes",[Object])],nb);let XT=!1;const I4=new wt((n,t,e,i)=>{XT||(XT=!0,n(AT).to(nb).inSingletonScope(),n(Ti).toService(AT))});var O4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},L4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},D4=function(n,t){return function(e,i){t(e,i,n)}};let sb=class{constructor(n){this.canvasRenderer=n,this.type="richtext",this.numberType=bx}contains(n,t,e){return!!n.AABBBounds.containsPoint(t)}};sb=O4([gt(),D4(0,It(Ty)),L4("design:paramtypes",[Object])],sb);let KT=!1;const F4=new wt((n,t,e,i)=>{KT||(KT=!0,n(ST).to(sb).inSingletonScope(),n(Ti).toService(ST))});var z4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let rb=class{constructor(){this.type="image",this.numberType=X_}contains(n,t,e){const{pickContext:i}=e??{};return!!i&&!!n.AABBBounds.containsPoint(t)}};rb=z4([gt()],rb);let qT=!1;const j4=new wt((n,t,e,i)=>{qT||(qT=!0,n(pT).to(rb).inSingletonScope(),n(Ti).toService(pT))});var H4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},V4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},W4=function(n,t){return function(e,i){t(e,i,n)}};new _e;let ab=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="rect3d",this.numberType=yx}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).rect;i.highPerformanceSave();const r=this.transform(n,s,i),{x:a,y:o,z:l,lastModelMatrix:h}=r;let d=t;if(i.camera){d=t.clone();const u=n.parent.globalTransMatrix;d.x=u.a*t.x+u.c*t.y+u.e,d.y=u.b*t.x+u.d*t.y+u.f}this.canvasRenderer.z=l;let c=!1;return this.canvasRenderer.drawShape(n,i,a,o,e,null,(u,p,g)=>!!c||(c=u.isPointInPath(d.x,d.y),c)),this.canvasRenderer.z=0,i.modelMatrix!==h&&ce.free(i.modelMatrix),i.modelMatrix=h,i.highPerformanceRestore(),c}};ab=H4([gt(),W4(0,It(Ay)),V4("design:paramtypes",[Object])],ab);let ZT=!1;const N4=new wt((n,t,e,i)=>{ZT||(ZT=!0,n(mT).to(ab).inSingletonScope(),n(Ti).toService(mT))});var G4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},U4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},$4=function(n,t){return function(e,i){t(e,i,n)}};let ob=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="arc3d",this.numberType=mu}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).arc;i.highPerformanceSave();const r=this.transform(n,s,i),{x:a,y:o,z:l,lastModelMatrix:h}=r;let d=t;if(i.camera){d=t.clone();const u=n.parent.globalTransMatrix;d.x=u.a*t.x+u.c*t.y+u.e,d.y=u.b*t.x+u.d*t.y+u.f}this.canvasRenderer.z=l;let c=!1;return this.canvasRenderer.drawShape(n,i,a,o,e,null,(u,p,g)=>!!c||(c=u.isPointInPath(d.x,d.y),c)),this.canvasRenderer.z=0,i.modelMatrix!==h&&ce.free(i.modelMatrix),i.modelMatrix=h,i.highPerformanceRestore(),c}};ob=G4([gt(),$4(0,It(Sy)),U4("design:paramtypes",[Object])],ob);let JT=!1;const Y4=new wt((n,t,e,i)=>{JT||(JT=!0,n(dT).to(ob).inSingletonScope(),n(Ti).toService(dT))});var X4=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},K4=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},q4=function(n,t){return function(e,i){t(e,i,n)}};let lb=class extends wr{constructor(n){super(),this.canvasRenderer=n,this.type="pyramid3d",this.numberType=vx}contains(n,t,e){const{pickContext:i}=e??{};if(!i)return!1;const s=st(n).polygon;i.highPerformanceSave();const r=this.transform(n,s,i),{x:a,y:o,z:l,lastModelMatrix:h}=r;let d=t;if(i.camera){d=t.clone();const u=n.parent.globalTransMatrix;d.x=u.a*t.x+u.c*t.y+u.e,d.y=u.b*t.x+u.d*t.y+u.f}this.canvasRenderer.z=l;let c=!1;return this.canvasRenderer.drawShape(n,i,a,o,{},null,(u,p,g)=>!!c||(c=u.isPointInPath(d.x,d.y),c),(u,p,g)=>!1),this.canvasRenderer.z=0,i.modelMatrix!==h&&ce.free(i.modelMatrix),i.modelMatrix=h,i.highPerformanceRestore(),c}};lb=X4([gt(),q4(0,It(My)),K4("design:paramtypes",[Object])],lb);let QT=!1;const Z4=new wt((n,t,e,i)=>{QT||(QT=!0,n(xT).to(lb).inSingletonScope(),n(Ti).toService(xT))}),ns=Lx();function hf(){hf.__loaded||(hf.__loaded=!0,rG(),Mt.load(DN),Mt.load(ns?qU:QG))}hf.__loaded=!1;const Rh=hf;function df(){df.__loaded||(df.__loaded=!0,aG(),Mt.load(iG),Mt.load(Y4))}df.__loaded=!1;const J4=df;function cf(){cf.__loaded||(cf.__loaded=!0,oG(),Mt.load(jN),Mt.load(ns?h4:nU))}cf.__loaded=!1;const dB=cf;function uf(){uf.__loaded||(uf.__loaded=!0,lG(),Mt.load(VN),Mt.load(ns?m4:oU))}uf.__loaded=!1;const Q4=uf;function pf(){pf.__loaded||(pf.__loaded=!0,hG(),Mt.load($N),Mt.load(ns?I4:cU))}pf.__loaded=!1;const t$=pf;function gf(){gf.__loaded||(gf.__loaded=!0,dG())}gf.__loaded=!1;const We=gf;function ff(){ff.__loaded||(ff.__loaded=!0,cG(),Mt.load(qN),Mt.load(ns?j4:pU))}ff.__loaded=!1;const cB=ff;function _f(){_f.__loaded||(_f.__loaded=!0,uG(),Mt.load(zN),Mt.load(ns?r4:mU))}_f.__loaded=!1;const Or=_f;function mf(){mf.__loaded||(mf.__loaded=!0,pG(),Mt.load(NN),Mt.load(ns?T4:TU))}mf.__loaded=!1;const Au=mf;function vf(){vf.__loaded||(vf.__loaded=!0,gG(),Mt.load(GN),Mt.load(ns?P4:xU))}vf.__loaded=!1;const am=vf;function yf(){yf.__loaded||(yf.__loaded=!0,fG(),Mt.load(sG),Mt.load(Z4))}yf.__loaded=!1;const e$=yf;function bf(){bf.__loaded||(bf.__loaded=!0,_G(),Mt.load(FN),Mt.load(ns?t4:PU))}bf.__loaded=!1;const Lr=bf;function xf(){xf.__loaded||(xf.__loaded=!0,mG(),Mt.load(JN),Mt.load(N4))}xf.__loaded=!1;const i$=xf;function Sf(){Sf.__loaded||(Sf.__loaded=!0,vG(),Mt.load(KN),Mt.load(ns?F4:EU))}Sf.__loaded=!1;const Ha=Sf;function Af(){Af.__loaded||(Af.__loaded=!0,xG())}Af.__loaded=!1;const Di=Af;function kf(){kf.__loaded||(kf.__loaded=!0,yG(),Mt.load(HN),Mt.load(ns?p4:OU))}kf.__loaded=!1;const ss=kf;function Tf(){Tf.__loaded||(Tf.__loaded=!0,bG(),Mt.load(WN),Mt.load(ns?x4:DU))}Tf.__loaded=!1;const Ks=Tf;function uB(){We(),Lr()}const hh=-.5*Math.PI,dh=1.5*Math.PI,kd="PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",n$=14;var Ge;(function(n){n.selected="selected",n.selectedReverse="selected_reverse",n.hover="hover",n.hoverReverse="hover_reverse"})(Ge||(Ge={}));const Et={[Ge.selectedReverse]:{},[Ge.selected]:{},[Ge.hover]:{},[Ge.hoverReverse]:{}},Mf={container:"",width:30,height:30,style:{}},s$="scrollDrag",tM={debounce:Xs,throttle:za};uB();let wf=class pB extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},pB.defaultAttributes,t)),this.name="scrollbar",this._onRailPointerDown=i=>{const{viewX:s,viewY:r}=i,{direction:a,width:o,height:l,range:h}=this.attribute,d=this._sliderSize,[c,u]=this._getScrollRange();let p;if(a==="vertical"){const g=r-this._viewPosition.y,f=Fe(g-d/2,c,u);p=g/l,this._slider.setAttribute("y",f,!0)}else{const g=s-this._viewPosition.x,f=Fe(g-d/2,c,u);p=g/o,this._slider.setAttribute("x",f,!0)}this.setScrollRange([p-(h[1]-h[0])/2,p+(h[1]-h[0])/2],!1),this.stage&&!this.stage.autoRender&&this.stage.renderNextFrame()},this._onSliderPointerDown=i=>{const{stopSliderDownPropagation:s=!0}=this.attribute;s&&i.stopPropagation();const{direction:r}=this.attribute,{x:a,y:o}=this.stage.eventPointTransform(i);this._prePos=r==="horizontal"?a:o,this._dispatchEvent("scrollDown",{pos:this._prePos,event:i}),Rt.env==="browser"?(Rt.addEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Rt.addEventListener("pointerup",this._onSliderPointerUp)):(this.stage.addEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),this.stage.addEventListener("pointerup",this._onSliderPointerUp),this.stage.addEventListener("pointerupoutside",this._onSliderPointerUp))},this._computeScrollValue=i=>{const{direction:s}=this.attribute,{x:r,y:a}=this.stage.eventPointTransform(i);let o,l,h=0;const{width:d,height:c}=this._getSliderRenderBounds();return s==="vertical"?(l=a,h=l-this._prePos,o=h/c):(l=r,h=l-this._prePos,o=h/d),[l,o]},this._onSliderPointerMove=i=>{const{stopSliderMovePropagation:s=!0}=this.attribute;s&&i.stopPropagation();const r=this.getScrollRange(),[a,o]=this._computeScrollValue(i);this.setScrollRange([r[0]+o,r[1]+o],!0),this._prePos=a},this._onSliderPointerMoveWithDelay=this.attribute.delayTime===0?this._onSliderPointerMove:tM[this.attribute.delayType](this._onSliderPointerMove,this.attribute.delayTime),this._onSliderPointerUp=i=>{i.preventDefault();const{realTime:s=!0,range:r,limitRange:a=[0,1]}=this.attribute,o=this.getScrollRange(),[l,h]=this._computeScrollValue(i),d=[o[0]+h,o[1]+h];this._dispatchEvent("scrollUp",{pre:r,value:qa(d,a[0],a[1])}),Rt.env==="browser"?(Rt.removeEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),Rt.removeEventListener("pointerup",this._onSliderPointerUp)):(this.stage.removeEventListener("pointermove",this._onSliderPointerMoveWithDelay,{capture:!0}),this.stage.removeEventListener("pointerup",this._onSliderPointerUp),this.stage.removeEventListener("pointerupoutside",this._onSliderPointerUp))}}setScrollRange(t,e=!0){const{direction:i="horizontal",limitRange:s=[0,1],range:r,realTime:a=!0}=this.attribute,o=qa(t,s[0],s[1]);if(e){const l=this._getSliderPos(o);if(this._slider){const h=l[1]-l[0];this._sliderSize=h,i==="horizontal"?this._slider.setAttributes({x:l[0],width:h},!0):this._slider.setAttributes({y:l[0],height:h},!0),this.stage&&!this.stage.autoRender&&this.stage.renderNextFrame()}}this.attribute.range=o,a&&this._dispatchEvent(s$,{pre:r,value:o})}getScrollRange(){return this.attribute.range}bindEvents(){if(this.attribute.disableTriggerEvent)return;const{delayType:t="throttle",delayTime:e=0}=this.attribute;this._rail&&this._rail.addEventListener("pointerdown",tM[t](this._onRailPointerDown,e)),this._slider&&this._slider.addEventListener("pointerdown",this._onSliderPointerDown)}render(){this._reset();const{direction:t="horizontal",width:e,height:i,range:s,limitRange:r=[0,1],railStyle:a,sliderStyle:o,padding:l=2}=this.attribute,h=this.createOrUpdateChild("scrollbar-container",{},"group"),d=h.createOrUpdateChild("scrollbar-rail",Object.assign({x:0,y:0,width:e,height:i},a),"rect");this._rail=d;const c=this._getSliderRenderBounds(),u=this._getSliderPos(qa(s,r[0],r[1])),p=u[1]-u[0];let g;this._sliderSize=p,g=t==="horizontal"?{x:u[0],y:c.y1,width:p,height:c.height}:{x:c.x1,y:u[0],width:c.width,height:p};const f=h.createOrUpdateChild("slider",Object.assign(Object.assign(Object.assign(Object.assign({},g),{cornerRadius:this._getDefaultSliderCornerRadius()}),o),{boundsPadding:ln(l),pickMode:"imprecise"}),"rect");this._slider=f,this._container=h;const _=this._container.AABBBounds;this._viewPosition={x:_.x1,y:_.y1}}_getSliderRenderBounds(){if(this._sliderRenderBounds)return this._sliderRenderBounds;const{width:t,height:e,padding:i=2}=this.attribute,[s,r,a,o]=ln(i),l={x1:o,y1:s,x2:t-r,y2:e-a,width:Math.max(0,t-(o+r)),height:Math.max(0,e-(s+a))};return this._sliderRenderBounds=l,l}_getDefaultSliderCornerRadius(){const{direction:t,round:e}=this.attribute;if(e){const{width:i,height:s}=this._getSliderRenderBounds();return t==="horizontal"?s:i}return 0}_getSliderPos(t){const{direction:e}=this.attribute,{width:i,height:s,x1:r,y1:a}=this._getSliderRenderBounds();return e==="horizontal"?[i*t[0]+r,i*t[1]+r]:[s*t[0]+a,s*t[1]+a]}_getScrollRange(){if(this._sliderLimitRange)return this._sliderLimitRange;const{limitRange:t=[0,1],direction:e}=this.attribute,[i,s]=qa(t,0,1),{width:r,height:a,x1:o,y1:l}=this._getSliderRenderBounds(),h=this._sliderSize;return e==="horizontal"?qa([o+i*r,o+s*r],o,r-h):qa([l+i*a,l+s*a],l,a-h)}_reset(){this._sliderRenderBounds=null,this._sliderLimitRange=null}};wf.defaultAttributes={direction:"horizontal",round:!0,sliderSize:20,sliderStyle:{fill:"rgba(0, 0, 0, .5)"},railStyle:{fill:"rgba(0, 0, 0, .0)"},padding:2,scrollRange:[0,1],delayType:"throttle",delayTime:0,realTime:!0};function fs(n,t){n.forEachChildren(e=>{const i=t(e);e.isContainer&&!i&&fs(e,t)})}const Oe=n=>!C(n)&&n.visible!==!1;function r$(n,t){if(!t)return[];const e=n.find(i=>i.name===t,!0);return e?e.getChildren():[]}function a$(n,t){if(!t)return[];const e=n.find(i=>i.name===t,!0);return e?e.findAll(i=>i.type!=="group",!0):[]}function o$(n){const t=[n[0]];for(let e=1;e=0&&n3*Math.PI/2&&n<=2*Math.PI}function Ps(n,t,e){return Math.abs(n-t)Math.PI&&e.toLocaleLowerCase().includes("bottom")?"left":tMath.PI&&e.toLocaleLowerCase().includes("top")?"right":"center",textBaseline:tMath.PI&&!e.includes("inside")?"bottom":"top"}}const l$=["#ffffff","#000000"];function eM(n,t,e,i,s,r){if(typeof n!="string"||typeof t!="string")return n;const a=new Je(n).toHex(),o=new Je(t).toHex();return Dx(a,o,e,i,r)?a:h$(a,o,e,i,s,r)}function h$(n,t,e,i,s,r){const a=[];s&&(s instanceof Array?a.push(...s):a.push(s)),a.push(...l$);for(const o of a)if(n!==o&&Dx(o,t,e,i,r))return o}function Dx(n,t,e,i,s){if(s==="lightness"){const r=Je.getColorBrightness(new Je(t));return Je.getColorBrightness(new Je(n))<.5?r>=.5:r<.5}return i?j0(n,t)>i:e==="largeText"?j0(n,t)>3:j0(n,t)>4.5}function j0(n,t){const e=iM(n),i=iM(t);return((e>i?e:i)+.05)/((e>i?i:e)+.05)}function iM(n){const t=FP(n),e=t[0]/255,i=t[1]/255,s=t[2]/255;let r,a,o;return r=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),a=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),o=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*a+.0722*o}function nl(n,t,e,i){let s;switch(n){case"base":s=t;break;case"invertBase":s=e;break;case"similarBase":s=i}return s}function fB(n,t){return[n[0]*t,n[1]*t]}function d$(n){const[t,e]=n;return Math.sqrt(t*t+e*e)}function c$(n){const[t,e]=n;let i=t*t+e*e;return i>0&&(i=1/Math.sqrt(i)),[n[0]*i,n[1]*i]}function u$(n,t){const[e,i]=n,[s,r]=t,a=Math.sqrt((e*e+i*i)*(s*s+r*r)),o=a&&(e*s+i*r)/a;return Math.acos(Math.min(Math.max(o,-1),1))}function p$(n,t){return n[0]*t[1]-t[0]*n[1]}function g$(n,t,e){const i=u$(n,t),s=p$(n,t)>=0;return e?s?2*Math.PI-i:i:s?i:2*Math.PI-i}const Wl=(n,t,e,i)=>new Yi(Object.assign({defaultFontParams:Object.assign({fontFamily:kd,fontSize:n$},i),getTextBounds:e?void 0:xu,specialCharSet:`-/: .,@%'"~`+Yi.ALPHABET_CHAR_SET+Yi.ALPHABET_CHAR_SET.toUpperCase()},t??{}),n);function om(n,t,e={}){if(!n)return{width:0,height:0};const i=xu({text:n,fontFamily:t.fontFamily||e.fontFamily||kd,fontSize:t.fontSize||e.fontSize||12,fontWeight:t.fontWeight||e.fontWeight,textAlign:t.textAlign||"center",textBaseline:t.textBaseline,ellipsis:!!t.ellipsis,maxLineWidth:t.maxLineWidth||1/0,lineHeight:t.fontSize||e.fontSize||12});return{width:i.width(),height:i.height()}}function f$(n,t="type"){return _B(n,t)==="rich"}function _B(n,t="type"){var e,i;return Ct(n.text)&&"type"in n.text?(e=n.text.type)!==null&&e!==void 0?e:"text":t in n&&(i=n[t])!==null&&i!==void 0?i:"text"}function mB(n){var t,e;return n.width=(t=n.width)!==null&&t!==void 0?t:0,n.height=(e=n.height)!==null&&e!==void 0?e:0,n.maxWidth=n.maxLineWidth,n.textConfig=n.text.text||n.text,n}function _$(n){const{text:t,_originText:e}=n,{text:i}=t;return n.html=i,n.text=e,n.renderable=!1,n}function m$(n){const{text:t,_originText:e}=n,{text:i}=t;return n.react=i,n.text=e,n.renderable=!1,n}function Bc(n,t="type"){const e=_B(n,t);return e==="rich"?pt.richtext(mB(n)):(e==="html"?n=_$(n):e==="react"&&(n=m$(n)),pt.text(n))}function nM(n,t,e,i,s){n==="right"?e==="center"?t.setAttribute("x",i-s/2):e==="right"||e==="end"?t.setAttribute("x",i):t.setAttribute("x",i-s):e==="center"?t.setAttribute("x",i+s/2):e==="right"||e==="end"?t.setAttribute("x",i+s):t.setAttribute("x",i)}const H0=(n,t)=>{const e=Math.atan2(n,t);return e<0?e+2*Math.PI:e};function lm(){We(),Lr(),ss(),Ha(),Ks()}var V0=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sB(M.attribute,I,new Pe)}this._bgRect=O}}else{const w=Object.assign(Object.assign({text:Ct(s)&&"type"in s&&s.type==="text"?s.text:s,visible:P(s)&&u!==!1,lineHeight:r==null?void 0:r.fontSize},r),{x:S,y:0});C(w.lineHeight)&&(w.lineHeight=r.fontSize),M=y.createOrUpdateChild("tag-text",w,"text"),_t(p==null?void 0:p.text)||(M.states=p.text);const E=om(w.text,r,(e=(t=this.stage)===null||t===void 0?void 0:t.getTheme())===null||e===void 0?void 0:e.text),R=E.width,O=E.height;v+=R;const B=(i=a.size)!==null&&i!==void 0?i:10,I=nt(B)?B:Math.max(B[0],B[1]);x+=Math.max(O,a.visible?I:0);const{textAlign:D,textBaseline:F}=r;(P(h)||P(d))&&(P(h)&&vd&&(v=d,M.setAttribute("maxLineWidth",d-m[1]-m[2])));let $=0,K=0,W=0;D==="left"||D==="start"?W=1:D==="right"||D==="end"?W=-1:D==="center"&&(W=0),W?W<0?($-=v,b&&b.setAttribute("x",(b.attribute.x||0)-R),y.setAttribute("x",-m[1]-k)):W>0&&y.setAttribute("x",m[3]):($-=v/2,b&&b.setAttribute("x",(b.attribute.x||0)-R/2),y.setAttribute("x",-k/2));const et=_==="right"||_==="end",Z=_==="left"||_==="start";if((_?_==="center":f)&&W){const N=v-m[1]-m[3],q=R+k,X=W===1?(N-q)/2+k+R/2:m[0]+k-(v/2+q/2-k)+R/2;if(M.setAttributes({x:X,textAlign:"center"}),b){const ot=X-R/2-k+I/2;b.setAttributes({x:ot})}}if(Z&&W!==1){const N=v-m[1]-m[3],q=W===0?-N/2+k/2:-v+m[3]+m[1]+k,X=q+k;if(M.setAttributes({x:X,textAlign:"left"}),b){const ot=q+I/2;b.setAttributes({x:ot})}}if(et&&W!==-1){const N=v-m[1]-m[3],q=W===0?N/2+k/2:N;if(M.setAttributes({x:q,textAlign:"right"}),b){const X=q-R-k+I/2;b.setAttributes({x:X})}}F==="middle"?(K-=x/2,b&&b.setAttribute("y",0)):F==="bottom"?(K-=x,b&&b.setAttribute("y",-O/2),y.setAttribute("y",-m[2])):F==="top"&&(y.setAttribute("y",m[0]),b&&b.setAttribute("y",O/2));const{visible:ht}=o,J=V0(o,["visible"]);if(u&&be(ht)){const N=this.createOrUpdateChild("tag-panel",Object.assign(Object.assign({},J),{visible:ht&&!!s,x:$,y:K,width:v,height:x}),"rect");if(_t(p==null?void 0:p.panel)||(N.states=p.panel),J.customShape){const q=J.customShape;N.pathProxy=X=>q(M.attribute,X,new Pe)}this._bgRect=N}}this._textShape=M}}rs.defaultAttributes={visible:!0,textStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},space:4,padding:4,shape:{fill:"#000"}};const vB={visible:!0,position:"auto",titleStyle:{fontSize:16,fill:"#08979c"},contentStyle:{fontSize:12,fill:"green"},panel:{visible:!0,fill:"#e6fffb",size:12,space:0,stroke:"#87e8de",lineWidth:1,cornerRadius:4}},yB={poptip:Y({},vB)};function v$(){We(),Ks(),ss(),Lr()}function y$(n){Y(yB.poptip,vB,n)}var b$=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sf?ht=f:htxt&&(xt=yi,mt=Bt)}}}}getAngleAndOffset(t,e,i,s){const r=s[1]/2;switch(t){case"tl":return{angle:ee/2*3,offset:[e/4,i+r],rectOffset:[-e/4,-i-s[1]]};case"top":return{angle:ee/2*3,offset:[e/2,i+r],rectOffset:[0,-i-s[1]]};case"tr":return{angle:ee/2*3,offset:[e/4*3,i+r],rectOffset:[e/4*3,-i-s[1]]};case"rt":return{angle:0,offset:[-r,i/5],rectOffset:[e/4*3,-i-s[1]]};case"right":return{angle:0,offset:[-r,i/2],rectOffset:[e/4*3,-i-s[1]]};case"rb":return{angle:0,offset:[-r,i/5*4],rectOffset:[e/4*3,-i-s[1]]};case"bl":return{angle:ee/2,offset:[e/4,-r],rectOffset:[-e/4,-i-s[1]]};case"bottom":return{angle:ee/2,offset:[e/2,-r],rectOffset:[0,-i-s[1]]};case"br":return{angle:ee/2,offset:[e/4*3,-r],rectOffset:[e/4*3,-i-s[1]]};case"lt":return{angle:ee,offset:[e+r,i/5],rectOffset:[-e/4,-i-s[1]]};case"left":return{angle:ee,offset:[e+r,i/2],rectOffset:[0,-i-s[1]]};case"lb":return{angle:ee,offset:[e+r,i/5*4],rectOffset:[e/4*3,-i-s[1]]}}}}Ic.defaultAttributes={position:"rt",visible:!0,title:null,content:null,titleStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},contentStyle:{fontSize:12,fill:"#000",textAlign:"left",textBaseline:"top"},maxWidthPercent:.8,space:8,padding:10};var x$=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};function S$(n,t){return Y(n,yB.poptip,t),n}let Td=class{render(n,t,e,i,s,r,a,o,l,h,d,c,u){var p;if(n._showPoptip===1){const{visible:g,visibleCb:f}=n.attribute.poptip||{};if(g===!1||f&&f(n)===!1)return;const _={};Y(_,Ic.defaultAttributes,n.attribute.poptip?n.attribute.poptip:{}),this.poptipComponent?this.poptipComponent.initAttributes(_):this.poptipComponent=new Ic(_);let m=n.attribute.poptip||{};if(n.type==="text"&&m.title==null&&m.content==null){const v={};S$(v,m),m=v,m.content=(p=m.content)!==null&&p!==void 0?p:n.attribute.text}const y=n.globalTransMatrix;this.poptipComponent.setAttributes(Object.assign(Object.assign({visibleAll:!0,pickable:!1,childrenPickable:!1},m),{x:y.e,y:y.f})),h.stage.tryInitInteractiveLayer();const b=h.stage.getLayer("_builtin_interactive");b&&b.add(this.poptipComponent)}else n._showPoptip===2&&(n._showPoptip=0,this.poptipComponent&&this.poptipComponent.setAttributes({visibleAll:!1}))}};Td=x$([gt()],Td);var bB=function(n,t,e,i){var s,r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var o=n.length-1;o>=0;o--)(s=n[o])&&(a=(r<3?s(a):r>3?s(t,e,a):s(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a};let Md=class{constructor(){this.name="poptip",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid,this.poptip=n=>{const t=n.target;if(t.isContainer||!t.attribute)return void this.unpoptip(n);if(t===this.activeGraphic)return;const{poptip:e}=t.attribute;e&&(t.setAttributes({}),t._showPoptip=1),this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2),this.setActiveGraphic(t,!0)},this.unpoptip=n=>{this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2,this.setActiveGraphic(null,!0))}}activate(n){this.pluginService=n;const{stage:t}=this.pluginService;t.addEventListener("pointerover",this.poptip)}setActiveGraphic(n,t){this.activeGraphic=n,this.pluginService.stage.renderNextFrame()}deactivate(n){const{stage:t}=this.pluginService;t.removeEventListener("pointerover",this.poptip)}};Md=bB([gt()],Md);let wd=class{constructor(){this.name="poptipForText",this.activeEvent="onRegister",this._uid=Ye.GenAutoIncrementId(),this.key=this.name+this._uid,this.pointerlave=n=>{const{stage:t}=this.pluginService;n.target===t&&this.unpoptip(n)},this.poptip=n=>{const t=n.target;if(t.type!=="text"||!t.cliped||t.isContainer||!t.attribute||t.attribute.disableAutoClipedPoptip)return void this.unpoptip(n);if(t===this.activeGraphic)return;const{poptip:e={}}=t.attribute;e&&(t.setAttributes({}),t._showPoptip=1),this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2),this.setActiveGraphic(t,!0)},this.unpoptip=n=>{this.activeGraphic&&(this.activeGraphic.setAttributes({}),this.activeGraphic._showPoptip=2,this.setActiveGraphic(null,!0))}}activate(n){this.pluginService=n;const{stage:t}=this.pluginService;t.addEventListener("pointerover",this.poptip),t.addEventListener("pointerleave",this.pointerlave)}setActiveGraphic(n,t){this.activeGraphic=n,this.pluginService.stage.renderNextFrame()}deactivate(n){const{stage:t}=this.pluginService;t.removeEventListener("pointerover",this.poptip),t.removeEventListener("pointerleave",this.pointerlave)}};wd=bB([gt()],wd);const A$=new wt((n,t,e,i)=>{e(Td)||(n(Td).toSelf().inSingletonScope(),n(Mx).toService(Td)),e(Md)||(n(Md).toSelf(),n(Rc).toService(Md)),e(wd)||(n(wd).toSelf(),n(Rc).toService(wd))});function k$(){Mt.load(A$)}class ku extends ui{constructor(){super(...arguments),this.name="crosshair"}render(){this.renderCrosshair(this)}}function T$(){We(),Or()}function M$(){We(),Rh()}function w$(){We(),Au()}function C$(){We(),Lr()}function P$(){We(),Rh()}T$();class Tu extends ku{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Tu.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,lineStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-line",Object.assign({points:[e,i]},s),"line")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}Tu.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};C$();class hm extends ku{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},hm.defaultAttributes,t))}renderCrosshair(t){const{start:e,end:i,rectStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-rect",Object.assign({x:e.x,y:e.y,width:i.x-e.x,height:i.y-e.y},s),"rect")}setLocation(t){const{start:e,end:i}=t;this.setAttributes({start:e,end:i})}}hm.defaultAttributes={rectStyle:{fill:"#b2bacf",opacity:.2}};M$();class dm extends ku{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},dm.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,lineStyle:s}=this.attribute;return t.createOrUpdateChild("crosshair-circle",Object.assign(Object.assign(Object.assign(Object.assign({},e),{outerRadius:i}),this.attribute),s),"arc")}setLocation(t){const{center:e}=this.attribute,i=Ce.distancePP(t,e);this.setAttribute("radius",i)}}dm.defaultAttributes={lineStyle:{stroke:["#b2bacf",!1,!1,!1],lineWidth:1,lineDash:[2]}};P$();class cm extends ku{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},cm.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,innerRadius:s=0,sectorStyle:r}=this.attribute,{startAngle:a,endAngle:o}=this.attribute;return t.createOrUpdateChild("crosshair-sector",Object.assign(Object.assign(Object.assign({},e),{outerRadius:i,innerRadius:s,startAngle:a,endAngle:o}),r),"arc")}setLocation(t){const{center:e,startAngle:i=hh,endAngle:s=dh}=this.attribute,r=s-i,a=Zl(qp(e,t));this.setAttributes({startAngle:a-r/2,endAngle:a+r/2})}}cm.defaultAttributes={sectorStyle:{fill:"#b2bacf",opacity:.2}};w$();class um extends ku{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},um.defaultAttributes,t))}renderCrosshair(t){const{center:e,radius:i,sides:s=6,lineStyle:r}=this.attribute,{startAngle:a,endAngle:o}=this.attribute,l=(o-a)%(2*Math.PI)==0,h=(o-a)/s;let d;for(let c=0;c<=s;c++){const u=Ue(e,i,a+h*c);c===0?d=`M${u.x},${u.y}`:d+=`L${u.x},${u.y}`,c===s&&l&&(d+="Z")}return t.createOrUpdateChild("crosshair-polygon",Object.assign({path:d},r),"path")}setLocation(t){const{center:e}=this.attribute,i=Ce.distancePP(t,e);this.setAttribute("radius",i)}}um.defaultAttributes={lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}};const Xr=new Uint32Array(33),ds=new Uint32Array(33);ds[0]=0,Xr[0]=~ds[0];for(let n=1;n<=32;++n)ds[n]=ds[n-1]<<1|1,Xr[n]=~ds[n];function E$(n,t){const e=new Uint32Array(~~((n*t+32)/32));function i(r,a){e[r]|=a}function s(r,a){e[r]&=a}return{array:e,get:(r,a)=>{const o=a*n+r;return e[o>>>5]&1<<(31&o)},set:(r,a)=>{const o=a*n+r;i(o>>>5,1<<(31&o))},clear:(r,a)=>{const o=a*n+r;s(o>>>5,~(1<<(31&o)))},getRange:({x1:r,y1:a,x2:o,y2:l})=>{if(o<0||l<0||r>n||a>t)return!0;let h,d,c,u,p=l;for(;p>=a;--p)if(h=p*n+r,d=p*n+o,c=h>>>5,u=d>>>5,c===u){if(e[c]&Xr[31&h]&ds[1+(31&d)])return!0}else{if(e[c]&Xr[31&h]||e[u]&ds[1+(31&d)])return!0;for(let g=c+1;g{if(o<0||l<0||r>n||a>t)return;let h,d,c,u,p;for(;a<=l;++a)if(h=a*n+r,d=a*n+o,c=h>>>5,u=d>>>5,c===u)i(c,Xr[31&h]&ds[1+(31&d)]);else for(i(c,Xr[31&h]),i(u,ds[1+(31&d)]),p=c+1;p{let h,d,c,u,p;for(;a<=l;++a)if(h=a*n+r,d=a*n+o,c=h>>>5,u=d>>>5,c===u)s(c,ds[31&h]|Xr[1+(31&d)]);else for(s(c,ds[31&h]),s(u,Xr[1+(31&d)]),p=c+1;pr<0||a<0||l>=t||o>=n,toImageData:r=>{const a=r.createImageData(n,t),o=a.data;for(let l=0;l>>5]&1<<(31&d);o[c+0]=255*u,o[c+1]=255*u,o[c+2]=255*u,o[c+3]=31}return a}}}function xB(n,t,e={top:0,left:0,right:0,bottom:0}){const{top:i=0,left:s=0,right:r=0,bottom:a=0}=e,o=Math.max(1,Math.sqrt(n*t/1e6)),l=~~((n+s+r+o)/o),h=~~((t+i+a+o)/o),d=c=>~~(c/o);return d.bitmap=()=>E$(l,h),d.x=c=>~~((c+s)/o),d.y=c=>~~((c+i)/o),d.ratio=o,d.padding=e,d.width=n,d.height=t,d}function or(n,t,e=!1){if(e){const{x1:i,x2:s,y1:r,y2:a}=t,o=Fe(i,0,n.width),l=Fe(s,0,n.width),h=Fe(r,0,n.height),d=Fe(a,0,n.height);return{x1:n.x(o),x2:n.x(l),y1:n.y(h),y2:n.y(d)}}return{x1:n.x(t.x1),x2:n.x(t.x2),y1:n.y(t.y1),y2:n.y(t.y2)}}function jp(n,t,e,i=!0,s=0){let r=e;return s>0&&(r={x1:e.x1-s,x2:e.x2+s,y1:e.y1-s,y2:e.y2+s}),r=or(n,r),!(i&&t.outOfBounds(r))&&!t.getRange(r)}function W0(n,t,e,i=[],s=!0,r=0){const a=i.filter(o=>P(o));for(let o=0;oa(s.AABBBounds,r,u,i.offset));return W0(n,t,s,c,h,d)}return!1}if(e.type==="moveY"){const c=(e.offset?G(e.offset)?e.offset(s.attribute):e.offset:[]).map(u=>({x:s.attribute.x,y:s.attribute.y+u}));return W0(n,t,s,c,h,d)}if(e.type==="moveX"){const c=(e.offset?G(e.offset)?e.offset(s.attribute):e.offset:[]).map(u=>({x:s.attribute.x+u,y:s.attribute.y}));return W0(n,t,s,c,h,d)}return!1}const B$=["top","bottom","right","left","top-right","bottom-right","top-left","bottom-left"],I$=["top","inside-top","inside"];function O$(n){return n==="rect"?I$:B$}function L$(n,t,e){const{x1:i,x2:s,y1:r,y2:a}=n.AABBBounds,o=Math.min(i,s),l=Math.max(i,s),h=Math.min(r,a),d=Math.max(r,a);let c=0,u=0;return o<0&&l-o<=t?c=-o:l>t&&o-(l-t)>=0&&(c=t-l),h<0&&d-h<=e?u=-h:d>e&&h-(d-e)>=0&&(u=e-d),{dx:c,dy:u}}const D$=(n={})=>{var t,e,i;return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(t=n.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=n.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=n.strokeOpacity)!==null&&i!==void 0?i:1}}},F$=(n={})=>{var t,e,i;return{from:{opacity:(t=n.opacity)!==null&&t!==void 0?t:1,fillOpacity:(e=n.fillOpacity)!==null&&e!==void 0?e:1,strokeOpacity:(i=n.strokeOpacity)!==null&&i!==void 0?i:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},rM={fadeIn:D$,fadeOut:F$};function aM(n,t){var e,i;return(i=(e=rM[t])===null||e===void 0?void 0:e.call(rM,n))!==null&&i!==void 0?i:{from:{},to:{}}}function z$(n,t,e){if(!V(e)){const{duration:i,easing:s,increaseEffect:r=!0}=e;return n.animate().to(t.attribute,i,s),void(r&&oM(n,t,i,s))}e.forEach((i,s)=>{const{duration:r,easing:a,increaseEffect:o=!0,channel:l}=i,{from:h,to:d}=j$(n,t,l,i.options);_t(d)||n.animate().to(d,r,a),"text"in h&&"text"in d&&o&&oM(n,t,r,a)})}const j$=(n,t,e,i)=>{const s=Object.assign({},n.attribute),r=Object.assign({},t.attribute);return H(i==null?void 0:i.excludeChannels).forEach(a=>{delete r[a]}),Object.keys(r).forEach(a=>{e&&!e.includes(a)&&delete r[a]}),{from:s,to:r}};function oM(n,t,e,i){n.attribute.text!==t.attribute.text&&z(Number(n.attribute.text)*Number(t.attribute.text))&&n.animate().play(new Uj({text:n.attribute.text},{text:t.attribute.text},e,i))}const N0={mode:"same-time",duration:300,easing:"linear"};function H$(n){return n.radius?{x:Math.cos(n.angle)*n.radius,y:Math.sin(n.angle)*n.radius}:{x:0,y:0}}function _p(n,t,e,i){const s=H$({radius:e,angle:i});return{x:n+s.x,y:t+s.y}}function V$(n){return(n=W$(n))>0&&n<=Math.PI/2?2:n>Math.PI/2&&n<=Math.PI?3:n>Math.PI&&n<=3*Math.PI/2?4:1}function W$(n){for(;n<0;)n+=2*Math.PI;for(;n>=2*Math.PI;)n-=2*Math.PI;return n}function $a(n){return n===3||n===4}function N$(n){return n===1||n===2}function G$(n,t,e,i,s,r){if(n===0&&t===0||r<=0)return[];if(n===0){const u=-e/t,p=r**2-(u-s)**2;return p<0?[]:p===0?[{x:i,y:u}]:[{x:Math.sqrt(p)+i,y:u},{x:-Math.sqrt(p)+i,y:u}]}if(t===0){const u=-e/n,p=r**2-(u-i)**2;return p<0?[]:p===0?[{x:u,y:s}]:[{x:u,y:Math.sqrt(p)+s},{x:u,y:-Math.sqrt(p)+s}]}const a=(t/n)**2+1,o=2*((e/n+i)*(t/n)-s),l=o**2-4*a*((e/n+i)**2+s**2-r**2);if(l<0)return[];const h=(-o+Math.sqrt(l))/(2*a),d=(-o-Math.sqrt(l))/(2*a),c=-(t*h+e)/n;return l===0?[{x:c,y:h}]:[{x:c,y:h},{x:-(t*d+e)/n,y:d}]}function U$(n,t){return t>2*n?NaN:2*Math.asin(t/2/n)}function $$(n,t){const{x1:e,y1:i,x2:s,y2:r}=n,{x1:a,y1:o,x2:l,y2:h}=t;return!(e<=a&&s<=a||e>=l&&s>=l||i<=o&&r<=o||i>=h&&r>=h)}const SB=(n,t,e="top",i=0)=>{if(!n)return;const{x1:s,y1:r,x2:a,y2:o}=n,l=Math.abs(a-s),h=Math.abs(o-r),d=(t.x1+t.x2)/2,c=(t.y1+t.y2)/2;let u=0,p=0,g=0,f=0;t&&(g=Math.abs(t.x1-t.x2)/2,f=Math.abs(t.y1-t.y2)/2);const _={"top-right":-235,"top-left":235,"bottom-right":45,"bottom-left":-45};switch(e){case"top":p=-1;break;case"bottom":p=1;break;case"left":u=-1;break;case"right":u=1;break;case"bottom-left":case"bottom-right":case"top-left":case"top-right":u=Math.sin(_[e]*(Math.PI/180)),p=Math.cos(_[e]*(Math.PI/180));break;case"center":u=0,p=0}return{x:d+u*(i+g)+Math.sign(u)*(l/2),y:c+p*(i+f)+Math.sign(p)*(h/2)}},Y$=n=>{if(!n||!n.attribute)return[];const{points:t,segments:e}=n.attribute;if(e&&e.length){const i=[];return e.forEach(s=>{s.points.forEach(r=>{i.push(r)})}),i}return t};function AB(n,t,e="end",i=0){if(!n||!t)return{x:1/0,y:1/0};const{x1:s,x2:r}=n,a=Math.abs(r-s),o=t.x1;let l=o;return e==="end"?l=o+a/2+i:e==="start"&&(l=o-a/2-i),{x:l,y:t.y1}}function X$(n,t){if(!n||!t||gc(n,t,!0))return;const e=Math.min(n.x1,n.x2),i=Math.min(n.y1,n.y2),s=Math.min(t.x1,t.x2),r=Math.min(t.y1,t.y2),a=Math.abs(n.x2-e)/2,o=Math.abs(n.y2-i)/2,l=Math.abs(t.x2-s)/2,h=Math.abs(t.y2-r)/2,d=e+a,c=i+o,u=s+l,p=r+h,g=u-d,f=p-c;return[lM(g,f,d,c,a,o),lM(-g,-f,u,p,l,h)]}function lM(n,t,e,i,s,r){return Math.abs(t/n)0?s:-s),y:i+t*s/Math.abs(n)}:{x:e+n*r/Math.abs(t),y:i+(t>0?r:-r)}}function K$(){We(),Ks(),Ha(),Or()}K$();class qs extends ui{setBitmap(t){this._bitmap=t}setBitmapTool(t){this._bmpTool=t}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},qs.defaultAttributes,t)),this.name="label",this._onHover=i=>{const s=i.target;s===this._lastHover||_t(s.states)||(s.addState(Ge.hover,!0),fs(this,r=>{r===s||_t(r.states)||r.addState(Ge.hoverReverse,!0)}),this._lastHover=s)},this._onUnHover=i=>{this._lastHover&&(fs(this,s=>{_t(s.states)||(s.removeState(Ge.hoverReverse),s.removeState(Ge.hover))}),this._lastHover=null)},this._onClick=i=>{const s=i.target;if(this._lastSelect===s&&s.hasState("selected"))return this._lastSelect=null,void fs(this,r=>{_t(r.states)||(r.removeState(Ge.selectedReverse),r.removeState(Ge.selected))});_t(s.states)||(s.addState(Ge.selected,!0),fs(this,r=>{r===s||_t(r.states)||r.addState(Ge.selectedReverse,!0)}),this._lastSelect=s)},this._handleRelatedGraphicSetState=i=>{var s,r,a,o,l;if(((s=i.detail)===null||s===void 0?void 0:s.type)===we.STATE||((r=i.detail)===null||r===void 0?void 0:r.type)===we.ANIMATE_UPDATE&&(!((a=i.detail.animationState)===null||a===void 0)&&a.isFirstFrameOfStep)){const h=(l=(o=i.target)===null||o===void 0?void 0:o.currentStates)!==null&&l!==void 0?l:[],d=this._isCollectionBase?[...this._graphicToText.values()]:[this._graphicToText.get(i.target)];this.updateStatesOfLabels(d,h)}}}labeling(t,e,i,s){}_createLabelLine(t,e){const i=X$(t.AABBBounds,e==null?void 0:e.AABBBounds);if(i){const s=pt.line({points:i});if(s!=null&&s.customShape){const r=s.customShape;s.pathProxy=a=>r(t.attribute,a,new Pe)}return e&&e.attribute.fill&&s.setAttribute("stroke",e.attribute.fill),this.attribute.line&&!_t(this.attribute.line.style)&&s.setAttributes(this.attribute.line.style),this._setStatesOfLabelLine(s),s}}render(){if(this._prepare(),C(this._idToGraphic)||this._isCollectionBase&&C(this._idToPoint))return;const{overlap:t,smartInvert:e,dataFilter:i,customLayoutFunc:s,customOverlapFunc:r}=this.attribute;let a=this.attribute.data;G(i)&&(a=i(a));let o=this._initText(a);o=G(s)?s(a,o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null):this._layout(o),G(r)?o=r(o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null):t!==!1&&(o=this._overlapping(o)),G(this.attribute.onAfterOverlapping)&&this.attribute.onAfterOverlapping(o,this.getRelatedGraphic.bind(this),this._isCollectionBase?l=>this._idToPoint.get(l.id):null),o&&o.length&&o.forEach(l=>{this._bindEvent(l),this._setStatesOfText(l)}),e!==!1&&this._smartInvert(o),this._renderLabels(o)}_bindEvent(t){if(this.attribute.disableTriggerEvent||!t)return;const{hover:e,select:i}=this.attribute;e&&(t.addEventListener("pointermove",this._onHover),t.addEventListener("pointerout",this._onUnHover)),i&&t.addEventListener("pointerdown",this._onClick)}_setStatesOfText(t){if(!t)return;const e=this.attribute.state;e&&!_t(e)&&(t.states=e)}_setStatesOfLabelLine(t){if(!t)return;const e=this.attribute.labelLineState;e&&!_t(e)&&(t.states=e)}_createLabelText(t){var e,i;const s=Object.assign(Object.assign({},(i=(e=this.stage)===null||e===void 0?void 0:e.getTheme())===null||i===void 0?void 0:i.text),t);return Bc(s,"textType")}_prepare(){var t,e,i,s,r;const a=[];let o;if(o=G(this.attribute.getBaseMarks)?this.attribute.getBaseMarks():r$(this.getRootNode(),this.attribute.baseMarkGroupName),o.forEach(h=>{h.releaseStatus!=="willRelease"&&a.push(h)}),(t=this._idToGraphic)===null||t===void 0||t.clear(),(e=this._idToPoint)===null||e===void 0||e.clear(),this._baseMarks=a,this._isCollectionBase=this.attribute.type==="line-data",!a||a.length===0)return;const{data:l}=this.attribute;if(l&&l.length!==0){if(this._idToGraphic||(this._idToGraphic=new Map),this._isCollectionBase){this._idToPoint||(this._idToPoint=new Map);let h=0;for(let d=0;d!!h&&h!==!0):a.attribute.stroke:a.attribute.fill},e),r),l=this._createLabelText(o);i.push(l)}return i}_layout(t){const{position:e,offset:i}=this.attribute;for(let s=0;sb.type==="bound");d&&((r=this._baseMarks)===null||r===void 0||r.forEach(b=>{b.AABBBounds&&m.setRange(or(_,b.AABBBounds,!0))})),g.length>0&&g.forEach(b=>{at(b)?a$(this.getRootNode(),b).forEach(v=>{v.AABBBounds&&m.setRange(or(_,v.AABBBounds,!0))}):b.AABBBounds&&m.setRange(or(_,b.AABBBounds,!0))});for(let b=0;be.name===t,!0)}getGraphicBounds(t,e={}){if(t){if(t.attribute.visible!==!1)return t.AABBBounds;const{x:r,y:a}=t.attribute;return{x1:r,x2:r,y1:a,y2:a}}const{x:i,y:s}=e;return{x1:i,x2:i,y1:s,y2:s}}_renderLabels(t){this._enableAnimation===!1||this.attribute.animation===!1?this._renderWithOutAnimation(t):this._renderWithAnimation(t)}_renderWithAnimation(t){var e;const{syncState:i}=this.attribute,s=new Map,r=this._graphicToText||new Map,a=[],o=[],{visible:l}=(e=this.attribute.line)!==null&&e!==void 0?e:{};t&&t.forEach((h,d)=>{var c;const u=this.getRelatedGraphic(h.attribute),p=h.attribute.id,g=this._isCollectionBase?p:u,f=r!=null&&r.get(g)?"update":"enter";let _;if(l&&(_=this._createLabelLine(h,u)),i&&this.updateStatesOfLabels([_?{text:h,labelLine:_}:{text:h}],(c=u.currentStates)!==null&&c!==void 0?c:[]),f==="enter"){if(a.push(h),s.set(g,_?{text:h,labelLine:_}:{text:h}),u){const{from:m,to:y}=aM(h.attribute,"fadeIn");this.add(h),_&&(o.push(_),this.add(_)),this._syncStateWithRelatedGraphic(u),this._animationConfig.enter.duration>0&&u.once("animate-bind",b=>{h.setAttributes(m),_&&_.setAttributes(m);const v=this._afterRelatedGraphicAttributeUpdate(h,a,_,o,d,u,y,this._animationConfig.enter);u.on("afterAttributeUpdate",v)})}}else if(f==="update"){const m=r.get(g);r.delete(g),s.set(g,m);const y=m.text,{duration:b,easing:v}=this._animationConfig.update;z$(y,h,this._animationConfig.update),m.labelLine&&_&&m.labelLine.animate().to(_.attribute,b,v)}}),r.forEach(h=>{var d;(d=h.text)===null||d===void 0||d.animate().to(aM(h.text.attribute,"fadeOut").to,this._animationConfig.exit.duration,this._animationConfig.exit.easing).onEnd(()=>{this.removeChild(h.text),h.labelLine&&this.removeChild(h.labelLine)})}),this._graphicToText=s}_renderWithOutAnimation(t){var e;const{syncState:i}=this.attribute,s=new Map,r=this._graphicToText||new Map,{visible:a}=(e=this.attribute.line)!==null&&e!==void 0?e:{};t&&t.forEach(o=>{var l;const h=this.getRelatedGraphic(o.attribute),d=r!=null&&r.get(h)?"update":"enter",c=this._isCollectionBase?o.attribute.id:h;let u;if(a&&(u=this._createLabelLine(o,h)),i&&this.updateStatesOfLabels([u?{text:o,labelLine:u}:{text:o}],(l=h.currentStates)!==null&&l!==void 0?l:[]),d==="enter")s.set(c,u?{text:o,labelLine:u}:{text:o}),this.add(o),u&&this.add(u),this._syncStateWithRelatedGraphic(h);else if(d==="update"){const p=r.get(c);r.delete(c),s.set(c,p),p.text.setAttributes(o.attribute),p.labelLine&&u&&p.labelLine.setAttributes(u.attribute)}}),r.forEach(o=>{this.removeChild(o.text),o.labelLine&&this.removeChild(o.labelLine)}),this._graphicToText=s}updateStatesOfLabels(t,e){t.forEach(i=>{i&&(i.text&&i.text.useStates(e),i.labelLine&&i.labelLine.useStates(e))})}_syncStateWithRelatedGraphic(t){this.attribute.syncState&&t.on("afterAttributeUpdate",this._handleRelatedGraphicSetState)}_afterRelatedGraphicAttributeUpdate(t,e,i,s,r,a,o,{mode:l,duration:h,easing:d,delay:c}){const u=p=>{var g,f,_;const{detail:m}=p;if(!m)return{};const y=(g=m.animationState)===null||g===void 0?void 0:g.step;if(!(m.type===we.ANIMATE_UPDATE&&y&&!(y.type==="wait"&&((f=y.prev)===null||f===void 0?void 0:f.type)==null)))return{};if(m.type===we.ANIMATE_END)return t.setAttributes(o),void(i&&i.setAttributes(o));const b=()=>{a&&(a.onAnimateBind=void 0,a.removeEventListener("afterAttributeUpdate",u))};switch(l){case"after":m.animationState.end&&(t.animate({onStart:b}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d));break;case"after-all":r===e.length-1&&m.animationState.end&&(e.forEach(v=>{v.animate({onStart:b}).wait(c).to(o,h,d)}),s.forEach(v=>{v.animate().wait(c).to(o,h,d)}));break;default:if(this._isCollectionBase){const v=this._idToPoint.get(t.attribute.id);!v||t.animates&&t.animates.has("label-animate")||!a.containsPoint(v.x,v.y,vc.LOCAL,(_=this.stage)===null||_===void 0?void 0:_.pickerService)||(t.animate({onStart:b}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}else m.animationState.isFirstFrameOfStep&&(t.animate({onStart:b}).wait(c).to(o,h,d),i&&i.animate().wait(c).to(o,h,d))}};return u}_smartInvert(t){var e,i,s,r,a;const o=Ct(this.attribute.smartInvert)?this.attribute.smartInvert:{},{textType:l,contrastRatiosThreshold:h,alternativeColors:d,mode:c}=o,u=(e=o.fillStrategy)!==null&&e!==void 0?e:"invertBase",p=(i=o.strokeStrategy)!==null&&i!==void 0?i:"base",g=(s=o.brightColor)!==null&&s!==void 0?s:"#ffffff",f=(r=o.darkColor)!==null&&r!==void 0?r:"#000000",_=(a=o.outsideEnable)!==null&&a!==void 0&&a;if(u!=="null"||p!=="null")for(let m=0;mthis.getGraphicBounds(l)),s=Object.assign(Object.assign({},this.attribute.textStyle),{text:"…"});let r=1/0;if(s.ellipsis!==!1){const l=this._createLabelText(s),h=this.getGraphicBounds(l);r=h.x2-h.x1}const a=e.map(l=>l.attribute),o=this.layoutArcLabels(this.attribute.position,this.attribute,Array.from(this._idToGraphic.values()),a,i,r);for(let l=0;l{var u;return((u=c.refDatum)===null||u===void 0?void 0:u.id)===h.id});if(d){const c={visible:d.labelVisible,x:d.labelPosition.x,y:d.labelPosition.y,angle:d.angle,maxLineWidth:d.labelLimit,points:d.pointA&&d.pointB&&d.pointC?[d.pointA,d.pointB,d.pointC]:void 0,line:d.labelLine};e[l].setAttributes(c)}}return e}layoutArcLabels(t,e,i,s,r,a){this._arcLeft.clear(),this._arcRight.clear(),this._ellipsisWidth=a;let o=0;i.forEach(c=>{c.attribute.outerRadius>o&&(o=c.attribute.outerRadius)}),s.forEach((c,u)=>{var p,g;const f=this._idToGraphic.get(c.id).attribute,_={x:(p=f==null?void 0:f.x)!==null&&p!==void 0?p:0,y:(g=f==null?void 0:f.y)!==null&&g!==void 0?g:0};if(!C(s[u])&&!C(r[u])){const m=s[u]?s[u]:null,y=r[u]?r[u]:{x1:0,x2:0,y1:0,y2:0},b=(f.startAngle+f.endAngle)/2,v=f.endAngle-f.startAngle,x=V$(f.endAngle-v/2),S=_p(_.x,_.y,f.outerRadius,b),k=_p(_.x,_.y,o+e.line.line1MinLength,b),A=new q$(m,S,k,x,v,b,f.innerRadius,f.outerRadius,_);A.pointA=_p(_.x,_.y,this.computeDatumRadius(2*_.x,2*_.y,f.outerRadius),A.middleAngle),A.labelSize={width:y.x2-y.x1,height:y.y2-y.y1},N$(A.quadrant)?this._arcRight.set(A.refDatum,A):$a(A.quadrant)&&this._arcLeft.set(A.refDatum,A)}});const l=Array.from(this._arcLeft.values()),h=Array.from(this._arcRight.values()),d=[];switch(t){case"inside":case"inside-inner":case"inside-outer":d.push(...this._layoutInsideLabels(h,e,i)),d.push(...this._layoutInsideLabels(l,e,i));break;default:d.push(...this._layoutOutsideLabels(h,e,i)),d.push(...this._layoutOutsideLabels(l,e,i))}return d}_layoutInsideLabels(t,e,i){var s,r;const a=e,o=a.spaceWidth,l=(s=a.position)!==null&&s!==void 0?s:"inside",h=(r=a.offsetRadius)!==null&&r!==void 0?r:-o;return t.forEach(d=>{var c,u,p;const{labelSize:g,radian:f}=d,_=d.innerRadius,m=d.outerRadius;let y;if(f=Math.PI?_:Math.max(_,g.height/2/Math.tan(f/2)),y=m-A-o}a.rotate!==!0&&(y=m-o);const b=this._getFormatLabelText(d.refDatum,y);d.labelText=b;const v=Math.min(y,d.labelSize.width),x=this._computeAlign(d,e);let S,k=0;if(l==="inside"&&(k=x==="left"?v:x==="right"?0:v/2),S=l==="inside-inner"?_-h+k:m+h-k,d.labelPosition=_p(d.circleCenter.x,d.circleCenter.y,S,d.middleAngle),d.labelLimit=v,Rs(v,0)||(d.labelVisible=!1),a.rotate!==!1){d.angle=(u=(c=e.textStyle)===null||c===void 0?void 0:c.angle)!==null&&u!==void 0?u:d.middleAngle;let A=(p=a.offsetAngle)!==null&&p!==void 0?p:0;["inside-inner","inside-outer"].includes(l)&&(A+=Math.PI/2),d.angle+=A}}),t}_layoutOutsideLabels(t,e,i){var s,r,a;const o=(s=i[0].attribute.x)!==null&&s!==void 0?s:0,l=2*((r=i[0].attribute.y)!==null&&r!==void 0?r:0),h=e.line.line2MinLength,d=e.layout,c=e.spaceWidth;if(t.forEach(p=>{const g=$a(p.quadrant)?-1:1;p.labelPosition={x:p.outerCenter.x+g*(p.labelSize.width/2+h+c),y:p.outerCenter.y}}),t.sort((p,g)=>p.labelPosition.y-g.labelPosition.y),e.coverEnable!==!1||d.strategy==="none"){for(const p of t){const{labelPosition:g,labelSize:f}=p;p.labelLimit=f.width,p.pointB=$a(p.quadrant)?{x:g.x+f.width/2+h+c,y:g.y}:{x:g.x-f.width/2-h-c,y:g.y},this._computeX(p,e,i)}e.coverEnable===!1&&d.strategy==="none"&&this._coverLabels(t)}else{const p=l/(((a=e.textStyle)===null||a===void 0?void 0:a.fontSize)||16);this._adjustY(t,p,e,i);const{minY:g,maxY:f}=t.reduce((y,b)=>{const{y1:v,y2:x}=b.getLabelBounds();return y.minY=Math.max(0,Math.min(v,y.minY)),y.maxY=Math.min(l,Math.max(x,y.maxY)),y},{minY:1/0,maxY:-1/0}),_=Math.max(Math.abs(l/2-g),Math.abs(f-l/2)),m=this._computeLayoutRadius(_,e,i);for(const y of t)this._computePointB(y,m,e,i),this._computeX(y,e,i)}const u=2*o;return t.forEach(p=>{var g,f;p.labelVisible&&(hs(p.pointB.x,h+c)||Rs(p.pointB.x,u-h-c))&&(p.labelVisible=!1),p.angle=(f=(g=e.textStyle)===null||g===void 0?void 0:g.angle)!==null&&f!==void 0?f:0,e.offsetAngle&&(p.angle+=e.offsetAngle),p.labelLine=Object.assign({},e.line)}),t}_computeX(t,e,i){var s;const r=t.circleCenter,a=2*r.x;r.y;let o=0;i.forEach(k=>{k.attribute.outerRadius>o&&(o=k.attribute.outerRadius)});const l=this.computeLayoutOuterRadius(o,e.width,e.height),h=e.line.line1MinLength,d=e.line.line2MinLength,c=(s=e.layout)===null||s===void 0?void 0:s.align,u=e.spaceWidth,{labelPosition:p,quadrant:g,pointB:f}=t;z(f.x*f.y)||(t.pointC={x:NaN,y:NaN},p.x=NaN,t.labelLimit=0);const _=this.computeRadius(l,e.width,e.height),m=$a(g)?-1:1;let y=0,b=(m>0?a-f.x:f.x)-d-u;c==="labelLine"&&(y=(_+h+d)*m+r.x,b=(m>0?a-y:y)-u);const v=this._getFormatLabelText(t.refDatum,b);t.labelText=v;let x=Math.min(b,t.labelSize.width);switch(c){case"labelLine":break;case"edge":y=m>0?a-x-u:x+u;break;default:y=f.x+m*d}x=Math.max(this._ellipsisWidth,x),t.labelLimit=x,t.pointC={x:y,y:p.y};const S=.5*(t.labelLimit0?a+0:0)-m*S:p.x=y+0+m*(u+S)}_computeAlign(t,e){var i,s,r,a,o,l;const h=e,d=(s=(i=h.textStyle)===null||i===void 0?void 0:i.textAlign)!==null&&s!==void 0?s:(r=h.textStyle)===null||r===void 0?void 0:r.align,c=(o=(a=h.layout)===null||a===void 0?void 0:a.textAlign)!==null&&o!==void 0?o:(l=h.layout)===null||l===void 0?void 0:l.align;return h.position!=="inside"?C(d)||d==="auto"?c==="edge"?$a(t.quadrant)?"left":"right":$a(t.quadrant)?"right":"left":d:C(d)||d==="auto"?"center":d}_getFormatLabelText(t,e){var i;return(i=t==null?void 0:t.text)!==null&&i!==void 0?i:""}_adjustY(t,e,i,s){var r;s[0].attribute.x;const a=2*((r=s[0].attribute.y)!==null&&r!==void 0?r:0),o=i.layout;if(o.strategy==="vertical"){let l,h=0;const d=t.length;if(d<=0)return;for(let u=0;u=0&&t[u].getLabelBounds().y2>a;u--)t[u].labelVisible=!1}else if(o.strategy!=="none"){const l=t.map((c,u)=>({arc:c,originIndex:u,priorityIndex:0}));l.sort((c,u)=>u.arc.radian-c.arc.radian),l.forEach((c,u)=>{c.priorityIndex=u,c.arc.labelVisible=!1});let h=1/0,d=-1/0;for(let c=0;cx?u.labelPosition.y=x-m.labelSize.height/2-u.labelSize.height/2:this._twoWayShift(t,u,m,f)}else if(g!==-1&&f===-1){const x=_.labelPosition.y;pS?(u.labelPosition.y=S-m.labelSize.height/2-u.labelSize.height/2,this._twoWayShift(t,_,u,l[c].originIndex)):p=0&&o0&&hc)return a}a=o}return i}_findNextVisibleIndex(t,e,i,s){const r=(i-e)*s;for(let a=1;a<=r;a++){const o=e+a*s;if(t[o].labelVisible)return o}return-1}_computePointB(t,e,i,s){const r=i;let a=0;s.forEach(h=>{h.attribute.outerRadius>a&&(a=h.attribute.outerRadius)});const o=this.computeLayoutOuterRadius(a,i.width,i.height),l=r.line.line1MinLength;if(r.layout.strategy==="none")t.pointB={x:t.outerCenter.x,y:t.outerCenter.y};else{const h=t.circleCenter,d=this.computeRadius(o,i.width,i.height),{labelPosition:c,quadrant:u}=t,p=e-Math.max(d+l,t.outerRadius),g=Math.sqrt(e**2-Math.abs(h.y-c.y)**2)-p;z(g)?t.pointB={x:h.x+g*($a(u)?-1:1),y:c.y}:t.pointB={x:NaN,y:NaN}}}_storeY(t){for(const e of t)e.labelVisible&&(e.lastLabelY=e.labelPosition.y)}_computeYRange(t,e,i){const s=t.circleCenter,r={width:2*s.x,height:2*s.y};let a=0;i.forEach(x=>{x.attribute.outerRadius>a&&(a=x.attribute.outerRadius)});const o=this.computeLayoutOuterRadius(a,e.width,e.height),l=e.line.line1MinLength,{width:h,height:d}=r,c=this.computeRadius(o,e.width,e.height),u=this._computeLayoutRadius(d/2,e,i),p=Math.abs(t.center.x-h/2),g=t.center.y-d/2;let f,_,m;if(Ki(h/2,p))f=0,_=1,m=-g;else if(Ki(d/2,g))f=1,_=0,m=-p;else{const x=-1/(g/p);f=x,_=-1,m=g-x*p}const y=G$(f,_,m,l+c-u,0,u);if(y.length<2)return;let b,v;y[0].x>y[1].x&&y.reverse(),y[0].x<0?Ki(y[0].y,y[1].y)?Rs(t.middleAngle,-Math.PI)&&hs(t.middleAngle,0)||Rs(t.middleAngle,Math.PI)&&hs(t.middleAngle,2*Math.PI)?(b=0,v=y[1].y+d/2):(b=y[1].y+d/2,v=d):y[0].y{c.attribute.outerRadius>o&&(o=c.attribute.outerRadius)});const l=this.computeLayoutOuterRadius(o,e.width,e.height),h=this.computeRadius(l,e.width,e.height)+a,d=h-r;return Math.max((d**2+t**2)/(2*d),h)}_findNeighborIndex(t,e){const i=e.originIndex;let s=-1,r=-1;for(let a=i-1;a>=0;a--)if(t[a].labelVisible){s=a;break}for(let a=i+1;af(t.attribute,_,new Pe)}this._setStatesOfLabelLine(g)}return g}computeRadius(t,e,i,s){return this.computeLayoutRadius(e||0,i||0)*t*(C(s)?1:s)}computeLayoutRadius(t,e){return Math.min(t/2,e/2)}_canPlaceInside(t,e){return this.attribute.position==="inside"}computeLayoutOuterRadius(t,e,i){return t/(Math.min(e,i)/2)}computeDatumRadius(t,e,i){const s=this.computeLayoutOuterRadius(i,t,e);return this.computeLayoutRadius(t||0,e||0)*s}}gm.defaultAttributes={coverEnable:!1,spaceWidth:5,layoutArcGap:6,textStyle:{visible:!0,fontSize:14,fontWeight:"normal",fillOpacity:1,boundsPadding:[-1,0,-1,0]},position:"outside",line:{visible:!0,line1MinLength:20,line2MinLength:10},layout:{align:"arc",strategy:"priority",tangentConstraint:!0}};class fm extends qs{constructor(t){super(Y({},fm.defaultAttributes,t)),this.name="line-label"}getGraphicBounds(t,e={},i="end"){var s;if(t.type!=="area")return super.getGraphicBounds(t,e);const r=((s=t==null?void 0:t.attribute)===null||s===void 0?void 0:s.points)||[e],a=i==="start"?0:r.length-1;return{x1:r[a].x,x2:r[a].x,y1:r[a].y,y2:r[a].y}}labeling(t,e,i="end",s=0){return AB(t,e,i,s)}}fm.defaultAttributes={textStyle:{fill:"#000"},position:"end",offset:6};class _m extends qs{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},_m.defaultAttributes,t)),this.name="line-data-label"}labeling(t,e,i="top",s=0){return SB(t,e,i,s)}}_m.defaultAttributes={textStyle:{fill:"#000"},position:"top",offset:5};const Z$={rect:Oc,symbol:pm,arc:gm,line:kB,area:fm,"line-data":_m};class mm extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},mm.defaultAttributes,t)),this.name="data-label"}render(){var t;const{dataLabels:e,size:i}=this.attribute;if(!e||e.length===0)return;const{width:s=0,height:r=0,padding:a}=i||{};if(!s||!r||!z(r*s))return;this._componentMap||(this._componentMap=new Map);const o=xB(s,r,a),l=o.bitmap(),h=new Map,d=this._componentMap;for(let c=0;c{h.get(u)||this.removeChild(c)}),this._componentMap=h}setLocation(t){this.translateTo(t.x,t.y)}disableAnimation(){this._componentMap.forEach(t=>{t.disableAnimation()})}enableAnimation(){this._componentMap.forEach(t=>{t.enableAnimation()})}}mm.defaultAttributes={pickable:!1};function Fx(){We(),Or(),am(),ss()}function zx(){We(),Or(),Rh(),ss()}Fx();class Cr extends ui{getStartAngle(){return js(this._startAngle)}getEndAngle(){return js(this._endAngle)}getMainSegmentPoints(){return this._mainSegmentPoints}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Cr.defaultAttributes,t)),this.name="segment",this.key="segment",this.lines=[]}render(){this.removeAllChild(!0),this._reset();const{startSymbol:t,endSymbol:e,lineStyle:i,state:s,visible:r=!0,multiSegment:a,mainSegmentIndex:o}=this.attribute;if(!r)return;this._computeLineAngle();const l=this._getMainSegmentPoints(),h=this._renderSymbol(t,l,"start"),d=this._renderSymbol(e,l,"end");if(this.startSymbol=h,this.endSymbol=d,a){const c=[...this.attribute.points];if(z(o))c[o]=this._clipPoints(c[o]);else{const u=this._clipPoints(yv(c));c[0][0]=u[0],c[c.length-1][c[c.length-1].length-1]=u[u.length-1]}c.forEach((u,p)=>{var g,f;const _=pt.line(Object.assign(Object.assign({points:u},V(i)?(g=i[p])!==null&&g!==void 0?g:i[i.length-1]:i),{fill:!1}));_.name=`${this.name}-line`,_.id=this._getNodeId("line"+p),_t(s==null?void 0:s.line)||(_.states=V(s.line)?(f=s.line[p])!==null&&f!==void 0?f:s.line[s.line.length-1]:s.line),this.add(_),this.lines.push(_)})}else{let c=pt.line;H(i)[0].cornerRadius&&(c=pt.polygon);const u=c(Object.assign(Object.assign({points:this._clipPoints(this.attribute.points)},H(i)[0]),{fill:!1,closePath:!1}));u.name=`${this.name}-line`,u.id=this._getNodeId("line"),_t(s==null?void 0:s.line)||(u.states=[].concat(s.line)[0]),this.add(u),this.lines.push(u)}}_computeStartRotate(t){return t+Math.PI/2}_computeEndRotate(t){return t+Math.PI/2}_renderSymbol(t,e,i){if(!e.length)return;const{autoRotate:s=!0}=t;let r;if(t&&t.visible){const a=this.getStartAngle(),o=this.getEndAngle(),{state:l}=this.attribute,h=e[0],d=e[e.length-1],{refX:c=0,refY:u=0,refAngle:p=0,style:g,symbolType:f,size:_=12}=t;let m,y;i==="start"?(m={x:h.x+(z(a)?c*Math.cos(a)+u*Math.cos(a-Math.PI/2):0),y:h.y+(z(a)?c*Math.sin(a)+u*Math.sin(a-Math.PI/2):0)},y=this._computeStartRotate(this._startAngle)):(m={x:d.x+(z(o)?c*Math.cos(o)+u*Math.cos(o-Math.PI/2):0),y:d.y+(z(o)?c*Math.sin(o)+u*Math.sin(o-Math.PI/2):0)},y=this._computeEndRotate(this._endAngle)),r=pt.symbol(Object.assign(Object.assign(Object.assign({},m),{symbolType:f,size:_,angle:s?y+p:0,strokeBoundsBuffer:0}),g)),r.name=`${this.name}-${i}-symbol`,r.id=this._getNodeId(`${i}-symbol`),_t(l==null?void 0:l.symbol)||(r.states=l.symbol),i==="start"?_t(l==null?void 0:l.startSymbol)||(r.states=l.startSymbol):_t(l==null?void 0:l.endSymbol)||(r.states=l.endSymbol),this.add(r)}return r}_getMainSegmentPoints(){if(this._mainSegmentPoints)return this._mainSegmentPoints;const{points:t,multiSegment:e,mainSegmentIndex:i}=this.attribute;let s;return s=e?z(i)?t[i]:yv(t):t,this._mainSegmentPoints=s,s}_clipPoints(t){const{startSymbol:e={},endSymbol:i={}}=this.attribute;let s=t;if(e.visible){const r=e.clip?e.size||10:0;s=[{x:t[0].x-r/2*(Math.cos(this._startAngle)||0),y:t[0].y-r/2*(Math.sin(this._startAngle)||0)},...s.slice(1)]}if(i.visible){const r=i.clip?i.size||10:0,a={x:t[t.length-1].x-r/2*(Math.cos(this._endAngle)||0),y:t[t.length-1].y-r/2*(Math.sin(this._endAngle)||0)};s=[...s.slice(0,s.length-1),a]}return s}_computeLineAngle(){const t=this._getMainSegmentPoints();if(t.length<=1)return;const e=t[0],i=t[1],s=t[t.length-2],r=t[t.length-1],a=[e.x-i.x,e.y-i.y],o=Math.atan2(a[1],a[0]),l=[r.x-s.x,r.y-s.y],h=Math.atan2(l[1],l[0]);this._startAngle=o,this._endAngle=h}_reset(){this.startSymbol=null,this.endSymbol=null,this._startAngle=null,this._endAngle=null,this._mainSegmentPoints=null}}Cr.defaultAttributes={visible:!0,lineStyle:{lineWidth:1,stroke:"#000"},startSymbol:{visible:!1,autoRotate:!0,symbolType:"triangle",size:12,refX:0,refY:0,refAngle:0,style:{fill:"#000",zIndex:1}},endSymbol:{visible:!1,autoRotate:!0,symbolType:"triangle",size:12,refX:0,refY:0,refAngle:0,style:{fill:"#000",zIndex:1}}};zx();class hb extends Cr{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Cr.defaultAttributes,t)),this.name="arc-segment",this.key="arc-segment",this.isReverseArc=!1}getStartAngle(){const t=this.isReverseArc?this._startAngle+Math.PI/2:this._startAngle-Math.PI/2;return t<0?t+2*Math.PI:t>2*Math.PI?t-2*Math.PI:t}getEndAngle(){const t=this.isReverseArc?this._endAngle-Math.PI/2:this._endAngle+Math.PI/2;return t<0?t+2*Math.PI:t>2*Math.PI?t-2*Math.PI:t}getMainSegmentPoints(){return this._mainSegmentPoints}_computeStartRotate(t){return this.isReverseArc?t+Math.PI:t}_computeEndRotate(t){return this.isReverseArc?t:t+Math.PI}render(){this.removeAllChild(!0),this._reset();const{startSymbol:t,endSymbol:e,lineStyle:i,state:s,visible:r=!0,radius:a,startAngle:o,endAngle:l,center:h}=this.attribute;if(!r)return;this._startAngle=o,this._endAngle=l,this.isReverseArc=o>l;const d={x:h.x+a*Math.cos(this._startAngle),y:h.y+a*Math.sin(this._startAngle)},c={x:h.x+a*Math.cos(this._endAngle),y:h.y+a*Math.sin(this._endAngle)};this._mainSegmentPoints=[d,c];const u=this._renderSymbol(t,this._mainSegmentPoints,"start"),p=this._renderSymbol(e,this._mainSegmentPoints,"end");this.startSymbol=u,this.endSymbol=p;const g=pt.arc(Object.assign({x:h.x,y:h.y,startAngle:o,endAngle:l,innerRadius:a,outerRadius:a},i));g.name=`${this.name}-line`,g.id=this._getNodeId("arc"),_t(s==null?void 0:s.line)||(g.states=[].concat(s.line)[0]),this.add(g),this.line=g}}var Ni;(function(n){n.innerView="inner-view",n.axisContainer="axis-container",n.labelContainer="axis-label-container",n.tickContainer="axis-tick-container",n.tick="axis-tick",n.subTick="axis-sub-tick",n.label="axis-label",n.title="axis-title",n.gridContainer="axis-grid-container",n.grid="axis-grid",n.gridRegion="axis-grid-region",n.line="axis-line",n.background="axis-background",n.axisLabelBackground="axis-label-background"})(Ni||(Ni={}));var Cl;(function(n){n.selected="selected",n.selectedReverse="selected_reverse",n.hover="hover",n.hoverReverse="hover_reverse"})(Cl||(Cl={}));const Is={[Cl.selectedReverse]:{},[Cl.selected]:{},[Cl.hover]:{},[Cl.hoverReverse]:{}},Pf={title:{space:4,padding:0,textStyle:{fontSize:12,fill:"#333333",fontWeight:"normal",fillOpacity:1}},label:{visible:!0,inside:!1,space:4,padding:0,style:{fontSize:12,fill:"#333",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#000",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#999",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#000",strokeOpacity:1}}},hM=(n=0)=>{if(n<0)for(;n<0;)n+=li;else if(n>0)for(;n>li;)n-=li;return n};function mp(n,t,e){return!hs(n,t,0,1e-6)&&!Rs(n,e,0,1e-6)}function MB(n,t,e,i){const s=xu(Object.assign({text:e},i)),r=s.width(),a=s.height(),o=hM(Math.atan2(t[1],t[0]))-Math.PI,l=3*Math.PI/4,h=Math.PI/4,d=Math.PI/2,c=n.x;let u=0;u=mp(o,-l,-h)?((o+l)/d-.5)*r:mp(o,h,l)?(.5-(o-h)/d)*r:Math.cos(o)>=0?.5*r:.5*-r;const p=c-u,g=n.y;let f=0;return f=mp(o,-l,-h)?.5*-a:mp(o,h,l)?.5*a:Math.cos(o)>=0?(.5-(h-o)/d)*a:(.5-hM(o-l)/d)*a,{x:p,y:g-f}}function wB(n){const t={};return fs(n,e=>{e.type!=="group"&&e.id&&(t[e.id]=e)}),t}function jx(n,t){return{x:n.x+t[0],y:n.y+t[1]}}function db(n,t,e,i=!1,s=!1){const r=[t.x-e.x,t.y-e.y];return fB(r,(i?-1:1)*(s?-1:1)*n/d$(r))}function J$(n){let t="center",e="middle";return t=(n=js(n))>=Math.PI*(5/3)||n<=Math.PI*(1/3)?"left":n>=Math.PI*(2/3)&&n<=Math.PI*(4/3)?"right":"center",e=n>=Math.PI*(7/6)&&n<=Math.PI*(11/6)?"bottom":n>=Math.PI*(1/6)&&n<=Math.PI*(5/6)?"top":"middle",{align:t,baseline:e}}function Q$(n,t,e,i,s,r,a){const o=Ue({x:0,y:0},e,n),l=jx(o,db(i,o,t,s));return MB(l,db(i||1,l,t,s),r,a)}function CB(n,t,e,i,s){const r=[],a=s-i;for(let o=0;o{s===0?e=`M${i.x},${i.y}`:e+=`L${i.x},${i.y}`}),t&&(e+="Z")),e}const PB=(n,t,e)=>{const i=n.target;return i!==e&&i.name&&!_t(i.states)?(i.addState(Ge.hover,!0),fs(t,s=>{s!==i&&s.name&&!_t(s.states)&&s.addState(Ge.hoverReverse,!0)}),i):e},EB=(n,t,e)=>e&&(fs(t,i=>{i.name&&!_t(i.states)&&(i.removeState(Ge.hoverReverse),i.removeState(Ge.hover))}),null),RB=(n,t,e)=>{const i=n.target;return e===i&&i.hasState(Ge.selected)?(fs(t,s=>{s.name&&!_t(s.states)&&(s.removeState(Ge.selectedReverse),s.removeState(Ge.selected))}),null):i.name&&!_t(i.states)?(i.addState(Ge.selected,!0),fs(t,s=>{s!==i&&s.name&&!_t(s.states)&&s.addState(Ge.selectedReverse,!0)}),i):e};class BB extends ui{constructor(){super(...arguments),this.name="axis",this.data=[],this.tickLineItems=[],this.subTickLineItems=[],this.axisLabelLayerSize={},this.axisLabelsContainer=null,this._onHover=t=>{this._lastHover=PB(t,this.axisContainer,this._lastHover)},this._onUnHover=t=>{this._lastHover=EB(t,this.axisContainer,this._lastHover)},this._onClick=t=>{this._lastSelect=RB(t,this.axisContainer,this._lastSelect)}}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}getBoundsWithoutRender(t){const e=on(this.attribute);Y(this.attribute,t);const i=pt.group({x:this.attribute.x,y:this.attribute.y});return this.add(i),this._renderInner(i),this.removeChild(i),this.attribute=e,i.AABBBounds}render(){this._prevInnerView=this._innerView&&wB(this._innerView),this.removeAllChild(!0),this._innerView=pt.group({x:0,y:0,pickable:!1}),this.add(this._innerView),this._renderInner(this._innerView),this._bindEvent()}_bindEvent(){if(this.attribute.disableTriggerEvent)return;const{hover:t,select:e}=this.attribute;t&&(this._innerView.addEventListener("pointermove",this._onHover),this._innerView.addEventListener("pointerout",this._onUnHover)),e&&this._innerView.addEventListener("pointerdown",this._onClick)}_renderInner(t){const{title:e,label:i,tick:s,line:r,items:a}=this.attribute,o=pt.group({x:0,y:0,zIndex:1});if(o.name=Ni.axisContainer,o.id=this._getNodeId("container"),o.setMode(this.mode),this.axisContainer=o,t.add(o),r&&r.visible&&this.renderLine(o),a&&a.length&&(this.data=this._transformItems(a[0]),s&&s.visible&&this.renderTicks(o),i&&i.visible)){const l=pt.group({x:0,y:0,pickable:!1});l.name=Ni.labelContainer,l.id=this._getNodeId("label-container"),this.axisLabelsContainer=l,o.add(l),a.forEach((h,d)=>{const c=this.renderLabels(l,h,d),u=c.getChildren();this.beforeLabelsOverlap(u,h,c,d,a.length),this.handleLabelsOverlap(u,h,c,d,a.length),this.afterLabelsOverlap(u,h,c,d,a.length);let p=0,g=0,f="center",_="middle";u.forEach(m=>{var y;const b=m.attribute,v=(y=b.angle)!==null&&y!==void 0?y:0,x=m.AABBBounds;let S=x.width(),k=x.height();v&&(S=Math.abs(S*Math.cos(v)),k=Math.abs(k*Math.sin(v))),p=Math.max(p,S),g=Math.max(g,k),f=b.textAlign,_=b.textBaseline}),this.axisLabelLayerSize[d]={width:p,height:g,textAlign:f,textBaseline:_}})}e&&e.visible&&this.renderTitle(o)}renderTicks(t){const e=this.getTickLineItems(),i=pt.group({x:0,y:0,pickable:!1});i.name=Ni.tickContainer,i.id=this._getNodeId("tick-container"),t.add(i),e.forEach((r,a)=>{var o;const l=pt.line(Object.assign({},this._getTickLineAttribute("tick",r,a,e)));if(l.name=Ni.tick,l.id=this._getNodeId(r.id),_t((o=this.attribute.tick)===null||o===void 0?void 0:o.state))l.states=Et;else{const h=this.data[a],d=Y({},Et,this.attribute.tick.state);Object.keys(d).forEach(c=>{G(d[c])&&(d[c]=d[c](h.rawValue,a,h,this.data))}),l.states=d}i.add(l)}),this.tickLineItems=e;const{subTick:s}=this.attribute;if(s&&s.visible){const r=this.getSubTickLineItems();r.length&&r.forEach((a,o)=>{const l=pt.line(Object.assign({},this._getTickLineAttribute("subTick",a,o,e)));if(l.name=Ni.subTick,l.id=this._getNodeId(`${o}`),_t(s.state))l.states=Et;else{const h=Y({},Et,s.state);Object.keys(h).forEach(d=>{G(h[d])&&(h[d]=h[d](a.value,o,a,e))}),l.states=h}i.add(l)}),this.subTickLineItems=r}}renderLabels(t,e,i){const{dataFilter:s}=this.attribute.label;s&&G(s)&&(e=s(e,i));const r=this._transformItems(e),a=pt.group({x:0,y:0,pickable:!1});return a.name=`${Ni.labelContainer}-layer-${i}`,a.id=this._getNodeId(`label-container-layer-${i}`),t.add(a),r.forEach((o,l)=>{var h;const d=this._getLabelAttribute(o,l,r,i),c=Bc(d);if(c.name=Ni.label,c.id=this._getNodeId(`layer${i}-label-${o.id}`),_t((h=this.attribute.label)===null||h===void 0?void 0:h.state))c.states=Et;else{const u=Y({},Et,this.attribute.label.state);Object.keys(u).forEach(p=>{G(u[p])&&(u[p]=u[p](o,l,r,i))}),c.states=u}a.add(c)}),a}renderTitle(t){const e=this.getTitleAttribute(),i=new rs(Object.assign({},e));i.name=Ni.title,i.id=this._getNodeId("title"),t.add(i)}getVerticalCoord(t,e,i){return jx(t,this.getVerticalVector(e,i,t))}getTextAlign(t){let e="center";return Ki(t[0],0)?Ki(t[1],0)?Object.is(t[1],-0)?e="start":Object.is(t[0],-0)&&(e="end"):e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e}getTickLineItems(){const{tick:t}=this.attribute,e=this.data,i=[],{alignWithLabel:s,inside:r=!1,length:a,dataFilter:o}=t;let l=1;return e.length>=2&&(l=e[1].value-e[0].value),(o&&G(o)?o(e):e).forEach(h=>{let d=h.point,c=h.value;if(!s){const p=h.value-l/2;if(this.isInValidValue(p))return;d=this.getTickCoord(p),c=p}const u=this.getVerticalCoord(d,a,r);if(this.mode==="3d"){const p=this.getVerticalVector(a,r,d);let g=0,f=0;Gt(p[0])>Gt(p[1])?g=ee/2*(u.x>d.x?1:-1):f=ee/2*(u.y>d.y?-1:1),i.push({start:d,end:u,value:c,id:`tick-${h.id}`,anchor:[d.x,d.y],alpha:g,beta:f})}else i.push({start:d,end:u,value:c,id:`tick-${h.id}`})}),i}getSubTickLineItems(){const{subTick:t}=this.attribute,e=[],{count:i=4,inside:s=!1,length:r=2}=t,a=this.tickLineItems,o=a.length;if(o>=2)for(let l=0;l0&&(g[1]===0?u+=(this.axisLabelLayerSize[s-1].height+Pt(this.attribute,"label.space",4))*s:u+=(this.axisLabelLayerSize[s-1].width+Pt(this.attribute,"label.space",4))*s);const f=this.getVerticalCoord(t.point,u,l),_=this.getVerticalVector(u||1,l,f),m=h?h(`${t.label}`,t,e,i,s):t.label;let{style:y}=this.attribute.label;y=G(y)?Y({},Pf.label.style,y(t,e,i,s)):y;const b=this.getLabelAlign(_,l,y.angle);return y=Y(b,y),G(y.text)&&(y.text=y.text({label:t.label,value:t.rawValue,index:t.index,layer:s})),Object.assign(Object.assign(Object.assign({},this.getLabelPosition(f,_,m,y)),{text:c??m,_originText:t.label,lineHeight:y==null?void 0:y.fontSize,type:d}),y)}getLabelPosition(t,e,i,s){return t}_transformItems(t){const e=[];return t.forEach(i=>{var s;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(s=i.id)!==null&&s!==void 0?s:i.label}))}),e}release(){super.release(),this._prevInnerView=null,this._innerView=null}}function tY(n,t,e,i,s){return{x:(n-i)*Math.cos(e)+(t-s)*Math.sin(e)+i,y:(n-i)*Math.sin(e)+(s-t)*Math.cos(e)+s}}function eY(n){const t=n.AABBBounds;return{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,centerX:n.attribute.x,centerY:n.attribute.y,angle:n.attribute.angle}}function IB(n){n.forEach(t=>{if(t.rotatedBounds||!t.attribute.angle)return;const e=eY(t),i=tY(e.centerX,e.centerY,e.angle,t.attribute.x,t.attribute.y),s=i.x-e.centerX,r=i.y-e.centerY;e.x1+=s,e.x2+=s,e.y1+=r,e.y2+=r,e.centerX+=s,e.centerY+=r,t.rotatedBounds=e})}function iY(n,t){return gc(n.AABBBounds,t.AABBBounds,!1)&&(!n.rotatedBounds||!t.rotatedBounds||EF(n.rotatedBounds,t.rotatedBounds,!0))}const dM={parity:function(n){return n.filter((t,e)=>e%2?t.setAttribute("opacity",0):1)},greedy:function(n,t){let e;return n.filter((i,s)=>s&&Hx(e,i,t)?i.setAttribute("opacity",0):(e=i,1))}};function Hx(n,t,e){const i=n.AABBBounds,s=t.AABBBounds;return e>Math.max(s.x1-i.x2,i.x1-s.x2,s.y1-i.y2,i.y1-s.y2)&&(!n.rotatedBounds||!t.rotatedBounds||e>Math.max(t.rotatedBounds.x1-n.rotatedBounds.x2,n.rotatedBounds.x1-t.rotatedBounds.x2,t.rotatedBounds.y1-n.rotatedBounds.y2,n.rotatedBounds.y1-t.rotatedBounds.y2))}function cM(n,t){for(let e,i=1,s=n.length,r=n[0];i1&&t.height()>1}function sY(n){return n.forEach(t=>t.setAttribute("opacity",1)),n}function rY(n,t){if(_t(n))return;const e=n.filter(nY);if(_t(e))return;let i;i=sY(e),IB(i);const{method:s="parity",separation:r=0}=t,a=G(s)?s:dM[s]||dM.parity;if(i.length>=3&&cM(i,r)){do i=a(i,r);while(i.length>=3&&cM(i,r));if(i.length<3||t.lastVisible){const o=ca(e);if(!o.attribute.opacity){const l=i.length;if(l>1){o.setAttribute("opacity",1);for(let h=l-1;h>=0&&Hx(i[h],o,r);h--)i[h].setAttribute("opacity",0)}}}}e.forEach(o=>{o.setAttribute("visible",!!o.attribute.opacity)})}function aY(n,t){if(_t(n))return;const{orient:e,labelRotateAngle:i=[0,45,90]}=t;if(i.length===0||n.some(a=>!!a.attribute.angle))return;let s=0,r=0;for(i&&i.length>0&&(r=i.length);s{o.attribute.angle=Jt(a)}),lY(e,n),!oY(n))break}}function oY(n){for(let t=1;t0)for(;n>=2*Math.PI;)n-=2*Math.PI;return n}function hY(n,t){t.forEach((e,i)=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},LB(n,e.attribute.angle)),{angle:vm(e.attribute.angle)}))})}function dY(n,t){t.forEach(e=>{e.attribute.angle&&e.setAttributes(Object.assign(Object.assign({},OB(n,e.attribute.angle)),{angle:vm(e.attribute.angle)}))})}function OB(n,t=0){let e=["center","left","left","left","center","right","right","right","left"],i=["top","top","middle","bottom","bottom","bottom","middle","top","top"];n==="top"&&(e=["center","right","right","right","center","left","left","left","right"],i=["bottom","bottom","middle","top","top","top","middle","bottom","bottom"]);const s=(t=vm(t))/(.5*Math.PI);let r;return r=s===Math.floor(s)?2*Math.floor(s):2*Math.floor(s)+1,{textAlign:e[r],textBaseline:i[r]}}function LB(n,t=0){let e=["right","right","center","left","center","left","center","right","right"],i=["middle","middle","top","top","middle","middle","bottom","bottom","middle"];n==="right"&&(e=["left","right","right","right","left","left","left","left","right"],i=["middle","bottom","middle","top","top","top","middle","bottom","bottom"]);const s=(t=vm(t))/(.5*Math.PI);let r;return r=s===Math.floor(s)?2*Math.floor(s):2*Math.floor(s)+1,{textAlign:e[r],textBaseline:i[r]}}function cY(n,t){const{limitLength:e,verticalLimitLength:i,ellipsis:s="...",orient:r,axisLength:a}=t;if(_t(n)||!z(e))return;const o=Math.sin(Math.PI/10);n.forEach(l=>{var h;const d=l.attribute.angle,c=!C(d),u=c?Math.cos(d):1,p=c?Math.sin(d):0,g=!c||Math.abs(p)<=o,f=c&&Math.abs(u)<=o,_=r==="top"||r==="bottom";if(_&&(f&&Math.floor(l.AABBBounds.height())<=e||g&&Math.floor(l.AABBBounds.width())<=i))return;const m=l.attribute.direction;if(!_&&(m==="vertical"&&Math.floor(l.AABBBounds.height())<=i||m!=="vertical"&&(g&&Math.floor(l.AABBBounds.width())<=e||f&&Math.floor(l.AABBBounds.height())<=i)))return;let y=null;if(g||f)y=_?g?i:e:m==="vertical"||f?i:e;else if(_){const{x1:b,x2:v}=l.AABBBounds,x=p/u;y=x>0&&b<=a&&e/x+b>a?(a-b)/Math.abs(u):x<0&&v>=0&&e/x+v<0?v/Math.abs(u):Math.abs(e/p)}else y=Math.abs(e/u);z(l.attribute.maxLineWidth)&&(y=z(y)?Math.min(l.attribute.maxLineWidth,y):l.attribute.maxLineWidth),l.setAttributes({maxLineWidth:y,ellipsis:(h=l.attribute.ellipsis)!==null&&h!==void 0?h:s})})}function uY(n,t,e,i,s){if(i==="right"||i==="left"){if(s==="left"){const r=i==="right"?0:-1;n.forEach(a=>{a.setAttributes({x:t+e*r,textAlign:"left"})})}else if(s==="right"){const r=i==="right"?1:0;n.forEach(a=>{a.setAttributes({x:t+e*r,textAlign:"right"})})}else if(s==="center"){const r=i==="right"?1:-1;n.forEach(a=>{a.setAttributes({x:t+.5*e*r,textAlign:"center"})})}}else if(i==="bottom"||i==="top"){if(s==="top"){const r=i==="bottom"?0:-1;n.forEach(a=>{a.setAttributes({y:t+e*r,textBaseline:"top"})})}else if(s==="bottom"){const r=i==="bottom"?1:0;n.forEach(a=>{a.setAttributes({y:t+e*r,textBaseline:"bottom"})})}else if(s==="middle"){const r=i==="bottom"?1:-1;n.forEach(a=>{a.setAttributes({y:t+.5*e*r,textBaseline:"middle"})})}}}class DB{isInValidValue(t){return t<0||t>1}getTickCoord(t){const{start:e}=this.attribute,i=this.getRelativeVector();return{x:e.x+i[0]*t,y:e.y+i[1]*t}}getRelativeVector(t){const{start:e,end:i}=this.attribute;return[i.x-e.x,i.y-e.y]}getVerticalVector(t,e=!1,i){const{verticalFactor:s=1}=this.attribute,r=this.getRelativeVector(),a=c$(r),o=[a[1],-1*a[0]];return fB(o,t*(e?1:-1)*s)}}function FB(){We(),Or(),Ha(),Ks()}function pY(){FB(),Lr()}function gY(){FB(),Q4()}function fY(){We(),Au()}function _Y(){We(),Au()}var uM=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{b+=this.axisLabelLayerSize[$].width+(K>0?R:0)});const B=this.axisLabelLayerSize[0].textAlign,I=B==="start"||B==="left",D=B==="center",F=y[1]>0;b=_===1?F?I?b:D?b/2:R:I?R:D?b/2:b:F?I?R:D?b/2:b:I?b:D?b/2:R}}let v=0;!((e=this.attribute.tick)===null||e===void 0)&&e.visible&&this.attribute.tick.inside===!1&&(v=this.attribute.tick.length||4),!((i=this.attribute.subTick)===null||i===void 0)&&i.visible&&this.attribute.subTick.inside===!1&&(v=Math.max(v,this.attribute.subTick.length||2));const x=v+b+a,S=this.getVerticalCoord(m,x,!1),k=this.getVerticalVector(x,!1,{x:0,y:0});let A,T,{angle:M}=p;if(A=r==="start"?"start":r==="end"?"end":"center",C(M)&&l){M=g$(y,[1,0],!0);const{verticalFactor:R=1}=this.attribute;T=-1*R===1?"bottom":"top"}else A=this.getTextAlign(k),T=this.getTextBaseline(k,!1);let w=u;if(C(w)){const{verticalLimitSize:R,verticalMinSize:O,orient:B}=this.attribute,I=Math.min(R||1/0,O||1/0);if(z(I))if(B==="bottom"||B==="top")if(M!==Math.PI/2){const D=Math.abs(Math.cos(M??0));w=D<1e-6?1/0:this.attribute.end.x/D}else w=I-x;else if(M&&M!==0){const D=Math.abs(Math.sin(M));w=D<1e-6?1/0:this.attribute.end.y/D}else w=I-x}const E=Object.assign(Object.assign(Object.assign({},S),p),{maxWidth:w,textStyle:Object.assign({textAlign:A,textBaseline:T},o),state:{text:Y({},Is,c.text),shape:Y({},Is,c.shape),panel:Y({},Is,c.background)}});return E.angle=M,h&&h.visible&&(E.shape=Object.assign({visible:!0},h.style),h.space&&(E.space=h.space)),d&&d.visible&&(E.panel=Object.assign({visible:!0},d.style)),E}getTextBaseline(t,e){let i="middle";const{verticalFactor:s=1}=this.attribute,r=(e?1:-1)*s;return Ki(t[1],0)?i=!Ki(t[0],0)||Object.is(t[0],-0)||Object.is(t[1],-0)?"middle":r===1?"bottom":"top":t[1]>0?i="top":t[1]<0&&(i="bottom"),i}getLabelAlign(t,e,i){const s=this.attribute.orient;if(["top","bottom","right","left"].includes(s)||t[0]===0&&t[1]===0){if(s==="top"||s==="bottom")return OB(e?s==="bottom"?"top":"bottom":s,i);if(s==="left"||s==="right")return LB(e?s==="left"?"right":"left":s,i)}return{textAlign:this.getTextAlign(t),textBaseline:this.getTextBaseline(t,e)}}beforeLabelsOverlap(t,e,i,s,r){var a,o,l,h;const{flush:d=!1}=this.attribute.label||{};if(d&&t.length){const{orient:c,start:u,end:p}=this.attribute,g=c==="bottom"||c==="top",f=t[0],_=ca(t),m=g?f.attribute.x>_.attribute.x:f.attribute.y<_.attribute.y;if(g){const y=m?_:f,b=m?f:_,v=u.x,x=p.x,S=y.AABBBounds.x1,k=b.AABBBounds.x2;Sx&&(b.attribute.angle?b.setAttributes({dx:((o=b.attribute.dx)!==null&&o!==void 0?o:0)+x-k}):b.setAttributes({x,textAlign:"right"}))}else{const y=m?_:f,b=m?f:_,v=y.AABBBounds.y2,x=b.AABBBounds.y1,S=u.y,k=p.y;xk&&(y.attribute.angle?y.setAttributes({dy:((h=y.attribute.dy)!==null&&h!==void 0?h:0)+k-v}):y.setAttributes({y:k,textBaseline:"bottom"}))}}}handleLabelsOverlap(t,e,i,s,r){if(_t(t))return;const{verticalLimitSize:a,label:o,orient:l}=this.attribute,h=this._getAxisLabelLimitLength(a,r),{layoutFunc:d,autoRotate:c,autoRotateAngle:u,autoLimit:p,limitEllipsis:g,autoHide:f,autoHideMethod:_,autoHideSeparation:m,lastVisible:y}=o;if(G(d))d(t,e,s,this);else{if(c&&aY(t,{labelRotateAngle:u,orient:l}),p&&z(h)&&h>0){const b=l==="left"||l==="right",v=Math.abs(b?this.attribute.start.y-this.attribute.end.y:this.attribute.start.x-this.attribute.end.x),x=b?v/t.length:f||c?1/0:v/t.length;cY(t,{limitLength:h,verticalLimitLength:x,ellipsis:g,orient:l,axisLength:v})}f&&rY(t,{orient:l,method:_,separation:m,lastVisible:y})}}afterLabelsOverlap(t,e,i,s,r){const{verticalLimitSize:a,orient:o}=this.attribute,l=o==="bottom"||o==="top",h=i.AABBBounds;let d=l?h.height():h.width();const{verticalMinSize:c}=this.attribute;if(z(c)&&(!z(a)||c<=a)){const u=this._getAxisLabelLimitLength(c,r);let p,g;d=Math.max(d,u),o==="left"?(p=h.x2-d,g=h.y1):o==="right"?(p=h.x1,g=h.y1):o==="top"?(p=h.x1,g=h.y2-d):o==="bottom"&&(p=h.x1,g=h.y1);const f=pt.rect({x:p,y:g,width:l?h.width():d,height:l?d:h.height(),pickable:!1});f.name=Ni.axisLabelBackground,f.id=this._getNodeId("axis-label-background"),i.insertBefore(f,i.firstChild)}if(P(this.attribute.label.containerAlign)){let u;o==="left"?u=h.x2:o==="right"?u=h.x1:o==="top"?u=h.y2:o==="bottom"&&(u=h.y1),uY(t,u,d,o,this.attribute.label.containerAlign)}}_getAxisLabelLimitLength(t,e){var i,s,r,a,o;const{label:l,title:h,line:d,tick:c}=this.attribute,u=(i=l.space)!==null&&i!==void 0?i:4;let p=t,g=0,f=0;const _=d&&d.visible?(s=d.style.lineWidth)!==null&&s!==void 0?s:1:0,m=c&&c.visible?(r=c.length)!==null&&r!==void 0?r:4:0;if(h&&h.visible&&typeof h.text=="string"){g=om(h.text,h.textStyle,(o=(a=this.stage)===null||a===void 0?void 0:a.getTheme())===null||o===void 0?void 0:o.text).height;const y=ln(h.padding);f=h.space+y[0]+y[2]}return p&&(p=(p-u-f-g-_-m)/e),p}}Lc.defaultAttributes=Pf,$e(Lc,DB);class zB{isInValidValue(t){const{startAngle:e=hh,endAngle:i=dh}=this.attribute;return Math.abs(i-e)%(2*Math.PI)==0?t>1:t<0||t>1}getTickCoord(t){const{startAngle:e=hh,endAngle:i=dh,center:s,radius:r,inside:a=!1,innerRadius:o=0}=this.attribute;return Ue(s,a&&o>0?o:r,e+(i-e)*t)}getVerticalVector(t,e=!1,i){return db(t,i,this.attribute.center,e,this.attribute.inside)}getRelativeVector(t){const{center:e}=this.attribute;return[t.y-e.y,-1*(t.x-e.x)]}}var mY=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s0&&(c=a,u=0),z(h)&&h>=3){const p=CB(r,h,c,e,i);d=pt.path(Object.assign(Object.assign({},o.style),{path:so(p,!0)}))}else{const p=Object.assign(Object.assign(Object.assign({},r),{startAngle:e,endAngle:i,radius:c,innerRadius:u}),o.style);d=pt.circle(p)}d.name=Ni.line,d.id=this._getNodeId("line"),_t(o.state)||(d.states=Y({},Is,o.state)),t.add(d)}getTitleAttribute(){var t,e,i;const{center:s,radius:r,innerRadius:a=0}=this.attribute,o=this.attribute.title,{space:l=4,textStyle:h={},shape:d,background:c,state:u={}}=o,p=mY(o,["space","textStyle","shape","background","state"]);let g=s,f=0;!((t=this.attribute.label)===null||t===void 0)&&t.visible&&this.attribute.label.inside===!1&&(f=Pt(this.attribute.label,"style.fontSize",12)+Pt(this.attribute.label,"space",4));let _=0;!((e=this.attribute.tick)===null||e===void 0)&&e.visible&&this.attribute.tick.inside===!1&&(_=this.attribute.tick.length||4),!((i=this.attribute.subTick)===null||i===void 0)&&i.visible&&this.attribute.subTick.inside===!1&&(_=Math.max(_,this.attribute.subTick.length||2));const m=r+_+f+l;let y="middle",{position:b}=this.attribute.title;C(b)&&(b=a===0?"end":"middle"),b==="start"?(y="bottom",g={x:s.x,y:s.y-m}):b==="end"&&(y="top",g={x:s.x,y:s.y+m});const v=Object.assign(Object.assign(Object.assign({},g),p),{textStyle:Object.assign({textBaseline:y,textAlign:"center"},h),state:{text:Y({},Is,u.text),shape:Y({},Is,u.shape),panel:Y({},Is,u.background)}}),{angle:x}=p;return v.angle=x,d&&d.visible&&(v.shape=Object.assign({visible:!0},d.style),d.space&&(v.space=d.space)),c&&c.visible&&(v.panel=Object.assign({visible:!0},c.style)),v}getSubTickLineItems(){var t,e;const{subTick:i}=this.attribute,s=[],{count:r=4,inside:a=!1,length:o=2}=i,l=this.tickLineItems,h=l.length;if(h>=2){const d=this.data[1].value-this.data[0].value,c=(e=(t=this.attribute)===null||t===void 0?void 0:t.tick)===null||e===void 0?void 0:e.alignWithLabel;for(let u=0;u0&&t[1]>Math.abs(t[0])?e="top":t[1]<0&&Math.abs(t[1])>Math.abs(t[0])&&(e="bottom"),e}beforeLabelsOverlap(t,e,i,s,r){}handleLabelsOverlap(t,e,i,s,r){}afterLabelsOverlap(t,e,i,s,r){}getLabelAlign(t,e,i){return{textAlign:"center",textBaseline:"middle"}}getLabelPosition(t,e,i,s){return MB(t,e,i,s)}}Dc.defaultAttributes=Pf,$e(Dc,zB);class vY extends dn{constructor(){super(...arguments),this.mode=th.NORMAL}onBind(){const t=this.target.getInnerView(),e=this.target.getPrevInnerView();e&&(this._newElementAttrMap={},fs(t,i=>{var s,r,a,o,l,h;if(i.type!=="group"&&i.id){const d=e[i.id];if(d){if(!ue(i.attribute,d.attribute)){const c=on(i.attribute);this._newElementAttrMap[i.id]={state:"update",node:i,attrs:Object.assign(Object.assign({},c),{opacity:(s=c.opacity)!==null&&s!==void 0?s:1,fillOpacity:(r=c.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(a=c.strokeOpacity)!==null&&a!==void 0?a:1})},i.setAttributes(d.attribute)}}else{const c={opacity:(o=i.attribute.opacity)!==null&&o!==void 0?o:1,fillOpacity:(l=i.attribute.fillOpacity)!==null&&l!==void 0?l:1,strokeOpacity:(h=i.attribute.strokeOpacity)!==null&&h!==void 0?h:1};this._newElementAttrMap[i.id]={state:"enter",node:i,attrs:c},i.setAttributes({opacity:0,fillOpacity:0,strokeOpacity:0})}}}))}onStart(){let t=this.duration,e=this.easing;this._newElementAttrMap&&Object.keys(this._newElementAttrMap).forEach(i=>{var s;const{node:r,attrs:a,state:o}=this._newElementAttrMap[i];if(o==="enter"){const{enter:l={}}=(s=this.params)!==null&&s!==void 0?s:{};t=z(l.duration)?l.duration:t,e=l.easing?l.easing:e}r.type==="path"?r.animate({interpolate:(l,h,d,c,u)=>l==="path"&&(u.path=fF(d,c)(h),!0)}).to(a,t,e):r.animate().to(a,t,e)})}onUpdate(t,e,i){}}class yY extends dn{constructor(t,e,i,s){super(null,null,i,s)}getEndProps(){return{}}onBind(){this.target.setTheme({common:{opacity:0}})}onEnd(){this.target.setTheme({common:{opacity:1}})}onUpdate(t,e,i){this.target.setTheme({common:{opacity:e}})}}var je;(function(n){n.Identity="identity",n.Linear="linear",n.Log="log",n.Pow="pow",n.Sqrt="sqrt",n.Symlog="symlog",n.Time="time",n.Quantile="quantile",n.Quantize="quantize",n.Threshold="threshold",n.Ordinal="ordinal",n.Point="point",n.Band="band"})(je||(je={}));const jB={};Object.values(je).forEach(n=>{jB[n]=!0});function ie(n){switch(n){case je.Linear:case je.Log:case je.Pow:case je.Sqrt:case je.Symlog:case je.Time:return!0;default:return!1}}function cb(n){return!!jB[n]}function vi(n){switch(n){case je.Ordinal:case je.Point:case je.Band:return!0;default:return!1}}function gl(n){return n}const bY=n=>n<0?-Math.sqrt(-n):Math.sqrt(n),xY=n=>n<0?-n*n:n*n,SY=n=>-Math.log(-n),AY=n=>-Math.exp(-n),kY=n=>isFinite(n)?Math.pow(10,n):n<0?0:n,pM=n=>n===10?kY:n===Math.E?Math.exp:t=>Math.pow(n,t),gM=n=>n===Math.E?Math.log:n===10?Math.log10:n===2?Math.log2:(n=Math.log(n),t=>Math.log(t)/n),fM=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n)),_M=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n;function ub(n,t){if(n=Number(n),t=Number(t),t-=n)return i=>(i-n)/t;const e=Number.isNaN(t)?NaN:.5;return()=>e}function mM(n,t,e){const i=n[0],s=n[1],r=t[0],a=t[1];let o,l;return sl(o(h))}function Vx(n,t,e){let i;return i=n===1?n+2*e:n-t+2*e,n?i>0?i:1:0}function pb(n,t,e,i){return e===1&&(e=0),Vx(n,e,i)*(t/(1-e))}function TY(n,t,e,i,s){const r=Vx(n,e,i);let a=t/Math.max(1,r||1);s&&(a=Math.floor(a));let o=a*(1-e);return s&&(o=Math.round(o)),o}function HB(n,t){const e=(n[1]-n[0])/(t[1]-t[0]),i=n[0]-e*t[0];return[i,e+i]}function MY(n,t,e){const i=Math.min(n.length,t.length)-1,s=new Array(i),r=new Array(i);let a=-1;for(n[i]{const e=n.slice();let i=0,s=e.length-1,r=e[i],a=e[s];return a{const e=Math.floor(Math.log10(n)),i=n/Math.pow(10,e);let s;return s=t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,s*Math.pow(10,e)},CY=(n,t)=>{let e,i;return t[0]s>=0&&s<=1)&&(this._wholeRange=null,t[0]===0&&t[1]===1?(this._rangeFactorStart=null,this._rangeFactorEnd=null):(this._rangeFactorStart=t[0],this._rangeFactorEnd=t[1])),this):i?(this._wholeRange=null,this._rangeFactorStart=null,this._rangeFactorEnd=null,this):P(this._rangeFactorStart)&&P(this._rangeFactorEnd)?[this._rangeFactorStart,this._rangeFactorEnd]:null}rangeFactorStart(t,e){var i;return C(t)?this._rangeFactorStart:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!C(this._rangeFactorEnd)&&this._rangeFactorEnd!==1?(this._rangeFactorStart=t,this._rangeFactorEnd=(i=this._rangeFactorEnd)!==null&&i!==void 0?i:1):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}rangeFactorEnd(t,e){var i;return C(t)?this._rangeFactorEnd:(t>=0&&t<=1&&(this._wholeRange=null,t!==0||!C(this._rangeFactorStart)&&this._rangeFactorStart!==0?(this._rangeFactorEnd=t,this._rangeFactorStart=(i=this._rangeFactorStart)!==null&&i!==void 0?i:0):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}generateFishEyeTransform(){var t;if(!this._fishEyeOptions)return void(this._fishEyeTransform=null);const{distortion:e=2,radiusRatio:i=.1,radius:s}=this._fishEyeOptions,r=this.range(),a=r[0],o=r[r.length-1],l=Math.min(a,o),h=Math.max(a,o),d=Fe((t=this._fishEyeOptions.focus)!==null&&t!==void 0?t:0,l,h),c=C(s)?(h-l)*i:s;let u=Math.exp(e);u=u/(u-1)*c;const p=e/c;this._fishEyeTransform=g=>{const f=Math.abs(g-d);if(f>=c)return g;if(f<=1e-6)return d;const _=u*(1-Math.exp(-f*p))/f*.75+.25;return d+(g-d)*_}}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}}const gb=Symbol("implicit");class Po extends WB{specified(t){var e;return t?(this._specified=Object.assign((e=this._specified)!==null&&e!==void 0?e:{},t),this):Object.assign({},this._specified)}_getSpecifiedValue(t){if(this._specified)return this._specified[t]}constructor(){super(),this.type=je.Ordinal,this._index=new Map,this._domain=[],this._ordinalRange=[],this._unknown=gb}clone(){const t=new Po().domain(this._domain).range(this._ordinalRange).unknown(this._unknown);return this._specified&&t.specified(this._specified),t}calculateVisibleDomain(t){return P(this._rangeFactorStart)&&P(this._rangeFactorEnd)&&t.length===2?[this.invert(t[0]),this.invert(t[1])]:this._domain}scale(t){const e=`${t}`,i=this._getSpecifiedValue(e);if(i!==void 0)return i;let s=this._index.get(e);if(!s){if(this._unknown!==gb)return this._unknown;s=this._domain.push(t),this._index.set(e,s)}const r=this._ordinalRange[(s-1)%this._ordinalRange.length];return this._fishEyeTransform?this._fishEyeTransform(r):r}invert(t){let e=0;for(;ee&&a>1;)a-=1,r=Math.floor((t-n)/a);return NB(n,t,r,s)}function PY(n,t,e){let i;if(t=Math.floor(+t),n=Math.floor(+n),e=Kl(1,t-n+1)(Math.floor(+e)),i=tthis._maxBandwidth?(this._bandwidth=this._maxBandwidth,this._isFixed=!0):(this._bandwidth=s,this._isFixed=!1)}if(this.isBandwidthFixed()){const i=pb(super.domain().length,this._bandwidth,this._paddingInner,this._paddingOuter)*Math.sign(t[1]-t[0]),s=Math.min((t[1]-t[0])/i,1);if(P(this._rangeFactorStart)&&P(this._rangeFactorEnd)){if(i>0){const o=t[0]-i*this._rangeFactorStart,l=o+i;this._wholeRange=[o,l]}else{const o=t[1]+i*(1-this._rangeFactorEnd),l=o-i;this._wholeRange=[l,o]}const r=this._rangeFactorStart+s<=1,a=this._rangeFactorEnd-s>=0;e==="rangeFactorStart"&&r?this._rangeFactorEnd=this._rangeFactorStart+s:e==="rangeFactorEnd"&&a?this._rangeFactorStart=this._rangeFactorEnd-s:t[0]<=t[1]?r?this._rangeFactorEnd=this._rangeFactorStart+s:a?this._rangeFactorStart=this._rangeFactorEnd-s:(this._rangeFactorStart=0,this._rangeFactorEnd=s):a?this._rangeFactorStart=this._rangeFactorEnd-s:r?this._rangeFactorEnd=this._rangeFactorStart+s:(this._rangeFactorStart=1-s,this._rangeFactorEnd=1)}else this._rangeFactorStart=0,this._rangeFactorEnd=s,this._wholeRange=[t[0],t[0]+i];return this._wholeRange}return super._calculateWholeRange(t)}calculateWholeRangeSize(){const t=this._calculateWholeRange(this._range);return Math.abs(t[1]-t[0])}calculateVisibleDomain(t){const e=this._domain;if(P(this._rangeFactorStart)&&P(this._rangeFactorEnd)&&e.length){const i=this._getInvertIndex(t[0]),s=this._getInvertIndex(t[1]);return e.slice(Math.min(i,s),Math.max(i,s)+1)}return e}domain(t,e){return t?(super.domain(t),this.rescale(e)):super.domain()}range(t,e){return t?(this._range=[zs(t[0]),zs(t[1])],this.rescale(e)):this._range}rangeRound(t,e){return this._range=[zs(t[0]),zs(t[1])],this._round=!0,this.rescale(e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return t===-1?e:vM(0,e.length-1,t,!1).map(i=>e[i])}tickData(t=10){return this.ticks(t).map((e,i)=>({index:i,tick:e,value:(this.scale(e)-this._range[0]+this._bandwidth/2)/(this._range[1]-this._range[0])}))}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return vM(0,e.length-1,t,!0).filter(i=>ie[i])}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return PY(0,e.length-1,t).map(i=>e[i])}_getInvertIndex(t){let e=0;const i=this.step()/2,s=this.bandwidth()/2,r=this._domain.length,a=this.range(),o=a[0]>a[a.length-1];for(e=0;e=0&&e<=r-1?e:r-1}invert(t){return this._domain[this._getInvertIndex(t)]}padding(t,e){return t!==void 0?(this._paddingOuter=Math.max(0,Math.min(Array.isArray(t)?Math.min.apply(null,t):t)),this._paddingInner=this._paddingOuter,this.rescale(e)):this._paddingInner}paddingInner(t,e){return t!==void 0?(this._paddingInner=Math.max(0,Math.min(1,t)),this.rescale(e)):this._paddingInner}paddingOuter(t,e){return t!==void 0?(this._paddingOuter=Math.max(0,Math.min(1,t)),this.rescale(e)):this._paddingOuter}step(){return this._step}round(t,e){return t!==void 0?(this._round=t,this.rescale(e)):this._round}align(t,e){return t!==void 0?(this._align=Math.max(0,Math.min(1,t)),this.rescale(e)):this._align}rangeFactor(t,e){return t?(super.rangeFactor(t),this.rescale(e)):super.rangeFactor()}rangeFactorStart(t,e){return C(t)?super.rangeFactorStart():(super.rangeFactorStart(t),this.rescale(e,"rangeFactorStart"))}rangeFactorEnd(t,e){return C(t)?super.rangeFactorEnd():(super.rangeFactorEnd(t),this.rescale(e,"rangeFactorEnd"))}bandwidth(t,e){return t?(t==="auto"?(this._bandwidth=void 0,this._isFixed=!1):(this._bandwidth=t,this._isFixed=!0),this._userBandwidth=t,this.rescale(e)):this._bandwidth}maxBandwidth(t,e){return t?(this._maxBandwidth=t==="auto"?void 0:t,this.rescale(e)):this._maxBandwidth}minBandwidth(t,e){return t?(this._minBandwidth=t==="auto"?void 0:t,this.rescale(e)):this._minBandwidth}fishEye(t,e,i){return t||i?(this._fishEyeOptions=t,this._fishEyeTransform=null,this.rescale(e)):this._fishEyeOptions}isBandwidthFixed(){return this._isFixed&&!!this._bandwidth}_isBandwidthFixedByUser(){return this._isFixed&&this._userBandwidth&&nt(this._userBandwidth)}clone(){var t,e,i;return new qo(!0).domain(this._domain,!0).range(this._range,!0).round(this._round,!0).paddingInner(this._paddingInner,!0).paddingOuter(this._paddingOuter,!0).align(this._align,!0).bandwidth((t=this._userBandwidth)!==null&&t!==void 0?t:"auto",!0).maxBandwidth((e=this._maxBandwidth)!==null&&e!==void 0?e:"auto",!0).minBandwidth((i=this._maxBandwidth)!==null&&i!==void 0?i:"auto")}}const{interpolateRgb:G0}=CF;function EY(n,t){const e=typeof t;let i;if(C(t)||e==="boolean")return()=>t;if(e==="number")return fd(n,t);if(e==="string"){if(i=Je.parseColorString(t)){const s=G0(Je.parseColorString(n),i);return r=>s(r).formatRgb()}return fd(Number(n),Number(t))}return t instanceof rn?G0(n,t):t instanceof Je?G0(n.color,t.color):t instanceof Date?uF(n,t):fd(Number(n),Number(t))}class GB extends WB{constructor(t=gl,e=gl){super(),this._unknown=void 0,this.transformer=t,this.untransformer=e,this._forceAlign=!0,this._domain=[0,1],this._range=[0,1],this._clamp=gl,this._piecewise=mM,this._interpolate=EY}calculateVisibleDomain(t){var e;return P(this._rangeFactorStart)&&P(this._rangeFactorEnd)&&t.length===2?[this.invert(t[0]),this.invert(t[1])]:(e=this._niceDomain)!==null&&e!==void 0?e:this._domain}fishEye(t,e,i){return t||i?(this._fishEyeOptions=t,this._fishEyeTransform=null,this.rescale(e)):this._fishEyeOptions}scale(t){var e;if(t=Number(t),Number.isNaN(t)||this._domainValidator&&!this._domainValidator(t))return this._unknown;this._output||(this._output=this._piecewise(((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate));const i=this._output(this.transformer(this._clamp(t)));return this._fishEyeTransform?this._fishEyeTransform(i):i}invert(t){var e;return this._input||(this._input=this._piecewise(this._calculateWholeRange(this._range),((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this.transformer),fd)),this._clamp(this.untransformer(this._input(t)))}domain(t,e){var i;if(!t)return((i=this._niceDomain)!==null&&i!==void 0?i:this._domain).slice();this._domainValidator=null,this._niceType=null,this._niceDomain=null;const s=Array.from(t,zs);return this._domain=s,this.rescale(e)}range(t,e){if(!t)return this._range.slice();const i=Array.from(t);return this._range=i,this.rescale(e)}rangeRound(t,e){const i=Array.from(t);return this._range=i,this._interpolate=cF,this.rescale(e)}rescale(t){var e;if(t)return this;const i=(e=this._niceDomain)!==null&&e!==void 0?e:this._domain,s=i.length,r=this._range.length;let a=Math.min(s,r);if(s&&s=2?(l-i[s-2])/o:0;for(let d=1;d<=o;d++)i[s-2+d]=l-h*(o-d);a=r}return this._autoClamp&&(this._clamp=Kl(i[0],i[a-1])),this._piecewise=a>2?MY:mM,this._output=this._input=null,this._wholeRange=null,this.generateFishEyeTransform(),this}clamp(t,e,i){return arguments.length?(e?(this._autoClamp=!1,this._clamp=e):(this._autoClamp=!!t,this._clamp=t?void 0:gl),this.rescale(i)):this._clamp!==gl}interpolate(t,e){return arguments.length?(this._interpolate=t,this.rescale(e)):this._interpolate}ticks(t=10){return[]}tickData(t=10){const e=this.ticks(t);return(e??[]).map((i,s)=>({index:s,tick:i,value:(this.scale(i)-this._range[0])/(this._range[1]-this._range[0])}))}rangeFactor(t,e){return t?(super.rangeFactor(t),this._output=this._input=null,this):super.rangeFactor()}rangeFactorStart(t,e){return C(t)?super.rangeFactorStart():(super.rangeFactorStart(t),this._output=this._input=null,this)}rangeFactorEnd(t,e){return C(t)?super.rangeFactorEnd():(super.rangeFactorEnd(t),this._output=this._input=null,this)}forceAlignDomainRange(t){return arguments.length?(this._forceAlign=t,this):this._forceAlign}}const RY=Math.sqrt(50),BY=Math.sqrt(10),IY=Math.sqrt(2),vp=[1,2,5,10],yM=(n,t,e)=>{let i=1,s=n;const r=Math.floor((t-1)/2),a=Math.abs(n);return n>=0&&n<=Number.MIN_VALUE?s=0:n<0&&n>=-Number.MIN_VALUE?s=-(t-1):!e&&a<1?i=UB(a).step:(e||a>1)&&(s=Math.floor(n)-r*i),i>0?(n>0?s=Math.max(s,0):n<0&&(s=Math.min(s,-(t-1)*i)),EP(0,t).map(o=>s+o*i)):n>0?Ef(0,-(t-1)/i,i):Ef((t-1)/i,0,i)},OY=kh((n,t,e,i)=>{let s,r,a,o,l=-1;if(e=+e,(n=+n)==(t=+t))return[n];if(Math.abs(n-t)<=Number.MIN_VALUE&&e>0)return[n];if((s=t0){let h=Math.round(n/o),d=Math.round(t/o);for(h*ot&&--d,a=new Array(r=d-h+1);++lt&&--d,a=new Array(r=d-h+1);++l{let i,s,r=-1;if(e>0){let a=Math.floor(n/e),o=Math.ceil(t/e);for((a+1)*et&&--o,s=new Array(i=o-a+1);++rt&&--o,s=new Array(i=o-a+1);++r{let i;const s=n[0],r=n[n.length-1],a=t-n.length;if(r<=0){const h=[];for(i=a;i>=1;i--)h.push(s-i*e);return h.concat(n)}if(s>=0){for(i=1;i<=a;i++)n.push(r+i*e);return n}let o=[];const l=[];for(i=1;i<=a;i++)i%2==0?o=[s-Math.floor(i/2)*e].concat(o):l.push(r+Math.ceil(i/2)*e);return o.concat(n).concat(l)},Rf=kh((n,t,e,i)=>{let s,r,a;if(e=+e,(n=+n)==(t=+t)||Math.abs(n-t)<=Number.MIN_VALUE&&e>0)return yM(n,e,i==null?void 0:i.noDecimals);(s=t0){let h=1;const{power:d,gap:c}=o,u=c===10?2*10**d:1*10**d;for(;h<=5&&(r=Ef(n,t,l),r.length>e+1)&&e>2;)l+=u,h+=1;e>2&&r.length{const t=Math.floor(Math.log(n)/Math.LN10),e=n/10**t;let i=vp[0];return e>=RY?i=vp[3]:e>=BY?i=vp[2]:e>=IY&&(i=vp[1]),t>=0?{step:i*10**t,gap:i,power:t}:{step:-(10**-t)/i,gap:i,power:t}};function Wx(n,t,e){const i=(t-n)/Math.max(0,e);return UB(i)}function $B(n,t,e){let i;if(e=+e,(n=+n)==(t=+t)&&e>0)return[n];if(e<=0||(i=DY(n,t,e))===0||!isFinite(i))return[];const s=new Array(e);for(let r=0;r0;){if(i=Wx(a,o,t).step,i===e)return n[s]=a,n[r]=o,n;if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else{if(!(i<0))break;a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i}e=i}}function YB(n,t){const e=nt(t.forceMin),i=nt(t.forceMax);let s=null;const r=[];let a=null;const o=e&&i?l=>l>=t.forceMin&&l<=t.forceMax:e?l=>l>=t.forceMin:i?l=>l<=t.forceMax:null;return e?r[0]=t.forceMin:nt(t.min)&&t.min<=Math.min(n[0],n[n.length-1])&&(r[0]=t.min),i?r[1]=t.forceMax:nt(t.max)&&t.max>=Math.max(n[0],n[n.length-1])&&(r[1]=t.max),nt(r[0])&&nt(r[1])?(a=n.slice(),a[0]=r[0],a[a.length-1]=r[1]):s=nt(r[0])||nt(r[1])?nt(r[0])?"max":"min":"all",{niceType:s,niceDomain:a,niceMinMax:r,domainValidator:o}}const $0=(n,t,e)=>Math.abs(t-n)<1?+e.toFixed(1):Math.round(+e),XB=kh((n,t,e,i,s,r,a)=>{let o=n,l=t;const h=l0){for(;u<=p;++u)for(d=1;dl)break;g.push(c)}}else for(;u<=p;++u)for(d=i-1;d>=1;--d)if(c=u>0?d/r(-u):d*r(u),!(cl)break;g.push(c)}2*g.lengthf!==0),a!=null&&a.noDecimals&&(g=Array.from(new Set(g.map(f=>Math.floor(f))))),h?g.reverse():g}),KB=kh((n,t,e,i,s,r)=>{const a=[],o={},l=s(n),h=s(t);let d=[];if(Number.isInteger(i))d=Rf(l,h,e);else{const c=(h-l)/(e-1);for(let u=0;u{const u=r(c),p=Number.isInteger(i)?$0(n,t,u):$0(n,t,VB(u)),g=$0(n,t,CY(p,[n,t]));!o[g]&&!isNaN(g)&&d.length>1&&(o[g]=1,a.push(g))}),a}),Bf=kh((n,t,e,i,s)=>$B(i(n),i(t),e).map(r=>VB(s(r))));class is extends GB{constructor(){super(...arguments),this.type=je.Linear}clone(){return new is().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate)}tickFormat(){return()=>{}}d3Ticks(t=10,e){const i=this.calculateVisibleDomain(this._range);return OY(i[0],i[i.length-1],t,e)}ticks(t=10,e){var i;if(P(this._rangeFactorStart)&&P(this._rangeFactorEnd)&&(this._rangeFactorStart>0||this._rangeFactorEnd<1)&&this._range.length===2||!this._niceType)return this.d3Ticks(t,e);const s=(i=this._niceDomain)!==null&&i!==void 0?i:this._domain,r=this._domain,a=s[0],o=s[s.length-1];let l=Rf(r[0],r[r.length-1],t,e);if(!l.length)return l;if(this._domainValidator)l=l.filter(this._domainValidator);else if((l[0]!==a||l[l.length-1]!==o)&&this._niceType){const h=s.slice();if(this._niceType==="all"?(h[0]=l[0],h[h.length-1]=l[l.length-1],this._niceDomain=h,this.rescale()):this._niceType==="min"&&l[0]!==a?(h[0]=l[0],this._niceDomain=h,this.rescale()):this._niceType==="max"&&l[l.length-1]!==o&&(h[h.length-1]=l[l.length-1],this._niceDomain=h,this.rescale()),this._niceType!=="all"){const d=Math.min(h[0],h[h.length-1]),c=Math.max(h[0],h[h.length-1]);l=l.filter(u=>u>=d&&u<=c)}}return l}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return $B(e[0],e[e.length-1],t)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return FY(e[0],e[e.length-1],t)}nice(t=10,e){var i,s;const r=this._domain;let a=[];if(e){const o=YB(r,e);if(a=o.niceMinMax,this._domainValidator=o.domainValidator,this._niceType=o.niceType,o.niceDomain)return this._niceDomain=o.niceDomain,this.rescale(),this}else this._niceType="all";if(this._niceType){const o=U0(r.slice(),t);this._niceType==="min"?o[o.length-1]=(i=a[1])!==null&&i!==void 0?i:o[o.length-1]:this._niceType==="max"&&(o[0]=(s=a[0])!==null&&s!==void 0?s:o[0]),this._niceDomain=o,this.rescale()}return this}niceMin(t=10){this._niceType="min";const e=this._domain[this._domain.length-1],i=U0(this.domain(),t);return i&&(i[i.length-1]=e,this._niceDomain=i,this.rescale()),this}niceMax(t=10){this._niceType="max";const e=this._domain[0],i=U0(this._domain.slice(),t);return i&&(i[0]=e,this._niceDomain=i,this.rescale()),this}}class qB{nice(t=10,e){var i,s,r,a;const o=this._domain;let l=[],h=null;if(e){const d=YB(o,e);if(l=d.niceMinMax,this._domainValidator=d.domainValidator,h=d.niceType,d.niceDomain)return this._niceDomain=d.niceDomain,this.rescale(),this}else h="all";if(h){const d=wY(o.slice(),(s=(i=this.getNiceConfig)===null||i===void 0?void 0:i.call(this))!==null&&s!==void 0?s:{floor:c=>Math.floor(c),ceil:c=>Math.ceil(c)});return h==="min"?d[d.length-1]=(r=l[1])!==null&&r!==void 0?r:d[d.length-1]:h==="max"&&(d[0]=(a=l[0])!==null&&a!==void 0?a:d[0]),this._niceDomain=d,this.rescale(),this}return this}niceMin(){const t=this._domain[this._domain.length-1];this.nice();const e=this._domain.slice();return this._domain&&(e[e.length-1]=t,this._niceDomain=e,this.rescale()),this}niceMax(){const t=this._domain[0];this.nice();const e=this._domain.slice();return this._domain&&(e[0]=t,this._niceDomain=e,this.rescale()),this}}function bM(n){return t=>-n(-t)}function xM(n=Number.EPSILON){return t=>Math.max(t,n)}function zY(n=Number.EPSILON){return t=>Math.min(t,-n)}class ym extends GB{constructor(){super(gM(10),pM(10)),this.type=je.Log,this._limit=xM(),this._logs=this.transformer,this._pows=this.untransformer,this._domain=[1,10],this._base=10}clone(){return new ym().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate,!0).base(this._base)}rescale(t){var e;if(t)return this;super.rescale();const i=gM(this._base),s=pM(this._base);return((e=this._niceDomain)!==null&&e!==void 0?e:this._domain)[0]<0?(this._logs=bM(i),this._pows=bM(s),this._limit=zY(),this.transformer=SY,this.untransformer=AY):(this._logs=i,this._pows=s,this._limit=xM(),this.transformer=this._logs,this.untransformer=s),this}scale(t){var e;if(t=Number(t),Number.isNaN(t)||this._domainValidator&&!this._domainValidator(t))return this._unknown;this._output||(this._output=this._piecewise(((e=this._niceDomain)!==null&&e!==void 0?e:this._domain).map(this._limit).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate));const i=this._output(this.transformer(this._limit(this._clamp(t))));return this._fishEyeTransform?this._fishEyeTransform(i):i}base(t,e){return arguments.length?(this._base=t,this.rescale(e)):this._base}tickFormat(){return gl}d3Ticks(t=10,e){const i=this.domain(),s=this._limit(i[0]),r=this._limit(i[i.length-1]);return XB(s,r,t,this._base,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return KB(this._limit(e[0]),this._limit(e[e.length-1]),t,this._base,this.transformer,this.untransformer)}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return Bf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return Bf(this._limit(e[0]),this._limit(e[e.length-1]),t,this.transformer,this.untransformer)}getNiceConfig(){return{floor:t=>this._pows(Math.floor(this._logs(this._limit(t)))),ceil:t=>Math.abs(t)>=1?Math.ceil(t):this._pows(Math.ceil(this._logs(this._limit(t))))}}}$e(ym,qB);class jY extends qo{constructor(t){super(!1),this.type=je.Point,this._padding=0,this.paddingInner(1,t),this.padding=this.paddingOuter,this.paddingInner=void 0,this.paddingOuter=void 0}}class If extends is{constructor(){super(bY,xY),this.type=je.Sqrt}clone(){return new If().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate)}}class bm extends is{constructor(){super(fM(1),_M(1)),this.type=je.Symlog,this._const=1}clone(){return new bm().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate,!0).constant(this._const)}constant(t,e){return arguments.length?(this._const=t,this.transformer=fM(t),this.untransformer=_M(t),this.rescale(e)):this._const}d3Ticks(t=10,e){const i=this.domain(),s=i[0],r=i[i.length-1];return XB(s,r,t,this._const,this.transformer,this.untransformer,e)}ticks(t=10){const e=this.calculateVisibleDomain(this._range);return KB(e[0],e[e.length-1],t,this._const,this.transformer,this.untransformer)}forceTicks(t=10){const e=this.calculateVisibleDomain(this._range);return Bf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}stepTicks(t){const e=this.calculateVisibleDomain(this._range);return Bf(e[0],e[e.length-1],t,this.transformer,this.untransformer)}}$e(bm,qB);class Nx{constructor(){this.type=je.Threshold,this._range=[0,1],this._domain=[.5],this.n=1}unknown(t){return arguments.length?(this._unknown=t,this):this._unknown}scale(t){return!C(t)&&z(+t)?this._range[BP(this._domain,t,0,this.n)]:this._unknown}invertExtent(t){const e=this._range.indexOf(t);return[this._domain[e-1],this._domain[e]]}domain(t){return t?(this._domain=Array.from(t),this.n=Math.min(this._domain.length,this._range.length-1),this):this._domain.slice()}range(t){return t?(this._range=Array.from(t),this.n=Math.min(this._domain.length,this._range.length-1),this):this._range.slice()}clone(){return new Nx().domain(this._domain).range(this._range).unknown(this._unknown)}}const Gs=n=>n.map((t,e)=>({index:e,value:t})),SM=(n,t,e=0)=>{const i=new _e(n).expand(e/2),s=new _e(t).expand(e/2);return i.intersects(s)};function ZB(n,t,e){return e>Math.max(t.x1-n.x2,n.x1-t.x2,t.y1-n.y2,n.y1-t.y2)}function HY(n,t){for(let e,i=1,s=n.length,r=n[0];ien?Math.min(n-t/2,e-t):e{var i;const{labelStyle:s,axisOrientType:r,labelFlush:a,labelFormatter:o,startAngle:l=0}=e;let h=(i=s.angle)!==null&&i!==void 0?i:0;s.direction==="vertical"&&(h+=Jt(90));const d=["bottom","top"].includes(r),c=["left","right"].includes(r);let u=1,p=0;d||(c?(u=0,p=1):l&&(u=Math.cos(l),p=-Math.sin(l)));const g=Wl(s),f=n.range();return t.map((m,y)=>{var b,v;const x=o?o(m):`${m}`,{width:S,height:k}=g.quickMeasure(x),A=Math.max(S,12),T=Math.max(k,12),M=n.scale(m),w=u*M,E=p*M;let R,O,B=w,I=E;a&&d&&y===0?B=yp(w,A,f[0],f[f.length-1]):a&&d&&y===t.length-1?B=yp(w,A,f[f.length-1],f[0]):R=(b=s.textAlign)!==null&&b!==void 0?b:"center",R==="right"?B-=A:R==="center"&&(B-=A/2),a&&c&&y===0?I=yp(E,T,f[0],f[f.length-1]):a&&c&&y===t.length-1?I=yp(E,T,f[f.length-1],f[0]):O=(v=s.textBaseline)!==null&&v!==void 0?v:"middle",O==="bottom"?I-=T:O==="middle"&&(I-=T/2);const D=new _e().set(B,I,B+A,I+T);return h&&D.rotate(h,w,E),D})},VY=(n,t,e)=>{var i;const{labelStyle:s,getRadius:r,labelOffset:a,labelFormatter:o,inside:l}=e,h=r==null?void 0:r(),d=(i=s.angle)!==null&&i!==void 0?i:0,c=Wl(s);return t.map(p=>{var g,f;const _=o?o(p):`${p}`,{width:m,height:y}=c.quickMeasure(_),b=Math.max(m,12),v=Math.max(y,12),x=n.scale(p);let S=0,k=0;const A=(g=s.textAlign)!==null&&g!==void 0?g:"center",T=(f=s.textBaseline)!==null&&f!==void 0?f:"middle",{x:M,y:w}=Q$(x,{x:0,y:0},h,a,l,_,s);return S=M+(A==="right"?-b:A==="center"?-b/2:0),k=w+(T==="bottom"?-v:T==="middle"?-v/2:0),new _e().set(S,k,S+b,k+v).rotate(d,S+b/2,k+v/2)})},WY=n=>["bottom","top","z"].includes(n),NY=(n,t)=>{if(!ie(n.type))return Gs(n.domain());const e=n.range(),i=Math.abs(e[e.length-1]-e[0]);if(i<2)return Gs([n.domain()[0]]);const{tickCount:s,forceTickCount:r,tickStep:a,noDecimals:o=!1,labelStyle:l}=t;let h;if(P(a))h=n.stepTicks(a);else if(P(r))h=n.forceTicks(r);else if(t.tickMode==="d3"){const d=G(s)?s({axisLength:i,labelStyle:l}):s;h=n.d3Ticks(d??5,{noDecimals:o})}else{const d=G(s)?s({axisLength:i,labelStyle:l}):s;h=n.ticks(d??5,{noDecimals:o})}if(t.sampling&&(t.coordinateType==="cartesian"||t.coordinateType==="polar"&&t.axisOrientType==="radius")){const{labelGap:d=4,labelFlush:c}=t;let u=JB(n,h,t).map((g,f)=>({AABBBounds:g,value:h[f]}));for(;u.length>=3&&HY(u,d);)u=GY.parity(u);const p=u.map(g=>g.value);p.length<3&&c&&(p.length>1&&p.pop(),ca(p)!==ca(h)&&p.push(ca(h))),h=p}return Gs(h)},GY={parity:function(n){return n.filter((t,e)=>e%2==0)},greedy:function(n,t){let e;return n.filter((i,s)=>(!s||!ZB(e.AABBBounds,i.AABBBounds,t))&&(e=i,!0))}},AM=(n,t,e,i)=>JB(n,t,e).map(s=>i?[s.x1,s.x2,s.width()]:[s.y1,s.y2,s.height()]),kM=(n,t,e=0)=>Math.max(n[0],t[0])-e/2<=Math.min(n[1],t[1])+e/2,TM=(n,t)=>n[1]{var e;const i=n.domain();if(!i.length)return[];const{tickCount:s,forceTickCount:r,tickStep:a,labelGap:o=4,axisOrientType:l,labelStyle:h}=t,d=WY(l),c=n.range(),u=n.calculateWholeRangeSize();if(u<2)return t.labelLastVisible?Gs([i[i.length-1]]):Gs([i[0]]);let p;if(P(a))p=n.stepTicks(a);else if(P(r))p=n.forceTicks(r);else if(P(s)){const g=G(s)?s({axisLength:u,labelStyle:h}):s;p=n.ticks(g)}else if(t.sampling){const g=((e=t.labelStyle.fontSize)!==null&&e!==void 0?e:12)+2,f=ti(c),_=Ve(c);if(i.length<=u/g){const m=(_-f)/i.length,y=AM(n,i,t,d),b=Math.min(...y.map(x=>x[2])),v=$Y(i,y,o,t.labelLastVisible,Math.floor(b/m),!1);p=n.stepTicks(v.step),t.labelLastVisible&&(v.delCount&&(p=p.slice(0,p.length-v.delCount)),p.push(i[i.length-1]))}else{const m=[i[0],i[Math.floor(i.length/2)],i[i.length-1]],y=AM(n,m,t,d);let b=null;y.forEach(x=>{b?b[2]0?Math.ceil(i.length*(o+b[2])/(_-f-o)):i.length-1;p=n.stepTicks(v),!t.labelLastVisible||p.length&&p[p.length-1]===i[i.length-1]||(p.length&&Math.abs(n.scale(p[p.length-1])-n.scale(i[i.length-1])){let a=0,o=0,l=-1,h=Number.MAX_VALUE;const d=p=>{let g=!0,f=0;do f+pd(p)?1:-1);let u=c;do if(u>c&&!r&&!d(u))u++;else{if(!i){o=u;break}{const p=n.length-1;let g,f=0;g=n.length%u>0?n.length-n.length%u+u:n.length;do{if(g-=u,g!==p&&!kM(t[g],t[p],e))break;f++}while(g>0);if(g===p){o=u,a=f;break}{const _=Math.floor(n.length/u)-f+1;if(_=0?TM(t[g-u],t[g]):m,b=Math.abs(m-y);if(b{const{tickCount:e,forceTickCount:i,tickStep:s,getRadius:r,labelOffset:a,labelGap:o=0,labelStyle:l}=t,h=r==null?void 0:r();if(!h)return Gs(n.domain());let d;if(P(s))d=n.stepTicks(s);else if(P(i))d=n.forceTicks(i);else if(P(e)){const c=n.range(),u=Math.abs(c[c.length-1]-c[0]),p=G(e)?e({axisLength:u,labelStyle:l}):e;d=n.ticks(p)}else if(t.sampling){const c=n.domain(),u=n.range(),p=VY(n,c,t),g=ti(u),f=Ve(u),_=Math.abs(f-g)*(h+a)/c.length,{step:m,delCount:y}=XY(c,p,o,Math.floor(p.reduce((b,v)=>Math.min(b,v.width(),v.height()),Number.MAX_VALUE)/_));d=n.stepTicks(m),d=d.slice(0,d.length-y)}else d=n.domain();return Gs(d)},XY=(n,t,e,i)=>{let s=i;do{let a=!0;s++;let o=0;do o+s2){let a=n.length-n.length%s;for(a>=n.length&&(a-=s);a>0&&SM(t[0],t[a]);)r++,a-=s}return{step:s,delCount:r}},KY=(n,t)=>{if(ie(n.type))return NY(n,t);if(vi(n.type)){if(t.coordinateType==="cartesian")return UY(n,t);if(t.coordinateType==="polar"&&t.axisOrientType==="angle")return YY(n,t)}return Gs(n.domain())};function fb(n,t,e,i){let s="";if(!n||t.length===0)return s;const r=t[0],a=Ce.distancePP(n,r),o=e?0:1;return i?s+=`M${n.x},${n.y-a}A${a},${a},0,0,${o},${n.x},${n.y+a}A${a},${a},0,0,${o},${n.x},${n.y-a}Z`:t.forEach((l,h)=>{h===0?s=`M${l.x},${l.y}`:s+=`A${a},${a},0,0,${o},${l.x},${l.y}`}),s}function qY(n,t,e){const{type:i,closed:s}=e,r=t.slice(0).reverse();let a="",o="";if(i==="line"&&e.smoothLink&&e.center){const l=n[0],h=r[0],d=e.center;a=so(n,!!s),o=so(r,!!s);const c=Ce.distancePP(h,d),u=Ce.distancePP(l,d);a+=`A${c},${c},0,0,1,${h.x},${h.y}L${h.x},${h.y}`,o+=`A${u},${u},0,0,0,${l.x},${l.y}`}else if(i==="circle"){const{center:l}=e;a=fb(l,n,!1,!!s),o=fb(l,r,!0,!!s)}else i!=="line"&&i!=="polygon"||(a=so(n,!!s),o=so(r,!!s));return s?a+=o:(o="L"+o.substring(1),a+=o,a+="Z"),a}class Ia extends ui{constructor(){super(...arguments),this.name="axis-grid",this.data=[]}getInnerView(){return this._innerView}getPrevInnerView(){return this._prevInnerView}render(){this._prevInnerView=this._innerView&&wB(this._innerView),this.removeAllChild(!0),this._innerView=pt.group({x:0,y:0,pickable:!1}),this.add(this._innerView);const{items:t,visible:e}=this.attribute;t&&t.length&&e!==!1&&(this.data=this._transformItems(t),this._renderGrid(this._innerView))}getVerticalCoord(t,e,i){return jx(t,this.getVerticalVector(e,i,t))}_transformItems(t){const e=[];return t.forEach(i=>{var s;e.push(Object.assign(Object.assign({},i),{point:this.getTickCoord(i.value),id:(s=i.id)!==null&&s!==void 0?s:i.label}))}),e}_renderGrid(t){const{visible:e}=this.attribute.subGrid||{};e&&this._renderGridByType(!0,t),this._renderGridByType(!1,t)}_renderGridByType(t,e){const i=Y({},this.attribute,this.getGridAttribute(t)),{type:s,items:r,style:a,closed:o,alternateColor:l,depth:h=0}=i,d=t?`${Ni.grid}-sub`:`${Ni.grid}`;if(r.forEach((c,u)=>{const{id:p,points:g}=c;let f="";if(s==="line"||s==="polygon")f=so(g,!!o);else if(s==="circle"){const{center:m}=this.attribute;f=fb(m,g,!1,!!o)}const _=pt.path(Object.assign({path:f,z:h},G(a)?Y({},this.skipDefault?null:Ia.defaultAttributes.style,a(c,u)):a));_.name=`${d}-line`,_.id=this._getNodeId(`${d}-path-${p}`),e.add(_)}),h&&s==="line"&&r.forEach((c,u)=>{const{id:p,points:g}=c,f=[];f.push(g[0]);const _=g[1].x-g[0].x,m=g[1].y-g[0].y,y=Math.sqrt(_*_+m*m),b=h/y;f.push({x:g[0].x+_*b,y:g[0].y+m*b});const v=so(f,!!o),x=Gt(f[0].x-f[1].x),S=Gt(f[0].y-f[1].y),k=pt.path(Object.assign({path:v,z:0,alpha:x>S?(g[1].x-g[0].x>0?-1:1)*ee/2:0,beta:xS?[f[0].x,0]:[0,f[0].y]},G(a)?Y({},this.skipDefault?null:Ia.defaultAttributes.style,a(c,u)):a));k.name=`${d}-line`,k.id=this._getNodeId(`${d}-path-${p}`),e.add(k)}),r.length>1&&l){const c=V(l)?l:[l,"transparent"],u=p=>c[p%c.length];for(let p=0;p=2&&(s=this.data[1].value-this.data[0].value);let a=[];if(t){r=Y({},this.attribute,this.attribute.subGrid);const o=[],{count:l=4}=this.attribute.subGrid||{};if(this.data.length>=2){const h=[];this.data.forEach(d=>{let c=d.value;if(!i){const u=d.value-s/2;if(this.isInValidValue(u))return;c=u}h.push({value:c})});for(let d=0;d{let{point:h}=l;if(!i){const d=l.value-s/2;if(this.isInValidValue(d))return;h=this.getTickCoord(d)}o.push({id:l.label,datum:l,points:this._getGridPoint(e,h)})}),a=o}return Object.assign(Object.assign({},r),{items:a})}}$e(QB,DB);var ZY=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s=2&&(g=this.data[1].value-this.data[0].value),t){e=Y({},c,d);const f=[],{count:_=4}=d||{},m=this.data.length;if(m>=2){const y=[];this.data.forEach(b=>{let v=b.value;if(!u){const x=b.value-g/2;if(this.isInValidValue(x))return;v=x}y.push({value:v})});for(let b=0;b{let{point:y}=m;if(!u){const v=m.value-g/2;if(this.isInValidValue(v))return;y=this.getTickCoord(v)}const b=this.getVerticalCoord(y,p,!0);f.push({id:m.id,points:[y,b],datum:m})}),i=f}return Object.assign(Object.assign({},e),{items:i,center:h,type:"line"})}}$e(tI,zB);const MM="M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",JY={orient:"bottom",showDetail:"auto",brushSelect:!0,zoomLock:!1,minSpan:0,maxSpan:1,delayType:"throttle",delayTime:0,realTime:!0,backgroundStyle:{fill:"white",stroke:"#D1DBEE",lineWidth:1,cornerRadius:2},dragMaskStyle:{fill:"#B0C8F9",fillOpacity:.2},backgroundChartStyle:{area:{visible:!0,stroke:"#D1DBEE",lineWidth:1,fill:"#F6F8FC"},line:{visible:!0,stroke:"#D1DBEE",lineWidth:1}},selectedBackgroundStyle:{fill:"#B0C8F9",fillOpacity:.5},selectedBackgroundChartStyle:{area:{visible:!0,stroke:"#B0C8F9",lineWidth:1,fill:"#fbb934"},line:{visible:!0,stroke:"#fbb934",lineWidth:1}},middleHandlerStyle:{visible:!0,background:{size:8,style:{fill:"white",stroke:"#B0C8F9",cornerRadius:2}},icon:{size:6,fill:"white",stroke:"#B0C8F9",symbolType:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",lineWidth:.5}},startHandlerStyle:{visible:!0,triggerMinSize:0,symbolType:MM,fill:"white",stroke:"#B0C8F9",lineWidth:.5},endHandlerStyle:{visible:!0,triggerMinSize:0,symbolType:MM,fill:"white",stroke:"#B0C8F9",lineWidth:.5},startTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}},endTextStyle:{padding:4,textStyle:{fontSize:10,fill:"#6F6F6F"}}},Nr={horizontal:{angle:0,strokeBoundsBuffer:0,boundsPadding:2,pickMode:"imprecise",cursor:"ew-resize"},vertical:{angle:Math.PI/180*90,cursor:"ns-resize",boundsPadding:2,pickMode:"imprecise",strokeBoundsBuffer:0}};var en;(function(n){n.startHandler="startHandler",n.endHandler="endHandler",n.middleHandler="middleHandler",n.background="background"})(en||(en={}));function QY(){lm(),Lr(),ss(),dB(),Or()}var wM=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sr,this._onHandlerPointerDown=(r,a)=>{r.stopPropagation(),a==="start"?(this._activeTag=en.startHandler,this._activeItem=this._startHandlerMask):a==="end"?(this._activeTag=en.endHandler,this._activeItem=this._endHandlerMask):a==="middleRect"?(this._activeTag=en.middleHandler,this._activeItem=this._middleHandlerRect):a==="middleSymbol"?(this._activeTag=en.middleHandler,this._activeItem=this._middleHandlerSymbol):a==="background"&&(this._activeTag=en.background,this._activeItem=this._background),this._activeState=!0,this._activeCache.startPos=this.eventPosToStagePos(r),this._activeCache.lastPos=this.eventPosToStagePos(r),Rt.env==="browser"&&(Rt.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Rt.addEventListener("pointerup",this._onHandlerPointerUp)),this.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0})},this._pointerMove=r=>{r.stopPropagation();const{start:a,end:o,brushSelect:l,realTime:h=!0}=this.attribute,d=this.eventPosToStagePos(r),{attPos:c,max:u}=this._layoutCache,p=(d[c]-this._activeCache.lastPos[c])/u;let{start:g,end:f}=this.state;this._activeState&&(this._activeTag===en.middleHandler?this.moveZoomWithMiddle((this.state.start+this.state.end)/2+p):this._activeTag===en.startHandler?g+p>f?(g=f,f=g+p,this._activeTag=en.endHandler):g+=p:this._activeTag===en.endHandler&&(f+p{r.preventDefault();const{start:a,end:o,brushSelect:l,realTime:h=!0}=this.attribute;if(this._activeState&&this._activeTag===en.background){const d=this.eventPosToStagePos(r);this.backgroundDragZoom(this._activeCache.startPos,d)}this._activeState=!1,l&&this.renderDragMask(),a===this.state.start&&o===this.state.end||(this.setStateAttr(this.state.start,this.state.end,!0),this._dispatchEvent("change",{start:this.state.start,end:this.state.end,tag:this._activeTag})),Rt.env==="browser"&&(Rt.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Rt.removeEventListener("pointerup",this._onHandlerPointerUp)),this.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.removeEventListener("pointerup",this._onHandlerPointerUp)};const{position:i,showDetail:s}=t;this._activeCache.startPos=i,this._activeCache.lastPos=i,this._showText=s!=="auto"&&s,this.setPropsFromAttrs()}setAttributes(t,e){super.setAttributes(t,e),this.setPropsFromAttrs()}bindEvents(){if(this.attribute.disableTriggerEvent)return void this.setAttribute("childrenPickable",!1);const{showDetail:t,brushSelect:e}=this.attribute;this._startHandlerMask&&this._startHandlerMask.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"start")),this._endHandlerMask&&this._endHandlerMask.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"end")),this._middleHandlerSymbol&&this._middleHandlerSymbol.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"middleSymbol")),this._middleHandlerRect&&this._middleHandlerRect.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"middleRect"));const i=e?"background":"middleRect";this._selectedBackground&&this._selectedBackground.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,i)),e&&this._background&&this._background.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"background")),e&&this._previewGroup&&this._previewGroup.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,"background")),this._selectedPreviewGroup&&this._selectedPreviewGroup.addEventListener("pointerdown",s=>this._onHandlerPointerDown(s,i)),this.addEventListener("pointerup",this._onHandlerPointerUp),this.addEventListener("pointerupoutside",this._onHandlerPointerUp),t==="auto"&&(this.addEventListener("pointerenter",this._onHandlerPointerEnter),this.addEventListener("pointerleave",this._onHandlerPointerLeave))}dragMaskSize(){const{position:t}=this.attribute,{attPos:e,max:i}=this._layoutCache;return this._activeCache.lastPos[e]-t[e]>i?i+t[e]-this._activeCache.startPos[e]:this._activeCache.lastPos[e]-t[e]<0?t[e]-this._activeCache.startPos[e]:this._activeCache.lastPos[e]-this._activeCache.startPos[e]}setStateAttr(t,e,i){const{zoomLock:s=!1,minSpan:r=0,maxSpan:a=1}=this.attribute,o=e-t;o!==this._spanCache&&(s||oa)||(this._spanCache=o,this.state.start=t,this.state.end=e,i&&this.setAttributes({start:t,end:e}))}eventPosToStagePos(t){return this.stage.eventPointTransform(t)}_onHandlerPointerEnter(t){t.stopPropagation(),this._showText=!0,this.renderText()}_onHandlerPointerLeave(t){t.stopPropagation(),this._showText=!1,this.renderText()}backgroundDragZoom(t,e){const{attPos:i,max:s}=this._layoutCache,{position:r}=this.attribute,a=t[i]-r[i],o=e[i]-r[i],l=Math.min(Math.max(Math.min(a,o)/s,0),1),h=Math.min(Math.max(Math.max(a,o)/s,0),1);Math.abs(l-h)<.01?this.moveZoomWithMiddle(l):this.setStateAttr(l,h,!1)}moveZoomWithMiddle(t){let e=t-(this.state.start+this.state.end)/2;e!==0&&(e>0?this.state.end+e>1&&(e=1-this.state.end):e<0&&this.state.start+e<0&&(e=-this.state.start),this.setStateAttr(this.state.start+e,this.state.end+e,!1))}renderDragMask(){const{dragMaskStyle:t}=this.attribute,{position:e,width:i,height:s}=this.getLayoutAttrFromConfig();this._isHorizontal?this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:Fe(this.dragMaskSize()<0?this._activeCache.lastPos.x:this._activeCache.startPos.x,e.x,e.x+i),y:e.y,width:this._activeState&&this._activeTag===en.background&&Math.abs(this.dragMaskSize())||0,height:s},t),"rect"):this._dragMask=this._container.createOrUpdateChild("dragMask",Object.assign({x:e.x,y:Fe(this.dragMaskSize()<0?this._activeCache.lastPos.y:this._activeCache.startPos.y,e.y,e.y+s),width:i,height:this._activeState&&this._activeTag===en.background&&Math.abs(this.dragMaskSize())||0},t),"rect")}isTextOverflow(t,e,i){if(!e)return!1;if(this._isHorizontal){if(i==="start"){if(e.x1t.x2)return!0}else if(i==="start"){if(e.y1t.y2)return!0;return!1}setTextAttr(t,e){const{startTextStyle:i,endTextStyle:s}=this.attribute,{formatMethod:r}=i,a=wM(i,["formatMethod"]),{formatMethod:o}=s,l=wM(s,["formatMethod"]),{start:h,end:d}=this.state;this._startValue=this._statePointToData(h),this._endValue=this._statePointToData(d);const{position:c,width:u,height:p}=this.getLayoutAttrFromConfig(),g=r?r(this._startValue):this._startValue,f=o?o(this._endValue):this._endValue,_={x1:c.x,y1:c.y,x2:c.x+u,y2:c.y+p};let m,y,b,v;this._isHorizontal?(m={x:c.x+h*u,y:c.y+p/2},y={x:c.x+d*u,y:c.y+p/2},b={textAlign:this.isTextOverflow(_,t,"start")?"left":"right",textBaseline:"middle"},v={textAlign:this.isTextOverflow(_,e,"end")?"right":"left",textBaseline:"middle"}):(m={x:c.x+u/2,y:c.y+h*p},y={x:c.x+u/2,y:c.y+d*p},b={textAlign:"center",textBaseline:this.isTextOverflow(_,t,"start")?"top":"bottom"},v={textAlign:"center",textBaseline:this.isTextOverflow(_,e,"end")?"bottom":"top"}),this._startText=this.maybeAddLabel(this._container,Y({},a,{text:g,x:m.x,y:m.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:b}),`data-zoom-start-text-${c}`),this._endText=this.maybeAddLabel(this._container,Y({},l,{text:f,x:y.x,y:y.y,visible:this._showText,pickable:!1,childrenPickable:!1,textStyle:v}),`data-zoom-end-text-${c}`)}renderText(){let t=null,e=null;this.setTextAttr(t,e),t=this._startText.AABBBounds,e=this._endText.AABBBounds,this.setTextAttr(t,e),t=this._startText.AABBBounds,e=this._endText.AABBBounds;const{x1:i,x2:s,y1:r,y2:a}=t,{dx:o=0,dy:l=0}=this.attribute.startTextStyle;if(new di().set(i,r,s,a).intersects(e)){const h=this.attribute.orient==="bottom"||this.attribute.orient==="right"?-1:1;this._isHorizontal?this._startText.setAttribute("dy",l+h*Math.abs(e.y1-e.y2)):this._startText.setAttribute("dx",o+h*Math.abs(e.x1-e.x2))}else this._isHorizontal?this._startText.setAttribute("dy",l):this._startText.setAttribute("dx",o)}getLayoutAttrFromConfig(){var t,e,i,s,r,a;if(this._layoutAttrFromConfig)return this._layoutAttrFromConfig;const{position:o,size:l,orient:h,middleHandlerStyle:d={},startHandlerStyle:c={},endHandlerStyle:u={},backgroundStyle:p={}}=this.attribute,{width:g,height:f}=l,_=(e=(t=d.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:10;let m,y,b;d.visible?this._isHorizontal?(m=g,y=f-_,b={x:o.x,y:o.y+_}):(m=g-_,y=f,b={x:o.x+(h==="left"?_:0),y:o.y}):(m=g,y=f,b=o);const v=(i=c.size)!==null&&i!==void 0?i:this._isHorizontal?y:m,x=(s=u.size)!==null&&s!==void 0?s:this._isHorizontal?y:m;return c.visible&&(this._isHorizontal?(m-=(v+x)/2,b={x:b.x+v/2,y:b.y}):(y-=(v+x)/2,b={x:b.x,y:b.y+v/2})),y+=(r=p.lineWidth/2)!==null&&r!==void 0?r:1,m+=(a=p.lineWidth/2)!==null&&a!==void 0?a:1,this._layoutAttrFromConfig={position:b,width:m,height:y},this._layoutAttrFromConfig}render(){var t,e,i,s,r,a,o,l,h,d,c,u,p,g,f,_,m,y,b,v,x,S,k,A,T,M,w,E,R,O,B,I,D,F;this._layoutAttrFromConfig=null;const{orient:$,backgroundStyle:K,backgroundChartStyle:W={},selectedBackgroundStyle:et={},selectedBackgroundChartStyle:Z={},middleHandlerStyle:ht={},startHandlerStyle:J={},endHandlerStyle:N={},brushSelect:q,zoomLock:X}=this.attribute,{start:ot,end:ut}=this.state,{position:bt,width:lt,height:mt}=this.getLayoutAttrFromConfig(),xt=(t=J.triggerMinSize)!==null&&t!==void 0?t:40,Bt=(e=N.triggerMinSize)!==null&&e!==void 0?e:40,At=this.createOrUpdateChild("dataZoom-container",{},"group");if(this._container=At,this._background=At.createOrUpdateChild("background",Object.assign(Object.assign({x:bt.x,y:bt.y,width:lt,height:mt,cursor:q?"crosshair":"auto"},K),{pickable:!X&&((i=K.pickable)===null||i===void 0||i)}),"rect"),!((s=W.line)===null||s===void 0)&&s.visible&&this.setPreviewAttributes("line",At),!((r=W.area)===null||r===void 0)&&r.visible&&this.setPreviewAttributes("area",At),q&&this.renderDragMask(),this._isHorizontal?this._selectedBackground=At.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:bt.x+ot*lt,y:bt.y,width:(ut-ot)*lt,height:mt,cursor:q?"crosshair":"move"},et),{pickable:!X&&((a=Z.pickable)===null||a===void 0||a)}),"rect"):this._selectedBackground=At.createOrUpdateChild("selectedBackground",Object.assign(Object.assign({x:bt.x,y:bt.y+ot*mt,width:lt,height:(ut-ot)*mt,cursor:q?"crosshair":"move"},et),{pickable:!X&&((o=et.pickable)===null||o===void 0||o)}),"rect"),!((l=Z.line)===null||l===void 0)&&l.visible&&this.setSelectedPreviewAttributes("line",At),!((h=Z.area)===null||h===void 0)&&h.visible&&this.setSelectedPreviewAttributes("area",At),this._isHorizontal){if(ht.visible){const ai=((d=ht.background)===null||d===void 0?void 0:d.size)||10;this._middleHandlerRect=At.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:bt.x+ot*lt,y:bt.y-ai,width:(ut-ot)*lt,height:ai},(c=ht.background)===null||c===void 0?void 0:c.style),{pickable:!X&&((g=(p=(u=ht.background)===null||u===void 0?void 0:u.style)===null||p===void 0?void 0:p.pickable)===null||g===void 0||g)}),"rect"),this._middleHandlerSymbol=At.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:bt.x+(ot+ut)/2*lt,y:bt.y-ai/2,strokeBoundsBuffer:0,angle:0,symbolType:(_=(f=ht.icon)===null||f===void 0?void 0:f.symbolType)!==null&&_!==void 0?_:"square"},ht.icon),{pickable:!X&&((m=ht.icon.pickable)===null||m===void 0||m)}),"symbol")}this._startHandler=At.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:bt.x+ot*lt,y:bt.y+mt/2,size:mt,symbolType:(y=J.symbolType)!==null&&y!==void 0?y:"square"},Nr.horizontal),J),{pickable:!X&&((b=J.pickable)===null||b===void 0||b)}),"symbol"),this._endHandler=At.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:bt.x+ut*lt,y:bt.y+mt/2,size:mt,symbolType:(v=N.symbolType)!==null&&v!==void 0?v:"square"},Nr.horizontal),N),{pickable:!X&&((x=N.pickable)===null||x===void 0||x)}),"symbol");const ri=Math.max(this._startHandler.AABBBounds.width(),xt),Qt=Math.max(this._startHandler.AABBBounds.height(),xt),pi=Math.max(this._endHandler.AABBBounds.width(),Bt),Me=Math.max(this._endHandler.AABBBounds.height(),Bt);this._startHandlerMask=At.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:bt.x+ot*lt-ri/2,y:bt.y+mt/2-Qt/2,width:ri,height:Qt,fill:"white",fillOpacity:0,zIndex:999},Nr.horizontal),{pickable:!X}),"rect"),this._endHandlerMask=At.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:bt.x+ut*lt-pi/2,y:bt.y+mt/2-Me/2,width:pi,height:Me,fill:"white",fillOpacity:0,zIndex:999},Nr.horizontal),{pickable:!X}),"rect")}else{if(ht.visible){const ai=((S=ht.background)===null||S===void 0?void 0:S.size)||10;this._middleHandlerRect=At.createOrUpdateChild("middleHandlerRect",Object.assign(Object.assign({x:$==="left"?bt.x-ai:bt.x+lt,y:bt.y+ot*mt,width:ai,height:(ut-ot)*mt},(k=ht.background)===null||k===void 0?void 0:k.style),{pickable:!X&&((M=(T=(A=ht.background)===null||A===void 0?void 0:A.style)===null||T===void 0?void 0:T.pickable)===null||M===void 0||M)}),"rect"),this._middleHandlerSymbol=At.createOrUpdateChild("middleHandlerSymbol",Object.assign(Object.assign({x:$==="left"?bt.x-ai/2:bt.x+lt+ai/2,y:bt.y+(ot+ut)/2*mt,angle:Math.PI/180*90,symbolType:(E=(w=ht.icon)===null||w===void 0?void 0:w.symbolType)!==null&&E!==void 0?E:"square",strokeBoundsBuffer:0},ht.icon),{pickable:!X&&((O=(R=ht.icon)===null||R===void 0?void 0:R.pickable)===null||O===void 0||O)}),"symbol")}this._startHandler=At.createOrUpdateChild("startHandler",Object.assign(Object.assign(Object.assign({x:bt.x+lt/2,y:bt.y+ot*mt,size:lt,symbolType:(B=J.symbolType)!==null&&B!==void 0?B:"square"},Nr.vertical),J),{pickable:!X&&((I=J.pickable)===null||I===void 0||I)}),"symbol"),this._endHandler=At.createOrUpdateChild("endHandler",Object.assign(Object.assign(Object.assign({x:bt.x+lt/2,y:bt.y+ut*mt,size:lt,symbolType:(D=N.symbolType)!==null&&D!==void 0?D:"square"},Nr.vertical),N),{pickable:!X&&((F=N.pickable)===null||F===void 0||F)}),"symbol");const ri=Math.max(this._startHandler.AABBBounds.width(),xt),Qt=Math.max(this._startHandler.AABBBounds.height(),xt),pi=Math.max(this._endHandler.AABBBounds.width(),Bt),Me=Math.max(this._endHandler.AABBBounds.height(),Bt);this._startHandlerMask=At.createOrUpdateChild("startHandlerMask",Object.assign(Object.assign({x:bt.x+lt/2+ri/2,y:bt.y+ot*mt-Qt/2,width:Me,height:pi,fill:"white",fillOpacity:0,zIndex:999},Nr.vertical),{pickable:!X}),"rect"),this._endHandlerMask=At.createOrUpdateChild("endHandlerMask",Object.assign(Object.assign({x:bt.x+lt/2+pi/2,y:bt.y+ut*mt-Me/2,width:Me,height:pi,fill:"white",fillOpacity:0,zIndex:999},Nr.vertical),{pickable:!X}),"rect")}this._showText&&this.renderText()}computeBasePoints(){const{orient:t}=this.attribute,{position:e,width:i,height:s}=this.getLayoutAttrFromConfig();let r,a;return this._isHorizontal?(r=[{x:e.x,y:e.y+s}],a=[{x:e.x+i,y:e.y+s}]):t==="left"?(r=[{x:e.x+i,y:e.y}],a=[{x:e.x+i,y:e.y+s}]):(r=[{x:e.x,y:e.y+s}],a=[{x:e.x,y:e.y}]),{basePointStart:r,basePointEnd:a}}simplifyPoints(t){var e;if(t.length>1e4){const i=(e=this.attribute.tolerance)!==null&&e!==void 0?e:this._previewData.length/1e4;return LN(t,i)}return t}getPreviewLinePoints(){let t=this._previewData.map(s=>({x:this._previewPointsX&&this._previewPointsX(s),y:this._previewPointsY&&this._previewPointsY(s)}));if(t.length===0)return t;t=this.simplifyPoints(t);const{basePointStart:e,basePointEnd:i}=this.computeBasePoints();return e.concat(t).concat(i)}getPreviewAreaPoints(){let t=this._previewData.map(s=>({x:this._previewPointsX&&this._previewPointsX(s),y:this._previewPointsY&&this._previewPointsY(s),x1:this._previewPointsX1&&this._previewPointsX1(s),y1:this._previewPointsY1&&this._previewPointsY1(s)}));if(t.length===0)return t;t=this.simplifyPoints(t);const{basePointStart:e,basePointEnd:i}=this.computeBasePoints();return e.concat(t).concat(i)}setPreviewAttributes(t,e){this._previewGroup||(this._previewGroup=e.createOrUpdateChild("previewGroup",{pickable:!1},"group")),t==="line"?this._previewLine=this._previewGroup.createOrUpdateChild("previewLine",{},"line"):this._previewArea=this._previewGroup.createOrUpdateChild("previewArea",{curveType:"basis"},"area");const{backgroundChartStyle:i={}}=this.attribute;t==="line"&&this._previewLine.setAttributes(Object.assign({points:this.getPreviewLinePoints(),curveType:"basis",pickable:!1},i.line)),t==="area"&&this._previewArea.setAttributes(Object.assign({points:this.getPreviewAreaPoints(),curveType:"basis",pickable:!1},i.area))}setSelectedPreviewAttributes(t,e){this._selectedPreviewGroupClip||(this._selectedPreviewGroupClip=e.createOrUpdateChild("selectedPreviewGroupClip",{pickable:!1},"group"),this._selectedPreviewGroup=this._selectedPreviewGroupClip.createOrUpdateChild("selectedPreviewGroup",{},"group")),t==="line"?this._selectedPreviewLine=this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewLine",{},"line"):this._selectedPreviewArea=this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewArea",{curveType:"basis"},"area");const{selectedBackgroundChartStyle:i={}}=this.attribute,{start:s,end:r}=this.state,{position:a,width:o,height:l}=this.getLayoutAttrFromConfig();this._selectedPreviewGroupClip.setAttributes({x:this._isHorizontal?a.x+s*o:a.x,y:this._isHorizontal?a.y:a.y+s*l,width:this._isHorizontal?(r-s)*o:o,height:this._isHorizontal?l:(r-s)*l,clip:!0,pickable:!1}),this._selectedPreviewGroup.setAttributes({x:-(this._isHorizontal?a.x+s*o:a.x),y:-(this._isHorizontal?a.y:a.y+s*l),width:this._isHorizontal?(r-s)*o:o,height:this._isHorizontal?l:(r-s)*l,pickable:!1}),t==="line"&&this._selectedPreviewLine.setAttributes(Object.assign({points:this.getPreviewLinePoints(),curveType:"basis",pickable:!1},i.line)),t==="area"&&this._selectedPreviewArea.setAttributes(Object.assign({points:this.getPreviewAreaPoints(),curveType:"basis",pickable:!1},i.area))}maybeAddLabel(t,e,i){let s=this.find(r=>r.name===i,!0);return s?s.setAttributes(e):(s=new rs(e),s.name=i),t.add(s),s}setStartAndEnd(t,e){const{start:i,end:s}=this.attribute;P(t)&&P(e)&&(t!==this.state.start||e!==this.state.end)&&(this.state.start=t,this.state.end=e,i===this.state.start&&s===this.state.end||(this.setStateAttr(t,e,!0),this._dispatchEvent("change",{start:t,end:e,tag:this._activeTag})))}setPreviewData(t){this._previewData=t}setText(t,e){e==="start"?this._startText.setAttribute("text",t):this._endText.setAttribute("text",t)}getStartValue(){return this._startValue}getEndTextValue(){return this._endValue}getMiddleHandlerSize(){var t,e,i,s;const{middleHandlerStyle:r={}}=this.attribute,a=(e=(t=r.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:10,o=(s=(i=r.icon)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:10;return Math.max(a,...H(o))}setPreviewPointsX(t){G(t)&&(this._previewPointsX=t)}setPreviewPointsY(t){G(t)&&(this._previewPointsY=t)}setPreviewPointsX1(t){G(t)&&(this._previewPointsX1=t)}setPreviewPointsY1(t){G(t)&&(this._previewPointsY1=t)}setStatePointToData(t){G(t)&&(this._statePointToData=t)}};eI.defaultAttributes=JY;var _b;(function(n){n.start="start",n.startTop="startTop",n.startBottom="startBottom",n.insideStart="insideStart",n.insideStartTop="insideStartTop",n.insideStartBottom="insideStartBottom",n.middle="middle",n.insideMiddleTop="insideMiddleTop",n.insideMiddleBottom="insideMiddleBottom",n.end="end",n.endTop="endTop",n.endBottom="endBottom",n.insideEnd="insideEnd",n.insideEndTop="insideEndTop",n.insideEndBottom="insideEndBottom"})(_b||(_b={}));var mb;(function(n){n.left="left",n.right="right",n.top="top",n.bottom="bottom",n.middle="middle",n.insideLeft="insideLeft",n.insideRight="insideRight",n.insideTop="insideTop",n.insideBottom="insideBottom"})(mb||(mb={}));var Ai;(function(n){n.arcInnerStart="arcInnerStart",n.arcInnerEnd="arcInnerEnd",n.arcInnerMiddle="arcInnerMiddle",n.arcOuterStart="arcOuterStart",n.arcOuterEnd="arcOuterEnd",n.arcOuterMiddle="arcOuterMiddle",n.center="center"})(Ai||(Ai={}));var vb;(function(n){n.top="top",n.bottom="bottom",n.middle="middle",n.insideTop="insideTop",n.insideBottom="insideBottom",n.insideMiddle="insideMiddle"})(vb||(vb={}));function Mu(){We(),lm()}function e8(){Mu(),Fx()}function i8(){Mu(),zx()}function n8(){Mu(),am()}function s8(){Mu(),Rh()}function r8(){Mu(),Fx(),zx(),ss(),cB(),Or()}function nI(n,t){const{x1:e,y1:i,x2:s,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=n.AABBBounds;let d=0,c=0;return as&&(d=s-l),h>r&&(c=r-h),{dx:d,dy:c}}function Gx(n,t){const{dx:e,dy:i}=nI(n,t),{dx:s=0,dy:r=0}=n.attribute;e&&n.setAttribute("dx",e+s),i&&n.setAttribute("dy",i+r)}class xm extends ui{constructor(){super(...arguments),this.name="marker",this._onHover=t=>{this._lastHover=PB(t,this._container,this._lastHover)},this._onUnHover=t=>{this._lastHover=EB(t,this._container,this._lastHover)},this._onClick=t=>{this._lastSelect=RB(t,this._container,this._lastSelect)}}transAnimationConfig(){var t,e,i;if(this.attribute.animation!==!1){const s=Ct(this.attribute.animation)?this.attribute.animation:{};this._animationConfig={enter:Y({},this.defaultUpdateAnimation,s,(t=this.attribute.animationEnter)!==null&&t!==void 0?t:{}),exit:Y({},this.defaultExitAnimation,s,(e=this.attribute.animationExit)!==null&&e!==void 0?e:{}),update:Y({},this.defaultUpdateAnimation,s,(i=this.attribute.animationUpdate)!==null&&i!==void 0?i:{})}}}setAttribute(t,e,i){super.setAttribute(t,e,i),t==="visible"&&this.render()}_bindEvent(){var t,e,i;if(!this.attribute.interactive)return;const{hover:s,select:r}=this.attribute;s&&((t=this._container)===null||t===void 0||t.addEventListener("pointermove",this._onHover),(e=this._container)===null||e===void 0||e.addEventListener("pointerout",this._onUnHover)),r&&((i=this._container)===null||i===void 0||i.addEventListener("pointerdown",this._onClick))}_releaseEvent(){var t,e,i;(t=this._container)===null||t===void 0||t.removeEventListener("pointermove",this._onHover),(e=this._container)===null||e===void 0||e.removeEventListener("pointerout",this._onUnHover),(i=this._container)===null||i===void 0||i.removeEventListener("pointerdown",this._onClick)}_initContainer(){var t,e;const{limitRect:i={},clipInRange:s}=this.attribute;let r;if(s){const a=pt.group(Object.assign(Object.assign({},i),{clip:!0,pickable:!1}));r=pt.group({x:-((t=i.x)!==null&&t!==void 0?t:0),y:-((e=i.y)!==null&&e!==void 0?e:0),pickable:!1}),a.add(r),this._containerClip=a,this.add(a)}else r=pt.group({x:0,y:0,pickable:!1}),this.add(r);r.name="marker-container",this._container=r}_updateContainer(){var t,e;const{limitRect:i={},clipInRange:s}=this.attribute;this._containerClip&&this._containerClip.setAttributes(Object.assign({},i)),this._container.setAttributes({x:s?-((t=i.x)!==null&&t!==void 0?t:0):0,y:s?-((e=i.y)!==null&&e!==void 0?e:0):0})}render(){var t;this.transAnimationConfig(),this.setAttribute("pickable",!1);const e=(t=this.attribute.visible)===null||t===void 0||t;this.attribute.interactive===!1&&this.setAttribute("childrenPickable",!1),e&&this.isValidPoints()?this._container?(this._updateContainer(),this.updateMarker(),this.markerAnimate("update")):(this._initContainer(),this.initMarker(this._container),this.markerAnimate("enter")):(this.markerAnimate("exit"),this._container=null,this.removeAllChild(!0)),this._releaseEvent(),this._bindEvent()}release(){this.markerAnimate("exit"),super.release(),this._releaseEvent(),this._container=null}}function oi(n,t,e,i){var s,r,a,o,l;if(!n)return;(s=n==null?void 0:n.animates)===null||s===void 0||s.forEach(c=>c.stop("end"));const h=(a=(r=n.attribute)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1,d=(l=(o=n.attribute)===null||o===void 0?void 0:o.strokeOpacity)!==null&&l!==void 0?l:1;n.setAttributes({fillOpacity:0,strokeOpacity:0}),n.animate().wait(t).to({fillOpacity:h,strokeOpacity:d},e,i)}function sI(n,t,e,i){n&&(oi(n.startSymbol,t,e,i),n.lines.forEach(s=>oi(s,t,e,i)),oi(n.line,t,e,i),oi(n.endSymbol,t,e,i))}function Sm(n,t,e,i){n&&(oi(n.getTextShape(),t,e,i),oi(n.getBgRect(),t,e,i))}function Hs(n,t,e,i){var s,r,a,o;n&&(n.setAttributes({fillOpacity:(r=(s=n.attribute)===null||s===void 0?void 0:s.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(o=(a=n.attribute)===null||a===void 0?void 0:a.strokeOpacity)!==null&&o!==void 0?o:1}),n.animate().wait(t).to({fillOpacity:0,strokeOpacity:0},e,i))}function rI(n,t,e,i){n&&(Hs(n.startSymbol,t,e,i),n.lines.forEach(s=>Hs(s,t,e,i)),Hs(n.line,t,e,i),Hs(n.endSymbol,t,e,i))}function Am(n,t,e,i){n&&(Hs(n.getTextShape(),t,e,i),Hs(n.getBgRect(),t,e,i))}function CM(n,t,e,i,s){const r=.1*e,a=.7*e,o=.1*e,l=.1*e;oi(n.startSymbol,i,r,s),n.lines.forEach(h=>h.setAttribute("clipRange",0)),n.lines.forEach((h,d)=>{const c=a/n.lines.length;h.animate().wait(i+r+d*c).to({clipRange:1},c,s)}),oi(n.endSymbol,i+r+a,o,s),oi(t.getTextShape(),i+r+a+o,l,s),oi(t.getBgRect(),i+r+a+o,l,s)}function PM(n,t,e,i,s){sI(n,i,e,s),Sm(t,i,e,s)}function EM(n,t,e,i,s){oi(n,i,e,s),Sm(t,i,e,s)}function RM(n,t,e,i,s){oi(n,i,e,s),Sm(t,i,e,s)}function BM(n,t,e,i,s,r){var a;sI(n,s,i,r),oi(t,s,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?Sm(e,s,i,r):oi(e,s,i,r)}function a8(n,t,e,i,s){rI(n,i,e,s),Am(t,i,e,s)}function o8(n,t,e,i,s){Hs(n,i,e,s),Am(t,i,e,s)}function l8(n,t,e,i,s){Hs(n,i,e,s),Am(t,i,e,s)}function h8(n,t,e,i,s,r){var a;rI(n,s,i,r),Hs(t,s,i,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?Am(e,s,i,r):Hs(e,s,i,r)}function IM(n,t,e,i,s,r){var a;const o=.1*i,l=.65*i,h=.05*i,d=.1*i,c=.1*i;oi(n.startSymbol,s,o,r),n.lines.forEach(u=>u.setAttribute("clipRange",0)),n.lines.forEach((u,p)=>{const g=l/n.lines.length;u.animate().wait(s+o+p*g).to({clipRange:1},g,r)}),oi(t,s+o+l,h,r),oi(n.endSymbol,s+o+l+h,d,r),!((a=e.getTextShape)===null||a===void 0)&&a.call(e)?(oi(e.getTextShape(),s+o+l+h+d,c,r),oi(e.getBgRect(),s+o+l+d,c,r)):oi(e,s+o+l+d,c,r)}function aI(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="clipIn"?CM(n,t,l,h,d):o==="fadeIn"&&PM(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="clipIn"?CM(n,t,l,h,d):o==="fadeIn"&&PM(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;a8(n,t,o,l,h)}}function d8(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="fadeIn"&&EM(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&EM(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;o8(n,t,o,l,h)}}function c8(n,t,e,i){const{enter:s,update:r,exit:a}=e;if(i==="enter"){const{type:o,duration:l,delay:h,easing:d}=s;o==="fadeIn"&&RM(n,t,l,h,d)}else if(i==="update"){const{type:o,duration:l,delay:h,easing:d}=r;o==="fadeIn"&&RM(n,t,l,h,d)}else if(i==="exit"){const{duration:o,delay:l,easing:h}=a;l8(n,t,o,l,h)}}function u8(n,t,e,i){const[s,r]=n,{enter:a,update:o,exit:l}=e;if(i==="enter"){const{type:h,duration:d,delay:c,easing:u}=a;h==="fadeIn"?BM(s,r,t,d,c,u):h==="callIn"&&IM(s,r,t,d,c,u)}else if(i==="update"){const{type:h,duration:d,delay:c,easing:u}=o;h==="fadeIn"?BM(s,r,t,d,c,u):h==="callIn"&&IM(s,r,t,d,c,u)}else if(i==="exit"){const{duration:h,delay:d,easing:c}=l;h8(s,r,t,h,d,c)}}const p8={type:"clipIn",duration:500,easing:"linear",delay:0},oI={type:"fadeIn",duration:500,easing:"linear",delay:0},g8={type:"callIn",duration:500,easing:"linear",delay:0},km={type:"fadeOut",duration:500,easing:"linear",delay:0};class lI extends xm{constructor(){super(...arguments),this.name="markCommonLine",this.defaultUpdateAnimation=p8,this.defaultExitAnimation=km}getLine(){return this._line}getLabel(){return this._label}setLabelPos(){const{label:t={},limitRect:e}=this.attribute,{position:i,confine:s,autoRotate:r}=t,a=this.getPointAttrByPosition(i),o=i.toString().toLocaleLowerCase().includes("start")?this._line.getStartAngle()||0:this._line.getEndAngle()||0;if(this._label.setAttributes(Object.assign(Object.assign({},a.position),{angle:r?this.getRotateByAngle(a.angle):0,textStyle:Object.assign(Object.assign({},this.getTextStyle(i,o,r)),t.textStyle)})),e&&s){const{x:l,y:h,width:d,height:c}=e;Gx(this._label,{x1:l,y1:h,x2:l+d,y2:h+c})}}initMarker(t){const{label:e,state:i}=this.attribute,s=this.createSegment();s.name="mark-common-line-line",this._line=s,t.add(s);const r=new rs(Object.assign(Object.assign({},e),{state:{panel:Y({},Et,i==null?void 0:i.labelBackground),text:Y({},Et,i==null?void 0:i.label)}}));r.name="mark-common-line-label",this._label=r,t.add(r),this.setLabelPos()}updateMarker(){const{label:t,state:e}=this.attribute;this.setLineAttributes(),this._label&&(this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},t),{state:{panel:Y({},Et,e==null?void 0:e.labelBackground),text:Y({},Et,e==null?void 0:e.label)}})),this.setLabelPos())}}const Es=.001,f8={interactive:!0,startSymbol:{visible:!1,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},endSymbol:{visible:!0,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},label:{position:_b.end,refX:0,refY:0,refAngle:0,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}},OM={postiveXAxis:{start:{textAlign:"left",textBaseline:"middle"},startTop:{textAlign:"left",textBaseline:"bottom"},startBottom:{textAlign:"left",textBaseline:"top"},insideStart:{textAlign:"right",textBaseline:"middle"},insideStartTop:{textAlign:"right",textBaseline:"bottom"},insideStartBottom:{textAlign:"right",textBaseline:"top"},middle:{textAlign:"center",textBaseline:"middle"},insideMiddleTop:{textAlign:"center",textBaseline:"bottom"},insideMiddleBottom:{textAlign:"center",textBaseline:"top"},end:{textAlign:"left",textBaseline:"middle"},endTop:{textAlign:"left",textBaseline:"bottom"},endBottom:{textAlign:"left",textBaseline:"top"},insideEnd:{textAlign:"right",textBaseline:"middle"},insideEndTop:{textAlign:"right",textBaseline:"bottom"},insideEndBottom:{textAlign:"right",textBaseline:"top"}},negativeXAxis:{start:{textAlign:"right",textBaseline:"middle"},startTop:{textAlign:"right",textBaseline:"bottom"},startBottom:{textAlign:"right",textBaseline:"top"},insideStart:{textAlign:"left",textBaseline:"middle"},insideStartTop:{textAlign:"left",textBaseline:"bottom"},insideStartBottom:{textAlign:"left",textBaseline:"top"},middle:{textAlign:"center",textBaseline:"middle"},insideMiddleTop:{textAlign:"center",textBaseline:"bottom"},insideMiddleBottom:{textAlign:"center",textBaseline:"top"},end:{textAlign:"right",textBaseline:"middle"},endTop:{textAlign:"right",textBaseline:"bottom"},endBottom:{textAlign:"right",textBaseline:"top"},insideEnd:{textAlign:"left",textBaseline:"middle"},insideEndTop:{textAlign:"left",textBaseline:"bottom"},insideEndBottom:{textAlign:"left",textBaseline:"top"}}},_8={interactive:!0,startSymbol:{visible:!1,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},endSymbol:{visible:!0,symbolType:"triangle",size:12,fill:"rgba(46, 47, 50)",lineWidth:0},label:{position:Ai.arcOuterMiddle,refX:0,refY:0,refAngle:0,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},lineStyle:{stroke:"#b2bacf",lineWidth:1,lineDash:[2]}},m8={interactive:!0,label:{position:mb.right,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},areaStyle:{fill:"#b2bacf",visible:!0}},v8={interactive:!0,label:{position:Ai.arcOuterMiddle,textStyle:{fill:"#fff",stroke:"#fff",lineWidth:0,fontSize:10,fontWeight:"normal",fontStyle:"normal"},padding:[2,2,4,4],panel:{visible:!0,cornerRadius:0,fill:"rgb(48, 115, 242)",fillOpacity:.8}},areaStyle:{fill:"#b2bacf",visible:!0}},hI={arcInnerStart:{textAlign:"center",textBaseline:"bottom"},arcInnerEnd:{textAlign:"center",textBaseline:"bottom"},arcInnerMiddle:{textAlign:"center",textBaseline:"bottom"},arcOuterStart:{textAlign:"center",textBaseline:"top"},arcOuterEnd:{textAlign:"center",textBaseline:"top"},arcOuterMiddle:{textAlign:"center",textBaseline:"top"},center:{textAlign:"center",textBaseline:"middle"}},y8={left:{textAlign:"right",textBaseline:"middle"},insideLeft:{textAlign:"left",textBaseline:"middle"},right:{textAlign:"left",textBaseline:"middle"},insideRight:{textAlign:"right",textBaseline:"middle"},top:{textAlign:"center",textBaseline:"bottom"},insideTop:{textAlign:"center",textBaseline:"top"},bottom:{textAlign:"center",textBaseline:"top"},insideBottom:{textAlign:"center",textBaseline:"bottom"},middle:{textAlign:"center",textBaseline:"middle"}},b8={interactive:!0,targetSymbol:{visible:!1,offset:0,style:{symbolType:"circle",size:20,fill:!1,stroke:"rgba(46, 47, 50)"}},itemLine:{visible:!0,decorativeLine:{visible:!1,length:30},startSymbol:{visible:!0,clip:!0,symbolType:"circle",size:20,style:{fill:!1,stroke:"rgba(46, 47, 50)"}},endSymbol:{visible:!1,clip:!0,symbolType:"triangle",size:12,style:{fill:!1,stroke:"rgba(46, 47, 50)"}},lineStyle:{stroke:"#000",lineWidth:1}},itemContent:{type:"text",position:"middle",refX:10,symbolStyle:{symbolType:"star",fill:"rgb(48, 115, 242)",fillOpacity:.8,size:20},textStyle:{dx:0,dy:0},imageStyle:{width:80,height:80},richTextStyle:{width:100,height:100}}},LM={postiveXAxis:{top:{textAlign:"left",textBaseline:"bottom"},bottom:{textAlign:"left",textBaseline:"top"},middle:{textAlign:"left",textBaseline:"middle"},insideTop:{textAlign:"right",textBaseline:"bottom"},insideBottom:{textAlign:"right",textBaseline:"top"},insideMiddle:{textAlign:"right",textBaseline:"middle"}},negativeXAxis:{top:{textAlign:"right",textBaseline:"bottom"},bottom:{textAlign:"right",textBaseline:"top"},middle:{textAlign:"right",textBaseline:"middle"},insideTop:{textAlign:"left",textBaseline:"bottom"},insideBottom:{textAlign:"left",textBaseline:"top"},insideMiddle:{textAlign:"left",textBaseline:"middle"}}};e8();function dI(){pa._animate=aI}class pa extends lI{markerAnimate(t){pa._animate&&this._animationConfig&&pa._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},pa.defaultAttributes,t)),this.name="markLine"}getPointAttrByPosition(t){var e;const{label:i={}}=this.attribute,{refX:s=0,refY:r=0}=i,a=this._line.getMainSegmentPoints(),o=(e=this._line.getEndAngle())!==null&&e!==void 0?e:0,l=o,h=s*Math.cos(l)+r*Math.cos(l-Math.PI/2),d=s*Math.sin(l)+r*Math.sin(l-Math.PI/2);return t.includes("start")||t.includes("Start")?{position:{x:a[0].x+h,y:a[0].y+d},angle:l}:t.includes("middle")||t.includes("Middle")?{position:{x:(a[0].x+a[a.length-1].x)/2+h,y:(a[0].y+a[a.length-1].y)/2+d},angle:l}:{position:{x:a[a.length-1].x+h,y:a[a.length-1].y+d},angle:l}}getRotateByAngle(t){var e;return(Cf(t)?t:t-Math.PI)+((e=this.attribute.label.refAngle)!==null&&e!==void 0?e:0)}getTextStyle(t,e,i){return Ps(Math.abs(e),Math.PI/2,Es)||Ps(Math.abs(e),3*Math.PI/2,Es)?gB(i,e,t):Cf(e)?OM.postiveXAxis[t]:OM.negativeXAxis[t]}createSegment(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;return new Cr({points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,pickable:!1,state:{line:Y({},Et,o==null?void 0:o.line),startSymbol:Y({},Et,o==null?void 0:o.lineStartSymbol),endSymbol:Y({},Et,o==null?void 0:o.lineEndSymbol)}})}setLineAttributes(){const{points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:o}=this.attribute;this._line&&this._line.setAttributes({points:t,startSymbol:e,endSymbol:i,lineStyle:s,mainSegmentIndex:r,multiSegment:a,state:{line:Y({},Et,o==null?void 0:o.line),startSymbol:Y({},Et,o==null?void 0:o.lineStartSymbol),endSymbol:Y({},Et,o==null?void 0:o.lineEndSymbol)}})}isValidPoints(){const{points:t}=this.attribute;if(!t||t.length<2)return!1;let e=!0;return t.forEach(i=>{if(i.length)i.forEach(s=>{z(s.x)&&z(s.y)||(e=!1)});else if(!z(i.x)||!z(i.y))return void(e=!1)}),e}}pa.defaultAttributes=f8;n8();function cI(){ga._animate=d8}class ga extends xm{markerAnimate(t){ga._animate&&this._animationConfig&&ga._animate(this._area,this._label,this._animationConfig,t)}getArea(){return this._area}getLabel(){return this._label}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},ga.defaultAttributes,t)),this.name="markArea",this.defaultUpdateAnimation=oI,this.defaultExitAnimation=km}getPointAttrByPosition(t){const{x1:e,x2:i,y1:s,y2:r}=this._area.AABBBounds;return t.includes("left")||t.includes("Left")?{x:e,y:(s+r)/2}:t.includes("right")||t.includes("Right")?{x:i,y:(s+r)/2}:t.includes("top")||t.includes("Top")?{x:(e+i)/2,y:s}:t.includes("bottom")||t.includes("Bottom")?{x:(e+i)/2,y:r}:{x:(e+i)/2,y:(s+r)/2}}setLabelPos(){var t;if(this._label&&this._area){const{label:e={}}=this.attribute,i=(t=e.position)!==null&&t!==void 0?t:"middle",s=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},s),{textStyle:Object.assign(Object.assign({},y8[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:r,y:a,width:o,height:l}=this.attribute.limitRect;Gx(this._label,{x1:r,y1:a,x2:r+o,y2:a+l})}}}initMarker(t){const{points:e,label:i,areaStyle:s,state:r}=this.attribute,a=pt.polygon(Object.assign({points:e},s));a.states=Y({},Et,r==null?void 0:r.area),a.name="mark-area-polygon",this._area=a,t.add(a);const o=new rs(Object.assign(Object.assign({},i),{state:{panel:Y({},Et,r==null?void 0:r.labelBackground),text:Y({},Et,r==null?void 0:r.label)}}));o.name="mark-area-label",this._label=o,t.add(o),this.setLabelPos()}updateMarker(){const{points:t,label:e,areaStyle:i,state:s}=this.attribute;this._area&&(this._area.setAttributes(Object.assign({points:t},i)),this._area.states=Y({},Et,s==null?void 0:s.area)),this._label&&this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},e),{state:{panel:Y({},Et,s==null?void 0:s.labelBackground),text:Y({},Et,s==null?void 0:s.label)}})),this.setLabelPos()}isValidPoints(){const{points:t}=this.attribute;if(!t||t.length<3)return!1;let e=!0;return t.forEach(i=>{z(i.x)&&z(i.y)||(e=!1)}),e}}ga.defaultAttributes=m8;i8();function x8(){po._animate=aI}class po extends lI{markerAnimate(t){po._animate&&this._animationConfig&&po._animate(this._line,this._label,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},po.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcLine"}getPointAttrByPosition(t){const{center:e,radius:i,startAngle:s,endAngle:r,label:a}=this.attribute,{refX:o=0,refY:l=0}=a;let h;switch(t){case Ai.arcInnerStart:h=s;case Ai.arcOuterStart:h=s;break;case Ai.arcInnerEnd:h=r;case Ai.arcOuterEnd:h=r;break;case Ai.center:case Ai.arcInnerMiddle:case Ai.arcOuterMiddle:default:h=(s+r)/2}return{position:{x:e.x+(i+l)*Math.cos(h)+o*Math.cos(h-Math.PI/2),y:e.y+(i+l)*Math.sin(h)+o*Math.sin(h-Math.PI/2)},angle:h}}getTextStyle(t){return hI[t]}getRotateByAngle(t){var e;return t-Math.PI/2+((e=this.attribute.label.refAngle)!==null&&e!==void 0?e:0)}createSegment(){const{center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;return new hb({center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:Y({},Et,l==null?void 0:l.line),startSymbol:Y({},Et,l==null?void 0:l.lineStartSymbol),endSymbol:Y({},Et,l==null?void 0:l.lineEndSymbol)}})}setLineAttributes(){const{center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:l}=this.attribute;this._line&&this._line.setAttributes({center:t,radius:e,startAngle:i,endAngle:s,startSymbol:r,endSymbol:a,lineStyle:o,state:{line:Y({},Et,l==null?void 0:l.line),startSymbol:Y({},Et,l==null?void 0:l.lineStartSymbol),endSymbol:Y({},Et,l==null?void 0:l.lineEndSymbol)}})}isValidPoints(){return!0}}po.defaultAttributes=_8;s8();function S8(){go._animate=c8}class go extends xm{markerAnimate(t){go._animate&&this._animationConfig&&go._animate(this._area,this._label,this._animationConfig,t)}getArea(){return this._area}getLabel(){return this._label}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},go.defaultAttributes,t,{label:{autoRotate:!0}})),this.name="markArcArea",this.defaultUpdateAnimation=oI,this.defaultExitAnimation=km}getPointAttrByPosition(t){const{center:e,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a,label:o}=this.attribute,{refX:l=0,refY:h=0}=o;let d,c;switch(t){case Ai.center:d=(i+s)/2,c=(r+a)/2;break;case Ai.arcInnerStart:d=i,c=r;break;case Ai.arcOuterStart:d=s,c=r;break;case Ai.arcInnerEnd:d=i,c=a;break;case Ai.arcOuterEnd:d=s,c=a;break;case Ai.arcInnerMiddle:d=i,c=(r+a)/2;break;case Ai.arcOuterMiddle:d=s,c=(r+a)/2;break;default:d=i,c=(r+a)/2}return{position:{x:e.x+(d+h)*Math.cos(c)+l*Math.cos(c-Math.PI/2),y:e.y+(d+h)*Math.sin(c)+l*Math.sin(c-Math.PI/2)},angle:c}}setLabelPos(){var t;if(this._label&&this._area){const{label:e={}}=this.attribute,{position:i="arcInnerMiddle",autoRotate:s}=e,r=this.getPointAttrByPosition(i);if(this._label.setAttributes(Object.assign(Object.assign({},r.position),{angle:s?r.angle-Math.PI/2+((t=e.refAngle)!==null&&t!==void 0?t:0):0,textStyle:Object.assign(Object.assign({},hI[i]),e.textStyle)})),this.attribute.limitRect&&e.confine){const{x:a,y:o,width:l,height:h}=this.attribute.limitRect;Gx(this._label,{x1:a,y1:o,x2:a+l,y2:o+h})}}}initMarker(t){const{center:e,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a,areaStyle:o,label:l,state:h}=this.attribute,d=pt.arc(Object.assign({x:e.x,y:e.y,innerRadius:i,outerRadius:s,startAngle:r,endAngle:a},o));d.states=Y({},Et,h==null?void 0:h.area),d.name="polar-mark-area-area",this._area=d,t.add(d);const c=new rs(Object.assign(Object.assign({},l),{state:{panel:Y({},Et,h==null?void 0:h.labelBackground),text:Y({},Et,h==null?void 0:h.label)}}));c.name="mark-area-label",this._label=c,t.add(c),this.setLabelPos()}updateMarker(){const{center:t,innerRadius:e,outerRadius:i,startAngle:s,endAngle:r,areaStyle:a,label:o,state:l}=this.attribute;this._area&&(this._area.setAttributes(Object.assign({x:t.x,y:t.y,innerRadius:e,outerRadius:i,startAngle:s,endAngle:r},a)),this._area.states=Y({},Et,l==null?void 0:l.area)),this._label&&(this._label.setAttributes(Object.assign(Object.assign({dx:0,dy:0},o),{state:{panel:Y({},Et,l==null?void 0:l.labelBackground),text:Y({},Et,l==null?void 0:l.label)}})),this.setLabelPos())}isValidPoints(){return!0}}go.defaultAttributes=v8;r8();function Ux(){fa._animate=u8}class fa extends xm{markerAnimate(t){fa._animate&&this._animationConfig&&fa._animate([this._line,this._decorativeLine],this._item,this._animationConfig,t)}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},fa.defaultAttributes,t)),this.name="markPoint",this.defaultUpdateAnimation=g8,this.defaultExitAnimation=km,this._isArcLine=!1,this._isStraightLine=!1}setLabelPos(){}getTextAlignAttr(t,e,i,s,r){return Ps(Math.abs(s),Math.PI/2,Es)||Ps(Math.abs(s),3*Math.PI/2,Es)?gB(t,s,r):Cf(s)?LM.postiveXAxis[r]:LM.negativeXAxis[r]}setItemAttributes(t,e,i,s,r){var a,o;if(!t)return;const{autoRotate:l=!0,refX:h=0,refY:d=0,refAngle:c=0,textStyle:u={},richTextStyle:p={},imageStyle:g={},position:f=vb.middle}=e,{state:_}=this.attribute,m=((a=this._line)===null||a===void 0?void 0:a.getEndAngle())||0,y=h*Math.cos(m)+d*Math.cos(m-Math.PI/2),b=h*Math.sin(m)+d*Math.sin(m-Math.PI/2);if(r==="text"){const x=s.x-i.x,S=s.y-i.y;t.setAttributes(Object.assign(Object.assign({},u),{textStyle:Object.assign(Object.assign({},this.getTextAlignAttr(l,x,S,m,(o=e.position)!==null&&o!==void 0?o:"end")),u.textStyle),state:{panel:Y({},Et,_==null?void 0:_.textBackground),text:Y({},Et,_==null?void 0:_.text)}}))}else r==="richText"?(t.setAttributes({dx:this.getItemDx(t,f,p)+(p.dx||0),dy:this.getItemDy(t,f,p)+(p.dy||0)}),t.states=Y({},Et,_==null?void 0:_.richText)):r==="image"&&(t.setAttributes({dx:this.getItemDx(t,f,g)+(g.dx||0),dy:this.getItemDy(t,f,g)+(g.dy||0)}),t.states=Y({},Et,_==null?void 0:_.image));const v=Cf(m)?m:m-Math.PI;t.setAttributes({x:s.x+(y||0),y:s.y+(b||0),angle:l&&v+c})}getItemDx(t,e,i){var s,r;const a=(r=(s=t==null?void 0:t.AABBBounds)===null||s===void 0?void 0:s.width())!==null&&r!==void 0?r:(i==null?void 0:i.width)||0;return e.includes("inside")?-a:0}getItemDy(t,e,i){var s,r;const a=(r=(s=t==null?void 0:t.AABBBounds)===null||s===void 0?void 0:s.height())!==null&&r!==void 0?r:(i==null?void 0:i.height)||0;return e.includes("top")||e.includes("Top")?-a:e.includes("middle")||e.includes("Middle")?-a/2:0}initItem(t,e,i){const{state:s}=this.attribute,{type:r="text",symbolStyle:a,richTextStyle:o,imageStyle:l,renderCustomCallback:h}=t;let d;return r==="symbol"?(d=pt.symbol(Object.assign(Object.assign({},i),a)),d.states=Y({},Et,s==null?void 0:s.symbol)):r==="text"?d=new rs(Object.assign(Object.assign({},i),{state:{panel:Y({},Et,s==null?void 0:s.textBackground),text:Y({},Et,s==null?void 0:s.text)}})):r==="richText"?(d=pt.richtext(Object.assign(Object.assign({},i),o)),d.states=Y({},Et,s==null?void 0:s.richText)):r==="image"?(d=pt.image(Object.assign(Object.assign({},i),l)),d.states=Y({},Et,s==null?void 0:s.image)):r==="custom"&&h&&(d=h(),d.states=Y({},Et,s==null?void 0:s.customMark)),d.name=`mark-point-${r}`,this.setItemAttributes(d,t,e,i,r),d}getItemLineAttr(t,e,i){let s=[],r={x:0,y:0},a=0,o=0,l=0;const{type:h="type-s",arcRatio:d=.8}=t,c=i.x-e.x,u=i.y-e.y;if(this._isStraightLine=Ps(c,0,Es)||Ps(u,0,Es),this._isArcLine){const{x:p,y:g}=e,{x:f,y:_}=i,m=(p+f)/2,y=(g+_)/2,b=g===_?0:-(p-f)/(g-_),v=m+d*(_>g?-1:1)*m,x=(S=>b*(S-m)+y)(v);o=H0(g-x,p-v),l=H0(_-x,f-v),r={x:v,y:x},d>0?l{const s=i.target;s.hasState("disable")||s.addState("hover")},this._onUnHover=i=>{i.target.removeState("hover")},this._onClick=i=>{const s=i.target;if(s.name==="preHandler"){if(this._current===1)return;this._current-=1,this._current===1?s.addState("disable"):s.removeState("disable"),this._dispatchEvent("toPrev",{current:this._current,total:this._total,direction:"pre",event:i})}if(s.name==="nextHandler"){if(this._current===this._total)return;this._current+=1,this._current===this._total?s.addState("disable"):s.removeState("disable"),this._dispatchEvent("toNext",{current:this._current,total:this._total,direction:"next",event:i})}this._current>1&&this.preHandler.removeState("disable"),this._current{const s=i.target;if(s&&s.name&&s.name.startsWith(Pi.item)){const r=s.delegate;if(this._lastActiveItem){if(this._lastActiveItem.id===r.id)return;this._unHover(this._lastActiveItem,i)}this._hover(r,i)}else this._lastActiveItem&&(this._unHover(this._lastActiveItem,i),this._lastActiveItem=null)},this._onUnHover=i=>{this._lastActiveItem&&(this._unHover(this._lastActiveItem,i),this._lastActiveItem=null)},this._onClick=i=>{var s,r,a,o;const l=i.target;if(l&&l.name&&l.name.startsWith(Pi.item)){const h=l.delegate,{selectMode:d="multiple"}=this.attribute;if(l.name===Pi.focus||d==="focus"){const c=h.hasState(kt.focus);h.toggleState(kt.focus),c?(s=this._itemsContainer)===null||s===void 0||s.getChildren().forEach(u=>{this._removeLegendItemState(u,[kt.unSelected,kt.unSelectedHover,kt.focus],i),this._setLegendItemState(u,kt.selected,i)}):(this._setLegendItemState(h,kt.selected,i),this._removeLegendItemState(h,[kt.unSelected,kt.unSelectedHover],i),(r=this._itemsContainer)===null||r===void 0||r.getChildren().forEach(u=>{h!==u&&(this._removeLegendItemState(u,[kt.selected,kt.selectedHover,kt.focus],i),this._setLegendItemState(u,kt.unSelected,i))}))}else{(a=this._itemsContainer)===null||a===void 0||a.getChildren().forEach(g=>{g.removeState(kt.focus)});const{allowAllCanceled:c=!0}=this.attribute,u=h.hasState(kt.selected),p=this._getSelectedLegends();if(d==="multiple"){if(c===!1&&u&&p.length===1)return void this._dispatchLegendEvent(Ui.legendItemClick,h,i);u?(this._removeLegendItemState(h,[kt.selected,kt.selectedHover],i),this._setLegendItemState(h,kt.unSelected,i)):(this._setLegendItemState(h,kt.selected,i),this._removeLegendItemState(h,[kt.unSelected,kt.unSelectedHover],i))}else this._setLegendItemState(h,kt.selected,i),this._removeLegendItemState(h,[kt.unSelected,kt.unSelectedHover],i),(o=this._itemsContainer)===null||o===void 0||o.getChildren().forEach(g=>{h!==g&&(this._removeLegendItemState(g,[kt.selected,kt.selectedHover],i),this._setLegendItemState(g,kt.unSelected,i))})}this._dispatchLegendEvent(Ui.legendItemClick,h,i)}}}render(){super.render(),this._lastActiveItem=null}setSelected(t){var e;((e=this._itemsContainer)===null||e===void 0?void 0:e.getChildren()).forEach(i=>{const s=i.data;t.includes(s.label)?(this._setLegendItemState(i,kt.selected),this._removeLegendItemState(i,[kt.unSelected,kt.unSelectedHover])):(this._removeLegendItemState(i,[kt.selected,kt.selectedHover]),this._setLegendItemState(i,kt.unSelected))})}_renderItems(){const{item:t={},maxCol:e=1,maxRow:i=2,maxWidth:s,maxHeight:r,defaultSelected:a,lazyload:o,autoPage:l}=this.attribute,{spaceCol:h=Hp,spaceRow:d=Vp}=t,c=this._itemsContainer,{items:u,isHorizontal:p,startIndex:g,isScrollbar:f}=this._itemContext,_=f?1:p?i:e;let m,{doWrap:y,maxWidthInCol:b,startX:v,startY:x,pages:S}=this._itemContext,k=0;for(let A=g,T=u.length;Athis._itemContext.currentPage*_);A++){o&&(this._itemContext.startIndex=A+1),m=u[A],m.id||(m.id=m.label),m.index=A;let M=!0;V(a)&&(M=a.includes(m.label));const w=this._renderEachItem(m,M,A,u),E=w.attribute.width,R=w.attribute.height;this._itemHeight=Math.max(this._itemHeight,R),b=Math.max(E,b),this._itemMaxWidth=Math.max(E,this._itemMaxWidth),p?(P(s)&&(f&&l?(S=Math.ceil((v+E)/s),y=S>1):v+E>s&&(y=!0,v>0&&(S+=1,v=0,x+=R+d))),v===0&&x===0||w.setAttributes({x:v,y:x}),v+=h+E):(P(r)&&(f&&l?(S=Math.ceil((x+R)/r),y=S>1):r<=R?(S+=1,y=!0,x=0,A>0&&(v+=k+h)):rthis._itemContext.maxPages&&(f=this._renderPagerComponent()),f||(a.setAttribute("y",this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",8):0),this._innerView.add(a))}_bindEvents(){if(this.attribute.disableTriggerEvent||!this._itemsContainer)return;const{hover:t=!0,select:e=!0}=this.attribute;t&&(this._itemsContainer.addEventListener("pointermove",this._onHover),this._itemsContainer.addEventListener("pointerleave",this._onUnHover)),e&&this._itemsContainer.addEventListener("pointerdown",this._onClick)}_autoEllipsis(t,e,i,s){var r,a;const{label:o,value:l}=this.attribute.item,h=s.AABBBounds,d=i.AABBBounds,c=h.width(),u=d.width();let p=!1;t==="labelFirst"?u>e?p=!0:s.setAttribute("maxLineWidth",e-u):t==="valueFirst"?c>e?p=!0:i.setAttribute("maxLineWidth",e-c):c+u>e&&(p=!0),p&&(s.setAttribute("maxLineWidth",Math.max(e*((r=o.widthRatio)!==null&&r!==void 0?r:.5),e-u)),i.setAttribute("maxLineWidth",Math.max(e*((a=l.widthRatio)!==null&&a!==void 0?a:.5),e-c)))}_renderEachItem(t,e,i,s){var r,a;const{id:o,label:l,value:h,shape:d}=t,{padding:c=0,focus:u,focusIconStyle:p,align:g,autoEllipsisStrategy:f}=this.attribute.item,{shape:_,label:m,value:y,background:b}=this.attribute.item,v=this._handleStyle(_,t,e,i,s),x=this._handleStyle(m,t,e,i,s),S=this._handleStyle(y,t,e,i,s),k=this._handleStyle(b,t,e,i,s),A=ln(c);let T;b.visible===!1?(T=pt.group({x:0,y:0,cursor:(r=k.style)===null||r===void 0?void 0:r.cursor}),this._appendDataToShape(T,Pi.item,t,T)):(T=pt.group(Object.assign({x:0,y:0},k.style)),this._appendDataToShape(T,Pi.item,t,T,k.state)),T.id=`${o??l}-${i}`,T.addState(e?kt.selected:kt.unSelected);const M=pt.group({x:0,y:0,pickable:!1});T.add(M);let w,E=0,R=0,O=0;if(_&&_.visible!==!1){const J=Pt(v,"style.size",Of);R=V(J)?J[0]||0:J,O=Pt(_,"space",gI);const N=pt.symbol(Object.assign(Object.assign({x:0,y:0,symbolType:"circle",strokeBoundsBuffer:0},d),v.style));Object.keys(v.state||{}).forEach(q=>{const X=v.state[q].fill||v.state[q].stroke;d.fill&&C(v.state[q].fill)&&X&&(v.state[q].fill=X),d.stroke&&C(v.state[q].stroke)&&X&&(v.state[q].stroke=X)}),this._appendDataToShape(N,Pi.itemShape,t,T,v.state),N.addState(e?kt.selected:kt.unSelected),M.add(N)}let B=0;if(u){const J=Pt(p,"size",Of);w=pt.symbol(Object.assign(Object.assign({x:0,y:-J/2-1,strokeBoundsBuffer:0},p),{visible:!0,pickMode:"imprecise",boundsPadding:A})),this._appendDataToShape(w,Pi.focus,t,T),B=J}const I=m.formatMethod?m.formatMethod(l,t,i):l,D=Object.assign(Object.assign({x:R/2+O,y:0,textAlign:"start",textBaseline:"middle",lineHeight:(a=x.style)===null||a===void 0?void 0:a.fontSize},x.style),{text:I,_originText:m.formatMethod?l:void 0}),F=Bc(D);this._appendDataToShape(F,Pi.itemLabel,t,T,x.state),F.addState(e?kt.selected:kt.unSelected),M.add(F);const $=Pt(m,"space",fI);if(P(h)){const J=Pt(y,"space",u?A8:0),N=y.formatMethod?y.formatMethod(h,t,i):h,q=Object.assign(Object.assign({x:0,y:0,textAlign:"start",textBaseline:"middle",lineHeight:S.style.fontSize},S.style),{text:N,_originText:y.formatMethod?h:void 0}),X=Bc(q);if(this._appendDataToShape(X,Pi.itemValue,t,T,S.state),X.addState(e?kt.selected:kt.unSelected),this._itemWidthByUser){const ot=this._itemWidthByUser-A[1]-A[3]-R-O-$-B-J;this._autoEllipsis(f,ot,F,X),y.alignRight?X.setAttributes({textAlign:"right",x:this._itemWidthByUser-R/2-A[1]-A[3]-B-J}):X.setAttribute("x",J+(F.AABBBounds.empty()?0:F.AABBBounds.x2))}else X.setAttribute("x",J+(F.AABBBounds.empty()?0:F.AABBBounds.x2));E=J+(X.AABBBounds.empty()?0:X.AABBBounds.x2),M.add(X)}else this._itemWidthByUser&&F.setAttribute("maxLineWidth",this._itemWidthByUser-A[1]-A[3]-R-O-B),E=$+(F.AABBBounds.empty()?0:F.AABBBounds.x2);w&&(w.setAttribute("x",E),M.add(w));const K=M.AABBBounds,W=K.width();if(g==="right"){const J=K.x2,N=K.x1;M.forEachChildren((q,X)=>{q.type!=="symbol"&&q.attribute.textAlign!=="right"||q===w?q.setAttribute("x",N+J-q.attribute.x-q.AABBBounds.width()):q.type!=="symbol"?q.setAttributes({x:N+J-q.attribute.x,textAlign:"left"}):q.setAttribute("x",N+J-q.attribute.x)})}const et=K.height(),Z=P(this.attribute.item.width)?this.attribute.item.width:W+A[1]+A[3],ht=this._itemHeightByUser||et+A[0]+A[2];return T.attribute.width=Z,T.attribute.height=ht,w&&w.setAttribute("visible",!1),M.translateTo(-K.x1+A[3],-K.y1+A[0]),T}_createPager(t){var e,i;const{disableTriggerEvent:s,maxRow:r}=this.attribute,a=o=>o<=99?99:o<=999?999:9999;return this._itemContext.isHorizontal?new Fc(Object.assign(Object.assign({layout:r===1?"horizontal":"vertical",total:a(this._itemContext.pages)},Y({handler:{preShape:"triangleUp",nextShape:"triangleDown"}},t)),{defaultCurrent:(e=this.attribute.pager)===null||e===void 0?void 0:e.defaultCurrent,disableTriggerEvent:s})):new Fc(Object.assign({layout:"horizontal",total:a(this._itemContext.pages),disableTriggerEvent:s,defaultCurrent:(i=this.attribute.pager)===null||i===void 0?void 0:i.defaultCurrent},t))}_createScrollbar(t,e){const{disableTriggerEvent:i}=this.attribute;return this._itemContext.isHorizontal?new wf(Object.assign(Object.assign({direction:"horizontal",disableTriggerEvent:i,range:[0,.5],height:12},t),{width:e})):new wf(Object.assign(Object.assign({direction:"vertical",width:12,range:[0,.5]},t),{height:e,disableTriggerEvent:i}))}_updatePositionOfPager(t,e,i,s,r){const{maxHeight:a,pager:o}=this.attribute,{totalPage:l,isHorizontal:h}=this._itemContext,d=o&&o.position||"middle";if(this._pagerComponent.setTotal(l),h){let c;c=d==="start"?i:d==="end"?i+r-this._pagerComponent.AABBBounds.height()/2:i+r/2-this._pagerComponent.AABBBounds.height()/2,this._pagerComponent.setAttributes({x:t,y:c})}else{let c;c=d==="start"?0:d==="end"?s-this._pagerComponent.AABBBounds.width():(s-this._pagerComponent.AABBBounds.width())/2,this._pagerComponent.setAttributes({x:c,y:a-this._pagerComponent.AABBBounds.height()})}}_updatePositionOfScrollbar(t,e,i){const{currentPage:s,totalPage:r,isHorizontal:a}=this._itemContext;this._pagerComponent.setScrollRange([(s-1)/r,s/r]),a?this._pagerComponent.setAttributes({x:0,y:i+e}):this._pagerComponent.setAttributes({x:t,y:i})}_bindEventsOfPager(t,e){const i=this.attribute.pager||{},{animation:s=!0,animationDuration:r=450,animationEasing:a="quadIn"}=i,o=this._itemContext.isScrollbar?h=>{const{value:d}=h.detail;let c=d[0]*this._itemContext.totalPage;return i.scrollByPosition?c+=1:c=Math.floor(c)+1,c}:h=>h.detail.current,l=h=>{const d=o(h);if(d!==this._itemContext.currentPage){if(this._itemContext.currentPage=d,this._itemContext&&this._itemContext.startIndex{const{width:w,height:E}=T.attribute;y0&&T.setAttributes({x:v,y:x}),v+=l+w}),this._itemContext.startX=v,this._itemContext.startY=x,this._itemContext.pages=S;const A=Math.ceil(S/r);this._itemContext.totalPage=A,this._updatePositionOfPager(y,b,t,_,m)}else{if(_=this._itemMaxWidth*s+(s-1)*l,m=i,y=_,f=this._createPager(p),this._pagerComponent=f,this._innerView.add(f),b=i-f.AABBBounds.height()-c-t,b<=0)return this._innerView.removeChild(f),!1;d.getChildren().forEach((T,M)=>{const{height:w}=T.attribute;b0&&T.setAttributes({x:v,y:x}),x+=h+w});const A=Math.ceil(S/s);this._itemContext.totalPage=A,this._updatePositionOfPager(y,b,t,_,m)}u>1&&(g?d.setAttribute("y",-(u-1)*(m+h)):d.setAttribute("x",-(u-1)*(_+l)));const k=pt.group({x:0,y:t,width:g?y:_,height:g?m:b,clip:!0,pickable:!1});return k.add(d),this._innerView.add(k),this._bindEventsOfPager(g?m+h:_+l,g?"y":"x"),!0}_renderScrollbar(){const t=this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",8):0,{maxWidth:e,maxHeight:i,item:s={},pager:r={}}=this.attribute,{spaceCol:a=Hp,spaceRow:o=Vp}=s,l=this._itemsContainer,{space:h=yb,defaultCurrent:d=1}=r,c=DM(r,["space","defaultCurrent"]),{isHorizontal:u}=this._itemContext;let p,g=0,f=0,_=0,m=0,y=1;if(u)g=e,f=e,_=this._itemHeight,p=this._createScrollbar(c,g),this._pagerComponent=p,this._innerView.add(p),this._updatePositionOfScrollbar(f,_,t);else{if(g=i,p=this._createScrollbar(c,g),this._pagerComponent=p,this._innerView.add(p),_=i-t,f=this._itemMaxWidth,_<=0)return this._innerView.removeChild(p),!1;l.getChildren().forEach((v,x)=>{const{height:S}=v.attribute;y=Math.floor((m+S)/_)+1,m+=o+S}),this._itemContext.totalPage=y,this._itemContext.pages=y,this._updatePositionOfScrollbar(f,_,t)}d>1&&(u?l.setAttribute("x",-(d-1)*(f+a)):l.setAttribute("y",-(d-1)*(_+o)));const b=pt.group({x:0,y:t,width:f,height:_,clip:!0,pickable:!1});return b.add(l),this._innerView.add(b),this._bindEventsOfPager(u?f:_,u?"x":"y"),!0}_renderPagerComponent(){return this._itemContext.isScrollbar?this._renderScrollbar():this._renderPager(),!0}_hover(t,e){this._lastActiveItem=t,t.hasState(kt.selected)?this._setLegendItemState(t,kt.selectedHover,e):this._setLegendItemState(t,kt.unSelectedHover,e);const i=t.getChildren()[0].find(s=>s.name===Pi.focus,!1);i&&i.setAttribute("visible",!0),this._dispatchLegendEvent(Ui.legendItemHover,t,e)}_unHover(t,e){let i=!1;(t.hasState(kt.unSelectedHover)||t.hasState(kt.selectedHover))&&(i=!0),t.removeState(kt.unSelectedHover),t.removeState(kt.selectedHover),t.getChildren()[0].getChildren().forEach(r=>{i||!r.hasState(kt.unSelectedHover)&&!r.hasState(kt.selectedHover)||(i=!0),r.removeState(kt.unSelectedHover),r.removeState(kt.selectedHover)});const s=t.getChildren()[0].find(r=>r.name===Pi.focus,!1);s&&s.setAttribute("visible",!1),i&&this._dispatchLegendEvent(Ui.legendItemAttributeUpdate,t,e),this._dispatchLegendEvent(Ui.legendItemUnHover,t,e)}_setLegendItemState(t,e,i){let s=!1;t.hasState(e)||(s=!0),t.addState(e,!0),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Pi.focus&&(s||r.hasState(e)||(s=!0),r.addState(e,!0))}),s&&this._dispatchLegendEvent(Ui.legendItemAttributeUpdate,t,i)}_removeLegendItemState(t,e,i){let s=!1;e.forEach(r=>{!s&&t.hasState(r)&&(s=!0),t.removeState(r)}),t.getChildren()[0].getChildren().forEach(r=>{r.name!==Pi.focus&&e.forEach(a=>{!s&&r.hasState(a)&&(s=!0),r.removeState(a)})}),s&&this._dispatchLegendEvent(Ui.legendItemAttributeUpdate,t,i)}_getSelectedLegends(){var t;const e=[];return(t=this._itemsContainer)===null||t===void 0||t.getChildren().forEach(i=>{i.hasState(kt.selected)&&e.push(i.data)}),e}_appendDataToShape(t,e,i,s,r={}){t.name=e,t.data=i,t.delegate=s,t.states=Y({},w8,r)}_dispatchLegendEvent(t,e,i){const s=this._getSelectedLegends();s.sort((a,o)=>a.index-o.index);const r=s.map(a=>a.label);this._dispatchEvent(t,{item:e,data:e.data,selected:e.hasState(kt.selected),currentSelectedItems:s,currentSelected:r,event:i})}_handleStyle(t,e,i,s,r){const a={};return t.style&&(G(t.style)?a.style=t.style(e,i,s,r):a.style=t.style),t.state&&(a.state={},Object.keys(t.state).forEach(o=>{t.state[o]&&(G(t.state[o])?a.state[o]=t.state[o](e,i,s,r):a.state[o]=t.state[o])})),a}};_I.defaultAttributes={layout:"horizontal",title:{align:"start",space:wu,textStyle:{fontSize:12,fontWeight:"bold",fill:"#2C3542"}},item:{spaceCol:Hp,spaceRow:Vp,shape:{space:gI,style:{size:Of,cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{opacity:.5}}},label:{space:fI,style:{fontSize:12,fill:"#2C3542",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},value:{alignRight:!1,style:{fontSize:12,fill:"#ccc",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},background:{style:{cursor:"pointer"}},focus:!1,focusIconStyle:{size:Of,symbolType:"M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8.75044 2.55077L8.75 3.75H7.25L7.25006 2.5507C4.81247 2.88304 2.88304 4.81247 2.5507 7.25006L3.75 7.25V8.75L2.55077 8.75044C2.8833 11.1878 4.81264 13.117 7.25006 13.4493L7.25 12.25H8.75L8.75044 13.4492C11.1876 13.1167 13.1167 11.1876 13.4492 8.75044L12.25 8.75V7.25L13.4493 7.25006C13.117 4.81264 11.1878 2.8833 8.75044 2.55077ZM8 5.5C9.38071 5.5 10.5 6.61929 10.5 8C10.5 9.38071 9.38071 10.5 8 10.5C6.61929 10.5 5.5 9.38071 5.5 8C5.5 6.61929 6.61929 5.5 8 5.5ZM8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7Z",fill:"#333",cursor:"pointer"}},autoPage:!0,pager:{space:yb,handler:{style:{size:10},space:4}},hover:!0,select:!0,selectMode:"multiple",allowAllCanceled:!0};var Ci;(function(n){n.innerView="innerView",n.railContainer="sliderRailContainer",n.rail="sliderRail",n.startText="sliderStartText",n.endText="sliderEndText",n.startHandler="sliderStartHandler",n.startHandlerText="startHandlerText",n.endHandler="sliderEndHandler",n.endHandlerText="sliderEndHandlerText",n.track="sliderTrack",n.trackContainer="sliderTrackContainer"})(Ci||(Ci={}));function Y0(n){return V(n)?n:[n,n]}function bp(n){return n?"ew-resize":"ns-resize"}Tm();class Bh extends ui{get track(){return this._track}get currentValue(){return this._currentValue}get startHandler(){return this._startHandler}get endHandler(){return this._endHandler}get tooltipShape(){return this._tooltipShape}constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Bh.defaultAttributes,t)),this.name="slider",this._isHorizontal=!0,this._startHandler=null,this._endHandler=null,this._startHandlerText=null,this._endHandlerText=null,this._currentHandler=null,this._currentValue={},this._onTooltipShow=i=>{this._isChanging||this._tooltipState&&this._tooltipState.isActive||(this._tooltipState?this._tooltipState.isActive=!0:this._tooltipState={isActive:!0},this._onTooltipUpdate(i),this._dispatchTooltipEvent("sliderTooltipShow"))},this._onTooltipUpdate=i=>{if(this._isChanging||!this._tooltipState||!this._tooltipState.isActive)return;const s=this._isHorizontal?this._rail.globalAABBBounds.width():this._rail.globalAABBBounds.height(),r=Fe(this._isHorizontal?(i.viewX-this._rail.globalAABBBounds.x1)/s:(i.viewY-this._rail.globalAABBBounds.y1)/s,0,1);r!==this._tooltipState.pos&&(this._tooltipState.pos=r,this._tooltipState.value=this.calculateValueByPos(r*s),this._updateTooltip(),this._dispatchTooltipEvent("sliderTooltipUpdate"))},this._onTooltipHide=()=>{const{tooltip:i}=this.attribute;i&&i.alwaysShow||(this._tooltipState=null,this._tooltipShape&&this._tooltipShape.setAttribute("visible",!1),this._tooltipText&&this._tooltipText.setAttribute("visible",!1),this._dispatchTooltipEvent("sliderTooltipHide"))},this._onHandlerPointerdown=i=>{i.stopPropagation(),this._isChanging=!0;const{x:s,y:r}=this.stage.eventPointTransform(i);this._currentHandler=i.target,this._prePos=this._isHorizontal?s:r,Rt.env==="browser"?(Rt.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Rt.addEventListener("pointerup",this._onHandlerPointerUp)):(this.stage.addEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.stage.addEventListener("pointerup",this._onHandlerPointerUp),this.stage.addEventListener("pointerupoutside",this._onHandlerPointerUp))},this._onHandlerPointerMove=i=>{var s,r;i.stopPropagation(),this._isChanging=!0;const{railWidth:a,railHeight:o,min:l,max:h}=this.attribute;if(h===l)return;const{x:d,y:c}=this.stage.eventPointTransform(i);let u,p,g,f=0;this._isHorizontal?(u=d,f=u-this._prePos,p=(r=this._currentHandler)===null||r===void 0?void 0:r.attribute.x,g=a):(u=c,f=u-this._prePos,p=(s=this._currentHandler)===null||s===void 0?void 0:s.attribute.y,g=o);const _=Fe(p+f,0,g),m=this.calculateValueByPos(_);this._currentHandler.type==="text"?this._updateHandlerText(this._currentHandler,_,m):this._updateHandler(this._currentHandler,_,m),this._updateTrack(),this._prePos=u,this._dispatchChangeEvent()},this._onHandlerPointerUp=i=>{i.preventDefault(),this._isChanging=!1,this._currentHandler=null,Rt.env==="browser"?(Rt.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),Rt.removeEventListener("pointerup",this._onHandlerPointerUp)):(this.stage.removeEventListener("pointermove",this._onHandlerPointerMove,{capture:!0}),this.stage.removeEventListener("pointerup",this._onHandlerPointerUp),this.stage.removeEventListener("pointerupoutside",this._onHandlerPointerUp))},this._onTrackPointerdown=i=>{i.stopPropagation(),this._isChanging=!0;const{x:s,y:r}=this.stage.eventPointTransform(i);this._prePos=this._isHorizontal?s:r,Rt.env==="browser"?(Rt.addEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Rt.addEventListener("pointerup",this._onTrackPointerUp)):(this.stage.addEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),this.stage.addEventListener("pointerup",this._onTrackPointerUp),this.stage.addEventListener("pointerupoutside",this._onTrackPointerUp))},this._onTrackPointerMove=i=>{i.stopPropagation(),this._isChanging=!0;const{railWidth:s,railHeight:r,min:a,max:o,inverse:l}=this.attribute;if(o===a)return;const{startHandler:h,endHandler:d}=this._getHandlers();let c,u,p;const{x:g,y:f}=this.stage.eventPointTransform(i);this._isHorizontal?(c=g,u=this._track.attribute.width,p=s):(c=f,u=this._track.attribute.height,p=r);const _=c-this._prePos;if(h){const m=this._isHorizontal?h.attribute.x:h.attribute.y,y=l?Fe(m+_,u,p):Fe(m+_,0,p-u),b=this.calculateValueByPos(y);this._updateHandler(h,y,b)}if(d){const m=this._isHorizontal?d.attribute.x:d.attribute.y,y=l?Fe(m+_,0,p-u):Fe(m+_,u,p),b=this.calculateValueByPos(y),v=h==null?void 0:h.attribute;this._updateHandler(d,y,b),this._track.setAttributes(this._isHorizontal?{x:Math.min(v.x,d.attribute.x),width:Math.abs(v.x-d.attribute.x)}:{y:Math.min(v.y,d.attribute.y),height:Math.abs(v.y-d.attribute.y)})}this._prePos=c,this._dispatchChangeEvent()},this._onTrackPointerUp=i=>{i.preventDefault(),this._isChanging=!1,Rt.env==="browser"?(Rt.removeEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),Rt.removeEventListener("pointerup",this._onTrackPointerUp)):(this.stage.removeEventListener("pointermove",this._onTrackPointerMove,{capture:!0}),this.stage.removeEventListener("pointerup",this._onTrackPointerUp),this.stage.removeEventListener("pointerupoutside",this._onTrackPointerUp))},this._onRailPointerDown=i=>{i.stopPropagation(),this._isChanging=!0;const{railWidth:s,railHeight:r,min:a,max:o}=this.attribute;if(o===a)return;const l=this._startHandler,h=this._endHandler;let d,c,u;this._isHorizontal?(d=i.viewX-this._rail.globalAABBBounds.x1,c=l==null?void 0:l.attribute.x,u=h==null?void 0:h.attribute.x):(d=i.viewY-this._rail.globalAABBBounds.y1,c=l==null?void 0:l.attribute.y,u=h==null?void 0:h.attribute.y);const p=this.calculateValueByPos(d);if(P(u)){const g=Math.abs(d-c)>Math.abs(d-u)?h:l;this._updateHandler(g,d,p)}else this._updateHandler(l,d,p);this._updateTrack(),this._dispatchChangeEvent()}}calculatePosByValue(t,e){const{layout:i,railWidth:s,railHeight:r,min:a,max:o,inverse:l}=this.attribute;let h=0;return h=a===o?e==="start"?0:e==="end"?1:0:(t-a)/(o-a),(l?1-h:h)*(i==="vertical"?r:s)}calculateValueByPos(t){const{layout:e,railWidth:i,railHeight:s,min:r,max:a,inverse:o}=this.attribute,l=e==="vertical"?s:i;return r+(a-r)*(o?1-t/l:t/l)}setValue(t){const{min:e,max:i}=this.attribute;if(i===e)return;const[s,r]=H(t),{startHandler:a,endHandler:o}=this._getHandlers();a&&this._updateHandler(a,this.calculatePosByValue(s),s),o&&this._updateHandler(o,this.calculatePosByValue(r),r),this._updateTrack()}render(){var t,e;this.removeAllChild(!0);const{layout:i="horizontal",railWidth:s,railHeight:r,startText:a,endText:o,min:l,max:h,showHandler:d=!0,showTooltip:c}=this.attribute;let{value:u}=this.attribute;C(u)&&(u=[l,h]),this._currentValue={startValue:Y0(u)[0],endValue:Y0(u)[1]};const p=i==="horizontal";this._isHorizontal=p;const g=pt.group({x:0,y:0});g.name=Ci.innerView,this.add(g),this._innerView=g;let f,_=0;if(a&&a.visible){f=pt.text(Object.assign({x:p?0:s/2,y:p?r/2:0,textAlign:p?"start":"center",textBaseline:p?"middle":"top",text:a.text,lineHeight:(t=a.style)===null||t===void 0?void 0:t.fontSize},a.style)),f.name=Ci.startText,g.add(f);const v=P(a.space)?a.space:0;_+=(p?f.AABBBounds.width():f.AABBBounds.height())+v}const m=pt.group({x:p?_:0,y:p?0:_});g.add(m);const y=pt.group({x:0,y:0});let b;if(y.name=Ci.railContainer,this._railContainer=y,m.add(y),this._mainContainer=m,this._renderRail(y),_+=p?s:r,o&&o.visible){const v=P(o.space)?o.space:0;b=pt.text(Object.assign({x:p?_+v:s/2,y:p?r/2:_+v,textAlign:p?"start":"center",textBaseline:p?"middle":"top",text:o.text,lineHeight:(e=o.style)===null||e===void 0?void 0:e.fontSize},o.style)),b.name=Ci.endText,g.add(b)}this._renderTrack(y),d&&(this._renderHandlers(m),this._bindEvents()),c&&(this._renderTooltip(),this._bindTooltipEvents())}_renderRail(t){const{railWidth:e,railHeight:i,railStyle:s,slidable:r}=this.attribute;let a="default";r!==!1&&(a="pointer");const o=pt.rect(Object.assign({x:0,y:0,width:e,height:i,cursor:a},s));return o.name=Ci.rail,t.add(o),this._rail=o,o}_renderHandlers(t){const{range:e,min:i,max:s,handlerSize:r=14,handlerStyle:a,handlerText:o,railHeight:l,railWidth:h,slidable:d}=this.attribute;let{value:c}=this.attribute;C(c)&&(c=[i,s]);const u=o&&o.visible,p=this._isHorizontal,[g,f]=Y0(c),_=this.calculatePosByValue(g,e?"start":"end"),m=this._renderHandler(Object.assign({x:p?_:h/2,y:p?l/2:_,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":bp(p)},a));if(m.name=Ci.startHandler,this._startHandler=m,t.add(m),this._currentValue.startPos=_,u){const y=this._renderHandlerText(g,e?"start":"end");y.name=Ci.startHandlerText,t.add(y),this._startHandlerText=y}if(e){const y=this.calculatePosByValue(f,"end"),b=this._renderHandler(Object.assign({x:p?y:h/2,y:p?l/2:y,size:r,strokeBoundsBuffer:0,cursor:d===!1?"default":bp(p)},a));if(b.name=Ci.endHandler,this._endHandler=b,t.add(b),this._currentValue.endPos=y,u){const v=this._renderHandlerText(f,"end");v.name=Ci.endHandlerText,t.add(v),this._endHandlerText=v}}}_renderTrack(t){const{range:e,min:i,max:s,railHeight:r,railWidth:a,trackStyle:o,railStyle:l,slidable:h,value:d}=this.attribute;let c,u;if(C(d))e?(c=i,u=s):c=u=i;else if(e){const v=qa(d,i,s);c=v[0],u=v[1]}else c=i,u=Fe(d,i,s);const p=this._isHorizontal;e||(c=i);const g=pt.group({x:0,y:0,width:a,height:r,cornerRadius:l==null?void 0:l.cornerRadius,clip:!0,pickable:!1});g.name=Ci.trackContainer;const f=Ct(e)&&e.draggableTrack===!0;let _;_=h===!1?"default":e===!1||f===!1?"pointer":bp(p);const m=this.calculatePosByValue(c,"start"),y=this.calculatePosByValue(u,e?"end":"start"),b=pt.rect(Object.assign({x:p?Math.min(m,y):0,y:p?0:Math.min(m,y),width:p?Math.abs(y-m):a,height:p?r:Math.abs(y-m),cursor:_},o));b.name=Ci.track,this._track=b,g.add(b),t.add(g)}_renderHandler(t){return pt.symbol(t)}_renderHandlerText(t,e){var i,s,r;const{align:a,handlerSize:o=14,handlerText:l={},railHeight:h,railWidth:d,slidable:c}=this.attribute,u=this._isHorizontal,p=this.calculatePosByValue(t,e),g=(i=l.space)!==null&&i!==void 0?i:4,f={text:l.formatter?l.formatter(t):t.toFixed((s=l.precision)!==null&&s!==void 0?s:0),lineHeight:(r=l.style)===null||r===void 0?void 0:r.lineHeight,cursor:c===!1?"default":bp(u)};return u?a==="top"?(f.textBaseline="bottom",f.textAlign="center",f.x=p,f.y=(h-o)/2-g):(f.textBaseline="top",f.textAlign="center",f.x=p,f.y=(h+o)/2+g):a==="left"?(f.textBaseline="middle",f.textAlign="end",f.x=(d-o)/2-g,f.y=p):(f.textBaseline="middle",f.textAlign="start",f.x=(d+o)/2+g,f.y=p),pt.text(Object.assign(Object.assign({},f),l.style))}_renderTooltip(){var t;const{tooltip:e,railHeight:i,railWidth:s,align:r}=this.attribute;e&&e.alwaysShow?this._tooltipState={value:this._currentValue.startValue,pos:this._currentValue.startPos}:this._tooltipState=null;const a=this._isHorizontal?0:s/2,o=this._isHorizontal?i/2:0;if(e&&e.shape){const u=pt.symbol(Object.assign({pickable:!1,visible:!!this._tooltipState,x:a,y:o,symbolType:"circle"},e.shapeStyle));this._tooltipShape=u,this._mainContainer.add(u)}const l=e&&e.text||{},h=(t=l.space)!==null&&t!==void 0?t:6,d={pickable:!1,visible:!!this._tooltipState,text:""};this._isHorizontal?(d.x=a,d.y=r==="top"?o-i/2-h:o+i/2+h,d.textAlign="center",d.textBaseline=r==="top"?"bottom":"top"):(d.y=o,d.x=r==="left"?a-s/2-h:o+s/2+h,d.textAlign=r==="left"?"end":"start",d.textBaseline="middle");const c=pt.text(Object.assign(Object.assign({},d),l.style));this._mainContainer.add(c),this._tooltipText=c,this._tooltipState&&this._updateTooltip()}_updateTooltip(){var t,e;if(!this._tooltipShape&&!this._tooltipText||!this._tooltipState)return;const{railWidth:i,railHeight:s}=this.attribute,r=this._isHorizontal?i:s,a=this._tooltipState.pos*r,o=this._isHorizontal?"x":"y";this._tooltipShape&&this._tooltipShape.setAttributes({visible:!0,[o]:a});const{align:l}=this.attribute;if(this._tooltipText){const h=this.attribute.tooltip&&this.attribute.tooltip.text||{};this._tooltipText.setAttributes({visible:!0,[o]:a,text:h.formatter?h.formatter(this._tooltipState.value):this._isHorizontal||l!=="left"?`≈ ${this._tooltipState.value.toFixed((e=h.precision)!==null&&e!==void 0?e:0)}`:`${this._tooltipState.value.toFixed((t=h.precision)!==null&&t!==void 0?t:0)} ≈`})}}_bindEvents(){if(this.attribute.disableTriggerEvent)return;const{slidable:t,range:e}=this.attribute;t&&(this._startHandler&&this._startHandler.addEventListener("pointerdown",this._onHandlerPointerdown),this._startHandlerText&&this._startHandlerText.addEventListener("pointerdown",this._onHandlerPointerdown),this._endHandler&&this._endHandler.addEventListener("pointerdown",this._onHandlerPointerdown),this._endHandlerText&&this._endHandlerText.addEventListener("pointerdown",this._onHandlerPointerdown),Ct(e)&&e.draggableTrack&&this._track.addEventListener("pointerdown",this._onTrackPointerdown),this._railContainer.addEventListener("pointerdown",this._onRailPointerDown))}_bindTooltipEvents(){this.attribute.disableTriggerEvent||(this._mainContainer.addEventListener("pointerenter",this._onTooltipShow),this._mainContainer.addEventListener("pointermove",this._onTooltipUpdate),this._mainContainer.addEventListener("pointerleave",this._onTooltipHide))}_updateTrack(){const{inverse:t,railWidth:e,railHeight:i}=this.attribute,s=this._startHandler,r=this._endHandler;if(this._isHorizontal){const a=s==null?void 0:s.attribute.x;if(r){const o=r==null?void 0:r.attribute.x;this._track.setAttributes({x:Math.min(a,o),width:Math.abs(a-o)})}else t?this._track.setAttributes({x:a,width:e-a}):this._track.setAttributes({width:a})}else{const a=s==null?void 0:s.attribute.y;if(r){const o=r==null?void 0:r.attribute.y;this._track.setAttributes({y:Math.min(a,o),height:Math.abs(a-o)})}else t?this._track.setAttributes({y:a,height:i-a}):this._track.setAttributes({height:a})}}_updateHandler(t,e,i){var s;const r=this._isHorizontal;t.setAttribute(r?"x":"y",e);const a=t.name===Ci.startHandler?this._startHandlerText:this._endHandlerText;if(a){const{handlerText:o={}}=this.attribute;a.setAttributes({text:o.formatter?o.formatter(i):i.toFixed((s=o.precision)!==null&&s!==void 0?s:0),[r?"x":"y"]:e})}t.name===Ci.startHandler?(this._currentValue.startValue=i,this._currentValue.startPos=e):(this._currentValue.endValue=i,this._currentValue.endPos=e)}_updateHandlerText(t,e,i){var s;const r=this._isHorizontal,{handlerText:a={}}=this.attribute;t.setAttributes({[r?"x":"y"]:e,text:a.formatter?a.formatter(i):i.toFixed((s=a.precision)!==null&&s!==void 0?s:0)});const o=t.name===Ci.startHandlerText?this._startHandler:this._endHandler;o&&o.setAttributes({[r?"x":"y"]:e}),t.name===Ci.startHandlerText?(this._currentValue.startValue=i,this._currentValue.startPos=e):(this._currentValue.endValue=i,this._currentValue.endPos=e)}_dispatchChangeEvent(){const t=!!this.attribute.range,e=this._currentValue;this._dispatchEvent("change",{value:t?[Math.min(e.endValue,e.startValue),Math.max(e.endValue,e.startValue)]:e.startValue,position:t?[Math.min(e.endPos,e.startPos),Math.max(e.endPos,e.startPos)]:e.startPos})}_dispatchTooltipEvent(t){this._dispatchEvent("sliderTooltip",{type:t,position:this._tooltipState&&this._tooltipState.pos,value:this._tooltipState&&this._tooltipState.value})}_getHandlers(){const{inverse:t}=this.attribute;let e=this._startHandler,i=this._endHandler;return i?(this._isHorizontal?(!t&&i.attribute.x<(e==null?void 0:e.attribute.x)||t&&i.attribute.x>(e==null?void 0:e.attribute.x))&&([e,i]=[i,e]):(!t&&i.attribute.y<(e==null?void 0:e.attribute.y)||t&&i.attribute.y>(e==null?void 0:e.attribute.y))&&([e,i]=[i,e]),{startHandler:e,endHandler:i}):{startHandler:e,endHandler:i}}}Bh.defaultAttributes={slidable:!0,layout:"horizontal",align:"bottom",height:8,showHandler:!0,handlerSize:14,handlerStyle:{symbolType:"circle",fill:"#fff",stroke:"#91caff",lineWidth:2},tooltip:{shapeStyle:{symbolType:"circle",fill:"#fff",stroke:"#91caff",lineWidth:2},text:{style:{fill:"#2C3542",fontSize:12}}},railStyle:{fill:"rgba(0,0,0,.04)"},trackStyle:{fill:"#91caff"},showValue:!0,valueStyle:{fill:"#2C3542",fontSize:12},startText:{style:{fill:"#2C3542",fontSize:12}},endText:{style:{fill:"#2C3542",fontSize:12}},handlerText:{visible:!0,space:4,precision:0,style:{fill:"#2C3542",fontSize:12}}};T8();class Mm extends $x{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Mm.defaultAttributes,t)),this.name="colorLegend",this._onSliderToolipChange=i=>{const s=this._slider.tooltipShape;if(s&&i.detail&&!C(i.detail.value)){const r=this._colorScale.scale(i.detail.value);s.setAttribute("fill",r)}this.dispatchEvent(i)},this._onSliderChange=i=>{this._updateColor(),this.dispatchEvent(i)}}setSelected(t){this._slider&&(this._slider.setValue(t),this._updateColor())}_renderContent(){const{colors:t,slidable:e,layout:i,align:s,min:r,max:a,value:o,railWidth:l,railHeight:h,showHandler:d=!0,handlerSize:c,handlerStyle:u,railStyle:p,trackStyle:g,startText:f,endText:_,handlerText:m,showTooltip:y,tooltip:b,inverse:v,disableTriggerEvent:x}=this.attribute,S=[],k=(a-r)/(t.length-1);for(let T=0;T1){const _=this._color.stops,m=Math.min(u,p),y=Math.max(u,p),b=m/f,v=y/f,x=v-b,S=_.filter(E=>E.offset>b&&E.offset{w.push({offset:(E.offset-b)/x,color:E.color})}),w.push({offset:1,color:M}),l.setAttribute("fill",Object.assign(Object.assign({},this._color),{stops:w}))}}}Mm.defaultAttributes={layout:"horizontal",title:{align:"start",space:wu,textStyle:{fontSize:12,fontWeight:"bold",fill:"rgba(46, 47, 50, 1)"}},handlerSize:10,handlerStyle:{fill:null,lineWidth:4,stroke:"#fff",outerBorder:{distance:2,lineWidth:1,stroke:"#ccc"}},tooltip:{shapeStyle:{lineWidth:4,stroke:"#fff"}}};function C8(n="bottom"){let t=0;return n==="top"?` + M${t},-6L${t-3.5},-2.5 + v5 + h7 + v-5 + Z +`:n==="left"?(t=1,` + M${t-6},0L${t-6+2.5},-3.5 + h5 + v7 + h-5 + Z +`):n==="right"?(t=-1,` + M${t+6},0L${t+6-2.5},-3.5 + h-5 + v7 + h5 + Z + `):` + M${t},6L${t-3.5},2.5 + v-5 + h7 + v5 + Z +`}M8();class wm extends $x{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},wm.defaultAttributes,t)),this.name="sizeLegend",this._onSliderChange=i=>{this.dispatchEvent(i)},this._onSliderToolipChange=i=>{this.dispatchEvent(i)}}setSelected(t){this._slider&&this._slider.setValue(t)}_renderContent(){const{slidable:t,layout:e,align:i,min:s,max:r,value:a,railWidth:o,railHeight:l,showHandler:h=!0,handlerSize:d,handlerStyle:c,railStyle:u,trackStyle:p,startText:g,endText:f,handlerText:_,showTooltip:m,tooltip:y,sizeBackground:b,disableTriggerEvent:v,inverse:x}=this.attribute,S=pt.group({x:0,y:0});this._innerView.add(S);const k=new Bh({x:0,y:0,zIndex:1,range:{draggableTrack:!0},slidable:t,layout:e,align:i,min:s,max:r,value:a,railWidth:o,railHeight:l,showHandler:h,handlerSize:d,handlerStyle:Object.assign({symbolType:C8(i)},c),railStyle:u,trackStyle:p,startText:g,endText:f,handlerText:_,showTooltip:m,tooltip:y,disableTriggerEvent:v,inverse:x});S.add(k);let A,T=0;e==="horizontal"?i==="top"?(A=`M0,0L${o},0L${x?0:o},12Z`,T=l):(A=`M0,12L${o},12L${x?0:o},0Z`,k.setAttribute("y",12)):i==="left"?A=`M${o},0L${o+12},${x?0:l}L${o},${l}Z`:(A=`M0,${x?0:l}L12,${l}L12,0Z`,k.setAttribute("x",12));const M=pt.path(Object.assign(Object.assign({x:0,y:T,path:A},b),{zIndex:0}));S.add(M);const w=this._title?this._title.AABBBounds.height()+Pt(this.attribute,"title.space",wu):0;S.translate(0-S.AABBBounds.x1,w-S.AABBBounds.y1),this._slider=k}_bindEvents(){this.attribute.disableTriggerEvent||this._slider&&(this._slider.addEventListener("change",this._onSliderChange),this._slider.addEventListener("sliderTooltip",this._onSliderToolipChange))}}wm.defaultAttributes={layout:"horizontal",title:{align:"start",space:wu,textStyle:{fontSize:12,fontWeight:"bold",fill:"rgba(46, 47, 50, 1)"}},handlerSize:10,handlerStyle:{lineWidth:1,stroke:"#ccc",fill:"#fff"},sizeBackground:{fill:"rgba(20,20,20,0.1)"}};function P8(){We(),Ks(),Ha()}P8();let vI=class yI extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},yI.defaultAttributes,t)),this.name="title"}render(){var t,e,i,s,r,a,o,l,h,d,c,u,p,g,f,_,m,y,b,v,x,S,k,A,T,M,w,E,R,O,B,I,D,F,$,K,W,et,Z,ht,J,N;const{textType:q,text:X,subtextType:ot,textStyle:ut={},subtext:bt,subtextStyle:lt={},width:mt,height:xt,minWidth:Bt,maxWidth:At,minHeight:ri,maxHeight:Qt,align:pi,verticalAlign:Me,padding:ai=0}=this.attribute,Fi=ln(ai),yi=this.createOrUpdateChild("title-container",{x:Fi[3],y:Fi[0],zIndex:1},"group");if(this.attribute.visible!==!1&&ut.visible!==!1)if(q==="rich"||P(ut.character)){const te=Object.assign({x:(t=ut.x)!==null&&t!==void 0?t:0,y:(e=ut.y)!==null&&e!==void 0?e:0,width:(s=(i=ut.width)!==null&&i!==void 0?i:mt)!==null&&s!==void 0?s:0,height:(a=(r=ut.height)!==null&&r!==void 0?r:xt)!==null&&a!==void 0?a:0,ellipsis:(o=ut.ellipsis)===null||o===void 0||o,wordBreak:(l=ut.wordBreak)!==null&&l!==void 0?l:"break-word",maxHeight:ut.maxHeight,maxWidth:ut.maxWidth,textConfig:(h=ut.character)!==null&&h!==void 0?h:X},ut);this._mainTitle=yi.createOrUpdateChild("mainTitle",te,"richtext")}else if(q==="html"){const te=Object.assign({html:Object.assign(Object.assign({dom:X},Mf),ut),x:(d=ut.x)!==null&&d!==void 0?d:0,y:(c=ut.y)!==null&&c!==void 0?c:0,width:(p=(u=ut.width)!==null&&u!==void 0?u:mt)!==null&&p!==void 0?p:0,height:(f=(g=ut.height)!==null&&g!==void 0?g:xt)!==null&&f!==void 0?f:0,ellipsis:(_=ut.ellipsis)===null||_===void 0||_,wordBreak:(m=ut.wordBreak)!==null&&m!==void 0?m:"break-word",maxHeight:ut.maxHeight,maxWidth:ut.maxWidth,textConfig:[]},ut);this._mainTitle=yi.createOrUpdateChild("mainTitle",te,"richtext")}else P(X)&&(this._mainTitle=yi.createOrUpdateChild("mainTitle",Object.assign(Object.assign({text:V(X)?X:[X],wrap:!0},ut),{maxLineWidth:(y=ut.maxLineWidth)!==null&&y!==void 0?y:mt,heightLimit:ut.heightLimit,lineClamp:ut.lineClamp,ellipsis:(b=ut.ellipsis)===null||b===void 0||b,x:0,y:0}),"text"));const Zs=this._mainTitle?this._mainTitle.AABBBounds.height():0,Hr=this._mainTitle?this._mainTitle.AABBBounds.width():0;if(this.attribute.visible!==!1&<.visible!==!1)if(ot==="rich"||P(lt.character)){const te=Object.assign({x:(v=lt.x)!==null&&v!==void 0?v:0,y:(x=lt.y)!==null&&x!==void 0?x:0,width:(k=(S=lt.width)!==null&&S!==void 0?S:mt)!==null&&k!==void 0?k:0,height:(T=(A=lt.height)!==null&&A!==void 0?A:xt)!==null&&T!==void 0?T:0,ellipsis:(M=lt.ellipsis)===null||M===void 0||M,wordBreak:(w=lt.wordBreak)!==null&&w!==void 0?w:"break-word",maxHeight:lt.maxHeight,maxWidth:lt.maxWidth,textConfig:(E=lt.character)!==null&&E!==void 0?E:bt},lt);this._subTitle=yi.createOrUpdateChild("subTitle",te,"richtext")}else if(ot==="html"){const te=Object.assign({html:Object.assign(Object.assign({dom:bt},Mf),lt),x:(R=lt.x)!==null&&R!==void 0?R:0,y:(O=lt.y)!==null&&O!==void 0?O:0,width:(I=(B=lt.width)!==null&&B!==void 0?B:mt)!==null&&I!==void 0?I:0,height:(F=(D=lt.height)!==null&&D!==void 0?D:xt)!==null&&F!==void 0?F:0,ellipsis:($=lt.ellipsis)===null||$===void 0||$,wordBreak:(K=lt.wordBreak)!==null&&K!==void 0?K:"break-word",maxHeight:lt.maxHeight,maxWidth:lt.maxWidth,textConfig:[]},lt);this._subTitle=yi.createOrUpdateChild("subTitle",te,"richtext")}else P(bt)&&(this._subTitle=yi.createOrUpdateChild("subTitle",Object.assign(Object.assign({text:V(bt)?bt:[bt],wrap:!0},lt),{maxLineWidth:(W=lt.maxLineWidth)!==null&&W!==void 0?W:mt,heightLimit:lt.heightLimit,lineClamp:lt.lineClamp,ellipsis:(et=lt.ellipsis)===null||et===void 0||et,x:0,y:Zs}),"text"));const Ga=this._subTitle?this._subTitle.AABBBounds.height():0,pe=this._subTitle?this._subTitle.AABBBounds.width():0;let Se=Math.max(Hr,pe),Mi=Zs+((Z=lt.height)!==null&&Z!==void 0?Z:Ga);if(P(mt)&&(Se=mt,this._mainTitle&&this._mainTitle.setAttribute("maxLineWidth",mt),this._subTitle&&this._subTitle.setAttribute("maxLineWidth",mt)),P(xt)&&(Mi=xt),P(Bt)&&SeAt&&(Se=At)),P(ri)&&MiQt&&(Mi=Qt)),yi.attribute.width=Se,yi.attribute.height=Mi,yi.attribute.boundsPadding=Fi,this._mainTitle){if(P(pi)||P(ut.align)){const te=ut.align?ut.align:pi,ve=(ht=ut.width)!==null&&ht!==void 0?ht:Hr;te==="left"?(this._mainTitle.setAttribute("x",0),this._mainTitle.setAttribute("textAlign","left")):te==="center"?(this._mainTitle.setAttribute("x",ve/2),this._mainTitle.setAttribute("textAlign","center")):te==="right"&&(this._mainTitle.setAttribute("x",ve),this._mainTitle.setAttribute("textAlign","right"))}if(P(Me)||P(ut.verticalAlign)){const te=ut.verticalAlign?ut.verticalAlign:Me,ve=ut.height?ut.height:Mi;te==="top"?(this._mainTitle.setAttribute("y",0),this._mainTitle.setAttribute("textBaseline","top")):te==="middle"?(this._mainTitle.setAttribute("y",ve/2),this._mainTitle.setAttribute("textBaseline","middle")):te==="bottom"&&(this._mainTitle.setAttribute("y",ve),this._mainTitle.setAttribute("textBaseline","bottom"))}}if(this._subTitle){if(P(pi)||P(lt.align)){const te=lt.align?lt.align:pi,ve=(J=lt.width)!==null&&J!==void 0?J:pe;te==="left"?(this._subTitle.setAttribute("x",0),this._subTitle.setAttribute("textAlign","left")):te==="center"?(this._subTitle.setAttribute("x",ve/2),this._subTitle.setAttribute("textAlign","center")):te==="right"&&(this._subTitle.setAttribute("x",ve),this._subTitle.setAttribute("textAlign","right"))}if(P(Me)||P(ut.verticalAlign)){const te=lt.verticalAlign?lt.verticalAlign:Me,ve=Zs,bi=(N=lt.height)!==null&&N!==void 0?N:0;te==="top"?(this._subTitle.setAttribute("y",ve),this._subTitle.setAttribute("textBaseline","top")):te==="middle"?(this._subTitle.setAttribute("y",ve+bi/2),this._subTitle.setAttribute("textBaseline","middle")):te==="bottom"&&(this._subTitle.setAttribute("y",ve+bi),this._subTitle.setAttribute("textBaseline","bottom"))}}}};vI.defaultAttributes={textStyle:{ellipsis:"...",fill:"#333",fontSize:20,fontWeight:"bold",textAlign:"left",textBaseline:"top"},subtextStyle:{ellipsis:"...",fill:"#6F6F6F",fontSize:16,fontWeight:"normal",textAlign:"left",textBaseline:"top"}};const E8={title:{style:{text:"",fontSize:20,fill:"black",fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}},content:{style:{text:"",fontSize:16,fill:"black",fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}}};function R8(){We(),Ks(),Ha()}R8();let B8=class extends ui{constructor(){super(...arguments),this.name="indicator"}_renderText(t,e,i,s,r,a){if(e.visible!==!1){const o=Y({},Pt(E8,r),e.style,{visible:e.visible});o.lineHeight=P(o.lineHeight)?o.lineHeight:o.fontSize,e.formatMethod&&(o._originText=o.text,o.text=e.formatMethod(o.text,o));const l=Bc(o);return l.name=a,t.appendChild(l),e.autoFit&&z(i)&&this._setLocalAutoFit(i,l,e),e.autoLimit&&z(s)&&l.setAttribute("maxLineWidth",i),l}}render(){var t;if(this.removeAllChild(!0),this.attribute.visible!==!0)return;const{title:e={},content:i,size:s,limitRatio:r=1/0}=this.attribute,a=Math.min(s.width,s.height)*r,o=this.createOrUpdateChild("indicator-container",{x:0,y:0,zIndex:1},"group");if(P(e)&&(this._title=this._renderText(o,e,a,r,"title.style","indicator-title")),P(i)){const h=H(i),d=[];h.forEach((c,u)=>{c.visible!==!1&&d.push(this._renderText(o,c,a,r,"content.style","indicator-content-"+u))}),this._content=d}this._setGlobalAutoFit(a),this._setYPosition();const l=(t=o==null?void 0:o.AABBBounds.height())!==null&&t!==void 0?t:0;o.setAttribute("y",s.height/2-l/2),o.setAttribute("x",s.width/2)}_setLocalAutoFit(t,e,i){var s,r,a,o,l,h,d,c,u;if(((s=i.fitStrategy)!==null&&s!==void 0?s:"default")!=="default")return;const p=om((a=(r=i.style)===null||r===void 0?void 0:r.text)!==null&&a!==void 0?a:"",(o=i.style)!==null&&o!==void 0?o:{},(h=(l=this.stage)===null||l===void 0?void 0:l.getTheme())===null||h===void 0?void 0:h.text).width;if(p>0){const g=t*((d=i.fitPercent)!==null&&d!==void 0?d:.5)/p,f=Math.floor(((u=(c=i.style)===null||c===void 0?void 0:c.fontSize)!==null&&u!==void 0?u:20)*g);e.setAttribute("fontSize",f),e.setAttribute("lineHeight",P(i.style.lineHeight)?i.style.lineHeight:f)}}_setGlobalAutoFit(t){var e,i,s,r,a,o,l;const h=t/2,d=[];let c=0;const u=(e=this.attribute.title)!==null&&e!==void 0?e:{};u.autoFit&&u.fitStrategy==="inscribed"?(this._title.setAttribute("fontSize",12),d.push({text:this._title,spec:(i=this.attribute.title)!==null&&i!==void 0?i:{}})):c+=(o=(a=(r=(s=this._title)===null||s===void 0?void 0:s.AABBBounds)===null||r===void 0?void 0:r.height)===null||a===void 0?void 0:a.call(r))!==null&&o!==void 0?o:0;const p=(l=u.space)!==null&&l!==void 0?l:0;if(c+=p,H(this.attribute.content).filter(x=>x.visible!==!1).forEach((x,S)=>{var k,A,T,M;const w=this._content[S];x.autoFit&&x.fitStrategy==="inscribed"?(w.setAttribute("fontSize",12),d.push({text:w,spec:x})):c+=(T=(A=(k=w==null?void 0:w.AABBBounds)===null||k===void 0?void 0:k.height)===null||A===void 0?void 0:A.call(k))!==null&&T!==void 0?T:0;const E=(M=x.space)!==null&&M!==void 0?M:0;c+=E}),d.length<=0)return;const g=12/d.reduce((x,S)=>Math.max(x,S.text.AABBBounds.width()),0)*d.length,f=c/2,_=g**2+1,m=2*f*g,y=f**2-h**2,b=2*(g*((-m+Math.sqrt(m**2-4*_*y))/(2*_))+f),v=(b-c)/d.length;z(b)&&d.forEach(x=>{var S;const k=(S=x.spec.style)===null||S===void 0?void 0:S.lineHeight;x.text.setAttribute("fontSize",v),x.text.setAttribute("lineHeight",P(k)?k:v)})}_setYPosition(){var t,e,i,s,r,a;let o=0;const l=(s=(i=(e=(t=this._title)===null||t===void 0?void 0:t.AABBBounds)===null||e===void 0?void 0:e.height)===null||i===void 0?void 0:i.call(e))!==null&&s!==void 0?s:0,h=(a=(r=this.attribute.title)===null||r===void 0?void 0:r.space)!==null&&a!==void 0?a:0;H(this.attribute.content).filter(d=>d.visible!==!1).forEach((d,c)=>{var u;const p=this._content[c];p.setAttribute("y",l+h+o);const g=(u=d.space)!==null&&u!==void 0?u:0;o+=p.AABBBounds.height()+g})}};const I8="M 414.5 0.0238 c 228.9128 0 414.4762 185.5634 414.4762 414.4762 s -185.5634 414.4762 -414.4762 414.4762 S 0.0238 643.4128 0.0238 414.5 S 185.5872 0.0238 414.5 0.0238 z m 0 73.1429 C 225.9865 73.1667 73.1667 225.9865 73.1667 414.5 s 152.8198 341.3333 341.3333 341.3333 s 341.3333 -152.8198 341.3333 -341.3333 S 603.0135 73.1667 414.5 73.1667 z m -73.1429 161.4994 a 48.7619 48.7619 0 0 1 25.9901 7.5093 l 201.7524 127.1223 a 48.7619 48.7619 0 0 1 0.3657 82.2613 l -201.7524 129.6335 A 48.7619 48.7619 0 0 1 292.5952 540.1838 v -256.7314 a 48.7619 48.7619 0 0 1 48.7619 -48.7619 z m 24.381 92.9402 v 167.9116 l 131.9497 -84.7726 L 365.7381 327.6063 z",O8="M 414.5 0.0238 c 228.9128 0 414.4762 185.5634 414.4762 414.4762 s -185.5634 414.4762 -414.4762 414.4762 S 0.0238 643.4128 0.0238 414.5 S 185.5872 0.0238 414.5 0.0238 z m 0 73.1429 C 225.9865 73.1667 73.1667 225.9865 73.1667 414.5 s 152.8198 341.3333 341.3333 341.3333 s 341.3333 -152.8198 341.3333 -341.3333 S 603.0135 73.1667 414.5 73.1667 z m -48.7619 195.0476 v 316.9524 h -73.1429 V 268.2143 h 73.1429 z m 158.4762 0 v 316.9524 h -73.1429 V 268.2143 h 73.1429 z",L8="M 521.29 734.276 L 230.929 448.019 L 521.29 161.762 c 37.685 -37.153 38.003 -97.625 0.707 -134.384 c -37.297 -36.758 -98.646 -36.435 -136.331 0.718 l -357.43 352.378 c -0.155 0.153 -0.297 0.314 -0.451 0.468 c -0.084 0.082 -0.172 0.157 -0.256 0.239 c -18.357 18.092 -27.581 41.929 -27.743 65.902 c -0.004 0.311 -0.017 0.623 -0.018 0.934 c 0.001 0.316 0.014 0.632 0.018 0.948 c 0.165 23.97 9.389 47.803 27.743 65.892 c 0.083 0.082 0.171 0.157 0.255 0.239 c 0.154 0.154 0.296 0.315 0.452 0.468 l 357.43 352.378 c 37.685 37.153 99.034 37.476 136.331 0.718 c 37.297 -36.758 36.979 -97.231 -0.707 -134.384 z",D8="M 734.276 28.71 L 448.019 319.071 L 161.762 28.71 c -37.153 -37.685 -97.625 -38.003 -134.384 -0.707 c -36.758 37.297 -36.435 98.646 0.718 136.331 l 352.378 357.43 c 0.153 0.155 0.314 0.297 0.468 0.451 c 0.082 0.084 0.157 0.172 0.239 0.256 c 18.092 18.357 41.929 27.581 65.902 27.743 c 0.311 0.004 0.623 0.017 0.934 0.018 c 0.316 -0.001 0.632 -0.014 0.948 -0.018 c 23.97 -0.165 47.803 -9.389 65.892 -27.743 c 0.082 -0.083 0.157 -0.171 0.239 -0.255 c 0.154 -0.154 0.315 -0.296 0.468 -0.452 l 352.378 -357.43 c 37.153 -37.685 37.476 -99.034 0.718 -136.331 c -36.758 -37.297 -97.231 -36.979 -134.384 0.707 z",F8="m 161.724 521.29 l 286.257 -290.361 l 286.257 290.361 c 37.153 37.685 97.625 38.003 134.384 0.707 c 36.758 -37.297 36.435 -98.646 -0.718 -136.331 l -352.378 -357.43 c -0.153 -0.155 -0.314 -0.297 -0.468 -0.451 c -0.082 -0.084 -0.157 -0.172 -0.239 -0.256 c -18.092 -18.357 -41.929 -27.581 -65.902 -27.743 c -0.311 -0.004 -0.623 -0.017 -0.934 -0.018 c -0.316 0.001 -0.632 0.014 -0.948 0.018 c -23.97 0.165 -47.803 9.389 -65.892 27.743 c -0.082 0.083 -0.157 0.171 -0.239 0.255 c -0.154 0.154 -0.315 0.296 -0.468 0.452 l -352.378 357.43 c -37.153 37.685 -37.476 99.034 -0.718 136.331 c 36.758 37.297 97.231 36.979 134.384 -0.707 z",z8="M 30 163 L 320.361 449.257 L 30 735.514 c -37.685 37.153 -38.003 97.625 -0.707 134.384 c 37.297 36.758 98.646 36.435 136.331 -0.718 l 357.43 -352.378 c 0.155 -0.153 0.297 -0.314 0.451 -0.468 c 0.084 -0.082 0.172 -0.157 0.256 -0.239 c 18.357 -18.092 27.581 -41.929 27.743 -65.902 c 0.004 -0.311 0.017 -0.623 0.018 -0.934 c -0.001 -0.316 -0.014 -0.632 -0.018 -0.948 c -0.165 -23.97 -9.389 -47.803 -27.743 -65.892 c -0.083 -0.082 -0.171 -0.157 -0.255 -0.239 c -0.154 -0.154 -0.296 -0.315 -0.452 -0.468 l -357.43 -352.378 c -37.685 -37.153 -99.034 -37.476 -136.331 -0.718 c -37.297 36.758 -36.979 97.231 0.707 134.384 z";class X0 extends Ac{constructor(t){super(t)}}var bn;(function(n){n.OnPlay="onPlay",n.OnPause="onPause",n.OnForward="onForward",n.OnBackward="onBackward"})(bn||(bn={}));var Pl;(function(n){n.Start="start",n.Pause="pause",n.Forward="forward",n.Backward="backward"})(Pl||(Pl={}));class gr extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},gr.defaultAttributes,t)),this._isPaused=!0,this.updateAttributes=()=>{this._startAttr={style:Object.assign(Object.assign(Object.assign({symbolType:I8},gr.defaultControllerAttr),{visible:this.attribute.start.visible}),this.attribute.start.style)},this._pauseAttr={style:Object.assign(Object.assign(Object.assign({symbolType:O8},gr.defaultControllerAttr),{visible:this.attribute.pause.visible}),this.attribute.pause.style)},this._forwardAttr={style:Object.assign(Object.assign(Object.assign({},gr.defaultControllerAttr),{visible:this.attribute.forward.visible}),this.attribute.forward.style)},this._backwardAttr={style:Object.assign(Object.assign(Object.assign({},gr.defaultControllerAttr),{visible:this.attribute.backward.visible}),this.attribute.backward.style)},this.updateLayout()},this.updateLayout=()=>{var i,s,r,a;this._layout=this.attribute.layout,this._layout==="horizontal"?(this._backwardAttr.style.symbolType=(i=this._backwardAttr.style.symbolType)!==null&&i!==void 0?i:L8,this._forwardAttr.style.symbolType=(s=this._forwardAttr.style.symbolType)!==null&&s!==void 0?s:z8):this._layout==="vertical"&&(this._backwardAttr.style.symbolType=(r=this._backwardAttr.style.symbolType)!==null&&r!==void 0?r:F8,this._forwardAttr.style.symbolType=(a=this._forwardAttr.style.symbolType)!==null&&a!==void 0?a:D8)},this._initPlay=()=>{C(this._playController)&&(this._playController=new X0(Object.assign({},this._startAttr.style)),this.add(this._playController))},this._initBackward=()=>{C(this._backwardController)&&(this._backwardController=new X0(Object.assign({},this._backwardAttr.style)),this.add(this._backwardController))},this._initForward=()=>{C(this._forwardController)&&(this._forwardController=new X0(Object.assign({},this._forwardAttr.style)),this.add(this._forwardController))},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._playController.addEventListener("pointerdown",i=>{i.stopPropagation(),this._isPaused===!0?this.play():this.pause()}),this._backwardController.addEventListener("pointerdown",i=>{i.stopPropagation(),this.backward()}),this._forwardController.addEventListener("pointerdown",i=>{i.stopPropagation(),this.forward()}))},this.renderPlay=()=>{this._isPaused?this._playController.setAttributes(Object.assign({symbolType:this._playController.getComputedAttribute("symbolType")},this._startAttr.style)):this._playController.setAttributes(Object.assign({symbolType:this._playController.getComputedAttribute("symbolType")},this._pauseAttr.style))},this.renderBackward=()=>{this._backwardController.setAttributes(this._backwardAttr.style)},this.renderForward=()=>{this._forwardController.setAttributes(this._forwardAttr.style)},this.play=()=>{this._dispatchEvent(bn.OnPlay)},this.pause=()=>{this._dispatchEvent(bn.OnPause)},this.forward=()=>{this._dispatchEvent(bn.OnForward)},this.backward=()=>{this._dispatchEvent(bn.OnBackward)},this.togglePlay=()=>{this._playController.setAttributes(this._startAttr.style),this._isPaused=!0},this.togglePause=()=>{this._playController.setAttributes(this._pauseAttr.style),this._isPaused=!1},this.updateAttributes(),this._initPlay(),this._initBackward(),this._initForward(),this._initEvents()}render(){this.updateAttributes(),this.renderPlay(),this.renderBackward(),this.renderForward()}}gr.defaultControllerAttr={visible:!0,x:0,y:0,size:20,fill:"#91caff",pickMode:"imprecise",cursor:"pointer"},gr.defaultAttributes={[Pl.Start]:{},[Pl.Pause]:{},[Pl.Backward]:{},[Pl.Forward]:{}};const xp={visible:!0,style:{x:0,y:0,dx:0,dy:0,size:20},order:0,space:10},K0=[200,10];var Oa;(function(n){n.Default="default",n.Reverse="reverse"})(Oa||(Oa={}));var De;(function(n){n.change="change",n.play="play",n.pause="pause",n.backward="backward",n.forward="forward",n.end="end",n.OnChange="change",n.OnPlay="play",n.OnPause="pause",n.OnBackward="backward",n.OnForward="forward",n.OnEnd="end"})(De||(De={}));const j8=({direction:n,maxIndex:t,dataIndex:e})=>n===Oa.Default&&e===t,H8=({direction:n,minIndex:t,dataIndex:e})=>n===Oa.Reverse&&e===t,V8=({direction:n,maxIndex:t,minIndex:e,dataIndex:i})=>j8({direction:n,maxIndex:t,dataIndex:i})||H8({direction:n,minIndex:e,dataIndex:i}),W8=({direction:n,minIndex:t,dataIndex:e})=>n===Oa.Default&&e===t,N8=({direction:n,maxIndex:t,dataIndex:e})=>n===Oa.Reverse&&e===t,G8=({direction:n,maxIndex:t,minIndex:e,dataIndex:i})=>W8({direction:n,minIndex:e,dataIndex:i})||N8({direction:n,maxIndex:t,dataIndex:i}),ws=n=>n==="top"||n==="bottom",U8=(n,t,e,i)=>n==="default"?Math.min(t+1,i):Math.max(t-1,e);class Cu extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Cu.defaultAttributes,t)),this._data=[],this._dataIndex=0,this._layoutInfo={},this._updateSliderAttrs=()=>{var i,s;let r;z(this._handlerStyle.size)?r=this._handlerStyle.size:this._handlerStyle.size&&this._handlerStyle.size.length&&(r=sn(this._handlerStyle.size[0],this._handlerStyle.size[1]));const a={visible:this._sliderVisible,min:this._minIndex,max:this._maxIndex,value:this._dataIndex,railWidth:this._railStyle.width,railHeight:this._railStyle.height,railStyle:this._railStyle,trackStyle:this._trackStyle,handlerSize:z(r)?r:void 0,handlerStyle:this._handlerStyle,dy:this.attribute.slider.dy,dx:this.attribute.slider.dx,slidable:!0,range:!1,handlerText:{visible:!1},startText:{visible:!1},endText:{visible:!1},disableTriggerEvent:this.attribute.disableTriggerEvent};if(ws(this._orient)){const o=Math.max(0,this._layoutInfo.slider.size),l=(i=this._railStyle.height)!==null&&i!==void 0?i:K0[1];a.layout="horizontal",a.railHeight=l,a.railWidth=o,a.x=this._layoutInfo.slider.x,a.y=this._layoutInfo.slider.y}else{const o=Math.max(0,this._layoutInfo.slider.size),l=(s=this._railStyle.width)!==null&&s!==void 0?s:K0[1];a.layout="vertical",a.railWidth=l,a.railHeight=o,a.x=this._layoutInfo.slider.x,a.y=this._layoutInfo.slider.y}return a},this._initSlider=()=>{const i=this._updateSliderAttrs();this._slider=new Bh(i),this._sliderVisible&&this.add(this._slider)},this._updateControllerAttrs=()=>{const i={start:this._start,pause:this._pause,forward:this._forward,backward:this._backward,disableTriggerEvent:this.attribute.disableTriggerEvent};return ws(this._orient)?(i.layout="horizontal",i.start=Object.assign(Object.assign({},i.start),{style:Object.assign(Object.assign({},i.start.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.pause=Object.assign(Object.assign({},i.pause),{style:Object.assign(Object.assign({},i.pause.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.backward=Object.assign(Object.assign({},i.backward),{style:Object.assign(Object.assign({},i.backward.style),{x:this._layoutInfo.backward.x,y:this._layoutInfo.backward.y})}),i.forward=Object.assign(Object.assign({},i.forward),{style:Object.assign(Object.assign({},i.forward.style),{x:this._layoutInfo.forward.x,y:this._layoutInfo.forward.y})})):(i.layout="vertical",i.start=Object.assign(Object.assign({},i.start),{style:Object.assign(Object.assign({},i.start.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.pause=Object.assign(Object.assign({},i.pause),{style:Object.assign(Object.assign({},i.pause.style),{x:this._layoutInfo.start.x,y:this._layoutInfo.start.y})}),i.backward=Object.assign(Object.assign({},i.backward),{style:Object.assign(Object.assign({},i.backward.style),{x:this._layoutInfo.backward.x,y:this._layoutInfo.backward.y})}),i.forward=Object.assign(Object.assign({},i.forward),{style:Object.assign(Object.assign({},i.forward.style),{x:this._layoutInfo.forward.x,y:this._layoutInfo.forward.y})})),i},this._initController=()=>{const i=this._updateControllerAttrs();this._controller=new gr(i),this._controllerVisible&&this.add(this._controller)},this._initAttributes(),this._initDataIndex(),this._initLayoutInfo(),this._initController(),this._initSlider()}_initAttributes(){this._size=this.attribute.size,this._orient=this.attribute.orient,this._data=this.attribute.data,this._minIndex=0,this._maxIndex=this._data.length-1;const{slider:t={},controller:e={}}=this.attribute;this._sliderVisible=t.visible,this._railStyle=Object.assign({},t.railStyle),this._trackStyle=Object.assign({},t.trackStyle),this._handlerStyle=Object.assign({},t.handlerStyle),this._controllerVisible=e.visible,this._start=Object.assign({},e.start),this._pause=Object.assign({},e.pause),this._forward=Object.assign({},e.forward),this._backward=Object.assign({},e.backward)}_initDataIndex(){var t;this._dataIndex=(t=this.attribute.dataIndex)!==null&&t!==void 0?t:0}_initLayoutInfo(){var t,e,i;const s=[this._start,this._backward,this._forward].sort((u,p)=>u.order-p.order),r=s.filter(u=>u.position!=="end"),a=s.filter(u=>u.position==="end"),o=(t=ws(this._orient)?this._railStyle.height:this._railStyle.width)!==null&&t!==void 0?t:K0[1],l=s.reduce((u,p)=>{const g=p.style.size,f=nt(g)?g:sn(g[0],g[1]);return u+p.space+f},0),h=this._sliderVisible?(ws(this._orient)?(e=this._size)===null||e===void 0?void 0:e.width:(i=this._size)===null||i===void 0?void 0:i.height)-l:0,d=h-this.attribute.slider.space,c=r.reduce((u,p)=>{const{key:g,space:f,style:{size:_}}=p,m=nt(_)?_:sn(_[0],_[1]);return this._layoutInfo[g]=Object.assign(Object.assign({},this._layoutInfo[g]),{size:m,x:ws(this._orient)?u+f:(this._size.width-m)/2,y:ws(this._orient)?(this._size.height-m)/2:u+f}),u+f+m},0);this._layoutInfo.slider=Object.assign(Object.assign({},this._layoutInfo.slider),{size:d,x:ws(this._orient)?c+this.attribute.slider.space:(this._size.width-o)/2,y:ws(this._orient)?(this._size.height-o)/2:c+this.attribute.slider.space}),a.reduce((u,p)=>{const{key:g,space:f,style:{size:_}}=p,m=nt(_)?_:sn(_[0],_[1]);return this._layoutInfo[g]=Object.assign(Object.assign({},this._layoutInfo[g]),{size:m,x:ws(this._orient)?u+f:(this._size.width-m)/2,y:ws(this._orient)?(this._size.height-m)/2:u+f}),u+f+m},c+h)}render(){this._initLayoutInfo(),this.renderSlider(),this.renderController()}renderSlider(){const t=this._updateSliderAttrs();this._slider.setAttributes(t)}renderController(){const t=this._updateControllerAttrs();this._controller.setAttributes(t)}dispatchCustomEvent(t,e){this._dispatchEvent(t,{eventType:t,index:e,value:this._data[e]})}}Cu.defaultAttributes={visible:!0,data:[],interval:1e3,orient:"bottom",align:"center",size:{height:20,width:300},slider:{visible:!0,space:10,dx:0,dy:0,railStyle:{cornerRadius:5},trackStyle:{},handlerStyle:{}},controller:{visible:!0,start:Object.assign(Object.assign({},xp),{key:"start",position:"start",space:0}),pause:Object.assign(Object.assign({},xp),{key:"pause",position:"start"}),forward:Object.assign(Object.assign({},xp),{key:"forward",position:"end"}),backward:Object.assign(Object.assign({},xp),{key:"backward",position:"start"})}};function bI(){Tm(),We(),ss()}function $8(){bI()}function Y8(){bI()}$8();class X8 extends Cu{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},t)),this._activeIndex=-1,this._isReachEnd=!1,this._initAttributes=()=>{var i,s,r;super._initAttributes(),this._alternate=(i=this.attribute.alternate)!==null&&i!==void 0&&i,this._interval=(s=this.attribute.interval)!==null&&s!==void 0?s:1e3,this._direction=(r=this.attribute.direction)!==null&&r!==void 0?r:Oa.Default},this._initDataIndex=()=>{var i;this._dataIndex=C(this.attribute.dataIndex)?this._direction==="default"?this._minIndex:this._maxIndex:(i=this.attribute.dataIndex)!==null&&i!==void 0?i:0,this._slider.setAttribute("value",this._dataIndex)},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._controller.addEventListener(bn.OnPlay,i=>{i.stopPropagation(),this.play()}),this._controller.addEventListener(bn.OnPause,i=>{i.stopPropagation(),this.pause()}),this._controller.addEventListener(bn.OnForward,i=>{i.stopPropagation(),this.forward()}),this._controller.addEventListener(bn.OnBackward,i=>{i.stopPropagation(),this.backward()}),this._slider.addEventListener("change",i=>{const s=Math.floor(i.detail.value)+.5;this._dataIndex=i.detail.value>=s?Math.ceil(i.detail.value):Math.floor(i.detail.value),this._slider.setValue(this._dataIndex),this.dispatchCustomEvent(De.change)}))},this.play=()=>{this._isPlaying||this._data.length!==1&&(this._controller.togglePause(),this._isPlaying=!0,(V8({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction})||G8({dataIndex:this._dataIndex,maxIndex:this._maxIndex,minIndex:this._minIndex,direction:this._direction}))&&(this._direction===Oa.Default?this._updateDataIndex(this._minIndex):this._updateDataIndex(this._maxIndex)),this.dispatchCustomEvent(De.play),this._isReachEnd=!1,this._tickTime=Date.now(),this._rafId=Rt.getRequestAnimationFrame()(this._play.bind(this,!0)))},this._play=i=>{const s=Date.now();if(this._isReachEnd&&s-this._tickTime>=this._interval)return this._isReachEnd=!1,void this._playEnd();i&&this._activeIndex!==this._dataIndex?(this.dispatchCustomEvent(De.change),this._activeIndex=this._dataIndex):s-this._tickTime>=this._interval&&(this._tickTime=s,this._updateDataIndex(U8(this._direction,this._dataIndex,this._minIndex,this._maxIndex)),this._activeIndex=this._dataIndex,this.dispatchCustomEvent(De.change)),(this._direction==="default"&&this._dataIndex>=this._maxIndex||this._direction==="reverse"&&this._dataIndex<=this._minIndex)&&(this._isReachEnd=!0),this._rafId=Rt.getRequestAnimationFrame()(this._play.bind(this,!1))},this._updateDataIndex=i=>{this._dataIndex=i,this._slider.setValue(this._dataIndex)},this._playEnd=()=>{this._isPlaying=!1,this._controller.togglePlay(),Rt.getCancelAnimationFrame()(this._rafId),this._activeIndex=-1,this.dispatchCustomEvent(De.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,Rt.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(De.pause))},this.backward=()=>{const{loop:i=!1}=this.attribute;let s;s=i?this._dataIndex-1{const{loop:i=!1}=this.attribute;let s;s=i?this._dataIndex+1>this._maxIndex?this._minIndex:this._dataIndex+1:Math.min(this._dataIndex+1,this._maxIndex),this._updateDataIndex(s),this.dispatchCustomEvent(De.change),this.dispatchCustomEvent(De.forward)},this._initAttributes(),this._initDataIndex(),this._initEvents()}setAttributes(t,e){super.setAttributes(t,e),this._initAttributes()}dispatchCustomEvent(t){super.dispatchCustomEvent(t,this._dataIndex)}}var K8=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};Y8();class q8 extends Cu{constructor(t){super(t),this._isPlaying=!1,this._startTime=Date.now(),this._initAttributes=()=>{var e;super._initAttributes(),this._maxIndex=this._data.length,this._slider.setAttribute("max",this._maxIndex),this._isPlaying=!1,this._elapsed=0,this._interval=(e=this.attribute.interval)!==null&&e!==void 0?e:1e3;const i=this._data.length;this.attribute.totalDuration&&this._data.length?(this._totalDuration=this.attribute.totalDuration,this._interval=this._totalDuration/(i??1)):(this._totalDuration=this._interval*i,this._interval=this.attribute.interval)},this._initDataIndex=()=>{var e;this._dataIndex=(e=this.attribute.dataIndex)!==null&&e!==void 0?e:this._minIndex},this._initEvents=()=>{this.attribute.disableTriggerEvent||(this._controller.addEventListener(bn.OnPlay,e=>{e.stopPropagation(),this.play()}),this._controller.addEventListener(bn.OnPause,e=>{e.stopPropagation(),this.pause()}),this._controller.addEventListener(bn.OnForward,e=>{e.stopPropagation(),this.forward()}),this._controller.addEventListener(bn.OnBackward,e=>{e.stopPropagation(),this.backward()}),this._slider.addEventListener("change",e=>{var i;e.stopPropagation();const s=(i=e.detail)===null||i===void 0?void 0:i.value,r=s/this._maxIndex;this._elapsed=r*this._totalDuration,this._startTime=Date.now()-this._elapsed,this._dispatchChange(s)}))},this._getSliderValue=()=>{const e=this._elapsed/this._totalDuration;return Math.min(e*this._maxIndex,this._maxIndex)},this._updateSlider=()=>{const e=this._getSliderValue();this._dataIndex=Math.floor(e),this._slider.setValue(Math.min(e,this._maxIndex)),this._dispatchChange(Math.floor(e))},this._dispatchChange=e=>{const i=Math.floor(e);i!==this._activeIndex&&(this._dataIndex=i,this._activeIndex=i,i!==this._maxIndex&&this.dispatchCustomEvent(De.change))},this.play=()=>K8(this,void 0,void 0,function*(){this._isPlaying||(this._controller.togglePause(),this._isPlaying=!0,this._elapsed>=this._totalDuration&&(this._elapsed=0),this._startTime=Date.now()-this._elapsed,this.dispatchCustomEvent(De.play),this._rafId=Rt.getRequestAnimationFrame()(this._play.bind(this)))}),this._play=()=>{this._elapsed=Date.now()-this._startTime;const e=this._getSliderValue();this._updateSlider(),e>=this._maxIndex?this._playEnd():this._rafId=Rt.getRequestAnimationFrame()(this._play.bind(this))},this._playEnd=()=>{this._isPlaying=!1,Rt.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(De.end)},this.pause=()=>{this._isPlaying&&(this._isPlaying=!1,this._elapsed=Date.now()-this._startTime,Rt.getCancelAnimationFrame()(this._rafId),this._controller.togglePlay(),this.dispatchCustomEvent(De.pause))},this.backward=()=>{const e=Date.now(),i=1*this._interval,s=this._elapsed-i;s<=0?(this._elapsed=0,this._startTime=e):(this._elapsed=s,this._startTime=this._startTime+this._interval),this._updateSlider(),this.dispatchCustomEvent(De.backward)},this.forward=()=>{const e=Date.now(),i=1*this._interval,s=this._elapsed+i;s>=this._totalDuration?(this._startTime=e-this._totalDuration,this._elapsed=this._totalDuration):(this._startTime=this._startTime-i,this._elapsed=s),this._updateSlider(),this.dispatchCustomEvent(De.forward)},this._initAttributes(),this._initDataIndex(),this._initEvents()}dispatchCustomEvent(t){super.dispatchCustomEvent(t,this._dataIndex)}render(){super.render()}}var $i;(function(n){n.drawStart="drawStart",n.drawEnd="drawEnd",n.drawing="drawing",n.moving="moving",n.moveStart="moveStart",n.moveEnd="moveEnd",n.brushClear="brushClear"})($i||($i={}));const sr={trigger:"pointerdown",updateTrigger:"pointermove",endTrigger:"pointerup",resetTrigger:"pointerupoutside",hasMask:!0,brushMode:"single",brushType:"rect",brushStyle:{fill:"#B0C8F9",fillOpacity:.2,stroke:"#B0C8F9",strokeWidth:2},brushMoved:!0,removeOnClick:!0,delayType:"throttle",delayTime:10,interactiveRange:{y1:-1/0,y2:1/0,x1:-1/0,x2:1/0}},Z8=5;function J8(){We(),am()}const Q8={debounce:Xs,throttle:za};J8();let xI=class SI extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},SI.defaultAttributes,t)),this.name="brush",this._activeDrawState=!1,this._cacheDrawPoints=[],this._isDrawedBeforeEnd=!1,this._activeMoveState=!1,this._operatingMaskMoveDx=0,this._operatingMaskMoveDy=0,this._operatingMaskMoveRangeX=[-1/0,1/0],this._operatingMaskMoveRangeY=[-1/0,1/0],this._brushMaskAABBBoundsDict={},this._onBrushStart=i=>{var s;if(this._outOfInteractiveRange(i))return;i.stopPropagation();const r=(s=this.attribute.brushMoved)===null||s===void 0||s;this._activeMoveState=r&&this._isPosInBrushMask(i),this._activeDrawState=!this._activeMoveState,this._activeDrawState&&this._initDraw(i),this._activeMoveState&&this._initMove(i)},this._onBrushing=i=>{this._outOfInteractiveRange(i)||((this._activeDrawState||this._activeMoveState)&&i.stopPropagation(),this._activeDrawState&&this._drawing(i),this._activeMoveState&&this._moving(i))},this._onBrushingWithDelay=this.attribute.delayTime===0?this._onBrushing:Q8[this.attribute.delayType](this._onBrushing,this.attribute.delayTime),this._onBrushEnd=i=>{var s;if(!this._activeDrawState&&!this._activeMoveState)return;i.preventDefault();const{removeOnClick:r=!0}=this.attribute;this._activeDrawState&&!this._isDrawedBeforeEnd&&r?(!((s=this._operatingMask)===null||s===void 0)&&s._AABBBounds.empty()&&this._dispatchEvent($i.brushClear,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._container.incrementalClearChild(),this._brushMaskAABBBoundsDict={}):(this._activeDrawState&&this._dispatchEvent($i.drawEnd,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i}),this._activeMoveState&&this._dispatchEvent($i.moveEnd,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:i})),this._activeDrawState=!1,this._activeMoveState=!1,this._isDrawedBeforeEnd=!1,this._operatingMask&&this._operatingMask.setAttribute("pickable",!1)}}_bindBrushEvents(){if(this.attribute.disableTriggerEvent)return;const{trigger:t=sr.trigger,updateTrigger:e=sr.updateTrigger,endTrigger:i=sr.endTrigger,resetTrigger:s=sr.resetTrigger}=this.attribute;this.stage.addEventListener(t,this._onBrushStart),this.stage.addEventListener(e,this._onBrushingWithDelay),this.stage.addEventListener(i,this._onBrushEnd),this.stage.addEventListener(s,this._onBrushEnd)}_isPosInBrushMask(t){const e=this.eventPosToStagePos(t),i=this._container.getChildren();for(let s=0;s({x:h.x+a,y:h.y+o}));if(eo(l,e.x,e.y))return this._operatingMask=i[s],!0}return!1}_initDraw(t){const{brushMode:e}=this.attribute,i=this.eventPosToStagePos(t);this._cacheDrawPoints=[i],this._isDrawedBeforeEnd=!1,e==="single"&&(this._brushMaskAABBBoundsDict={},this._container.incrementalClearChild()),this._addBrushMask(),this._dispatchEvent($i.drawStart,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_initMove(t){var e,i;this._cacheMovePoint=this.eventPosToStagePos(t),this._operatingMaskMoveDx=(e=this._operatingMask.attribute.dx)!==null&&e!==void 0?e:0,this._operatingMaskMoveDy=(i=this._operatingMask.attribute.dy)!==null&&i!==void 0?i:0;const{interactiveRange:s}=this.attribute,{minY:r=-1/0,maxY:a=1/0,minX:o=-1/0,maxX:l=1/0}=s,{x1:h,x2:d,y1:c,y2:u}=this._operatingMask.globalAABBBounds,p=o-h,g=l-d,f=r-c,_=a-u;this._operatingMaskMoveRangeX=[p,g],this._operatingMaskMoveRangeY=[f,_],this._operatingMask.setAttribute("pickable",!0),this._dispatchEvent($i.moveStart,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_drawing(t){var e,i;const s=this.eventPosToStagePos(t),{sizeThreshold:r=Z8,brushType:a}=this.attribute,o=this._cacheDrawPoints.length;if(o>0){const p=(e=this._cacheDrawPoints[this._cacheDrawPoints.length-1])!==null&&e!==void 0?e:{};if(s.x===p.x&&s.y===p.y)return}a==="polygon"||o<=1?this._cacheDrawPoints.push(s):this._cacheDrawPoints[o-1]=s;const l=this._computeMaskPoints();this._operatingMask.setAttribute("points",l);const{x1:h=0,x2:d=0,y1:c=0,y2:u=0}=(i=this._operatingMask)===null||i===void 0?void 0:i._AABBBounds;this._isDrawedBeforeEnd=!this._operatingMask._AABBBounds.empty()&&(Math.abs(d-h)>r||Math.abs(c-u)>r),this._isDrawedBeforeEnd&&(this._brushMaskAABBBoundsDict[this._operatingMask.name]=this._operatingMask.AABBBounds,this._dispatchEvent($i.drawing,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t}))}_moving(t){const e=this._cacheMovePoint,i=this.eventPosToStagePos(t);if(i.x===(e==null?void 0:e.x)&&i.y===(e==null?void 0:e.y))return;const s=i.x-e.x,r=i.y-e.y,a=Math.min(this._operatingMaskMoveRangeX[1],Math.max(this._operatingMaskMoveRangeX[0],s))+this._operatingMaskMoveDx,o=Math.min(this._operatingMaskMoveRangeY[1],Math.max(this._operatingMaskMoveRangeY[0],r))+this._operatingMaskMoveDy;this._operatingMask.setAttributes({dx:a,dy:o}),this._brushMaskAABBBoundsDict[this._operatingMask.name]=this._operatingMask.AABBBounds,this._dispatchEvent($i.moving,{operateMask:this._operatingMask,operatedMaskAABBBounds:this._brushMaskAABBBoundsDict,event:t})}_computeMaskPoints(){const{brushType:t,xRange:e=[0,0],yRange:i=[0,0]}=this.attribute;let s=[];const r=this._cacheDrawPoints[0],a=this._cacheDrawPoints[this._cacheDrawPoints.length-1];return s=t==="rect"?[r,{x:a.x,y:r.y},a,{x:r.x,y:a.y}]:t==="x"?[{x:r.x,y:i[0]},{x:a.x,y:i[0]},{x:a.x,y:i[1]},{x:r.x,y:i[1]}]:t==="y"?[{x:e[0],y:r.y},{x:e[0],y:a.y},{x:e[1],y:a.y},{x:e[1],y:r.y}]:on(this._cacheDrawPoints),s}_addBrushMask(){var t;const{brushStyle:e,hasMask:i}=this.attribute,s=pt.polygon(Object.assign(Object.assign({points:on(this._cacheDrawPoints),cursor:"move",pickable:!1},e),{opacity:i?(t=e.opacity)!==null&&t!==void 0?t:1:0}));s.name=`brush-${Date.now()}`,this._operatingMask=s,this._container.add(s),this._brushMaskAABBBoundsDict[s.name]=s.AABBBounds}_outOfInteractiveRange(t){const{interactiveRange:e}=this.attribute,{minY:i=-1/0,maxY:s=1/0,minX:r=-1/0,maxX:a=1/0}=e,o=this.eventPosToStagePos(t);return o.x>a||o.xs||o.y{const e=[n.shape,...t.map(r=>r==null?void 0:r.shape)],i=[n.key,...t.map(r=>r==null?void 0:r.key)],s=[n.value,...t.map(r=>r==null?void 0:r.value)];return Y(n,...t,{shape:e.every(C)?void 0:Y({},...e),key:i.every(C)?void 0:Y({},...i),value:s.every(C)?void 0:Y({},...s)})},sl=n=>{const{width:t,height:e,wordBreak:i="break-word",textAlign:s,textBaseline:r,text:a}=n;return Array.isArray(a)?{width:t,height:e,wordBreak:i,textAlign:s,textBaseline:r,singleLine:!1,textConfig:H(a).map(o=>Object.assign(Object.assign({},n),{text:o}))}:{width:t,height:e,wordBreak:i,textAlign:s,textBaseline:r,singleLine:!1,textConfig:a==null?void 0:a.text}},tX={panel:{visible:!0,cornerRadius:[3,3,3,3],fill:"white",shadow:!0,shadowBlur:12,shadowColor:"rgba(0, 0, 0, 0.1)",shadowOffsetX:0,shadowOffsetY:4,shadowSpread:0,stroke:"white"},titleStyle:{value:{fill:"#4E5969",fontFamily:kd,fontSize:14,lineHeight:18,textAlign:"left",textBaseline:"middle"},spaceRow:6},contentStyle:{shape:{fill:"black",size:8,symbolType:"circle",spacing:6},key:{fill:"#4E5969",fontFamily:kd,fontSize:12,lineHeight:18,textAlign:"left",textBaseline:"middle",spacing:26},value:{fill:"#4E5969",fontFamily:kd,fontSize:12,lineHeight:18,textAlign:"right",textBaseline:"middle",spacing:0},spaceRow:6},padding:10,positionX:"right",positionY:"bottom",offsetX:10,offsetY:10,parentBounds:new _e().setValue(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),autoCalculatePosition:!0,autoMeasure:!0,pickable:!1,childrenPickable:!1,zIndex:500},eX=["pointerX","pointerY","offsetX","offsetY","positionX","positionY","parentBounds"];function iX(){We(),Lr(),ss(),Ks(),Ha()}iX();let AI=class Pn extends ui{constructor(t,e){super(e!=null&&e.skipDefault?t:Y({},Pn.defaultAttributes,t),e),this.name="tooltip"}render(){var t;const{visible:e,content:i,panel:s,keyWidth:r,valueWidth:a,hasContentShape:o,autoCalculatePosition:l,autoMeasure:h,align:d}=this.attribute;if(!e)return void this.hideAll();h&&Pn.measureTooltip(this.attribute),l&&Pn.calculateTooltipPosition(this.attribute);const c=ln(this.attribute.padding);this._tooltipPanel=this.createOrUpdateChild("tooltip-background",Object.assign({visible:!0},s),"rect"),this._tooltipTitleContainer=this.createOrUpdateChild("tooltip-title",{visible:!0,x:c[3],y:c[0]},"group");const u=Pn.getTitleAttr(this.attribute);this._tooltipTitleSymbol=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-shape",Y({symbolType:"circle"},u.shape,{visible:Oe(u)&&Oe(u.shape)}),"symbol"),typeof u.value.text!="object"||u.value.text===null||u.value.text.type!=="rich"&&u.value.text.type!=="html"?u.value.multiLine?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Oe(u)&&Oe(u.value)},sl(u.value)),"richtext"):this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({text:(t=u.value.text)!==null&&t!==void 0?t:"",visible:Oe(u)&&Oe(u.value)},u.value),"text"):u.value.text.type==="rich"?this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({visible:Oe(u)&&Oe(u.value)},sl(u.value)),"richtext"):u.value.text.type==="html"&&(this._tooltipTitle=this._tooltipTitleContainer.createOrUpdateChild("tooltip-title-value",Object.assign({html:Object.assign(Object.assign({dom:u.value.text.text},Mf),u.value),visible:Oe(u)&&Oe(u.value),width:u.value.width,height:u.value.height,wordBreak:u.value.wordBreak,textAlign:u.value.textAlign,textBaseline:u.value.textBaseline,singleLine:!1,textConfig:[]},u.value),"richtext"));const p=Oe(u.shape)?u.shape.size+u.shape.spacing:0,{textAlign:g,textBaseline:f}=u.value,_=s.width-c[3]-c[0]-p;g==="center"?this._tooltipTitle.setAttribute("x",p+_/2):g==="right"||g==="end"?this._tooltipTitle.setAttribute("x",p+_):this._tooltipTitle.setAttribute("x",p),f==="bottom"?this._tooltipTitle.setAttribute("y",u.height):f==="middle"?this._tooltipTitle.setAttribute("y",u.height/2):this._tooltipTitle.setAttribute("y",0);const m=Oe(u)?u.height+u.spaceRow:0;if(this._tooltipContent=this.createOrUpdateChild("tooltip-content",{visible:!0},"group"),this._tooltipContent.removeAllChild(!0),i&&i.length){this._tooltipContent.setAttribute("x",c[3]),this._tooltipContent.setAttribute("y",c[0]+m);let y=0;i.forEach((b,v)=>{const x=Pn.getContentAttr(this.attribute,v);if(!Oe(x))return;const S=`tooltip-content-${v}`,k=this._tooltipContent.createOrUpdateChild(S,{visible:!0,x:0,y},"group"),A=x.shape.size+x.shape.spacing;let T=d==="right"?(o?A:0)+(Oe(x.key)?r+x.key.spacing:0)+(Oe(x.value)?a:0):0;this._createShape(d==="right"?T-x.shape.size/2:T+x.shape.size/2,x,k,S),o&&(d==="right"?T-=A:T+=A);const M=this._createKey(x,k,S);M&&(nM(d,M,x.key.textAlign,T,r),M.setAttribute("y",0),d==="right"?T-=r+x.key.spacing:T+=r+x.key.spacing);const w=this._createValue(x,k,S);if(w){let E="right";P(x.value.textAlign)?E=x.value.textAlign:Oe(x.key)||d==="right"||(E="left"),w.setAttribute("textAlign",E),nM(d,w,E,T,a),w.setAttribute("y",0)}y+=x.height+x.spaceRow})}}_createShape(t,e,i,s){var r;if(Oe(e.shape))return i.createOrUpdateChild(`${s}-shape`,Object.assign({visible:!0,x:t,y:e.shape.size/2+(((r=pr(e.key.lineHeight,e.key.fontSize))!==null&&r!==void 0?r:e.key.fontSize)-e.shape.size)/2},e.shape),"symbol")}_createKey(t,e,i){var s;if(Oe(t.key)){let r;return r=t.key.multiLine?e.createOrUpdateChild(`${i}-key`,Object.assign(Object.assign({visible:!0},sl(t.key)),{textBaseline:"top"}),"richtext"):typeof t.key.text!="object"||t.key.text===null||t.key.text.type!=="rich"&&t.key.text.type!=="html"?e.createOrUpdateChild(`${i}-key`,Object.assign(Object.assign({visible:!0,text:(s=t.key.text)!==null&&s!==void 0?s:""},t.key),{textBaseline:"top"}),"text"):t.key.text.type==="rich"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},sl(t.key)),{textBaseline:"top"}),"richtext"):e.createOrUpdateChild(`${i}-value`,{html:Object.assign(Object.assign({dom:t.key.text.text},Mf),t.key)},"richtext"),r}}_createValue(t,e,i){var s;if(Oe(t.value)){let r;return r=t.value.multiLine?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},sl(t.value)),{textBaseline:"top"}),"richtext"):typeof t.value.text!="object"||t.value.text===null||t.value.text.type!=="rich"&&t.value.text.type!=="html"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0,text:(s=t.value.text)!==null&&s!==void 0?s:""},t.value),{textBaseline:"top"}),"text"):t.value.text.type==="rich"?e.createOrUpdateChild(`${i}-value`,Object.assign(Object.assign({visible:!0},sl(t.value)),{textBaseline:"top"}),"richtext"):e.createOrUpdateChild(`${i}-value`,{html:Object.assign({dom:t.value.text.text,container:"",width:30,height:30,style:{}},t.value)},"richtext"),r}}setAttributes(t,e){const i=Object.keys(t);this.attribute.autoCalculatePosition&&i.every(s=>eX.includes(s))?(this._mergeAttributes(t,i),C(this.attribute.panel.width)&&this.attribute.autoMeasure&&Pn.measureTooltip(this.attribute),Pn.calculateTooltipPosition(this.attribute),super.setAttributes({x:this.attribute.x,y:this.attribute.y},e)):super.setAttributes(t,e)}static calculateTooltipPosition(t){const{width:e=0,height:i=0}=t.panel,{offsetX:s,offsetY:r,pointerX:a,pointerY:o,positionX:l,positionY:h,parentBounds:d}=t;let c=a,u=o;return l==="left"?c-=e+s:l==="center"?c-=e/2:c+=s,h==="top"?u-=i+r:h==="middle"?u-=i/2:u+=r,c+e>d.x2&&(c-=e+s),u+i>d.y2&&(u-=i+r),c{const _=Pn.getContentAttr(t,f);(g.key||g.value)&&Oe(_)&&p.push([g,_])}),p.length){let g=!1;const f=[],_=[],m=[];p.forEach(([x,S],k)=>{var A;const{key:T,value:M,shape:w,spaceRow:E}=S,R=Oe(w),O=(A=w==null?void 0:w.symbolType)!==null&&A!==void 0?A:"",B=Wl(T),I=Wl(M);let D=0;if(Oe(T)){const{width:F,height:$}=B.quickMeasure(T.text);_.push(F),D=Math.max(D,$)}if(Oe(M)){const{width:F,height:$}=I.quickMeasure(M.text);m.push(F),D=Math.max(D,$)}R&&yg[O]&&(g=!0,f.push(w.size),D=Math.max(w.size,D)),x.height=D,o+=D,k{x.width=a}),t.hasContentShape=g,t.keyWidth=b,t.valueWidth=v}}return t.panel.width=a+s[1]+s[3],t.panel.height=o,t}static getTitleAttr(t){return FM({},Pn.defaultAttributes.titleStyle,Pn.defaultAttributes.title,t.titleStyle,t.title)}static getContentAttr(t,e){return FM({},Pn.defaultAttributes.contentStyle,t.contentStyle,t.content[e])}};AI.defaultAttributes=tX;const Lf=Ki;function nX(n){return(n=js(n))>0&&n<=Math.PI/2?2:n>Math.PI/2&&n<=Math.PI?3:n>Math.PI&&n<=3*Math.PI/2?4:1}function sX(n,t){let e=0,i=2*Math.PI;const s=P(n),r=P(t);for(s||r?r?s?(e=n,i=t):(e=t-2*Math.PI,i=t):(e=n,i=n+2*Math.PI):(e=0,i=2*Math.PI);i<=e;)i+=2*Math.PI;for(;e>2*Math.PI;)e-=2*Math.PI,i-=2*Math.PI;for(;i<0;)e+=2*Math.PI,i+=2*Math.PI;return{startAngle:e,endAngle:i}}function rX(n,t,e){return n.x1>t||n.x2e||n.y2{const s=+i[t];z(s)&&e.push(s)}),e.length===0?null:ti(e)}function Xx(n,t){const e=[];return n.forEach(i=>{const s=+i[t];z(s)&&e.push(s)}),e.length===0?null:Ve(e)}function TI(n,t){return n.reduce((e,i)=>{const s=t?+i[t]:+i;return z(s)&&(e+=s),e},0)}function MI(n,t){let e=0,i=0;return n.forEach(s=>{const r=t?+s[t]:+s;z(r)&&(e+=r,i++)}),e/i}function wI(n,t){const e=MI(n,t);return n.length<=1?0:n.reduce((s,r)=>s+(t?+r[t]:+r-e)**2,0)/(n.length-1)}function aX(n,t){return Math.sqrt(wI(n,t))}function oX(n,t){return lF(n.map(e=>e[t]))}function lX(n,t,e){const{predict:i}=PG(n,l=>l[t],l=>l[e]),s=kI(n,t),r=Xx(n,t),a=i(s),o=i(r);return[{[t]:s,[e]:a},{[t]:r,[e]:o}]}function hX(n){let t="center",e="middle";return t=(n=js(n))>=Math.PI*(7/6)&&n<=Math.PI*(11/6)?"right":n>=Math.PI*(1/6)&&n<=Math.PI*(5/6)?"left":"center",e=n>=Math.PI*(5/3)||n<=Math.PI*(1/3)?"bottom":n>=Math.PI*(2/3)&&n<=Math.PI*(4/3)?"top":"middle",{align:t,baseline:e}}function zM(n,t){const e=Df(n),i=Df(t),s=Math.asin((n.x*t.y-t.x*n.y)/e/i),r=Math.acos((n.x*t.x+n.y*t.y)/e/i);return s<0?-r:r}function Df(n,t={x:0,y:0}){return Ce.distancePP(n,t)}function dX(n,t=2){const e=n.reduce((h,d)=>h+(isNaN(d)?0:d),0);if(e===0)return 0;const i=Math.pow(10,t),s=n.map(h=>(isNaN(h)?0:h)/e*i*100),r=100*i,a=s.map(h=>Math.floor(h));let o=a.reduce((h,d)=>h+d,0);const l=s.map((h,d)=>h-a[d]);for(;oh&&(h=l[c],d=c);++a[d],l[d]=0,++o}return a.map(h=>h/i)}function Ee(n,t,e){let i=!1;if(t&&G(t)){for(const s of n)for(const r of s.getSeries(e))if(i=!!t.call(null,r),i)return i}return i}function CI(n,t){const e=[];for(const i of n)for(const s of i.getSeries(t))e.push(s);return e}const zc=(n,t)=>{for(let e=0;ei==null?void 0:i[s],t):t==null?void 0:t[n],e}}var j;(function(n){n.area="area",n.line="line",n.bar="bar",n.bar3d="bar3d",n.rangeColumn="rangeColumn",n.rangeColumn3d="rangeColumn3d",n.rangeArea="rangeArea",n.dot="dot",n.geo="geo",n.link="link",n.map="map",n.pie="pie",n.pie3d="pie3d",n.radar="radar",n.rose="rose",n.scatter="scatter",n.circularProgress="circularProgress",n.wordCloud="wordCloud",n.wordCloud3d="wordCloud3d",n.funnel="funnel",n.funnel3d="funnel3d",n.linearProgress="linearProgress",n.boxPlot="boxPlot",n.sankey="sankey",n.gaugePointer="gaugePointer",n.gauge="gauge",n.treemap="treemap",n.sunburst="sunburst",n.circlePacking="circlePacking",n.waterfall="waterfall",n.heatmap="heatmap",n.correlation="correlation",n.liquid="liquid",n.venn="venn"})(j||(j={}));var jM;(function(n){n.label="label",n.point="point",n.line="line",n.area="area",n.bar="bar",n.bar3d="bar3d",n.boxPlot="boxPlot",n.outlier="outlier",n.circlePacking="circlePacking",n.group="group",n.gridBackground="gridBackground",n.grid="grid",n.dot="dot",n.title="title",n.subTitle="subTitle",n.symbol="symbol",n.funnel="funnel",n.funnel3d="funnel3d",n.transform="transform",n.transform3d="transform3d",n.transformLabel="transformLabel",n.outerLabel="outerLabel",n.outerLabelLine="outerLabelLine",n.pin="pin",n.pinBackground="pinBackground",n.pointer="pointer",n.segment="segment",n.track="track",n.cell="cell",n.cellBackground="cellBackground",n.link="link",n.arrow="arrow",n.pie="pie",n.pie3d="pie3d",n.labelLine="labelLine",n.progress="progress",n.minLabel="minLabel",n.maxLabel="maxLabel",n.rose="rose",n.node="node",n.sunburst="sunburst",n.nonLeaf="nonLeaf",n.leaf="leaf",n.nonLeafLabel="nonLeafLabel",n.leaderLine="leaderLine",n.stackLabel="stackLabel",n.word="word",n.fillingWord="fillingWord",n.nodePoint="nodePoint",n.ripplePoint="ripplePoint",n.centerPoint="centerPoint",n.centerLabel="centerLabel",n.barBackground="barBackground",n.lineLabel="lineLabel",n.areaLabel="areaLabel",n.liquidGroup="liquidGroup",n.liquid="liquid",n.liquidBackground="liquidBackground",n.liquidOutline="liquidOutline",n.circle="circle",n.overlap="overlap",n.overlapLabel="overlapLabel"})(jM||(jM={}));const yt="__VCHART",El=500,Rl=500,cX=`${yt}_LABEL_VISIBLE`,q0=`${yt}_ARC_TRANSFORM_VALUE`,uX=`${yt}_ARC_RATIO`,HM=`${yt}_ARC_START_ANGLE`,VM=`${yt}_ARC_END_ANGLE`,pX=`${yt}_ARC_K`,_r=`${yt}_ARC_MIDDLE_ANGLE`,gX=`${yt}_ARC_QUADRANT`,fX=`${yt}_ARC_RADIAN`,Cm=-Math.PI/2,Kx=3*Math.PI/2,qx=-90,PI=270,jc=.6,Kr=9,mn=0;var ia;(function(n){n.enter="enter",n.update="update",n.exit="exit",n.group="group",n.connectNulls="connectNulls"})(ia||(ia={}));var qt;(function(n){n.enter="enter",n.update="update",n.exit="exit",n.unChange="unChange"})(qt||(qt={}));var rt;(function(n){n.arc="arc",n.arc3d="arc3d",n.area="area",n.image="image",n.line="line",n.path="path",n.rect="rect",n.rect3d="rect3d",n.rule="rule",n.shape="shape",n.symbol="symbol",n.text="text",n.richtext="richtext",n.polygon="polygon",n.pyramid3d="pyramid3d",n.circle="circle",n.cell="cell",n.interval="interval",n.group="group",n.glyph="glyph",n.component="component",n.largeRects="largeRects",n.largeSymbols="largeSymbols"})(rt||(rt={}));var ge;(function(n){n.axis="axis",n.grid="grid",n.legend="legend",n.slider="slider",n.label="label",n.datazoom="datazoom",n.player="player",n.title="title",n.scrollbar="scrollbar"})(ge||(ge={}));var WM;(function(n){n[n.player=1]="player",n[n.rollUp=2]="rollUp",n[n.drillDown=3]="drillDown",n[n.slider=4]="slider",n[n.datazoom=5]="datazoom",n[n.legend=6]="legend",n[n.scrollbar=7]="scrollbar",n[n.brush=8]="brush",n[n.normal=9]="normal"})(WM||(WM={}));var Vs;(function(n){n.lineAxis="lineAxis",n.circleAxis="circleAxis"})(Vs||(Vs={}));var gi;(function(n){n.lineAxisGrid="lineAxisGrid",n.circleAxisGrid="circleAxisGrid"})(gi||(gi={}));var NM;(function(n){n.discreteLegend="discreteLegend",n.colorLegend="colorLegend",n.sizeLegend="sizeLegend"})(NM||(NM={}));var GM;(function(n){n.lineCrosshair="lineCrosshair",n.rectCrosshair="rectCrosshair",n.sectorCrosshair="sectorCrosshair",n.circleCrosshair="circleCrosshair",n.polygonCrosshair="polygonCrosshair",n.ringCrosshair="ringCrosshair"})(GM||(GM={}));var UM;(function(n){n.symbolLabel="symbolLabel",n.rectLabel="rectLabel",n.lineLabel="lineLabel",n.dataLabel="dataLabel"})(UM||(UM={}));var $M;(function(n){n.continuousPlayer="continuousPlayer",n.discretePlayer="discretePlayer"})($M||($M={}));var cr;(function(n){n.before="before",n.layouting="layouting",n.reevaluate="reevaluate",n.after="after"})(cr||(cr={}));var ct;(function(n){n.BEFORE_EVALUATE_DATA="beforeEvaluateData",n.AFTER_EVALUATE_DATA="afterEvaluateData",n.BEFORE_EVALUATE_SCALE="beforeEvaluateScale",n.AFTER_EVALUATE_SCALE="afterEvaluateScale",n.BEFORE_PARSE_VIEW="beforeParseView",n.AFTER_PARSE_VIEW="afterParseView",n.BEFORE_TRANSFORM="beforeTransform",n.AFTER_TRANSFORM="afterTransform",n.BEFORE_CREATE_VRENDER_STAGE="beforeCreateVRenderStage",n.AFTER_CREATE_VRENDER_STAGE="afterCreateVRenderStage",n.BEFORE_CREATE_VRENDER_LAYER="beforeCreateVRenderLayer",n.AFTER_CREATE_VRENDER_LAYER="afterCreateVRenderLayer",n.BEFORE_STAGE_RESIZE="beforeStageResize",n.AFTER_STAGE_RESIZE="afterStageResize",n.BEFORE_VRENDER_DRAW="beforeVRenderDraw",n.AFTER_VRENDER_DRAW="afterVRenderDraw",n.BEFORE_MARK_JOIN="beforeMarkJoin",n.AFTER_MARK_JOIN="afterMarkJoin",n.BEFORE_MARK_UPDATE="beforeMarkUpdate",n.AFTER_MARK_UPDATE="afterMarkUpdate",n.BEFORE_MARK_STATE="beforeMarkState",n.AFTER_MARK_STATE="afterMarkState",n.BEFORE_MARK_ENCODE="beforeMarkEncode",n.AFTER_MARK_ENCODE="afterMarkEncode",n.BEFORE_DO_LAYOUT="beforeDoLayout",n.AFTER_DO_LAYOUT="afterDoLayout",n.BEFORE_MARK_LAYOUT_END="beforeMarkLayoutEnd",n.AFTER_MARK_LAYOUT_END="afterMarkLayoutEnd",n.BEFORE_DO_RENDER="beforeDoRender",n.AFTER_DO_RENDER="afterDoRender",n.BEFORE_MARK_RENDER_END="beforeMarkRenderEnd",n.AFTER_MARK_RENDER_END="afterMarkRenderEnd",n.BEFORE_CREATE_VRENDER_MARK="beforeCreateVRenderMark",n.AFTER_CREATE_VRENDER_MARK="afterCreateVRenderMark",n.BEFORE_ADD_VRENDER_MARK="beforeAddVRenderMark",n.AFTER_ADD_VRENDER_MARK="afterAddVRenderMark",n.AFTER_VRENDER_NEXT_RENDER="afterVRenderNextRender",n.BEFORE_ELEMENT_UPDATE_DATA="beforeElementUpdateData",n.AFTER_ELEMENT_UPDATE_DATA="afterElementUpdateData",n.BEFORE_ELEMENT_STATE="beforeElementState",n.AFTER_ELEMENT_STATE="afterElementState",n.BEFORE_ELEMENT_ENCODE="beforeElementEncode",n.AFTER_ELEMENT_ENCODE="afterElementEncode",n.ANIMATION_START="animationStart",n.ANIMATION_END="animationEnd",n.ELEMENT_ANIMATION_START="elementAnimationStart",n.ELEMENT_ANIMATION_END="elementAnimationEnd",n.ALL_ANIMATION_START="allAnimationStart",n.ALL_ANIMATION_END="allAnimationEnd"})(ct||(ct={}));var bb;(function(n){n.signal="signal",n.data="data",n.scale="scale",n.coordinate="coordinate",n.mark="mark"})(bb||(bb={}));var hn;(function(n){n.active="active",n.selected="selected",n.highlight="highlight",n.blur="blur"})(hn||(hn={}));const Eo="__vgrammar_scene_item__",EI=[rt.line,rt.area],_X=[rt.arc3d,rt.rect3d,rt.pyramid3d],vn="key",Np=[{}],mX=["key"],vX=!0,yX=!0,bX=!1,xX=null,SX=!0,YM="VGRAMMAR_IMMEDIATE_ANIMATION",XM=0,RI=1e3,xb=0,KM=0,qM=!1,Sb=!1,Ab="quintInOut",ZM={stopWhenStateChange:!1,immediatelyApply:!0},AX="VGRAMMAR_ANIMATION_PARAMETERS",Ro="_mo_hide_";function Zx(n,t){return H(n).reduce((e,i)=>{const s=at(i)?t.getGrammarById(i):i;return s&&e.push(s),e},[])}function kX(n){return!G(n)&&!!(n!=null&&n.signal)}function TX(n){return!G(n)&&!!(n!=null&&n.callback)}function Gi(n,t){if(C(n))return[];if(kX(n)){const e=n.signal;if(at(e))return H(t.getGrammarById(e));if((e==null?void 0:e.grammarType)==="signal")return[e]}else if(TX(n))return Zx(n.dependency,t);return[]}function ro(n){return G(n)||(n==null?void 0:n.signal)||!!(n!=null&&n.callback)}function He(n,t,e,i){if(C(n))return n;if(G(n))return i?n.call(null,e,i,t):n.call(null,e,t);if(n.signal){const s=n.signal;return at(s)?t==null?void 0:t[s]:s.output()}return n.callback?i?n.callback.call(null,e,i,t):n.callback.call(null,e,t):n}function MX(n,t){if(C(n))return n;if(G(n))return n.call(null,t);if(n.signal){const e=n.signal;return at(e)?t==null?void 0:t[e]:e.output()}return n.callback?n.callback.call(null,t):n}function Hc(n,t){return Pu(n)?n.output():t[n]}function wX(n){return n&&(n.signal||n.callback)}const Pu=n=>n&&!C(n.grammarType),Nl=n=>G(n)?n:t=>t[n];function Pm(n){return!!(n!=null&&n.scale)}function Jx(n){return!!(n!=null&&n.field)}function Ya(n,t){if(!n)return[];let e=[];return n.scale&&(e=Pu(n.scale)?[n.scale]:H(t.getScaleById(n.scale))),e.concat(Gi(n,t))}function Ff(n,t){switch(t){case"line":return n.some(e=>["x","y","defined"].includes(e));case"area":return n.some(e=>["x","y","x1","y1","defined"].includes(e));case"largeRects":return n.some(e=>["x","y","width","y1"].includes(e));case"largeSymbols":return n.some(e=>["x","y"].includes(e))}return!1}function CX(n){const{x:t,y:e,x1:i,y1:s}=n;return z(t)&&z(e)&&z(i)&&z(s)?[{x:t,y:e},{x:i,y:s}]:[]}function PX(n,t,e,i){return!n||!n.length||n.length===1&&!t?[]:n.some(s=>Ff(Object.keys(s.nextAttrs),"line"))?n.map((s,r)=>{var a;const o=s.nextAttrs,{x:l,y:h,x1:d,y1:c,defined:u}=(a=e==null?void 0:e[r])!==null&&a!==void 0?a:{};return C(o.x)&&(o.x=l),C(o.y)&&(o.y=h),C(o.defined)&&u===!1&&(o.defined=!1),o.context=s.key,i&&(C(o.x1)&&(o.x1=d),C(o.y1)&&(o.y1=c)),o}):e??[]}function EX(n,t,e=[]){if(!n||!n.length||n.length===1&&!t)return[];const i=new Float32Array(4*n.length);return n.forEach((s,r)=>{var a,o,l,h;const d=s.nextAttrs,c=(a=d.x)!==null&&a!==void 0?a:e[4*r],u=(o=d.y)!==null&&o!==void 0?o:e[4*r+1],p=(l=d.width)!==null&&l!==void 0?l:e[4*r+2],g=(h=d.y1)!==null&&h!==void 0?h:e[4*r+3];i[4*r]=c,i[4*r+1]=u,i[4*r+2]=p,i[4*r+3]=g-u}),i}function RX(n,t,e=[]){if(!n||!n.length||n.length===1&&!t)return[];const i=new Float32Array(2*n.length);return n.forEach((s,r)=>{var a,o;const l=s.nextAttrs,h=(a=l.x)!==null&&a!==void 0?a:e[2*r],d=(o=l.y)!==null&&o!==void 0?o:e[2*r+1];i[2*r]=h,i[2*r+1]=d}),i}function BX(n,t){if(["x","y","dx","dy"].includes(t))return!0;switch(n){case rt.arc:return["innerRadius","outerRadius","startAngle","endAngle"].includes(t);case rt.group:case rt.rect:case rt.image:return["width","height","y1"].includes(t);case rt.path:case rt.shape:return["path","customPath"].includes(t);case rt.line:return t==="defined";case rt.area:return["x1","y1","defined"].includes(t);case rt.rule:return["x1","y1"].includes(t);case rt.symbol:return t==="size";case rt.polygon:return t==="points";case rt.text:return t==="text"}return!1}function IX(n){return[rt.line,rt.area,rt.largeRects,rt.largeSymbols].includes(n)}function lr(n,t,e,i,s){e&&(ro(e)?t.forEach(r=>{const a=He(e,i,r.datum,n);Object.assign(r.nextAttrs,a)}):Object.keys(e).forEach(r=>{var a,o;const l=e[r],h=s&&!BX(n.mark.markType,r)?[t[0]]:t;if(Pm(l)){const d=Hc(l.scale,i),c=(a=l==null?void 0:l.offset)!==null&&a!==void 0?a:0,u=!C(l.band)&&d.bandwidth?d.bandwidth()*l.band:null,p=at(l==null?void 0:l.field),g=p?bs(l.field):null;let f=p?null:C(l==null?void 0:l.value)?0:(o=d.scale)===null||o===void 0?void 0:o.call(d,l.value);h.forEach(_=>{var m;p&&(f=(m=d.scale)===null||m===void 0?void 0:m.call(d,g(_.datum))),_.nextAttrs[r]=nt(f)||nt(u)?f+c+u:f})}else if(Jx(l)){const d=bs(l.field);h.forEach(c=>{c.nextAttrs[r]=d(c.datum)})}else h.forEach(d=>{d.nextAttrs[r]=He(l,i,d.datum,n)})}))}function _a(n,t,e,i){if(!n)return null;if(ro(n))return He(n,i,t,e);const s={};return Object.keys(n).forEach(r=>{var a,o,l;const h=n[r];if(Pm(h)){const d=Hc(h.scale,i),c=(a=h==null?void 0:h.offset)!==null&&a!==void 0?a:0,u=!C(h.band)&&d.bandwidth?d.bandwidth()*h.band:null,p=at(h==null?void 0:h.field),g=p?bs(h.field):null,f=p?(o=d.scale)===null||o===void 0?void 0:o.call(d,g(t)):C(h==null?void 0:h.value)?0:(l=d.scale)===null||l===void 0?void 0:l.call(d,h.value);s[r]=nt(f)||nt(u)?f+c+u:f}else if(Jx(h)){const d=bs(h.field);s[r]=d(t)}else s[r]=He(h,i,t,e)}),s}class OX{constructor(t,e,i,s){this.channelEncoder={},this.marks=t,e&&this.registerChannelEncoder(e),i&&this.registerDefaultEncoder(i),this.progressiveChannels&&this.registerProgressiveChannels(s)}getMarks(){return this.marks}registerChannelEncoder(t,e){return at(t)?this.channelEncoder[t]=e:Object.assign(this.channelEncoder,t),this}registerFunctionEncoder(t){return this.functionEncoder=t,this}registerDefaultEncoder(t){return this.defaultEncoder=t,this}registerProgressiveChannels(t){return this.progressiveChannels=H(t),this}getChannelEncoder(){return this.channelEncoder}getFunctionEncoder(){return this.functionEncoder}getDefaultEncoder(){return this.defaultEncoder}getProgressiveChannels(){return this.progressiveChannels}}let it=class Le{static registerPlotMarks(t,e){Le._plotMarks[t]=e}static createPlotMark(t,e){return Le._plotMarks[t]?new Le._plotMarks[t](e):null}static registerMark(t,e){Le._marks[t]=e}static createMark(t,e,i){return Le._marks[t]?new Le._marks[t](e,t,i):null}static hasMark(t){return!!Le._marks[t]}static registerComponent(t,e){Le._components[t]=e}static createComponent(t,e,i,s){const r=Le._components[t];return r?new r(e,i,s):null}static hasComponent(t){return!!Le._components[t]}static registerGraphicComponent(t,e){Le._graphicComponents[t]=e}static createGraphicComponent(t,e,i){const s=Le._graphicComponents[t];return s?s(e,i):null}static registerTransform(t,e,i){Le._transforms[t]=Object.assign(e,{type:t,isBuiltIn:!!i})}static getTransform(t){return Le._transforms[t]}static unregisterRuntimeTransforms(){Object.keys(Le._transforms).forEach(t=>{Le._transforms[t]&&!Le._transforms[t].isBuiltIn&&(Le._transforms[t]=null)})}static registerGrammar(t,e,i){Le._grammars[t]={grammarClass:e,specKey:i??t}}static createGrammar(t,e,i){var s;const r=(s=Le._grammars[t])===null||s===void 0?void 0:s.grammarClass;return r?new r(e,i):null}static getGrammars(){return this._grammars}static getGlyph(t){return Le._glyphs[t]}static createInteraction(t,e,i){const s=Le._interactions[t];return s?new s(e,i):null}static hasInteraction(t){return!!Le._interactions[t]}};it._plotMarks={},it._marks={},it._components={},it._graphicComponents={},it._transforms={},it._grammars={},it._glyphs={},it._animations={},it._interactions={},it._graphics={},it.registerGlyph=(n,t,e,i,s)=>(it._glyphs[n]=new OX(t,e,i,s),it._glyphs[n]),it.registerAnimationType=(n,t)=>{it._animations[n]=t},it.getAnimationType=n=>it._animations[n],it.registerInteraction=(n,t)=>{it._interactions[n]=t},it.registerGraphic=(n,t)=>{it._graphics[n]=t},it.getGraphicType=n=>it._graphics[n],it.createGraphic=(n,t)=>{const e=it._graphics[n];return e?e(t):null};const BI=n=>!!rt[n];function Cd(n,t,e={}){var i;const s=it.getGraphicType(t)?it.createGraphic(t,e):it.createGraphicComponent(t,e,{skipDefault:(i=n==null?void 0:n.spec)===null||i===void 0?void 0:i.skipTheme});return s||Lt.getInstance().error(`create ${t} graphic failed!`),s}function LX(n,t,e={}){if(!it.getGraphicType(rt.glyph))return;const i=it.createGraphic(rt.glyph,e),s=t.getMarks(),r=Object.keys(s).map(a=>{if(it.getGraphicType(s[a])){const o=it.createGraphic(s[a]);if(o)return o.name=a,o}});return i.setSubGraphic(r),i}const zf=n=>{n&&(n[Eo]=null,n.release(),n.parent&&n.parent.removeChild(n))},JM=["fillOpacity"],QM=(n,t,e)=>{var i;return t==="fillOpacity"?(n.fillOpacity=(i=e.fillOpacity)!==null&&i!==void 0?i:1,["fillOpacity"]):[]};function DX(n,t,e,i,s,r){const a=s.getGraphicAttribute(n,!1,r);if(a)return t.forEach(l=>{l in i&&(a[l]=i[l])}),a;const o={};return t.forEach(l=>{o[l]=i[l]}),e[n]=o,o}const Eu={rect3d:[{channels:["x","y","z","x1","y1","width","height","length"],transform:(n,t,e)=>{var i,s,r,a,o,l,h,d,c,u,p,g;z(t.width)||!z(t.x1)&&z(e.width)?(n.x=Math.min((i=e.x)!==null&&i!==void 0?i:0,(s=e.x1)!==null&&s!==void 0?s:1/0),n.width=e.width):z(t.x1)||!z(t.width)&&z(e.x1)?(n.x=Math.min(e.x,e.x1),n.width=Math.abs(e.x1-e.x)):(n.x=Math.min((r=e.x)!==null&&r!==void 0?r:0,(a=e.x1)!==null&&a!==void 0?a:1/0),n.width=e.width),z(t.height)||!z(t.y1)&&z(e.height)?(n.y=Math.min((o=e.y)!==null&&o!==void 0?o:0,(l=e.y1)!==null&&l!==void 0?l:1/0),n.height=e.height):z(t.y1)||!z(t.height)&&z(e.y1)?(n.y=Math.min(e.y,e.y1),n.height=Math.abs(e.y1-e.y)):(n.y=Math.min((h=e.y)!==null&&h!==void 0?h:0,(d=e.y1)!==null&&d!==void 0?d:1/0),n.height=e.height),z(t.length)||!z(t.z1)&&z(e.length)?(n.z=Math.min((c=e.z)!==null&&c!==void 0?c:0,(u=e.z1)!==null&&u!==void 0?u:1/0),n.length=e.length):z(t.z1)||!z(t.length)&&z(e.z1)?(n.z=Math.min(e.z,e.z1),n.length=Math.abs(e.z1-e.z)):(n.z=Math.min((p=e.z)!==null&&p!==void 0?p:0,(g=e.z1)!==null&&g!==void 0?g:1/0),n.length=e.length)},storedAttrs:"sizeAttrs"}],[rt.text]:[{channels:["text","limit","autoLimit","maxLineWidth","textType"],transform:(n,t,e)=>{var i,s;const r=(i=e.limit)!==null&&i!==void 0?i:1/0,a=(s=e.autoLimit)!==null&&s!==void 0?s:1/0,o=Math.min(r,a),l=vs(e.text)&&!C(e.text.text),h=l?e.text.text:e.text;n.maxLineWidth=o===1/0?e.maxLineWidth:o,(l||e.textType)&&(e.text.type==="rich"||e.textType==="rich")?n.textConfig=h:n.text=h},storedAttrs:"limitAttrs"}],[rt.rule]:[{channels:["x","y","x1","y1"],transform:(n,t,e)=>{const i=CX(e);n.points=i,n.x=0,n.y=0},storedAttrs:"pointAttrs"}],[rt.symbol]:[{channels:["shape","symbolType"],transform:(n,t,e)=>{var i;n.symbolType=(i=t.shape)!==null&&i!==void 0?i:t.symbolType}},{channels:["image","fill","background"],transform:(n,t,e)=>{t.image?(n.background=t.image,n.fill=!1):e.image?(n.background=e.image,n.fill=!1):(n.fill=e.fill,n.background=e.background)},storedAttrs:"imageAttrs"}]};function FX(n,t){var e;return((e=Eu[n])!==null&&e!==void 0?e:[]).reduce((i,s)=>(s.channels.forEach(r=>{cs(t,r)&&(i[r]=t[r])}),i),{})}const jf=(n,t,e,i)=>{const s={},r=t?Object.keys(t):[],a=at(n)?Eu[n]:n;if(a&&a.length){const o=[];r.forEach(l=>{let h=!1;a.forEach((d,c)=>{if(d.channels.includes(l)){if(!o[c])if(d.storedAttrs){const u=DX(d.storedAttrs,d.channels,s,t,e,i);d.transform(s,t,u)}else d.transform(s,t,null);o[c]=!0,h=!0}}),h||(JM.includes(l)?QM(s,l,t):s[l]=t[l])})}else r.forEach(o=>{JM.includes(o)?QM(s,o,t):s[o]=t[o]});return s},zX=(n,t)=>{var e,i;if(n===t)return!0;const s=(e=n&&n.length)!==null&&e!==void 0?e:0;return s===((i=t&&t.length)!==null&&i!==void 0?i:0)&&s!==0&&n.every((r,a)=>!r&&!t[a]||r&&t[a]&&r.color===t[a].color&&r.offset===t[a].offset)},jX=(n,t)=>{if(n===t)return!0;if(typeof n!=typeof t||at(n)||n.gradient!==t.gradient)return!1;const e=Object.keys(n),i=Object.keys(t);return e.length===i.length&&e.every(s=>s==="stops"?zX(n[s],t[s]):n[s]===t[s])},HX=(n,t)=>n.length===t.length&&n.join("-")===t.join("-"),VX=(n,t,e)=>!(!C(n)||!C(t))||!C(n)&&!C(t)&&(e==="lineDash"?HX(n,t):e==="stroke"||e==="fill"?jX(n,t):n===t),WX=["fill","fillOpacity","background","texture","texturePadding","textureSize","textureColor"],II=["stroke","strokeOpacity","lineDash","lineDashOffset","lineCap","lineJoin","lineWidth","miterLimit"],NX=WX.concat(II);function kb(n,t,e){var i;if(!n||n.length<=1)return null;const s=((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.markType)==="area"?NX:II,r=[];let a=null;return n.forEach((o,l)=>{a&&s.every(h=>VX(a[h],o[h],h))||(r.length&&(r[r.length-1].endIndex=l),a=o,r.push({attrs:a,startIndex:l}))}),r.length>=2?r.map(o=>{const l=Qx(o.attrs);return l.points=t.slice(o.startIndex,C(o.endIndex)?t.length:o.endIndex),l}):null}function GX(n,t,e){if(!n||n.length<=1)return null;const i=!!e&&e.mark.getSpec().enableSegments;let s,r,a=[],o=null;if(n.forEach((l,h)=>{o=t[h],o&&o.defined!==!1?(s||(r={items:[],points:[]},a.push(r)),r.points.push(o),r.items.push(l),s===!1&&(r.isConnect=!0,r={items:[],points:[]},a.push(r)),s=!0):s=!1}),a=a.filter(l=>l.points.length>0),a.length>=2){const l=[];return a.forEach(h=>{if(h.isConnect)return void l.push({points:h.points,isConnect:!0});if(i){const c=kb(h.items,h.points,e);if(c)return void c.forEach(u=>{l.push(u)})}const d=Qx(h.items[0]);d.points=h.points,l.push(d)}),l}return i?kb(n,t,e):null}function UX(n){return n?n.reduce((t,e)=>t.concat(e.points),[]):null}function Qx(n){const t={};if(!n)return t;const e=["x","y","x1","y1","defined","size","width","height","context"];return Object.keys(n).forEach(i=>{e.includes(i)||(t[i]=n[i])}),t}function $X(n,t){var e;if(!n||!n.segments||!n.segments.length)return n;const i=((e=t==null?void 0:t.mark)===null||e===void 0?void 0:e.markType)==="area"?["fillOpacity","strokeOpacity"]:["strokeOpacity"],s={};return Object.keys(n).forEach(r=>{i.includes(r)||(s[r]=n[r])}),s}let OI=class{constructor(t){this.data=null,this.states=[],this.diffState=qt.enter,this.isReserved=!1,this.runtimeStatesEncoder=null,this.items=[],this.getStateAttrs=(e,i)=>{var s,r,a,o;const l=!C((s=this.runtimeStatesEncoder)===null||s===void 0?void 0:s[e]),h=l?Object.assign(Object.assign({},(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e]),this.runtimeStatesEncoder[e]):(a=this.mark.getSpec().encode)===null||a===void 0?void 0:a[e];if(!h)return{};if(G(h))return h(this.getDatum(),this,e,i);if(!l&&(!((o=this.graphicItem.states)===null||o===void 0)&&o[e]))return this.graphicItem.states[e];const d=this.items.map(u=>Object.assign({},u,{nextAttrs:{}}));lr(this,d,h,this.mark.parameters());const c=this.transformElementItems(d,this.mark.markType);return this.graphicItem.states?this.graphicItem.states[e]||(this.graphicItem.states[e]=c):this.graphicItem.states={[e]:c},c},this.mark=t}initGraphicItem(t={}){if(this.graphicItem)return;const e=this.mark.getAttributeTransforms();this.graphicItem=this.mark.addGraphicItem(e?jf(e,t,this):t,this.groupKey),this.graphicItem&&(this.graphicItem[Eo]=this,e&&(this.graphicItem.onBeforeAttributeUpdate=i=>this.mark?jf(e,i,this):i),this.clearGraphicAttributes(),this.mark.needAnimate()&&(this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(Object.assign({},t)),this.setFinalGraphicAttributes(Object.assign({},t))))}updateGraphicItem(){if(!this.graphicItem)return;this.diffState===qt.exit?this.graphicItem.releaseStatus="willRelease":this.graphicItem.releaseStatus=void 0;const t=this.mark.animate.getAnimationConfigs("state");t.length!==0&&(this.graphicItem.stateAnimateConfig=t[0].originConfig)}getGraphicItem(){return this.graphicItem}removeGraphicItem(){var t,e;this.graphicItem&&((e=(t=this.graphicItem.animates)===null||t===void 0?void 0:t.forEach)===null||e===void 0||e.call(t,i=>i.stop())),this.graphicItem&&(zf(this.graphicItem),this.graphicItem[Eo]=null,this.graphicItem=null)}resetGraphicItem(){this.graphicItem&&(this.graphicItem=null)}getBounds(){var t;return(t=this.graphicItem)===null||t===void 0?void 0:t.AABBBounds}getStates(){return this.states}updateData(t,e,i){var s;this.mark.emit(ct.BEFORE_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.data=e;const r=Nl(i);return this.items=e.map(a=>({datum:a,key:r(a),view:this.mark.view,nextAttrs:{}})),this.groupKey=t,this.key=this.mark.isCollectionMark()?t:(s=this.items)===null||s===void 0?void 0:s[0].key,this.mark.emit(ct.AFTER_ELEMENT_UPDATE_DATA,{groupKey:t,data:e,key:i},this),this.items}state(t,e){var i;const s=this.mark.isCollectionMark(),r=this.states,a=H(He(t,e,this.getDatum(),this)),o=(i=this.mark.getSpec())===null||i===void 0?void 0:i.stateSort;o&&a.length&&a.sort(o);const l=a.length!==r.length||a.some((h,d)=>h!==r[d]);this.states=a,!s&&l&&this.diffState===qt.unChange&&(this.diffState=qt.update)}encodeGraphic(t){this.coordinateTransformEncode(this.items);const e=this.transformElementItems(this.items,this.mark.markType);t&&Object.assign(e,t),this.graphicItem?(this.graphicItem.clearStates(),this.graphicItem.states={},this.graphicItem.stateProxy=null,Ro in this.graphicItem.attribute&&"visible"in e&&delete this.graphicItem.attribute[Ro],this.applyGraphicAttributes(e)):this.initGraphicItem(e),this.diffState!==qt.enter&&this.diffState!==qt.update||!this.states.length||this.useStates(this.states),this.mark.markType===rt.shape&&(this.graphicItem.datum=this.items[0].datum),this.items.forEach(i=>{i.nextAttrs={}}),this._setCustomizedShape()}_setCustomizedShape(){var t;if(!this.graphicItem)return;const e=(t=this.mark.getSpec())===null||t===void 0?void 0:t.setCustomizedShape;e&&(this.graphicItem.pathProxy=i=>e(this.data,i,new Pe))}encodeItems(t,e,i=!1,s){const r=this.mark.isCollectionMark(),a=e[ia.update],o=e[ia.enter],l=e[ia.exit],h=this.mark.isLargeMode()||r&&!this.mark.getSpec().enableSegments;this.diffState===qt.enter?(o&&lr(this,t,o,s,h),a&&lr(this,t,a,s,h)):this.diffState===qt.update?((r&&o||i)&&lr(this,t,o,s,h),a&&lr(this,t,a,s,h)):this.diffState===qt.exit&&l&&(i&&lr(this,t,o,s,h),lr(this,t,l,s,h))}coordinateTransformEncode(t){if(!this.mark.coord||this.mark.markType==="arc"||this.mark.disableCoordinateTransform===!0)return;const e=this.mark.coord.output();t.forEach(i=>{const s=i.nextAttrs,r=e.convert(s);Object.assign(s,r)})}clearStates(t){const e=be(t)?t:this.mark.animate.getAnimationConfigs("state").length!==0;this.states=[],this.graphicItem&&this.graphicItem.clearStates(e),this.runtimeStatesEncoder&&(this.runtimeStatesEncoder={})}_updateRuntimeStates(t,e){this.runtimeStatesEncoder||(this.runtimeStatesEncoder={}),this.runtimeStatesEncoder[t]=e}hasState(t){return this.states&&t&&this.states.includes(t)}updateStates(t){if(!this.graphicItem)return!1;let e=this.states.slice();const i=this.mark.getSpec().encode;let s=!1,r=!1;return Object.keys(t).forEach(a=>{var o;if(!a)return;const l=t[a];if(Ct(l)&&!ue(l,(o=this.runtimeStatesEncoder)===null||o===void 0?void 0:o[a]))e.includes(a)?s=!0:e.push(a),this._updateRuntimeStates(a,l),r=!0;else if(l)!e.includes(a)&&(i!=null&&i[a])&&(e.push(a),r=!0);else if(e.length){const h=e.filter(d=>d!==a);h.length!==e.length&&(r=!0,e=h),this.runtimeStatesEncoder&&this.runtimeStatesEncoder[a]&&(this.runtimeStatesEncoder[a]=null)}}),s&&this.graphicItem.clearStates(),!!r&&(this.useStates(e),!0)}addState(t,e){var i;if(!this.graphicItem)return!1;if(e&&at(t)&&!ue(e,(i=this.runtimeStatesEncoder)===null||i===void 0?void 0:i[t])){const a=this.states.slice();return a.includes(t)?this.graphicItem.clearStates():a.push(t),this._updateRuntimeStates(t,e),this.useStates(a),!0}const s=this.mark.getSpec().encode,r=H(t).reduce((a,o)=>(o&&!a.includes(o)&&(s!=null&&s[o])&&a.push(o),a),this.states.slice());return r.length!==this.states.length&&(this.useStates(r),!0)}removeState(t){if(!this.graphicItem)return!1;const e=H(t);if(!e.length)return!1;const i=this.states.filter(s=>!e.includes(s));return i.length!==this.states.length&&(this.runtimeStatesEncoder&&e.forEach(s=>{this.runtimeStatesEncoder[s]=null}),this.useStates(i),!0)}useStates(t,e){var i;if(!this.graphicItem)return!1;this.mark.emit(ct.BEFORE_ELEMENT_STATE,{states:t},this);const s=(i=this.mark.getSpec())===null||i===void 0?void 0:i.stateSort;s&&t.sort(s),this.states=t;const r=be(e)?e:this.mark.animate.getAnimationConfigs("state").length!==0;return this.graphicItem.stateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,r),this.mark.emit(ct.AFTER_ELEMENT_STATE,{states:t},this),!0}diffAttributes(t){const e={},i=this.getFinalGraphicAttributes();for(const s in t)rm(s,i,t)&&cs(i,s)||(e[s]=t[s]);return e}transformElementItems(t,e,i){var s,r,a,o,l;const h=t[0];if(!h.nextAttrs||Object.keys(h.nextAttrs).length===0)return{};let d=h.nextAttrs;if(IX(e)&&t&&t.length&&C((s=h.nextAttrs)===null||s===void 0?void 0:s.points)&&(i===!0||Ff(Object.keys(h.nextAttrs),this.mark.markType))){const c=this.mark.getSpec(),u=this.getGraphicAttribute("points",!1),p=this.getGraphicAttribute("segments",!1),g=c.enableSegments,f=(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[ia.connectNulls],_=t.map(y=>y.nextAttrs),m=this.mark.isProgressive();if(d=Qx(d),e===rt.line||e===rt.area){const y=PX(t,!0,u,e===rt.area);if(m)d.segments=((l=(o=(a=this.graphicItem)===null||a===void 0?void 0:a.attribute)===null||o===void 0?void 0:o.segments)!==null&&l!==void 0?l:[]).concat([{points:y}]);else if(f){if(d.segments=GX(_,y,this),d.segments&&d.segments.some(b=>b.isConnect)){const b=_a(f,this.getDatum(),this,this.mark.parameters());b&&d.segments.forEach(v=>{v.isConnect&&Object.assign(v,b)})}d.points=y}else if(g){const b=y&&y.length!==0?y:UX(p),v=kb(_,b,this);v?(d.segments=v,d.points=null):(d.segments=null,d.points=b),d=$X(d,this)}else d.points=y,d.segments=null}else e===rt.largeRects?d.points=EX(t,!0,u):e===rt.largeSymbols&&(d.points=RX(t,!0,u))}return d}applyGraphicAttributes(t){var e,i;if(!_t(t))if(this.mark.needAnimate()){const s=this.diffAttributes(t),r=(e=this.getPrevGraphicAttributes())!==null&&e!==void 0?e:{},a=(i=this.getFinalGraphicAttributes())!==null&&i!==void 0?i:{};Object.keys(s).forEach(h=>{r[h]=this.getGraphicAttribute(h),a[h]=s[h]}),this.setNextGraphicAttributes(s),this.setPrevGraphicAttributes(r),this.setFinalGraphicAttributes(a);const o=this.mark.animate.getElementAnimators(this).reduce((h,d)=>Object.assign(h,d.getEndAttributes()),{}),l=Object.assign({},o,a);this.graphicItem.setAttributes(l)}else this.graphicItem.setAttributes(t)}getGraphicAttribute(t,e=!1){var i;if(!this.graphicItem)return;if(e){let a;const o=this.getPrevGraphicAttributes();if(!C(a=Pt(o,t)))return a}const s=this.mark.getAttributeTransforms();let r=[t];if(s&&s.length){const a=s.find(o=>o.storedAttrs&&o.channels.includes(t));a&&(r=[a.storedAttrs,t])}return Pt((i=this.graphicItem)===null||i===void 0?void 0:i.attribute,r)}setGraphicAttribute(t,e,i=!0){if(!this.graphicItem)return;const s=this.getFinalGraphicAttributes(),r=this.getPrevGraphicAttributes();i&&s&&(s[t]=e),r&&!cs(r,t)&&(r[t]=this.graphicItem.attribute[t]),this.graphicItem.setAttribute(t,e)}setGraphicAttributes(t,e=!0){if(!this.graphicItem)return;const i=this.getFinalGraphicAttributes(),s=this.getPrevGraphicAttributes();Object.keys(t).forEach(r=>{i&&e&&(i[r]=t[r]),s&&!cs(s,r)&&(s[r]=this.graphicItem.attribute[r])}),this.graphicItem.setAttributes(t)}getFinalGraphicAttributes(){return this.graphicItem.finalAttrs}setFinalGraphicAttributes(t){this.graphicItem.finalAttrs=t}getPrevGraphicAttributes(){return this.graphicItem.prevAttrs}setPrevGraphicAttributes(t){this.graphicItem.prevAttrs=t}getNextGraphicAttributes(){return this.graphicItem.nextAttrs}getFinalAnimationAttribute(t){var e,i;return(i=(e=this.getFinalGraphicAttributes())===null||e===void 0?void 0:e[t])!==null&&i!==void 0?i:this.getGraphicAttribute(t)}getFinalAnimationAttributes(){var t;return(t=this.getFinalGraphicAttributes())!==null&&t!==void 0?t:this.graphicItem.attribute}setNextGraphicAttributes(t){this.graphicItem.nextAttrs=t}clearChangedGraphicAttributes(){this.graphicItem&&(this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null))}clearGraphicAttributes(){this.graphicItem&&(this.graphicItem.prevAttrs&&this.setPrevGraphicAttributes(null),this.graphicItem.nextAttrs&&this.setNextGraphicAttributes(null),this.graphicItem.finalAttrs&&this.setFinalGraphicAttributes(null))}remove(){this.graphicItem&&(zf(this.graphicItem),this.graphicItem=null)}release(){this.removeGraphicItem(),this.mark=null,this.data=null,this.items=null}getItemAttribute(t){var e,i;if(!((e=this.items)===null||e===void 0)&&e.length)return this.mark.isCollectionMark()?C(t)?this.items.map(s=>s.nextAttrs):this.items.map(s=>{var r;return(r=s.nextAttrs)===null||r===void 0?void 0:r[t]}):C(t)?this.items[0].nextAttrs:(i=this.items[0].nextAttrs)===null||i===void 0?void 0:i[t]}setItemAttributes(t){var e;!((e=this.items)===null||e===void 0)&&e.length&&(this.mark.isCollectionMark()?V(t)&&this.items.forEach((i,s)=>{Object.assign(i.nextAttrs,t[s])}):Object.assign(this.items[0].nextAttrs,t))}getItem(){var t,e;return this.mark&&this.mark.isCollectionMark()?(t=this.items)!==null&&t!==void 0?t:[]:(e=this.items)===null||e===void 0?void 0:e[0]}getDatum(){var t,e;return this.mark&&this.mark.isCollectionMark()?(t=this.data)!==null&&t!==void 0?t:[]:(e=this.data)===null||e===void 0?void 0:e[0]}};class Va{constructor(t,e){this.references=new Map,this.view=t,this.depend(e==null?void 0:e.dependency)}getStartState(){return null}depend(t){this.references.clear(),H(t).map(e=>at(e)?this.view.getGrammarById(e):e).filter(e=>!C(e)).forEach(e=>{var i;this.references.set(e,((i=this.references.get(e))!==null&&i!==void 0?i:0)+1)})}parameters(){const t={};return this.references.forEach((e,i)=>{P(i.id())&&(t[i.id()]=i.output())}),t}bind(){const t=this.getEvents();(t??[]).forEach(e=>{e.type&&e.handler&&(V(e.type)?e.type.forEach(i=>{i&&i!=="none"&&this.view.addEventListener(i,e.handler)}):e.type!=="none"&&this.view.addEventListener(e.type,e.handler))})}unbind(){const t=this.getEvents();(t??[]).forEach(e=>{e.type&&e.handler&&(V(e.type)?e.type.forEach(i=>{i&&i!=="none"&&this.view.removeEventListener(i,e.handler)}):e.type!=="none"&&this.view.removeEventListener(e.type,e.handler))})}start(t){}reset(t){}dispatchEvent(t,e){this.view.emit(`${this.type}:${t}`,e),t==="start"&&this.options.onStart?this.options.onStart(e):t==="reset"&&this.options.onReset?this.options.onReset(e):t==="update"&&this.options.onUpdate?this.options.onUpdate(e):t==="end"&&this.options.onEnd&&this.options.onEnd(e)}}class Bo extends Va{constructor(t,e){super(t,e),this.type=Bo.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},Bo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}getStartState(){return this.options.state}start(t){t&&this._marks&&this._marks.includes(t.mark)&&t.addState(this.options.state)}reset(t){t&&this._marks&&this._marks.includes(t.mark)&&t.removeState(this.options.state)}}Bo.type="element-active",Bo.defaultOptions={state:hn.active,trigger:"pointerover",triggerOff:"pointerout"};const tS=n=>n.filterField?t=>{var e;return(e=t.getDatum())===null||e===void 0?void 0:e[n.filterField]}:t=>t[n.filterType],LI=(n,t)=>{if(!t||!n)return null;const e={};return n.forEach(i=>{const s=i&&i.getSpec(),r=s&&s.encode;r&&t.forEach(a=>{a&&r[a]&&(e[a]||(e[a]=[]),e[a].push(i))})}),e},YX=n=>{const t=H(n),e=[],i=[];return t.forEach(s=>{s==="empty"?e.push("view"):at(s)&&s!=="none"?s.includes("view:")?(i.push(s.replace("view:","")),e.push("view")):(i.push(s),e.push("self")):nt(s)&&e.push("timeout")}),{eventNames:i,resetType:e}};class ma extends Va{constructor(t,e){super(t,e),this.type=ma.type,this._resetType=[],this.clearPrevElements=()=>{const{state:i,reverseState:s}=this.options;this._statedElements&&this._statedElements.length&&(this.clearAllStates(i,s),this.dispatchEvent("reset",{elements:this._statedElements,options:this.options}),this._statedElements=[])},this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},ma.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=LI(this._marks,[this.options.state,this.options.reverseState])}getStartState(){return this.options.state}getEvents(){const t=this.options.triggerOff,e=this.options.trigger,i=[{type:e,handler:this.handleStart}],{eventNames:s,resetType:r}=YX(t);return s.forEach(a=>{a&&(V(e)?!e.includes(a):a!==e)&&i.push({type:a,handler:this.handleReset})}),this._resetType=r,i}start(t){const{state:e,reverseState:i,isMultiple:s}=this.options;if(t&&this._marks&&this._marks.includes(t.mark))if(t.hasState(e)){if(this._resetType.includes("self")){const r=this._statedElements&&this._statedElements.filter(a=>a!==t);r&&r.length?this._statedElements=this.updateStates(r,this._statedElements,e,i):this.clearPrevElements()}}else this._timer&&clearTimeout(this._timer),t.addState(e),this._statedElements=this.updateStates(s&&this._statedElements?[...this._statedElements,t]:[t],this._statedElements,e,i),this.dispatchEvent("start",{elements:this._statedElements,options:this.options}),this._resetType.includes("timeout")&&(this._timer=setTimeout(()=>{this.clearPrevElements()},this.options.triggerOff));else this._resetType.includes("view")&&this._statedElements&&this._statedElements.length&&this.clearPrevElements()}reset(t){if(!this._statedElements||!this._statedElements.length)return;const e=t&&this._marks&&this._marks.includes(t.mark);(this._resetType.includes("view")&&!e||this._resetType.includes("self")&&e)&&this.clearPrevElements()}}ma.type="element-select",ma.defaultOptions={state:hn.selected,trigger:"click"};class va extends Va{constructor(t,e){super(t,e),this.type=va.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},va.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector),this._stateMarks=LI(this._marks,[this.options.highlightState,this.options.blurState])}getStartState(){return this.options.highlightState}getEvents(){const t=this.options.triggerOff,e=[{type:this.options.trigger,handler:this.handleStart}];let i=t;return at(t)&&t.includes("view:")?(i=t.replace("view:",""),this._resetType="view"):this._resetType="self",e.push({type:i,handler:this.handleReset}),e}clearPrevElements(){const{highlightState:t,blurState:e}=this.options;this._lastElement&&(this.clearAllStates(t,e),this.dispatchEvent("reset",{elements:[this._lastElement],options:this.options}),this._lastElement=null,this._statedElements=null)}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const{highlightState:e,blurState:i}=this.options;if(this._lastElement===t)return;this._statedElements=this.updateStates([t],this._statedElements,e,i),this._lastElement=t,this.dispatchEvent("start",{elements:[t],options:this.options})}else this._lastElement&&this._resetType==="view"&&this.clearPrevElements()}reset(t){if(!this._statedElements||!this._statedElements.length)return;const e=t&&this._marks&&this._marks.includes(t.mark);this._resetType!=="view"||e?this._resetType==="self"&&e&&this.clearPrevElements():this.clearPrevElements()}}va.type="element-highlight",va.defaultOptions={highlightState:hn.highlight,blurState:hn.blur,trigger:"pointerover",triggerOff:"pointerout"};class Io extends Va{constructor(t,e){super(t,e),this.type=Io.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{i.element&&this._marks&&this._marks.includes(i.element.mark)&&this.clearPrevElements()},this.options=Object.assign({},Io.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}clearPrevElements(){const t=[this.options.highlightState,this.options.blurState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.key;if(C(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.key===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}reset(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.key;if(C(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.key===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}}Io.type="element-highlight-by-key",Io.defaultOptions={highlightState:hn.highlight,blurState:hn.blur,trigger:"pointerover",triggerOff:"pointerout"};class Oo extends Va{constructor(t,e){super(t,e),this.type=Oo.type,this.handleStart=i=>{this.start(i.element)},this.handleReset=i=>{this.reset(i.element)},this.options=Object.assign({},Oo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}clearPrevElements(){const t=[this.options.highlightState,this.options.blurState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}start(t){if(t&&this._marks&&this._marks.includes(t.mark)){const e=t.groupKey;if(C(e))return;this._marks.forEach(i=>{i.elements.forEach(s=>{s.groupKey===e?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}}reset(t){t&&this._marks&&this._marks.includes(t.mark)&&this.clearPrevElements()}}Oo.type="element-highlight-by-group",Oo.defaultOptions={highlightState:hn.highlight,blurState:hn.blur,trigger:"pointerover",triggerOff:"pointerout"};class Lo extends Va{constructor(t,e){super(t,e),this.type=Lo.type,this.handleStart=i=>{var s,r;this.start((r=(s=i.detail)===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r.id)},this.handleReset=i=>{this.reset()},this.options=Object.assign({},Lo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getEvents(){return[{type:Ui.legendItemHover,handler:this.handleStart},{type:Ui.legendItemUnHover,handler:this.handleReset}]}getStartState(){return this.options.state}start(t){const e=t;if(C(e))return;const i=tS(this.options);this._marks.forEach(s=>{s.elements.forEach(r=>{i(r)===e?r.addState(this.options.state):r.removeState(this.options.state)})})}reset(){this._marks.forEach(t=>{t.elements.forEach(e=>{e.removeState(this.options.state)})})}}Lo.type="element-active-by-legend",Lo.defaultOptions={state:hn.active,filterType:"groupKey"};class Do extends Va{constructor(t,e){super(t,e),this.type=Do.type,this.handleStart=(i,s)=>{var r,a;this.start((a=(r=i.detail)===null||r===void 0?void 0:r.data)===null||a===void 0?void 0:a.id)},this.handleReset=i=>{this.reset()},this.options=Object.assign({},Do.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:Ui.legendItemHover,handler:this.handleStart},{type:Ui.legendItemUnHover,handler:this.handleReset}]}start(t){if(C(t))return;const e=tS(this.options);this._marks.forEach(i=>{i.elements.forEach(s=>{e(s)===t?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}reset(){const t=[this.options.blurState,this.options.highlightState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}}Do.type="element-highlight-by-legend",Do.defaultOptions={highlightState:hn.highlight,blurState:hn.blur,filterType:"groupKey"};class Fo extends Va{constructor(t,e){super(t,e),this.type=Fo.type,this.handleStart=(i,s)=>{if(this.options.shouldStart?this.options.shouldStart(i):this._filterByName(i)){const r=this._parseTargetKey(i,s);this.start(r)}},this.handleReset=i=>{(this.options.shouldReset?this.options.shouldReset(i):this._filterByName(i))&&this.reset()},this.options=Object.assign({},Fo.defaultOptions,e),this._marks=t.getMarksBySelector(this.options.selector)}getStartState(){return this.options.highlightState}getEvents(){return[{type:this.options.trigger,handler:this.handleStart},{type:this.options.triggerOff,handler:this.handleReset}]}_filterByName(t){var e;const i=H(this.options.graphicName);return((e=t==null?void 0:t.target)===null||e===void 0?void 0:e.name)&&i.includes(t.target.name)}_parseTargetKey(t,e){return this.options.parseData?this.options.parseData(t):t.target.type==="text"?t.target.attribute.text:null}start(t){if(C(t))return;const e=tS(this.options);this._marks.forEach(i=>{i.elements.forEach(s=>{e(s)===t?s.updateStates({[this.options.blurState]:!1,[this.options.highlightState]:!0}):s.updateStates({[this.options.blurState]:!0,[this.options.highlightState]:!1})})})}reset(){const t=[this.options.blurState,this.options.highlightState];this._marks.forEach(e=>{e.elements.forEach(i=>{i.removeState(t)})})}}Fo.type="element-highlight-by-name",Fo.defaultOptions={trigger:"pointerover",triggerOff:"pointerout",highlightState:hn.highlight,blurState:hn.blur,filterType:"groupKey"};function tw(n){if(n)return n.type===je.Band?n.bandwidth():n.type===je.Point?n.step():void 0}class DI{updateStates(t,e,i,s){return t&&t.length?(i&&s?e&&e.length?(this.toggleReverseStateOfElements(t,e,s),this.toggleStateOfElements(t,e,i)):this.addBothStateOfElements(t,i,s):i&&(e&&e.length?this.toggleStateOfElements(t,e,i):this.addStateOfElements(t,i)),t):null}toggleReverseStateOfElements(t,e,i){e.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.addState(i)}),t.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.removeState(i)})}toggleStateOfElements(t,e,i){e.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.removeState(i)}),t.forEach(s=>{i&&this._stateMarks[i]&&this._stateMarks[i].includes(s.mark)&&s.addState(i)})}addBothStateOfElements(t,e,i){this._marks.forEach(s=>{const r=i&&this._stateMarks[i]&&this._stateMarks[i].includes(s),a=e&&this._stateMarks[e]&&this._stateMarks[e].includes(s);(r||a)&&s.elements.forEach(o=>{t&&t.includes(o)?a&&o.addState(e):r&&o.addState(i)})})}addStateOfElements(t,e){this._marks.forEach(i=>{const s=e&&this._stateMarks[e]&&this._stateMarks[e].includes(i);s&&i.elements.forEach(r=>{t&&t.includes(r)&&s&&r.addState(e)})})}clearAllStates(t,e){this._statedElements&&this._statedElements.length&&this._marks.forEach(i=>{e&&this._stateMarks[e]&&this._stateMarks[e].includes(i)&&i.elements.forEach(s=>{s.removeState(e)}),t&&this._stateMarks[t]&&this._stateMarks[t].includes(i)&&i.elements.forEach(s=>{this._statedElements.includes(s)&&s.removeState(t)})})}}const XX=()=>{it.registerInteraction(Bo.type,Bo)},KX=()=>{$e(ma,DI),it.registerInteraction(ma.type,ma)},qX=()=>{$e(va,DI),it.registerInteraction(va.type,va)},ZX=()=>{it.registerInteraction(Io.type,Io)},JX=()=>{it.registerInteraction(Oo.type,Oo)},QX=()=>{it.registerInteraction(Lo.type,Lo)},t7=()=>{it.registerInteraction(Do.type,Do)},e7=()=>{it.registerInteraction(Fo.type,Fo)},ew=(n,t)=>Pu(n)?n.output():n&&Ct(n)?G(n.callback)?e=>n.callback(e,t):G(n.value)?n.value(t):n:n,i7=(n,t)=>n&&(Ct(n)?Object.keys(n).reduce((e,i)=>{const s=n[i];return e[i]=ew(s,t),e},{}):n.map(e=>ew(e,t)));let n7=-1;class Em extends Go{constructor(t){super(),this.spec={},this.references=new Map,this.targets=[],this.transforms=[],this.view=t,this.uid=++n7}parse(t){return this.id(t.id),this.name(t.name),this.depend(t.dependency),this}depend(t){var e;if(!((e=this.spec)===null||e===void 0)&&e.dependency){const s=H(this.spec.dependency).map(r=>at(r)?this.view.getGrammarById(r):r);this.detach(s)}this.spec.dependency=t;const i=H(t).map(s=>at(s)?this.view.getGrammarById(s):s);return this.attach(i),this.commit(),this}addEventListener(t,e,i){let s=e;return i&&i.trap===!1||(s=e,s.raw=e),i&&i.target&&(s.target=i.target),this.on(t,s),this}removeEventListener(t,e){return e?this.off(t,e):this.off(t),this}emit(t,...e){var i,s;return(s=(i=this.view)===null||i===void 0?void 0:i.emit)===null||s===void 0||s.call(i,t,...e),super.emit(t,...e)}emitGrammarEvent(t,...e){return super.emit(t,...e)}evaluateTransform(t,e,i){if(!t||!t.length)return e;let s=e,r=0;const a=t.length;for(;r!C(i)).forEach(i=>{var s;C(t)||(i.targets.includes(this)||i.targets.push(this),this.references.set(i,((s=this.references.get(i))!==null&&s!==void 0?s:0)+e))}),this}detach(t,e=1){return H(t).filter(i=>!C(i)).forEach(i=>{const s=this.references.get(i)-e;s>0?this.references.set(i,s-1):(this.references.delete(i),i.targets.includes(this)&&(i.targets=i.targets.filter(r=>r!==this)))}),this}detachAll(){this.references.forEach((t,e)=>{this.detach(e,t)})}link(t){this.grammarSource=t}run(){var t;const e=(t=this.grammarSource)===null||t===void 0?void 0:t.output(),i=this.parameters();return this.evaluate(e,i)}commit(){this.view.commit(this)}parameters(){const t={};return this.references.forEach((e,i)=>{P(i.id())&&(t[i.id()]=i.output())}),t}getSpec(){return this.spec}reuse(t){return this}clear(){this.spec=null,this.view=null}release(){this.clear()}setFunctionSpec(t,e){return C(this.spec[e])||this.detach(Gi(this.spec[e],this.view)),this.spec[e]=t,this.attach(Gi(t,this.view)),this.commit(),this}}const iw=(n,t,e)=>{var i;if(n==="callback"&&G(t))return{references:[],value:{callback:t,dependency:[]}};if(!C(t.data)){const s=e.getDataById(t.data);return{references:[s],value:s}}if(!C(t.customized)){const s=e.getCustomizedById(t.customized);return{references:[s],value:s}}if(!C(t.scale)){const s=e.getScaleById(t.scale);return{references:[s],value:s}}if(wX(t)){const s=Gi(t,e);return{references:s,value:t.callback?{value:t.callback,dependency:s}:(i=s==null?void 0:s[0])!==null&&i!==void 0?i:t}}return{value:t}},s7=(n,t,e)=>{if(C(t))return{value:t};if(V(t)){const i=t.map(s=>iw(n,s,e));return{references:i.reduce((s,r)=>(r.references&&s.concat(r.references),s),[]),value:i.map(s=>s.value)}}return iw(n,t,e)},r7=(n,t)=>{const e=it.getTransform(n.type);if(!e)return;const i={};let s=[];return Object.keys(n).forEach(r=>{var a;if(r==="type")return;const o=n[r];if(r==="dependency")return void((o==null?void 0:o.length)&&(s=s.concat(Zx(o,t))));const l=s7(r,o,t);l&&(!((a=l.references)===null||a===void 0)&&a.length&&(s=s.concat(l.references)),i[r]=l.value)}),{markPhase:e.markPhase,transform:e.transform,canProgressive:e.canProgressive,type:e.type,options:i,references:s}},Hf=(n,t)=>{if(n!=null&&n.length){const e=[];let i=[];return n.forEach(s=>{var r;const a=r7(s,t);a&&(!((r=a.references)===null||r===void 0)&&r.length&&(i=i.concat(a.references)),e.push(a))}),{transforms:e,refs:i}}return null},a7=(n,t={},e)=>{if(!at(n))return H(n);try{return H(JSON.parse(n))}catch{return[]}},nw={csv:PE,dsv:CE,tsv:EE,json:a7},o7=(n,t)=>{if(!t||!nw[t.type])return H(n);const e=t.type==="dsv"?{delimiter:t.delimiter}:{};return nw[t.type](n,e,new Ut(new Ra))};class l7 extends Em{constructor(t,e,i){super(t),this.grammarType="data",this.spec={},this._dataIDKey=`VGRAMMAR_DATA_ID_KEY_${this.uid}`,this._loadTasks=[],this._postFilters=[],this.ingest=s=>{const r=MX(s.format,this.parameters());return this._input=o7(s.values,r),this._input},this.load=s=>{if(s.values)return this.ingest(s)},this.relay=s=>s[0],this._loadTasks=[],C(e)||this.values(e,i)}parse(t){return super.parse(t),this._isLoaded=!1,this.source(t.source,t.format,!1),this.url(t.url,t.format,!1),this.values(t.values,t.format,!1),this.transform(t.transform),this.parseLoad(t),this.commit(),this}parseDataSource(t){const e=[],i=[],s=t.format?Gi(t.format,this.view)[0]:null;if(s&&e.push(s),t.values){const r=Gi(t.values,this.view)[0];r&&e.push(r),i.push({type:"ingest",transform:this.ingest,isRawOptions:!0,options:{values:t.values,format:t.format}})}else if(t.url){const r=Gi(t.url,this.view)[0];r&&e.push(r),i.push({type:"load",transform:this.load,options:{url:r??t.url,format:s??t.format}})}else if(t.source){const r=[];H(t.source).forEach(a=>{const o=Pu(a)?a:this.view.getDataById(a);o&&(e.push(o),r.push(o))}),r.length&&(i.push({type:"relay",transform:this.relay,options:r}),this.grammarSource=r[0])}return{transforms:i,refs:e}}evaluate(t,e){this.view.emit(ct.BEFORE_EVALUATE_DATA);const i=this._isLoaded?this.transforms:this._loadTasks.concat(this.transforms);this.grammarSource&&(this._input=t);const s=this.evaluateTransform(i,this._input,e),r=this._evaluateFilter(s,e);return this.setValues(r),this._isLoaded=!0,this.view.emit(ct.AFTER_EVALUATE_DATA),this}output(){return this._values}getDataIDKey(){return this._dataIDKey}values(t,e,i=!0){const s=Object.assign({},this.spec,{values:t,format:e});return C(t)||(s.url=void 0,s.source=void 0),i?this.parseLoad(s):this}url(t,e,i=!0){const s=Object.assign({},this.spec,{url:t,format:e});return C(t)||(s.values=void 0,s.source=void 0),i?this.parseLoad(s):this}source(t,e,i=!0){const s=Object.assign({},this.spec,{source:t,format:e});return C(t)||(s.values=void 0,s.url=void 0),i?this.parseLoad(s):this}parseLoad(t){this.detach(this.parseDataSource(this.spec).refs),this.spec=t;const e=this.parseDataSource(this.spec);return this.attach(e.refs),this._loadTasks=e.transforms,this._isLoaded=!1,this.commit(),this}setValues(t){this._values=H(t).map((e,i)=>{const s=e===Object(e)?e:{data:e};return s[this._dataIDKey]=i,s})}field(t){return this._values.map(e=>e[t])}transform(t){const e=Hf(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]),this.spec.transform=t;const i=Hf(this.spec.transform,this.view);return i&&(this.attach(i.refs),this.transforms=i.transforms),this.commit(),this}getValue(){return this._values}getInput(){return this._input}addDataFilter(t){return this._postFilters=this._postFilters.concat(H(t)),this._postFilters.sort((e,i)=>{var s,r;return((s=e.rank)!==null&&s!==void 0?s:0)-((r=i.rank)!==null&&r!==void 0?r:0)}),this}removeDataFilter(t){const e=H(t);return this._postFilters=this._postFilters.filter(i=>!e.includes(i)),this}_evaluateFilter(t,e){return this._postFilters.reduce((i,s)=>s.filter(i,e),t)}reuse(t){return t.grammarType!==this.grammarType||(this._isLoaded=!1,this._values=t.output()),this}clear(){super.clear(),this._input=null,this._values=null}}const fo="window",ao="view",h7="browser",d7={trap:!1},na="width",sa="height",Gl="viewWidth",Ul="viewHeight",Un="padding",eS="viewBox",Pd="autoFit";function c7(n){const t=Object.assign({defaults:{}},n),e=(i,s)=>{s.forEach(r=>{V(i[r])&&(i[r]=i[r].reduce((a,o)=>(a[o]=!0,a),{}))})};return e(t.defaults,["prevent","allow"]),e(t,[ao,fo]),t}function u7(n,t){const e=n.defaults,i=e.prevent,s=e.allow;return i!==!1&&s!==!0&&(i===!0||s===!1||(i?i[t]:!!s&&!s[t]))}function p7(n,t,e){const i=n==null?void 0:n[t];return!(i===!1||Ct(i)&&!i[e])}function Gp(n,t,e,i){let s,r;const a=n[t];for(;t>e&&(r=Math.floor((t-1)/2),s=n[r],a&&s&&i(a,s)<0);)n[t]=s,t=r;return n[t]=a}function Z0(n,t,e,i){const s=t,r=n.length,a=n[t];let o,l=2*t+1;for(;l=0&&(l=o),n[t]=n[l],l=2*(t=l)+1;return n[t]=a,Gp(n,t,s,i)}class g7{constructor(t){this.compare=t,this.nodes=[]}size(){return this.nodes.length}last(){return this.nodes[0]}validate(){for(let t=this.nodes.length-1;t>0;t-=1){const e=Math.floor((t-1)/2);if(this.compare(this.nodes[e],this.nodes[t])>0)return!1}return!0}push(t){if(this.nodes.includes(t)){const e=this.nodes.indexOf(t);return Gp(this.nodes,e,0,this.compare),Z0(this.nodes,e,null,this.compare)}return this.nodes.push(t),Gp(this.nodes,this.nodes.length-1,0,this.compare)}remove(t){if(this.nodes.includes(t)){const e=this.nodes.indexOf(t);this.nodes=this.nodes.slice(0,e).concat(this.nodes.slice(e+1)),Gp(this.nodes,e,0,this.compare),Z0(this.nodes,e,null,this.compare)}}pop(){const t=this.nodes.pop();let e;return this.nodes.length?(e=this.nodes[0],this.nodes[0]=t,Z0(this.nodes,0,null,this.compare)):e=t,e}clear(){this.nodes=[]}}class sw{constructor(t){this.list=[],this.ids={},this.idFunc=t||TG}add(t){const e=this.idFunc(t);return this.ids[e]||(this.ids[e]=1,this.list.push(t)),this}remove(t){const e=this.idFunc(t);return this.ids[e]&&(this.ids[e]=0,this.list=this.list.filter(i=>i!==t)),this}forEach(t,e){e?this.list.slice().reverse().forEach(t):this.list.forEach(t)}filter(t){return this.list.filter(t)}get length(){return this.list.length}getElementByIndex(t){return this.list[t]}}class f7{constructor(){this.grammars=[],this.logger=Lt.getInstance(),this._curRank=0,this._committed=new sw(t=>t.uid),this._heap=new g7((t,e)=>(t==null?void 0:t.qrank)-(e==null?void 0:e.qrank)),this._beforeRunner=null,this._afterRunner=null,this._updateCounter=0,this._finishFirstRender=!1}add(t){if(t)return this._setRankOfGrammar(t),this.commit(t),!this.grammars.includes(t)&&(this.grammars.push(t),!0)}remove(t){t&&(this._committed.remove(t),this._heap.remove(t),this.grammars=this.grammars.filter(e=>e!==t))}_setRankOfGrammar(t){t&&(t.rank=++this._curRank)}_reRank(t){const e=[t];for(;e.length;){const i=e.pop();this._setRankOfGrammar(i);const s=i.targets;s&&s.forEach(r=>{e.push(r),r===t&&this.logger.error("Cycle detected in dataflow graph.")})}}_enqueue(t){t&&(t.qrank=t.rank,this._heap.push(t))}_logGrammarRunInfo(t){if(this.logger.canLogError()){const e=[{key:"id",value:t.id()},{key:"name",value:t.name()}].reduce((i,s,r)=>C(s.value)?i:`${i}${r?" , ":""}${s.key}: ${s.value}`,"");this.logger.debug("Run Operator: ",t,e)}}hasCommitted(){return!!this._committed.length}commit(t){return this._committed.add(t),this}_beforeEvaluate(){this.grammars.forEach(t=>{t.targets.some(e=>(e==null?void 0:e.rank)<(t==null?void 0:t.rank))&&this._reRank(t)}),this._committed.forEach(t=>this._enqueue(t)),this._committed=new sw(t=>t.uid)}_enqueueTargets(t){t.targets&&t.targets.length&&this._finishFirstRender&&t.targets.forEach(e=>this._enqueue(e))}evaluate(){if(this._beforeRunner&&this._beforeRunner(this),!this._committed.length)return this.logger.info("Dataflow invoked, but nothing to do."),!1;this._updateCounter+=1;let t,e,i=0;for(this.logger.canLogInfo()&&(e=Date.now(),this.logger.debug(`-- START PROPAGATION (${this._updateCounter}) -----`)),this._beforeEvaluate();this._heap.size()>0;)t=this._heap.pop(),t&&(t.rank===t.qrank?(t.run(),this._logGrammarRunInfo(t),this._enqueueTargets(t),i+=1):this._enqueue(t));return this.logger.canLogInfo()&&(e=Date.now()-e,this.logger.info(`> ${i} grammars updated; ${e} ms`)),this._afterRunner&&this._afterRunner(this),this._finishFirstRender=!0,!0}runBefore(t){this._beforeRunner=t}runAfter(t){this._afterRunner=t}release(){this._heap&&(this._heap.clear(),this._heap=null),this.logger=null,this._committed=null}}const J0=(n,t,e,i,s)=>{const r=a=>{if(s||!a||i&&!i(a)||e.call(null,a),a.markType===rt.group){const o=a[t];o&&o.forEach(l=>{r(l)})}s&&(!a||i&&!i(a)||e.call(null,a))};r(n)};class _7{constructor(t){this.handleAfterNextRender=()=>{this._stage&&!this._viewOptions.disableDirtyBounds&&this._stage.enableDirtyBounds(),this._view.emit(ct.AFTER_VRENDER_DRAW),this._view.emit(ct.AFTER_VRENDER_NEXT_RENDER)},this._view=t}initialize(t,e,i,s){return this._width=t,this._height=e,this._viewOptions=i,this._eventConfig=s,this.initStage(),this}stage(){var t;return(t=this._stage)!==null&&t!==void 0?t:null}gestureController(){var t;return(t=this._gestureController)!==null&&t!==void 0?t:null}canvas(){return this._stage?this._stage.window.getNativeHandler().nativeCanvas:null}context(){return this._stage?this._stage.window.getContext().nativeContext:null}combineIncrementalLayers(){return this._stage&&RH(this._stage).then(()=>{this._stage&&this._stage.defaultLayer.combineSubLayer()}),this}background(t){if(this._stage)return this._stage.background=t,this}setDpr(t,e){var i,s;return(s=(i=this._stage)===null||i===void 0?void 0:i.setDpr)===null||s===void 0||s.call(i,t),e&&this.renderNextFrame(),this}shouldResize(t,e){return t!==this._width||e!==this._height}resize(t,e){return this._view.emit(ct.BEFORE_STAGE_RESIZE),this.shouldResize(t,e)&&(this._width=t,this._height=e,this._stage&&this._stage.resize(t,e)),this._view.emit(ct.AFTER_STAGE_RESIZE),this}setViewBox(t,e=!0){return this._stage?(!t||this._viewBox&&t.x1===this._viewBox.x1&&t.x2===this._viewBox.x2&&t.y1===this._viewBox.y1&&t.y2===this._viewBox.y2||(this._viewBox=t,this._stage.setViewBox(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1,e)),this):this}render(t=!1){return this._view.emit(ct.BEFORE_VRENDER_DRAW),this.initStage(),this._stage.disableDirtyBounds(),this._stage.afterNextRender(this.handleAfterNextRender),t&&(this._stage.render(),this._view.emit(ct.AFTER_VRENDER_DRAW)),this}renderNextFrame(){return this.initStage(),this._stage.renderNextFrame(),this}toCanvas(){return this._stage?this._stage.toCanvas():null}preventRender(t){this._stage&&this._stage.preventRender(t)}release(){var t;this._view.traverseMarkTree(e=>{e.release()}),this._dragController&&this._dragController.release(),this._gestureController&&this._gestureController.release(),this._stage!==((t=this._viewOptions)===null||t===void 0?void 0:t.stage)&&this._stage.release(),this._stage=null,this._layer=null,this._dragController=null,this._gestureController=null}createStage(){var t,e,i,s,r;this._view.emit(ct.BEFORE_CREATE_VRENDER_STAGE);const a=this._viewOptions,o=(t=a.stage)!==null&&t!==void 0?t:TN({width:this._width,height:this._height,renderStyle:a.renderStyle,viewBox:a.viewBox,dpr:a.dpr,canvas:a.renderCanvas,canvasControled:a.canvasControled,container:a.container,title:a.rendererTitle,beforeRender:a.beforeRender,afterRender:a.afterRender,disableDirtyBounds:!0,autoRender:!0,pluginList:a.pluginList,enableHtmlAttribute:a.enableHtmlAttribute,optimize:a.optimize,ticker:a.ticker,supportsTouchEvents:a.supportsTouchEvents,supportsPointerEvents:a.supportsPointerEvents,ReactDOM:a.ReactDOM});!((e=a.options3d)===null||e===void 0)&&e.enable&&o.set3dOptions(a.options3d),o.enableIncrementalAutoRender(),this._viewBox=a.viewBox,this._view.emit(ct.AFTER_CREATE_VRENDER_STAGE),this._view.emit(ct.BEFORE_CREATE_VRENDER_LAYER);const l=(i=a.layer)!==null&&i!==void 0?i:o.defaultLayer;if(this._view.emit(ct.AFTER_CREATE_VRENDER_LAYER),!((s=this._eventConfig)===null||s===void 0)&&s.drag&&(this._dragController=new EG(o)),(r=this._eventConfig)===null||r===void 0?void 0:r.gesture){const h=Ct(this._eventConfig.gesture)?this._eventConfig.gesture:{};this._gestureController=new BG(o,h)}return{stage:o,layer:l}}initStage(){if(!this._stage){const{stage:t,layer:e}=this.createStage();this._stage=t,this._layer=e;const i=this._view.background();this.background(i)}}}function m7(n){["touches","changedTouches","targetTouches"].forEach(e=>{n[e]&&n[e].length&&Array.from(n[e]).forEach(i=>{aw(i,rw(i),!1)})});const t=rw(n);return aw(n,t)}function rw(n){return C(n.offsetX)?C(n.x)?n.changedTouches&&n.changedTouches.length?b7(n):{canvasX:0,canvasY:0}:y7(n):v7(n)}function v7(n){return{canvasX:n.offsetX,canvasY:n.offsetY}}function y7(n){return{canvasX:n.x,canvasY:n.y}}function b7(n){return{canvasX:n.changedTouches[0].x,canvasY:n.changedTouches[0].y}}function aw(n,t,e=!0){return z(t.canvasX)&&Object.defineProperty(n,"canvasX",{value:t.canvasX,writable:!0}),z(t.canvasY)&&Object.defineProperty(n,"canvasY",{value:t.canvasY,writable:!0}),e&&z(t.clientX)&&Object.defineProperty(n,"clientX",{value:t.clientX,writable:!0}),e&&z(t.clientY)&&Object.defineProperty(n,"clientY",{value:t.clientY,writable:!0}),[t.canvasX,t.canvasY]}function Tb(n,t,e,i,s){if(s===fo){const r=t.changedTouches?t.changedTouches[0]:t;m7(r)}return t.element=e,t}class x7 extends Em{constructor(){super(...arguments),this.grammarType="signal",this.spec={value:null,update:null}}parse(t){return super.parse(t),this.value(t.value),this.update(t.update),this.commit(),this}evaluate(t,e){return this._signal=this.spec.update?He(this.spec.update,e,this._signal):this.spec.value,this.spec.value=this._signal,this}output(){return this._signal}getValue(){return this.output()}set(t){if(V(t)&&V(this.value)&&t.length===this.value.length){for(let e=0;e{var i,s,r,a,o;return[{id:na,value:(i=n[na])!==null&&i!==void 0?i:0},{id:sa,value:(s=n[sa])!==null&&s!==void 0?s:0},{id:Un,value:ra((a=(r=n[Un])!==null&&r!==void 0?r:t[Un])!==null&&a!==void 0?a:e==null?void 0:e.padding)},{id:Gl,update:{callback:(l,h)=>{const d=ra(h[Un]);return h[na]-d.left-d.right},dependency:[na,Un]}},{id:Ul,update:{callback:(l,h)=>{const d=ra(h[Un]);return h[sa]-d.top-d.bottom},dependency:[sa,Un]}},{id:eS,update:{callback:(l,h)=>{const d=ra(h[Un]);return(l||new di).setValue(d.left,d.top,d.left+h[Gl],d.top+h[Ul])},dependency:[Gl,Ul,Un]}},{id:Pd,value:(o=n[Pd])!==null&&o!==void 0?o:t[Pd]}]},ra=n=>{var t,e,i,s;return nt(n)?{top:n,bottom:n,left:n,right:n}:{top:(t=n==null?void 0:n.top)!==null&&t!==void 0?t:0,bottom:(e=n==null?void 0:n.bottom)!==null&&e!==void 0?e:0,left:(i=n==null?void 0:n.left)!==null&&i!==void 0?i:0,right:(s=n==null?void 0:n.right)!==null&&s!==void 0?s:0}},k7=n=>{var t;const e=(i,s)=>{var r,a;i.group=s;const o=(r=i.id)!==null&&r!==void 0?r:"VGRAMMAR_MARK_"+ ++S7;i.id=o,((a=i.marks)!==null&&a!==void 0?a:[]).forEach(l=>e(l,o))};return((t=n.marks)!==null&&t!==void 0?t:[]).forEach(i=>e(i,"root")),n},T7=n=>{var t,e,i,s,r;const{reuse:a=vX,morph:o=yX,morphAll:l=bX,animation:h={},enableExitAnimation:d=SX}=n??{};return{reuse:a,morph:o,morphAll:l,animation:{easing:(t=h.easing)!==null&&t!==void 0?t:Ab,delay:(e=h.delay)!==null&&e!==void 0?e:xb,duration:(i=h.duration)!==null&&i!==void 0?i:RI,oneByOne:(s=h.oneByOne)!==null&&s!==void 0?s:Sb,splitPath:(r=h.splitPath)!==null&&r!==void 0?r:xX},enableExitAnimation:d}},M7=n=>C(n.markId)?t=>t&&t.mark.id()===n.markId:C(n.markName)?t=>t&&t.mark.name()===n.markName:C(n.type)?t=>t&&t.mark.markType===n.type:()=>!0,w7=(n,t)=>t&&t.debounce?Xs(n,t.debounce):t&&t.throttle?za(n,t.throttle):n,C7="@",P7="#",E7=(n,t=ao)=>{const e={},i=n.split(":");if(i.length===2){const[s,r]=i;s[0]==="#"?(e.markId=s.slice(1),e.source=t):s[0]==="@"?(e.markName=s.slice(1),e.source=t):BI(s)?(e.markType=s,e.source=t):e.source=s===fo?fo:t,e.type=r}else i.length===1&&(e.type=n,e.source=t);return e};function R7(n){n.mode&&Rt.setEnv(n.mode,n.modeParams||{})}class B7 extends OI{constructor(t){super(t),this.getStateAttrs=(e,i)=>{var s,r,a,o;const l=!C((s=this.runtimeStatesEncoder)===null||s===void 0?void 0:s[e]),h=l?Object.assign(Object.assign({},(r=this.mark.getSpec().encode)===null||r===void 0?void 0:r[e]),this.runtimeStatesEncoder[e]):(a=this.mark.getSpec().encode)===null||a===void 0?void 0:a[e],d={};if(!h)return d;if(G(h))return d.attributes=h(this.getDatum(),this,e,i),d;if(!l&&(!((o=this.graphicItem.glyphStates)===null||o===void 0)&&o[e]))return this.graphicItem.glyphStates[e];if(h){const c=this.items[0],u=[Object.assign({},c,{nextAttrs:{}})];return lr(this,u,h,this.mark.parameters()),this.coordinateTransformEncode(u),d.attributes=u[0].nextAttrs,this.graphicItem.glyphStates?this.graphicItem.glyphStates[e]||(this.graphicItem.glyphStates[e]=d):this.graphicItem.glyphStates={[e]:d},d}return d},this.glyphMeta=this.mark.getGlyphMeta()}getGlyphGraphicItems(){return this.glyphGraphicItems}initGraphicItem(t={}){if(this.graphicItem)return;this.graphicItem=this.mark.addGraphicItem(t,this.groupKey),this.graphicItem[Eo]=this,this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!1);const e=this.glyphMeta.getMarks();this.glyphGraphicItems={},this.graphicItem.getSubGraphic().forEach(i=>{const s=e[i.name];this.glyphGraphicItems[i.name]=i,i.onBeforeAttributeUpdate=r=>this.mark?jf(s,r,this,i.name):r}),this.clearGraphicAttributes()}useStates(t,e){if(!this.graphicItem)return!1;this.mark.emit(ct.BEFORE_ELEMENT_STATE,{states:t},this),this.states=t.slice();const i=be(e)?e:this.mark.animate.getAnimationConfigs("state").length!==0;return this.graphicItem.glyphStateProxy=this.getStateAttrs,this.graphicItem.useStates(this.states,i),this.mark.emit(ct.AFTER_ELEMENT_STATE,{states:t},this),!0}encodeGraphic(){this.coordinateTransformEncode(this.items);const t=this.transformElementItems(this.items,this.mark.markType),e=!this.graphicItem;this.graphicItem||this.initGraphicItem(),this.diffState===qt.enter||e?(this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!0),this.applyGraphicAttributes(t),this.graphicItem.onBeforeAttributeUpdate=this._onGlyphAttributeUpdate(!1)):this.applyGraphicAttributes(t),this.diffState!==qt.enter&&this.diffState!==qt.update||!this.states.length||(Object.values(this.glyphGraphicItems).forEach(i=>{i.states={}}),this.useStates(this.states)),this.items.map(i=>{i.nextAttrs={}})}encodeCustom(t){var e;let i={};const s=this.glyphMeta.getChannelEncoder(),r=this.glyphMeta.getFunctionEncoder();if(r&&(i=r.call(null,Object.assign({},(e=this.graphicItem)===null||e===void 0?void 0:e.attribute,t),this.getDatum(),this,this.mark.getGlyphConfig())),s){let a;Object.keys(s).forEach(o=>{var l;if(!C(t[o])){a||(a=Object.assign({},(l=this.graphicItem)===null||l===void 0?void 0:l.attribute,t));const h=s[o].call(null,o,t[o],a,this.getDatum(),this,this.mark.getGlyphConfig());Object.keys(h??{}).forEach(d=>{var c;i[d]=Object.assign((c=i[d])!==null&&c!==void 0?c:{},h[d])})}})}return i}encodeDefault(){const t={};if(this.glyphMeta.getDefaultEncoder()){const e=this.glyphMeta.getDefaultEncoder().call(null,this.getDatum(),this,this.mark.getGlyphConfig());Object.assign(t,e)}return t}_onGlyphAttributeUpdate(t=!1){return e=>{if(!this.mark)return e;const i=this.glyphMeta.getMarks(),s=jf(this.mark.getAttributeTransforms(),e,this),r=t?this.encodeDefault():null,a=this.encodeCustom(e);return Object.keys(i).forEach(o=>{const l=i[o],h=this.glyphGraphicItems[o],d=a==null?void 0:a[o],c=Object.assign({},d);if(t){const f=r==null?void 0:r[o];Object.keys(f??{}).forEach(_=>{cs(this.items[0].nextAttrs,_)||cs(c,_)||(c[_]=f[_])})}const u=Object.assign({},FX(l,e),c),p=this._generateGlyphItems(l,this.items,u);this.coordinateTransformEncode(p);const g=this.transformElementItems(p,l);this.applyGlyphGraphicAttributes(g,o,h),l===rt.shape&&(h.datum=p[0].datum)}),s}}_generateGlyphItems(t,e,i){const s=e.map(r=>Object.assign({},r,{nextAttrs:i}));return EI.includes(t)&&this.mark.getSpec().enableSegments&&s.forEach((r,a)=>{r.nextAttrs=Object.assign({},e[a].nextAttrs,i)}),s}getGraphicAttribute(t,e=!1,i){if(!this.graphicItem)return;const s=this.getPrevGraphicAttributes(i);return e&&cs(s,t)?s[t]:(i?this.glyphGraphicItems[i]:this.graphicItem).attribute[t]}setGraphicAttribute(t,e,i=!0,s){if(!this.graphicItem)return;const r=s?this.glyphGraphicItems[s]:this.graphicItem,a=this.getFinalGraphicAttributes(s),o=this.getPrevGraphicAttributes(s);i&&(a[t]=e),cs(o,t)||(o[t]=r.attribute[t]),r.setAttribute(t,e)}setGraphicAttributes(t,e=!0,i){if(!this.graphicItem)return;const s=i?this.glyphGraphicItems[i]:this.graphicItem,r=this.getFinalGraphicAttributes(i),a=this.getPrevGraphicAttributes(i);Object.keys(t).forEach(o=>{e&&(r[o]=t[o]),cs(a,o)||(a[o]=s.attribute[o])}),s.setAttributes(t)}diffAttributes(t,e){const i={},s=this.getFinalGraphicAttributes(e);for(const r in t)rm(r,s,t)||(i[r]=t[r]);return i}applyGlyphGraphicAttributes(t,e,i){var s,r;if(this.mark.needAnimate()){const a=this.diffAttributes(t,e),o=(s=this.getPrevGraphicAttributes(e))!==null&&s!==void 0?s:{},l=(r=this.getFinalGraphicAttributes(e))!==null&&r!==void 0?r:{};Object.keys(a).forEach(h=>{o[h]=i.attribute[h],l[h]=a[h]}),this.setNextGraphicAttributes(a,e),this.setPrevGraphicAttributes(o,e),this.setFinalGraphicAttributes(l,e),i.setAttributes(a)}else i.setAttributes(t)}getFinalGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).finalAttrs}setFinalGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).finalAttrs=t}getPrevGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).prevAttrs}setPrevGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).prevAttrs=t}getNextGraphicAttributes(t){return(t?this.glyphGraphicItems[t]:this.graphicItem).nextAttrs}setNextGraphicAttributes(t,e){(e?this.glyphGraphicItems[e]:this.graphicItem).nextAttrs=t}clearChangedGraphicAttributes(){this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null),Object.keys(this.glyphGraphicItems).forEach(t=>{this.setPrevGraphicAttributes(null,t),this.setNextGraphicAttributes(null,t)})}clearGraphicAttributes(){this.setPrevGraphicAttributes(null),this.setNextGraphicAttributes(null),this.setFinalGraphicAttributes(null),Object.keys(this.glyphGraphicItems).forEach(t=>{this.setPrevGraphicAttributes(null,t),this.setNextGraphicAttributes(null,t),this.setFinalGraphicAttributes(null,t)})}remove(){this.glyphGraphicItems=null,super.remove()}release(){this.glyphGraphicItems&&(Object.values(this.glyphGraphicItems).forEach(t=>{t[Eo]=null}),this.glyphGraphicItems=null),super.release()}}const Up=n=>n.markType===rt.glyph?new B7(n):new OI(n);function mr(n,t,e){const i=new Map;if(!n||n.length===0)return{keys:[],data:i};if(!t)return i.set(vn,e?n.slice().sort(e):n.slice()),{keys:mX,data:i};const s=Nl(t);if(n.length===1){const a=s(n[0]);return i.set(a,[n[0]]),{keys:[a],data:i}}const r=new Set;return n.forEach(a=>{var o;const l=s(a),h=(o=i.get(l))!==null&&o!==void 0?o:[];h.push(a),i.set(l,h),r.add(l)}),e&&r.forEach(a=>{i.get(a).sort(e)}),{keys:Array.from(r),data:i}}class iS{constructor(t,e,i){this.prevData=t!=null&&t.length?mr(t,e??null,i):null}setCurrentData(t){this.currentData=t}getCurrentData(){return this.currentData}doDiff(){if(this.callback)if(this.currentData&&this.prevData){const t=new Map(this.prevData.data);this.currentData.keys.forEach(e=>{this.callback(e,this.currentData.data.get(e),t.get(e)),t.delete(e)}),this.prevData.keys.forEach(e=>{t.has(e)&&this.callback(e,null,t.get(e))})}else this.currentData?this.currentData.keys.forEach(t=>{this.callback(t,this.currentData.data.get(t),null)}):this.prevData&&this.prevData.keys.forEach(t=>{this.callback(t,null,this.prevData.data.get(t))})}setCallback(t){this.callback=t}updateToCurrent(){this.prevData=this.currentData,this.currentData=null}reset(){this.prevData=null}}function I7(n,t,e){const i={enter:[],exit:[],update:[]},s=new iS(n,e);return s.setCallback((r,a,o)=>{C(a)?i.exit.push({prev:o[0]}):C(o)?i.enter.push({next:a[0]}):i.update.push({next:a[0],prev:o[0]})}),s.setCurrentData(mr(t,e)),s.doDiff(),i}function O7(n,t,e){const i={enter:[],exit:[],update:[]},s=new iS(n,e);return s.setCallback((r,a,o)=>{C(a)?i.exit.push({prev:o}):C(o)?i.enter.push({next:a}):i.update.push({next:a,prev:o})}),s.setCurrentData(mr(t,e)),s.doDiff(),i}const FI=(n,t)=>{if(!n)return null;if(n.from){const e=n.from,i=Object.keys(e);i.forEach(r=>{C(e[r])&&delete e[r]});const s=Ff(i,t.mark.markType)&&!P(e.segments);if(s){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));n.from=t.transformElementItems(r,t.mark.markType,s)}}if(n.to){const e=n.to,i=Object.keys(e);i.forEach(r=>{C(e[r])&&delete e[r]});const s=Ff(i,t.mark.markType)&&!P(e.segments);if(s){const r=t.items.map(a=>Object.assign({},a,{nextAttrs:Object.assign({},e)}));n.to=t.transformElementItems(r,t.mark.markType,s)}}return n};function L7(n,t,e,i){const s=G(t.options)?t.options.call(null,n.getDatum(),n,i):t.options;if(!t.type||!it.getAnimationType(t.type))return null;const r=it.getAnimationType(t.type)(n,s,e);return FI(r,n)}const lw=(n,t,e,i,s)=>G(e)?e(n.getDatum(),n,s):e;function D7(n,t,e,i){const s=t.channel;let r=null;return V(s)?r=s.reduce((a,o)=>(a.from[o]=n.getGraphicAttribute(o,!0),a.to[o]=n.getGraphicAttribute(o,!1),a),{from:{},to:{}}):Ct(s)&&(r=Object.keys(s).reduce((a,o)=>{var l,h;const d=!C((l=s[o])===null||l===void 0?void 0:l.from),c=!C((h=s[o])===null||h===void 0?void 0:h.to);return(d||c)&&(a.from[o]=d?lw(n,0,s[o].from,0,i):void 0,a.to[o]=c?lw(n,0,s[o].to,0,i):n.getGraphicAttribute(o,!1)),a},{from:{},to:{}})),FI(r,n)}class F7 extends dn{constructor(t,e,i,s,r){super(t,e,i,s,r),this._interpolator=r==null?void 0:r.interpolator,this._element=r==null?void 0:r.element}onBind(){var t,e;this.from=(t=this.from)!==null&&t!==void 0?t:{},this.to=(e=this.to)!==null&&e!==void 0?e:{}}getEndProps(){return this.to}onUpdate(t,e,i){this._interpolator&&this._element&&this._interpolator.call(this,e,this.from,this.to,i,this._element.getDatum(),this._element,this.params.parameters)}}class z7 extends dn{getEndProps(){return this.to}onBind(){var t;const e=(t=this.target.constructor.NOWORK_ANIMATE_ATTR)!==null&&t!==void 0?t:Li,i=Object.keys(e).filter(o=>e[o]!==0);this.subAnimate.animate.preventAttrs(i);const s=Object.assign({},this.from),r=Object.assign({},this.to),a=[];Object.keys(r).forEach(o=>{i.includes(o)?(s[o]=r[o],this.from[o]=r[o]):C(s[o])?s[o]=this.target.getComputedAttribute(o):a.push(o)}),this.target.animates.forEach(o=>{o!==this.subAnimate.animate&&o.preventAttrs(a)}),this._fromAttribute=s,this._toAttribute=r}onStart(){if(this._fromAttribute){const t={};Object.keys(this._fromAttribute).forEach(e=>{this.subAnimate.animate.validAttr(e)&&(t[e]=this._fromAttribute[e])}),this.target.setAttributes(t,!1,{type:we.ANIMATE_UPDATE,animationState:{ratio:0,end:!1}})}}onEnd(){if(this._toAttribute){const t={};Object.keys(this._toAttribute).forEach(e=>{this.subAnimate.animate.validAttr(e)&&(t[e]=this._toAttribute[e])}),this.target.setAttributes(t,!1,{type:we.ANIMATE_END})}}update(t,e,i){this.updateCount===0&&this.onFirstRun(),this.updateCount+=1;const s=this.step.getLastProps();Object.keys(s).forEach(r=>{this.subAnimate.animate.validAttr(r)&&(i[r]=s[r])}),this.onUpdate(t,e,i),t&&this.onEnd()}onUpdate(t,e,i){this.target.stepInterpolate(this.subAnimate,this.subAnimate.animate,i,this.step,e,t,this._toAttribute,this._fromAttribute)}}mg.mode|=th.SET_ATTR_IMMEDIATELY;let j7=0;const hw=n=>{var t;if(C(n)||C(n.prototype))return!1;const e=(t=n.prototype)!==null&&t!==void 0?t:{};return e instanceof dn||"onBind"in e&&"onStart"in e&&"onEnd"in e&&"onUpdate"in e};class H7{constructor(t,e,i){this.id=j7++,this.isAnimating=!1,this.runnings=[],this.element=t,this.animationOptions=i,this.unit=e}callback(t){return this.callbackFunction=t,this}animate(t,e){return this.isAnimating=!0,this.animateElement(t,e),this.runnings.length===0&&this.animationEnd(),this}stop(t="end",e=!0){return this.runnings.forEach(i=>i.stop(t)),this.animationEnd(e),this}pause(){return this.runnings.forEach(t=>t.pause()),this}resume(){return this.runnings.forEach(t=>t.resume()),this}startAt(t){return this.runnings.forEach(e=>{const i=this.unit.initialDelay;e.startAt(i+t)}),this}getTotalAnimationTime(){var t;const e=this.unit.initialDelay+this.unit.loopDuration*this.unit.loopCount;return(t=this.unit.totalTime)!==null&&t!==void 0?t:e}getEndAttributes(){return this.runnings.reduce((t,e)=>Object.assign(t,e.getEndProps()),{})}animationEnd(t=!0){var e;this.isAnimating=!1,this.runnings=null,t&&((e=this.callbackFunction)===null||e===void 0||e.call(null))}animateElement(t,e){const i=this.element.getGraphicItem();if(!i)return;const s=i.animate();this.runnings.push(s),s.startAt(this.unit.initialDelay),s.wait(this.unit.loopDelay),this.unit.timeSlices.forEach(r=>{this.animateTimeSlice(s,r,t,e)}),s.wait(this.unit.loopDelayAfter),s.loop(this.unit.loopCount-1),z(this.unit.totalTime)&&setTimeout(()=>{s&&s.stop("end")},this.unit.totalTime),s.onEnd(()=>{this.runnings=this.runnings.filter(r=>r!==s),this.runnings.length===0&&this.animationEnd()})}animateTimeSlice(t,e,i,s){const r=e.delay,a=e.delayAfter,o=e.duration,l=e.effects;if(r>0&&t.wait(r),l.length<0)t.wait(o);else{const h=l.map((d,c)=>{var u;const p=(u=d.type?L7(this.element,d,i,s):d.channel?D7(this.element,d,i,s):void 0)!==null&&u!==void 0?u:{},g=p.custom||(d==null?void 0:d.custom),f=(p==null?void 0:p.customParameters)||(d==null?void 0:d.customParameters);p.from&&Object.keys(p.from).length&&this.unit&&this.animationOptions.timeline.controlOptions.immediatelyApply&&this.element.mark.markType!=="component"&&this.element.getGraphicItem().setAttributes(p.from);const _=hw(g);return!C(g)&&!hw(g)?new F7(p.from,p.to,o,d.easing,{interpolator:g,element:this.element,parameters:f}):_?new g(p.from,p.to,o,d.easing,f):p.to?new z7(p.from,p.to,o,d.easing):void 0}).filter(d=>!C(d));h.length===1?t.play(h[0]):h.length>1&&t.play(new Kj(o,h))}a>0&&t.wait(a)}}function V7(n){var t,e,i,s,r,a,o,l,h,d,c,u;if(C(n.timeSlices)){const g=n;return{startTime:(t=g.startTime)!==null&&t!==void 0?t:XM,totalTime:g.totalTime,oneByOne:(e=g.oneByOne)!==null&&e!==void 0?e:Sb,loop:(i=g.loop)!==null&&i!==void 0?i:qM,controlOptions:Y({},ZM,(s=g.controlOptions)!==null&&s!==void 0?s:{}),timeSlices:[{duration:(r=g.duration)!==null&&r!==void 0?r:RI,delay:(a=g.delay)!==null&&a!==void 0?a:xb,delayAfter:(o=g.delayAfter)!==null&&o!==void 0?o:KM,effects:[{type:g.type,channel:g.channel,custom:g.custom,easing:(l=g.easing)!==null&&l!==void 0?l:Ab,customParameters:g.customParameters,options:g.options}]}]}}const p=H(n.timeSlices).filter(g=>g.effects&&H(g.effects).filter(f=>f.channel||f.type).length);if(p.length)return{startTime:(h=n.startTime)!==null&&h!==void 0?h:XM,totalTime:n.totalTime,oneByOne:(d=n.oneByOne)!==null&&d!==void 0?d:Sb,loop:(c=n.loop)!==null&&c!==void 0?c:qM,controlOptions:Y({},ZM,(u=n.controlOptions)!==null&&u!==void 0?u:{}),timeSlices:p.map(g=>{var f,_;return{duration:g.duration,delay:(f=g.delay)!==null&&f!==void 0?f:xb,delayAfter:(_=g.delayAfter)!==null&&_!==void 0?_:KM,effects:H(g.effects).filter(m=>m.channel||m.type).map(m=>{var y;return{type:m.type,channel:m.channel,custom:m.custom,easing:(y=m.easing)!==null&&y!==void 0?y:Ab,customParameters:m.customParameters,options:m.options}})}}),partitioner:n.partitioner,sort:n.sort}}function dw(n){let t=[];return Object.keys(n).forEach(e=>{t=t.concat(zI(e,n[e]))}),t}function zI(n,t,e=0){const i=[];let s=e;return H(t).forEach(r=>{var a;const o=V7(r);o&&(i.push({state:n,id:(a=o.id)!==null&&a!==void 0?a:`${n}-${s}`,timeline:o,originConfig:r}),s+=1)}),i}function Gr(n,t,e){return G(n)?n.call(null,t.getDatum(),t,e):n}class cw{constructor(t){this.parallelArrangers=[this],this.totalTime=0,this.startTime=0,this.endTime=0,this.animators=t.filter(e=>!C(e)),this.totalTime=this.animators.reduce((e,i)=>Math.max(e,i.getTotalAnimationTime()),0)}parallel(t){const e=Array.from(new Set(this.parallelArrangers.concat(t.parallelArrangers)));return e.forEach(i=>{i.parallelArrangers=e}),this.arrangeTime(),this}after(t){return this.afterArranger=t,this.arrangeTime(),this}arrangeTime(){const t=this.parallelArrangers.reduce((i,s)=>Math.max(i,s.totalTime),this.totalTime),e=this.parallelArrangers.reduce((i,s)=>{var r,a;return Math.max(i,(a=(r=s.afterArranger)===null||r===void 0?void 0:r.endTime)!==null&&a!==void 0?a:0)},0);this.parallelArrangers.forEach(i=>{i.startTime=e,i.endTime=e+t,i.animators.forEach(s=>{s.startAt(e)})})}}class uw{constructor(t,e){this.state=null,this.immediateConfigs=[],this.isEnabled=!0,this.disabledStates=[],this.animators=new Map,this.elementRecorder=new WeakMap,this.timelineCount={},this.mark=t,this.configs=dw(e??{})}getAnimationConfigs(t){var e;return this.isEnabled?((e=this.configs)!==null&&e!==void 0?e:[]).filter(i=>i.state===t):[]}updateConfig(t){this.configs=dw(t??{})}updateState(t){this.state=t}animate(){if(!this.isEnabled||!this.configs||!this.configs.length)return;const t=this.mark.getAllElements(),e=this.mark.parameters();return t.forEach(i=>{var s;i.isReserved&&i.diffState!==qt.exit&&(i.isReserved=!1);const r=(s=this.elementRecorder.get(i))===null||s===void 0?void 0:s.prevState;this.configs.some(a=>r!==i.diffState&&a.state===r&&a.timeline.controlOptions.stopWhenStateChange)&&this.clearElementAnimation(i,!1)}),this.configs.forEach(i=>{this.animateByTimeline(i,t,e)}),this.mark.cleanExitElements(),this}runAnimationByState(t){if(!this.isEnabled)return;const e=this.configs.filter(a=>a.state===t),i=this.mark.getAllElements(),s=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,s,!0)),[]);return new cw(r)}stopAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.stop()),this}pauseAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.pause()),this}resumeAnimationByState(t){const e=this.animators.get(t);return e&&e.forEach(i=>i.resume()),this}run(t){if(!this.isEnabled)return;const e=zI(YM,t,this.immediateConfigs.length);this.immediateConfigs=this.immediateConfigs.concat(e);const i=this.mark.getAllElements(),s=this.mark.parameters(),r=e.reduce((a,o)=>a.concat(this.animateByTimeline(o,i,s,!0)),[]);return new cw(r)}stop(){return this.animators.forEach(t=>{t.forEach(e=>e.stop())}),this}pause(){return this.animators.forEach(t=>t.forEach(e=>e.pause())),this}resume(){return this.animators.forEach(t=>t.forEach(e=>e.resume())),this}reverse(){return this}restart(){return this}record(){return this}recordEnd(){return this}isAnimating(){let t=!1;return this.animators.forEach(e=>{t=t||e.some(i=>i.isAnimating)}),t}isElementAnimating(t){var e;const i=(e=this.elementRecorder.get(t))===null||e===void 0?void 0:e.count;return C(i)||Object.values(i).every(s=>s===0)}getAnimatorCount(){let t=0;return this.animators.forEach(e=>t+=e.length),t}getAllAnimators(){const t=[];return this.animators.forEach(e=>{t.push(...e)}),t}getElementAnimators(t,e){var i;const s=H(t);let r=[];return e?r=(i=this.animators.get(e))!==null&&i!==void 0?i:[]:this.animators.forEach(a=>{r=r.concat(a)}),r.filter(a=>s.includes(a.element))}enable(){return this.isEnabled=!0,this}disable(){return this.isEnabled=!1,this.stop(),this.animators.clear(),this}enableAnimationState(t){const e=H(t);return this.disabledStates=this.disabledStates.filter(i=>!e.includes(i)),this}disableAnimationState(t){const e=H(t);return this.disabledStates=this.disabledStates.concat(e),this}release(){this.stop(),this.animators.clear(),this.configs=null,this.animators=null,this.elementRecorder=null,this.timelineCount=null}animateByTimeline(t,e,i,s=!1){var r;const a=[],o=e.filter(l=>{const h=!(l.isReserved&&l.diffState===qt.exit),d=this.getAnimationState(l),c=!this.disabledStates.includes(d),u=s||d===t.state,p=!t.timeline.partitioner||t.timeline.partitioner(l.getDatum(),l,i);return h&&c&&u&&p});if(o.length){C(this.timelineCount[t.id])&&(this.timelineCount[t.id]=0),t.timeline.sort&&o.sort((h,d)=>t.timeline.sort(h.getDatum(),d.getDatum(),h,d,i));const l={width:this.mark.view.width(),height:this.mark.view.height(),group:(r=this.mark.group)!==null&&r!==void 0?r:null,mark:this.mark,view:this.mark.view,elementCount:o.length,elementIndex:0};o.forEach((h,d)=>{l.elementIndex=d;const c=Object.assign({[AX]:l},i),u=this.getAnimationUnit(t.timeline,h,d,o.length,c);a.push(this.animateElement(t,u,h,l,c))})}return a}animateElement(t,e,i,s,r){var a,o;const l=new H7(i,e,t);if(l.animate(s,r),!l.isAnimating)return;i.diffState===qt.exit&&(i.isReserved=!0);const h=this.timelineCount[t.id]===0;this.timelineCount[t.id]+=1;const d=(a=this.elementRecorder.get(i))!==null&&a!==void 0?a:{prevState:t.state,count:{}};d.prevState=t.state,d.count[t.state]=((o=d.count[t.state])!==null&&o!==void 0?o:0)+1,this.elementRecorder.set(i,d);const c=this.animators.get(t.state);c?c.push(l):this.animators.set(t.state,[l]),l.callback(()=>{this.handleAnimatorEnd(l)});const u={mark:this.mark,animationState:t.state,animationConfig:t.originConfig};return h&&this.mark.emit(ct.ANIMATION_START,u),this.mark.emit(ct.ELEMENT_ANIMATION_START,u,i),l}getAnimationState(t){const e=He(this.state,this.mark.parameters(),t.getDatum(),t);return e??t.diffState}getAnimationUnit(t,e,i,s,r){const a=[],o=Gr(t.startTime,e,r),l=Gr(t.totalTime,e,r),h=Gr(t.oneByOne,e,r),d=Gr(t.loop,e,r);let c=0;t.timeSlices.forEach(p=>{var g;const f=Gr(p.delay,e,r),_=Gr(p.delayAfter,e,r),m=(g=Gr(p.duration,e,r))!==null&&g!==void 0?g:l/s,y=H(p.effects).map(b=>Object.assign({},b,{customParameters:Gr(b.customParameters,e,r)}));a.push({effects:y,duration:m,delay:f,delayAfter:_}),c+=f+m+_});const u=nt(h)?h:h===!0?c:0;return{initialDelay:o,loopCount:nt(d)?d:d===!0?1/0:1,loopDelay:u*i,loopDelayAfter:u*(s-i-1),loopAnimateDuration:c,loopDuration:c+u*(s-1),totalTime:l,timeSlices:a}}clearElementAnimation(t,e=!0){this.animators.forEach(i=>{i.forEach(s=>{s.element===t&&(s.animationOptions.state===qt.exit?s.stop("start",!1):s.stop("end",!1),this.handleAnimatorEnd(s,e))})}),this.elementRecorder.delete(t)}clearAllElements(){const t=this.mark.getAllElements();t&&t.forEach((e,i)=>{this.clearElement(e,i===t.length-1)})}clearElement(t,e=!0){this.clearElementAnimation(t),t.getGraphicItem()&&(t.clearGraphicAttributes(),t.diffState===qt.exit&&(t.isReserved=!1),e&&this.mark.cleanExitElements())}handleAnimatorEnd(t,e=!0){const i=t.element,s=t.animationOptions,r=s.state,a=r===YM,o=this.elementRecorder.get(i).count;o[r]-=1,this.animators.set(r,this.animators.get(r).filter(c=>c!==t)),this.animators.get(r).length===0&&this.animators.delete(r),this.timelineCount[s.id]-=1;const l=this.timelineCount[s.id]===0,h=a?this.immediateConfigs.find(c=>c.id===s.id).originConfig:this.configs.find(c=>c.id===s.id).originConfig;l&&(delete this.timelineCount[s.id],a&&(this.immediateConfigs=this.immediateConfigs.filter(c=>c.id!==s.id))),e&&(Object.keys(this.timelineCount).length===0?this.clearAllElements():r===qt.exit&&o[qt.exit]===0&&this.clearElement(i));const d={mark:this.mark,animationState:r,animationConfig:h};l&&this.mark.emit(ct.ANIMATION_END,d),this.mark.emit(ct.ELEMENT_ANIMATION_END,d,i)}}class Ih extends Em{constructor(t,e,i){super(t),this.grammarType="mark",this.elements=[],this.elementMap=new Map,this.isUpdated=!0,this._isReentered=!1,this.animate=new uw(this,{}),this.differ=new iS([]),this.markType=e,this.spec.type=e,this.spec.encode={update:{}},this.spec.group=i,i&&(this.group=i,this.attach(i),i.appendChild(this))}parse(t){var e,i,s;if(super.parse(t),this.spec.group){const a=at(this.spec.group)?this.view.getMarkById(this.spec.group):this.spec.group;this.detach(a)}const r=at(t.group)?this.view.getMarkById(t.group):t.group;return this.attach(r),this.join((e=t.from)===null||e===void 0?void 0:e.data,t.key,t.sort,t.groupBy,t.groupSort),this.coordinate(t.coordinate),this.state(t.state,this.spec.stateSort),Object.keys((i=this.spec.encode)!==null&&i!==void 0?i:{}).forEach(a=>{this.encodeState(a,{},!0)}),Object.keys((s=t.encode)!==null&&s!==void 0?s:{}).forEach(a=>{this.encodeState(a,t.encode[a])}),this.animation(t.animation),this.animationState(t.animationState),this.morph(t.morph,t.morphKey,t.morphElementKey),this.layout(t.layout),this.configure(t),this.transform(t.transform),this.parseAddition(t),this.spec=t,this.markType=t.type,this.commit(),this}parameters(){var t;return(t=this._finalParameters)!==null&&t!==void 0?t:super.parameters()}parseAddition(t){return this}reuse(t){if(t.grammarType!==this.grammarType)return this;const e=t;return this.markType=e.markType,this.coord=e.coord,this.elementMap=e.elementMap,this.elements=e.elements,this.elementMap.forEach(i=>i.mark=this),this.differ=e.differ,this.animate=e.animate,this.animate.mark=this,this._context=e._context,this.graphicItem=e.graphicItem,this.graphicIndex=e.graphicIndex,this.graphicParent=e.graphicParent,this.needClear=e.needClear,this.isUpdated=e.isUpdated,this}needLayout(){return!C(this.spec.layout)}handleLayoutEnd(){}handleRenderEnd(){this.needClear&&(this.cleanExitElements(),this.elementMap.forEach(t=>{t.diffState===qt.exit?t.clearGraphicAttributes():t.clearChangedGraphicAttributes()}),this.differ.updateToCurrent(),this.needClear=!1)}evaluateMainTasks(t,e){var i;if(this.needSkipBeforeLayout()&&this.view.getLayoutState()===cr.before)return this;const s=(i=this.view.renderer)===null||i===void 0?void 0:i.stage();this.init(s,e);const r=this.evaluateTransform(this._getTransformsBeforeJoin(),t??Np,e);let a=r!=null&&r.progressive?t:r;return this.evaluateGroup(a),this.renderContext=this.parseRenderContext(a,e),this.renderContext.progressive?(this.differ.reset(),this.elementMap.clear(),this.evaluateProgressive()):(r!=null&&r.progressive&&(this.renderContext.parameters=e,this.renderContext.beforeTransformProgressive=r.progressive,a=r.progressive.output()),this.emit(ct.BEFORE_MARK_JOIN),this.evaluateJoin(a),this.emit(ct.AFTER_MARK_JOIN),this.emit(ct.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,e),this.emit(ct.AFTER_MARK_STATE),this.emit(ct.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),e),this.emit(ct.AFTER_MARK_ENCODE)),this.emit(ct.BEFORE_MARK_UPDATE),this.update(this.spec),this.emit(ct.AFTER_MARK_UPDATE),this}evaluateGroup(t){if(this.markType===rt.group)return;const e=mr(t??Np,this.spec.groupBy,this.spec.groupSort),i=e.keys;this._groupKeys=i,this._groupEncodeResult=null,this.differ.setCurrentData(e)}_getTransformsAfterEncodeItems(){return this.transforms&&this.transforms.filter(t=>t.markPhase==="afterEncodeItems")}_getTransformsAfterEncode(){return this.transforms&&this.transforms.filter(t=>C(t.markPhase)||t.markPhase==="afterEncode")}_getTransformsBeforeJoin(){return this.transforms?this.transforms.filter(t=>t.markPhase==="beforeJoin"):[]}evaluate(t,e){var i;return this.evaluateMainTasks(t,e),!((i=this.renderContext)===null||i===void 0)&&i.progressive||this.evaluateTransform(this._getTransformsAfterEncode(),this.elements,e),this}output(){return this}join(t,e,i,s,r){return this.grammarSource&&(this.detach(this.grammarSource),this.grammarSource=null),this.spec.from=null,C(t)||(at(t)?this.grammarSource=this.view.getDataById(t):this.grammarSource=t,this.spec.from={data:t},this.attach(this.grammarSource)),this.spec.key=e,this.spec.sort=i,this.spec.groupBy=s,this.spec.groupSort=r,this.commit(),this}coordinate(t){return at(t)?this.coord=this.view.getCoordinateById(t):this.coord=t,this.attach(this.coord),this.commit(),this}state(t,e){return this.spec.stateSort=e,this.setFunctionSpec(t,"state")}encode(t,e,i){return this.encodeState(qt.update,t,e,i)}encodeState(t,e,i,s){if(t===qt.enter&&(this._isReentered=!0),this.spec.encode[t]){const r=this.spec.encode[t];if(ro(r))this.detach(Ya(r,this.view));else{const a=at(e);a&&s||!a&&i?(Object.keys(r).forEach(o=>{this.detach(Ya(r[o],this.view))}),this.spec.encode[t]={}):a?this.detach(Ya(r[e],this.view)):Object.keys(e).forEach(o=>{this.detach(Ya(r[o],this.view))})}}return e&&(this.spec.encode[t]||(this.spec.encode[t]={}),at(e)?(this.spec.encode[t][e]=i,this.attach(Ya(i,this.view))):ro(e)?(this.spec.encode[t]=e,this.attach(Ya(e,this.view))):e&&(Object.assign(this.spec.encode[t],e),Object.values(e).forEach(r=>{this.attach(Ya(r,this.view))}))),this.commit(),this}_getEncoders(){var t;return(t=this.spec.encode)!==null&&t!==void 0?t:{}}animation(t){return this.spec.animation=t,this}animationState(t){return this.setFunctionSpec(t,"animationState")}layout(t){return this.spec.layout=t,this.commit(),this}morph(t,e,i){return this.spec.morph=t,this.spec.morphKey=e,this.spec.morphElementKey=i,this}transform(t){const e=Hf(this.spec.transform,this.view);e&&(this.detach(e.refs),this.transforms=[]);const i=Hf(t,this.view);return i&&(this.attach(i.refs),this.transforms=i.transforms),this.spec.transform=t,this.commit(),this}configure(t){const e=["clip","clipPath","zIndex","interactive","context","setCustomizedShape","large","largeThreshold","progressiveStep","progressiveThreshold","support3d","morph","morphKey","morphElementKey","attributeTransforms","skipTheme","enableSegments","stateSort"];return t===null?(e.forEach(i=>{C(this.spec[i])||(this.spec[i]=void 0)}),this):(e.forEach(i=>{C(t[i])||(this.spec[i]=t[i])}),this)}context(t){return this.spec.context=t,this._context=t,this}isCollectionMark(){return EI.includes(this.markType)}needAnimate(){var t;return!(!((t=this.renderContext)===null||t===void 0)&&t.progressive)&&!C(this.spec.animation)}getAllElements(){const t=this.elements.slice();return this.elementMap.forEach(e=>{e.diffState!==qt.exit||t.includes(e)||t.push(e)}),this.spec.sort&&t.sort((e,i)=>this.spec.sort(e.getDatum(),i.getDatum())),t}getScales(){const t={};return this.references.forEach((e,i)=>{i.grammarType===bb.scale&&(t[i.id()]=i.output())}),t}getScalesByChannel(){const t=this.spec.encode;if(!t)return{};const e={},i=this.parameters();return Object.keys(t).forEach(s=>{const r=t[s];r&&!ro(r)&&Object.keys(r).forEach(a=>{Pm(r[a])&&(e[a]=Hc(r[a].scale,i))})}),e}getFieldsByChannel(){const t=this.spec.encode;if(!t)return{};const e={};return Object.keys(t).forEach(i=>{const s=t[i];ro(s)||Object.keys(s).forEach(r=>{Jx(s[r])&&(e[r]=s[r].field)})}),e}init(t,e){var i,s,r,a;if(this._delegateEvent||(this._delegateEvent=(h,d)=>{var c;const u=(c=h.target)===null||c===void 0?void 0:c[Eo];if((u==null?void 0:u.mark)===this){const p=Tb(this.view,h,u,d,ao);this.emitGrammarEvent(d,p,u)}},this.initEvent()),this.animate||(this.animate=new uw(this,this.spec.animation),this.needAnimate()&&this.animate.updateState(this.spec.animationState)),!this.group){const h=Hc(this.spec.group,e);this.group=h,h&&h.appendChild(this)}const o=this.group?this.group.getGroupGraphicItem():t.defaultLayer,l=(r=(s=(i=this.group)===null||i===void 0?void 0:i.children)===null||s===void 0?void 0:s.indexOf(this))!==null&&r!==void 0?r:0;if(this.markType!==rt.group){if(!this.graphicItem){const h=Cd(this,rt.group,{pickable:!1,zIndex:(a=this.spec.zIndex)!==null&&a!==void 0?a:0});(this.spec.support3d||_X.includes(this.markType))&&h.setMode("3d"),h.name=`${this.id()||this.markType}`,this.graphicItem=h}this.graphicParent=this.graphicItem,!o||this.graphicIndex===l&&this.graphicItem.parent===o||o.insertIntoKeepIdx(this.graphicItem,l)}else this.graphicParent=o;this.graphicIndex=l}update(t){if(this._context=this.spec.context,this.isUpdated=!0,this.renderContext.progressive||(this.animate.updateConfig(t.animation),this.animate.updateState(t.animationState)),this.markType!==rt.group){if(C(t.zIndex)||this.graphicItem.setAttribute("zIndex",t.zIndex),C(t.clip)||this.graphicItem.setAttribute("clip",t.clip),!C(t.clipPath)){const e=V(t.clipPath)?t.clipPath:t.clipPath(this.elements);e&&e.length?this.graphicItem.setAttribute("path",e):this.graphicItem.setAttributes({path:e,clip:!1})}this.elementMap.forEach(e=>{e.updateGraphicItem()})}else this.elementMap.forEach(e=>{e.updateGraphicItem()})}evaluateJoin(t){var e,i,s,r;this.needClear=!0;const a=Nl((s=(e=this.spec.key)!==null&&e!==void 0?e:(i=this.grammarSource)===null||i===void 0?void 0:i.getDataIDKey())!==null&&s!==void 0?s:()=>vn),o=Nl((r=this.spec.groupBy)!==null&&r!==void 0?r:()=>vn),l=this.spec.sort,h=this.isCollectionMark(),d=new Set(this.elements.filter(p=>p.diffState===qt.enter)),c=[];this.differ.setCallback((p,g,f)=>{const _=p;let m;if(C(g))m=this.elementMap.get(_),m&&(m.diffState=qt.exit);else if(C(f)){m=this.elementMap.has(_)?this.elementMap.get(_):Up(this),m.diffState===qt.exit&&(m.diffState=qt.enter,this.animate.getElementAnimators(m,qt.exit).forEach(b=>b.stop("start"))),m.diffState=qt.enter;const y=h?p:o(g[0]);m.updateData(y,g,a,this.view),this.elementMap.set(_,m),c.push(m)}else if(m=this.elementMap.get(_),m){m.diffState=qt.update;const y=h?p:o(g[0]);m.updateData(y,g,a,this.view),c.push(m)}d.delete(m)});const u=t??Np;h||this.differ.setCurrentData(mr(u,p=>`${o(p)}-${a(p)}`,void 0)),this.differ.doDiff(),d.forEach(p=>{this.elementMap.delete(h?p.groupKey:`${p.groupKey}-${p.key}`),p.remove(),p.release()}),this.elements=c,l&&this.elements.length>=2&&this.elements.sort((p,g)=>l(p.getDatum(),g.getDatum()))}evaluateState(t,e,i){e&&t.forEach(s=>{s.state(e,i)})}evaluateGroupEncode(t,e,i){if(!this._groupKeys||!e)return;const s={};return this._groupKeys.forEach(r=>{const a=t.find(o=>o.groupKey===r);a&&(s[r]=_a(e,a.items&&a.items[0]&&a.items[0].datum,a,i))}),this._groupEncodeResult=s,s}getChannelsFromConfig(t){const e=this.spec;return C(e.interactive)?null:{pickable:e.interactive}}evaluateEncode(t,e,i,s){const r=this.getChannelsFromConfig();if(e){this.emit(ct.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=s?null:this.evaluateGroupEncode(t,e[ia.group],i);t.forEach(o=>{this.markType===rt.glyph&&this._groupEncodeResult?o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,this._groupEncodeResult[o.groupKey])}):a!=null&&a[o.groupKey]&&!this.isCollectionMark()?o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,a[o.groupKey])}):r&&o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r)}),o.encodeItems(o.items,e,this._isReentered,i),this.isCollectionMark()&&(a!=null&&a[o.groupKey])&&P(a[o.groupKey].defined)&&(o.items.forEach(l=>{l.nextAttrs.defined=a[o.groupKey].defined}),delete a[o.groupKey].defined)}),this._isReentered=!1,this.evaluateTransform(this._getTransformsAfterEncodeItems(),t,i),t.forEach(o=>{o.encodeGraphic(this.isCollectionMark()?a==null?void 0:a[o.groupKey]:null)}),this.emit(ct.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){var s;const r=i??Cd(this,this.markType,t);if(r){if(!((s=this.renderContext)===null||s===void 0)&&s.progressive){let a;if(this._groupKeys){const o=this._groupKeys.indexOf(e);o>=0&&(a=this.graphicParent.getChildAt(o))}else a=this.graphicParent.at(0);this.isCollectionMark()?(r.incremental=1,a.appendChild(r)):a.incrementalAppendChild(r)}else this.graphicParent.appendChild(r);return r}}parseRenderContext(t,e){const i=this.markType!==rt.group&&this.spec.progressiveStep>0&&this.spec.progressiveThreshold>0&&this.spec.progressiveStep0&&t.length>=this.spec.largeThreshold;if(i){const r=this.differ.getCurrentData();return r&&r.keys&&r.keys.some(a=>r.data.get(a).length>this.spec.progressiveThreshold)?{large:s,parameters:e,progressive:{data:t,step:this.spec.progressiveStep,currentIndex:0,totalStep:r.keys.reduce((a,o)=>Math.max(Math.ceil(r.data.get(o).length/this.spec.progressiveStep),a),1),groupedData:r.data}}:{large:s}}return{large:s}}isProgressive(){return this.renderContext&&(!!this.renderContext.progressive||!!this.renderContext.beforeTransformProgressive)}isDoingProgressive(){return this.renderContext&&(this.renderContext.progressive&&this.renderContext.progressive.currentIndex{t.incrementalClearChild()}),this.graphicParent.removeAllChild()),this.renderContext&&this.renderContext.beforeTransformProgressive&&this.renderContext.beforeTransformProgressive.release(),this.renderContext=null}restartProgressive(){this.renderContext&&this.renderContext.progressive&&(this.renderContext.progressive.currentIndex=0)}evaluateJoinProgressive(){var t,e,i;const s=this.renderContext.progressive.currentIndex,r=Nl((i=(t=this.spec.key)!==null&&t!==void 0?t:(e=this.grammarSource)===null||e===void 0?void 0:e.getDataIDKey())!==null&&i!==void 0?i:()=>vn),a=[];if(this.isCollectionMark())return this._groupKeys.forEach((l,h)=>{const d=this.renderContext.progressive.groupedData.get(l),c=this.renderContext.progressive.step,u=d.slice(s*c,(s+1)*c);if(s===0){const p=Up(this);p.diffState=qt.enter,p.updateData(l,u,r,this.view),a.push(p)}else{const p=this.elements[h];p.updateData(l,u,r,this.view),a.push(p)}}),a;const o={};return this._groupKeys.forEach(l=>{const h=this.renderContext.progressive.groupedData.get(l),d=this.renderContext.progressive.step,c=h.slice(s*d,(s+1)*d),u=[];c.forEach(p=>{const g=Up(this);g.diffState=qt.enter,g.updateData(l,[p],r,this.view),u.push(g),a.push(g)}),o[l]=u}),{groupElements:o,elements:a}}evaluateEncodeProgressive(t,e,i){const s=this.renderContext.progressive.currentIndex;if(s===0){if(this.evaluateEncode(t,e,i),s===0&&this._groupEncodeResult&&!this.isCollectionMark()&&this.markType!==rt.glyph){const r=t[0],a=r.getGraphicItem(),o=a==null?void 0:a.parent;o&&this._groupEncodeResult[r.groupKey]&&o.setTheme({common:this._groupEncodeResult[r.groupKey]})}}else this.evaluateEncode(t,e,i,!0)}evaluateProgressive(){var t,e,i;if(!((t=this.renderContext)===null||t===void 0)&&t.beforeTransformProgressive){this.renderContext.beforeTransformProgressive.progressiveRun();const l=this.renderContext.beforeTransformProgressive.output();return this.emit(ct.BEFORE_MARK_JOIN),this.evaluateJoin(l),this.emit(ct.AFTER_MARK_JOIN),this.emit(ct.BEFORE_MARK_STATE),this.evaluateState(this.elements,this.spec.state,this.renderContext.parameters),this.emit(ct.AFTER_MARK_STATE),this.emit(ct.BEFORE_MARK_ENCODE),this.evaluateEncode(this.elements,this._getEncoders(),this.renderContext.parameters),void this.emit(ct.AFTER_MARK_ENCODE)}if(!(!((e=this.renderContext)===null||e===void 0)&&e.progressive))return;const s=this.renderContext.parameters;this.emit(ct.BEFORE_MARK_JOIN);const r=this.evaluateJoinProgressive(),a=Array.isArray(r)?r:r.elements;if(this.emit(ct.AFTER_MARK_JOIN),this.renderContext.progressive.currentIndex===0?(this.graphicParent.removeAllChild(),this._groupKeys.forEach(l=>{const h=Cd(this,rt.group,{pickable:!1,zIndex:this.spec.zIndex});h.incremental=this.renderContext.progressive.step,this.graphicParent.appendChild(h)}),this.elements=a):this.elements=this.elements.concat(a),this.emit(ct.BEFORE_MARK_STATE),this.evaluateState(a,this.spec.state,s),this.emit(ct.AFTER_MARK_STATE),this.emit(ct.BEFORE_MARK_ENCODE),Array.isArray(r))this.evaluateEncodeProgressive(a,this._getEncoders(),s);else{const l=r.groupElements;Object.keys(l).forEach(h=>{this.evaluateEncodeProgressive(l[h],this._getEncoders(),s)})}this.emit(ct.AFTER_MARK_ENCODE);const o=(i=this._getTransformsAfterEncode())===null||i===void 0?void 0:i.filter(l=>l.canProgressive===!0);o!=null&&o.length&&this.evaluateTransform(o,this.elements,s),this.renderContext.progressive.currentIndex+=1}isLargeMode(){return this.renderContext&&this.renderContext.large}cleanExitElements(){this.elementMap.forEach((t,e)=>{t.diffState!==qt.exit||t.isReserved||(this.elementMap.delete(e),t.remove(),t.release())})}getGroupGraphicItem(){if(this.elements&&this.elements[0]&&this.elements[0].getGraphicItem)return this.elements[0].getGraphicItem()}getBounds(){var t;return this.graphicItem?this.graphicItem.AABBBounds:(t=this.getGroupGraphicItem())===null||t===void 0?void 0:t.AABBBounds}getMorphConfig(){var t;return{morph:(t=this.spec.morph)!==null&&t!==void 0&&t,morphKey:this.spec.morphKey,morphElementKey:this.spec.morphElementKey}}getAttributeTransforms(){var t;return(t=this.spec.attributeTransforms)!==null&&t!==void 0?t:Eu[this.markType]}getContext(){return this._context}needSkipBeforeLayout(){var t,e;if(((t=this.spec.layout)===null||t===void 0?void 0:t.skipBeforeLayouted)===!0)return!0;let i=this.group;for(;i;){if(((e=i.getSpec().layout)===null||e===void 0?void 0:e.skipBeforeLayouted)===!0)return!0;i=i.group}return!1}initEvent(){if(this._delegateEvent){const t=this.view.renderer.stage();t&&t.on("*",this._delegateEvent)}}releaseEvent(){if(this._delegateEvent){const t=this.view.renderer.stage();t&&t.off("*",this._delegateEvent)}}clear(){var t;this.releaseEvent(),this.transforms=null,this.elementMap=null,this.elements=null,this.graphicItem=null,this.animate=null,(t=this.group)===null||t===void 0||t.removeChild(this),this.group=null,super.clear()}prepareRelease(){this.animate.stop(),this.elementMap.forEach(t=>t.diffState=qt.exit),this._finalParameters=this.parameters()}release(){this.releaseEvent(),this.elements.forEach(t=>t.release()),this.elementMap.clear(),this._finalParameters=null,this.animate&&this.animate.release(),this.graphicItem&&zf(this.graphicItem),this.detachAll(),super.release()}}let W7=class extends Ih{constructor(t,e){super(t,rt.group,e),this.children=[]}parseRenderContext(){return{large:!1}}appendChild(t){return this.children.push(t),this}removeChild(t){return this.children=this.children.filter(e=>e!==t),this}includesChild(t,e=!0){return!!this.children.includes(t)||!!e&&this.children.some(i=>i.markType===rt.group&&i.includesChild(t,!0))}updateLayoutChildren(){return this.children.length?(this.layoutChildren||(this.layoutChildren=[]),this.layoutChildren=this.children.filter(t=>t.needLayout()),this):this}getAttributeTransforms(){return Eu.rect}evaluateJoin(t){if(!this.elements.length){const e=Up(this);e.updateData(vn,Np,()=>"",this.view),this.elements=[e],this.elementMap.set(vn,e)}}getChannelsFromConfig(t){const e=this.spec,i={};if(C(e.clip)||(i.clip=e.clip),C(e.zIndex)||(i.zIndex=e.zIndex),!C(e.clipPath)){const s=G(e.clipPath)?e.clipPath([t]):e.clipPath;s&&s.length?i.path=s:(i.path=null,i.clip=!1)}return C(e.interactive)||(i.pickable=e.interactive),i}evaluateGroupEncode(t,e,i){var s;const r=this.elements[0],a={},o=[Object.assign({},(s=r.items)===null||s===void 0?void 0:s[0],{nextAttrs:a})];return lr(r,o,e,i),this._groupEncodeResult=a,a}evaluateEncode(t,e,i,s){const r=this.getChannelsFromConfig();if(e){this.emit(ct.BEFORE_ELEMENT_ENCODE,{encoders:e,parameters:i},this);const a=s?null:this.evaluateGroupEncode(t,e[ia.group],i);t.forEach(o=>{o.items.forEach(l=>{l.nextAttrs=Object.assign(l.nextAttrs,r,a)}),o.encodeItems(o.items,e,this._isReentered,i)}),this._isReentered=!1,this.evaluateTransform(this._getTransformsAfterEncodeItems(),t,i),t.forEach(o=>{o.encodeGraphic()}),this.emit(ct.AFTER_ELEMENT_ENCODE,{encoders:e,parameters:i},this)}else t.forEach(a=>{a.initGraphicItem(r)})}addGraphicItem(t,e,i){const s=i??Cd(this,this.markType,t);if(s)return this.emit(ct.BEFORE_ADD_VRENDER_MARK,{graphicItem:s}),s.name=`${this.id()||this.markType}`,this.graphicParent.insertIntoKeepIdx(s,this.graphicIndex),this.emit(ct.AFTER_ADD_VRENDER_MARK,{graphicItem:s}),s}};function pw(n,t){if(z(n))return n;const e=n.trim();if(e==="auto")return 0;if(e.endsWith("%")){const i=parseFloat(e.substring(0,e.length-1));return z(i)?i*t:0}return 0}function N7(n,t,e){var i,s,r,a;const o=(i=n.gridTemplateRows)!==null&&i!==void 0?i:[e],l=(s=n.gridTemplateColumns)!==null&&s!==void 0?s:[t],h=(r=n.gridRowGap)!==null&&r!==void 0?r:0,d=(a=n.gridColumnGap)!==null&&a!==void 0?a:0,c=o.map(b=>pw(b,e)),u=l.map(b=>pw(b,t)),p=Math.max(0,c.reduce((b,v)=>b-v,e)-c.length*h)/o.filter(b=>b==="auto").length,g=Math.max(0,u.reduce((b,v)=>b-v,t)-u.length*d)/l.filter(b=>b==="auto").length;let f=0;const _=c.map((b,v)=>{const x=o[v]==="auto"?p:b,S=f;return f+=x+h,S});_.push(f);let m=0;const y=u.map((b,v)=>{const x=l[v]==="auto"?g:b,S=m;return m+=x+d,S});return y.push(m),{rows:_,columns:y,rowGap:h,columnGap:d}}function Sp(n,t){return Math.min(n<0?n+t:n-1,t)}function gw(n,t,e){let i=Sp(n,e),s=Sp(t,e);if(z(n)||z(t)?z(n)?z(t)||(i=Sp(Math.max(0,s-1),e)):s=Sp(i+1,e):(i=1,s=2),i>s){const r=s;s=i,i=r}return{start:i,end:s}}function G7(n,t,e,i,s){const r=n.rows.length,a=n.columns.length,{start:o,end:l}=gw(t,e,r),{start:h,end:d}=gw(i,s,a),c=n.columns[o],u=n.columns[l]-(d===a?0:n.columnGap),p=n.rows[h],g=n.rows[d]-(l===r?0:n.rowGap);return new di().set(c,p,u,g)}const U7=(n,t,e,i)=>{const s=N7(n.getSpec().layout,e.width(),e.height());t&&t.forEach(r=>{const a=r.getSpec().layout;r.layoutBounds=G7(s,a.gridRowStart,a.gridRowEnd,a.gridColumnStart,a.gridColumnEnd),r.commit()})},$7={[ge.axis]:0,[ge.legend]:1,[ge.slider]:2,[ge.player]:3,[ge.datazoom]:4},fw=n=>{var t,e,i;return(e=(t=n.getSpec().layout)===null||t===void 0?void 0:t.order)!==null&&e!==void 0?e:n.markType==="component"&&(i=$7[n.componentType])!==null&&i!==void 0?i:1/0},_w=(n,t,e,i)=>{const s=e.clone(),r=n.getSpec().layout,a=Dn(r.maxChildWidth,s.width()),o=Dn(r.maxChildHeight,s.width());let l=0,h=0,d=0,c=0;t.forEach(m=>{const y=m.getSpec().layout,b=ra(y.padding),v=i.parseMarkBounds?i.parseMarkBounds(m.getBounds(),m):m.getBounds();if(y.position==="top"||y.position==="bottom"){const x=Math.min(v.height()+b.top+b.bottom,o);y.position==="top"?s.y1+=x:s.y2-=x,v.x1e.x2&&(h=Math.max(h,v.x2-e.x2))}if(y.position==="left"||y.position==="right"){const x=Math.min(v.width()+b.left+b.right,a);y.position==="left"?s.x1+=x:s.x2-=x,v.y1e.y2&&(c=Math.max(c,v.y2-e.y2))}y.position==="outside"&&(s.x1+=Math.max(e.x1-v.x1,0)+b.left,s.x2-=Math.max(v.x2-e.x2,0)+b.right,s.y1+=Math.max(e.y1-v.y1,0)+b.top,s.y2-=Math.max(v.y2-e.y2)+b.bottom)}),l>s.x1-e.x1&&le.x2-s.x2&&hs.y1-e.y1&&de.y2-s.y2&&cfw(m)-fw(y));for(let m=0,y=_.length;m{n==null||n.forEach(i=>{var s;if(i.markType!==rt.group)return;const r=i.layoutChildren,a=i.getSpec().layout,o=(s=i.layoutBounds)!==null&&s!==void 0?s:i.getBounds();if(o){if(G(a))a.call(null,i,r,o,t);else if(G(a.callback))a.callback.call(null,i,r,o,t);else if(a.display==="relative")if(a.updateViewSignals){const l=e.getViewBox();l&&o.intersect(l);const h=_w(i,r,o,t),d=h.width(),c=h.height(),u={top:h.y1,right:e.width()-h.x2,left:h.x1,bottom:e.height()-h.y2};e.updateSignal(Gl,d),e.updateSignal(Ul,c),e.updateSignal(Un,u)}else _w(i,r,o,t);else a.display==="grid"&&U7(i,r,o);jI(r,t,e)}})};class Y7 extends Ih{constructor(t,e,i){super(t,rt.glyph,i),this.glyphType=e,this.glyphMeta=it.getGlyph(e)}configureGlyph(t){return this.spec.glyphConfig=t,this.commit(),this}getGlyphMeta(){return this.glyphMeta}getGlyphConfig(){return this.spec.glyphConfig}addGraphicItem(t,e){const i=LX(this,this.glyphMeta,t);return super.addGraphicItem(t,e,i)}}const Q0=Symbol.for("key");class X7{diffGrammar(t,e){return I7(t,e,i=>{var s;return(s=i.id())!==null&&s!==void 0?s:Symbol()})}diffMark(t,e,i){const s={enter:[],exit:[],update:[]};let r=[],a=[];t.forEach(c=>{c.markType!==rt.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?r.push(c):s.exit.push({prev:[c]})}),e.forEach(c=>{c.markType!==rt.group&&(i.morph&&c.getMorphConfig().morph||i.morphAll||i.reuse)?a.push(c):s.enter.push({next:[c]})});const o=this.diffUpdateByGroup(r,a,c=>c.getMorphConfig().morphKey,c=>c.getMorphConfig().morphKey);r=o.prev,a=o.next,s.update=s.update.concat(o.update);const l=this.diffUpdateByGroup(r,a,c=>c.id(),c=>c.id());r=l.prev,a=l.next,s.update=s.update.concat(l.update);const h=mr(r,c=>{var u,p;return(p=(u=c.group)===null||u===void 0?void 0:u.id)===null||p===void 0?void 0:p.call(u)}),d=mr(a,c=>{var u,p;return(p=(u=c.group)===null||u===void 0?void 0:u.id)===null||p===void 0?void 0:p.call(u)});return Object.keys(d).forEach(c=>{const u=h.data.get(c),p=d.data.get(c);if(u&&p){for(let g=0;g!u.includes(g)),a=a.filter(g=>!p.includes(g))}}),r.forEach(c=>s.exit.push({prev:[c]})),a.forEach(c=>s.enter.push({next:[c]})),s}_appendMorphKeyToElements(t){const e=t.getMorphConfig();if(!C(e.morphElementKey)){const i=Nl(e.morphElementKey);t.elements&&t.elements.forEach(s=>{s.morphKey=i(s.getDatum())})}}morph(t,e,i){const s=t.reduce((d,c)=>(this._appendMorphKeyToElements(c),d.concat(c.elements)),[]),r=e.reduce((d,c)=>(this._appendMorphKeyToElements(c),d.concat(c.elements)),[]),a=O7(s,r,d=>{var c;return(c=d.morphKey)!==null&&c!==void 0?c:d.key});t.forEach(d=>{var c,u;return(u=(c=d.animate)===null||c===void 0?void 0:c.disable)===null||u===void 0?void 0:u.call(c)}),e.forEach(d=>{var c,u;return(u=(c=d.animate)===null||c===void 0?void 0:c.disable)===null||u===void 0?void 0:u.call(c)});const o=t.concat(e).reduce((d,c)=>(Object.assign(d,c.parameters()),d),{});let l=0;const h=()=>{l-=1,l===0&&e.forEach(d=>{var c,u;(u=(c=d.animate)===null||c===void 0?void 0:c.enable)===null||u===void 0||u.call(c)})};a.enter.forEach(d=>{d.next.forEach(c=>{this.doMorph([],[c],i,h,o)}),l+=1}),a.update.forEach(d=>{const c=Math.min(d.prev.length,d.next.length),u=this.divideElements(d.prev,c),p=this.divideElements(d.next,c);for(let g=0;g{var c;return(c=i(d))!==null&&c!==void 0?c:Q0}),a=mr(e,d=>{var c;return(c=s(d))!==null&&c!==void 0?c:Q0});let o=t,l=e;const h=[];return a.keys.forEach(d=>{if(d!==Q0){const c=r.data.get(d),u=a.data.get(d);c&&u&&(h.push({prev:c,next:u}),o=o.filter(p=>!c.includes(p)),l=l.filter(p=>!u.includes(p)))}}),{prev:o,next:l,update:h}}doMorph(t,e,i,s,r){var a,o;const l={prev:t.map(_=>_.getDatum()),next:e.map(_=>_.getDatum())},h={prev:t.slice(),next:e.slice()},d=i.animation.easing,c=He(i.animation.delay,r,l,h),u=He(i.animation.duration,r,l,h),p=He(i.animation.oneByOne,r,l,h),g=He(i.animation.splitPath,r,l,h),f=z(p)&&p>0?_=>nt(p)?_*p:p===!0?_*u:0:void 0;t.length!==1&&t.length!==0||e.length!==1?t.length===1&&e.length>1?_H(t[0].getGraphicItem(),e.map(_=>_.getGraphicItem()),{delay:c,duration:u,easing:d,onEnd:s,individualDelay:f,splitPath:g}):t.length>1&&e.length===1&&vH(t.map(_=>_.getGraphicItem()),e[0].getGraphicItem(),{delay:c,duration:u,easing:d,onEnd:s,individualDelay:f,splitPath:g}):kR((o=(a=t[0])===null||a===void 0?void 0:a.getGraphicItem)===null||o===void 0?void 0:o.call(a),e[0].getGraphicItem(),{delay:c,duration:u,easing:d,onEnd:s})}divideElements(t,e){const i=Math.floor(t.length/e);return new Array(e).fill(0).map((s,r)=>t.slice(i*r,r===e-1?t.length:i*(r+1)))}}class HI{constructor(t,e){this._grammars={signal:[],data:[],scale:[],coordinate:[],mark:[],customized:[]},this._grammarMap={signal:{},data:{},scale:{},coordinate:{},mark:{},customized:{}},this._size=0,this._mapKey=at(t)?i=>i[t]:t,this._warning=e}record(t){var e,i;const s=t.grammarType,r=this._mapKey(t);return this._grammarMap[s]?(this._grammars[s].push(t),C(r)||(this._grammarMap[s][r]?(e=this._warning)===null||e===void 0||e.call(this,r,t):this._grammarMap[s][r]=t)):(this._grammars.customized.push(t),C(r)||(this._grammarMap.customized[r]?(i=this._warning)===null||i===void 0||i.call(this,r,t):this._grammarMap.customized[r]=t)),this._size+=1,this}unrecord(t){const e=t.grammarType,i=this._mapKey(t);return this._grammarMap[e]?(this._grammars[e]=this._grammars[e].filter(s=>s!==t),C(i)||this._grammarMap[e][i]!==t||delete this._grammarMap[e][i]):(this._grammars.customized=this._grammars.customized.filter(s=>s!==t),C(i)||this._grammarMap.customized[i]!==t||delete this._grammarMap.customized[i]),this._size-=1,this}size(){return this._size}getSignal(t){var e;return(e=this._grammarMap.signal[t])!==null&&e!==void 0?e:null}getData(t){var e;return(e=this._grammarMap.data[t])!==null&&e!==void 0?e:null}getScale(t){var e;return(e=this._grammarMap.scale[t])!==null&&e!==void 0?e:null}getCoordinate(t){var e;return(e=this._grammarMap.coordinate[t])!==null&&e!==void 0?e:null}getMark(t){var e;return(e=this._grammarMap.mark[t])!==null&&e!==void 0?e:null}getCustomized(t){var e;return(e=this._grammarMap.customized[t])!==null&&e!==void 0?e:null}getGrammar(t){return this._grammarMap.data[t]?this._grammarMap.data[t]:this._grammarMap.signal[t]?this._grammarMap.signal[t]:this._grammarMap.scale[t]?this._grammarMap.scale[t]:this._grammarMap.coordinate[t]?this._grammarMap.coordinate[t]:this._grammarMap.mark[t]?this._grammarMap.mark[t]:this._grammarMap.customized[t]?this._grammarMap.customized[t]:null}getAllSignals(){return this._grammars.signal}getAllData(){return this._grammars.data}getAllScales(){return this._grammars.scale}getAllCoordinates(){return this._grammars.coordinate}getAllMarks(){return this._grammars.mark}getAllCustomized(){return this._grammars.customized}traverse(t){var e;Object.values((e=this._grammars)!==null&&e!==void 0?e:{}).forEach(i=>(i??[]).forEach(s=>{t.call(null,s)}))}find(t){let e=null;return this.traverse(i=>t.call(null,i)===!0&&(e=i,!0)),e}filter(t){const e=[];return this.traverse(i=>{t.call(null,i)===!0&&e.push(i)}),e}clear(){this._size=0,this._grammars={signal:[],data:[],scale:[],coordinate:[],mark:[],customized:[]},this._grammarMap={signal:{},data:{},scale:{},coordinate:{},mark:{},customized:{}}}release(){this._size=0,this._grammars=null,this._grammarMap=null}}class K7 extends HI{constructor(){super(...arguments),this._markNodes=[]}record(t){if(super.record(t),t.grammarType==="mark"){const e=t,i={mark:e,parent:null,children:[]};this._markNodes.forEach(s=>{const r=s.mark;r.markType===rt.group&&r.includesChild(e,!1)?(s.children.push(i),i.parent=s):e.markType===rt.group&&e.includesChild(r,!1)&&(i.children.push(s),s.parent=i)}),this._markNodes.push(i)}return this}unrecord(t){if(super.unrecord(t),t.grammarType==="mark"){const e=t,i=this._markNodes.find(s=>s.mark===e);this._markNodes.forEach(s=>{s.mark.markType===rt.group&&s.children.includes(i)?(s.children=s.children.filter(r=>r!==i),i.parent=null):e.markType===rt.group&&i.children.includes(s)&&(i.children=i.children.filter(r=>r!==s),s.parent=null)}),this._markNodes=this._markNodes.filter(s=>s!==i)}return this}getAllMarkNodes(){return this._markNodes}clear(){super.clear(),this._markNodes=[]}release(){super.release(),this._markNodes=null}}class q7{constructor(t){this._animations=[],this._additionalAnimateMarks=[],this.isEnabled=!0,this._onAnimationStart=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var s;return(s=i==null?void 0:i.animate)===null||s===void 0?void 0:s.isAnimating()}),this._animations.length===0&&this._additionalAnimateMarks.length===0&&this._view.emit(ct.ALL_ANIMATION_START,{}),this._animations=this._animations.concat({config:e.animationConfig,mark:e.mark})},this._onAnimationEnd=e=>{this._additionalAnimateMarks=this._additionalAnimateMarks.filter(i=>{var s;return(s=i==null?void 0:i.animate)===null||s===void 0?void 0:s.isAnimating()}),this._animations=this._animations.filter(i=>i.config!==e.animationConfig||i.mark!==e.mark),this._animations.length===0&&this._additionalAnimateMarks.length===0&&this._view.emit(ct.ALL_ANIMATION_END,{})},this._view=t,this._view.addEventListener(ct.ANIMATION_START,this._onAnimationStart),this._view.addEventListener(ct.ANIMATION_END,this._onAnimationEnd)}stop(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks=[],this}pause(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).pause)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).pause)===null||i===void 0||i.call(e))}),this}resume(){return this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).resume)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).resume)===null||i===void 0||i.call(e))}),this}enable(){return this.isEnabled=!0,this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).enable)===null||i===void 0||i.call(e))}),this}disable(){return this.isEnabled=!1,this._view.traverseMarkTree(t=>{var e,i;t.animate&&((i=(e=t.animate).disable)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks.forEach(t=>{var e,i;t.view&&t.animate&&((i=(e=t.animate).stop)===null||i===void 0||i.call(e))}),this._additionalAnimateMarks=[],this}enableAnimationState(t){return this._view.traverseMarkTree(e=>{var i,s;e.animate&&((s=(i=e.animate).enableAnimationState)===null||s===void 0||s.call(i,t))}),this}disableAnimationState(t){return this._view.traverseMarkTree(e=>{var i,s;e.animate&&((s=(i=e.animate).disableAnimationState)===null||s===void 0||s.call(i,t))}),this}isAnimating(){return this._animations.length!==0||this._additionalAnimateMarks.some(t=>{var e;return((e=t==null?void 0:t.animate)===null||e===void 0?void 0:e.isAnimating())||!1})}animate(){return this.isEnabled?(this._view.traverseMarkTree(t=>{t.isUpdated&&t.animate&&t.animate.animate(),t.cleanExitElements(),t.isUpdated=!1},null,!0),this):this}animateAddition(t){const e=t.animate.animate();return e&&e.isAnimating()&&this._additionalAnimateMarks.push(t),this}release(){this._additionalAnimateMarks=[],this._animations=[],this._view.removeEventListener(ct.ALL_ANIMATION_START,this._onAnimationStart),this._view.removeEventListener(ct.ALL_ANIMATION_END,this._onAnimationEnd),this._view=null}}class VI extends Ih{addGraphicItem(t,e){const i=t&&t.limitAttrs,s=i&&(i.textType==="rich"||i.text&&i.text.type==="rich"),r=Cd(this,s?rt.richtext:rt.text,t);return super.addGraphicItem(t,e,r)}release(){super.release()}}VI.markType=rt.text;const Z7={label:{visible:!0,inside:!1,space:4,style:{fontSize:12,fill:"#89909d",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},items:[],start:{x:0,y:0},end:{x:100,y:0},x:0,y:0},J7={title:{space:4,padding:[0,0,0,0],textStyle:{fontSize:12,fill:"#333333",fontWeight:"normal",fillOpacity:1},text:"theta"},label:{visible:!0,inside:!1,space:4,style:{fontSize:12,fill:"#6F6F6F",fontWeight:"normal",fillOpacity:1}},tick:{visible:!0,inside:!1,alignWithLabel:!0,length:4,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},subTick:{visible:!1,inside:!1,count:4,length:2,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},line:{visible:!0,style:{lineWidth:1,stroke:"#D9DDE4",strokeOpacity:1}},items:[],startAngle:0,endAngle:2*Math.PI,radius:100,innerRadius:0,center:{x:0,y:0},x:0,y:0},Q7={style:{stroke:"#f1f2f5"}},t6={style:{stroke:"#f1f2f5"}},e6={layout:"vertical",title:{align:"start",space:12,textStyle:{fontSize:12,fontWeight:"bold",fill:"#2C3542"}},item:{spaceCol:10,spaceRow:10,shape:{space:4,style:{size:10,cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8",stroke:"#D8D8D8",fillOpacity:.5}}},label:{space:4,style:{fontSize:12,fill:"black",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8",fillOpacity:.5}}},value:{alignRight:!1,style:{fontSize:12,fill:"#ccc",cursor:"pointer"},state:{selectedHover:{opacity:.85},unSelected:{fill:"#D8D8D8"}}},background:{style:{cursor:"pointer"},state:{selectedHover:{fillOpacity:.7,fill:"gray"},unSelectedHover:{fillOpacity:.2,fill:"gray"}}},focus:!1,focusIconStyle:{size:10,fill:"#333",cursor:"pointer"},visible:!0,padding:{top:2,bottom:2,left:2,right:2}},autoPage:!0,pager:{space:12,handler:{style:{size:10},space:4}},hover:!0,select:!0,selectMode:"multiple",allowAllCanceled:!1,items:[{index:0,id:"",label:"",shape:{fill:"#6690F2",stroke:"#6690F2",symbolType:"circle"}}]},i6={title:{visible:!1,text:""},colors:[],layout:"horizontal",railWidth:200,railHeight:8,railStyle:{cornerRadius:5}},n6={title:{visible:!1,text:""},trackStyle:{fill:"#ccc"},layout:"horizontal",align:"bottom",railWidth:200,railHeight:6,min:0,max:1,value:[0,1]},s6={start:{x:0,y:0},end:{x:0,y:0}},r6={start:{x:0,y:0},end:{x:0,y:0},rectStyle:{width:10,height:10}},a6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:Math.PI/6},o6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI},l6={center:{x:0,y:0},radius:100,startAngle:0,endAngle:2*Math.PI,sides:6},h6={layout:"horizontal",railWidth:200,railHeight:10,railStyle:{cornerRadius:5},range:{draggableTrack:!0},startText:{visible:!0,text:"",space:8},endText:{visible:!0,text:"",space:8},min:0,max:1,value:[0,1]},d6={size:{width:400,height:400},dataLabels:[]},c6={type:"line-data",data:[{text:""}],position:"top",overlap:{avoidBaseMark:!1,clampForce:!1},smartInvert:!1},u6={type:"line",data:[{text:"",data:{}}],position:"start",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},p6={type:"area",data:[{text:"",data:{}}],position:"end",overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},g6={type:"rect",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},f6={type:"symbol",data:[{text:"",fill:"#606773",data:{}}],position:"top",overlap:{avoidBaseMark:!0,size:{width:1e3,height:1e3},strategy:[{type:"position"}]},smartInvert:!1},_6={type:"arc",data:[{text:"",fill:"#606773",data:{}}],width:800,height:600,position:"outside",zIndex:302},m6={data:[{text:"",fill:"#606773",data:{}}],overlap:{avoidBaseMark:!1,clampForce:!1,size:{width:1e3,height:1e3}},smartInvert:!1},v6={orient:"bottom",showDetail:"auto",brushSelect:!0,start:0,end:1,position:{x:0,y:0},size:{width:500,height:40},previewData:[]},y6={},b6={},x6={},S6={textStyle:{fill:"#21252c"},subtextStyle:{fill:"#606773"}},A6={width:12,height:12,padding:[2,2],railStyle:{fill:"rgba(0, 0, 0, .1)"}},WI={axis:Z7,circleAxis:J7,grid:Q7,circleGrid:t6,discreteLegend:e6,colorLegend:i6,sizeLegend:n6,lineCrosshair:s6,rectCrosshair:r6,sectorCrosshair:a6,circleCrosshair:o6,polygonCrosshair:l6,slider:h6,dataLabel:d6,pointLabel:m6,lineLabel:u6,areaLabel:p6,rectLabel:g6,symbolLabel:f6,arcLabel:_6,lineDataLabel:c6,datazoom:v6,continuousPlayer:y6,discretePlayer:b6,tooltip:x6,title:S6,scrollbar:A6},NI=5,GI={symbol:{shape:"circle",size:8},text:{fontSize:14,fill:"#000000"}},wi=Object.assign({},WI);wi.axis=Object.assign({},wi.axis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),wi.circleAxis=Object.assign({},wi.circleAxis,{label:{style:{fill:"#bbbdc3"}},line:{style:{stroke:"#4b4f54"}},tick:{style:{stroke:"#4b4f54"}},subTick:{style:{stroke:"#4b4f54"}}}),wi.grid=Object.assign({},wi.grid,{style:{stroke:"#404349"}}),wi.circleGrid=Object.assign({},wi.circleGrid,{style:{stroke:"#404349"}}),wi.rectLabel=Object.assign({},wi.rectLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),wi.lineLabel=Object.assign({},wi.lineLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),wi.symbolLabel=Object.assign({},wi.symbolLabel,{data:[{text:"",fill:"#888c93",data:{}}]}),wi.title=Object.assign({},wi.title,{textStyle:{fill:"#fdfdfd"},subtextStyle:{fill:"#888c93"}});const k6={name:"dark",padding:NI,background:"#202226",palette:{default:["#5383F4","#7BCF8E","#FF9D2C","#FFDB26","#7568D9","#80D8FB","#1857A3","#CAB0E8","#FF8867","#B9E493","#2CB4A8","#B9E4E3"]},marks:GI,components:wi},T6={name:"default",padding:NI,palette:{default:["#6690F2","#70D6A3","#B4E6E2","#63B5FC","#FF8F62","#FFDC83","#BCC5FD","#A29BFE","#63C4C7","#F68484"]},marks:GI,components:WI};let oo=class pd{static registerTheme(t,e){t&&pd._themes.set(t,e)}static unregisterTheme(t){pd._themes.delete(t)}static getTheme(t){return pd._themes.get(t)}static getDefaultTheme(){return pd.getTheme("default")}};oo._themes=new Map,oo.registerTheme("default",T6),oo.registerTheme("dark",k6);class nS extends Ih{constructor(t,e,i,s){super(t,rt.component,i),this._componentDatum={[vn]:0},this.componentType=e,this.spec.type="component",this.spec.componentType=e,this.mode=s,this._updateComponentEncoders()}configureComponent(t){return this.spec.componentConfig=t,this.commit(),this}addGraphicItem(t,e,i){const s=i??it.createGraphicComponent(this.componentType,t,{mode:this.mode,skipDefault:this.spec.skipTheme});return s&&(this.emit(ct.BEFORE_ADD_VRENDER_MARK,{graphicItem:s}),this.graphicParent.appendChild(s),this.emit(ct.AFTER_ADD_VRENDER_MARK,{graphicItem:s})),s}join(t){return super.join(t,vn)}encodeState(t,e,i){return super.encodeState(t,e,i),this._updateComponentEncoders(),this}parseRenderContext(){return{large:!1}}_prepareRejoin(){this._componentDatum[vn]+=1}evaluateJoin(t){return this.spec.key=vn,t?(t[vn]=this._componentDatum[vn],this._componentDatum=t):this._componentDatum={[vn]:this._componentDatum[vn]},super.evaluateJoin([this._componentDatum])}_updateComponentEncoders(){this._encoders=this.spec.encode}_getEncoders(){var t;return(t=this._encoders)!==null&&t!==void 0?t:{}}}class Zo extends Go{static useRegisters(t){t.forEach(e=>{e()})}constructor(t={},e={}){super(),this._observer=null,this._onResize=Xs((...i)=>{const s=this._getContainerSize();s&&this.resize(s.width,s.height)},100),this.delegateEvent=(i,s)=>{var r;const a=(r=i.target)===null||r===void 0?void 0:r[Eo],o=Tb(this,i,a,s,ao);this.emit(s,o,a)},this.handleProgressiveFrame=()=>{this._progressiveMarks.length&&this._progressiveMarks.forEach(i=>{i.isDoingProgressive()&&i.evaluateProgressive()}),this.doPreProgressive()},this._config=e,this._options=Object.assign({mode:h7},t),this.initialize()}getGrammarById(t){return this.grammars.getGrammar(t)}getSignalById(t){return this.grammars.getSignal(t)}getDataById(t){return this.grammars.getData(t)}getScaleById(t){return this.grammars.getScale(t)}getCoordinateById(t){return this.grammars.getCoordinate(t)}getMarkById(t){return this.grammars.getMark(t)}getCustomizedById(t){return this.grammars.getCustomized(t)}getGrammarsByName(t){return this.grammars.filter(e=>e.name()===t)}getGrammarsByType(t){return this.grammars.filter(e=>e.grammarType===t)}getMarksByType(t){return this.grammars.getAllMarks().filter(e=>e.markType===t)}getMarksByName(t){return this.grammars.getAllMarks().filter(e=>e.name()===t)}getMarksBySelector(t){if(!t)return null;const e=H(t),i=[];return e.forEach(s=>{if(Pu(s))return void i.push(s);if(s[0]===P7){const a=this.getMarkById(s.slice(1));return void(a&&i.push(a))}const r=s[0]===C7?this.getMarksByName(s.slice(1)):BI(s)?this.getMarksByType(s):null;r&&r.length&&r.forEach(a=>{i.push(a)})}),i}updateSignal(t,e){at(t)&&(t=this.getSignalById(t)),t.set(e),this.commit(t)}signal(t,e){const i=new x7(this);return arguments.length>=1&&i.value(t),arguments.length>=2&&i.update(e),this.grammars.record(i),this._dataflow.add(i),i}data(t){const e=new l7(this,t);return this.grammars.record(e),this._dataflow.add(e),e}scale(t){const e=it.createGrammar("scale",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}coordinate(t){const e=it.createGrammar("coordinate",this,t);return e&&(this.grammars.record(e),this._dataflow.add(e)),e}mark(t,e,i){const s=at(e)?this.getMarkById(e):e;let r;switch(t){case rt.group:r=new W7(this,s);break;case rt.glyph:r=new Y7(this,i==null?void 0:i.glyphType,s);break;case rt.component:r=it.hasComponent(i==null?void 0:i.componentType)?it.createComponent(i==null?void 0:i.componentType,this,s,i==null?void 0:i.mode):new nS(this,i==null?void 0:i.componentType,s,i==null?void 0:i.mode);break;case rt.text:r=new VI(this,t,s);break;default:r=it.hasMark(t)?it.createMark(t,this,s):new Ih(this,t,s)}return this.grammars.record(r),this._dataflow.add(r),r}group(t){return this.mark(rt.group,t)}glyph(t,e){return this.mark(rt.glyph,e,{glyphType:t})}component(t,e,i="2d"){return this.mark(rt.component,e,{componentType:t,mode:i})}axis(t,e="2d"){return this.mark(rt.component,t,{componentType:ge.axis,mode:e})}grid(t,e="2d"){return this.mark(rt.component,t,{componentType:ge.grid,mode:e})}legend(t){return this.mark(rt.component,t,{componentType:ge.legend})}slider(t){return this.mark(rt.component,t,{componentType:ge.slider})}label(t){return this.mark(rt.component,t,{componentType:ge.label})}datazoom(t){return this.mark(rt.component,t,{componentType:ge.datazoom})}player(t){return this.mark(rt.component,t,{componentType:ge.player})}title(t){return this.mark(rt.component,t,{componentType:ge.title})}scrollbar(t){return this.mark(rt.component,t,{componentType:ge.scrollbar})}customized(t,e){const i=it.createGrammar(t,this,e==null?void 0:e.type);if(i)return i.parse(e),this.grammars.record(i),this._dataflow.add(i),i}addGrammar(t){return this.grammars.find(e=>e.uid===t.uid)||(this.grammars.record(t),this._dataflow.add(t),t.parse(t.getSpec()),this._needBuildLayoutTree=!0),this}removeGrammar(t){const e=at(t)?this.getGrammarById(t):t;return e&&this.grammars.find(i=>i.uid===e.uid)?(e.grammarType==="mark"&&e.prepareRelease(),this._cachedGrammars.record(e),this._dataflow.remove(e),this.grammars.unrecord(e),this._needBuildLayoutTree=!0,this):this}removeAllGrammars(){return this.grammars.traverse(t=>{t.grammarType==="signal"&&ow.includes(t.id())||t.grammarType==="mark"&&t.id()==="root"||this.removeGrammar(t)}),this}removeAllGraphicItems(){return this.traverseMarkTree(t=>{t.graphicItem&&(zf(t.graphicItem),t.elementMap.forEach(e=>{e.resetGraphicItem()}),t.graphicItem=null)}),this}parseSpec(t){var e,i,s,r,a,o;if(this.emit(ct.BEFORE_PARSE_VIEW),this._spec=t,k7(t),t.theme?this.theme(t.theme):this.theme(oo.getDefaultTheme()),t.width&&this.width(t.width),t.height&&this.height(t.height),this.padding((i=(e=t.padding)!==null&&e!==void 0?e:this._options.padding)!==null&&i!==void 0?i:this._theme.padding),!this.width()||!this.height()){const h=this._getContainerSize();h&&(this.updateSignal(na,h.width),this.updateSignal(sa,h.height))}!((s=t.signals)===null||s===void 0)&&s.length&&t.signals.forEach(h=>{this.signal().parse(h)}),!((r=t.data)===null||r===void 0)&&r.length&&t.data.forEach(h=>{this.data(null).parse(h)}),!((a=t.coordinates)===null||a===void 0)&&a.length&&t.coordinates.forEach(h=>{var d;(d=this.coordinate(h.type))===null||d===void 0||d.parse(h)}),!((o=t.scales)===null||o===void 0)&&o.length&&t.scales.forEach(h=>{var d;(d=this.scale(h.type))===null||d===void 0||d.parse(h)});const l=it.getGrammars();return Object.keys(l).forEach(h=>{const{specKey:d}=l[h];t[d]&&t[d].length&&t[d].forEach(c=>{this.customized(h,c)})}),t.marks&&t.marks.length&&t.marks.forEach(h=>{this.parseMarkSpec(h)}),t.events&&t.events.length&&t.events.forEach(h=>{this.event(h)}),t.interactions&&t.interactions.length&&t.interactions.forEach(h=>{this.interaction(h.type,h)}),t.animation===!1?this.animate.disable():this.animate.enable(),this.emit(ct.AFTER_PARSE_VIEW),this._needBuildLayoutTree=!0,this._layoutState=cr.before,this}updateSpec(t){return this.removeAllInteractions(),this.removeAllGrammars(),this.parseSpec(t)}parseBuiltIn(){A7(this._options,this._config,this.getCurrentTheme()).forEach(t=>{const e=this.signal().parse(t);t.value&&e.set(t.value)}),this.parseMarkSpec({id:"root",type:"group",encode:{enter:{x:0,y:0},update:{width:{signal:"width"},height:{signal:"height"}}}}),this.rootMark=this.getMarkById("root")}parseMarkSpec(t){var e;const i=t.type===rt.glyph?{glyphType:t.glyphType}:t.type===rt.component?{componentType:t.componentType,mode:t.mode}:null;this.mark(t.type,t.group,i).parse(t),(e=t.marks)===null||e===void 0||e.forEach(s=>{this.parseMarkSpec(s)})}theme(t){var e,i,s,r,a,o;at(t)?this._theme=(e=oo.getTheme(t))!==null&&e!==void 0?e:oo.getDefaultTheme():this._theme=t;const{background:l,padding:h}=(i=this._spec)!==null&&i!==void 0?i:{};return this._theme?(this.background((s=l??this._options.background)!==null&&s!==void 0?s:this._theme.background),this.padding((r=h??this._options.padding)!==null&&r!==void 0?r:this._theme.padding),(o=(a=this.renderer.stage())===null||a===void 0?void 0:a.setTheme)===null||o===void 0||o.call(a,Object.assign({},this._theme.marks))):(this.background(l??this._options.background),this.padding(h??this._options.padding)),this}getCurrentTheme(){return this._theme}setCurrentTheme(t,e=!0){return this.theme(t),this.grammars.getAllMarks().forEach(i=>{i.commit()}),e?(this.evaluate(),this.renderer.render(!0)):this._dataflow.evaluate(),this}background(t){return arguments.length?(this._background=t,this.renderer.background(t),t):this._background}width(t){const e=this.getSignalById(na);return arguments.length?(this._options.width=t,this.updateSignal(e,t),t):e.output()}height(t){const e=this.getSignalById(sa);return arguments.length?(this._options.height=t,this.updateSignal(e,t),t):e.output()}viewWidth(t){const e=this.getSignalById(Gl);if(arguments.length){const i=this.padding();return this.width(t+i.left+i.right),t}return e.output()}viewHeight(t){const e=this.getSignalById(Ul);if(arguments.length){const i=this.padding();return this.height(t+i.top+i.bottom),t}return e.output()}padding(t){const e=this.getSignalById(Un);if(arguments.length){const i=ra(t);return this.updateSignal(e,i),i}return ra(e.output())}autoFit(t){const e=this.getSignalById(Pd);return arguments.length?(this.updateSignal(e,t),t):e.output()}getViewBox(){const t=this.getSignalById(eS);return t==null?void 0:t.output()}updateLayoutTag(){return this._layoutState=cr.before,this}getLayoutState(){return this._layoutState}buildLayoutTree(){const t={},e=[];this.traverseMarkTree(i=>{t[i.id()]=!0,i.group&&t[i.group.id()]||e.push(i),i.markType===rt.group&&i.updateLayoutChildren()},i=>i.needLayout()),this._layoutMarks=e}doLayout(){var t;const e=this._options.doLayout||jI;e&&(!((t=this._layoutMarks)===null||t===void 0)&&t.length)&&(this.emit(ct.BEFORE_DO_LAYOUT),e(this._layoutMarks,this._options,this),this.emit(ct.AFTER_DO_LAYOUT))}handleLayoutEnd(){this.emit(ct.BEFORE_MARK_LAYOUT_END),this._layoutMarks.forEach(t=>{J0(t,"layoutChildren",e=>{e.handleLayoutEnd()},e=>e!==t)}),this.emit(ct.AFTER_MARK_LAYOUT_END)}handleRenderEnd(){this.emit(ct.BEFORE_MARK_RENDER_END),J0(this.rootMark,"children",t=>{t.handleRenderEnd()}),this.emit(ct.AFTER_MARK_RENDER_END)}commit(t){return this._dataflow.commit(t),this}run(t){return this.evaluate(t),this}doRender(t){this.emit(ct.BEFORE_DO_RENDER),this.renderer&&(this._progressiveMarks||this.animate.animate(),this.renderer.render(t),this.handleRenderEnd()),this.emit(ct.AFTER_DO_RENDER)}evaluate(t){var e,i;const s=T7(t),r=this._cachedGrammars.size()>0;r&&(this.reuseCachedGrammars(s),this.detachCachedGrammar());const a=this._resizeRenderer(),o=this._dataflow.hasCommitted();return r||o||this._layoutState||a?(this.clearProgressive(),this._dataflow.evaluate(),this._needBuildLayoutTree&&(this.buildLayoutTree(),this._needBuildLayoutTree=!1),this._layoutState&&(this._layoutState=cr.layouting,this.doLayout(),this._dataflow.hasCommitted()&&(this._layoutState=cr.reevaluate,this._dataflow.evaluate()),this._layoutState=cr.after,!((e=this._layoutMarks)===null||e===void 0)&&e.length&&this.handleLayoutEnd()),this._layoutState=null,this.findProgressiveMarks(),this._resizeRenderer(),(i=this._willMorphMarks)===null||i===void 0||i.forEach(l=>{this._morph.morph(l.prev,l.next,s)}),this._willMorphMarks=null,this.releaseCachedGrammars(s),this.doRender(!0),this.doPreProgressive(),this):this}reuseCachedGrammars(t){if(this._willMorphMarks||(this._willMorphMarks=[]),t.reuse){const e=i=>{i.next.reuse(i.prev),i.prev.detachAll(),i.prev.clear(),this._cachedGrammars.unrecord(i.prev)};this._morph.diffGrammar(this._cachedGrammars.getAllSignals(),this.grammars.getAllSignals().filter(i=>!ow.includes(i.id()))).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllData(),this.grammars.getAllData()).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllScales(),this.grammars.getAllScales()).update.forEach(e),this._morph.diffGrammar(this._cachedGrammars.getAllCoordinates(),this.grammars.getAllCoordinates()).update.forEach(e)}this._morph.diffMark(this._cachedGrammars.getAllMarks(),this.grammars.getAllMarks().filter(e=>e.id()!=="root"),t).update.forEach(e=>{const i=e.prev.length===1&&e.next.length===1&&e.prev[0].markType===e.next[0].markType,s=e.prev.every(r=>r.getMorphConfig().morph)&&e.next.every(r=>r.getMorphConfig().morph);i&&t.reuse?(e.next[0].reuse(e.prev[0]),e.prev[0].detachAll(),e.prev[0].clear(),this._cachedGrammars.unrecord(e.prev[0])):(t.morph&&s||t.morphAll)&&this._willMorphMarks.push({prev:e.prev,next:e.next})})}detachCachedGrammar(){this._cachedGrammars.traverse(t=>{var e,i;if(t.detachAll(),t.grammarType==="mark"){const s=t;(i=(e=s.group)===null||e===void 0?void 0:e.removeChild)===null||i===void 0||i.call(e,s)}})}releaseCachedGrammars(t){this._cachedGrammars.traverse(s=>{s.grammarType!=="mark"&&s.release()});const e=this._cachedGrammars.getAllMarkNodes();e.forEach(s=>{s.mark.animate.stop(),t.enableExitAnimation&&this.animate.animateAddition(s.mark)});const i=s=>{if(s.mark.view&&s.mark.animate.getAnimatorCount()===0&&(!s.children||s.children.length===0)){s.mark.release();const r=s.parent;r&&(s.parent.children=s.parent.children.filter(a=>a!==s),s.parent=null,i(r))}};e.forEach(s=>{const r=s.mark;r.animate.getAnimatorCount()===0?i(s):r.addEventListener("animationEnd",()=>{r.animate.getAnimatorCount()===0&&i(s)})}),this._cachedGrammars.clear()}runAfter(t){return this._dataflow.runAfter(()=>{t.call(null,this)}),this}runBefore(t){return this._dataflow.runBefore(()=>{t.call(null,this)}),this}getImageBuffer(){var t,e;if(this._options.mode!=="node")return void this.logger.error(new TypeError("getImageBuffer() now only support node environment."));const i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t);return i?(i.render(),i.window.getImageBuffer()):(this.logger.error(new ReferenceError("render is not defined")),null)}traverseMarkTree(t,e,i){return J0(this.rootMark,"children",t,e,i),this}_bindResizeEvent(){var t,e,i,s,r,a;if(this.autoFit()){const o=(r=(s=(i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t))===null||i===void 0?void 0:i.window)===null||s===void 0?void 0:s.getContainer)===null||r===void 0?void 0:r.call(s);if(o){const l=window.ResizeObserver;this._observer=new l(this._onResize),(a=this._observer)===null||a===void 0||a.observe(o)}window.addEventListener("resize",this._onResize)}}_unBindResizeEvent(){this.autoFit()&&(window.removeEventListener("resize",this._onResize),this._observer&&(this._observer.disconnect(),this._observer=null))}_getContainerSize(){var t,e,i,s,r,a,o,l,h,d,c;const u=(r=(s=(i=(e=(t=this.renderer)===null||t===void 0?void 0:t.stage)===null||e===void 0?void 0:e.call(t))===null||i===void 0?void 0:i.window)===null||s===void 0?void 0:s.getContainer)===null||r===void 0?void 0:r.call(s);if(u){const{width:p,height:g}=kv(u);return{width:(l=(o=(a=this._spec)===null||a===void 0?void 0:a.width)!==null&&o!==void 0?o:this._options.width)!==null&&l!==void 0?l:p,height:(c=(d=(h=this._spec)===null||h===void 0?void 0:h.height)!==null&&d!==void 0?d:this._options.height)!==null&&c!==void 0?c:g}}return null}resize(t,e,i=!0){let s=!1;return t!==this.width()&&(s=!0,this.updateSignal(na,t)),e!==this.height()&&(s=!0,this.updateSignal(sa,e)),s&&(i?this.evaluate():this._dataflow.evaluate()),this}_resizeRenderer(){const t=this.width(),e=this.height();return!!this.renderer.shouldResize(t,e)&&(this.renderer.resize(t,e),this.emit("resize",{},{width:t,height:e}),!0)}bindEvents(t){if(this._eventConfig.disable)return;const{type:e,filter:i,callback:s,throttle:r,debounce:a,consume:o,target:l,dependency:h}=t,d=E7(e);if(!d)return;const{source:c,type:u}=d,p=M7(d),g=(Array.isArray(l)&&l.length?l.map(m=>({signal:this.getSignalById(m.target),callback:m.callback})):[{signal:at(l)?this.getSignalById(l):null,callback:s}]).filter(m=>m.signal||m.callback),f=Zx(h,this),_=w7((m,y)=>{const b=c===ao&&u7(this._eventConfig,u)||o&&(m.cancelable===void 0||m.cancelable);c===fo&&(m=Tb(this,m,y,u,fo));let v=!1;if((!i||i(m))&&(!p||p(y))&&g.length){const x=f.reduce((S,k)=>(S[k.id()]=k.output(),S),{});g.forEach(S=>{S.callback&&S.signal?S.signal.set(S.callback(m,x))&&(this.commit(S.signal),v=!0):S.callback?S.callback(m,x):(this.commit(S.signal),v=!0)})}b&&m.preventDefault(),o&&m.stopPropagation(),v&&this.run()},{throttle:r,debounce:a});if(c===ao){if(p7(this._eventConfig,ao,u))return this.addEventListener(u,_,d7),()=>{this.removeEventListener(u,_)}}else if(c===fo)return Rt.addEventListener(u,_),this._eventListeners.push({type:u,source:Rt,handler:_}),()=>{Rt.removeEventListener(u,_);const m=this._eventListeners.findIndex(y=>y.type===u&&y.source===Rt&&y.handler===_);m>=0&&this._eventListeners.splice(m,1)}}event(t){if("between"in t){const[e,i]=t.between,s=`${e.type}-${t.type}-${i.type}`;let r;this.bindEvents(Object.assign({},e,{callback:()=>{if(this._eventCache||(this._eventCache={}),!this._eventCache[s]){const a=this.bindEvents(t);this._eventCache[s]=a}r||(r=this.bindEvents(Object.assign({},i,{callback:()=>{this._eventCache[s]&&(this._eventCache[s](),this._eventCache[s]=null)}})))}}))}else"merge"in t?t.merge.forEach(e=>{const i=Object.assign({},t);at(e)?i.type=e:Ct(e)&&Object.assign(i,e),i.debounce=50,this.bindEvents(i)}):this.bindEvents(t)}interaction(t,e){const i=it.createInteraction(t,this,e);return i&&(i.bind(),this._boundInteractions||(this._boundInteractions=[]),this._boundInteractions.push(i)),i}removeInteraction(t,e){if(this._boundInteractions){const i=this._boundInteractions.filter(s=>{var r;return C(e)?at(t)?s.type===t:t?s===t:void 0:((r=s.options)===null||r===void 0?void 0:r.id)===e});i.length&&i.forEach(s=>{s.unbind()})}return this}removeAllInteractions(){return this._boundInteractions&&(this._boundInteractions.forEach(t=>{t.unbind()}),this._boundInteractions=null),this}initEvent(){const t=this.renderer.stage();t&&t.on("*",this.delegateEvent)}releaseStageEvent(){const t=this.renderer.stage();t&&t.off("*",this.delegateEvent)}addEventListener(t,e,i){let s=e;return i&&i.trap===!1||(s=e,s.raw=e),i&&i.target&&(s.target=i.target),this.on(t,s),this}removeEventListener(t,e){return e?this.off(t,e):this.off(t),this}initializeRenderer(){const t=this._options.width,e=this._options.height;this.renderer=new _7(this),this.renderer.initialize(t,e,this._options,this._eventConfig).background(this._background)}initialize(){var t;this.grammars=new HI(e=>e.id(),(e,i)=>this.logger.warn(`Grammar id '${e}' has been occupied`,i)),this._cachedGrammars=new K7(e=>e.id()),this._options.logger&&Lt.setInstance(this._options.logger),this.logger=Lt.getInstance((t=this._options.logLevel)!==null&&t!==void 0?t:0),this._dataflow=new f7,this.animate=new q7(this),this._morph=new X7,this._options.hooks&&(Object.keys(this._options.hooks).forEach(e=>{this.on(e,this._options.hooks[e])}),this.hooks=this._options.hooks),this.container=null,this.renderer=null,this._eventListeners=[],this._eventConfig=c7(this._options.eventConfig),this._theme=this._options.disableTheme?null:oo.getDefaultTheme(),this.parseBuiltIn(),R7(this._options),this.initializeRenderer(),this._eventConfig.disable||this.initEvent(),this._bindResizeEvent(),this._needBuildLayoutTree=!0,this._layoutState=cr.before,this.theme(this._theme)}pauseProgressive(){return!1}resumeProgressive(){return!1}restartProgressive(){return!1}findProgressiveMarks(){const t=[];return this.traverseMarkTree(e=>{t.push(e)},e=>e.markType!==rt.group&&e.isProgressive()),t.length?(this._progressiveMarks=t,this.renderer&&this.renderer.combineIncrementalLayers(),t):(this._progressiveMarks=null,null)}doPreProgressive(){if(this._progressiveMarks&&this._progressiveMarks.some(t=>t.isDoingProgressive())){const t=Rt.getRequestAnimationFrame();this._progressiveRafId=t(this.handleProgressiveFrame)}}clearProgressive(){this._progressiveRafId&&Rt.getCancelAnimationFrame()(this._progressiveRafId),this._progressiveMarks&&this._progressiveMarks.length&&(this._progressiveMarks.forEach(t=>{t.clearProgressive()}),this._progressiveMarks=null)}release(){var t,e,i;this.removeAllInteractions(),this.releaseStageEvent(),this._unBindResizeEvent(),this.clearProgressive(),it.unregisterRuntimeTransforms(),Lt.setInstance(null),this.animate.stop(),this.grammars.release(),this._cachedGrammars.release(),this._dataflow.release(),this._dataflow=null,(e=(t=this.renderer)===null||t===void 0?void 0:t.release)===null||e===void 0||e.call(t),this.renderer=null,this._boundInteractions=null,this.removeAllListeners(),(i=this._eventListeners)===null||i===void 0||i.forEach(s=>{s.source.removeEventListener(s.type,s.handler)}),this._eventListeners=null}}const M6=()=>{Di(),Rh(),it.registerGraphic(rt.arc,Ex)},w6=()=>{Di(),J4(),it.registerGraphic(rt.arc3d,XR)},C6=()=>{Di(),e$(),it.registerGraphic(rt.pyramid3d,qR)},P6=()=>{Di(),dB(),it.registerGraphic(rt.area,YR)},E6=()=>{Di(),We(),it.registerGraphic(rt.group,xx)},R6=()=>{Di(),cB(),it.registerGraphic(rt.image,Px)},B6=()=>{Di(),Or(),it.registerGraphic(rt.line,Cx)},UI=()=>{Di(),Au(),it.registerGraphic(rt.path,$R)},sS=()=>{Di(),Lr(),it.registerGraphic(rt.rect,wo)},I6=()=>{Di(),i$(),it.registerGraphic(rt.rect3d,NR)},rS=()=>{Di(),Or(),it.registerGraphic(rt.rule,Cx)},$I=()=>{Di(),ss(),it.registerGraphic(rt.symbol,tm)},YI=()=>{Di(),Ks(),Ha(),it.registerGraphic(rt.text,ih)},O6=()=>{Di(),am(),it.registerGraphic(rt.polygon,KR)},L6=()=>{Di(),Ha(),it.registerGraphic(rt.richtext,UR)},D6=()=>{Di(),ss(),it.registerGraphic(rt.cell,tm)},Rm=()=>{Di(),t$(),it.registerGraphic(rt.glyph,GR)},XI=n=>(t,e,i)=>{var s,r,a;const o=(a=(s=t.getGraphicAttribute("direction",!1))!==null&&s!==void 0?s:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=n(t,o,e);if(!z(l))return{};const h=t.getGraphicAttribute("x",!1),d=t.getGraphicAttribute("y",!1),c=t.getGraphicAttribute("min",!1),u=t.getGraphicAttribute("max",!1),p=t.getGraphicAttribute("q1",!1),g=t.getGraphicAttribute("q3",!1),f=t.getGraphicAttribute("median",!1),_={from:{x:h,y:d},to:{x:h,y:d}};return z(c)&&(_.from.min=l,_.to.min=c),z(u)&&(_.from.max=l,_.to.max=u),z(p)&&(_.from.q1=l,_.to.q1=p),z(g)&&(_.from.q3=l,_.to.q3=g),z(f)&&(_.from.median=l,_.to.median=f),_},KI=n=>(t,e,i)=>{var s,r,a;const o=(a=(s=t.getGraphicAttribute("direction",!1))!==null&&s!==void 0?s:(r=t.mark.getGlyphConfig())===null||r===void 0?void 0:r.direction)!==null&&a!==void 0?a:"vertical",l=n(t,o,e);if(!z(l))return{};const h=t.getGraphicAttribute("x",!0),d=t.getGraphicAttribute("y",!0),c=t.getGraphicAttribute("min",!0),u=t.getGraphicAttribute("max",!0),p=t.getGraphicAttribute("q1",!0),g=t.getGraphicAttribute("q3",!0),f=t.getGraphicAttribute("median",!0),_={from:{x:h,y:d},to:{x:h,y:d}};return z(c)&&(_.to.min=l,_.from.min=c),z(u)&&(_.to.max=l,_.from.max=u),z(p)&&(_.to.q1=l,_.from.q1=p),z(g)&&(_.to.q3=l,_.from.q3=g),z(f)&&(_.to.median=l,_.from.median=f),_},qI=(n,t,e)=>{var i,s,r,a,o,l,h,d,c,u,p,g;if(e&&z(e.center))return e.center;let f,_,m,y,b;if(Ei(t)){f=(s=(i=n.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.x,_=(a=(r=n.getGraphicAttribute("points",!1,"max"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.x,m=(l=(o=n.getGraphicAttribute("points",!1,"min"))===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.x;const v=n.getGraphicAttribute("width",!1,"box"),x=n.getGraphicAttribute("x",!1,"box");y=x,b=x+v}else{f=(d=(h=n.getGraphicAttribute("points",!1,"median"))===null||h===void 0?void 0:h[0])===null||d===void 0?void 0:d.y,_=(u=(c=n.getGraphicAttribute("points",!1,"max"))===null||c===void 0?void 0:c[0])===null||u===void 0?void 0:u.y,m=(g=(p=n.getGraphicAttribute("points",!1,"min"))===null||p===void 0?void 0:p[0])===null||g===void 0?void 0:g.y;const v=n.getGraphicAttribute("height",!1,"box"),x=n.getGraphicAttribute("y",!1,"box");y=x,b=x+v}return z(f)?f:z(y)&&z(b)?(y+b)/2:z(_)&&z(m)?(_+m)/2:z(m)?m:z(_)?_:NaN},F6=(n,t,e,i)=>{var s,r,a,o,l,h,d,c;const u={shaft:{},box:{},max:{},min:{},median:{}},p=(s=n.x)!==null&&s!==void 0?s:e.getGraphicAttribute("x",!1),g=(r=n.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),f=(a=n.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),_=(o=n.height)!==null&&o!==void 0?o:e.getGraphicAttribute("height",!1),m=(l=n.boxWidth)!==null&&l!==void 0?l:e.getGraphicAttribute("boxWidth",!1),y=(h=n.boxHeight)!==null&&h!==void 0?h:e.getGraphicAttribute("boxHeight",!1),b=(d=n.ruleWidth)!==null&&d!==void 0?d:e.getGraphicAttribute("ruleWidth",!1),v=(c=n.ruleHeight)!==null&&c!==void 0?c:e.getGraphicAttribute("ruleHeight",!1);return i&&Ei(i.direction)?(z(y)?(Object.assign(u.box,{y:g-y/2,y1:g+y/2}),Object.assign(u.median,{y:g-y/2,y1:g+y/2})):(Object.assign(u.box,{y:g-_/2,y1:g+_/2}),Object.assign(u.median,{y:g-_/2,y1:g+_/2})),z(v)?(Object.assign(u.max,{y:g-v/2,y1:g+v/2}),Object.assign(u.min,{y:g-v/2,y1:g+v/2})):(Object.assign(u.max,{y:g-_/2,y1:g+_/2}),Object.assign(u.min,{y:g-_/2,y1:g+_/2}))):(z(m)?(Object.assign(u.box,{x:p-m/2,x1:p+m/2}),Object.assign(u.median,{x:p-m/2,x1:p+m/2})):(Object.assign(u.box,{x:p-f/2,x1:p+f/2}),Object.assign(u.median,{x:p-f/2,x1:p+f/2})),z(b)?(Object.assign(u.max,{x:p-b/2,x1:p+b/2}),Object.assign(u.min,{x:p-b/2,x1:p+b/2})):(Object.assign(u.max,{x:p-f/2,x1:p+f/2}),Object.assign(u.min,{x:p-f/2,x1:p+f/2}))),u},z6=XI(qI),j6=KI(qI);function H6(){it.registerGlyph("boxplot",{shaft:"rule",box:"rect",max:"rule",min:"rule",median:"rule"}).registerProgressiveChannels(["x","y","q1","q3","min","max","median","angle","width","height","boxWidth","boxHeight","ruleWidth","ruleHeight"]).registerFunctionEncoder(F6).registerChannelEncoder("x",(n,t,e,i,s,r)=>r&&Ei(r.direction)?null:{shaft:{x:t,x1:t}}).registerChannelEncoder("y",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{shaft:{y:t,y1:t}}:null).registerChannelEncoder("q1",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{box:{x:t}}:{box:{y:t}}).registerChannelEncoder("q3",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{box:{x1:t}}:{box:{y1:t}}).registerChannelEncoder("min",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{shaft:{x:t},min:{x:t,x1:t,visible:!0}}:{shaft:{y:t},min:{y:t,y1:t,visible:!0}}).registerChannelEncoder("max",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{shaft:{x1:t},max:{x:t,x1:t,visible:!0}}:{shaft:{y1:t},max:{y:t,y1:t,visible:!0}}).registerChannelEncoder("median",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(n,t,e,i,s,r)=>{var a;const o=r&&Ei(r.direction)?[(e.min+e.max)/2,e.y]:[e.x,(e.min+e.max)/2],l=(a=e.anchor)!==null&&a!==void 0?a:o;return{shaft:{angle:t,anchor:l},box:{angle:t,anchor:l},max:{angle:t,anchor:l},min:{angle:t,anchor:l},median:{angle:t,anchor:l}}}).registerDefaultEncoder(()=>({max:{visible:!1},min:{visible:!1},median:{visible:!1}})),it.registerAnimationType("boxplotScaleIn",z6),it.registerAnimationType("boxplotScaleOut",j6),Rm(),sS(),rS()}const ZI=(n,t,e)=>{var i,s,r,a;if(z(e==null?void 0:e.center))return e.center;let o,l,h,d,c;if(Ei(t)){o=(s=(i=n.getGraphicAttribute("points",!1,"median"))===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.x;const u=n.getGraphicAttribute("width",!1,"minMaxBox"),p=n.getGraphicAttribute("x",!1,"minMaxBox");h=p,l=p+u;const g=n.getGraphicAttribute("width",!1,"q1q3Box"),f=n.getGraphicAttribute("x",!1,"q1q3Box");d=f,c=f+g}else{o=(a=(r=n.getGraphicAttribute("points",!1,"median"))===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.y;const u=n.getGraphicAttribute("height",!1,"minMaxBox"),p=n.getGraphicAttribute("y",!1,"minMaxBox");h=p,l=p+u;const g=n.getGraphicAttribute("height",!1,"q1q3Box"),f=n.getGraphicAttribute("y",!1,"q1q3Box");d=f,c=f+g}return z(o)?o:z(d)&&z(c)?(d+c)/2:z(l)&&z(h)?(l+h)/2:z(h)?h:z(l)?l:NaN},V6=(n,t,e,i)=>{var s,r,a,o,l,h,d,c;const u={minMaxBox:{},q1q3Box:{},median:{}},p=(s=n.x)!==null&&s!==void 0?s:e.getGraphicAttribute("x",!1),g=(r=n.y)!==null&&r!==void 0?r:e.getGraphicAttribute("y",!1),f=(a=n.width)!==null&&a!==void 0?a:e.getGraphicAttribute("width",!1),_=(o=n.minMaxWidth)!==null&&o!==void 0?o:e.getGraphicAttribute("minMaxWidth",!1),m=(l=n.q1q3Width)!==null&&l!==void 0?l:e.getGraphicAttribute("q1q3Width",!1),y=(h=n.height)!==null&&h!==void 0?h:e.getGraphicAttribute("height",!1),b=(d=n.minMaxHeight)!==null&&d!==void 0?d:e.getGraphicAttribute("minMaxHeight",!1),v=(c=n.q1q3Height)!==null&&c!==void 0?c:e.getGraphicAttribute("q1q3Height",!1);return i&&Ei(i.direction)?(z(b)?Object.assign(u.minMaxBox,{y:g-b/2,y1:g+b/2}):Object.assign(u.minMaxBox,{y:g-y/2,y1:g+y/2}),z(v)?(Object.assign(u.q1q3Box,{y:g-v/2,y1:g+v/2}),Object.assign(u.median,{y:g-v/2,y1:g+v/2})):(Object.assign(u.q1q3Box,{y:g-y/2,y1:g+y/2}),Object.assign(u.median,{y:g-y/2,y1:g+y/2}))):(z(_)?Object.assign(u.minMaxBox,{x:p-_/2,x1:p+_/2}):Object.assign(u.minMaxBox,{x:p-f/2,x1:p+f/2}),z(m)?(Object.assign(u.q1q3Box,{x:p-m/2,x1:p+m/2}),Object.assign(u.median,{x:p-m/2,x1:p+m/2})):(Object.assign(u.q1q3Box,{x:p-f/2,x1:p+f/2}),Object.assign(u.median,{x:p-f/2,x1:p+f/2}))),u},W6=XI(ZI),N6=KI(ZI);function G6(){it.registerGlyph("barBoxplot",{minMaxBox:"rect",q1q3Box:"rect",median:"rule"}).registerProgressiveChannels(["x","y","q1","q3","min","max","median","angle","width","height","minMaxWidth","q1q3Width","minMaxHeight","q1q3Height"]).registerFunctionEncoder(V6).registerChannelEncoder("q1",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{q1q3Box:{x:t}}:{q1q3Box:{y:t}}).registerChannelEncoder("q3",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{q1q3Box:{x1:t}}:{q1q3Box:{y1:t}}).registerChannelEncoder("min",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{minMaxBox:{x:t}}:{minMaxBox:{y:t}}).registerChannelEncoder("max",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{minMaxBox:{x1:t}}:{minMaxBox:{y1:t}}).registerChannelEncoder("median",(n,t,e,i,s,r)=>r&&Ei(r.direction)?{median:{x:t,x1:t,visible:!0}}:{median:{y:t,y1:t,visible:!0}}).registerChannelEncoder("angle",(n,t,e,i,s,r)=>{var a;const o=(a=e.anchor)!==null&&a!==void 0?a:[e.x,(e.min+e.max)/2];return{minMaxBox:{angle:t,anchor:o},q1q3Box:{angle:t,anchor:o},median:{angle:t,anchor:o}}}).registerChannelEncoder("lineWidth",(n,t,e,i,s,r)=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0}})).registerChannelEncoder("minMaxFillOpacity",(n,t,e,i,s,r)=>({minMaxBox:{fillOpacity:t}})).registerChannelEncoder("stroke",(n,t,e,i,s,r)=>({minMaxBox:{stroke:!1},q1q3Box:{stroke:!1}})).registerDefaultEncoder(()=>({minMaxBox:{lineWidth:0},q1q3Box:{lineWidth:0},median:{visible:!1}})),it.registerAnimationType("barBoxplotScaleIn",W6),it.registerAnimationType("barBoxplotScaleOut",N6),Rm(),sS(),rS()}const U6=()=>{it.registerGlyph("ripplePoint",{symbol:"symbol",ripple0:"symbol",ripple1:"symbol",ripple2:"symbol"}).registerFunctionEncoder((n,t,e,i)=>{var s;const r=Math.max(0,Math.min(n.ripple,1)),a=(s=n.size)!==null&&s!==void 0?s:e.getGraphicAttribute("size"),o=.5*a;return{ripple0:{size:a+o*r,fillOpacity:.75-.25*r},ripple1:{size:a+o*(1+r),fillOpacity:.5-.25*r},ripple2:{size:a+o*(2+r),fillOpacity:.25-.25*r}}}).registerDefaultEncoder(()=>({ripple0:{fillOpacity:.75},ripple1:{fillOpacity:.5},ripple2:{fillOpacity:.25}})),Rm(),$I()},$6=(n,t)=>{var e;const i=(e=n.curvature)!==null&&e!==void 0?e:.5,s=typeof t=="number"?n.thickness*t:n.thickness;let r=n.x0,a=n.x1,o=n.y0,l=n.y1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;n.round!==!1&&(r=Math.round(r),a=Math.round(a),o=Math.round(o),l=Math.round(l),h=Math.round(h),d=Math.round(d),c=Math.round),n.pathType==="line"||n.pathType,n.align==="center"?(o=c(n.y0-s/2),l=c(n.y1-s/2)):n.align==="end"?(o=c(n.y0+n.thickness/2-s),l=c(n.y1+n.thickness/2-s)):(o=c(n.y0-n.thickness/2),l=c(n.y1-n.thickness/2));const u=c(o+s),p=c(l+s),g=Math.abs(a-r)>1e-6,f=n.endArrow&&g?`L${a},${c(l-s/2)}L${c(a+s)},${c((l+p)/2)}L${a},${c(p+s/2)}`:"",_=n.startArrow&&g?`L${r},${c(u+s/2)}L${c(r-s)},${c((o+u)/2)}L${r},${c(o-s/2)}`:"";return n.pathType==="line"?`M${r},${o}L${a},${l}${f}L${a},${p}L${r},${u}${_}Z`:n.pathType==="polyline"?`M${r},${o}L${h},${o}L${h},${l}L${a},${l} + ${f}L${a},${p}L${h},${p}L${h},${u}L${r},${u}${_}Z`:`M${r},${o}C${h},${o},${d},${l},${a},${l} + ${f}L${a},${p}C${d},${p},${h},${u},${r},${u}${_}Z`},Y6=(n,t)=>{var e;const i=(e=n.curvature)!==null&&e!==void 0?e:.5,s=typeof t=="number"?n.thickness*t:n.thickness;let r=n.y0,a=n.y1,o=n.x0,l=n.x1,h=r+i*(a-r),d=a+i*(r-a),c=m=>m;n.round!==!1&&(c=Math.round,r=Math.round(r),a=Math.round(a),o=Math.round(o),l=Math.round(l),h=Math.round(h),d=Math.round(d)),n.pathType==="line"||n.pathType,n.align==="center"?(o=c(n.x0-s/2),l=c(n.x1-s/2)):n.align==="end"?(o=c(n.x0+n.thickness/2-s),l=c(n.x1+n.thickness/2-s)):(o=c(n.x0-n.thickness/2),l=c(n.x1-n.thickness/2));const u=c(o+s),p=c(l+s),g=Math.abs(a-r)>1e-6,f=n.endArrow&&g?`L${c(l-s/2)},${a}L${c((l+p)/2)},${c(a+s)}L${c(p+s/2)},${a}`:"",_=n.startArrow&&g?`L${c(u+s/2)},${r}L${c((u+o)/2)},${c(r-s)}L${c(o-s/2)},${r}`:"";return n.pathType==="line"?`M${o},${r}L${l},${a}${f}L${p},${a}L${u},${r}${_}Z`:n.pathType==="polyline"?`M${o},${r}L${o},${h}L${l},${h}L${l},${a} + ${f}L${p},${a}L${p},${h}L${u},${h}L${u},${r}${_}Z`:`M${o},${r}C${o},${h},${l},${d},${l},${a} + ${f}L${p},${a}C${p},${d},${u},${h},${u},${r}${_}Z`},X6=(n,t,e,i)=>{var s;const r=(s=n.direction)!==null&&s!==void 0?s:i==null?void 0:i.direction,a=["vertical","TB","BT"].includes(r)?Y6:$6,o=typeof n.ratio=="number"&&n.ratio>=0&&n.ratio<=1,l=Object.keys(n);return["x0","y0","x1","y1"].every(h=>l.includes(h))?{back:{path:o?a(n,1):""},front:{path:a(n,o?n.ratio:1)}}:{}},K6=(n,t,e)=>{const i={x0:n.getGraphicAttribute("x0",!1),x1:n.getGraphicAttribute("x1",!1),y0:n.getGraphicAttribute("y0",!1),y1:n.getGraphicAttribute("y1",!1),thickness:n.getGraphicAttribute("thickness",!1),round:n.getGraphicAttribute("round",!1),align:n.getGraphicAttribute("align",!1),pathType:n.getGraphicAttribute("pathType",!1),endArrow:n.getGraphicAttribute("endArrow",!1),startArrow:n.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(s=>{C(i[s])&&delete i[s]}),{from:Object.assign({},i,{x1:i.x0,y1:i.y0}),to:i}},q6=(n,t,e)=>{const i={x0:n.getGraphicAttribute("x0",!0),x1:n.getGraphicAttribute("x1",!0),y0:n.getGraphicAttribute("y0",!0),y1:n.getGraphicAttribute("y1",!0),thickness:n.getGraphicAttribute("thickness",!0),round:n.getGraphicAttribute("round",!0),align:n.getGraphicAttribute("align",!0),pathType:n.getGraphicAttribute("pathType",!0),endArrow:n.getGraphicAttribute("endArrow",!0),startArrow:n.getGraphicAttribute("startArrow",!0)};return Object.keys(i).forEach(s=>{C(i[s])&&delete i[s]}),{from:i,to:Object.assign({},i,{x1:i.x0,y1:i.y0})}},Z6=(n,t,e)=>{const i={thickness:n.getGraphicAttribute("thickness",!1),round:n.getGraphicAttribute("round",!1),align:n.getGraphicAttribute("align",!1),pathType:n.getGraphicAttribute("pathType",!1),endArrow:n.getGraphicAttribute("endArrow",!1),startArrow:n.getGraphicAttribute("startArrow",!1)};return Object.keys(i).forEach(s=>{C(i[s])&&delete i[s]}),{from:Object.assign(Object.assign({x0:n.getGraphicAttribute("x0",!0),x1:n.getGraphicAttribute("x1",!0),y0:n.getGraphicAttribute("y0",!0),y1:n.getGraphicAttribute("y1",!0)},i),i),to:Object.assign({x0:n.getGraphicAttribute("x0",!1),x1:n.getGraphicAttribute("x1",!1),y0:n.getGraphicAttribute("y0",!1),y1:n.getGraphicAttribute("y1",!1)},i)}},J6=()=>{it.registerGlyph("linkPath",{back:"path",front:"path"}).registerFunctionEncoder(X6).registerChannelEncoder("backgroundStyle",(n,t)=>({back:t})).registerDefaultEncoder(()=>({back:{zIndex:0},front:{zIndex:1}})),it.registerAnimationType("linkPathGrowIn",K6),it.registerAnimationType("linkPathGrowOut",q6),it.registerAnimationType("linkPathUpdate",Z6),Rm(),UI()};class JI extends nS{parseAddition(t){return super.parseAddition(t),this.scale(t.scale),this}scale(t){if(this.spec.scale){const i=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;this.detach(i),this.spec.scale=void 0}const e=at(t)?this.view.getScaleById(t):t;return this.spec.scale=e,this.attach(e),this._updateComponentEncoders(),this.commit(),this}getScale(){return at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale}}const Q6=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.axis)!==null&&r!==void 0?r:{};if(!n)return Y({},l,e??{});const h=[((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return Y({},l,{items:h},e??{})},t9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.circleAxis)!==null&&r!==void 0?r:{};if(!n)return Y({},l,e??{});const h=[((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}))];return Y({},l,{items:h},e??{})},QI=(n,t,e,i,s,r)=>{var a;const o=n.getCoordinateAxisPosition();s&&s.position==="auto"&&(s.position=e?"content":o);const l=n.getCoordinateAxisPoints(i);if(l){const c={start:l[0],end:l[1],verticalFactor:(o==="top"||o==="left"?-1:1)*(e?-1:1)*(!((a=n.getSpec().range)===null||a===void 0)&&a.reversed?-1:1)};if(r&&t.type==="polar"){const u=t.angle();c.center=t.origin(),c.startAngle=u[0],c.endAngle=u[1]}return c}const h=t.radius(),d=t.angle();return{center:t.origin(),radius:h[1],innerRadius:h[0],inside:e,startAngle:d[0],endAngle:d[1]}};class tO extends JI{constructor(t,e,i){super(t,ge.axis,e),this.spec.componentType=ge.axis,this.mode=i}parseAddition(t){return super.parseAddition(t),this.axisType(t.axisType),this.tickCount(t.tickCount),this.inside(t.inside),this.baseValue(t.baseValue),this}scale(t){return super.scale(t),this._axisComponentType=null,this}axisType(t){return this.spec.axisType=t,this._axisComponentType=null,this._prepareRejoin(),this.commit(),this}addGraphicItem(t,e){const i=Y({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),s=it.createGraphicComponent(this._getAxisComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,s)}tickCount(t){const e=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;return e&&e.tickCount(t),this.setFunctionSpec(t,"tickCount")}inside(t){return this.setFunctionSpec(t,"inside")}baseValue(t){return this.setFunctionSpec(t,"baseValue")}getAxisComponentType(){return this._axisComponentType}_updateComponentEncoders(){const t=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale,e=Object.assign({update:{}},this.spec.encode),i=Object.keys(e).reduce((s,r)=>{const a=e[r];return a&&(s[r]={callback:(o,l,h)=>{var d,c;const u=this.spec.skipTheme?null:this.view.getCurrentTheme();let p=_a(a,o,l,h);const g=He(this.spec.inside,h,o,l),f=He(this.spec.baseValue,h,o,l),_=(d=t==null?void 0:t.getCoordinate)===null||d===void 0?void 0:d.call(t);_&&(p=Object.assign(QI(t,_,g,f,this.spec.layout),p));const m=(c=t==null?void 0:t.getScale)===null||c===void 0?void 0:c.call(t),y=He(this.spec.tickCount,h,o,l);switch(this._getAxisComponentType()){case Vs.lineAxis:return Q6(m,u,p,y);case Vs.circleAxis:return t9(m,u,p,y)}return p}}),s},{});this._encoders=i}_getAxisComponentType(){var t;if(this._axisComponentType)return this._axisComponentType;let e=this.spec.axisType;if(C(e)){const i=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;e=!((t=i==null?void 0:i.getCoordinate)===null||t===void 0)&&t.call(i)?i.getCoordinateAxisPoints()?"line":"circle":"line"}return this._axisComponentType=e==="circle"?Vs.circleAxis:Vs.lineAxis,this._axisComponentType}}tO.componentType=ge.axis;const e9=()=>{it.registerGraphicComponent(Vs.lineAxis,(n,t)=>new Lc(n,t)),it.registerGraphicComponent(Vs.circleAxis,n=>new Dc(n)),it.registerComponent(ge.axis,tO)},i9=(n,t,e,i,s,r={})=>{var a;const o=(a=r.components)===null||a===void 0?void 0:a.dataLabel,l=n.map((h,d)=>{var c,u,p,g,f;const _=Object.assign(Object.assign({},s),{labelIndex:d}),m=(c=He(i,_,h))!==null&&c!==void 0?c:{},{components:y={}}=r;let b={};switch(h.markType){case rt.line:case rt.area:b=m.type==="line"?y.lineLabel:m.type==="area"?y.areaLabel:y.lineDataLabel;break;case rt.rect:case rt.rect3d:case rt.interval:b=y.rectLabel;break;case rt.symbol:case rt.circle:case rt.cell:b=y.symbolLabel;break;case rt.arc:case rt.arc3d:b=y.arcLabel;break;case rt.polygon:case rt.path:default:b=y.pointLabel}const v=(u=m.data)!==null&&u!==void 0?u:[],x=(g=(p=b==null?void 0:b.data)===null||p===void 0?void 0:p[0])!==null&&g!==void 0?g:{};v&&v.length>0?v.forEach((k,A)=>{if(h.elements[A]){const T=_a(e,k,h.elements[A],_);Y(k,x,T)}}):h.elements.forEach(k=>{if(k.getGraphicItem().releaseStatus!=="willRelease")if(h.isCollectionMark())k.getDatum().forEach(A=>{const T=_a(e,A,k,_);v.push(Y({},x,T))});else{const A=_a(e,k.getDatum(),k,_),T=Y({},x,A);v.push(T)}});const S=(f=h.graphicItem)===null||f===void 0?void 0:f.name;return Y({},b,{data:v,baseMarkGroupName:S,getBaseMarks:()=>h.elements.map(k=>k.getGraphicItem())},m??{})}).filter(h=>!C(h));return Y({},o,{size:t,dataLabels:l})};let eO=class extends nS{constructor(t,e){super(t,ge.label,e),this.spec.componentType=ge.label}parseAddition(t){return super.parseAddition(t),this.labelStyle(t.labelStyle),this.size(t.size),this.target(t.target),this}labelStyle(t){return this.setFunctionSpec(t,"labelStyle")}size(t){return this.setFunctionSpec(t,"size")}target(t){if(this.spec.target){const e=H(this.spec.target).map(i=>at(i)?this.view.getMarkById(i):i);this.detach(e)}if(this.spec.target=t,t){const e=H(t).map(i=>at(i)?this.view.getMarkById(i):i);this.attach(e)}return this.commit(),this}_updateComponentEncoders(){const t=Object.assign({update:{}},this.spec.encode),e=Object.keys(t).reduce((i,s)=>{const r=t[s];return r&&(i[s]={callback:(a,o,l)=>{var h,d,c,u;const p=H(this.spec.target).map(m=>at(m)?this.view.getMarkById(m):m),g=(d=(h=this.group)===null||h===void 0?void 0:h.getGroupGraphicItem)===null||d===void 0?void 0:d.call(h);let f=He(this.spec.size,l);f||(f=g?{width:(c=g.attribute.width)!==null&&c!==void 0?c:g.AABBBounds.width(),height:(u=g.attribute.height)!==null&&u!==void 0?u:g.AABBBounds.height()}:{width:1/0,height:1/0});const _=this.spec.skipTheme?null:this.view.getCurrentTheme();return i9(p,f,r,this.spec.labelStyle,l,_)}}),i},{});this._encoders=e}};eO.componentType=ge.label;const iO=()=>{it.registerGraphicComponent(ge.label,n=>new mm(n)),it.registerComponent(ge.label,eO)},n9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.grid)!==null&&r!==void 0?r:{};if(!n)return Y({},l,e??{});const h=((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return Y({},l,{items:h},e??{})},s9=(n,t,e,i)=>{var s,r,a,o;const l=(r=(s=t==null?void 0:t.components)===null||s===void 0?void 0:s.circleGrid)!==null&&r!==void 0?r:{};if(!n)return Y({},l,e??{});const h=((o=(a=n.tickData)===null||a===void 0?void 0:a.call(n,i))!==null&&o!==void 0?o:[]).map(d=>({id:d.index,label:d.tick,value:d.value,rawValue:d.tick}));return Y({},l,{items:h},e??{})};class nO extends JI{constructor(t,e,i){super(t,ge.grid,e),this.spec.componentType=ge.grid,this.mode=i}parseAddition(t){return super.parseAddition(t),this.target(t.target),this.gridType(t.gridType),this.gridShape(t.gridShape),this}scale(t){return super.scale(t),this._gridComponentType=null,this}gridType(t){return this.spec.gridType=t,this._gridComponentType=null,this._prepareRejoin(),this.commit(),this}gridShape(t){return this.spec.gridShape=t,this.commit(),this}target(t){if(this.spec.target){const i=at(this.spec.target)?this.view.getMarkById(this.spec.target):this.spec.target;this.detach(i)}this.spec.target=t;const e=at(t)?this.view.getMarkById(t):t;return this.attach(e),this._targetAxis=e,this._gridComponentType=null,this._updateComponentEncoders(),this.commit(),this}tickCount(t){const e=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;return e&&e.tickCount(t),this.setFunctionSpec(t,"tickCount")}inside(t){return this.setFunctionSpec(t,"inside")}baseValue(t){return this.setFunctionSpec(t,"baseValue")}addGraphicItem(t,e){const i=Y({x:0,y:0,start:{x:0,y:0},end:{x:0,y:0}},t),s=it.createGraphicComponent(this._getGridComponentType(),i,{mode:this.mode,skipDefault:this.spec.skipTheme});return super.addGraphicItem(i,e,s)}_updateComponentEncoders(){const t=Object.assign({update:{}},this.spec.encode),e=Object.keys(t).reduce((i,s)=>{const r=t[s];return r&&(i[s]={callback:(a,o,l)=>{var h,d,c,u;const p=this.spec.skipTheme?null:this.view.getCurrentTheme();let g,f=_a(r,a,o,l);const _=He(this.spec.baseValue,l,a,o);if(this._targetAxis){const b=(h=this._targetAxis.getSpec())===null||h===void 0?void 0:h.scale;g=at(b)?this.view.getScaleById(b):b;const v=this._targetAxis.elements[0];if(v)switch(this._getGridComponentType()){case gi.lineAxisGrid:f=Object.assign({x:v.getGraphicAttribute("x"),y:v.getGraphicAttribute("y"),start:v.getGraphicAttribute("start"),end:v.getGraphicAttribute("end"),verticalFactor:(d=v.getGraphicAttribute("verticalFactor"))!==null&&d!==void 0?d:1},f);break;case gi.circleAxisGrid:f=Object.assign({x:v.getGraphicAttribute("x"),y:v.getGraphicAttribute("y"),center:v.getGraphicAttribute("center"),radius:v.getGraphicAttribute("radius"),innerRadius:v.getGraphicAttribute("innerRadius"),inside:v.getGraphicAttribute("inside"),startAngle:v.getGraphicAttribute("startAngle"),endAngle:v.getGraphicAttribute("endAngle")},f)}}else{g=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;const b=He(this.spec.inside,l,a,o),v=(c=g==null?void 0:g.getCoordinate)===null||c===void 0?void 0:c.call(g);v&&(f=Object.assign(QI(g,v,b,_,this.spec.layout,!0),f))}this._getGridComponentType()===gi.lineAxisGrid&&(f=this.spec.gridShape!=="line"&&this.spec.gridShape?Object.assign({center:f.start,closed:!0},f,{type:this.spec.gridShape}):Object.assign({},f,{type:"line"}));const m=(u=g==null?void 0:g.getScale)===null||u===void 0?void 0:u.call(g),y=He(this.spec.tickCount,l,a,o);switch(this._getGridComponentType()){case gi.lineAxisGrid:return n9(m,p,f,y);case gi.circleAxisGrid:return s9(m,p,f,y)}return f}}),i},{});this._encoders=e}_getGridComponentType(){var t;if(this._gridComponentType)return this._gridComponentType;if(this.spec.gridType)this.spec.gridType==="circle"?this._gridComponentType=gi.circleAxisGrid:this._gridComponentType=gi.lineAxisGrid;else if(this._targetAxis)switch(this._targetAxis.getAxisComponentType()){case Vs.circleAxis:this._gridComponentType=gi.circleAxisGrid;break;case Vs.lineAxis:default:this._gridComponentType=gi.lineAxisGrid}else if(this.spec.scale){const e=at(this.spec.scale)?this.view.getScaleById(this.spec.scale):this.spec.scale;this._gridComponentType=!((t=e==null?void 0:e.getCoordinate)===null||t===void 0)&&t.call(e)?e.getCoordinateAxisPoints()?gi.lineAxisGrid:gi.circleAxisGrid:gi.lineAxisGrid}else this._gridComponentType=gi.lineAxisGrid;return this._gridComponentType}}nO.componentType=ge.grid;const r9=()=>{it.registerGraphicComponent(gi.lineAxisGrid,(n,t)=>new QB(n,t)),it.registerGraphicComponent(gi.circleAxisGrid,(n,t)=>new tI(n,t)),it.registerComponent(ge.grid,nO)},a9=(n,t,e)=>t.filter(i=>n.callback(i,e)),o9=(n,t,e)=>{const i=n.callback,s=n.as;if(!n.all)return t.forEach(a=>{const o=i(a,e);if(!C(s)){if(C(a))return;a[s]=o}return o}),t;const r=i(t,e);return C(s)||C(t)?r:(t[s]=r,t)};function sO(n){return n.reduce((t,e)=>t+e,0)}function l9(n){return n.length===0?0:sO(n)/n.length}const h9={min:ti,max:Ve,average:l9,sum:sO};function d9(n,t,e,i){const s=Math.floor(t.length/n),r=[],a=t.length;let o,l,h,d=0,c=0;r[c++]=d;for(let u=1;uo&&(o=l,h=x))}r[c++]=h,d=h}return r[c-1]!==a-1&&(r[c++]=a-1),r.map(u=>e?t[u].i:u)}function Bm(n,t,e,i,s){let r=Math.floor(t.length/n);const a=[],o=t.length;let l=0,h=[];a.push(l),t[l][s]=t[l][s];for(let d=1;do-d&&(r=o-d,h.length=r),h=[];for(let u=0;ue?t[d].i:d)}function c9(n,t,e,i){return Bm(n,t,e,"min",i)}function u9(n,t,e,i){return Bm(n,t,e,"max",i)}function p9(n,t,e,i){return Bm(n,t,e,"average",i)}function g9(n,t,e,i){return Bm(n,t,e,"sum",i)}const f9=(n,t)=>{let e=n.size;const i=n.factor||1;if(Array.isArray(e)&&(e=Math.floor(e[1]-e[0])),e*=i,e<=0)return[];if(t.length<=e)return t;if(n.skipfirst)return t.slice(0,1);const{mode:s,yfield:r,groupBy:a}=n,o=r??"y";let l=d9;if(s==="min"?l=c9:s==="max"?l=u9:s==="average"?l=p9:s==="sum"&&(l=g9),t.length){const h={};if(a){for(let c=0,u=t.length;c{const u=h[c];if(u.length<=e){const p=u.map(g=>g.i);d=d.concat(p)}else{const p=l(e,u,!0,o);d=d.concat(p),u.forEach(g=>t[g.i][o]=g[o])}}),d.sort((c,u)=>c-u),d.map(c=>t[c])}return l(e,t,!1,o).map(d=>t[d])}return[]};function _9(n){return n.forEach(t=>{t.getGraphicAttribute(Ro)&&(t.setGraphicAttribute("visible",!0),t.setGraphicAttribute(Ro,!1))}),n}function m9(n,t,e,i){if(i){let s=-1/0,r=0;const a=C(t);let o=t;n.forEach(l=>{if(l.getGraphicAttribute("visible")===!1)return;const h=l.getGraphicAttribute("size")/2,d=l.getGraphicAttribute("x");a&&(o=(h+r)*e),Math.abs(d-s){if(l.getGraphicAttribute("visible")===!1)return;const h=l.getGraphicAttribute("size")/2,d=l.getGraphicAttribute("y");a&&(o=(h+r)*e),Math.abs(d-s){if(d.getGraphicAttribute("visible")===!1)return;const c=d.getGraphicAttribute("size")/2,u=d.getGraphicAttribute("x"),p=d.getGraphicAttribute("y");l&&(h=(c+a)*e),o=(-1/0-u)**2+(r-p)**2,o<(h+a+c)**2?d.getGraphicAttribute("forceShow")||(d.setGraphicAttribute(Ro,!0),d.setGraphicAttribute("visible",!1)):r=p,a=c})}}const b9=(n,t)=>{if(!t||t.length===0)return;let{radius:e}=n;C(e)&&t[0].mark.markType==="symbol"&&(e=!0);const{direction:i,delta:s,deltaMul:r=1,groupBy:a}=n,o=l=>{_9(l);const h=n.sort?l.slice().sort((d,c)=>d.getGraphicAttribute("x")-c.getGraphicAttribute("x")):l;i===0?y9(h,s,r,e):i===1?m9(h,s,r,e):v9(h,s,r,e)};if(a){const l=t.reduce((h,d)=>{const c=d.getDatum()[a];return h[c]?h[c].push(d):h[c]=[d],h},{});Object.keys(l).forEach(h=>{o(l[h])})}else o(t);return t},x9=()=>{it.registerTransform("filter",{transform:a9,markPhase:"beforeJoin"},!0)},S9=()=>{it.registerTransform("map",{transform:o9,markPhase:"beforeJoin"},!0)},aS=()=>{it.registerTransform("sampling",{transform:f9,markPhase:"afterEncode"},!0)},oS=()=>{it.registerTransform("markoverlap",{transform:b9,markPhase:"afterEncode"},!0)},A9=(n,t,e)=>{var i;const s=n.getGraphicAttribute("clipRangeByDimension",!1),r=(i=n.getGraphicAttribute("clipRange",!1))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:0,clipRangeByDimension:t.clipDimension},to:{clipRange:r,clipRangeByDimension:s}}:{from:{clipRange:0},to:{clipRange:r}}},k9=(n,t,e)=>{var i;const s=n.getGraphicAttribute("clipRangeByDimension",!0),r=(i=n.getGraphicAttribute("clipRange",!0))!==null&&i!==void 0?i:1;return t&&t.clipDimension?{from:{clipRange:r,clipRangeByDimension:t.clipDimension},to:{clipRange:0,clipRangeByDimension:s}}:{from:{clipRange:r},to:{clipRange:0}}},T9=(n,t,e)=>{var i,s,r,a;const o=(i=n.getFinalAnimationAttributes())!==null&&i!==void 0?i:{};return{from:{opacity:0,fillOpacity:0,strokeOpacity:0},to:{opacity:(s=o.opacity)!==null&&s!==void 0?s:1,fillOpacity:(r=o.fillOpacity)!==null&&r!==void 0?r:1,strokeOpacity:(a=o.strokeOpacity)!==null&&a!==void 0?a:1}}},M9=(n,t,e)=>{var i,s,r;return{from:{opacity:(i=n.getGraphicAttribute("opacity",!0))!==null&&i!==void 0?i:1,fillOpacity:(s=n.getGraphicAttribute("fillOpacity",!0))!==null&&s!==void 0?s:1,strokeOpacity:(r=n.getGraphicAttribute("strokeOpacity",!0))!==null&&r!==void 0?r:1},to:{opacity:0,fillOpacity:0,strokeOpacity:0}}},w9=(n,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");return{from:P(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+s)/2,x1:(i+s)/2,width:void 0},to:{x:i,x1:s,width:r}}}case"y":{const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");return{from:P(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+s)/2,y1:(i+s)/2,height:void 0},to:{y:i,y1:s,height:r}}}default:{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width"),a=n.getFinalAnimationAttribute("y"),o=n.getFinalAnimationAttribute("y1"),l=n.getFinalAnimationAttribute("height"),h={};return P(r)?(h.x=i+r/2,h.width=0,h.x1=void 0):(h.x=(i+s)/2,h.x1=(i+s)/2,h.width=void 0),P(l)?(h.y=a+l/2,h.height=0,h.y1=void 0):(h.y=(a+o)/2,h.y1=(a+o)/2,h.height=void 0),{from:h,to:{x:i,y:a,x1:s,y1:o,width:r,height:l}}}}},C9=(n,t,e)=>{switch(t==null?void 0:t.direction){case"x":{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");return{to:P(r)?{x:i+r/2,x1:void 0,width:0}:{x:(i+s)/2,x1:(i+s)/2,width:void 0}}}case"y":{const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");return{to:P(r)?{y:i+r/2,y1:void 0,height:0}:{y:(i+s)/2,y1:(i+s)/2,height:void 0}}}default:{const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("y"),r=n.getFinalAnimationAttribute("x1"),a=n.getFinalAnimationAttribute("y1"),o=n.getFinalAnimationAttribute("width"),l=n.getFinalAnimationAttribute("height"),h={};return P(o)?(h.x=i+o/2,h.width=0,h.x1=void 0):(h.x=(i+r)/2,h.x1=(i+r)/2,h.width=void 0),P(l)?(h.y=s+l/2,h.height=0,h.y1=void 0):(h.y=(s+a)/2,h.y1=(s+a)/2,h.height=void 0),{to:h}}}};function P9(n,t,e){const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");if(t&&t.orient==="negative"){const o=P(r)?Math.max(i,i+r):Math.max(i,s);return{from:{x:o,x1:C(s)?void 0:o,width:C(r)?void 0:0},to:{x:i,x1:s,width:r}}}const a=P(r)?Math.min(i,i+r):Math.min(i,s);return{from:{x:a,x1:C(s)?void 0:a,width:C(r)?void 0:0},to:{x:i,x1:s,width:r}}}function E9(n,t,e){var i;const s=n.getFinalAnimationAttribute("x"),r=n.getFinalAnimationAttribute("x1"),a=n.getFinalAnimationAttribute("width");let o;return t&&t.orient==="negative"?nt(t.overall)?o=t.overall:e.group?(o=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),e.groupWidth=o):o=e.width:o=nt(t==null?void 0:t.overall)?t==null?void 0:t.overall:0,{from:{x:o,x1:C(r)?void 0:o,width:C(a)?void 0:0},to:{x:s,x1:r,width:a}}}const R9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?E9(n,t,e):P9(n,t)};function B9(n,t,e){const i=n.getFinalAnimationAttribute("x"),s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");if(t&&t.orient==="negative"){const o=P(r)?Math.max(i,i+r):Math.max(i,s);return{to:{x:o,x1:C(s)?void 0:o,width:C(r)?void 0:0}}}const a=P(r)?Math.min(i,i+r):Math.min(i,s);return{to:{x:a,x1:C(s)?void 0:a,width:C(r)?void 0:0}}}function I9(n,t,e){var i;const s=n.getFinalAnimationAttribute("x1"),r=n.getFinalAnimationAttribute("width");let a;return t&&t.orient==="negative"?nt(t.overall)?a=t.overall:e.group?(a=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),e.groupWidth=a):a=e.width:a=nt(t==null?void 0:t.overall)?t.overall:0,{to:{x:a,x1:C(s)?void 0:a,width:C(r)?void 0:0}}}const O9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?I9(n,t,e):B9(n,t)};function L9(n,t,e){const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");if(t&&t.orient==="negative"){const o=P(r)?Math.max(i,i+r):Math.max(i,s);return{from:{y:o,y1:C(s)?void 0:o,height:C(r)?void 0:0},to:{y:i,y1:s,height:r}}}const a=P(r)?Math.min(i,i+r):Math.min(i,s);return{from:{y:a,y1:C(s)?void 0:a,height:C(r)?void 0:0},to:{y:i,y1:s,height:r}}}function D9(n,t,e){var i;const s=n.getFinalAnimationAttribute("y"),r=n.getFinalAnimationAttribute("y1"),a=n.getFinalAnimationAttribute("height");let o;return t&&t.orient==="negative"?nt(t.overall)?o=t.overall:e.group?(o=(i=e.groupHeight)!==null&&i!==void 0?i:e.group.getBounds().height(),e.groupHeight=o):o=e.height:o=nt(t==null?void 0:t.overall)?t.overall:0,{from:{y:o,y1:C(r)?void 0:o,height:C(a)?void 0:0},to:{y:s,y1:r,height:a}}}const F9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?D9(n,t,e):L9(n,t)};function z9(n,t,e){const i=n.getFinalAnimationAttribute("y"),s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");if(t&&t.orient==="negative"){const o=P(r)?Math.max(i,i+r):Math.max(i,s);return{to:{y:o,y1:C(s)?void 0:o,height:C(r)?void 0:0}}}const a=P(r)?Math.min(i,i+r):Math.min(i,s);return{to:{y:a,y1:C(s)?void 0:a,height:C(r)?void 0:0}}}function j9(n,t,e){var i;const s=n.getFinalAnimationAttribute("y1"),r=n.getFinalAnimationAttribute("height");let a;return t&&t.orient==="negative"?nt(t.overall)?a=t.overall:e.group?(a=(i=e.groupHeight)!==null&&i!==void 0?i:e.group.getBounds().height(),e.groupHeight=a):a=e.height:a=nt(t==null?void 0:t.overall)?t.overall:0,{to:{y:a,y1:C(s)?void 0:a,height:C(r)?void 0:0}}}const H9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?j9(n,t,e):z9(n,t)},V9=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="anticlockwise"?{from:{startAngle:i==null?void 0:i.endAngle},to:{startAngle:i==null?void 0:i.startAngle}}:{from:{endAngle:i==null?void 0:i.startAngle},to:{endAngle:i==null?void 0:i.endAngle}}},W9=(n,t,e)=>{const i=n.getFinalAnimationAttributes();if(t&&t.orient==="anticlockwise"){const r=nt(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:r,endAngle:r},to:{startAngle:i==null?void 0:i.startAngle,endAngle:i==null?void 0:i.endAngle}}}const s=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:s,endAngle:s},to:{startAngle:i==null?void 0:i.startAngle,endAngle:i==null?void 0:i.endAngle}}},N9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?W9(n,t):V9(n,t)},G9=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="anticlockwise"?{from:{startAngle:n.getGraphicAttribute("startAngle",!0)},to:{startAngle:i==null?void 0:i.endAngle}}:{from:{endAngle:n.getGraphicAttribute("endAngle",!0)},to:{endAngle:i==null?void 0:i.startAngle}}},U9=(n,t,e)=>{if(t&&t.orient==="anticlockwise"){const s=nt(t.overall)?t.overall:2*Math.PI;return{from:{startAngle:n.getGraphicAttribute("startAngle",!0),endAngle:n.getGraphicAttribute("endAngle",!0)},to:{startAngle:s,endAngle:s}}}const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{startAngle:n.getGraphicAttribute("startAngle",!0),endAngle:n.getGraphicAttribute("endAngle",!0)},to:{startAngle:i,endAngle:i}}},$9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?U9(n,t):G9(n,t)},Y9=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="inside"?{from:{innerRadius:i==null?void 0:i.outerRadius},to:{innerRadius:i==null?void 0:i.innerRadius}}:{from:{outerRadius:i==null?void 0:i.innerRadius},to:{outerRadius:i==null?void 0:i.outerRadius}}},X9=(n,t,e)=>{const i=n.getFinalAnimationAttributes(),s=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:s,outerRadius:s},to:{innerRadius:i==null?void 0:i.innerRadius,outerRadius:i==null?void 0:i.outerRadius}}},K9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?X9(n,t):Y9(n,t)},q9=(n,t,e)=>{const i=n.getFinalAnimationAttributes();return t&&t.orient==="inside"?{from:{innerRadius:n.getGraphicAttribute("innerRadius",!0)},to:{innerRadius:i==null?void 0:i.outerRadius}}:{from:{outerRadius:n.getGraphicAttribute("outerRadius",!0)},to:{outerRadius:i==null?void 0:i.innerRadius}}},Z9=(n,t,e)=>{const i=nt(t==null?void 0:t.overall)?t.overall:0;return{from:{innerRadius:n.getGraphicAttribute("innerRadius",!0),outerRadius:n.getGraphicAttribute("outerRadius",!0)},to:{innerRadius:i,outerRadius:i}}},J9=(n,t,e)=>{var i;return((i=t==null?void 0:t.overall)!==null&&i!==void 0&&i)!==!1?Z9(n,t):q9(n,t)},rO=(n,t,e)=>{const i=n.getGraphicAttribute("points",!1),s={x:0,y:0};return i.forEach(r=>{s.x+=r.x,s.y+=r.y}),s.x/=i.length,s.y/=i.length,t&&t.center&&(z(t.center.x)&&(s.x=t.center.x),z(t.center.y)&&(s.y=t.center.y)),n.mark.markType==="area"&&(s.x1=s.x,s.y1=s.y),i.map(r=>Object.assign({},r,s))},Q9=(n,t,e)=>({from:{points:rO(n,t)},to:{points:n.getGraphicAttribute("points",!1)}}),tK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:rO(n,t)}}),aO=(n,t,e)=>n.getGraphicAttribute("points",!1).map(i=>{var s;if(t&&t.orient==="negative"){let r=e.width;return e.group&&(r=(s=e.groupWidth)!==null&&s!==void 0?s:e.group.getBounds().width(),e.groupWidth=r),Object.assign(Object.assign({},i),{x:r,y:i.y,x1:r,y1:i.y1,defined:i.defined!==!1})}return Object.assign(Object.assign({},i),{x:0,y:i.y,x1:0,y1:i.y1,defined:i.defined!==!1})}),eK=(n,t,e)=>({from:{points:aO(n,t,e)},to:{points:n.getGraphicAttribute("points",!1)}}),iK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:aO(n,t,e)}}),oO=(n,t,e)=>n.getGraphicAttribute("points",!1).map(i=>{var s;if(t&&t.orient==="negative"){let r=e.height;return e.group&&(r=(s=e.groupHeight)!==null&&s!==void 0?s:e.group.getBounds().height(),e.groupHeight=r),Object.assign(Object.assign({},i),{x:i.x,y:r,x1:i.x1,y1:r,defined:i.defined!==!1})}return Object.assign(Object.assign({},i),{x:i.x,y:0,x1:i.x1,y1:0,defined:i.defined!==!1})}),nK=(n,t,e)=>({from:{points:oO(n,t,e)},to:{points:n.getGraphicAttribute("points",!1)}}),sK=(n,t,e)=>({from:{points:n.getGraphicAttribute("points",!0)},to:{points:oO(n,t,e)}}),rK=(n,t,e)=>{var i,s;const{offset:r=0,orient:a,direction:o,point:l,excludeChannels:h=[]}=t??{};let d=0,c=0;a==="negative"&&(e.group?(d=(i=e.groupWidth)!==null&&i!==void 0?i:e.group.getBounds().width(),c=(s=e.groupHeight)!==null&&s!==void 0?s:e.group.getBounds().height(),e.groupWidth=d,e.groupHeight=c):(d=e.width,c=e.height)),d+=r,c+=r;const u=G(l)?l.call(null,n.getDatum(),n,e):l,p=u&&z(u.x)?u.x:d,g=u&&z(u.y)?u.y:c,f=h.includes("x")?n.getGraphicAttribute("x"):n.getFinalAnimationAttribute("x"),_=h.includes("y")?n.getGraphicAttribute("y"):n.getFinalAnimationAttribute("y");switch(o){case"x":return{from:{x:p},to:{x:f}};case"y":return{from:{y:g},to:{y:_}};default:return{from:{x:p,y:g},to:{x:f,y:_}}}},aK=(n,t,e)=>{var i,s;const{offset:r=0,orient:a,direction:o,point:l}=t??{},h=e.group?e.group.getBounds():null,d=(i=h==null?void 0:h.width())!==null&&i!==void 0?i:e.width,c=(s=h==null?void 0:h.height())!==null&&s!==void 0?s:e.height,u=(a==="negative"?d:0)+r,p=(a==="negative"?c:0)+r,g=G(l)?l.call(null,n.getDatum(),n,e):l,f=g&&z(g.x)?g.x:u,_=g&&z(g.y)?g.y:p;switch(o){case"x":return{from:{x:n.getGraphicAttribute("x",!0)},to:{x:f}};case"y":return{from:{y:n.getGraphicAttribute("y",!0)},to:{y:_}};default:return{from:{x:n.getGraphicAttribute("x",!0),y:n.getGraphicAttribute("y",!0)},to:{x:f,y:_}}}},oK=(n,t,e)=>{var i,s,r,a;const o=n.getFinalAnimationAttributes();switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:0},to:{scaleX:(i=o==null?void 0:o.scaleX)!==null&&i!==void 0?i:1}};case"y":return{from:{scaleY:0},to:{scaleY:(s=o==null?void 0:o.scaleY)!==null&&s!==void 0?s:1}};default:return{from:{scaleX:0,scaleY:0},to:{scaleX:(r=o==null?void 0:o.scaleX)!==null&&r!==void 0?r:1,scaleY:(a=o==null?void 0:o.scaleY)!==null&&a!==void 0?a:1}}}},lK=(n,t,e)=>{var i,s,r,a;switch(t==null?void 0:t.direction){case"x":return{from:{scaleX:(i=n.getGraphicAttribute("scaleX",!0))!==null&&i!==void 0?i:1},to:{scaleX:0}};case"y":return{from:{scaleY:(s=n.getGraphicAttribute("scaleY",!0))!==null&&s!==void 0?s:1},to:{scaleY:0}};default:return{from:{scaleX:(r=n.getGraphicAttribute("scaleX",!0))!==null&&r!==void 0?r:1,scaleY:(a=n.getGraphicAttribute("scaleY",!0))!==null&&a!==void 0?a:1},to:{scaleX:0,scaleY:0}}}},hK={symbol:["_mo_hide_","visible"]},dK=(n,t,e)=>{const i=Object.assign({},n.getPrevGraphicAttributes()),s=Object.assign({},n.getNextGraphicAttributes());let r;t&&H(t.excludeChannels).forEach(o=>{delete i[o],delete s[o]}),n.mark&&n.mark.markType&&(r=hK[n.mark.markType])&&r.forEach(o=>{delete i[o],delete s[o]}),Object.keys(s).forEach(o=>{rm(o,i,s)&&(delete i[o],delete s[o])});const a=n.getFinalGraphicAttributes();return Object.keys(i).forEach(o=>{C(s[o])&&(C(a[o])||ue(i[o],a[o])?delete i[o]:s[o]=a[o])}),{from:i,to:s}},cK=(n,t,e)=>{var i;const s=(i=n.getFinalAnimationAttribute("angle"))!==null&&i!==void 0?i:0;let r=0;return r=Ki(s/(2*Math.PI),0)?Math.round(s/(2*Math.PI))*Math.PI*2:z(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(s/(2*Math.PI))*Math.PI*2:Math.floor(s/(2*Math.PI))*Math.PI*2,{from:{angle:r},to:{angle:s}}},uK=(n,t,e)=>{var i;const s=(i=n.getGraphicAttribute("angle",!0))!==null&&i!==void 0?i:0;let r=0;return r=Ki(s/(2*Math.PI),0)?Math.round(s/(2*Math.PI))*Math.PI*2:z(t==null?void 0:t.angle)?t.angle:(t==null?void 0:t.orient)==="anticlockwise"?Math.ceil(s/(2*Math.PI))*Math.PI*2:Math.floor(s/(2*Math.PI))*Math.PI*2,{from:{angle:s},to:{angle:r}}},pK=()=>{it.registerAnimationType("clipIn",A9)},gK=()=>{it.registerAnimationType("clipOut",k9)},fK=()=>{it.registerAnimationType("fadeIn",T9)},_K=()=>{it.registerAnimationType("fadeOut",M9)},mK=()=>{it.registerAnimationType("growCenterIn",w9)},vK=()=>{it.registerAnimationType("growCenterOut",C9)},yK=()=>{it.registerAnimationType("growHeightIn",F9)},bK=()=>{it.registerAnimationType("growHeightOut",H9)},xK=()=>{it.registerAnimationType("growWidthIn",R9)},SK=()=>{it.registerAnimationType("growWidthOut",O9)},lO=()=>{it.registerAnimationType("growPointsIn",Q9)},hO=()=>{it.registerAnimationType("growPointsOut",tK)},AK=()=>{it.registerAnimationType("growPointsXIn",eK)},kK=()=>{it.registerAnimationType("growPointsXOut",iK)},TK=()=>{it.registerAnimationType("growPointsYIn",nK)},MK=()=>{it.registerAnimationType("growPointsYOut",sK)},wK=()=>{it.registerAnimationType("growAngleIn",N9)},CK=()=>{it.registerAnimationType("growAngleOut",$9)},PK=()=>{it.registerAnimationType("growRadiusIn",K9)},EK=()=>{it.registerAnimationType("growRadiusOut",J9)},RK=()=>{it.registerAnimationType("moveIn",rK)},BK=()=>{it.registerAnimationType("moveOut",aK)},IK=()=>{it.registerAnimationType("scaleIn",oK)},OK=()=>{it.registerAnimationType("scaleOut",lK)},LK=()=>{it.registerAnimationType("rotateIn",cK)},DK=()=>{it.registerAnimationType("rotateOut",uK)},FK=()=>{it.registerAnimationType("update",dK)};class dO extends Ih{encodeState(t,e,i){return super.encodeState(t,e,i),this._updateComponentEncoders(t),this}_updateComponentEncoders(t){this._encoders||(this._encoders={});const e=this.spec.encode[t];if(e&&t==="update"){const i=this.parameters(),s=ro(e)?null:Object.keys(e).reduce((r,a)=>(Pm(e[a])&&(r[a]=Hc(e[a].scale,i)),r),{});this._encoders[t]={callback:(r,a,o)=>{const l=_a(e,r,a,o);if(C(l.size)){const h=s.x?tw(s.x):void 0,d=s.y?tw(s.y):void 0;C(h)&&C(d)?l.size=10:C(h)?l.size=d:C(d)&&(l.size=h),l.size=[h,d]}return C(l.shape)&&(l.shape="rect"),l}}}else this._encoders[t]=e}_getEncoders(){var t;return(t=this._encoders)!==null&&t!==void 0?t:{}}getAttributeTransforms(){return[{channels:["size","padding"],transform:(t,e,i)=>{if(nt(i.padding)&&i.padding>0)t.size=V(i.size)?i.size.map(s=>Math.max(s-i.padding,1)):Math.max(i.size-i.padding,1);else if(V(i.padding)&&i.padding.length===2){const s=V(i.size)?i.size:[i.size,i.size];t.size=[Math.max(s[0]-i.padding[0],1),Math.max(s[1]-i.padding[1],1)]}else t.size=i.size},storedAttrs:"paddingAttrs"}].concat(Eu.symbol)}release(){super.release(),this._encoders=null}}dO.markType=rt.cell;const zK=()=>{it.registerMark(rt.cell,dO)},jK=["pointerdown","pointerup","pointerupoutside","pointertap","pointerover","pointermove","pointerenter","pointerleave","pointerout","mousedown","mouseup","mouseupoutside","rightdown","rightup","rightupoutside","click","dblclick","mousemove","mouseover","mouseout","mouseenter","mouseleave","wheel","touchstart","touchend","touchendoutside","touchmove","touchcancel","tap","dragstart","drag","dragenter","dragleave","dragover","dragend","drop","pan","panstart","panend","press","pressup","pressend","pinch","pinchstart","pinchend","swipe"];var ft;(function(n){n.initialized="initialized",n.rendered="rendered",n.renderFinished="renderFinished",n.animationFinished="animationFinished",n.regionSeriesDataFilterOver="regionSeriesDataFilterOver",n.afterInitData="afterInitData",n.afterInitEvent="afterInitEvent",n.afterInitMark="afterInitMark",n.rawDataUpdate="rawDataUpdate",n.viewDataFilterOver="viewDataFilterOver",n.viewDataUpdate="viewDataUpdate",n.viewDataStatisticsUpdate="viewDataStatisticsUpdate",n.markDeltaYUpdate="markDeltaYUpdate",n.viewDataLabelUpdate="viewDataLabelUpdate",n.scaleDomainUpdate="scaleDomainUpdate",n.scaleUpdate="scaleUpdate",n.dataZoomChange="dataZoomChange",n.drill="drill",n.layoutStart="layoutStart",n.layoutEnd="layoutEnd",n.layoutRectUpdate="layoutRectUpdate",n.playerPlay="playerPlay",n.playerPause="playerPause",n.playerEnd="playerEnd",n.playerChange="playerChange",n.playerForward="playerForward",n.playerBackward="playerBackward",n.scrollBarChange="scrollBarChange",n.brushStart="brushStart",n.brushChange="brushChange",n.brushEnd="brushEnd",n.brushClear="brushClear",n.legendSelectedDataChange="legendSelectedDataChange",n.legendFilter="legendFilter",n.legendItemClick="legendItemClick",n.legendItemHover="legendItemHover",n.legendItemUnHover="legendItemUnHover",n.tooltipShow="tooltipShow",n.tooltipHide="tooltipHide",n.tooltipRelease="tooltipRelease",n.afterResize="afterResize",n.afterRender="afterRender",n.afterLayout="afterLayout"})(ft||(ft={}));var Nt;(function(n){n.chart="chart",n.window="window",n.canvas="canvas"})(Nt||(Nt={}));var he;(function(n){n.vchart="vchart",n.chart="chart",n.model="model",n.mark="mark"})(he||(he={}));const Vf=`${yt}_waterfall_default_seriesField`,cO=`${yt}_CORRELATION_X`,uO=`${yt}_CORRELATION_Y`,pO=`${yt}_CORRELATION_SIZE`,Xi=`${yt}_DEFAULT_DATA_INDEX`,Qn=`${yt}_DEFAULT_DATA_KEY`,xn=`${yt}_DEFAULT_DATA_SERIES_FIELD`,mw=`${yt}_DEFAULT_SERIES_STYLE_NAME`;var tt;(function(n){n[n.Default=0]="Default",n[n.Theme=1]="Theme",n[n.Chart=2]="Chart",n[n.Base_Series=3]="Base_Series",n[n.Series=4]="Series",n[n.Mark=5]="Mark",n[n.User_Chart=6]="User_Chart",n[n.User_Series=7]="User_Series",n[n.User_Mark=8]="User_Mark",n[n.User_SeriesStyle=9]="User_SeriesStyle",n[n.Built_In=99]="Built_In"})(tt||(tt={}));const HK=`${yt}_STACK_KEY`,An=`${yt}_STACK_START`,qe=`${yt}_STACK_END`,zo=`${yt}_STACK_START_PERCENT`,La=`${yt}_STACK_END_PERCENT`,Mb=`${yt}_STACK_START_OffsetSilhouette`,wb=`${yt}_STACK_END_OffsetSilhouette`,gO=`${yt}_STACK_TOTAL`,VK=`${yt}_STACK_TOTAL_PERCENT`,Vc=`${yt}_STACK_TOTAL_TOP`,$p=`${yt}_SEGMENT_START`,tv=`${yt}_SEGMENT_END`;var re;(function(n){n[n.Axis_Grid=50]="Axis_Grid",n[n.CrossHair_Grid=100]="CrossHair_Grid",n[n.Region=450]="Region",n[n.Mark=300]="Mark",n[n.Node=400]="Node",n[n.Axis=100]="Axis",n[n.MarkLine=500]="MarkLine",n[n.MarkArea=100]="MarkArea",n[n.MarkPoint=500]="MarkPoint",n[n.DataZoom=500]="DataZoom",n[n.ScrollBar=500]="ScrollBar",n[n.Player=500]="Player",n[n.Legend=500]="Legend",n[n.CrossHair=500]="CrossHair",n[n.Indicator=500]="Indicator",n[n.Title=500]="Title",n[n.Label=500]="Label",n[n.Brush=500]="Brush",n[n.CustomMark=500]="CustomMark",n[n.Interaction=700]="Interaction"})(re||(re={}));var xs;(function(n){n[n.Indicator=10]="Indicator",n[n.Region=20]="Region",n[n.Axis=30]="Axis",n[n.DataZoom=40]="DataZoom",n[n.Player=40]="Player",n[n.ScrollBar=40]="ScrollBar",n[n.Legend=50]="Legend",n[n.Title=70]="Title",n[n.CustomMark=70]="CustomMark"})(xs||(xs={}));const vw=["linear","radial","conical"],WK={x0:0,y0:0,x1:1,y1:1},NK={x0:0,y0:0,x1:1,y1:1,r0:0,r1:1},GK={x:.5,y:.5,startAngle:0,endAngle:2*Math.PI},UK={linear:WK,radial:NK,conical:GK},me={label:{name:"label",type:"text"}},yw=`${yt}_rect_x`,bw=`${yt}_rect_x1`,xw=`${yt}_rect_y`,Sw=`${yt}_rect_y1`,$K={data:!0},Aw={animation:!0,animationAppear:!0,animationEnter:!0,animationUpdate:!0,animationExit:!0,animationNormal:!0},Im=Object.assign(Object.assign({},me),{bar:{name:"bar",type:"rect"},barBackground:{name:"barBackground",type:"rect"}}),lS=Object.assign(Object.assign({},me),{bar3d:{name:"bar3d",type:"rect3d"}}),Zr={point:{name:"point",type:"symbol"},line:{name:"line",type:"line"}},fO=Object.assign(Object.assign({},me),Zr),_O=Object.assign(Object.assign({},me),{point:{name:"point",type:"symbol"}}),hS=Object.assign(Object.assign(Object.assign({},me),Zr),{area:{name:"area",type:"area"}}),mO=Object.assign(Object.assign(Object.assign({},me),Zr),{area:{name:"area",type:"area"}}),vO=Object.assign(Object.assign({},me),{pie:{name:"pie",type:"arc"},labelLine:{name:"labelLine",type:"path"}}),yO=Object.assign(Object.assign({},me),{pie3d:{name:"pie3d",type:"arc3d"},labelLine:{name:"labelLine",type:"path"}}),bO=Object.assign(Object.assign({},me),{rose:{name:"rose",type:"arc"}}),xO=Object.assign(Object.assign({},me),{area:{name:"area",type:"path"}}),dS=Object.assign(Object.assign({},me),{group:{name:"group",type:"group"}}),SO=Object.assign(Object.assign({},dS),{track:{name:"track",type:"arc"},progress:{name:"progress",type:"arc"}}),AO=Object.assign(Object.assign({},me),{group:{name:"group",type:"group"},link:{name:"link",type:"rule"},arrow:{name:"arrow",type:"symbol"}}),kO=Object.assign(Object.assign({},me),{group:{name:"group",type:"group"},grid:{name:"grid",type:"rule"},gridBackground:{name:"gridBackground",type:"rect"},dot:{name:"dot",type:"symbol"},title:{name:"title",type:"text"},subTitle:{name:"subTitle",type:"text"},symbol:{name:"symbol",type:"symbol"}}),Cb=Object.assign(Object.assign({},me),{word:{name:"word",type:"text"},fillingWord:{name:"fillingWord",type:"text"}}),TO=Object.assign(Object.assign({},me),{funnel:{name:"funnel",type:"polygon"},transform:{name:"transform",type:"polygon"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}}),MO=Object.assign(Object.assign({},me),{funnel3d:{name:"funnel3d",type:"pyramid3d"},transform3d:{name:"transform3d",type:"pyramid3d"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}}),wO=Object.assign(Object.assign({},me),{track:{name:"track",type:"rect"},progress:{name:"progress",type:"rect"},group:{name:"group",type:"group"}}),CO=Object.assign(Object.assign({},Im),{leaderLine:{name:"leaderLine",type:"rule"},stackLabel:{name:"stackLabel",type:"text"}}),PO=Object.assign(Object.assign({},me),{boxPlot:{name:"boxPlot",type:"boxPlot"},outlier:{name:"outlier",type:"symbol"}}),EO=Object.assign(Object.assign({},me),{nonLeaf:{name:"nonLeaf",type:"rect"},leaf:{name:"leaf",type:"rect"},nonLeafLabel:{name:"nonLeafLabel",type:"text"}}),RO=Object.assign(Object.assign({},me),{node:{name:"node",type:"rect"},link:{name:"link",type:"linkPath"}}),BO=Object.assign(Object.assign({},dS),{segment:{name:"segment",type:"arc"},track:{name:"track",type:"arc"}}),IO=Object.assign(Object.assign({},me),{pin:{name:"pin",type:"path"},pinBackground:{name:"pinBackground",type:"path"},pointer:{name:"pointer",type:["path","rect"]}}),OO=Object.assign(Object.assign({},me),{sunburst:{name:"sunburst",type:"arc"}}),LO=Object.assign(Object.assign({},Im),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}}),DO=Object.assign(Object.assign({},lS),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}}),FO=Object.assign(Object.assign({},me),{circlePacking:{name:"circlePacking",type:"arc"}}),zO=Object.assign(Object.assign({},me),{cell:{name:"cell",type:"cell"},cellBackground:{name:"cellBackground",type:"cell"}}),jO=Object.assign(Object.assign({},me),{nodePoint:{name:"nodePoint",type:"symbol"},ripplePoint:{name:"ripplePoint",type:"ripple"},centerPoint:{name:"centerPoint",type:"symbol"},centerLabel:{name:"centerLabel",type:"text"}}),HO=Object.assign({},hS),YK=Object.assign(Object.assign({},me),{liquidGroup:{name:"liquidGroup",type:"group"},liquid:{name:"liquid",type:"liquid"},liquidBackground:{name:"liquidBackground",type:"group"},liquidOutline:{name:"liquidOutline",type:"group"}}),XK=Object.assign(Object.assign({},me),{circle:{name:"circle",type:"arc"},overlap:{name:"overlap",type:"path"},overlapLabel:{name:"overlapLabel",type:"text"}});var kw;(function(n){n.area_horizontal="area_horizontal",n.area_vertical="area_vertical",n.area_stack="area_stack",n.line_horizontal="line_horizontal",n.line_vertical="line_vertical",n.line_stack="line_stack",n.bar_horizontal="bar_horizontal",n.bar_vertical="bar_vertical",n.bar_stack="bar_stack",n.bar3d_horizontal="bar3d_horizontal",n.bar3d_vertical="bar3d_vertical",n.bar3d_stack="bar3d_stack",n.rangeColumn_horizontal="rangeColumn_horizontal",n.rangeColumn_vertical="rangeColumn_vertical",n.rangeColumn3d_horizontal="rangeColumn3d_horizontal",n.rangeColumn3d_vertical="rangeColumn3d_vertical",n.rangeArea_horizontal="rangeArea_horizontal",n.rangeArea_vertical="rangeArea_vertical",n.linearProgress_horizontal="linearProgress_horizontal",n.linearProgress_vertical="linearProgress_vertical",n.linearProgress_stack="linearProgress_stack",n.boxPlot_horizontal="boxPlot_horizontal",n.boxPlot_vertical="boxPlot_vertical",n.sankey_horizontal="sankey_horizontal",n.sankey_vertical="sankey_vertical",n.waterfall_horizontal="waterfall_horizontal",n.waterfall_vertical="waterfall_vertical",n.circularProgress_stack="circularProgress_stack",n.radar_stack="radar_stack",n.rose_stack="rose_stack"})(kw||(kw={}));const Wf={[j.bar]:Im,[j.bar3d]:lS,[j.line]:fO,[j.scatter]:_O,[j.area]:hS,[j.radar]:mO,[j.pie]:vO,[j.pie3d]:yO,[j.rose]:bO,[j.geo]:me,[j.map]:xO,[j.circularProgress]:SO,[j.link]:AO,[j.dot]:kO,[j.wordCloud]:Cb,[j.wordCloud3d]:Cb,[j.funnel]:TO,[j.funnel3d]:MO,[j.linearProgress]:wO,[j.waterfall]:CO,[j.boxPlot]:PO,[j.treemap]:EO,[j.sankey]:RO,[j.gauge]:BO,[j.gaugePointer]:IO,[j.sunburst]:OO,[j.rangeColumn]:LO,[j.rangeColumn3d]:DO,[j.circlePacking]:FO,[j.heatmap]:zO,[j.correlation]:jO,[j.rangeArea]:HO,[j.liquid]:YK,[j.venn]:XK};function VO(n){var t,e;const{type:i}=n;return i===j.sankey?(t=n.direction)!==null&&t!==void 0?t:"horizontal":(e=n.direction)!==null&&e!==void 0?e:"vertical"}const KK={primaryFontColor:"titleFontColor",tertiaryFontColor:"labelFontColor",axisLabelFontColor:"axisFontColor",axisMarkerFontColor:"labelReverseFontColor",dataZoomHandleStrokeColor:"dataZoomHandlerStrokeColor",sliderHandleColor:"dataZoomHandlerFillColor",sliderRailColor:"dataZoomBackgroundColor",sliderTrackColor:"dataZoomSelectedColor",playerControllerColor:"dataZoomSelectedColor",popupBackgroundColor:"tooltipBackgroundColor",hoverBackgroundColor:"axisGridColor"},qK={titleFontColor:"primaryFontColor",labelFontColor:"tertiaryFontColor",axisFontColor:"axisLabelFontColor",labelReverseFontColor:"axisMarkerFontColor",dataZoomHandlerStrokeColor:"dataZoomHandleStrokeColor",dataZoomHandlerFillColor:"sliderHandleColor",dataZoomBackgroundColor:"sliderRailColor",dataZoomSelectedColor:"sliderTrackColor",tooltipBackgroundColor:"popupBackgroundColor"};function ZK(n,t){const e=KK[t];if(e&&n[e])return n[e];if(n[t])return n[t];const i=qK[t];return i?n[i]:void 0}function Wc(n,t){var e;if(!n)return[];const i=WO(n,t);if(!i||V(i))return(e=i)!==null&&e!==void 0?e:[];if(Ct(i)){const{dataScheme:s}=i;return s?cS(s)?s.map(r=>Object.assign(Object.assign({},r),{scheme:r.scheme.map(a=>Nf(a)?Eb(n,a,t):a).filter(P)})):s.map(r=>Nf(r)?Eb(n,r,t):r).filter(P):[]}return[]}function Pb(n,t){var e,i;return cS(n)?(i=(e=n.find(s=>P(s.isAvailable)?G(s.isAvailable)?s.isAvailable(t):!!s.isAvailable:!P(s.maxDomainLength)||(t==null?void 0:t.length)<=s.maxDomainLength))===null||e===void 0?void 0:e.scheme)!==null&&i!==void 0?i:n[n.length-1].scheme:n}function Eb(n,t,e){var i;const s=WO(n,e);if(!s)return;let r;const{palette:a}=s;if(Ct(a)&&(r=(i=ZK(a,t.key))!==null&&i!==void 0?i:t.default),!r)return;if(C(t.a)&&C(t.l)||!at(r))return r;let o=new Je(r);if(P(t.l)){const{r:l,g:h,b:d}=o.color,{h:c,s:u}=I_(l,h,d),p=Zp(c,u,t.l),g=new Je(`rgb(${p.r}, ${p.g}, ${p.b})`);g.setOpacity(o.color.opacity),o=g}return P(t.a)&&o.setOpacity(t.a),o.toRGBA()}const JK=(n,t,e)=>{if(t&&Nf(n)){const i=Eb(t,n,e);if(i)return i}return n};function Nf(n){return n&&n.type==="palette"&&!!n.key}function cS(n){return!(!V(n)||n.length===0)&&n.every(t=>P(t.scheme))}function QK(n){return V(n)?{dataScheme:n}:n}function WO(n,t){var e,i;const{type:s}=t??{};let r;if(!t||C(s))r=n==null?void 0:n.default;else{const a=VO(t);r=(i=(e=n==null?void 0:n[`${s}_${a}`])!==null&&e!==void 0?e:n==null?void 0:n[s])!==null&&i!==void 0?i:n==null?void 0:n.default}return r}class Ru extends Po{range(t){return t?(this._range=t,this._resetRange(),this):super.range()}domain(t){return t?(super.domain(t),this._resetRange(),this):super.domain()}_resetRange(){if(!cS(this._range))return void super.range(this._range);const t=Pb(this._range,this._domain);super.range(t)}}const tq={linear:is,band:qo,point:jY,ordinal:Po,threshold:Nx,colorOrdinal:Ru};function Rb(n){const t=tq[n];return t?new t:null}function eq(n,t){if("scale"in n&&n.scale)return at(n.scale)&&(t!=null&&t.globalScale)?t.globalScale.registerMarkAttributeScale(n,t.seriesId):n.scale;const e=Rb(n.type);return e&&iq(e,n),e}function iq(n,t){n&&t&&(t.domain&&n.domain(t.domain),t.range&&n.range(t.range),t.specified&&n.specified&&n.specified(t.specified))}function Zt(n,t){if(!t)return n;const e=t.range(),i=Math.min(e[0],e[e.length-1]),s=Math.max(e[0],e[e.length-1]);return Math.min(Math.max(i,n),s)}function Tw(n){return P(n==null?void 0:n.field)&&P(n==null?void 0:n.scale)}function uS(n){switch(n){case"left":case"right":case"top":case"bottom":return!0;default:return!1}}function Sn(n){return!!at(n)&&!!n.endsWith("%")&&oh(n.substring(0,n.length-1))}function nq(n){return!!Ct(n)&&("percent"in n||"offset"in n)}function Si(n,t,e,i=0){var s,r;return nt(n)?n:Sn(n)?Number(n.substring(0,n.length-1))*t/100:G(n)?n(e):Ct(n)?t*((s=n.percent)!==null&&s!==void 0?s:0)+((r=n.offset)!==null&&r!==void 0?r:0):i}function NO(n,t,e){var i,s,r,a;const o={top:0,bottom:0,left:0,right:0};return Object.values(n).every(l=>nt(l))?(o.top=(i=n.top)!==null&&i!==void 0?i:0,o.right=(s=n.right)!==null&&s!==void 0?s:0,o.bottom=(r=n.bottom)!==null&&r!==void 0?r:0,o.left=(a=n.left)!==null&&a!==void 0?a:0,o):([{orients:["left","right"],size:t.width},{orients:["top","bottom"],size:t.height}].forEach(l=>{l.orients.forEach(h=>{o[h]=Si(n[h],l.size,e)})}),o)}function sq(n,t){return n?{width:Math.ceil(Math.min(n.x2-n.x1,t.width)),height:Math.ceil(Math.min(n.y2-n.y1,t.height))}:{width:0,height:0}}function Pr(n){let t={};return V(n)?(C(n[0])||(t.top=t.left=t.bottom=t.right=n[0]),C(n[1])||(t.left=t.right=n[1]),C(n[2])||(t.bottom=n[2]),C(n[3])||(t.left=n[3]),t):nt(n)||Sn(n)||G(n)||nq(n)?(t.top=t.left=t.bottom=t.right=n,t):(Ct(n)&&(t=Object.assign({},n)),t)}function Mw(n,t,e){return e?{x:n.x+t.x,y:n.y+t.y}:n}const Bl=(n,t)=>{const e=Number(n),i=n.toString();return isNaN(e)&&i[i.length-1]==="%"?t*(Number(i.slice(0,i.length-1))/100):e},GO=[{maxDomainLength:10,scheme:["#1664FF","#1AC6FF","#FF8A00","#3CC780","#7442D4","#FFC400","#304D77","#B48DEB","#009488","#FF7DDA"]},{scheme:["#1664FF","#B2CFFF","#1AC6FF","#94EFFF","#FF8A00","#FFCE7A","#3CC780","#B9EDCD","#7442D4","#DDC5FA","#FFC400","#FAE878","#304D77","#8B959E","#B48DEB","#EFE3FF","#009488","#59BAA8","#FF7DDA","#FFCFEE"]}],rq={default:{dataScheme:GO,palette:{backgroundColor:"#ffffff",borderColor:"#e3e5e8",shadowColor:"rgba(33,37,44,0.1)",hoverBackgroundColor:"#f1f2f5",sliderRailColor:"#f1f3f4",sliderHandleColor:"#ffffff",sliderTrackColor:"#0040ff",popupBackgroundColor:"#ffffff",primaryFontColor:"#21252c",secondaryFontColor:"#606773",tertiaryFontColor:"#89909d",axisLabelFontColor:"#89909d",disableFontColor:"#bcc1cb",axisMarkerFontColor:"#ffffff",axisGridColor:"#f1f2f5",axisDomainColor:"#d9dde4",dataZoomHandleStrokeColor:"#aeb5be",dataZoomChartColor:"#c9ced8",playerControllerColor:"#0040ff",scrollBarSliderColor:"rgba(0,0,0,0.3)",axisMarkerBackgroundColor:"#21252c",markLabelBackgroundColor:"#f1f2f5",markLineStrokeColor:"#606773",dangerColor:"#e33232",warningColor:"#ffc528",successColor:"#07a35a",infoColor:"#3073f2",discreteLegendPagerTextColor:"rgb(51, 51, 51)",discreteLegendPagerHandlerColor:"rgb(47, 69, 84)",discreteLegendPagerHandlerDisableColor:"rgb(170, 170, 170)"}}},aq={label:{visible:!1,offset:5,position:"top",style:{stroke:{type:"palette",key:"backgroundColor"},lineWidth:2}},point:{style:{symbolType:"circle"}},seriesMark:"area"},oq={label:{visible:!1,position:"outside",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}}},lq={bar3d:{style:{length:3}},label:{visible:!1,style:{offset:12,position:"outside"}}},hq={outerRadius:.8,innerRadius:.6,progress:{style:{fillOpacity:1}},track:{style:{fillOpacity:.2}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},dq={dot:{style:{size:10,fillOpacity:1}},symbol:{style:{size:10}},title:{style:{textAlign:"left",textBaseline:"middle",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}},subTitle:{style:{textAlign:"left",textBaseline:"top",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},cq={transform:{style:{fill:{type:"palette",key:"axisGridColor"}}},label:{style:{fill:"white",textBaseline:"middle",lineWidth:2}},outerLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"secondaryFontColor"}},line:{style:{stroke:{type:"palette",key:"axisDomainColor"}}}},transformLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"secondaryFontColor"},textBaseline:"middle"}}},uq={transform3d:{style:{fill:"#f5f5f5"}},label:{style:{fill:"white",textBaseline:"middle",lineWidth:2}},outerLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:"#707070"},line:{style:{stroke:{type:"palette",key:"axisDomainColor"}}}},transformLabel:{style:{fontSize:{type:"token",key:"l4FontSize"},fill:"#707070",textBaseline:"middle"}}},pq={outerRadius:.8,innerRadius:.6,padAngle:1.146,segment:{style:{fillOpacity:1}},tickMask:{visible:!1,angle:3,offsetAngle:0,forceAlign:!0}},gq="M-0.020059 -0.978425 C-0.018029 -0.9888053 -0.013378 -1 0 -1 C0.01342 -1 0.01812 -0.989146 0.0201 -0.978425 C0.02161 -0.9702819 0.0692 -0.459505 0.09486 -0.184807 C0.10298 -0.097849 0.1089 -0.034548 0.11047 -0.018339 C0.11698 0.04908 0.07373 0.11111 0.00002 0.11111 C-0.07369 0.11111 -0.117184 0.04991 -0.110423 -0.018339 C-0.103662 -0.086591 -0.022089 -0.9680447 -0.020059 -0.978425Z",ww="M1 0 C1 0.55228 0.55228 1 0 1 C-0.552285 1 -1 0.55228 -1 0 C-1 -0.552285 -0.552285 -1 0 -1 C0.55228 -1 1 -0.552285 1 0Z",fq={pointer:{type:"path",width:.4,height:.4,style:{path:gq}},pin:{width:.025,height:.025,style:{path:ww,fill:"#888"}},pinBackground:{width:.06,height:.06,style:{path:ww,fill:"#ddd"}}},_q={label:{visible:!1,position:"top",offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},mq={bandWidth:30,progress:{style:{fillOpacity:1}},track:{style:{fill:"#E7EBED",fillOpacity:1}}},vq={arrow:{style:{size:10}}},yq={defaultFillColor:"#f3f3f3",area:{style:{lineWidth:.5,strokeOpacity:1,stroke:"black",fillOpacity:1}},label:{interactive:!1,style:{fontSize:{type:"token",key:"l6FontSize"},lineHeight:{type:"token",key:"l6LineHeight"},textBaseline:"middle",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"},stroke:{type:"palette",key:"backgroundColor"}}}},bq={outerRadius:.6,pie:{style:{fillOpacity:1}},label:{visible:!1,position:"outside",style:{fontWeight:"normal",stroke:{type:"palette",key:"backgroundColor"},fillOpacity:1}},innerLabel:{style:{lineWidth:2}}},xq={outerRadius:.6,pie3d:{style:{height:10,fillOpacity:1}},label:{visible:!1,position:"outside"}},Sq={label:{visible:!1,offset:5,style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}},point:{style:{symbolType:"circle"}}},Aq={point:{style:{size:8,symbolType:"circle",lineWidth:0,fillOpacity:.8}},label:{visible:!1,offset:5,position:"top",style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"}}}},kq={seriesFieldName:{total:"total",increase:"increase",decrease:"decrease"},leaderLine:{style:{stroke:"black",lineWidth:1,lineDash:[4,4]}},stackLabel:{visible:!0,offset:12,position:"withChange",style:{fill:"black",fontSize:{type:"token",key:"l4FontSize"}}},label:{visible:!1,offset:12,position:"inside",style:{lineWidth:2}}},Tq={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},Mq={word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}},wq={gapWidth:1,nodePadding:[5],nonLeaf:{visible:!1,style:{fillOpacity:.5}},label:{style:{fill:"white",textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}},nonLeafLabel:{padding:24,style:{fill:"black",stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},textBaseline:"middle",textAlign:"center"}}},Cq={innerRadius:0,outerRadius:1,startAngle:qx,endAngle:PI,gap:0,labelLayout:{align:"center",offset:0,rotate:"radial"},sunburst:{style:{stroke:{type:"palette",key:"backgroundColor"},fillOpacity:1,cursor:"pointer"}},label:{visible:!0,style:{cursor:"pointer",fill:{type:"palette",key:"primaryFontColor"},fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},Pq={label:{visible:!1,offset:5,position:"inside",style:{lineWidth:2,fill:{type:"palette",key:"axisMarkerFontColor"}},minLabel:{position:"end"},maxLabel:{position:"start"}}},Eq={layoutPadding:5,circlePacking:{visible:!0,style:{cursor:"pointer",stroke:{type:"palette",key:"backgroundColor"}}},label:{visible:!0,style:{cursor:"pointer",fill:"black",stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},Rq={cell:{style:{shape:"square",fillOpacity:1}},cellBackground:{visible:!1}},Bq={link:{style:{fillOpacity:.15,round:!0}}},Iq={rose:{style:{fillOpacity:1}},label:{style:{lineWidth:2,stroke:{type:"palette",key:"backgroundColor"},textAlign:"center",textBaseline:"middle"}}},Oq={boxPlot:{style:{lineWidth:1}},label:{style:{lineWidth:2}}},Lq={centerLabel:{visible:!0,position:"center",style:{fill:"#fff",text:""}},label:{visible:!0,position:"bottom",style:{fill:"#000"}}},Dq={outlinePadding:10,liquidBackground:{style:{lineWidth:0,fillOpacity:.2}},liquidOutline:{style:{lineWidth:2}}},Fq={circle:{style:{opacity:.8},state:{hover:{opacity:1}}},overlap:{style:{opacity:.8},state:{hover:{opacity:1,stroke:"white",lineWidth:2}}},label:{visible:!0,style:{fill:"white",textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"}}},overlapLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"center",fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"}}}},zq={scatter:Aq,line:_q,area:aq,bar:oq,bar3d:lq,pie:bq,pie3d:xq,map:yq,radar:Sq,dot:dq,link:vq,wordCloud:Tq,wordCloud3d:Mq,funnel:cq,funnel3d:uq,linearProgress:mq,circularProgress:hq,waterfall:kq,gauge:pq,gaugePointer:fq,treemap:wq,sunburst:Cq,rangeColumn:Pq,circlePacking:Eq,heatmap:Rq,sankey:Bq,rose:Iq,boxPlot:Oq,correlation:Lq,liquid:Dq,venn:Fq},jq={text:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fillOpacity:1}}},Hq={label:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fillOpacity:1,lineJoin:"bevel"}},area:{style:{fillOpacity:.2}},line:{style:{lineWidth:2,lineCap:"round",lineJoin:"round"}},point:{style:{size:8,stroke:{type:"palette",key:"backgroundColor"},lineWidth:1,fillOpacity:1}},word:{style:{fontSize:null}},fillingWord:{style:{fontSize:null}},sunburst:{style:{lineWidth:1,stroke:{type:"palette",key:"backgroundColor"}}},circlePacking:{style:{lineWidth:1,stroke:{type:"palette",key:"backgroundColor"}}},funnel3d:{style:{stroke:!1}},barBackground:{visible:!1,style:{fill:{type:"palette",key:"primaryFontColor",a:.06},stroke:"transparent"}}},Vq={domainLine:{visible:!0},grid:{visible:!1},subGrid:{visible:!1},tick:{visible:!0},subTick:{visible:!1}},UO={label:{space:8},title:{space:8},maxHeight:"30%",unit:{visible:!1,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}}},Wq={label:{space:12,autoLimit:!0},title:{space:12,autoRotate:!0},maxWidth:"30%",unit:{visible:!1,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}}},Nq=Object.assign(Object.assign({},UO),{label:{space:0}}),Gq={domainLine:{visible:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},grid:{visible:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisGridColor"},strokeOpacity:1,lineDash:[]}},subGrid:{visible:!1,style:{lineWidth:1,stroke:{type:"palette",key:"axisGridColor"},strokeOpacity:1,lineDash:[4,4]}},tick:{visible:!0,inside:!1,tickSize:4,alignWithLabel:!0,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},subTick:{visible:!1,tickSize:2,style:{lineWidth:1,stroke:{type:"palette",key:"axisDomainColor"},strokeOpacity:1}},label:{visible:!0,inside:!1,space:10,style:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"axisLabelFontColor"},fontWeight:"normal",fillOpacity:1}},title:{space:10,padding:0,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor"},fontWeight:"normal",fillOpacity:1}}},Uq={domainLine:{visible:!1},grid:{visible:!0},subGrid:{visible:!1},tick:{visible:!1},subTick:{visible:!1}},$q={grid:{smooth:!0,visible:!0},subGrid:{smooth:!0,visible:!1}},Yq={grid:{visible:!0,style:{lineDash:[6,6]}},label:{space:5}},Xq={style:{fill:"#B0C8F9",fillOpacity:.2,stroke:"#B0C8F9",lineWidth:2},brushMode:"single",brushType:"rect",brushMoved:!0,removeOnClick:!0,delayType:"throttle",delayTime:0},Kq={trigger:"hover",bandField:{visible:!1,line:{type:"rect",visible:!0,style:{fill:{type:"palette",key:"axisGridColor"},opacity:.7,lineWidth:0,stroke:{type:"palette",key:"markLineStrokeColor"},lineDash:[2,3]}},label:{visible:!1,style:{fontWeight:"normal",fill:{type:"palette",key:"axisMarkerFontColor"},fontSize:{type:"token",key:"l5FontSize"}},labelBackground:{padding:{bottom:0,top:0,left:2,right:2},style:{fill:{type:"palette",key:"axisMarkerBackgroundColor"},cornerRadius:1}}}},linearField:{visible:!1,line:{type:"line",visible:!0,style:{stroke:{type:"palette",key:"markLineStrokeColor"},fill:"transparent",opacity:.7,lineDash:[2,3]}},label:{visible:!1,style:{fontWeight:"normal",fill:{type:"palette",key:"axisMarkerFontColor"},fontSize:{type:"token",key:"l5FontSize"}},labelBackground:{padding:{bottom:0,top:0,left:2,right:2},style:{fill:{type:"palette",key:"axisMarkerBackgroundColor"},cornerRadius:1}}}}},Cw=`M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3 +C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6 +C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6 +C0.3-1.4,0.3-1.4,0.3-1.4z;`,qq={padding:[12,0],showDetail:"auto",brushSelect:!1,middleHandler:{visible:!1,background:{size:6,style:{stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},cornerRadius:2}},icon:{style:{size:4,fill:{type:"palette",key:"sliderHandleColor"},stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},symbolType:"M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",lineWidth:.5}}},background:{size:20,style:{fill:{type:"palette",key:"sliderRailColor"},lineWidth:0}},selectedBackground:{style:{fill:{type:"palette",key:"sliderTrackColor"},fillOpacity:.1,outerBorder:{stroke:{type:"palette",key:"sliderTrackColor"},strokeOpacity:.2,distance:-.5,lineWidth:1}}},selectedBackgroundChart:{area:{style:{visible:!1,stroke:!1,fill:{type:"palette",key:"dataZoomChartColor"}}},line:{style:{visible:!1,stroke:{type:"palette",key:"dataZoomChartColor"},lineWidth:1}}},startHandler:{style:{symbolType:Cw,fill:{type:"palette",key:"sliderHandleColor"},scaleX:1.2,scaleY:1.2,stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},lineWidth:1}},endHandler:{style:{symbolType:Cw,fill:{type:"palette",key:"sliderHandleColor"},scaleX:1.2,scaleY:1.2,stroke:{type:"palette",key:"dataZoomHandleStrokeColor"},lineWidth:1}},startText:{padding:8,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}}},endText:{padding:8,style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}}},backgroundChart:{area:{style:{stroke:!1,fill:{type:"palette",key:"dataZoomChartColor"}}},line:{style:{stroke:{type:"palette",key:"dataZoomChartColor"},lineWidth:1}}}},Zq={title:{visible:!0,autoLimit:!1,autoFit:!1,style:{fontSize:{type:"token",key:"l1FontSize"},fill:{type:"palette",key:"primaryFontColor"},fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}},content:{visible:!0,style:{fontSize:{type:"token",key:"l2FontSize"},fill:{type:"palette",key:"tertiaryFontColor"},fontWeight:"normal",fillOpacity:1,textBaseline:"top",textAlign:"center"}}},Gf={orient:"right",position:"middle",padding:[16,24],title:{visible:!1,padding:0,textStyle:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"primaryFontColor"}},space:12},handler:{visible:!0},startText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6},endText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6},handlerText:{style:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fontWeight:"normal",fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"}},space:6}},Pw={style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:"#ffffff"},shadowBlur:12,shadowOffsetX:0,shadowOffsetY:4,shadowColor:{type:"palette",key:"shadowColor"}}},Jq={horizontal:Object.assign(Object.assign({},Gf),{rail:{width:200,height:8,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:Pw}),vertical:Object.assign(Object.assign({},Gf),{rail:{width:8,height:200,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:Pw})},Qq={orient:"bottom",position:"middle",padding:[16,24],title:{visible:!1,padding:0,textStyle:{fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},fill:{type:"palette",key:"primaryFontColor"},fontWeight:"normal"},space:12},pager:{textStyle:{fill:{type:"palette",key:"discreteLegendPagerTextColor"}},handler:{style:{fill:{type:"palette",key:"discreteLegendPagerHandlerColor"}},state:{disable:{fill:{type:"palette",key:"discreteLegendPagerHandlerDisableColor"}}}}},item:{visible:!0,spaceCol:10,spaceRow:6,padding:2,background:{state:{selectedHover:{fill:{type:"palette",key:"hoverBackgroundColor"}},unSelectedHover:{fill:{type:"palette",key:"hoverBackgroundColor"}}}},shape:{space:6,style:{lineWidth:0,fillOpacity:1,opacity:1},state:{unSelected:{fillOpacity:.2,opacity:1}}},label:{space:6,style:{fill:{type:"palette",key:"secondaryFontColor",default:"#89909d"},fontSize:{type:"token",key:"l5FontSize"},lineHeight:{type:"token",key:"l5LineHeight"},opacity:1},state:{unSelected:{fill:{type:"palette",key:"disableFontColor"},opacity:1}}}},allowAllCanceled:!1},Ew={style:{symbolType:"circle",lineWidth:0,outerBorder:{lineWidth:2,distance:.8,stroke:{type:"palette",key:"sliderTrackColor"}},fill:{type:"palette",key:"sliderHandleColor"}}},tZ={horizontal:Object.assign(Object.assign({},Gf),{sizeBackground:{fill:{type:"palette",key:"dataZoomChartColor"}},track:{style:{fill:{type:"palette",key:"sliderTrackColor",a:.8}}},rail:{width:200,height:4,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:Ew}),vertical:Object.assign(Object.assign({},Gf),{sizeBackground:{fill:{type:"palette",key:"dataZoomChartColor"}},track:{style:{fill:{type:"palette",key:"sliderTrackColor",a:.8}}},rail:{width:4,height:200,style:{fill:{type:"palette",key:"sliderRailColor"}}},handler:Ew})},eZ={visible:!0,offset:12,position:"top",space:10,nameLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:{type:"token",key:"l6FontSize"}}},valueLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:{type:"token",key:"l6FontSize"}}},background:{visible:!0,padding:{top:4,bottom:4,left:6,right:6},style:{cornerRadius:2,lineWidth:1,fill:"white",stroke:"grey"}},leader:{visible:!1,style:{lineWidth:1,stroke:"red"}}},Rw={area:{style:{fill:{type:"palette",key:"axisDomainColor",a:.25}}},label:{style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fontStyle:"normal",fill:{type:"palette",key:"primaryFontColor"}},labelBackground:{padding:{top:2,bottom:2,right:4,left:4},style:{cornerRadius:3,fill:{type:"palette",key:"markLabelBackgroundColor"}}}}},Bw={line:{style:{lineDash:[3,3],stroke:{type:"palette",key:"markLineStrokeColor"}}},startSymbol:{visible:!1,symbolType:"triangle",size:10,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},endSymbol:{visible:!0,symbolType:"triangle",size:10,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},label:{refY:5,style:{fontSize:{type:"token",key:"l4FontSize"},fontWeight:"normal",fontStyle:"normal",fill:{type:"palette",key:"primaryFontColor"}},labelBackground:{padding:{top:2,bottom:2,right:4,left:4},style:{cornerRadius:3,fill:{type:"palette",key:"markLabelBackgroundColor"}}}}},ev={itemLine:{decorativeLine:{visible:!1},startSymbol:{size:5,visible:!0,style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},endSymbol:{style:{fill:{type:"palette",key:"markLineStrokeColor"},stroke:null,lineWidth:0}},line:{style:{stroke:{type:"palette",key:"markLineStrokeColor"}}}},itemContent:{offsetY:-50}},iZ={visible:!0,position:"start",padding:{top:20,bottom:20},slider:{space:10,trackStyle:{fill:{type:"palette",key:"sliderTrackColor"},fillOpacity:.8},railStyle:{fill:{type:"palette",key:"sliderRailColor"}},handlerStyle:{size:15,stroke:{type:"palette",key:"backgroundColor"},lineWidth:2,fill:{type:"palette",key:"playerControllerColor"}}},controller:{start:{order:0,space:0,style:{size:25,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},pause:{order:0,space:0,style:{size:25,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},backward:{order:0,space:10,position:"start",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}},forward:{order:0,space:10,position:"end",style:{size:12,fill:{type:"palette",key:"playerControllerColor"},fillOpacity:.8}}}},nZ={padding:{top:4,bottom:20},textStyle:{fontSize:{type:"token",key:"l3FontSize"},lineHeight:{type:"token",key:"l3LineHeight"},fill:{type:"palette",key:"primaryFontColor"}},subtextStyle:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fill:{type:"palette",key:"tertiaryFontColor"}}},sZ={offset:{x:10,y:10},panel:{padding:{top:10,left:10,right:10,bottom:10},backgroundColor:{type:"palette",key:"popupBackgroundColor"},border:{color:{type:"palette",key:"popupBackgroundColor"},width:0,radius:3},shadow:{x:0,y:4,blur:12,spread:0,color:{type:"palette",key:"shadowColor"}}},spaceRow:6,titleLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"primaryFontColor"},fontWeight:"bold",textBaseline:"middle",spacing:0},shape:{size:8,spacing:6},keyLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"secondaryFontColor"},textBaseline:"middle",spacing:26},valueLabel:{fontSize:{type:"token",key:"l4FontSize"},lineHeight:{type:"token",key:"l4LineHeight"},fontColor:{type:"palette",key:"primaryFontColor"},fontWeight:"bold",textBaseline:"middle",spacing:0}},rZ={visible:!0,position:"auto",padding:8,titleStyle:{fontSize:{type:"token",key:"l5FontSize"},fontWeight:"bold",fill:{type:"palette",key:"primaryFontColor"}},contentStyle:{fontSize:{type:"token",key:"l5FontSize"},fill:{type:"palette",key:"primaryFontColor"}},panel:{visible:!0,fill:{type:"palette",key:"popupBackgroundColor"},cornerRadius:3,lineWidth:0,shadowBlur:12,shadowOffsetX:0,shadowOffsetY:4,shadowColor:{type:"palette",key:"shadowColor"},size:0,space:12}},aZ={visible:!1,offset:5,overlap:{clampForce:!0,strategy:[]},smartInvert:!1,animation:!1,style:{fontSize:{type:"token",key:"l4FontSize"},fill:{type:"palette",key:"primaryFontColor"}}},oZ={horizontal:{height:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}},vertical:{width:10,slider:{style:{fill:{type:"palette",key:"scrollBarSliderColor"}}}}},lZ={discreteLegend:Qq,colorLegend:Jq,sizeLegend:tZ,axis:Gq,axisBand:Vq,axisLinear:Uq,axisX:UO,axisY:Wq,axisZ:Nq,axisAngle:Yq,axisRadius:$q,markLine:Bw,markArea:Rw,markPoint:ev,polarMarkLine:Bw,polarMarkArea:Rw,polarMarkPoint:ev,geoMarkPoint:ev,tooltip:sZ,dataZoom:qq,crosshair:Kq,player:iZ,brush:Xq,indicator:Zq,title:nZ,mapLabel:eZ,poptip:rZ,totalLabel:aZ,scrollBar:oZ};function hZ(n,t){return n&&t.key in n?n[t.key]:t.default}function dZ(n){return n&&n.type==="token"&&!!n.key}const Uf={fontFamily:"PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol",fontSize:14,l1FontSize:32,l1LineHeight:"150%",l2FontSize:20,l2LineHeight:"140%",l3FontSize:16,l3LineHeight:"150%",l4FontSize:14,l4LineHeight:"150%",l5FontSize:12,l5LineHeight:"130%",l6FontSize:10,l6LineHeight:"120%"},Bb={name:"light",background:{type:"palette",key:"backgroundColor"},padding:20,fontFamily:{type:"token",key:"fontFamily"},colorScheme:rq,token:Uf,mark:jq,markByName:Hq,series:zq,component:lZ,animationThreshold:2e3},cZ={default:{dataScheme:GO,palette:{backgroundColor:"#202226",borderColor:"#404349",shadowColor:"rgba(0,0,0,0.1)",hoverBackgroundColor:"#404349",sliderRailColor:"#404349",sliderHandleColor:"#202226",sliderTrackColor:"#4284FF",popupBackgroundColor:"#404349",primaryFontColor:"#fdfdfd",secondaryFontColor:"#bbbdc3",tertiaryFontColor:"#888c93",axisLabelFontColor:"#888c93",disableFontColor:"#55595f",axisMarkerFontColor:"#202226",axisGridColor:"#404349",axisDomainColor:"#4b4f54",dataZoomHandleStrokeColor:"#bbbdc3",dataZoomChartColor:"#55595F",playerControllerColor:"#4284FF",scrollBarSliderColor:"rgba(255,255,255,0.3)",axisMarkerBackgroundColor:"#fdfdfd",markLabelBackgroundColor:"#404349",markLineStrokeColor:"#bbbdc3",dangerColor:"#eb4b4b",warningColor:"#f0bd30",successColor:"#14b267",infoColor:"#4284ff",discreteLegendPagerTextColor:"#BBBDC3",discreteLegendPagerHandlerColor:"#BBBDC3",discreteLegendPagerHandlerDisableColor:"#55595F"}}},Iw={name:"dark",colorScheme:cZ,component:{dataZoom:{selectedBackground:{style:{fillOpacity:.4,outerBorder:{strokeOpacity:.4}}}}}},Yp=(n,t,e)=>{if(C(t))return n;const i=t[0];return C(i)?n:t.length===1?(n[i]=e,n):(C(n[i])&&(typeof t[1]=="number"?n[i]=[]:n[i]={}),Yp(n[i],t.slice(1),e))},uZ=(n,t,e)=>{if(!C(t))return Pt(n,t,e)};function $O(n,t,e=!1){if(t){if(n===t)return;if(P(t)&&typeof t=="object"){const i=Object(t),s=[];for(const o in i)s.push(o);let{length:r}=s,a=-1;for(;r--;){const o=s[++a];P(i[o])&&typeof i[o]=="object"&&!V(n[o])?pZ(n,t,o,e):YO(n,o,i[o])}}}}function pZ(n,t,e,i=!1){const s=n[e],r=t[e];let a=t[e],o=!0;if(V(r)){if(i)a=[];else if(V(s))a=s;else if(B_(s)){a=new Array(s.length);let l=-1;const h=s.length;for(;++l{if(Ct(t))t.type===s&&(V(n[s])?n[s].length>=t.index&&(n[s][t.index]=i?vt({},n[s][t.index],e):e):n[s]=i?vt({},n[s],e):e);else if(V(n[s])){const r=n[s].findIndex(a=>a.id===t);r>=0&&(n[s][r]=i?vt({},n[s][r],e):e)}else n.id===t&&(n[s]=i?vt({},n[s],e):e)})}function Ib(n,...t){return vt(Lw(n),...t.map(Lw))}function Lw(n){var t;if(!n)return n;const e=fZ(n.colorScheme),{series:i}=n,{mark:s,markByName:r}=n;let a;return(s||r)&&(a=Object.keys(Wf).reduce((o,l)=>{var h;const d=(h=i==null?void 0:i[l])!==null&&h!==void 0?h:{};return o[l]=XO(d,l,s,r),o},{})),Object.assign({},n,{colorScheme:e,token:(t=n.token)!==null&&t!==void 0?t:{},series:Object.assign({},n.series,a)})}function fZ(n){return n&&(n=Object.keys(n).reduce((t,e)=>{const i=n[e];return t[e]=QK(i),t},{})),n}function XO(n,t,e,i){if(!Wf[t])return n;const s={};return Object.values(Wf[t]).forEach(({type:r,name:a})=>{s[a]=vt({},e==null?void 0:e[H(r)[0]],i==null?void 0:i[a],n==null?void 0:n[a])}),Object.assign(Object.assign({},n),s)}const _Z=["animationThreshold","colorScheme","name","padding"];function Om(n,t,e,i){if(!n)return n;t||(t=n.colorScheme),e||(e=n.token);const s={};return Object.keys(n).forEach(r=>{const a=n[r];_Z.includes(r)?s[r]=a:vs(a)?Nf(a)?s[r]=JK(a,t,i):dZ(a)?s[r]=hZ(e,a):s[r]=Om(a,t,e,i):s[r]=a}),s}const Nc={[Bb.name]:Bb},Bu=Bb.name,ch=new Map(Object.keys(Nc).map(n=>[n,Nc[n]])),pS=new Map(Object.keys(Nc).map(n=>[n,Om(Nc[n])])),$f=new Map(Object.keys(Nc).map(n=>[n,n===Bu])),gS=(n,t)=>{if(!n)return;const e=yZ(t);ch.set(n,e),pS.set(n,Om(e)),$f.set(n,!0)},KO=(n=Bu,t=!1)=>($f.has(n)&&!$f.get(n)&&gS(n,ch.get(n)),t?pS.get(n):ch.get(n)),mZ=n=>ch.delete(n)&&pS.delete(n)&&$f.delete(n),vZ=n=>!!at(n)&&ch.has(n),yZ=n=>{var t;const e=(t=n.type)!==null&&t!==void 0?t:Bu,i=KO(e);return Ib({},i,n)};class Kn{static registerInstance(t){Kn.instances.set(t.id,t)}static unregisterInstance(t){Kn.instances.delete(t.id)}static getInstance(t){return Kn.instances.get(t)}static instanceExist(t){return Kn.instances.has(t)}static forEach(t,e=[],i){const s=H(e);return Kn.instances.forEach((r,a,o)=>{s.includes(a)||t(r,a,o)},i)}}Kn.instances=new Map;class nn{static registerTheme(t,e){gS(t,e)}static getTheme(t,e=!1){return KO(t,e)}static removeTheme(t){return mZ(t)}static themeExist(t){return vZ(t)}static getDefaultTheme(){return nn.themes.get(Bu)}static setCurrentTheme(t){nn.themeExist(t)&&(nn._currentThemeName=t,Kn.forEach(e=>e==null?void 0:e.setCurrentTheme(t)))}static getCurrentTheme(t=!1){return nn.getTheme(nn._currentThemeName,t)}static getCurrentThemeName(){return nn._currentThemeName}}nn.themes=ch,nn._currentThemeName=Bu;function Ur(n,t){return at(n)?nn.themeExist(n)?nn.getTheme(n,t):{}:Ct(n)?n:{}}function Ob(n,t={data:e=>e}){if(!n)return n;if(n.constructor===Object){const e={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(t[i]){e[i]=t[i](n[i]);continue}e[i]=Ob(n[i],t)}return e}return V(n)?n.map(e=>Ob(e,t)):n}function Lb(n,t){if(!n)return n;if(vs(n)){const e={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(at(n[i])&&t.getFunction(n[i])){e[i]=t.getFunction(n[i]);continue}e[i]=Lb(n[i],t)}return e}return V(n)?n.map(e=>Lb(e,t)):n}const bZ=(n,t,e)=>Wl(n,t,e,{fontFamily:Uf.fontFamily,fontSize:Uf.fontSize}),xZ=(n,t,e,i)=>bZ(t,e,i).measure(n);function $l(n,t){for(let e=0;ee.key===t)}function Yf(n,t){var e;if(!n)return t??null;const i=n.getFields();return i&&i[t]?(e=i[t].alias)!==null&&e!==void 0?e:t:t??null}function qO(n,t,e){const i=n.getStackSort(),s={};let r=null;return i&&(r={},n.getSeries().forEach(a=>{const o=a.getSeriesField();if(o){const l=a.getRawDataStatisticsByField(o);l.values&&(r[o]||(r[o]={lastIndex:0,sort:{}}),l.values.forEach((h,d)=>{h in r[o].sort||(r[o].sort[h]=r[o].lastIndex,r[o].lastIndex++)}))}})),n.getSeries().forEach(a=>{var o;const l=a.getStackData(),h=a.getStackValue(),d=a.getStackValueField(),c=!e||e(a);l&&d&&c&&(s[h]=(o=s[h])!==null&&o!==void 0?o:{nodes:{}},tL(a,l,s[h],d,t,r))}),i?ZO(s):s}function ZO(n,t){var e;for(const i in n)!((e=n[i].sortDatums)===null||e===void 0)&&e.length?(n[i].sortDatums.sort((s,r)=>s.index-r.index),n[i].values=n[i].sortDatums.map(s=>s.datum)):ZO(n[i].nodes);return n}function JO(n,t){if("values"in n&&n.values.length){const e=TI(n.values,t),i=Xx(n.values,La);n.values.forEach(r=>{r[gO]=e,r[VK]=i,delete r[Vc]});const s=n.values.reduce((r,a)=>a[qe]>r[qe]?a:r);s[Vc]=!0}else for(const e in n.nodes)JO(n.nodes[e],t)}function AZ(n){if(!n.values.length)return;const t=n.values[n.values.length-1][qe]/2;for(let e=0;e0){let i=0,s=0,r=1,a=0;const o=n.values.length;for(let l=0;l=0?(h[An]=i,i+=h[qe],h[qe]=i):(h[An]=s,s+=h[qe],h[qe]=s),h[HK]=n.key}if(e)for(let l=0;l=0?i:s;r=a>=0?1:-1,h[zo]=d===0?0:Math.min(1,h[An]/d)*r,h[La]=d===0?0:Math.min(1,h[qe]/d)*r}}for(const i in n.nodes)QO(n.nodes[i],t,e)}function tL(n,t,e,i,s,r,a){if("values"in t)if(s&&t.values.forEach(o=>o[qe]=SG(o[i])),e.series.push({s:n,values:t.values}),r){const o=n.getSeriesField();t.values.forEach(l=>{e.sortDatums.push({series:n,datum:l,index:o?r[o].sort[l[o]]:0})})}else e.values.push(...t.values);else for(const o in t.nodes){const l=a?`${a}_${o}`:o;!e.nodes[o]&&(e.nodes[o]={values:[],series:[],nodes:{},sortDatums:[],key:l}),tL(n,t.nodes[o],e.nodes[o],i,s,r,l)}}const eL=(n,t,e="key",i="children")=>{for(let s=0;s{for(let s=0;s{const s=[],r=(a,o)=>{for(const l of a){if(l[e]===t)return s.push(...o,l[e].toString()),!0;if(l[i]){const h=r(l[i],[...o,l[e]]);if(h===!0)return h}}return!1};return r(n,[]),s};function TZ(n,t="value",e="children"){return!!Ct(n)&&!!n.hasOwnProperty(e)&&Array.isArray(n[e])}function nL(n,t,e,i="value",s="children"){return Array.isArray(n)?n.map(r=>{const a=Object.assign({},r);return Array.isArray(a[s])&&(a[s]=nL(a[s],t,e,i,s)),a}).filter(r=>+r[i]>=t&&+r[i]<=e||r[s]&&r[s].length>0):n}function ps(n={}){const t=Object.assign({},n);if(G(n.style)?t.style=(e,i,s,r)=>St(n.style(e,i,s,r)):_t(n.style)||(t.style=St(n.style)),!_t(n.state)){const e={};Object.keys(n.state).forEach(i=>{G(n.state[i])?e[i]=(s,r,a,o)=>St(n.state[i](s,r,a,o)):_t(n.state[i])||(e[i]=St(n.state[i]))}),t.state=e}return t}function rl(n){if(_t(n))return null;const t={};return Object.keys(n).forEach(e=>{G(n[e])?t[e]=(i,s,r,a)=>St(n[e](i,s,r,a)):_t(n[e])||(t[e]=St(n[e]))}),t}function MZ(n){if(_t(n))return null;const t={};return Object.keys(n).forEach(e=>{G(n[e])?t[e]=(i,s,r,a)=>St(n[e](i.rawValue,s,i,r,a)):_t(n[e])||(t[e]=St(n[e]))}),t}function Dw(n,t){if(_t(n))return null;const e={};return Object.keys(n).forEach(i=>{G(n[i])?e[i]=n[i](t):e[i]=n[i]}),St(e)}function St(n){return n!=null&&n.angle&&(n.angle=Jt(n.angle)),n}class L{static registerChart(t,e){L._charts[t]=e}static registerSeries(t,e){L._series[t]=e}static registerComponent(t,e,i){L._components[t]={cmp:e,alwaysCheck:i}}static registerMark(t,e){L._marks[t]=e}static registerRegion(t,e){L._regions[t]=e}static registerTransform(t,e){L.transforms[t]=e}static registerLayout(t,e){L._layout[t]=e}static registerAnimation(t,e){L._animations[t]=e}static registerImplement(t,e){L._implements[t]=e}static registerChartPlugin(t,e){L._chartPlugin[t]=e}static registerComponentPlugin(t,e){L._componentPlugin[t]=e}static createChart(t,e,i){return L._charts[t]?new L._charts[t](e,i):null}static createChartSpecTransformer(t,e){if(!L._charts[t])return null;const i=L._charts[t];return new i.transformerConstructor(Object.assign({seriesType:i.seriesType},e))}static createRegion(t,e,i){return L._regions[t]?new L._regions[t](e,i):null}static createRegionSpecTransformer(t,e){return L._regions[t]?new L._regions[t].transformerConstructor(e):null}static createSeries(t,e,i){return L._series[t]?new L._series[t](e,i):null}static createSeriesSpecTransformer(t,e){return L._series[t]?new L._series[t].transformerConstructor(e):null}static createMark(t,e,i){if(!L._marks[t])return null;const s=new L._marks[t](e,i);return s.type==="group"&&s.setInteractive(!1),s}static getComponents(){return Object.values(L._components)}static getComponentInKey(t){return L._components[t].cmp}static getLayout(){return Object.values(L._layout)}static getLayoutInKey(t){return L._layout[t]}static getSeries(){return Object.values(L._series)}static getSeriesInType(t){return L._series[t]}static getRegionInType(t){return L._regions[t]}static getAnimationInKey(t){return L._animations[t]}static getImplementInKey(t){return L._implements[t]}static getSeriesMarkMap(t){return L._series[t]?L._series[t].mark:{}}static getChartPlugins(){return Object.values(L._chartPlugin)}static getComponentPlugins(){return Object.values(L._componentPlugin)}static getComponentPluginInType(t){return L._componentPlugin[t]}static registerFormatter(t){this._formatter=t}static getFormatter(){return this._formatter}}L._charts={},L._series={},L._components={},L._marks={},L._regions={},L._animations={},L._implements={},L._chartPlugin={},L._componentPlugin={},L.transforms={fields:ME,filter:qF,fold:a3},L.dataParser={csv:PE,dsv:CE,tsv:EE},L._layout={};const wZ=(n,t,e)=>n.x>=t.x&&n.x<=e.x&&n.y>=t.y&&n.y<=e.y,CZ=(n,t,e)=>{const i=n.getRegionsInIds(H(t.layout.layoutBindRegionID));return i==null?void 0:i.some(s=>{const r=s.getLayoutRect(),a=s.getLayoutStartPoint();return wZ(e,{x:a.x,y:a.y},{x:r.width+a.x,y:r.height+a.y})})},sL=(n,t)=>{var e,i;return n===t||!C(n)&&!C(t)&&n.value===t.value&&((e=n.axis)===null||e===void 0?void 0:e.id)===((i=t.axis)===null||i===void 0?void 0:i.id)},Db=(n,t,e,i)=>{var s;const r=t.getScale(),a=vi(r.type),o=[],l=t.getOption().getChart().getSeriesInIndex(t.getSpecInfo().seriesIndexes);for(const h of l)if(h.coordinate===e){const d=H(i(h)),c=(s=h.getViewData())===null||s===void 0?void 0:s.latestData;if(d&&c)if(a){const u=[],p=[];c.forEach((g,f)=>{var _;((_=g[d[0]])===null||_===void 0?void 0:_.toString())===(n==null?void 0:n.toString())&&(u.push(g),p.push(f))}),o.push({series:h,datum:u,key:iv(h,p)})}else if(P(d[1])){const u=[],p=[];c.forEach((g,f)=>{var _;(((_=g[d[0]])===null||_===void 0?void 0:_.toString())===(n==null?void 0:n.toString())||P(g[d[0]])&&P(g[d[1]])&&n>=g[d[0]]&&n{if(P(_[d[0]])){const y=_[d[0]]-n;y>=p[0]&&y<=p[1]&&(g.push(_),f.push(m))}});else{let _=1/0,m=0;c.forEach((y,b)=>{if(P(y[d[0]])){const v=Math.abs(y[d[0]]-n),x=Math.sign(y[d[0]]-n);v<_?(_=v,g=[y],f=[b],m=x):v===_&&x===m&&(g.push(y),f.push(b))}})}o.push({series:h,datum:g,key:iv(h,f)})}}return o},iv=(n,t)=>`${n.id}_${t.join("_")}`,Xf=(n,t,e)=>{const i=n.getAllComponents().filter(s=>s.specKey==="axes"&&t(s)&&CZ(n,s,e));return i.length?i:null},PZ=(n,t)=>{const e=2*Math.PI,i=ti(t),s=Ve(t);return ns&&(n-=Math.ceil((n-s)/e)*e),n},rL=(n,t)=>{if(!n)return null;const{x:e,y:i}=t,s=Xf(n,l=>l.getOrient()==="angle",t),r=Xf(n,l=>l.getOrient()==="radius",t),a=[],o=l=>l.getDimensionField()[0];return s&&s.forEach(l=>{var h;const d=l.getScale();if(d&&vi(d.type)){const c=d.domain(),u=d.range(),p=l.getCenter(),g={x:e-l.getLayoutStartPoint().x-p.x,y:i-l.getLayoutStartPoint().y-p.y};let f=zM({x:1,y:0},g);f=PZ(f,u);const _=Df(g),m=(h=r[0])===null||h===void 0?void 0:h.getScale(),y=m==null?void 0:m.range();if((f-(u==null?void 0:u[0]))*(f-(u==null?void 0:u[1]))>0||(_-(y==null?void 0:y[0]))*(_-(y==null?void 0:y[1]))>0)return;const b=l.invert(f);if(C(b))return;let v=c.findIndex(S=>(S==null?void 0:S.toString())===b.toString());v<0&&(v=void 0);const x=Db(b,l,"polar",o);a.push({index:v,value:b,position:d.scale(b),axis:l,data:x})}}),r&&r.forEach(l=>{var h;const d=l.getScale(),c=d==null?void 0:d.range();if(d&&vi(d.type)){const u=l.getCenter(),p={x:e-l.getLayoutStartPoint().x-u.x,y:i-l.getLayoutStartPoint().y-u.y};let g=zM({x:1,y:0},p);g<-Math.PI/2&&(g=2*Math.PI+g);const f=Df(p),_=(h=s[0])===null||h===void 0?void 0:h.getScale(),m=_==null?void 0:_.range();if((g-(m==null?void 0:m[0]))*(g-(m==null?void 0:m[1]))>0||(f-(c==null?void 0:c[0]))*(f-(c==null?void 0:c[1]))>0)return;const y=d.invert(f);if(C(y))return;let b=d.domain().findIndex(x=>(x==null?void 0:x.toString())===y.toString());b<0&&(b=void 0);const v=Db(y,l,"polar",o);a.push({index:b,value:y,position:d.scale(y),axis:l,data:v})}}),a.length?a:null};function ke(n){return n==="bottom"||n==="top"}function Ds(n){return n==="left"||n==="right"}function $r(n){return n==="z"}function EZ(n,t){return t?ke(n)?"linear":"band":ke(n)?"band":"linear"}function to(n,t){return uS(n.orient)||t&&t.includes(n.orient)?n.orient:"left"}function aL(n){return n==="top"||n==="bottom"?"horizontal":"vertical"}function RZ(n,t){let e=n.inverse;return t&&!ke(n.orient)&&(e=!P(n.inverse)||!n.inverse),e}function Fw(n,t){var e;const i=(e=n.type)!==null&&e!==void 0?e:EZ(n.orient,t);return{axisType:i,componentName:`${U.cartesianAxis}-${i}`}}const oL=n=>n.fieldX[0],lL=n=>n.fieldY[0],BZ=n=>{var t;return[n.fieldX[0],(t=n.fieldX2)!==null&&t!==void 0?t:n.fieldX[1]]},IZ=n=>{var t;return[n.fieldY[0],(t=n.fieldY2)!==null&&t!==void 0?t:n.fieldY[1]]},zw=(n,t)=>n?t?oL:BZ:t?lL:IZ,hL=(n,t,e)=>{var i,s;if(!n)return null;const{x:r,y:a}=t,o=(i=Xf(n,g=>ke(g.getOrient()),t))!==null&&i!==void 0?i:[],l=(s=Xf(n,g=>Ds(g.getOrient()),t))!==null&&s!==void 0?s:[],h=new Set,d=new Set,c=new Set;[o,l].forEach(g=>g.forEach(f=>{vi(f.getScale().type)?h.add(f):d.add(f),e&&f.getSpec().hasDimensionTooltip&&c.add(f)}));const u=[],p=g=>{const f=g==="x",_=f?r:a;(f?o:l).forEach(m=>{if(c.size>0){if(c.has(m)){const y=jw(m,_,g,zw(f,vi(m.getScale().type)));y&&u.push(y)}}else{const y=h.size>0;if((y?h:d).has(m)){const b=jw(m,_,g,zw(f,y));b&&u.push(b)}}})};return n.getSpec().direction==="horizontal"?(p("y"),u.length===0&&p("x")):(p("x"),u.length===0&&p("y")),u.length?u:null},jw=(n,t,e,i)=>{const s=n.getScale(),r=t-n.getLayoutStartPoint()[e];if((r-s.range()[0])*(r-s.range()[1])>0)return null;const a=s.invert(r);return dL(n,a,i)},dL=(n,t,e)=>{const i=n.getScale();if(C(t))return null;let s=i.domain().findIndex(a=>(a==null?void 0:a.toString())===t.toString());s<0&&(s=void 0);const r=Db(t,n,"cartesian",e??(ke(n.getOrient())?oL:lL));return{index:s,value:t,position:i.scale(t),axis:n,data:r}};class cL{constructor(t,e){this._eventDispatcher=t,this._mode=e}get chart(){var t,e;return this._chart||(this._chart=(e=(t=this._eventDispatcher.globalInstance).getChart)===null||e===void 0?void 0:e.call(t)),this._chart}register(t,e){var i,s;((s=(i=this.chart)===null||i===void 0?void 0:i.getOption().onError)!==null&&s!==void 0?s:Co)("Method not implemented.")}unregister(){var t,e;((e=(t=this.chart)===null||t===void 0?void 0:t.getOption().onError)!==null&&e!==void 0?e:Co)("Method not implemented.")}getTargetDimensionInfo(t,e){var i,s;const r=(i=hL(this.chart,{x:t,y:e}))!==null&&i!==void 0?i:[],a=(s=rL(this.chart,{x:t,y:e}))!==null&&s!==void 0?s:[],o=[].concat(r,a);return o.length===0?null:o}dispatch(t,e){var i;const s=(i=this.chart)===null||i===void 0?void 0:i.getAllComponents().filter(l=>l.specKey==="axes"&&(!(e!=null&&e.filter)||e.filter(l))),r=s.filter(l=>{const h=l.getScale();return vi(h.type)}),a=r.length?r:s.filter(l=>{const h=l.getOrient();return ke(h)||h==="angle"}),o=[];return a.forEach(l=>{const h=dL(l,t);h&&o.push(h)}),this._callback.call(null,{action:"enter",dimensionInfo:o}),o}}class OZ extends cL{constructor(){super(...arguments),this.onClick=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,s=this.getTargetDimensionInfo(e,i);s&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"click",dimensionInfo:s.slice()}))}}register(t,e){this._callback=e.callback,this._eventDispatcher.register("pointertap",{query:Object.assign(Object.assign({},e.query),{source:Nt.chart}),callback:this.onClick})}unregister(){this._eventDispatcher.unregister("pointertap",{query:null,callback:this.onClick})}}class LZ extends cL{constructor(){super(...arguments),this._cacheDimensionInfo=null,this.onMouseMove=t=>{if(!t)return;const e=t.event.viewX,i=t.event.viewY,s=this.getTargetDimensionInfo(e,i);s===null&&this._cacheDimensionInfo!==null?(this._callback.call(null,Object.assign(Object.assign({},t),{action:"leave",dimensionInfo:this._cacheDimensionInfo.slice()})),this._cacheDimensionInfo=s):s===null||this._cacheDimensionInfo!==null&&s.length===this._cacheDimensionInfo.length&&!s.some((r,a)=>!sL(r,this._cacheDimensionInfo[a]))?s!==null&&this._callback.call(null,Object.assign(Object.assign({},t),{action:"move",dimensionInfo:s.slice()})):(this._callback.call(null,Object.assign(Object.assign({},t),{action:"enter",dimensionInfo:s.slice()})),this._cacheDimensionInfo=s)},this.onMouseOut=t=>{t&&(this._callback.call(null,Object.assign(Object.assign({},t),{action:"leave",dimensionInfo:this._cacheDimensionInfo?this._cacheDimensionInfo.slice():[]})),this._cacheDimensionInfo=null)}}register(t,e){this._callback=e.callback,this._eventDispatcher.register("pointermove",{query:Object.assign(Object.assign({},e.query),{source:Nt.chart}),callback:this.onMouseMove}),this._eventDispatcher.register("pointerout",{query:Object.assign(Object.assign({},e.query),{source:Nt.canvas}),callback:this.onMouseOut}),Ba(this._mode)&&this._eventDispatcher.register("pointerdown",{query:Object.assign(Object.assign({},e.query),{source:Nt.chart}),callback:this.onMouseMove})}unregister(){this._eventDispatcher.unregister("pointermove",{query:null,callback:this.onMouseMove}),Ba(this._mode)&&this._eventDispatcher.unregister("pointerdown",{query:null,callback:this.onMouseMove})}}var Er;(function(n){n.dimensionHover="dimensionHover",n.dimensionClick="dimensionClick"})(Er||(Er={}));const nv={[Er.dimensionHover]:LZ,[Er.dimensionClick]:OZ};let Lm=class{getComposedEventMap(){return this._composedEventMap}constructor(t,e){this._composedEventMap=new Map,this._eventDispatcher=t,this._mode=e}on(t,e,i){const s=typeof e=="function"?{query:null,callback:e}:{query:e,callback:i};if(nv[t]){const r=new nv[t](this._eventDispatcher,this._mode);r.register(t,s),this._composedEventMap.set(i,{eventType:t,event:r})}else this._eventDispatcher.register(t,s);return this}off(t,e,i){var s,r;const a=i??e;if(nv[t])if(a)(s=this._composedEventMap.get(a))===null||s===void 0||s.event.unregister(),this._composedEventMap.delete(a);else for(const o of this._composedEventMap.entries())o[1].eventType===t&&((r=this._composedEventMap.get(o[0]))===null||r===void 0||r.event.unregister(),this._composedEventMap.delete(o[0]));else if(a){const o={callback:a,query:null,filter:{nodeName:null,type:t,level:null,source:e.source,markName:null,filter:null,userId:null}};this._eventDispatcher.unregister(t,o)}else this._eventDispatcher.unregister(t);return this}emit(t,e,i){return this._eventDispatcher.dispatch(t,e,i),this}prevent(t,e){return this._eventDispatcher.prevent(t,e),this}allow(t){return this._eventDispatcher.allow(t),this}release(){this._eventDispatcher.clear(),this._composedEventMap.clear()}};class DZ{constructor(){this._map=new Map,this._levelNodes=new Map,this._levelNodes.set(he.vchart,[]),this._levelNodes.set(he.chart,[]),this._levelNodes.set(he.model,[]),this._levelNodes.set(he.mark,[])}addHandler(t,e){var i;const s={level:e,handler:t};return(i=this._levelNodes.get(e))===null||i===void 0||i.push(s),this._map.set(t.callback,s),this}removeHandler(t){const e=this._map.get(t.callback);if(!e)return this;this._map.delete(t.callback);const i=this._levelNodes.get(e.level),s=i==null?void 0:i.findIndex(r=>r.handler.callback===t.callback);return s!==void 0&&s>=0&&(i==null||i.splice(s,1)),this}preventHandler(t){return t&&(t.prevented=!0),this}allowHandler(t){return t&&(t.prevented=!1),this}getHandlers(t){var e;return((e=this._levelNodes.get(t))===null||e===void 0?void 0:e.map(i=>i.handler))||[]}getAllHandlers(){return Array.from(this._map.values()).map(t=>t.handler)||[]}getCount(){return this._map.size}release(){this._map.clear(),this._levelNodes.clear()}}const Hw={cartesianAxis:"axis","cartesianAxis-band":"axis","cartesianAxis-linear":"axis","cartesianAxis-time":"axis",polarAxis:"axis","polarAxis-band":"axis","polarAxis-linear":"axis",discreteLegend:"legend",continuousLegend:"legend",colorLegend:"legend",sizeLegend:"legend",label:"label",markLine:"markLine",markArea:"markArea",markPoint:"markPoint",polarMarkLine:"polarMarkLine",polarMarkArea:"polarMarkArea",polarMarkPoint:"polarMarkPoint",geoMarkPoint:"geoMarkPoint"};class FZ{constructor(t,e){this._viewBubbles=new Map,this._windowBubbles=new Map,this._canvasBubbles=new Map,this._viewListeners=new Map,this._windowListeners=new Map,this._canvasListeners=new Map,this._onDelegate=i=>{var s;const r=this.globalInstance.getChart(),a=P(i.modelId)&&(r==null?void 0:r.getModelById(i.modelId))||void 0,o=P(i.markId)&&(r==null?void 0:r.getMarkById(i.markId))||null,l=new Map;let h=(s=i.item)===null||s===void 0?void 0:s.mark;for(h&&P(h.id())&&l.set(h.id(),i.item);h!=null&&h.elements;){const c=h.id();P(c)&&!l.has(c)&&l.set(c,h.elements[0]),h=h.group}const d={event:i.event,item:i.item,datum:i.datum,source:i.source,itemMap:l,chart:r,model:a,mark:o??void 0,node:Pt(i.event,"target")};this.dispatch(i.type,d)},this._onDelegateInteractionEvent=i=>{const s=this.globalInstance.getChart(),r=i.event;let a=null;r.elements&&(a=r.elements);const o={event:i.event,chart:s,items:a,datums:a&&a.map(l=>l.getDatum())};this.dispatch(i.type,o)},this.globalInstance=t,this._compiler=e}register(t,e){var i,s,r,a,o;this._parseQuery(e);const l=this.getEventBubble(((i=e.filter)===null||i===void 0?void 0:i.source)||Nt.chart),h=this.getEventListeners(((s=e.filter)===null||s===void 0?void 0:s.source)||Nt.chart);if(l.get(t)||l.set(t,new DZ),l.get(t).addHandler(e,(r=e.filter)===null||r===void 0?void 0:r.level),this._isValidEvent(t)&&!h.has(t)){const d=this._onDelegate.bind(this);this._compiler.addEventListener((a=e.filter)===null||a===void 0?void 0:a.source,t,d),h.set(t,d)}else if(this._isInteractionEvent(t)&&!h.has(t)){const d=this._onDelegateInteractionEvent.bind(this);this._compiler.addEventListener((o=e.filter)===null||o===void 0?void 0:o.source,t,d),h.set(t,d)}return this}unregister(t,e){var i,s,r,a;let o=!1;const l=this.getEventBubble(((i=e==null?void 0:e.filter)===null||i===void 0?void 0:i.source)||Nt.chart),h=this.getEventListeners(((s=e==null?void 0:e.filter)===null||s===void 0?void 0:s.source)||Nt.chart);if(e){const d=l.get(t);d==null||d.removeHandler(e),(d==null?void 0:d.getCount())===0&&(d==null||d.release(),l.delete(t),o=!0),!((r=e==null?void 0:e.wrappedCallback)===null||r===void 0)&&r.cancel&&e.wrappedCallback.cancel()}else{const d=l.get(t);d==null||d.release(),l.delete(t),o=!0}if(o&&this._isValidEvent(t)){const d=h.get(t);this._compiler.removeEventListener(((a=e==null?void 0:e.filter)===null||a===void 0?void 0:a.source)||Nt.chart,t,d),h.delete(t)}return this}dispatch(t,e,i){const s=this.getEventBubble(e.source||Nt.chart).get(t);if(!s)return this;let r=!1;if(i){const a=s.getHandlers(i);r=this._invoke(a,t,e)}else{const a=s.getHandlers(he.mark);if(r=this._invoke(a,t,e),!r){const o=s.getHandlers(he.model);r=this._invoke(o,t,e)}if(!r){const o=s.getHandlers(he.chart);r=this._invoke(o,t,e)}if(!r){const o=s.getHandlers(he.vchart);r=this._invoke(o,t,e)}}return this}prevent(t,e){return["canvas","chart","window"].forEach(i=>{const s=this.getEventBubble(i).get(t);s&&s.getAllHandlers().forEach(r=>{e&&r.callback===e||s.preventHandler(r)})}),this}allow(t){return["canvas","chart","window"].forEach(e=>{const i=this.getEventBubble(e).get(t);i&&i.getAllHandlers().forEach(s=>i.allowHandler(s))}),this}clear(){for(const t of this._viewListeners.entries())this._compiler.removeEventListener(Nt.chart,t[0],t[1]);this._viewListeners.clear();for(const t of this._windowListeners.entries())this._compiler.removeEventListener(Nt.window,t[0],t[1]);this._windowListeners.clear();for(const t of this._canvasListeners.entries())this._compiler.removeEventListener(Nt.canvas,t[0],t[1]);this._canvasListeners.clear();for(const t of this._viewBubbles.values())t.release();this._viewBubbles.clear();for(const t of this._windowBubbles.values())t.release();this._windowBubbles.clear();for(const t of this._canvasBubbles.values())t.release();this._canvasBubbles.clear()}release(){this.clear(),this.globalInstance=null,this._compiler=null}_filter(t,e,i){var s,r,a;if(G(t.filter)&&!t.filter(i)||t.nodeName&&Pt(i,"node.name")!==t.nodeName||t.markName&&((s=i==null?void 0:i.mark)===null||s===void 0?void 0:s.name)!==t.markName)return!1;let o=(r=i.model)===null||r===void 0?void 0:r.type;return Hw[o]&&(o=Hw[o]),(!t.type||o===t.type)&&!(t.level==="mark"&&!t.type&&!(i!=null&&i.mark))&&!(t.level==="model"&&!t.type&&!(i!=null&&i.model))&&(!P(t.userId)||((a=i.model)===null||a===void 0?void 0:a.userId)===t.userId)}_prepareParams(t,e){if(t.markName&&e.mark&&e.itemMap){const i=e.mark.getProductId(),s=e.itemMap.get(i),r=s==null?void 0:s.getDatum();return Object.assign(Object.assign({},e),{item:s,datum:r})}return Object.assign({},e)}_invoke(t,e,i){return t.map(s=>{var r,a,o;const l=s.filter;if(!s.prevented&&(!s.query||this._filter(l,e,i))){const h=(s.wrappedCallback||s.callback).call(null,this._prepareParams(l,i)),d=h??((r=s.query)===null||r===void 0?void 0:r.consume);return d&&((a=i.event)===null||a===void 0||a.stopPropagation(),(o=i.event)===null||o===void 0||o.preventDefault()),!!d}}).some(s=>s===!0)}_getQueryLevel(t){return t?t.level?t.level:P(t.id)?he.model:he.vchart:he.vchart}_parseQuery(t){var e;const i=t.query;i!=null&&i.throttle?t.wrappedCallback=za(t.callback,i.throttle):i!=null&&i.debounce&&(t.wrappedCallback=Xs(t.callback,i.debounce));let s=this._getQueryLevel(i),r=null,a=Nt.chart,o=null,l=null,h=null;return i!=null&&i.nodeName&&(o=i.nodeName),i!=null&&i.markName&&(l=i.markName),!(i!=null&&i.type)||s!==he.model&&s!==he.mark||(r=i.type),i!=null&&i.source&&(a=i.source),P(i==null?void 0:i.id)&&(h=i==null?void 0:i.id,s=he.model),t.filter={level:s,markName:l,type:r,source:a,nodeName:o,userId:h,filter:(e=i==null?void 0:i.filter)!==null&&e!==void 0?e:null},t}getEventBubble(t){switch(t){case Nt.chart:return this._viewBubbles;case Nt.window:return this._windowBubbles;case Nt.canvas:return this._canvasBubbles;default:return this._viewBubbles}}getEventListeners(t){switch(t){case Nt.chart:return this._viewListeners;case Nt.window:return this._windowListeners;case Nt.canvas:return this._canvasListeners;default:return this._viewListeners}}_isValidEvent(t){return jK.includes(t)||Object.values(ct).includes(t)}_isInteractionEvent(t){let e;return t&&(e=t.split(":")[0],e)&&it.hasInteraction(e)}}function Tt(n,t,e){n.getTransform(t)||n.registerTransform(t,e)}function br(n,t,e){n.getParser(t)||n.registerParser(t,e)}const jo=new Map;let fl;function zZ(){fl||(fl=new Ra,br(fl,"geojson",LE),br(fl,"topojson",A3),Tt(fl,"simplify",r3))}function jZ(n,t,e={type:"geojson",centroid:!0}){jo.has(n)&&Us(`map type of '${n}' already exists, will be overwritten.`),zZ();const i=new Ut(fl),s=Y({},{centroid:!0,simplify:!1},e);e.type==="topojson"?i.parse(t,{type:"topojson",options:s}):i.parse(t,{type:"geojson",options:s});const{simplify:r}=e;r===!0?i.transform({type:"simplify"}):Ct(r)&&i.transform({type:"simplify",options:r}),jo.set(n,i)}function HZ(n){jo.has(n)?jo.delete(n):Us(`map type of '${n}' does not exists.`)}function VZ(n){return jo.get(n)}function Vw(n,t=!1){let e=t;return n.latestData instanceof Ut&&(e=!1),e?on(n.latestData):n.latestData.slice()}const Dm=(n,t)=>n.length===0?[]:n.length===1?Vw(n[0],t==null?void 0:t.deep):n.map(e=>Vw(e,t==null?void 0:t.deep));function Fb(n,t,e){t=t instanceof Ra?t:n.dataSet,Tt(t,"copyDataView",Dm);const i=new Ut(t,e);return i.parse([n],{type:"dataview"}),i.transform({type:"copyDataView",level:Ss.copyDataView}),i}function fS(n,t,e=[],i={}){var s,r,a;if(n instanceof Ut)return n;const{id:o,values:l=[],fromDataIndex:h,fromDataId:d,transforms:c=[]}=n,u=n.parser?on(n.parser):{clone:!0},p=on(n.fields);let g;u.clone=u.clone!==!1;const f=e.find(_=>_.name===o);if(f)g=f;else{const _={name:o};if(p&&(_.fields=p),g=new Ut(t,_),typeof d=="string"){const m=e.find(y=>y.name===d);if(!m)return((s=i.onError)!==null&&s!==void 0?s:Co)(`no data matches fromDataId ${d}`),null;g.parse([m],{type:"dataview"}),g.transform({type:"copyDataView"})}else if(typeof h=="number"){const m=e[h];if(!m)return((r=i.onError)!==null&&r!==void 0?r:Co)(`no data matches fromDataIndex ${h}`),null;g.parse([m],{type:"dataview"}),g.transform({type:"copyDataView"})}else Array.isArray(l)?g.parse(l,u):!at(l)||u&&!["csv","dsv","tsv"].includes(u.type)?(g.parse([]),Us("values should be array")):g.parse(l,(a=u)!==null&&a!==void 0?a:{type:"csv"});c&&c.length&&c.forEach(m=>{t.getTransform(m.type)&&g.transform(m)})}return g}function _S(n,t,e){n&&(t.fields&&n.setFields(t.fields,e),n.parseNewData(t.values,t.parser))}var Ss;(function(n){n[n.copyDataView=-10]="copyDataView",n[n.treemapFilter=-8]="treemapFilter",n[n.treemapFlatten=-7]="treemapFlatten",n[n.dotObjFlat=-7]="dotObjFlat",n[n.linkDotInfo=-7]="linkDotInfo",n[n.sankeyLayout=-7]="sankeyLayout",n[n.dataZoomFilter=-6]="dataZoomFilter",n[n.legendFilter=-5]="legendFilter"})(Ss||(Ss={}));const WZ=(n,t)=>{const e={nodes:{}},{fields:i}=t;if(!(i!=null&&i.length))return e;const s=i.length-1;let r,a,o=e;return n.forEach(l=>{l.latestData.forEach(h=>{o=e;for(let d=0;d{var i,s;(s=(i=this._compileChart)===null||i===void 0?void 0:i.getEvent())===null||s===void 0||s.emit(ft.afterRender,{chart:this._compileChart})},this._container=t,this._option=e}getRenderer(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer}getCanvas(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer.canvas()}getStage(){var t;return(t=this._view)===null||t===void 0?void 0:t.renderer.stage()}initView(){var t,e,i,s;if(this._released||(this.isInited=!0,this._view))return;const r=new Lt((t=this._option.logLevel)!==null&&t!==void 0?t:Bn.Error);!((e=this._option)===null||e===void 0)&&e.onError&&r.addErrorHandler((...a)=>{var o,l;(l=(o=this._option)===null||o===void 0?void 0:o.onError)===null||l===void 0||l.call(o,...a)}),this._view=new Zo(Object.assign(Object.assign({width:this._width,height:this._height,container:(i=this._container.dom)!==null&&i!==void 0?i:null,renderCanvas:(s=this._container.canvas)!==null&&s!==void 0?s:null,hooks:this._option.performanceHook},this._option),{mode:NZ(this._option.mode),autoFit:!1,eventConfig:{gesture:Ba(this._option.mode),disable:this._option.interactive===!1},doLayout:()=>{var a;(a=this._compileChart)===null||a===void 0||a.onLayout(this._view)},logger:r,logLevel:r.level()})),this._setCanvasStyle(),this.getStage().hooks.afterRender.tap("chart-event",this.handleStageRender),this._option.interactive!==!1&&this._viewListeners.forEach(a=>{var o;(o=this._view)===null||o===void 0||o.addEventListener(a.type,a.callback)})}_setCanvasStyle(){if(this._view&&this._container.dom&&!at(this._container.dom)){this._container.dom.style.display="block",this._container.dom.style.position="relative";const t=this.getCanvas();t&&(t.style.display="block")}}compileInteractions(){var t;if(this._view.removeAllInteractions(),(t=this._interactions)===null||t===void 0?void 0:t.length){const e={};this._interactions.forEach(i=>{var s;if(i.regionId){const r=`${i.regionId}-${i.type}-${(s=i.id)!==null&&s!==void 0?s:""}`,a=e[r];e[r]=a?Object.assign(Object.assign(Object.assign({},a),i),{selector:[...a.selector,...i.selector]}):i}else this._view.interaction(i.type,i)}),Object.keys(e).forEach(i=>{const s=this._view.interaction(e[i].type,e[i]);if(this._compileChart){const r=this._compileChart.getRegionsInIds([e[i].regionId])[0];r&&r.interaction.addVgrammarInteraction(s.getStartState(),s)}})}}compile(t,e){if(this._released)return;const{chart:i}=t;this._compileChart=i,this.initView(),this._view&&(i.compile(),i.afterCompile(),this.updateDepend(),this.compileInteractions())}clearNextRender(){return!!this._nextRafId&&(Rt.getCancelAnimationFrame()(this._nextRafId),this._nextRafId=null,!0)}clear(t,e=!1){const{chart:i}=t;this.clearNextRender(),i.clear(),this.releaseGrammar(e)}renderNextTick(t){this._released||this._nextRafId||(this._nextRafId=Rt.getRequestAnimationFrame()(()=>{this._nextRafId=null,this.render(t)}))}render(t){var e,i;this._released||(this.initView(),this._view&&((e=this._view)===null||e===void 0||e.run(t),this.clearNextRender()&&((i=this._view)===null||i===void 0||i.run(t))))}updateViewBox(t,e=!0){this._view&&this._view.renderer.setViewBox(t,e)}resize(t,e,i=!0){this._view&&(this._width=t,this._height=e,this._view.resize(t,e),i&&this.render({morph:!1}))}setBackground(t){var e;(e=this._view)===null||e===void 0||e.background(t)}setSize(t,e){this._width=t,this._height=e,this._view&&(this._view.width(t),this._view.height(e))}setViewBox(t,e=!0){this._view&&this._view.renderer.setViewBox(t,e)}addEventListener(t,e,i){var s,r;if(this._option.interactive!==!1){if(t===Nt.chart){const a=(function(o,l){var h,d,c;const u=(d=(h=l==null?void 0:l.mark)===null||h===void 0?void 0:h.getContext())!==null&&d!==void 0?d:{},p=P(u.modelId)?u.modelId:null,g=P(u.markId)?u.markId:null,f=P(u.modelUserId)?u.modelUserId:null,_=P(u.markUserId)?u.markUserId:null,m={event:o,type:e,source:t,item:l,datum:((c=l==null?void 0:l.getDatum)===null||c===void 0?void 0:c.call(l))||null,markId:g,modelId:p,markUserId:_,modelUserId:f};i.call(null,m)}).bind(this);this._viewListeners.set(i,{type:e,callback:a}),(s=this._view)===null||s===void 0||s.addEventListener(e,a)}else if(t===Nt.window){const a=(function(l){const h={event:l,type:e,source:t,item:null,datum:null,markId:null,modelId:null,markUserId:null,modelUserId:null};i.call(null,h)}).bind(this);this._windowListeners.set(i,{type:e,callback:a});const o=this._getGlobalThis();o==null||o.addEventListener(e,a)}else if(t===Nt.canvas){const a=(function(l){const h={event:l,type:e,source:t,item:null,datum:null,markId:null,modelId:null,markUserId:null,modelUserId:null};i.call(null,h)}).bind(this);this._canvasListeners.set(i,{type:e,callback:a});const o=(r=this.getStage())===null||r===void 0?void 0:r.window;o==null||o.addEventListener(e,a)}}}removeEventListener(t,e,i){var s,r,a,o,l;if(this._option.interactive!==!1){if(t===Nt.chart){const h=(s=this._viewListeners.get(i))===null||s===void 0?void 0:s.callback;h&&((r=this._view)===null||r===void 0||r.removeEventListener(e,h)),this._viewListeners.delete(i)}else if(t===Nt.window){const h=this._getGlobalThis(),d=(a=this._windowListeners.get(i))===null||a===void 0?void 0:a.callback;d&&(h==null||h.removeEventListener(e,d)),this._windowListeners.delete(i)}else if(t===Nt.canvas){const h=(o=this.getStage())===null||o===void 0?void 0:o.window,d=(l=this._canvasListeners.get(i))===null||l===void 0?void 0:l.callback;h&&d&&(h==null||h.removeEventListener(e,d)),this._canvasListeners.delete(i)}}}releaseEvent(){const t=this.getStage();t&&t.hooks.afterRender.unTap("chart-event",this.handleStageRender),this._viewListeners.clear(),this._windowListeners.clear(),this._canvasListeners.clear()}release(){var t;this.clearNextRender(),this.releaseEvent(),this._option=this._container=null,this._releaseModel(),(t=this._view)===null||t===void 0||t.release(),this._view=null,this.isInited=!1,this._compileChart=null,this._released=!0}releaseGrammar(t=!1){var e,i;this._releaseModel(),t&&((e=this._view)===null||e===void 0||e.removeAllGraphicItems()),(i=this._view)===null||i===void 0||i.removeAllGrammars()}_releaseModel(){Object.keys(this._model).forEach(t=>{Object.values(this._model[t]).forEach(e=>{Object.values(e).forEach(i=>{i.removeProduct(!0)})}),this._model[t]={}})}addGrammarItem(t){const e=t.getProduct();if(C(e))return;const i=e.id(),s=t.grammarType;C(this._model[s][i])&&(this._model[s][i]={}),this._model[s][i][t.id]=t}removeGrammarItem(t,e){var i;const s=t.getProduct();if(C(s))return;const r=s.id(),a=t.grammarType,o=this._model[a][r];P(o)&&(delete o[t.id],Object.keys(o).length===0&&delete this._model[a][r]),e||(i=this._view)===null||i===void 0||i.removeGrammar(s)}addInteraction(t){this._interactions||(this._interactions=[]),this._interactions.push(t)}removeInteraction(t){this._interactions&&(this._interactions=this._interactions.filter(e=>e.seriesId!==t))}updateDepend(t){return P(t)&&t.length>0?t.every(e=>e.updateDepend()):(Object.values(this._model).forEach(e=>{Object.values(e).forEach(i=>{const s=Object.values(i),r=s[0].getProduct(),a=s.reduce((o,l)=>l.getDepend().length>0?o.concat(l.getDepend()):o,[]).filter(o=>!!o).map(o=>o.getProduct());r.depend(a)})}),!0)}_getGlobalThis(){var t;return zn(this._option.mode)?globalThis:(t=this.getStage())===null||t===void 0?void 0:t.window}}var UZ=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})};function $Z(n="vchart",t){const e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank"),e.setAttribute("download",`${n}.png`),e.dispatchEvent(new MouseEvent("click"))}function YZ(n){return new Promise(t=>{n.convertToBlob().then(e=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{t(i.result)}})})}function XZ(n,t){var e;return UZ(this,void 0,void 0,function*(){if(!n)return"";try{if(OffscreenCanvas!==void 0&&n instanceof OffscreenCanvas)return YZ(n)}catch(i){((e=t==null?void 0:t.onError)!==null&&e!==void 0?e:Co)(`getCanvasDataURL error : ${i.toString()}`)}return n.toDataURL()})}function Wa(n){n.crosshair=H(n.crosshair||{}).map(t=>vt({[n.direction==="horizontal"?"yField":"xField"]:{visible:!0,line:{visible:!0,type:"rect"}}},t))}function uL(n,t,e){var i;const{width:s,height:r}=n;if(P(s)&&P(r))return{width:s,height:r};let a=e.width,o=e.height;const l=t.container,h=t.canvas;if(l){const{width:d,height:c}=kv(l,e.width,e.height);a=d,o=c}else if(h&&zn(t.mode)){let d;d=at(h)?Rt.getElementById(h):h;const{width:c,height:u}=kv(d,e.width,e.height);a=c,o=u}else if(ja(t.mode)&&(!((i=t.modeParams)===null||i===void 0)&&i.domref)){const d=t.modeParams.domref;a=d.width,o=d.height}return a=s??a,o=r??o,{width:a,height:o}}function _l(n,...t){const e=i=>t.reduce((s,r)=>s||(r==null?void 0:r[i]),n[i]);return Object.assign(n,{change:e("change"),reCompile:e("reCompile"),reMake:e("reMake"),reRender:e("reRender"),reSize:e("reSize"),reTransformSpec:e("reTransformSpec"),changeTheme:e("changeTheme"),changeBackground:e("changeBackground")}),n}function pL(n,t){return n==="line"||n==="area"||n==="common"&&t.series.every(e=>e.type==="area"||e.type==="line")?{paddingInner:1,paddingOuter:0}:{paddingOuter:0}}var dt;(function(n){n.STATE_NORMAL="normal",n.STATE_HOVER="hover",n.STATE_HOVER_REVERSE="hover_reverse",n.STATE_DIMENSION_HOVER="dimension_hover",n.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",n.STATE_SELECTED="selected",n.STATE_SELECTED_REVERSE="selected_reverse",n.STATE_SANKEY_EMPHASIS="selected",n.STATE_SANKEY_EMPHASIS_REVERSE="blur"})(dt||(dt={}));var Ed;(function(n){n.STATE_HOVER_REVERSE="hover_reverse",n.STATE_DIMENSION_HOVER_REVERSE="dimension_hover_reverse",n.STATE_SELECTED_REVERSE="selected_reverse"})(Ed||(Ed={}));class uh{constructor(){this._children=[],this._markNameMap={},this._infoMap=new Map}getMarkNameMap(){return this._markNameMap}addMark(t,e){C(t)||(this._children.push(t),this._markNameMap[t.name]=t,this._infoMap.set(t,Y({},uh.defaultMarkInfo,e)))}removeMark(t){const e=this._children.findIndex(i=>i.name===t);e>=0&&(this._infoMap.delete(this._children[e]),delete this._markNameMap[t],this._children.splice(e,1))}clear(){this._children=[],this._markNameMap={},this._infoMap.clear()}forEach(t){this._children.forEach(t)}includes(t,e){return this._children.includes(t,e)}get(t){return isNaN(Number(t))?this._markNameMap[t]:this._children[t]}getMarks(){return this._children.slice()}getMarksInType(t){const e=H(t);return this._children.filter(i=>e.includes(i.type))}getMarkInId(t){return this._children.find(e=>e.id===t)}getMarkWithInfo(t){return this._children.find(e=>Object.keys(t).every(i=>t[i]===this._infoMap.get(e)[i]))}}uh.defaultMarkInfo={};class KZ{get hover(){return this._hover}get select(){return this._select}constructor(t){this._marks=new uh,this._markReverse=new uh,this.onHover=e=>{switch(e.action){case"enter":this.interaction.getEventElement(dt.STATE_DIMENSION_HOVER).forEach(i=>this.interaction.addEventElement(dt.STATE_DIMENSION_HOVER_REVERSE,i)),this.interaction.clearEventElement(dt.STATE_DIMENSION_HOVER,!1),this.getEventElement(e).forEach(i=>this.interaction.addEventElement(dt.STATE_DIMENSION_HOVER,i)),this.interaction.reverseEventElement(dt.STATE_DIMENSION_HOVER);break;case"leave":this.interaction.clearEventElement(dt.STATE_DIMENSION_HOVER,!0),e=null}},this._option=t,this.event=this._option.model.getOption().getChart().getEvent(),this.interaction=t.interaction,this.initConfig(t.mode)}setStateKeys(t){}registerMark(t){_t(t.stateStyle[dt.STATE_DIMENSION_HOVER])||this._marks.addMark(t),_t(t.stateStyle[dt.STATE_DIMENSION_HOVER_REVERSE])||this._markReverse.addMark(t)}init(){this.initEvent()}release(){this.releaseEvent()}initEvent(){this.event.on(Er.dimensionHover,this.onHover)}releaseEvent(){this.event.release()}initConfig(t){}getEventElement(t,e=!1){const i=[];return t.dimensionInfo.forEach(s=>{s.data.forEach(r=>{(e?this._markReverse:this._marks).getMarks().filter(a=>a.model===r.series&&a.getVisible()).forEach(a=>{const o=a.getProduct();if(!o||!o.elements)return;const l=o.elements.filter(h=>{const d=h.getDatum();let c;return c=V(d)?d.every((u,p)=>u===r.datum[p]):r.datum.some(u=>u===d),e?!c:c});i.push(...l)})})}),i}}function qZ(n,t,e){var i;const s=(i=t[n])===null||i===void 0?void 0:i.style;return ZZ(n,s)||G(s)?!0:!(!(s!=null&&s.scale)||s.field===e)}function ZZ(n,t){return(n==="fill"||n==="stroke")&&(t==null?void 0:t.gradient)&&(t==null?void 0:t.stops)}const gL={};Object.values(dt).forEach(n=>{gL[n]=!0});function JZ(n){return!!gL[n]}const QZ={[dt.STATE_HOVER]:dt.STATE_HOVER_REVERSE,[dt.STATE_SELECTED]:dt.STATE_SELECTED_REVERSE,[dt.STATE_DIMENSION_HOVER]:dt.STATE_DIMENSION_HOVER_REVERSE};function Ap(n){return QZ[n]}class tJ{constructor(){this._stateMarks=new Map,this._stateElements=new Map,this._vgrammarInteractions=new Map,this._disableTriggerEvent=!1}addVgrammarInteraction(t,e){t&&(this._vgrammarInteractions.get(t)?this._vgrammarInteractions.get(t).push(e):this._vgrammarInteractions.set(t,[e]))}static markStateEnable(t,e){return!_t(t.stateStyle[e])}setDisableActiveEffect(t){this._disableTriggerEvent=t}registerMark(t,e){var i;this._stateMarks.has(t)||this._stateMarks.set(t,[]),(i=this._stateMarks.get(t))===null||i===void 0||i.push(e)}getStateMark(t){return this._stateMarks.get(t)}filterEventMark(t,e){var i;return!(!t.mark||!(!((i=this._stateMarks.get(e))===null||i===void 0)&&i.includes(t.mark)))}getEventElement(t){var e;return(e=this._stateElements.get(t))!==null&&e!==void 0?e:[]}getEventElementData(t){return this.getEventElement(t).map(e=>e.getDatum())}exchangeEventElement(t,e){var i;if(this._disableTriggerEvent)return;const s=Ap(t);(i=this._stateElements.get(t))===null||i===void 0||i.forEach(r=>{r.removeState(t),s&&this.addEventElement(s,r)}),e.getStates().includes(t)||(e.addState(t),s&&e.removeState(s)),this._stateElements.set(t,[e])}removeEventElement(t,e){var i,s;if(this._disableTriggerEvent)return;e.removeState(t);const r=(s=(i=this._stateElements.get(t))===null||i===void 0?void 0:i.filter(o=>o!==e))!==null&&s!==void 0?s:[];this._stateElements.set(t,r);const a=Ap(t);a&&(r.length===0?this.clearEventElement(a,!1):this.addEventElement(a,e))}addEventElement(t,e){var i;if(this._disableTriggerEvent)return;e.getStates().includes(t)||e.addState(t);const s=(i=this._stateElements.get(t))!==null&&i!==void 0?i:[];s.push(e),this._stateElements.set(t,s)}clearEventElement(t,e){var i;if(!this._disableTriggerEvent&&((i=this._stateElements.get(t))===null||i===void 0||i.forEach(s=>{s.removeState(t)}),this._stateElements.set(t,[]),e)){const s=Ap(t);s&&this.clearEventElement(s,!1)}}reverseEventElement(t){if(this._disableTriggerEvent)return;const e=Ap(t);if(!e)return;const i=this.getStateMark(e);if(!i)return;const s=this.getEventElement(t);s.length&&(this.getEventElement(e).length||(s.length===1?i.forEach(r=>{r.getProduct().elements.filter(a=>a!==s[0]).forEach(a=>{this.addEventElement(e,a)})}):i.forEach(r=>{r.getProduct().elements.filter(a=>!s.includes(a)).forEach(a=>{this.addEventElement(e,a)})})))}startInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(s=>{s.start(e)})}resetInteraction(t,e){const i=this._vgrammarInteractions.get(t);i&&i.forEach(s=>{s.reset(e)})}}class Fm{getOption(){return this._option}constructor(t){this._option=t,this.getCompiler=this._option.getCompiler}getVGrammarView(){var t;return(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView()}release(){this._option=null,this.getCompiler=null}}class mS extends Fm{constructor(){super(...arguments),this.id=Xo(),this._compiledProductId=null,this._depend=[]}getProduct(){if(P(this._product))return this._product;const t=this.getVGrammarView(),e=this.getProductId();return P(e)&&P(t)&&(this._product=this._lookupGrammar(e)),this._product}getProductId(){var t;return(t=this._compiledProductId)!==null&&t!==void 0?t:this.generateProductId()}getDepend(){return this._depend}setDepend(...t){this._depend=t}compile(t){this._compileProduct(t),this._afterCompile(t)}_afterCompile(t){var e;P(this._product)&&((e=this.getCompiler())===null||e===void 0||e.addGrammarItem(this))}updateDepend(){if(P(this._product)){const t=this.getDepend().map(e=>e.getProduct()).filter(P);return this._product.depend(t),t.length===this.getDepend().length}return!1}release(){this.removeProduct(),super.release(),this._depend=[]}removeProduct(t){this.getCompiler().removeGrammarItem(this,t),this._product=null,this._compiledProductId=null}}class eJ extends mS{getValue(){return this._value}getUpdateFunc(){return this._updateFunc}constructor(t,e,i,s){super(t),this.grammarType=ya.signal,this.name=e,this._value=i,this._updateFunc=s}updateSignal(t,e){this._value=t,this._updateFunc=e,this.compile()}_compileProduct(){const t=this.getVGrammarView();if(t){if(!this.getProduct()){const e=this.getProductId();this._product=t.signal().id(e),this._compiledProductId=e}P(this._value)&&this._product.value(this._value),P(this._updateFunc)&&this._product.update(this._updateFunc)}}generateProductId(){return this.name}_lookupGrammar(t){var e;return(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getSignalById(t)}}class iJ extends Fm{constructor(){super(...arguments),this._signalMap={}}getSignalMap(){return this._signalMap}getSignal(t){return this._signalMap[t]}updateSignal(t,e,i){this._signalMap[t]?this._signalMap[t].updateSignal(e,i):(this._signalMap[t]=new eJ(this._option,t,e,i),this._signalMap[t].compile())}compile(){Object.values(this._signalMap).forEach(t=>{t.compile()})}release(){super.release(),Object.values(this._signalMap).forEach(t=>{t.release()}),this._signalMap={}}}class fL extends iJ{getStateMap(){return this._stateMap}_getDefaultStateMap(){return{}}constructor(t){super(t),t.stateKeyToSignalName?this.stateKeyToSignalName=t.stateKeyToSignalName:this.stateKeyToSignalName=()=>"state_signal",this.initStateMap()}initStateMap(t){this._stateMap=t??this._getDefaultStateMap()}compile(t){const e=t??this._stateMap;Object.keys(e).forEach(i=>{const s=this.stateKeyToSignalName(i),r=e[i];this.updateSignal(s,r)})}updateState(t,e){if(t&&(Y(this._stateMap,t),this.compile(t),!e))return this.getCompiler().renderNextTick()}}class _L extends fL{constructor(){super(...arguments),this.id=Xo(),this.stateKeyToSignalName=t=>`${yt}_animate_${this.id}_${t}`}getAnimationStateSignalName(){return this.stateKeyToSignalName("animationState")}updateAnimateState(t,e){t===Ze.update?this.updateState({animationState:{callback:(i,s)=>s.diffState}},e):t===Ze.appear?this.updateState({animationState:{callback:(i,s)=>s.diffState==="exit"?Ze.none:Ze.appear}},e):this.updateState({animationState:{callback:(i,s)=>t}},e)}_getDefaultStateMap(){return{animationState:{callback:(t,e)=>e.diffState==="exit"?Ze.exit:e.diffState==="update"?Ze.update:Ze.appear}}}}class zm{constructor(t){this._option=t,this.type=t.type}_initTheme(t,e){return this._theme=this.getTheme(t,e),this._mergeThemeToSpec(t,e)}getTheme(t,e){}transformSpec(t,e,i){this._transformSpecBeforeMergingTheme(t,e,i);const s=this._initTheme(t,e);return this._transformSpecAfterMergingTheme(s.spec,e,i),s}_transformSpecBeforeMergingTheme(t,e,i){}_transformSpecAfterMergingTheme(t,e,i){}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const s=this._getDefaultSpecFromChart(e),r=a=>vt({},i,s,a);return V(t)?{spec:t.map(a=>r(a)),theme:i}:{spec:r(t),theme:i}}return{spec:t,theme:i}}_shouldMergeThemeToSpec(){return!0}_getDefaultSpecFromChart(t){}}class vS extends Fm{getSpec(){return this._spec||{}}getSpecPath(){var t;return(t=this._option)===null||t===void 0?void 0:t.specPath}getSpecInfoPath(){var t,e,i;return(e=(t=this._option)===null||t===void 0?void 0:t.specInfoPath)!==null&&e!==void 0?e:(i=this._option)===null||i===void 0?void 0:i.specPath}getData(){return this._data}get layout(){return this._layout}getOption(){return this._option}getMarks(){var t,e;return(e=(t=this._marks)===null||t===void 0?void 0:t.getMarks())!==null&&e!==void 0?e:[]}getMarkNameMap(){var t;return(t=this._marks)===null||t===void 0?void 0:t.getMarkNameMap()}getMarkSet(){return this._marks}getMarkInfoList(){return this.getMarks().map(t=>({type:t.type,name:t.name}))}getChart(){return this._option.getChart()}get _theme(){var t;return(t=this.getSpecInfo())===null||t===void 0?void 0:t.theme}constructor(t,e){var i;super(e),this.transformerConstructor=zm,this.type="null",this.modelType="null",this.userId=void 0,this._data=null,this._layout=null,this.specKey="",this._marks=new uh,this._lastLayoutRect=null,this.id=Xo(),this.userId=t.id,this._spec=t,this.effect={},this.event=new Lm(e.eventDispatcher,e.mode),(i=e.map)===null||i===void 0||i.set(this.id,this)}_releaseEvent(){this.event.release()}created(){this.setAttrFromSpec()}init(t){}afterInit(){}getVisible(){var t;return((t=this._spec)===null||t===void 0?void 0:t.visible)!==!1}onLayoutStart(t,e,i){var s;(s=this._layout)===null||s===void 0||s.onLayoutStart(t,e,i)}onLayoutEnd(t){var e;(e=this._layout)===null||e===void 0||e.onLayoutEnd(t),this.getMarks().forEach(i=>i.updateLayoutState(!0,!0))}onEvaluateEnd(t){}onDataUpdate(){}beforeRelease(){}release(){var t;this._releaseEvent(),this._spec=void 0,this.getMarks().forEach(e=>e.release()),(t=this._data)===null||t===void 0||t.release(),this._data=null,this._marks.clear(),super.release()}updateSpec(t){const e=this._compareSpec(t,this._spec);return this._spec=t,e}_compareSpec(t,e){return{change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1}}reInit(t){t&&(this._spec=t),this.setAttrFromSpec()}updateLayoutAttribute(){}setAttrFromSpec(){var t;(t=this._layout)===null||t===void 0||t.setAttrFromSpec(this._spec,this._option.getChartViewRect())}_convertMarkStyle(t){return Object.assign({},t)}setMarkStyle(t,e,i,s){P(t)&&P(e)&&t.setStyle(this._convertMarkStyle(e),i,s)}initMarkStyleWithSpec(t,e,i){if(!P(t)||!P(e))return;const{style:s,state:r}=e,a=Object.assign({},e);s&&(a.style=this._convertMarkStyle(s)),r&&(a.state={},Object.keys(r).forEach(o=>{a.state[o]=this._convertMarkStyle(r[o])})),t.initStyleWithSpec(a,i)}stateKeyToSignalName(t,e){let i=`${yt}_${this.modelType}_${this.type}_${this.id}_${t}`;return e&&(i+=`_${e}`),i}compileData(){var t;(t=this._data)===null||t===void 0||t.compile()}compileMarks(t){this.getMarks().forEach(e=>{e.compile({group:t})})}_createMark(t,e={}){const{type:i,name:s}=t,r=L.createMark(i,s,Object.assign({model:this,map:this._option.map,getCompiler:this.getCompiler,globalScale:this._option.globalScale},e));return r==null||r.created(),r}_getDataIdKey(){}getColorScheme(){var t,e;return(e=(t=this._option).getTheme)===null||e===void 0?void 0:e.call(t).colorScheme}getSpecInfo(){var t,e,i;const s=(i=(e=(t=this._option).getSpecInfo)===null||e===void 0?void 0:e.call(t))!==null&&i!==void 0?i:{};return uZ(s,this.getSpecInfoPath())}getSpecIndex(){const t=this.getSpecPath();if(!(t!=null&&t.length))return 0;const e=Number(t[t.length-1]);return isNaN(e)?0:e}}class nJ{getSpec(){return this._spec||{}}getLayoutStartPoint(){return this._layoutStartPoint}get layoutRectLevelMap(){return this._layoutRectLevelMap}get minWidth(){return this._minWidth}set minWidth(t){this._minWidth=t}get maxWidth(){return this._maxWidth}set maxWidth(t){this._maxWidth=t}get minHeight(){return this._minHeight}set minHeight(t){this._minHeight=t}get maxHeight(){return this._maxHeight}set maxHeight(t){this._maxHeight=t}getLastComputeOutBounds(){return this._lastComputeOutBounds}get layoutOrient(){return this._layoutOrient}set layoutOrient(t){this._layoutOrient=t}get model(){return this._model}get type(){return this._model.type}constructor(t,e){var i;this.layoutClip=!1,this.autoIndent=!1,this._layoutStartPoint={x:0,y:0},this._layoutRect={width:0,height:0},this._layoutRectLevelMap={width:mn,height:mn},this._minWidth=null,this._maxWidth=null,this._minHeight=null,this._maxHeight=null,this._lastComputeRect=null,this._lastComputeOutBounds={x1:0,x2:0,y1:0,y2:0},this.getLayoutRect=()=>this._layoutRect,this.layoutType="normal",this._layoutOrient="left",this.layoutPaddingLeft=0,this.layoutPaddingTop=0,this.layoutPaddingRight=0,this.layoutPaddingBottom=0,this.layoutOffsetX=0,this.layoutOffsetY=0,this.layoutLevel=xs.Region,this._model=t,this._option=e,this.layoutLevel=e.layoutLevel,this.layoutType=e.layoutType,e.layoutOrient&&(this.layoutOrient=e.layoutOrient),this._spec=(i=t==null?void 0:t.getSpec)===null||i===void 0?void 0:i.call(t)}_setLayoutAttributeFromSpec(t,e){var i,s,r,a;if(this._spec&&this._spec.visible!==!1){const o=Pr(t.padding),l=NO(o,e,e);this.layoutPaddingLeft=l.left,this.layoutPaddingRight=l.right,this.layoutPaddingTop=l.top,this.layoutPaddingBottom=l.bottom,this._minHeight=C(t.minHeight)?(i=this._minHeight)!==null&&i!==void 0?i:null:Si(t.minHeight,e.height,e),this._maxHeight=C(t.maxHeight)?(s=this._maxHeight)!==null&&s!==void 0?s:null:Si(t.maxHeight,e.height,e),this._minWidth=C(t.minWidth)?(r=this._minWidth)!==null&&r!==void 0?r:null:Si(t.minWidth,e.width,e),this._maxWidth=C(t.maxWidth)?(a=this._maxWidth)!==null&&a!==void 0?a:null:Si(t.maxWidth,e.width,e),t.width&&this.setLayoutRect({width:Si(t.width,e.width,e)},{width:Kr}),t.height&&this.setLayoutRect({height:Si(t.height,e.height,e)},{height:Kr}),C(t.offsetX)||(this.layoutOffsetX=Si(t.offsetX,e.width,e)),C(t.offsetY)||(this.layoutOffsetY=Si(t.offsetY,e.height,e)),t.alignSelf&&(this.alignSelf=t.alignSelf)}}setAttrFromSpec(t,e){var i,s,r,a;this._spec=t,this.layoutType=(i=t.layoutType)!==null&&i!==void 0?i:this.layoutType,this.layoutLevel=(s=t.layoutLevel)!==null&&s!==void 0?s:this.layoutLevel,this.layoutOrient=(r=t.orient)!==null&&r!==void 0?r:this.layoutOrient,this._setLayoutAttributeFromSpec(t,e),this.layoutClip=(a=t.clip)!==null&&a!==void 0?a:this.layoutClip}onLayoutStart(t,e,i){this._setLayoutAttributeFromSpec(this._spec,e)}onLayoutEnd(t){}_getAbsoluteSpecValue(t){const e={top:null,bottom:null,left:null,right:null};return["top","bottom","left","right"].forEach(i=>{C(this._spec[i])||(e[i]=Si(this._spec[i],i==="top"||i==="bottom"?t.height:t.width,t))}),e}absoluteLayoutInRect(t){const{top:e,bottom:i,left:s,right:r}=this._getAbsoluteSpecValue(t),a={width:t.width-this.layoutPaddingLeft-this.layoutPaddingRight,height:t.height-this.layoutPaddingTop-this.layoutPaddingBottom};C(s)||(a.width-=s),C(r)||(a.width-=r),C(e)||(a.height-=e),C(i)||(a.height-=i),this.setLayoutRect(a);const{width:o,height:l}=this.computeBoundsInRect(this.getLayoutRect());this.setLayoutRect({width:o,height:l});const h={x:t.x,y:t.y};this._spec.center===!0?(h.x=t.x+.5*t.width-.5*o,h.y=t.y+.5*t.height-.5*l):(C(s)?C(r)||(h.x=t.x+t.width-this.layoutPaddingRight-r-o):h.x=t.x+s+this.layoutPaddingLeft,C(e)?C(i)||(h.y=t.y+t.height-this.layoutPaddingBottom-i-l):h.y=t.y+e+this.layoutPaddingTop),this.setLayoutStartPosition(h)}setLayoutStartPosition(t){var e,i;this._option.transformLayoutPosition&&(t=this._option.transformLayoutPosition(t)),z(t.x)&&(this._layoutStartPoint.x=t.x),z(t.y)&&(this._layoutStartPoint.y=t.y),(i=(e=this._model).afterSetLayoutStartPoint)===null||i===void 0||i.call(e,this._layoutStartPoint)}setLayoutRect({width:t,height:e},i){var s,r,a,o;z(t)&&((s=i==null?void 0:i.width)!==null&&s!==void 0?s:mn)>=this._layoutRectLevelMap.width&&(this._layoutRect.width=t,this._layoutRectLevelMap.width=(r=i==null?void 0:i.width)!==null&&r!==void 0?r:mn),z(e)&&((a=i==null?void 0:i.height)!==null&&a!==void 0?a:mn)>=this._layoutRectLevelMap.height&&(this._layoutRect.height=e,this._layoutRectLevelMap.height=(o=i==null?void 0:i.height)!==null&&o!==void 0?o:mn),this.setRectInSpec(this._layoutRect)}getLayout(){return{x:this._layoutStartPoint.x,y:this._layoutStartPoint.y,width:this._layoutRect.width,height:this._layoutRect.height}}mergeLayoutRect({width:t,height:e}){const i={width:t,height:e};return this._layoutRectLevelMap.width>mn&&(i.width=this._layoutRect.width),this._layoutRectLevelMap.height>mn&&(i.height=this._layoutRect.height),i}getOrientPosAttribute(){return this._layoutOrient==="bottom"||this._layoutOrient==="top"?"x":"y"}getOrientSizeAttribute(){return this._layoutOrient==="bottom"||this._layoutOrient==="top"?"width":"height"}changeBoundsBySetting(t){return this._layoutRectLevelMap.width>mn&&(t.x2=t.x1+this._layoutRect.width),this._layoutRectLevelMap.height>mn&&(t.y2=t.y1+this._layoutRect.height),t.x1-=this._layoutStartPoint.x,t.x2-=this._layoutStartPoint.x,t.y1-=this._layoutStartPoint.y,t.y2-=this._layoutStartPoint.y,t}setRectInSpec(t){const e=Object.assign({},t);return this._layoutRectLevelMap.width0&&e.y2-e.y1>0&&(this._lastComputeOutBounds.x1=Math.ceil(-e.x1),this._lastComputeOutBounds.x2=Math.ceil(e.x2-t.width),this._lastComputeOutBounds.y1=Math.ceil(-e.y1),this._lastComputeOutBounds.y2=Math.ceil(e.y2-t.height));let i=this.setRectInSpec(sq(e,t));return this._option.transformLayoutRect&&(i=this._option.transformLayoutRect(i)),i}getModelId(){return this._model.id}getModelVisible(){return this._model.getVisible()}}class mL extends vS{constructor(){super(...arguments),this.layoutType="normal",this.layoutLevel=0,this.layoutZIndex=0,this._forceLayoutTag=!1,this._layout=null,this._orient=null,this._layoutRect={width:0,height:0},this._layoutStartPos={x:0,y:0},this._isLayout=!0,this.getGraphicBounds=()=>this._layout?{x1:this._layout.getLayoutStartPoint().x,y1:this._layout.getLayoutStartPoint().y,x2:this._layout.getLayoutStartPoint().x+this._layout.getLayoutRect().width,y2:this._layout.getLayoutStartPoint().y+this._layout.getLayoutRect().height}:{x1:0,x2:0,y1:0,y2:0},this._transformLayoutRect=null,this._transformLayoutPosition=null}get layoutOrient(){return this._orient}set layoutOrient(t){this._orient=t,this._layout&&(this._layout.layoutOrient=t)}initLayout(){this.layoutType!=="none"&&(this._layout=new nJ(this,{layoutType:this.layoutType,layoutLevel:this.layoutLevel,layoutOrient:this._orient,transformLayoutRect:this._transformLayoutRect,transformLayoutPosition:this._transformLayoutPosition}),this._orient&&this._orient!=="radius"&&this._orient!=="angle"&&this._layout&&(this._layout.layoutOrient=this._orient))}onLayoutStart(t,e,i){this._isLayout=!0,super.onLayoutStart(t,e,i)}onLayoutEnd(t){super.onLayoutEnd(t),this.updateLayoutAttribute();const e=this.getLayoutRect();!this._forceLayoutTag&&ue(this._lastLayoutRect,e)||(this._lastLayoutRect=Object.assign({},e)),this._forceLayoutTag=!1,this._isLayout=!1}afterSetLayoutStartPoint(t){}_forceLayout(){var t;this._isLayout||(this._forceLayoutTag=!0,(t=this._option.globalInstance.getChart())===null||t===void 0||t.setLayoutTag(!0))}getLayoutStartPoint(){return this._layout?this._layout.getLayoutStartPoint():this._layoutStartPos}setLayoutStartPosition(t){return this._layout?this._layout.setLayoutStartPosition(t):this._layoutStartPos=Y(this._layoutStartPos,t)}getLayoutRect(){return this._layout?this._layout.getLayoutRect():this._layoutRect}setLayoutRect(t,e){return this._layout?this._layout.setLayoutRect(t):this._lastLayoutRect=Y(this._layoutRect,t)}getLastComputeOutBounds(){var t;return(t=this._layout)===null||t===void 0?void 0:t.getLastComputeOutBounds()}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec(),this.layoutClip=(t=this._spec.clip)!==null&&t!==void 0?t:this.layoutClip,this.layoutZIndex=(e=this._spec.zIndex)!==null&&e!==void 0?e:this.layoutZIndex,this.layoutType=(i=this._spec.layoutType)!==null&&i!==void 0?i:this.layoutType,this._orient=(s=this._spec.orient)!==null&&s!==void 0?s:this._orient,this.layoutLevel=(r=this._spec.layoutLevel)!==null&&r!==void 0?r:this.layoutLevel}}class vL extends zm{_initTheme(t,e){return{spec:t,theme:this._theme}}}class Yl extends mL{getMaxWidth(){return this._layout.maxWidth}setMaxWidth(t){this._layout.maxWidth=t}getMaxHeight(){return this._layout.maxHeight}setMaxHeight(t){this._layout.maxHeight=t}getGroupMark(){return this._groupMark}getInteractionMark(){return this._interactionMark}getStackInverse(){return this._spec.stackInverse===!0}getStackSort(){return this._spec.stackSort===!0}constructor(t,e){var i;super(t,e),this.transformerConstructor=vL,this.modelType="region",this.specKey="region",this.type=Yl.type,this._series=[],this.layoutType="region",this.layoutZIndex=re.Region,this.interaction=new tJ,this.seriesDataFilterOver=()=>{this.event.emit(ft.regionSeriesDataFilterOver,{model:this,chart:this.getChart()}),this._series.forEach(s=>{s.getViewDataFilter()&&s.reTransformViewData()})},this.getBoundsInRect=()=>({x1:this._layout.getLayoutStartPoint().x,y1:this._layout.getLayoutStartPoint().y,x2:this._layout.getLayoutStartPoint().x+this._layout.getLayoutRect().width,y2:this._layout.getLayoutStartPoint().y+this._layout.getLayoutRect().height}),this.userId=t.id,this.coordinate=(i=t.coordinate)!==null&&i!==void 0?i:"cartesian",this._option.animation&&(this.animate=new _L({getCompiler:e.getCompiler})),this.interaction.setDisableActiveEffect(this._option.disableTriggerEvent)}_getClipDefaultValue(){var t,e,i,s;const r=this._option.getChart().getSpec(),a=(e=(t=r.dataZoom)===null||t===void 0?void 0:t.some)===null||e===void 0?void 0:e.call(t,l=>{var h;return((h=l.filterMode)!==null&&h!==void 0?h:"filter")==="axis"}),o=(s=(i=r.scrollBar)===null||i===void 0?void 0:i.some)===null||s===void 0?void 0:s.call(i,l=>{var h;return((h=l.filterMode)!==null&&h!==void 0?h:"axis")==="axis"});return!(!a&&!o)||this._layout.layoutClip}created(){var t;this.initLayout(),super.created();const e=(t=this._spec.clip)!==null&&t!==void 0?t:this._getClipDefaultValue();this._groupMark=this._createGroupMark("regionGroup",this.userId,this.layoutZIndex),this._interactionMark=this._createGroupMark("regionInteractionGroup",this.userId+"_interaction",re.Interaction),_t(this._spec.style)||(this._backgroundMark=this._createMark({type:"rect",name:"regionBackground"}),e&&(this._foregroundMark=this._createMark({type:"rect",name:"regionForeground"})),[this._backgroundMark,this._foregroundMark].forEach(i=>{i&&(i.created(),this.setMarkStyle(i,{width:()=>this.getLayoutRect().width,height:()=>this.getLayoutRect().height},"normal",tt.Built_In),this._groupMark.addMark(i))}),this._backgroundMark&&this._backgroundMark.setZIndex(0),this._foregroundMark&&this._foregroundMark.setZIndex(re.Mark+1)),this.createTrigger()}_createGroupMark(t,e,i){var s,r;const a=this._createMark({type:"group",name:t});a.setUserId(e),a.setZIndex(i);const o=(s=this._spec.clip)!==null&&s!==void 0?s:this._getClipDefaultValue();return this.setMarkStyle(a,{x:()=>this.getLayoutStartPoint().x,y:()=>this.getLayoutStartPoint().y,width:()=>this.getLayoutRect().width,height:()=>this.getLayoutRect().height,clip:o},"normal",tt.Built_In),this.setMarkStyle(a,{cornerRadius:(r=this._spec.style)===null||r===void 0?void 0:r.cornerRadius},"normal",tt.User_Mark),this._marks.addMark(a),a}init(t){super.init(t),this.initMark(),this.initSeriesDataflow(),this.initInteraction(),this.initTrigger()}initMark(){this._initBackgroundMarkStyle(),this._initForegroundMarkStyle()}_initBackgroundMarkStyle(){var t,e;this._backgroundMark&&(this.setMarkStyle(this._backgroundMark,Object.assign({fillOpacity:!((t=this._spec.style)===null||t===void 0)&&t.fill?1:0},this._spec.style),"normal",tt.User_Mark),((e=this._spec.clip)!==null&&e!==void 0?e:this._getClipDefaultValue())&&this.setMarkStyle(this._backgroundMark,{strokeOpacity:0},"normal",tt.Built_In))}_initForegroundMarkStyle(){this._foregroundMark&&this.setMarkStyle(this._foregroundMark,Object.assign(Object.assign({},this._spec.style),{fillOpacity:0}),"normal",tt.User_Mark)}_compareSpec(t,e){const i=super._compareSpec(t,e);return ue(e==null?void 0:e.style,t==null?void 0:t.style)||(i.reMake=!0),i}reInit(t){super.reInit(t),this._initBackgroundMarkStyle(),this._initForegroundMarkStyle()}addSeries(t){t&&(this._series.includes(t)||this._series.push(t))}removeSeries(t){if(!t)return;const e=this._series.findIndex(i=>i===t);e>=0&&this._series.splice(e,1)}getSeries(t={}){return this._series.filter(e=>{var i,s;return(!t.name||(e==null?void 0:e.name)===t.name)&&(!t.userId||H(t.userId).includes(e.userId))&&(!P(t.specIndex)||H(t.specIndex).includes(e.getSpecIndex()))&&(!t.id||e.id===t.id)&&(!t.type||e.type===t.type)&&(!t.coordinateType||e.coordinate===t.coordinateType)&&(!t.dataName||((s=(i=e.getRawData)===null||i===void 0?void 0:i.call(e))===null||s===void 0?void 0:s.name)===t.dataName)})}getSeriesInName(t){return this.getSeries({name:t})[0]}getSeriesInUserId(t){return this.getSeries({userId:t})[0]}getSeriesInId(t){return this.getSeries({id:t})[0]}getSeriesInType(t){return this.getSeries({type:t})}getSeriesInCoordinateType(t){return this.getSeries({coordinateType:t})}getSeriesInDataName(t){return this.getSeries({dataName:t})}onRender(t){}initSeriesDataflow(){const t=this._series.map(e=>{var i;return(i=e.getViewDataFilter())!==null&&i!==void 0?i:e.getViewData()}).filter(e=>!!e);this._option.dataSet.multipleDataViewAddListener(t,"change",this.seriesDataFilterOver)}release(){super.release(),this._series=[]}createTrigger(){const t=Object.assign(Object.assign({},this._option),{model:this,interaction:this.interaction});this._trigger=new KZ(t)}initTrigger(){this._series.forEach(t=>{t.getMarksWithoutRoot().forEach(e=>{this._trigger.registerMark(e)})}),this._trigger.init()}initInteraction(){this._option.disableTriggerEvent||this._series.forEach(t=>{t.getMarksWithoutRoot().forEach(e=>{for(const i in Ed)_t(e.stateStyle[Ed[i]])||this.interaction.registerMark(Ed[i],e)})})}compileMarks(t){this.getMarks().forEach(e=>{var i;e.compile({group:t}),(i=e.getProduct())===null||i===void 0||i.configure({context:{model:this}}).layout((s,r,a,o)=>{})})}compile(){var t;(t=this.animate)===null||t===void 0||t.compile(),this.compileMarks()}onLayoutEnd(t){this._series.forEach(e=>e.onLayoutEnd(t)),super.onLayoutEnd(t)}}Yl.type="region",Yl.transformerConstructor=vL,Yl.specKey="region";function jm(n){const t=[],e=[],i=[];return n.forEach(s=>{C(s.getSpec().position)||s.getSpec().position==="start"?t.push(s):s.getSpec().position==="middle"?e.push(s):s.getSpec().position==="end"&&i.push(s)}),{startItems:t,endItems:i,middleItems:e}}function yL(n,t,e){t?n.forEach(i=>{const s=ca(i),r=s.getLayoutStartPoint().y+s.getLayoutRect().height-i[0].getLayoutStartPoint().y,a=(e-r)/2;i.forEach(o=>{o.setLayoutStartPosition({x:o.getLayoutStartPoint().x,y:o.getLayoutStartPoint().y+a})})}):n.forEach(i=>{const s=ca(i),r=s.getLayoutStartPoint().x+s.getLayoutRect().width-i[0].getLayoutStartPoint().x,a=(e-r)/2;i.forEach(o=>{o.setLayoutStartPosition({x:o.getLayoutStartPoint().x+a,y:o.getLayoutStartPoint().y})})})}function Hm(n,t,e,i){let s;n.forEach((r,a)=>{r.length>1&&(s=e[a],r.forEach(o=>{if(!o.alignSelf||o.alignSelf==="start")return;const l=o.getLayoutStartPoint(),h=o.alignSelf==="middle"?.5:1,d=t?s-(o.getLayoutRect().width+o.layoutPaddingLeft+o.layoutPaddingRight):s-(o.getLayoutRect().height+o.layoutPaddingTop+o.layoutPaddingBottom);t?o.setLayoutStartPosition({x:l.x+i*d*h,y:l.y}):o.setLayoutStartPosition({x:l.x,y:l.y+i*d*h})}))})}function Kf(n,t,e,i,s){if(n.length){let r=0;const a=s==="right",o=a?-1:1;let l=a?t.rightCurrent:t.leftCurrent,h=t.topCurrent;const d=[];let c=[];const u=[];n.forEach(p=>{const g=t.getItemComputeLayoutRect(p),f=p.computeBoundsInRect(g);p.setLayoutRect(f);const _=f.height+p.layoutPaddingTop+p.layoutPaddingBottom,m=f.width+p.layoutPaddingLeft+p.layoutPaddingRight,y=a?-f.width-p.layoutPaddingRight:p.layoutPaddingLeft;p.setLayoutStartPosition({x:l+p.layoutOffsetX+y,y:h+p.layoutOffsetY+p.layoutPaddingTop}),h+=_,h>e&&c.length?(u.push(r),l+=o*r,r=m,h=t.topCurrent+_,p.setLayoutStartPosition({x:l+p.layoutOffsetX+y,y:t.topCurrent+p.layoutOffsetY+p.layoutPaddingTop}),d.push(c),c=[p]):(r=Math.max(r,m),c.push(p))}),u.push(r),d.push(c),Hm(d,!0,u,o),i&&yL(d,!0,e),a?t.rightCurrent=l+o*r:t.leftCurrent=l+o*r}}function bL(n,t,e,i){if(n.length){let s=0;const r=i==="right",a=r?-1:1;let o=r?t.rightCurrent:t.leftCurrent,l=t.bottomCurrent;const h=[];let d=[];const c=[];n.forEach(u=>{const p=t.getItemComputeLayoutRect(u),g=u.computeBoundsInRect(p);u.setLayoutRect(g);const f=g.height+u.layoutPaddingTop+u.layoutPaddingBottom,_=g.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=r?-g.width-u.layoutPaddingRight:u.layoutPaddingLeft;l{const g=t.getItemComputeLayoutRect(p),f=p.computeBoundsInRect(g);p.setLayoutRect(f);const _=f.height+p.layoutPaddingTop+p.layoutPaddingBottom,m=f.width+p.layoutPaddingLeft+p.layoutPaddingRight,y=r?p.layoutPaddingTop:-f.height-p.layoutPaddingBottom;p.setLayoutStartPosition({x:l+p.layoutOffsetX+p.layoutPaddingLeft,y:h+p.layoutOffsetY+y}),l+=m,l>e&&c.length?(u.push(o),l=t.leftCurrent+m,h+=a*o,o=_,p.setLayoutStartPosition({x:t.leftCurrent+p.layoutOffsetX+p.layoutPaddingLeft,y:h+p.layoutOffsetY+y}),d.push(c),c=[p]):(o=Math.max(o,_),c.push(p))}),u.push(o),d.push(c),Hm(d,!1,u,a),i&&yL(d,!1,e),r?t.topCurrent=h+a*o:t.bottomCurrent=h+a*o}}function xL(n,t,e,i){if(n.length){const s=i==="top",r=s?1:-1;let a=0,o=t.rightCurrent,l=s?t.topCurrent:t.bottomCurrent;const h=[];let d=[];const c=[];n.forEach(u=>{const p=t.getItemComputeLayoutRect(u),g=u.computeBoundsInRect(p);u.setLayoutRect(g);const f=g.height+u.layoutPaddingTop+u.layoutPaddingBottom,_=g.width+u.layoutPaddingLeft+u.layoutPaddingRight,m=s?u.layoutPaddingTop:-g.height-u.layoutPaddingBottom;o<_&&d.length?(o=t.rightCurrent,l+=r*a,a=f,u.setLayoutStartPosition({x:t.rightCurrent+u.layoutOffsetX-g.width-u.layoutPaddingRight,y:l+u.layoutOffsetY+m}),h.push(d),d=[u]):(d.push(u),u.setLayoutStartPosition({x:o+u.layoutOffsetX-g.width-u.layoutPaddingRight,y:l+u.layoutOffsetY+m}),a=Math.max(a,f),o-=_)}),c.push(a),h.push(d),Hm(h,!1,c,r),s?t.topCurrent=l+r*a:t.bottomCurrent=l+r*a}}function sJ(n,t,e){const{startItems:i,middleItems:s,endItems:r}=jm(n);i.length&&Kf(i,t,e,!1,"left"),s.length&&Kf(s,t,e,!0,"left"),r.length&&bL(r,t,e,"left")}function rJ(n,t,e){const{startItems:i,middleItems:s,endItems:r}=jm(n);i.length&&Kf(i,t,e,!1,"right"),s.length&&Kf(s,t,e,!0,"right"),r.length&&bL(r,t,e,"right")}function aJ(n,t,e){const{startItems:i,middleItems:s,endItems:r}=jm(n);i.length&&qf(i,t,e,!1,"top"),s.length&&qf(s,t,e,!0,"top"),r.length&&xL(r,t,e,"top")}function oJ(n,t,e){const{startItems:i,middleItems:s,endItems:r}=jm(n);i.length&&qf(i,t,e,!1,"bottom"),s.length&&qf(s,t,e,!0,"bottom"),r.length&&xL(r,t,e,"bottom")}let yS=class{constructor(t,e){this.leftCurrent=0,this.topCurrent=0,this.rightCurrent=0,this.bottomCurrent=0,this._onError=e==null?void 0:e.onError}_layoutInit(t,e,i,s){this._chartLayoutRect=i,this._chartViewBox=s,this.leftCurrent=i.x,this.topCurrent=i.y,this.rightCurrent=i.x+i.width,this.bottomCurrent=i.height+i.y,e.sort((r,a)=>a.layoutLevel-r.layoutLevel)}_layoutNormalItems(t){this.layoutNormalInlineItems(t.filter(e=>e.layoutType==="normal-inline")),this.layoutNormalItems(t.filter(e=>e.layoutType==="normal"))}_groupItems(t){const e=t.filter(o=>o.layoutType==="region"),i=t.filter(o=>o.layoutType==="region-relative"),s=t.filter(o=>o.layoutType==="region-relative-overlap"),r=i.concat(s),a={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}};return s.forEach(o=>{a[o.layoutOrient].items.push(o)}),{regionItems:e,relativeItems:i,relativeOverlapItems:s,allRelatives:r,overlapItems:a}}layoutItems(t,e,i,s){this._layoutInit(t,e,i,s),this._layoutNormalItems(e);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},{regionItems:a,relativeItems:o,relativeOverlapItems:l,allRelatives:h,overlapItems:d}=this._groupItems(e);this.layoutRegionItems(a,o,l,d),this._processAutoIndent(a,o,l,d,h,r),this.layoutAbsoluteItems(e.filter(c=>c.layoutType==="absolute"))}_processAutoIndent(t,e,i,s={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}},r,a){if(r.some(o=>o.autoIndent)){const{top:o,bottom:l,left:h,right:d}=this._checkAutoIndent(r,a);(o||l||h||d)&&(this.topCurrent=a.top+o,this.bottomCurrent=a.bottom-l,this.leftCurrent=a.left+h,this.rightCurrent=a.right-d,this.layoutRegionItems(t,e,i,s))}}layoutNormalItems(t){t.forEach(e=>{const i=this.getItemComputeLayoutRect(e),s=e.computeBoundsInRect(i);e.setLayoutRect(s),e.layoutOrient==="left"?(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingLeft,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.leftCurrent+=s.width+e.layoutPaddingLeft+e.layoutPaddingRight):e.layoutOrient==="top"?(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingLeft,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.topCurrent+=s.height+e.layoutPaddingTop+e.layoutPaddingBottom):e.layoutOrient==="right"?(e.setLayoutStartPosition({x:this.rightCurrent+e.layoutOffsetX-s.width-e.layoutPaddingRight,y:this.topCurrent+e.layoutOffsetY+e.layoutPaddingTop}),this.rightCurrent-=s.width+e.layoutPaddingLeft+e.layoutPaddingRight):e.layoutOrient==="bottom"&&(e.setLayoutStartPosition({x:this.leftCurrent+e.layoutOffsetX+e.layoutPaddingRight,y:this.bottomCurrent+e.layoutOffsetY-s.height-e.layoutPaddingBottom}),this.bottomCurrent-=s.height+e.layoutPaddingTop+e.layoutPaddingBottom)})}layoutNormalInlineItems(t){const e=t.filter(l=>l.layoutOrient==="left"),i=t.filter(l=>l.layoutOrient==="right"),s=t.filter(l=>l.layoutOrient==="top"),r=t.filter(l=>l.layoutOrient==="bottom"),a=this._chartLayoutRect.width+this._chartLayoutRect.x,o=this._chartLayoutRect.height+this._chartLayoutRect.y;e.length&&sJ(e,this,o),s.length&&aJ(s,this,a),i.length&&rJ(i,this,o),r.length&&oJ(r,this,a)}_layoutRelativeOverlap(t,e){e.items.forEach(i=>{const s=this.getItemComputeLayoutRect(i),r=i.computeBoundsInRect(s);e.rect.width=Math.max(r.width+i.layoutPaddingLeft+i.layoutPaddingRight,e.rect.width),e.rect.height=Math.max(r.height+i.layoutPaddingTop+i.layoutPaddingBottom,e.rect.height)}),e.items.forEach(i=>{i.setLayoutRect(e.rect),t==="left"?i.setLayoutStartPosition({x:this.leftCurrent+i.layoutOffsetX}):t==="right"?i.setLayoutStartPosition({x:this.rightCurrent-e.rect.width+i.layoutOffsetX}):t==="top"?i.setLayoutStartPosition({x:this.topCurrent+i.layoutOffsetY}):i.setLayoutStartPosition({x:this.bottomCurrent-e.rect.height+i.layoutOffsetY})}),t==="left"?this.leftCurrent+=e.rect.width:t==="right"?this.rightCurrent-=e.rect.width:t==="top"?this.topCurrent+=e.rect.height:this.bottomCurrent-=e.rect.height}_layoutRelativeItem(t,e){const i=t.computeBoundsInRect(e);t.layoutOrient==="left"||t.layoutOrient==="right"?t.setLayoutRect({width:i.width}):t.setLayoutRect({height:i.height}),t.layoutOrient==="left"?(t.setLayoutStartPosition({x:this.leftCurrent+t.layoutOffsetX+t.layoutPaddingLeft}),this.leftCurrent+=i.width+t.layoutPaddingLeft+t.layoutPaddingRight):t.layoutOrient==="right"?(this.rightCurrent-=i.width+t.layoutPaddingLeft+t.layoutPaddingRight,t.setLayoutStartPosition({x:this.rightCurrent+t.layoutOffsetX+t.layoutPaddingLeft})):t.layoutOrient==="top"?(t.setLayoutStartPosition({y:this.topCurrent+t.layoutOffsetY+t.layoutPaddingTop}),this.topCurrent+=i.height+t.layoutPaddingTop+t.layoutPaddingBottom):t.layoutOrient==="bottom"&&(this.bottomCurrent-=i.height+t.layoutPaddingTop+t.layoutPaddingBottom,t.setLayoutStartPosition({y:this.bottomCurrent+t.layoutOffsetY+t.layoutPaddingTop}))}_layoutRegionItem(t,e,i){const s=Math.max(Math.min(e,...t.map(a=>{var o;return(o=a.maxWidth)!==null&&o!==void 0?o:Number.MAX_VALUE})),0),r=Math.max(Math.min(i,...t.map(a=>{var o;return(o=a.maxHeight)!==null&&o!==void 0?o:Number.MAX_VALUE})),0);return t.forEach(a=>{const o=s-a.layoutPaddingLeft-a.layoutPaddingRight,l=r-a.layoutPaddingTop-a.layoutPaddingBottom;a.setLayoutRect({width:o,height:l}),a.setLayoutStartPosition({x:this.leftCurrent+a.layoutOffsetX+a.layoutPaddingLeft,y:this.topCurrent+a.layoutOffsetY+a.layoutPaddingTop})}),{regionHeight:r,regionWidth:s}}layoutRegionItems(t,e,i,s={left:{items:[],rect:{width:0,height:0}},right:{items:[],rect:{width:0,height:0}},top:{items:[],rect:{width:0,height:0}},bottom:{items:[],rect:{width:0,height:0}},z:{items:[],rect:{width:0,height:0}}}){let r=this.rightCurrent-this.leftCurrent,a=this.bottomCurrent-this.topCurrent;e.filter(h=>h.layoutOrient==="left"||h.layoutOrient==="right").forEach(h=>{this._layoutRelativeItem(h,this.getItemComputeLayoutRect(h))}),this._layoutRelativeOverlap("left",s.left),this._layoutRelativeOverlap("right",s.right),r=this.rightCurrent-this.leftCurrent,e.filter(h=>h.layoutOrient==="top"||h.layoutOrient==="bottom").forEach(h=>{this._layoutRelativeItem(h,this.getItemComputeLayoutRect(h))}),this._layoutRelativeOverlap("top",s.top),this._layoutRelativeOverlap("bottom",s.bottom),a=this.bottomCurrent-this.topCurrent;const{regionWidth:o,regionHeight:l}=this._layoutRegionItem(t,r,a);e.concat(i).forEach(h=>{if(["left","right"].includes(h.layoutOrient)){const d=this.filterRegionsWithID(t,h.layoutBindRegionID[0]);h.setLayoutRect({height:d.getLayoutRect().height}),h.setLayoutStartPosition({y:d.getLayoutStartPoint().y+h.layoutOffsetY+h.layoutPaddingTop}),h.layoutOrient==="right"&&h.setLayoutStartPosition({x:h.getLayoutStartPoint().x+o-r})}else if(["top","bottom"].includes(h.layoutOrient)){const d=this.filterRegionsWithID(t,h.layoutBindRegionID[0]);h.setLayoutRect({width:d.getLayoutRect().width}),h.setLayoutStartPosition({x:d.getLayoutStartPoint().x+h.layoutOffsetX+h.layoutPaddingLeft}),h.layoutOrient==="bottom"&&h.setLayoutStartPosition({y:h.getLayoutStartPoint().y+l-a})}})}layoutAbsoluteItems(t){t.forEach(e=>{e.absoluteLayoutInRect(this._chartLayoutRect)})}filterRegionsWithID(t,e){var i;const s=t.find(r=>r.getModelId()===e);return s||((i=this._onError)!==null&&i!==void 0?i:Co)("can not find target region item, invalid id"),s}getItemComputeLayoutRect(t){return{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight,height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom}}_checkAutoIndent(t,e){const i={top:0,left:0,bottom:0,right:0};return t.forEach(s=>{if(!s.getModelVisible()||!s.autoIndent)return;const r=s.layoutOrient==="left"||s.layoutOrient==="right",a=s.getLastComputeOutBounds(),o=this._getOutInLayout(a,s,e);r?(i.top=Math.max(i.top,o.top),i.bottom=Math.max(i.bottom,o.bottom)):(i.left=Math.max(i.left,o.left),i.right=Math.max(i.right,o.right))}),i}_getOutInLayout(t,e,i){const{x:s,y:r}=e.getLayoutStartPoint(),{width:a,height:o}=e.getLayoutRect();return{left:i.left-(s-t.x1),right:s+a+t.x2-i.right,top:i.top-(r-t.y1),bottom:r+o+t.y2-i.bottom}}};yS.type="base";const lJ=["line","area","trail"];function sv(n){return lJ.includes(n)}function hJ(n,t){return n==="monotone"?t==="horizontal"?"monotoneY":"monotoneX":n}class dJ extends fL{getStateInfoList(){return this._stateInfoList}constructor(t,e){super(t),this._stateInfoList=[],this._mark=e}_getDefaultStateMap(){return{markUpdateRank:1}}getStateInfo(t){return this._stateInfoList.find(e=>e.stateValue===t)}addStateInfo(t){if(this.getStateInfo(t.stateValue))return;t.level=t.level||0;let e=!0;for(let i=0;it.level){this._stateInfoList.splice(i,0,t),e=!1;break}}e&&this._stateInfoList.push(t)}_clearStateBeforeSet(t){t.datums=null,t.items=null,t.fields=null,t.filter=null}changeStateInfo(t){const e=this.getStateInfo(t.stateValue);if(e){if(t.datums!==void 0&&(this._clearStateBeforeSet(e),e.datums=t.datums,e.datumKeys=t.datumKeys),t.items!==void 0&&(this._clearStateBeforeSet(e),e.items=t.items),t.fields!==void 0)if(this._clearStateBeforeSet(e),t.fields===null)e.fields=t.fields;else{e.fields=e.fields||{};for(const i in t.fields){const s=t.fields[i];e.fields[i]=e.fields[i]||{};const r=e.fields[i];P(s.domain)&&(r.domain=s.domain),P(s.type)&&(r.type=s.type)}}t.filter&&(this._clearStateBeforeSet(e),e.filter=t.filter)}else this.addStateInfo(t)}clearStateInfo(t){t.forEach(e=>{this.getStateInfo(e)&&this.changeStateInfo({stateValue:e,datumKeys:null,datums:null,fields:null,items:null,filter:null,cache:{}})})}checkOneState(t,e,i,s){var r;s=be(sv)?s:!t.mark||sv(t.mark.markType);let a=!1,o=!1;if(P(i.datums)&&i.datums.length>0)a=this.checkDatumState(i,e,s),o=!0;else if(i.items)a=(r=this.checkItemsState(i,t))!==null&&r!==void 0&&r,o=!0;else if(i.fields)a=this.checkFieldsState(i,e,t,s),o=!0;else if(!a&&i.filter){const l={mark:this._mark,renderNode:t,type:t.mark.markType};a=i.filter(e,l),o=!0}return o?a?"in":"out":"skip"}checkState(t,e){const i=t.getStates().filter(r=>JZ(r)).map(r=>[r,10]),s=!t.mark||sv(t.mark.markType);for(let r=0;rr[0])}checkDatumState(t,e,i){let s=!1;const r=i?e[0]:e;if(V(t.datums)){const a=t.datumKeys||Object.keys(t.datums[0]).filter(o=>!o.startsWith(yt));s=t.datums.some(o=>i&&V(o==null?void 0:o.items)?a.every(l=>{var h,d;return((d=(h=o==null?void 0:o.items)===null||h===void 0?void 0:h[0])===null||d===void 0?void 0:d[l])===(r==null?void 0:r[l])}):a.every(l=>(o==null?void 0:o[l])===(r==null?void 0:r[l])))}else Ct(t.datums)?s=(t.datumKeys||Object.keys(t.datums).filter(a=>!a.startsWith(yt))).every(a=>{var o,l;return i?((o=t.datums.items)===null||o===void 0?void 0:o[0][a])===r[a]:((l=t.datums)===null||l===void 0?void 0:l[a])===r[a]}):s=e===t.datums;return s}checkItemsState(t,e){var i;return(i=t.items)===null||i===void 0?void 0:i.includes(e)}checkFieldsState(t,e,i,s){var r;let a=!0;for(const o in t.fields){const l=t.fields[o],h=l.type,d=l.domain,c=s?(r=e[0])===null||r===void 0?void 0:r[o]:e[o];if(ie(h)&&d.length>1){if(this.checkLinearFieldState(d,o,e,i,s)){a=!1;break}a=!0}else{if(!d.some(u=>u===c)){a=!1;break}a=!0}}return a}checkLinearFieldState(t,e,i,s,r){var a;const o=r?(a=i[0])===null||a===void 0?void 0:a[e]:i[e];return ot[t.length-1]}updateLayoutState(t){return this._stateMap.markUpdateRank++,this.updateState({markUpdateRank:this._stateMap.markUpdateRank},t)}compileState(t,e){t.state({callback:(i,s)=>this.checkState(s,i)},e)}}class $s extends mS{getDataView(){return this._data}setDataView(t){this._data=t}getLatestData(){var t;return(t=this._data)===null||t===void 0?void 0:t.latestData}constructor(t,e){super(t),this.grammarType=ya.data,this._data=null,this._data=e}release(){super.release(),this._data=null}updateData(t){const e=this.getProduct(),i=this.getLatestData();if(e&&i&&(e.values(i),!t))return this.getCompiler().renderNextTick()}_compileProduct(){const t=this.getLatestData();C(t)||(C(this.getProduct())?this._initProduct(t):this._product.values(t))}_initProduct(t){var e,i;const s=this.getVGrammarView();if(!s||!t)return;const r=this.getProductId();this._product=(i=(e=s==null?void 0:s.data)===null||e===void 0?void 0:e.call(s,t))===null||i===void 0?void 0:i.id(r),this._compiledProductId=r}generateProductId(){var t;return`${(t=this.getDataView())===null||t===void 0?void 0:t.name}`}_lookupGrammar(t){var e,i;return(i=(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getDataById)===null||i===void 0?void 0:i.call(e,t)}}class cJ extends $s{constructor(t){super(t),this._mark=t.mark}setCompiledProductId(t){this._compiledProductId=t}generateProductId(){const t=super.generateProductId();return P(t)?t:`${yt}_markData_${this._mark.id}`}_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;C(e)||P(this.getProduct())||this._initProduct(e)}}var Ww=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this._unCompileChannel[a]||(this._option.noSeparateStyle||qZ(a,i,this.getFacet())?r[a]={callback:this.compileCommonAttributeCallback(a,"normal"),dependency:[this.stateKeyToSignalName("markUpdateRank")]}:s[a]=this.compileCommonAttributeCallback(a,"normal"))}),{enterStyles:s,updateStyles:r}}compileEncode(){const t=this.stateStyle,e=dt.STATE_NORMAL,i=(t[e],Ww(t,[typeof e=="symbol"?e:e+""])),{enterStyles:s,updateStyles:r}=this._separateStyle();this._product.encode(r,!0),this._product.encodeState("group",s,!0),Object.keys(i).forEach(a=>{const o={};Object.keys(i[a]).forEach(l=>{this._unCompileChannel[l]||(o[l]={callback:this.compileCommonAttributeCallback(l,a),dependency:[this.stateKeyToSignalName("markUpdateRank")]})}),this._product.encodeState(a,o,!0)}),this._skipBeforeLayouted&&this._product.layout({skipBeforeLayouted:this._skipBeforeLayouted})}compileState(){this.state.compileState(this._product,this._stateSort)}compileAnimation(){var t,e,i,s;if(this._animationConfig){let r;if(this.type==="component")r=(t=this.model.animate)===null||t===void 0?void 0:t.getAnimationStateSignalName();else{const a=(i=(e=this.model).getRegion)===null||i===void 0?void 0:i.call(e);r=(s=a==null?void 0:a.animate)===null||s===void 0?void 0:s.getAnimationStateSignalName()}this._product.animation(this._animationConfig),this._product.animationState({callback:(a,o,l)=>{var h;return(h=l[r])===null||h===void 0?void 0:h.callback(a,o)},dependency:r}),this._animationConfig.normal&&(this._animationConfig.appear?this._event.on(ct.ANIMATION_END,({event:a})=>{a.mark===this.getProduct()&&a.animationState===Ze.appear&&this.runAnimationByState(Ze.normal)}):this._event.on(ct.AFTER_DO_RENDER,()=>{this.runAnimationByState(Ze.normal)}))}}compileContext(){const t={interactive:this.getInteractive(),zIndex:this.getZIndex(),context:{markId:this.id,modelId:this.model.id,markUserId:this._userId,modelUserId:this.model.userId},skipTheme:this.getSkipTheme(),support3d:this.getSupport3d(),enableSegments:!!this._enableSegments,clip:!!this._clip||this._clip!==!1&&void 0,clipPath:this._clip||void 0};this._progressiveConfig&&(t.progressiveStep=this._progressiveConfig.progressiveStep,t.progressiveThreshold=this._progressiveConfig.progressiveThreshold,t.large=this._progressiveConfig.large,t.largeThreshold=this._progressiveConfig.largeThreshold),t.morph=this._morph,t.morphKey=this._morphKey,t.morphElementKey=this._morphElementKey,this._setCustomizedShape&&(t.setCustomizedShape=this._setCustomizedShape),this._product.configure(t)}compileSignal(){this.state.compile()}_computeAttribute(t,e){return(i,s)=>{}}compileCommonAttributeCallback(t,e){const i=this._computeAttribute(t,e),s={mark:null,parent:null,element:null};return(r,a)=>(s.mark=a.mark,s.parent=a.mark.group,s.element=a,i(r,s))}compileTransform(){var t;!((t=this._transform)===null||t===void 0)&&t.length&&this.getProduct().transform(this._transform)}_lookupGrammar(t){var e;return(e=this.getCompiler().getVGrammarView())===null||e===void 0?void 0:e.getMarkById(t)}updateState(t,e){return this.state.updateState(t,e)}updateLayoutState(t,e){return e&&this.getMarks().length>0&&this.getMarks().forEach(i=>i.state.updateLayoutState(!0)),this.state.updateLayoutState(t)}updateMarkState(t){if(!this._product)return;const e=this.state.getStateInfo(t);this._product.elements.forEach(i=>{this.state.checkOneState(i,i.getDatum(),e)==="in"?i.addState(t):i.removeState(t)})}getMarks(){return[]}runAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.runAnimationByState(t)}stopAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.stopAnimationByState(t)}pauseAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.pauseAnimationByState(t)}resumeAnimationByState(t){var e,i;return(i=(e=this.getProduct())===null||e===void 0?void 0:e.animate)===null||i===void 0?void 0:i.resumeAnimationByState(t)}getProductElements(){const t=this.getProduct();if(t)return t.elements}release(){super.release(),this.state.release()}}var Nw=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);se(t(...i)):e(t)}convertAngleToRadian(t){return this._transformStyleValue(t,Jt)}isUserLevel(t){return[tt.User_Mark,tt.User_Series,tt.User_Chart,tt.User_SeriesStyle].includes(t)}setStyle(t,e="normal",i=0,s=this.stateStyle){if(C(t))return;s[e]===void 0&&(s[e]={});const r=this.isUserLevel(i);Object.keys(t).forEach(a=>{let o=t[a];C(o)||(o=this._filterAttribute(a,o,e,i,r,s),this.setAttribute(a,o,e,i,s))})}getStyle(t,e="normal"){var i;return(i=this.stateStyle[e][t])===null||i===void 0?void 0:i.style}_filterAttribute(t,e,i,s,r,a=this.stateStyle){let o=this._styleConvert(e);if(r)switch(t){case"angle":o=this.convertAngleToRadian(o);break;case"innerPadding":case"outerPadding":o=this._transformStyleValue(o,l=>-l);break;case"curveType":o=this._transformStyleValue(o,l=>hJ(l,this._option.model.direction))}return o}setReferer(t,e,i,s=this.stateStyle){var r;if(t)if(e&&i){const a=(r=s[i])!==null&&r!==void 0?r:{[e]:{}};s[i][e]=Object.assign(Object.assign({},a[e]),{referer:t})}else Object.entries(s).forEach(([a,o])=>{Object.entries(o).forEach(([l,h])=>{s[a][l].referer=t})})}setPostProcess(t,e,i="normal"){var s;!((s=this.stateStyle[i])===null||s===void 0)&&s[t]&&(this.stateStyle[i][t].postProcess=e)}getAttribute(t,e,i="normal",s){return this._computeAttribute(t,i)(e,s)}setAttribute(t,e,i="normal",s=0,r=this.stateStyle){var a;r[i]===void 0&&(r[i]={}),r[i][t]===void 0&&(r[i][t]={level:s,style:e,referer:void 0});const o=(a=r[i][t])===null||a===void 0?void 0:a.level;P(o)&&o<=s&&vt(r[i][t],{style:e,level:s}),i!=="normal"&&t in this._extensionChannel&&this._extensionChannel[t].forEach(l=>{r[i][l]===void 0&&(r[i][l]=r.normal[l])})}_getDefaultStyle(){return{visible:!0,x:0,y:0}}_styleConvert(t){if(!t)return t;if(cb(t.type)||t.scale){const e=eq(t,{globalScale:this._option.globalScale,seriesId:this._option.seriesId});if(e)return{scale:e,field:t.field,changeDomain:t.changeDomain}}return t}_computeAttribute(t,e){var i;let s=(i=this.stateStyle[e])===null||i===void 0?void 0:i[t];s||(s=this.stateStyle.normal[t]);const r=this._computeStateAttribute(s,t,e),a=G(s==null?void 0:s.postProcess),o=t in this._computeExChannel;if(a&&o){const l=this._computeExChannel[t];return(h,d)=>{let c=r(h,d);return c=s.postProcess(c,h,this._attributeContext,d,this.getDataView()),l(t,h,e,d,c)}}if(a)return(l,h)=>s.postProcess(r(l,h),l,this._attributeContext,h,this.getDataView());if(o){const l=this._computeExChannel[t];return(h,d)=>l(t,h,e,d,r(h,d))}return r}_computeStateAttribute(t,e,i){var s;return t?t.referer?t.referer._computeAttribute(e,i):t.style?typeof t.style=="function"?(r,a)=>t.style(r,this._attributeContext,a,this.getDataView()):vw.includes(t.style.gradient)?this._computeGradientAttr(t.style):["outerBorder","innerBorder"].includes(e)?this._computeBorderAttr(t.style):cb((s=t.style.scale)===null||s===void 0?void 0:s.type)?(r,a)=>t.style.scale.scale(r[t.style.field]):(r,a)=>t.style:(r,a)=>t.style:(r,a)=>{}}_initStyle(){const t=this._getDefaultStyle();this.setStyle(t,"normal",0)}_initSpecStyle(t,e,i){t.style&&this.setStyle(t.style,"normal",tt.User_Mark,e);const s=t.state;s&&Object.keys(s).forEach(r=>{const a=s[r];if("style"in a){const o=a.style;let l={stateValue:r};"level"in a&&(l.level=a.level),"filter"in a&&(l=G(a.filter)?Object.assign({filter:a.filter},l):Object.assign(Object.assign({},a.filter),l)),this.state.addStateInfo(l),this.setStyle(o,r,tt.User_Mark,e)}else this.setStyle(a,r,tt.User_Mark,e)})}_computeGradientAttr(t){var e,i;const{gradient:s,scale:r,field:a}=t,o=Nw(t,["gradient","scale","field"]);let l=r,h=a;if(!(r&&a||this.model.modelType!=="series")){const{scale:u,field:p}=this.model.getColorAttribute();r||(l=u),h||(h=p)}const d=Pb(Wc(this.model.getColorScheme(),this.model.modelType==="series"?(i=(e=this.model).getSpec)===null||i===void 0?void 0:i.call(e):void 0),this.model.getDefaultColorDomain()),c=Object.assign(Object.assign({},UK[s]),o);return(u,p)=>{const g={},f=this.getDataView();return Object.keys(c).forEach(_=>{const m=c[_];_==="stops"?g.stops=m.map(y=>{const{opacity:b,color:v,offset:x}=y;let S=v??(l==null?void 0:l.scale(u[h]));return G(v)&&(S=v(u,this._attributeContext,p,f)),P(b)&&(S=Je.SetOpacity(S,b)),{offset:G(x)?x(u,this._attributeContext,p,f):x,color:S||d[0]}}):G(m)?g[_]=m(u,this._attributeContext,p,f):g[_]=m}),g.gradient=s,g}}_computeBorderAttr(t){const{scale:e,field:i}=t,s=Nw(t,["scale","field"]);return(r,a)=>{var o,l,h;const d={};if(Object.keys(s).forEach(c=>{const u=s[c];G(u)?d[c]=u(r,this._attributeContext,a,this.getDataView()):d[c]=u}),"stroke"in d)vw.includes((h=s.stroke)===null||h===void 0?void 0:h.gradient)&&(d.stroke=this._computeGradientAttr(s.stroke)(r,a));else{const c=Pb(Wc(this.model.getColorScheme(),this.model.modelType==="series"?(l=(o=this.model).getSpec)===null||l===void 0?void 0:l.call(o):void 0),this.model.getDefaultColorDomain());let u=e,p=i;if(!(e&&i||this.model.modelType!=="series")){const{scale:g,field:f}=this.model.getColorAttribute();e||(u=g),p||(p=f),d.stroke=(u==null?void 0:u.scale(r[p]))||c[0]}}return d}}}class Gc extends Oi{constructor(){super(...arguments),this.type=Gc.type,this._marks=[]}getMarks(){return this._marks}_getDefaultStyle(){return Object.assign({},super._getDefaultStyle())}isMarkExist(t){return this._marks.find(e=>e.id===t.id||e.name===t.name)!==void 0}addMark(t){return this.isMarkExist(t)?(Us("Mark already exists, add mark failed."),!1):(this._marks.push(t),!0)}removeMark(t){const e=this._marks.findIndex(i=>i.id===t.id||i.name===t.name);return e===-1?(Us("Mark does not exists, removeMark failed."),!1):(this._marks.splice(e,1),!0)}getMarkInType(t){return this._marks.filter(e=>e.type===t)}getMarkInId(t){return this._marks.find(e=>e.id===t)}getMarkInName(t){return this._marks.find(e=>e.name===t)}_compileProduct(t){super._compileProduct(t),this._product.configure({zIndex:this.getZIndex()}),t!=null&&t.ignoreChildren||this.getMarks().forEach(e=>{e.getProduct()&&e.removeProduct(),e.compile({group:this._product})})}}Gc.type="group";const SL=()=>{E6(),L.registerMark(Gc.type,Gc)},pJ=n=>({type:"clipIn",options:{clipDimension:n.direction==="horizontal"?"y":"x"}}),gJ={type:"fadeIn"},fJ=n=>({type:n.direction==="horizontal"?"growPointsXIn":"growPointsYIn",options:{orient:n.direction==="horizontal"?"positive":"negative"}});function _J(n,t){switch(t){case"grow":return fJ(n);case"fadeIn":return gJ;default:return pJ(n)}}const aa={appear:{duration:1e3,easing:"cubicOut"},update:{type:"update",duration:300,easing:"linear"},enter:{duration:300,easing:"linear"},exit:{duration:300,easing:"linear"},disappear:{duration:500,easing:"cubicIn"}},bS={appear:{type:"scaleIn"},enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:{type:"scaleOut"}},Vm={appear:{type:"fadeIn"},enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}},Wm=()=>{L.registerAnimation("scaleInOut",()=>bS)},Dr=()=>{L.registerAnimation("fadeInOut",()=>Vm)},mJ=()=>{L.registerAnimation("cartesianGroupClip",n=>({appear:{custom:_A,customParameters:(t,e)=>({animationType:"in",group:e.getGraphicItem(),direction:n.direction(),width:n.width(),height:n.height(),orient:n.orient()})},disappear:{custom:_A,customParameters:(t,e)=>({animationType:"out",group:e.getGraphicItem(),direction:n.direction(),width:n.width(),height:n.height(),orient:n.orient()})}}))},AL=(n,t)=>({appear:_J(n,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},update:[{type:"update",options:{excludeChannels:["points","defined"]}},{channel:["points"],custom:_R,duration:aa.update.duration,easing:aa.update.easing,customParameters:{clipRangeByDimension:n.direction==="horizontal"?"y":"x"}}],disappear:{type:"clipOut"}}),kL=()=>{L.registerAnimation("line",AL)},vJ=()=>{L.registerAnimation("area",AL)},yJ=()=>{Zo.useRegisters([IK,OK,fK,_K,RK,BK,LK,DK,FK])},TL=()=>{Zo.useRegisters([yK,bK,xK,SK,mK,vK])},ML=()=>{Zo.useRegisters([PK,EK,wK,CK])},wL=()=>{Zo.useRegisters([lO,hO,AK,kK,TK,MK,pK,gK])},CL=()=>{Zo.useRegisters([lO,hO])},bJ={measureText:xZ};class On{static instance(){return On.instance_||(On.instance_=new On),On.instance_}constructor(){this.functions={}}registerFunction(t,e){t&&e&&(this.functions[t]=e)}unregisterFunction(t){t&&delete this.functions[t]}getFunction(t){return this.functions[t]||null}getFunctionNameList(){return Object.keys(this.functions)}}const xJ=()=>{sf(Mt)},SJ=()=>{lf(Mt)};class PL{constructor(){this.id=Xo(),this._plugins=[]}add(t){if(!t||t.length===0)return null;const e=[];return t.forEach(i=>{this._plugins.find(s=>s.id===i.id)?Us("不要重复添加相同的plugin"):(this._plugins.push(i),e.push(i),i.onAdd&&i.onAdd(this))}),e}load(t){const e=this.add(t);e&&e.length&&this.activate(t)}activate(t){t.length&&t.forEach(e=>{e.init&&e.init()})}get(t){return this._plugins.find(e=>e.id===t)}getAll(){return this._plugins.slice()}release(t){const e=this.get(t);e&&(e.release(this),this._plugins=this._plugins.filter(i=>i!==e))}releaseAll(){this._plugins.forEach(t=>{t.release(this)}),this._plugins=[]}clear(t){const e=this.get(t);e&&e.clear(this)}clearAll(){this._plugins.forEach(t=>{var e;(e=t.clear)===null||e===void 0||e.call(t,this)})}}class AJ extends PL{constructor(t){super(),this.globalInstance=t}onInit(t){this._plugins.forEach(e=>{e.onInit&&e.onInit(this,t)})}onBeforeResize(t,e){this._plugins.forEach(i=>{i.onBeforeResize&&i.onBeforeResize(this,t,e)})}onAfterChartSpecTransform(t,e){this._plugins.forEach(i=>{i.onAfterChartSpecTransform&&i.onAfterChartSpecTransform(this,t,e)})}onBeforeInitChart(t,e){this._plugins.forEach(i=>{i.onBeforeInitChart&&i.onBeforeInitChart(this,t,e)})}releaseAll(){super.releaseAll(),this.globalInstance=null}}var ls=function(n,t,e,i){return new(e||(e=Promise))(function(s,r){function a(h){try{l(i.next(h))}catch(d){r(d)}}function o(h){try{l(i.throw(h))}catch(d){r(d)}}function l(h){var d;h.done?s(h.value):(d=h.value,d instanceof e?d:new e(function(c){c(d)})).then(a,o)}l((i=i.apply(n,t||[])).next())})},kJ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{typeof e=="function"?e():console.error("Invalid function:",e)})}static useChart(t){t.forEach(e=>L.registerChart(e.type,e))}static useSeries(t){t.forEach(e=>L.registerSeries(e.type,e))}static useComponent(t){t.forEach(e=>L.registerComponent(e.type,e))}static useMark(t){t.forEach(e=>{var i;return L.registerMark((i=e.constructorType)!==null&&i!==void 0?i:e.type,e)})}static useLayout(t){t.forEach(e=>L.registerLayout(e.type,e))}static registerDataSetTransform(t,e){L.registerTransform(t,e)}static registerFunction(t,e){t&&e&&On.instance().registerFunction(t,e)}static unregisterFunction(t){t&&On.instance().unregisterFunction(t)}static getFunction(t){return t?On.instance().getFunction(t):null}static getFunctionList(){return On.instance().getFunctionNameList()}static registerMap(t,e,i){const s=L.getImplementInKey("registerMap");s&&s(t,e,i)}static unregisterMap(t){const e=L.getImplementInKey("unregisterMap");e&&e(t)}static getMap(t){return VZ(t)}static hideTooltip(t=[]){Kn.forEach(e=>{var i;return(i=e==null?void 0:e.hideTooltip)===null||i===void 0?void 0:i.call(e)},t)}static getLogger(){return Lt.getInstance()}getSpec(){return this._spec}getSpecInfo(){return this._specInfo}getDataSet(){return this._dataSet}constructor(t,e){var i,s,r,a,o,l;this.id=Xo(),this._userEvents=[],this._autoSize=!0,this._option={mode:Ke["desktop-browser"],onError:m=>{throw new Error(m)},optimize:{disableCheckGraphicWidthOutRange:!0}},this._observer=null,this._context={},this._onResize=Xs((...m)=>{this._doResize()},100),this._option=Y(this._option,{animation:t.animation!==!1},e),this._onError=(i=this._option)===null||i===void 0?void 0:i.onError;const h=this._option,{dom:d,renderCanvas:c,mode:u,stage:p,poptip:g}=h,f=kJ(h,["dom","renderCanvas","mode","stage","poptip"]),_=zn(u);_?xJ():u==="node"&&SJ(),_&&d&&(this._container=at(d)?Rt.getElementById(d):d),c&&(this._canvas=c),p&&(this._stage=p),u==="node"||this._container||this._canvas||this._stage?(this._viewBox=this._option.viewBox,this._currentThemeName=nn.getCurrentThemeName(),this._setNewSpec(t),this._updateCurrentTheme(),this._currentSize=this.getCurrentSize(),this._compiler=new GZ({dom:(r=this._container)!==null&&r!==void 0?r:"none",canvas:c},Object.assign(Object.assign({mode:this._option.mode,stage:p,pluginList:g!==!1?["poptipForText"]:[]},f),{background:this._getBackground(),onError:this._onError})),this._compiler.setSize(this._currentSize.width,this._currentSize.height),this._eventDispatcher=new FZ(this,this._compiler),this._event=new Lm(this._eventDispatcher,u),this._compiler.initView(),this._setFontFamilyTheme((a=this._currentTheme)===null||a===void 0?void 0:a.fontFamily),this._initDataSet(this._option.dataSet),this._autoSize=!!_&&((l=(o=t.autoFit)!==null&&o!==void 0?o:this._option.autoFit)===null||l===void 0||l),this._bindResizeEvent(),this._bindVGrammarViewEvent(),this._initChartPlugin(),Kn.registerInstance(this)):(s=this._option)===null||s===void 0||s.onError("please specify container or renderCanvas!")}_setNewSpec(t,e){return!!t&&(at(t)&&(t=JSON.parse(t)),e&&this._originalSpec&&(t=vt({},this._originalSpec,t)),this._originalSpec=t,this._spec=this._getSpecFromOriginalSpec(),!0)}_getSpecFromOriginalSpec(){var t;const e=Ob(this._originalSpec);return e.data=(t=e.data)!==null&&t!==void 0?t:[],e}_initChartSpec(t,e){var i,s;hi.getFunctionList()&&hi.getFunctionList().length&&(t=Lb(t,hi)),this._spec=t,this._chartSpecTransformer||(this._chartSpecTransformer=L.createChartSpecTransformer(this._spec.type,this._getChartOption(this._spec.type))),(i=this._chartSpecTransformer)===null||i===void 0||i.transformSpec(this._spec),this._chartPluginApply("onAfterChartSpecTransform",this._spec,e),this._specInfo=(s=this._chartSpecTransformer)===null||s===void 0?void 0:s.transformModelSpec(this._spec),this._chartPluginApply("onAfterModelSpecTransform",this._spec,this._specInfo,e)}_updateSpecInfo(){var t;this._chartSpecTransformer||(this._chartSpecTransformer=L.createChartSpecTransformer(this._spec.type,this._getChartOption(this._spec.type))),this._specInfo=(t=this._chartSpecTransformer)===null||t===void 0?void 0:t.createSpecInfo(this._spec)}_initChart(t){var e,i,s;if(!this._compiler)return void((e=this._option)===null||e===void 0||e.onError("compiler is not initialized"));if(this._chart)return void((i=this._option)===null||i===void 0||i.onError("chart is already initialized"));const r=L.createChart(t.type,t,this._getChartOption(t.type));r?(this._chart=r,this._chart.setCanvasRect(this._currentSize.width,this._currentSize.height),this._chart.created(),this._chart.init(),this._event.emit(ft.initialized,{chart:r,vchart:this})):(s=this._option)===null||s===void 0||s.onError("init chart fail")}_releaseData(){this._dataSet&&(this._dataSet.dataViewMap={},this._dataSet=null)}_bindVGrammarViewEvent(){this._compiler&&(this._compiler.getVGrammarView().addEventListener(ct.ALL_ANIMATION_END,()=>{this._event.emit(ft.animationFinished,{chart:this._chart,vchart:this})}),this._compiler.getVGrammarView().addEventListener(ct.AFTER_VRENDER_NEXT_RENDER,()=>{this._event.emit(ft.renderFinished,{chart:this._chart,vchart:this})}))}_bindResizeEvent(){var t;if(this._autoSize){if(this._container){const e=window.ResizeObserver;e&&(this._observer=new e(this._onResize),(t=this._observer)===null||t===void 0||t.observe(this._container))}window.addEventListener("resize",this._onResize)}}_unBindResizeEvent(){this._autoSize&&(window.removeEventListener("resize",this._onResize),this._observer&&(this._observer.disconnect(),this._observer=null))}getCurrentSize(){var t,e,i,s;return uL(this._spec,{container:this._container,canvas:this._canvas,mode:this._getMode(),modeParams:this._option.modeParams},{width:(e=(t=this._currentSize)===null||t===void 0?void 0:t.width)!==null&&e!==void 0?e:El,height:(s=(i=this._currentSize)===null||i===void 0?void 0:i.height)!==null&&s!==void 0?s:Rl})}_doResize(){const{width:t,height:e}=this.getCurrentSize();this._currentSize.width===t&&this._currentSize.height===e||(this._currentSize={width:t,height:e},this.resizeSync(t,e))}_initDataSet(t){this._dataSet=t instanceof Ra?t:new Ra,br(this._dataSet,"dataview",j_),br(this._dataSet,"array",AP),Tt(this._dataSet,"stackSplit",WZ),Tt(this._dataSet,"copyDataView",Dm);for(const e in L.transforms)Tt(this._dataSet,e,L.transforms[e]);for(const e in L.dataParser)br(this._dataSet,e,L.dataParser[e])}updateCustomConfigAndRerender(t,e,i={}){if(!this._isReleased&&t)return G(t)&&(t=t()),t.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._reCompile(t),e?this._renderSync(i):this._renderAsync(i)}_updateCustomConfigAndRecompile(t,e={}){return!!t&&(this._reCompile(t),this._beforeRender(e))}_reCompile(t,e){var i,s,r,a,o,l,h,d,c,u;if(t.reMake)this._releaseData(),this._initDataSet(),this._chartSpecTransformer=null,(i=this._chart)===null||i===void 0||i.release(),this._chart=null,t.changeTheme?(this._setCurrentTheme(),this._setFontFamilyTheme((s=this._currentTheme)===null||s===void 0?void 0:s.fontFamily)):t.changeBackground&&((r=this._compiler)===null||r===void 0||r.setBackground(this._getBackground())),(a=this._compiler)===null||a===void 0||a.releaseGrammar(((o=this._option)===null||o===void 0?void 0:o.animation)===!1||((l=this._spec)===null||l===void 0?void 0:l.animation)===!1),this._userEvents.forEach(p=>{var g;return(g=this._event)===null||g===void 0?void 0:g.on(p.eType,p.query,p.handler)}),t.reSize&&this._doResize();else if(t.changeTheme?(this._setCurrentTheme(),this._setFontFamilyTheme((h=this._currentTheme)===null||h===void 0?void 0:h.fontFamily)):t.changeBackground&&((d=this._compiler)===null||d===void 0||d.setBackground(this._getBackground())),t.reCompile&&((c=this._compiler)===null||c===void 0||c.clear({chart:this._chart,vChart:this},!this._option.animation||!this._spec.animation),(u=this._compiler)===null||u===void 0||u.compile({chart:this._chart,vChart:this},{})),t.reSize){const{width:p,height:g}=this.getCurrentSize();this._chart.onResize(p,g,!1),this._compiler.resize(p,g,!1)}}_beforeRender(t={}){var e,i,s,r,a,o,l,h;if(this._isReleased)return!1;if(this._chart)return!0;const{transformSpec:d,actionSource:c}=t;return d&&this._initChartSpec(this._spec,"render"),this._chartPluginApply("onBeforeInitChart",this._spec,c),(i=(e=this._option.performanceHook)===null||e===void 0?void 0:e.beforeInitializeChart)===null||i===void 0||i.call(e),this._initChart(this._spec),(r=(s=this._option.performanceHook)===null||s===void 0?void 0:s.afterInitializeChart)===null||r===void 0||r.call(s),!(!this._chart||!this._compiler)&&((o=(a=this._option.performanceHook)===null||a===void 0?void 0:a.beforeCompileToVGrammar)===null||o===void 0||o.call(a),this._compiler.compile({chart:this._chart,vChart:this},{performanceHook:this._option.performanceHook}),(h=(l=this._option.performanceHook)===null||l===void 0?void 0:l.afterCompileToVGrammar)===null||h===void 0||h.call(l),!0)}_afterRender(){return!this._isReleased&&(this._updateAnimateState(),this._event.emit(ft.rendered,{chart:this._chart,vchart:this}),!0)}renderSync(t){return this._renderSync({morphConfig:t,transformSpec:!0,actionSource:"render"})}renderAsync(t){return ls(this,void 0,void 0,function*(){return this._renderAsync({morphConfig:t,transformSpec:!0,actionSource:"render"})})}_renderSync(t={}){var e;const i=this;return this._beforeRender(t)&&((e=this._compiler)===null||e===void 0||e.render(t.morphConfig),this._afterRender()),i}_renderAsync(t={}){return ls(this,void 0,void 0,function*(){return this._renderSync(t)})}_updateAnimateState(t){var e,i;if(this._option.animation){const s=t?Ze.appear:Ze.update;(e=this._chart)===null||e===void 0||e.getAllRegions().forEach(r=>{var a;(a=r.animate)===null||a===void 0||a.updateAnimateState(s,!0)}),(i=this._chart)===null||i===void 0||i.getAllComponents().forEach(r=>{var a;(a=r.animate)===null||a===void 0||a.updateAnimateState(s,!0)})}}release(){var t,e,i,s;!((t=this._onResize)===null||t===void 0)&&t.cancel&&this._onResize.cancel(),this._chartPluginApply("releaseAll"),this._chartPlugin=null,this._chartSpecTransformer=null,(e=this._chart)===null||e===void 0||e.release(),(i=this._eventDispatcher)===null||i===void 0||i.release(),(s=this._compiler)===null||s===void 0||s.release(),this._unBindResizeEvent(),this._releaseData(),this._onError=null,this._onResize=null,this._container=null,this._currentTheme=null,this._option=null,this._chart=null,this._compiler=null,this._spec=null,this._specInfo=null,this._originalSpec=null,this._userEvents=null,this._event=null,this._eventDispatcher=null,this._isReleased=!0,Kn.unregisterInstance(this)}updateData(t,e,i,s){return ls(this,void 0,void 0,function*(){return this.updateDataSync(t,e,i,s)})}_updateDataById(t,e,i){const s=this._spec.data.find(r=>r.name===t||r.id===t);s?s.id===t?s.values=e:s.name===t&&s.parse(e,i):V(e)?this._spec.data.push({id:t,values:e}):this._spec.data.push(e)}updateDataInBatches(t){return ls(this,void 0,void 0,function*(){return this._chart?(this._chart.updateFullData(t.map(({id:e,data:i,options:s})=>({id:e,values:i,parser:s}))),this._chart.updateGlobalScaleDomain(),this._compiler.render(),this):(this._spec.data=H(this._spec.data),t.forEach(({id:e,data:i,options:s})=>{this._updateDataById(e,i,s)}),this)})}updateDataSync(t,e,i,s){return C(this._dataSet)?this:this._chart?(s!=null&&s.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._chart.updateData(t,e,!0,i),this._compiler.render(),this):(this._spec.data=H(this._spec.data),this._updateDataById(t,e,i),this)}updateFullDataSync(t,e=!0,i){if(this._chart)return i!=null&&i.reAnimate&&(this.stopAnimation(),this._updateAnimateState(!0)),this._chart.updateFullData(t),e&&this._compiler.render(),this;const s=H(this._spec.data);return H(t).forEach(r=>{var a;const{id:o,values:l,parser:h,fields:d}=r,c=s.find(u=>u.name===o);if(c)c instanceof Ut?(c.setFields(on(d)),c.parse(l,on(h))):(c.values=l,P(h)&&(c.parser=h),P(d)&&(c.fields=d));else{const u=fS(r,this._dataSet,s,{onError:(a=this._option)===null||a===void 0?void 0:a.onError});V(this._spec.data)&&this._spec.data.push(u)}}),this}updateFullData(t,e=!0){return ls(this,void 0,void 0,function*(){return this.updateFullDataSync(t,e)})}updateSpec(t,e=!1,i,s){return ls(this,void 0,void 0,function*(){const r=this._updateSpec(t,e,s);return r?(yield this.updateCustomConfigAndRerender(r,!1,{morphConfig:i,transformSpec:r.reTransformSpec,actionSource:"updateSpec"}),this):this})}updateSpecSync(t,e=!1,i,s){const r=this._updateSpec(t,e,s);return r?(this.updateCustomConfigAndRerender(r,!0,{morphConfig:i,transformSpec:r.reTransformSpec,actionSource:"updateSpec"}),this):this}updateSpecAndRecompile(t,e=!1,i={}){const s=this._updateSpec(t,e);return this._updateCustomConfigAndRecompile(s,Object.assign({actionSource:"updateSpecAndRecompile"},i))}_updateSpec(t,e=!1,i){var s,r;const a=this._spec,o={reTransformSpec:!1,change:!1,reMake:!1,reCompile:!1,reSize:!1,changeTheme:!1};if(!this._setNewSpec(t,e))return;ue(a.theme,this._spec.theme)?ue(this._spec.background,a.background)||(o.reMake=!0,o.changeBackground=!0):o.changeTheme=!0;const l=this._shouldChartResize(a);if(o.reSize=l,(r=(s=this._compiler)===null||s===void 0?void 0:s.getVGrammarView())===null||r===void 0||r.updateLayoutTag(),this._spec.type!==a.type)return o.reMake=!0,o.reTransformSpec=!0,o.change=!0,o;this._initChartSpec(this._spec,"render");const h=_l(this._chart.updateSpec(this._spec),o);return i?Object.assign(Object.assign({},h),i):h}updateModelSpec(t,e,i=!1,s){return ls(this,void 0,void 0,function*(){if(!e||!this._spec)return this;if(at(e)&&(e=JSON.parse(e)),G(t)||Ow(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!1,i,s)}return this})}updateModelSpecSync(t,e,i=!1,s){if(!e||!this._spec)return this;if(at(e)&&(e=JSON.parse(e)),G(t)||Ow(this._spec,t,e,i),this._chart){const r=this._chart.getModelInFilter(t);if(r)return this._updateModelSpec(r,e,!0,i,s)}return this}_updateModelSpec(t,e,i=!1,s=!1,r){s&&(e=vt({},t.getSpec(),e));const a=t.updateSpec(e);return t.reInit(e),(a.change||a.reCompile||a.reMake||a.reSize||a.reRender)&&this._chart.reDataFlow(),this.updateCustomConfigAndRerender(a,i,{morphConfig:r,transformSpec:!1,actionSource:"updateModelSpec"})}resize(t,e){return ls(this,void 0,void 0,function*(){return this.resizeSync(t,e)})}resizeSync(t,e){var i,s;return this._beforeResize(t,e)?((s=(i=this._compiler).resize)===null||s===void 0||s.call(i,t,e),this._afterResize()):this}_beforeResize(t,e){var i,s,r,a;if(!this._chart||!this._compiler)return!1;const o=this._chart.getCanvasRect();return(!o||o.width!==t||o.height!==e)&&(this._chartPluginApply("onBeforeResize",t,e),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.beforeResizeWithUpdate)===null||s===void 0||s.call(i),this._chart.onResize(t,e,!1),(a=(r=this._option.performanceHook)===null||r===void 0?void 0:r.afterResizeWithUpdate)===null||a===void 0||a.call(r),!0)}_afterResize(){return this._isReleased||this._event.emit(ft.afterResize,{chart:this._chart}),this}updateViewBox(t,e=!0,i=!0){return this._chart&&this._compiler?(this._viewBox=t,this._chart.updateViewBox(t,i),i&&(this._compiler.render(),this._chart.onEvaluateEnd()),this._compiler.updateViewBox(t,e),this):this}on(t,e,i){var s;this._userEvents&&(this._userEvents.push({eType:t,query:typeof e=="function"?null:e,handler:typeof e=="function"?e:i}),(s=this._event)===null||s===void 0||s.on(t,e,i))}off(t,e){var i;if(this._userEvents&&this._userEvents.length!==0)if(e){const s=this._userEvents.findIndex(r=>r.eType===t&&r.handler===e);s>=0&&(this._userEvents.splice(s,1),(i=this._event)===null||i===void 0||i.off(t,e))}else this._userEvents.forEach(s=>{var r;s.eType===t&&((r=this._event)===null||r===void 0||r.off(t,s.handler))}),this._userEvents=this._userEvents.filter(s=>s.eType!==t)}updateState(t,e){this._chart&&this._chart.updateState(t,e)}setSelected(t,e,i){this._chart&&this._chart.setSelected(t,e,i)}setHovered(t,e,i){this._chart&&this._chart.setHovered(t,e,i)}clearState(t){this._chart&&this._chart.clearState(t)}clearSelected(){this._chart&&this._chart.clearSelected()}clearHovered(){this._chart&&this._chart.clearHovered()}_updateCurrentTheme(t){var e,i;const s=this._option.theme,r=(e=this._spec)===null||e===void 0?void 0:e.theme;if(t&&(this._currentThemeName=t),_t(s)&&_t(r))this._currentTheme=Ur(this._currentThemeName,!0);else if(at(s)&&(!r||at(r))||at(r)&&(!s||at(s))){const a=Ib({},Ur(this._currentThemeName,!0),Ur(s,!0),Ur(r,!0));this._currentTheme=a}else{const a=Ib({},Ur(this._currentThemeName),Ur(s),Ur(r));this._currentTheme=Om(a)}y$(Pt(this._currentTheme,"component.poptip")),(i=this._compiler)===null||i===void 0||i.setBackground(this._getBackground())}_shouldChartResize(t){var e,i;let s=!1;C(this._spec.width)?!C(t.width)&&(this._spec.width=t.width):this._spec.width!==t.width&&(s=!0),C(this._spec.height)?!C(t.height)&&(this._spec.height=t.height):this._spec.height!==t.height&&(s=!0);const r=this._autoSize;return this._autoSize=!!zn(this._option.mode)&&((i=(e=this._spec.autoFit)!==null&&e!==void 0?e:this._option.autoFit)===null||i===void 0||i),this._autoSize!==r&&(s=!0),s}_getBackground(){return(typeof this._spec.background=="string"||Ct(this._spec.background)&&this._spec.background.gradient?this._spec.background:null)||this._currentTheme.background||this._option.background}getCurrentTheme(){return Ur(this._currentThemeName)}getCurrentThemeName(){return this._currentThemeName}setCurrentTheme(t){var e;return ls(this,void 0,void 0,function*(){if(!nn.themeExist(t))return this;const i=this._setCurrentTheme(t);return this._setFontFamilyTheme((e=this._currentTheme)===null||e===void 0?void 0:e.fontFamily),yield this.updateCustomConfigAndRerender(i,!1,{transformSpec:!1,actionSource:"setCurrentTheme"}),this})}setCurrentThemeSync(t){var e;if(!nn.themeExist(t))return this;const i=this._setCurrentTheme(t);return this._setFontFamilyTheme((e=this._currentTheme)===null||e===void 0?void 0:e.fontFamily),this.updateCustomConfigAndRerender(i,!0,{transformSpec:!1,actionSource:"setCurrentTheme"}),this}_setCurrentTheme(t){var e;return this._updateCurrentTheme(t),this._initChartSpec(this._getSpecFromOriginalSpec(),"setCurrentTheme"),(e=this._chart)===null||e===void 0||e.setCurrentTheme(),{change:!0,reMake:!1}}_setFontFamilyTheme(t){var e;t&&((e=this.getStage())===null||e===void 0||e.setTheme({text:{fontFamily:t}}))}_getTooltipComponent(){var t;return(t=this._chart)===null||t===void 0?void 0:t.getComponentsByType(U.tooltip)[0]}setTooltipHandler(t){var e,i;this._context.tooltipHandler=t;const s=this._getTooltipComponent();s&&((i=(e=s.tooltipHandler)===null||e===void 0?void 0:e.release)===null||i===void 0||i.call(e),s.tooltipHandler=t)}getTooltipHandlerByUser(){var t;return(t=this._context)===null||t===void 0?void 0:t.tooltipHandler}getTooltipHandler(){const t=this._getTooltipComponent();return t?t.tooltipHandler:this._context.tooltipHandler}showTooltip(t,e){var i;const s=this._getTooltipComponent();return(i=P(t)&&(s==null?void 0:s.showTooltip(t,e))!=="none")!==null&&i!==void 0&&i}hideTooltip(){var t;const e=this._getTooltipComponent();return(t=e==null?void 0:e.hideTooltip())!==null&&t!==void 0&&t}getLegendDataById(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentByUserId(t);return i?i.getLegendData():[]}getLegendDataByIndex(t=0){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentsByType(U.discreteLegend);return i&&i[t]?i[t].getLegendData():[]}getLegendSelectedDataById(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentByUserId(t);return i?i.getSelectedData():[]}getLegendSelectedDataByIndex(t=0){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getComponentsByType(U.discreteLegend);return i&&i[t]?i[t].getSelectedData():[]}setLegendSelectedDataById(t,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentByUserId(t);s&&s.setSelectedData(e)}setLegendSelectedDataByIndex(t=0,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentsByType(U.discreteLegend);s&&s[t]&&s[t].setSelectedData(e)}getDataURL(){var t;return ls(this,void 0,void 0,function*(){const e=this.getStage();if(this._chart&&e){e.render();const i=this._chart.getCanvas();return yield XZ(i,{onError:this._onError})}return(t=this._option)===null||t===void 0||t.onError(new ReferenceError("render is not defined")),null})}exportImg(t){var e,i;return ls(this,void 0,void 0,function*(){if(!zn(this._option.mode))return void((e=this._option)===null||e===void 0||e.onError(new TypeError("non-browser environment can not export img")));const s=yield this.getDataURL();s?$Z(t,s):(i=this._option)===null||i===void 0||i.onError(new ReferenceError("render is not defined"))})}exportCanvas(){var t;const e=this.getStage();if(this._chart&&e)return e.toCanvas();(t=this._option)===null||t===void 0||t.onError(new ReferenceError("render is not defined"))}getImageBuffer(){var t,e;if(this._option.mode!=="node")return void((t=this._option)===null||t===void 0||t.onError(new TypeError("getImageBuffer() now only support node environment.")));const i=this.getStage();return i?(i.render(),i.window.getImageBuffer()):((e=this._option)===null||e===void 0||e.onError(new ReferenceError("render is not defined")),null)}setLayout(t){var e;this._option.layout=t,(e=this._chart)===null||e===void 0||e.setLayout(t)}reLayout(){var t;(t=this._chart)===null||t===void 0||t.setLayoutTag(!0)}getCompiler(){return this._compiler}getChart(){return this._chart}getStage(){return this._compiler.getStage()}getCanvas(){var t;return(t=this._compiler)===null||t===void 0?void 0:t.getCanvas()}getContainer(){var t;if(P(this._container))return this._container;let e;return e=at(this._canvas)?Rt.getElementById(this._canvas):this._canvas,P(e)?e.parentElement:(t=this.getCanvas())===null||t===void 0?void 0:t.parentElement}getComponents(){return this._chart.getAllComponents()}getScale(t){var e;const i=(e=this._chart)===null||e===void 0?void 0:e.getGlobalScale();return i==null?void 0:i.getScale(t)}setDimensionIndex(t,e={}){var i;return(i=this._chart)===null||i===void 0?void 0:i.setDimensionIndex(t,e)}stopAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.stop()}pauseAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.pause()}resumeAnimation(){var t,e,i;(i=(e=(t=this._compiler)===null||t===void 0?void 0:t.getVGrammarView())===null||e===void 0?void 0:e.animate)===null||i===void 0||i.resume()}convertDatumToPosition(t,e={},i=!1,s){var r;if(!this._chart||_t(t))return null;const{seriesId:a,seriesIndex:o=0}=e;let l;if(P(a)?l=this._chart.getSeriesInUserId(a):P(o)&&(l=(r=this._chart.getSeriesInIndex([o]))===null||r===void 0?void 0:r[0]),l){const h=Object.keys(t),d=l.getViewData().latestData.find(p=>h.every(g=>p[g]==t[g])),c=l.getRegion().getLayoutStartPoint();let u;return u=d?l.dataToPosition(d,s):l.dataToPosition(t,s),u?Mw(u,c,i):null}return null}convertValueToPosition(t,e,i=!1){var s,r;if(!this._chart||C(t)||_t(e))return null;if(!V(t)){const{axisId:h,axisIndex:d}=e;let c;if(P(h)?c=this._chart.getComponentsByKey("axes").find(p=>p.userId===h):P(d)&&(c=(s=this._chart.getComponentsByKey("axes"))===null||s===void 0?void 0:s[d]),!c)return Us("Please check whether the `axisId` or `axisIndex` is set!"),null;const u=c==null?void 0:c.valueToPosition(t);if(i){const p=c.getLayoutStartPoint(),g=c.getOrient();return u+(g==="bottom"||g==="top"?p.x:p.y)}return u}const{seriesId:a,seriesIndex:o}=e;let l;return P(a)?l=this._chart.getSeriesInUserId(a):P(o)&&(l=(r=this._chart.getSeriesInIndex([o]))===null||r===void 0?void 0:r[0]),l?Mw(l.valueToPosition(t[0],t[1]),l.getRegion().getLayoutStartPoint(),i):(Us("Please check whether the `seriesId` or `seriesIndex` is set!"),null)}getFunction(t){return On.instance().getFunction(t)}registerFunction(t,e){t&&e&&On.instance().registerFunction(t,e)}unregisterFunction(t){t&&On.instance().unregisterFunction(t)}getFunctionList(){return On.instance().getFunctionNameList()}setRuntimeSpec(t){this._spec=t,this._updateSpecInfo()}updateIndicatorDataById(t,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentByUserId(t);s&&s.updateDatum(e)}updateIndicatorDataByIndex(t=0,e){var i;const s=(i=this._chart)===null||i===void 0?void 0:i.getComponentsByType(U.indicator);s&&s[t]&&s[t].updateDatum(e)}geoZoomByIndex(t=0,e,i){var s,r;const a=(s=this._chart)===null||s===void 0?void 0:s.getRegionsInQuerier({regionIndex:t})[0],o=(r=this._chart)===null||r===void 0?void 0:r.getComponentsByType(U.geoCoordinate),l=o==null?void 0:o.find(h=>{var d;return(d=h.getRegions())===null||d===void 0?void 0:d.includes(a)});l&&l.dispatchZoom(e,i)}geoZoomById(t,e,i){var s,r;const a=(s=this._chart)===null||s===void 0?void 0:s.getRegionsInQuerier({regionId:t})[0],o=(r=this._chart)===null||r===void 0?void 0:r.getComponentsByType(U.geoCoordinate),l=o==null?void 0:o.find(h=>{var d;return(d=h.getRegions())===null||d===void 0?void 0:d.includes(a)});l&&l.dispatchZoom(e,i)}_initChartPlugin(){const t=L.getChartPlugins();t.length>0&&(this._chartPlugin=new AJ(this),this._chartPlugin.load(t.map(e=>new e)),this._chartPluginApply("onInit",this._spec))}_chartPluginApply(t,...e){this._chartPlugin&&this._chartPlugin[t]&&this._chartPlugin[t].apply(this._chartPlugin,e)}_getMode(){return this._option.mode||Ke["desktop-browser"]}_getChartOption(t){return{type:t,globalInstance:this,eventDispatcher:this._eventDispatcher,dataSet:this._dataSet,container:this._container,canvas:this._canvas,map:new Map,mode:this._getMode(),modeParams:this._option.modeParams,getCompiler:()=>this._compiler,performanceHook:this._option.performanceHook,viewBox:this._viewBox,animation:this._option.animation,getTheme:()=>{var e;return(e=this._currentTheme)!==null&&e!==void 0?e:{}},getSpecInfo:()=>{var e;return(e=this._specInfo)!==null&&e!==void 0?e:{}},layout:this._option.layout,onError:this._onError,disableTriggerEvent:this._option.disableTriggerEvent===!0}}}hi.InstanceManager=Kn,hi.ThemeManager=nn,hi.globalConfig={uniqueTooltip:!0},hi.Utils=bJ,hi.vglobal=Rt;L.registerRegion("region",Yl),L.registerLayout("base",yS),SL(),Zo.useRegisters([x9,S9]),yJ(),qX(),KX(),gS(Iw.name,Iw),Lt.getInstance(Bn.Error);class xS{constructor(t){this.id=Xo(),this.name=`${t}_${this.id}`}onAdd(t){this.service=t}release(){this.service=null}}const TJ=n=>{L.registerChartPlugin(n.type,n)},MJ=/\{([^}]+)\}/,wJ=/\{([^}]+)\}/g,CJ=/:/;class _o extends xS{constructor(){super(_o.type),this.type="formatterPlugin",this._timeModeFormat={utc:gs.getInstance().timeUTCFormat,local:gs.getInstance().timeFormat},this._formatter=this._format,this._timeFormatter=this._timeModeFormat.local,this._numericFormatter=io.getInstance().format,this._numericSpecifier=io.getInstance().formatter,this._numericFormatterCache=new Map,this._isNumericFormatterCache=new Map}onInit(t,e){var i;const{globalInstance:s}=t;if(!s)return;this._spec=(i=e==null?void 0:e[_o.specKey])!==null&&i!==void 0?i:{};const{timeMode:r,customFormatter:a,numericFormatter:o,timeFormatter:l}=this._spec;G(a)?this._formatter=a:(this._formatter=this._format.bind(this),G(l)?this._timeFormatter=l:r&&this._timeModeFormat[r]&&(this._timeFormatter=this._timeModeFormat[r]),o&&(this._numericFormatter=o,this._numericSpecifier=null,this._numericFormatterCache=null)),L.registerFormatter(this._formatter)}_format(t,e,i){return V(t)?t.map((s,r)=>{const a=V(i)?i[r]:i;return a?this._formatSingleLine(s,e,a):s}):V(i)?i.map(s=>this._formatSingleLine(t,e,s)):this._formatSingleLine(t,e,i)}_formatSingleLine(t,e,i){let s;return this._isNumericFormatterCache&&(this._isNumericFormatterCache.get(i)?s=this._isNumericFormatterCache.get(i):(s=MJ.test(i),this._isNumericFormatterCache.set(i,s))),s?i.replace(wJ,(r,a)=>{if(!CJ.test(a)){const d=e[a.trim()];return d!==void 0?d:r}const o=a.split(":"),l=e[o.shift()],h=o.join(":");return this._formatSingleText(l,h)}):this._formatSingleText(t,i)}_formatSingleText(t,e){if(UP.test(e)&&this._numericFormatter){let i;return this._numericFormatterCache&&this._numericSpecifier?(this._numericFormatterCache.get(e)?i=this._numericFormatterCache.get(e):(i=this._numericSpecifier(e),this._numericFormatterCache.set(e,i)),i(Number(t))):this._numericFormatter(e,Number(t))}return e.includes("%")&&this._timeFormatter?this._timeFormatter(e,t):t}release(){super.release(),this._format=null,this._timeFormatter=null,this._numericFormatter=null,this._numericSpecifier=null,this._numericFormatterCache=null,this._isNumericFormatterCache=null}}_o.pluginType="chart",_o.specKey="formatter",_o.type="formatterPlugin";const PJ=()=>{TJ(_o)};function Gw(n){return n.length===2&&z(n[0])&&z(n[1])&&n[1]>=n[0]}function Uw(n,t){const e=t[1]-t[0],i=t[1]*t[0]<0;let s=t[0]<=0?0-t[0]:0,r=t[1]>0?t[1]-0:0;e===0?t[0]<0?(s=1,r=0):t[0]>0&&(s=0,r=1):(s/=e,r/=e);const a=n.getDomainSpec();return{total:e,negative:s,positive:r,includeZero:i,domain:t,extendable_min:!z(a.min),extendable_max:!z(a.max)}}function $w(n,t){const{positive:e,negative:i,extendable_min:s,extendable_max:r,domain:a}=n,{positive:o,negative:l,extendable_min:h,extendable_max:d,domain:c}=t;if(o>0){if(!h)return!1;let u=i/e;r&&(u=i/Math.max(e,o),a[1]=-a[0]/u),c[0]=-c[1]*u}else if(l>0){if(!d)return!1;let u=e/i;s&&(u=e/Math.max(i,i),a[0]=-a[1]/u),c[1]=-c[0]*u}return!0}function Yw(n,t){const{extendable_min:e,extendable_max:i,domain:s}=n,{positive:r,negative:a,domain:o}=t;return(r!==0||a!==0)&&!(r>0&&!i)&&!(a>0&&!e)&&(s[0]=o[0],s[1]=o[1],!0)}function Xw(n,t){const{positive:e,negative:i,extendable_max:s,domain:r}=n,{positive:a,negative:o,extendable_min:l,domain:h}=t;if(s&&l){const d=Math.max(i,o)/Math.max(e,a);r[1]=-r[0]/d,h[0]=-h[1]*d}else if(l){const d=i/e;h[0]=-h[1]*d}else{if(!s)return!1;{const d=o/a;r[1]=-r[0]/d}}return!0}function Kw(n,t){const{extendable_min:e,domain:i}=n,{extendable_max:s,domain:r}=t;return!(!e||!s)&&(i[0]=-i[1],r[1]=-r[0],!0)}const EJ=(n,t)=>{var e,i,s,r,a,o;const l=n.getScale(),h=t.getScale();if(!l||!h)return;const d=(s=(i=(e=n).getDomainAfterSpec)===null||i===void 0?void 0:i.call(e))!==null&&s!==void 0?s:[0,1],c=(o=(a=(r=t).getDomainAfterSpec)===null||a===void 0?void 0:a.call(r))!==null&&o!==void 0?o:[0,1];if(!(d&&c&&Gw(d)&&Gw(c)))return;const u=Uw(n,d),p=Uw(t,c),{positive:g,negative:f,extendable_min:_,extendable_max:m,includeZero:y}=u,{positive:b,negative:v,extendable_min:x,extendable_max:S,includeZero:k}=p;if(g===0&&f===0){if(!Yw(u,p))return}else if(b===0&&v===0){if(!Yw(p,u))return}else if(y||k)if(y&&!k){if(!$w(u,p))return}else if(k&&!y){if(!$w(p,u))return}else{if(f===v)return;if(f>v){if(!Xw(u,p))return}else if(!Xw(p,u))return}else{if(f===0&&b===0){if(!Kw(u,p))return}else if(v===0&&g===0&&!Kw(p,u))return;if(f===0&&v===0)if(d[0]===0&&c[0]>0){if(!x)return;c[0]=0}else{if(!(c[0]===0&&d[0]>0)||!_)return;d[0]=0}if(g===0&&b===0)if(d[1]===0&&c[1]>0){if(!S)return;c[1]=0}else{if(!(c[1]===0&&d[1]>0)||!m)return;d[1]=0}}l.domain(d),h.domain(c)},RJ=(n,t)=>{var e,i,s,r,a;if(!n)return n;const o=(e=t==null?void 0:t.targetAxis)===null||e===void 0?void 0:e.call(t);if(!o)return n;const l=(i=t==null?void 0:t.currentAxis)===null||i===void 0?void 0:i.call(t);if(!l)return n;const h=(s=l.getTickData())===null||s===void 0?void 0:s.getDataView();if(!h||!h.transformsArr.find(y=>y.type==="ticks"))return n;const d=l.getScale();if(!d)return n;const c=(a=(r=o.getTickData())===null||r===void 0?void 0:r.getDataView())===null||a===void 0?void 0:a.latestData;if(!(c!=null&&c.length))return n;const u=o.getScale();if(!u)return n;const p=u.domain(),g=p[1]-p[0];if(g===0)return n;const f=d.domain(),_=f[1]-f[0];if(g===0)return n;const m=c.map(y=>{const b=(y.value-p[0])/g;return _*b+f[0]});return Gs(m)};class Uc extends xS{constructor(){super(Uc.type),this.type="AxisSyncPlugin"}_checkEnableSync(t){if(!ie(t.getScale().type))return!1;const e=t.getSpec().sync;return!!(e!=null&&e.axisId)&&e}_getTargetAxis(t,e){const i=t.getOption().getChart().getComponentByUserId(e.axisId);return i!=null&&i.type.startsWith("cartesianAxis")?i:null}onInit(t,e){const i=this._checkEnableSync(e);if(!i||!i.zeroAlign)return;const s=this._getTargetAxis(e,i);s&&e.event.on(ft.scaleDomainUpdate,{filter:({model:r})=>r.id===e.id||r.id===s.id},()=>{EJ(s,e)})}onDidCompile(t,e){const i=this._checkEnableSync(e);if(!i)return;const s=this._getTargetAxis(e,i);if(s&&i.tickAlign){Tt(e.getOption().dataSet,"tickAlign",RJ);const r={targetAxis:()=>s,currentAxis:()=>e};e.addTransformToTickData({type:"tickAlign",options:r,level:Number.MAX_SAFE_INTEGER},!1)}}}Uc.pluginType="component",Uc.type="AxisSyncPlugin";function BJ(n){return String(n).replace(/&/g,"&").replace(//g,">").replace(/\(/g,"(").replace(/ /g,"  ")}const kp=(n,t)=>n?(t||(t=n.getBoundingClientRect()),n.offsetWidth>0?t.width/n.offsetWidth:t.height/n.offsetHeight):1,rv=(n,t)=>{var e;let i,s;(n==null?void 0:n.type)!=="rich"&&(n==null?void 0:n.type)!=="html"?(n=(n??"").toString(),t.multiLine?(i=n.split(` +`),i=i.map((a,o)=>oObject.assign(Object.assign({},t),{text:a}))):(s=n.text,i=n);const r=vW({wordBreak:(e=t.wordBreak)!==null&&e!==void 0?e:"break-word",maxWidth:t.maxWidth?t.maxWidth:void 0,width:0,height:0,textConfig:s});return{width:r.width(),height:r.height(),text:i}},qw="vchart-tooltip-container",Zw="",av={offsetX:10,offsetY:10,sanitize:BJ};function yn(n,t){return Pt(t,`component.${n}`)}function Rr(n,t,e,i){if(n)return{formatFunc:n,args:[e,i]};const s=L.getFormatter();return t&&s?{formatFunc:s,args:[e,i,t]}:{}}const IJ={left:{textAlign:"center",textBaseline:"bottom"},right:{textAlign:"center",textBaseline:"bottom"},radius:{},angle:{}};function OJ(n){return(n=ps(n)).startSymbol=ps(n.startSymbol),n.endSymbol=ps(n.endSymbol),n}function $c(n){let t=0;return Pt(n,"tick.visible")&&(t+=Pt(n,"tick.tickSize")),Pt(n,"label.visible")&&(t+=Pt(n,"label.space")),t}function Yc(n,t){var e,i,s,r,a,o;return{min:(s=(e=n.min)!==null&&e!==void 0?e:(i=n.range)===null||i===void 0?void 0:i.min)!==null&&s!==void 0?s:t==null?void 0:t.min,max:(o=(r=n.max)!==null&&r!==void 0?r:(a=n.range)===null||a===void 0?void 0:a.max)!==null&&o!==void 0?o:t==null?void 0:t.max}}function Jw(n){const t=n==null?void 0:n.orient;return t==="top"||t==="bottom"||t==="left"||t==="right"||t==="z"}function Qw(n){const t=n==null?void 0:n.orient;return t==="angle"||t==="radius"}const Xh=(n,t,e)=>{var i;const s=(i=t==="band"?yn("axisBand",e):["linear","log","symlog"].includes(t)?yn("axisLinear",e):{})!==null&&i!==void 0?i:{},r=ke(n)?yn("axisX",e):Ds(n)?yn("axisY",e):yn("axisZ",e);return vt({},yn("axis",e),s,r)},ov=(n,t,e)=>{var i;const s=(i=t==="band"?yn("axisBand",e):t==="linear"?yn("axisLinear",e):{})!==null&&i!==void 0?i:{},r=yn(n==="angle"?"axisAngle":"axisRadius",e);return vt({},yn("axis",e),s,r)},EL=n=>n==="band"||n==="ordinal"||n==="point";function ph(n,t){return{id:n,label:n,value:t,rawValue:n}}function RL(n,t){const{x1:e,y1:i,x2:s,y2:r}=t,{x1:a,y1:o,x2:l,y2:h}=n.AABBBounds,{dx:d=0,dy:c=0}=n.attribute;let u=0,p=0;as&&(u=s-l),h>r&&(p=r-h),u&&n.setAttribute("dx",u+d),p&&n.setAttribute("dy",p+c)}function tC(n,t,e,i){for(let s=0,r=n.length;s=t)return a}}return null}const LJ=(n,t)=>{var e,i;const s=H((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,xField:o,yField:l}=(i=yn(U.crosshair,n))!==null&&i!==void 0?i:{},h=s.find(p=>ke(p.orient));let d;d=P(h)?vt({},EL(h.type)?r:a,o):o;const c=s.find(p=>Ds(p.orient));let u;return u=P(c)?vt({},vi(c.type)?r:a,l):l,{xField:d,yField:u}},DJ=(n,t)=>{var e,i;const s=H((e=t.axes)!==null&&e!==void 0?e:[]),{bandField:r,linearField:a,categoryField:o,valueField:l}=(i=yn(U.crosshair,n))!==null&&i!==void 0?i:{},h=s.find(p=>p.orient==="angle");let d;d=P(h)?vt({},EL(h.type)?r:a,o):o;const c=s.find(p=>p.orient==="radius");let u;return u=P(c)?vt({},vi(c.type)?r:a,l):l,{categoryField:d,valueField:u}},BL=(n=3,t,e,i,s,r,a,o=!1,l,h)=>{const d=1&n,c=2&n;e||(e={x:0,y:0});let u=null,p=null,g=0,f=0;if(i.size){const M=Array.from(i.values())[0];g=M.axis.getScale().scale(M.value)+M.axis.getLayoutStartPoint().x-e.x,u=M.axis}if(s.size){const M=Array.from(s.values())[0];f=M.axis.getScale().scale(M.value)+M.axis.getLayoutStartPoint().y-e.y,p=M.axis}const _=!!i.size&&Number.isFinite(g),m=!!s.size&&Number.isFinite(f),y=o&&!_&&P(l),b=o&&!m&&P(h);let v,x,S;d&&(v=y?l:{height:0,leftPos:0,rightPos:0,topPos:0,x:0,bottom:{visible:!1,text:"",dx:0,dy:0},top:{visible:!1,text:"",dx:0,dy:0},visible:_,axis:u}),c&&(x=b?h:{width:0,leftPos:0,topPos:0,bottomPos:0,y:0,left:{visible:!1,text:"",dx:0,dy:0},right:{visible:!1,text:"",dx:0,dy:0},visible:m,axis:p});let k,A=0,T=0;if(r&&i.forEach(({axis:M,value:w})=>{var E;w=w??"";let R=null;const O=M.getScale();if(vi(O.type))S=O.bandwidth(),S===0&&O.step&&(A=O.step());else if(ie(O.type)){const B=t.fieldX[0],I=t.fieldX2,D=tC(t.getViewData().latestData,+w,B,I);if(D){const F=t.dataToPositionX(D);I?(S=Math.abs(F-t.dataToPositionX1(D)),w=`${D[B]} ~ ${D[I]}`):S=1,g=F}R=M.niceLabelFormatter}if(v&&(!((E=r.label)===null||E===void 0)&&E.visible)&&!y){const B=$c(M.getSpec());M.getOrient()==="bottom"?(v.bottom.visible=!0,v.bottom.defaultFormatter=R,v.bottom.text=w,v.bottom.dx=0,v.bottom.dy=B):M.getOrient()==="top"&&(v.top.visible=!0,v.top.defaultFormatter=R,v.top.text=w,v.top.dx=0,v.top.dy=-B)}}),a&&s.forEach(({axis:M,value:w})=>{var E;w=w??"";let R=null;const O=M.getScale();if(vi(O.type))k=O.bandwidth(),k===0&&O.step&&(T=O.step());else if(ie(O.type)){const B=t.fieldY[0],I=t.fieldY2,D=tC(t.getViewData().latestData,+w,B,I);if(D){const F=t.dataToPositionY(D);I?(k=Math.abs(F-t.dataToPositionY1(D)),w=`${D[B]} ~ ${D[I]}`):k=1,f=F}R=M.niceLabelFormatter}if(x&&(!((E=a.label)===null||E===void 0)&&E.visible)&&!b){const B=$c(M.getSpec());M.getOrient()==="left"?(x.left.visible=!0,x.left.defaultFormatter=R,x.left.text=w,x.left.dx=-B,x.left.dy=0):M.getOrient()==="right"&&(x.right.visible=!0,x.right.defaultFormatter=R,x.right.text=w,x.right.dx=B,x.right.dy=0)}}),v&&!y){const M={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(eC(M,i),v.leftPos=M.x1,v.rightPos=M.x2,v.topPos=M.y1,v.height=M.y2-M.y1,v.x=g+e.x,r&&r.label){const{top:w,bottom:E}=v;w.visible&&Tp(w,"top",r.label),E.visible&&Tp(E,"bottom",r.label)}}if(x&&!b){const M={x1:1/0,y1:1/0,x2:-1/0,y2:-1/0};if(eC(M,s),x.leftPos=M.x1,x.topPos=M.y1,x.bottomPos=M.y2,x.width=M.x2-M.x1,x.y=f+e.y,a&&a.label){const{left:w,right:E}=x;w.visible&&Tp(w,"left",a.label),E.visible&&Tp(E,"right",a.label)}}return{x:d&&v?v:void 0,y:c&&x?x:void 0,offsetWidth:A,offsetHeight:T,bandWidth:S??0,bandHeight:k??0}},Tp=(n,t,e)=>{const{formatMethod:i,formatter:s}=e,{formatFunc:r,args:a}=Rr(i,s,n.text,{label:n.text,position:t});r?n.text=r(...a):n.defaultFormatter&&(n.text=n.defaultFormatter(n.text))},eC=(n,t)=>{t.forEach(({axis:e})=>{e.getRegions().forEach(i=>{n.x1=Math.min(n.x1,i.getLayoutStartPoint().x),n.y1=Math.min(n.y1,i.getLayoutStartPoint().y),n.x2=Math.max(n.x2,i.getLayoutStartPoint().x+i.getLayoutRect().width),n.y2=Math.max(n.y2,i.getLayoutStartPoint().y+i.getLayoutRect().height)})})},IL=(n,t,e,i)=>{const{x:s,topPos:r,height:a}=t,o=n.type;let l;if(o==="line")l={visible:!0,start:{x:s+e/2,y:r},end:{x:s+e/2,y:r+a}};else if(o==="rect"){const h=LL(n,e,t.axis),{leftPos:d,rightPos:c}=t;l={visible:!0,start:{x:Math.max(s-h/2-i/2,d),y:r},end:{x:Math.min(s+e+h/2+i/2,c),y:r+a}}}return l},OL=(n,t,e,i)=>{const{leftPos:s,width:r,y:a}=t,o=n.type;let l;if(o==="line")l={visible:!0,start:{x:s,y:a+e/2},end:{x:s+r,y:a+e/2}};else if(o==="rect"){const h=LL(n,e,t.axis),{topPos:d,bottomPos:c}=t;l={visible:!0,start:{x:s,y:Math.max(a-h/2-i/2,d)},end:{x:s+r,y:Math.min(a+e+h/2+i/2,c)}}}return l},LL=(n,t,e)=>{var i,s,r;let a=0;if(!((i=n.style)===null||i===void 0)&&i.sizePercent)a=(n.style.sizePercent-1)*t;else if(typeof((s=n.style)===null||s===void 0?void 0:s.size)=="number")a=n.style.size-t;else if(typeof((r=n.style)===null||r===void 0?void 0:r.size)=="function"){const o=e.getLayoutRect();a=n.style.size(o,e)-t}return a},al=(n,t)=>{let e;if(P(n)){if(nt(n))e=n;else if(G(n)){const i=n(t);nt(i)&&(e=i)}}return e},DL={left:["left","center"],right:["right","center"],top:["center","top"],lt:["left","top"],tl:["left","top"],rt:["right","top"],tr:["right","top"],bottom:["center","bottom"],bl:["left","bottom"],lb:["left","bottom"],br:["right","bottom"],rb:["right","bottom"],inside:["center","center"],center:["center","center"],centerBottom:["center","centerBottom"],centerTop:["center","centerTop"],centerLeft:["centerLeft","center"],centerRight:["centerRight","center"]},Kh=(n,t)=>{var e,i;return(i=(e=DL[n])===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:t},qh=(n,t)=>{var e,i;return(i=(e=DL[n])===null||e===void 0?void 0:e[1])!==null&&i!==void 0?i:t},iC=(n,t,e)=>{const i=new Map,s=new Map;n.forEach(({axis:p,value:g})=>{["top","bottom"].includes(p.getOrient())?i.set(p.getSpecIndex(),{value:g,axis:p}):s.set(p.getSpecIndex(),{value:g,axis:p})});const r={visible:!!i.size,type:"rect"},a={visible:!!s.size,type:"rect"},{x:o,y:l,offsetWidth:h,offsetHeight:d,bandWidth:c,bandHeight:u}=BL(3,t,e,i,s,r,a);return o?IL(r,o,c,h):l?OL(a,l,u,d):void 0},FJ=n=>Ct(n)&&(P(n.left)||P(n.right)||P(n.top)||P(n.bottom)),zJ=n=>Ct(n)&&(P(n.x)||P(n.y)),jJ={fontFamily:Uf.fontFamily,spacing:10,wordBreak:"break-word"};function ol(n={},t,e){var i,s;return Object.assign(Object.assign({},e??jJ),{fill:(i=n.fill)!==null&&i!==void 0?i:n.fontColor,textAlign:n.textAlign,textBaseline:n.textBaseline,fontFamily:(s=n.fontFamily)!==null&&s!==void 0?s:t==null?void 0:t.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,spacing:n.spacing,multiLine:n.multiLine,maxWidth:n.maxWidth,wordBreak:n.wordBreak,autoWidth:n.autoWidth})}const HJ=n=>{var t;const{backgroundColor:e,border:i,shadow:s}=n,r={lineWidth:(t=i==null?void 0:i.width)!==null&&t!==void 0?t:0,shadow:!!s};i!=null&&i.color&&(r.stroke=i.color),e&&(r.fill=e),s&&(r.shadowColor=s.color,r.shadowBlur=s.blur,r.shadowOffsetX=s.x,r.shadowOffsetY=s.y,r.shadowSpread=s.spread);const{radius:a}=i??{};return P(a)&&(r.cornerRadius=[a,a,a,a]),r},VJ=(n,t,e)=>{var i,s,r,a,o;const{style:l={},enterable:h,transitionDuration:d}=t,{panel:c={},titleLabel:u,shape:p,keyLabel:g,valueLabel:f,spaceRow:_,maxContentHeight:m,align:y}=l,b=ln(c.padding),v=Pr(c.padding),x=ol(Object.assign({textAlign:y==="right"?"right":"left"},u),e),S=ol(Object.assign({textAlign:y==="right"?"right":"left"},g),e),k=ol(f,e),A={fill:!0,size:(i=p==null?void 0:p.size)!==null&&i!==void 0?i:8,spacing:(s=p==null?void 0:p.spacing)!==null&&s!==void 0?s:6},T={panel:HJ(c),padding:b,title:{},content:[],titleStyle:{value:x,spaceRow:_},contentStyle:{shape:A,key:S,value:k,spaceRow:_},hasContentShape:!1,keyWidth:0,valueWidth:0,maxContentHeight:m,enterable:h,transitionDuration:d,align:y},{title:M={},content:w=[]}=n;let E=v.left+v.right,R=v.top+v.bottom,O=v.top+v.bottom,B=0;const I=w.filter(bt=>(bt.key||bt.value)&&bt.visible!==!1),D=!!I.length;let F=0,$=0,K=0,W=0;if(D){const bt=[],lt=[],mt=[],xt=[];let Bt=0;T.content=I.map((At,ri)=>{let Qt=0;const{hasShape:pi,key:Me,shapeType:ai="",shapeFill:Fi,shapeStroke:yi,shapeLineWidth:Zs,shapeSize:Hr,value:Ga,isKeyAdaptive:pe,spaceRow:Se,keyStyle:Mi,valueStyle:te,shapeHollow:ve,shapeColor:bi}=At,Cn={height:0,spaceRow:Se??_};if(P(Me)){const ei=vt({},S,ol(Mi,void 0,{})),{width:Ie,height:zi,text:l0}=rv(Me,ei);Cn.key=Object.assign(Object.assign({width:Ie,height:zi},ei),{text:l0}),pe?lt.push(Ie):bt.push(Ie),Qt=Math.max(Qt,zi)}if(P(Ga)){const ei=vt({},k,ol(te,void 0,{})),{width:Ie,height:zi,text:l0}=rv(Ga,ei);Cn.value=Object.assign(Object.assign({width:Ie,height:zi},ei),{text:l0}),mt.push(Ie),Qt=Math.max(Qt,zi)}if(pi){const ei={visible:!0,symbolType:ai},Ie=Fi??bi;ve?ei.stroke=Ie:ei.fill=Ie,ei.stroke=yi??Ie,ei.lineWidth=Zs,Cn.shape=ei;const zi=Hr??A.size;Qt=Math.max(zi,Qt),xt.push(zi)}else Cn.shape={visible:!1};return Cn.height=Qt,Bt+=Qt,riot.autoWidth&&ot.multiLine!==!1;if(J){ot=vt({},x,ol(q,void 0,{})),ut()&&(ot.multiLine=(r=ot.multiLine)===null||r===void 0||r,ot.maxWidth=(a=ot.maxWidth)!==null&&a!==void 0?a:D?Math.ceil(B):void 0);const{text:bt,width:lt,height:mt}=rv(N,ot);T.title.value=Object.assign(Object.assign({width:ut()?Math.min(lt,(o=ot.maxWidth)!==null&&o!==void 0?o:Number.MAX_VALUE):lt,height:mt},ot),{text:bt}),et=T.title.value.width,Z=T.title.value.height,ht=Z+(D?T.title.spaceRow:0)}return R+=ht,O+=ht,T.title.width=et,T.title.height=Z,ut()?E+=B||et:E+=Math.max(et,B),D&&T.content.forEach(bt=>{var lt;const mt=bt.value;mt&&((lt=mt.autoWidth)===null||lt===void 0||lt)&&(mt.width=E-v.left-v.right-W-F-S.spacing-k.spacing,mt.maxWidth||(mt.maxWidth=Math.ceil(mt.width)),T.valueWidth=Math.max(T.valueWidth,mt.width))}),T.panel.width=E,T.panel.height=R,T.panelDomHeight=O,T},ll=(n,t)=>P(t)?n.map(e=>t[e]):void 0,lo=(n,t)=>e=>n.every((i,s)=>e[i]===(t==null?void 0:t[s])),Zh=n=>!C(n)&&(V(n)?n.length>0&&n.every(P):Object.keys(n).length>0);function WJ(n,t,e){var i,s,r;const a=Object.assign({regionIndex:0},t),o=e.getOption(),l=o.getRegionsInUserIdOrIndex(P(a.regionId)?[a.regionId]:void 0,P(a.regionIndex)?[a.regionIndex]:void 0)[0];if(!l)return"none";const h=NJ(n,l),d=(i=a.activeType)!==null&&i!==void 0?i:h.length>1?"dimension":"mark",c=l.getLayoutStartPoint(),u=l.getLayoutRect(),p=o.globalInstance.getContainer(),g=Object.assign({x:0,y:0},p?LF(p):{}),f=m=>{var y;const{dimensionFields:b,dimensionData:v,measureFields:x,measureData:S,groupField:k,groupData:A}=m.data;return(y=m.series.getViewData())===null||y===void 0?void 0:y.latestData.find(M=>lo(b,v)(M)&&lo(x,S)(M)&&(C(k)||lo([k],[A])(M)))},_=m=>{var y,b;const v=(k=>({x:Math.min(Math.max(k.x,0),u.width),y:Math.min(Math.max(k.y,0),u.height)}))(m),x=(y=a.x)!==null&&y!==void 0?y:c.x+v.x,S=(b=a.y)!==null&&b!==void 0?b:c.y+v.y;return{canvasX:x,canvasY:S,clientX:g.x+x,clientY:g.y+S}};if(d==="dimension"){const m=h[0];if(!m)return"none";const y=new Map;h.forEach(S=>{var k;y.has(S.series)||y.set(S.series,[]),(k=y.get(S.series))===null||k===void 0||k.push(S)});const b=[{value:n[m.data.dimensionFields[0]],data:[...y.keys()].map(S=>{var k,A;return{series:S,datum:(A=(k=y.get(S))===null||k===void 0?void 0:k.map(T=>f(T)))!==null&&A!==void 0?A:[]}})}];P(m.dimType)&&(b[0].position=m.pos[m.dimType],b[0].dimType=m.dimType);const v={changePositionOnly:!1,action:"enter",tooltip:null,dimensionInfo:b,chart:(s=o.globalInstance.getChart())!==null&&s!==void 0?s:void 0,datum:void 0,model:void 0,source:Nt.chart,event:_({x:h.reduce((S,k)=>S+k.pos.x,0)/h.length,y:h.reduce((S,k)=>S+k.pos.y,0)/h.length}),item:void 0,itemMap:new Map};e.processor.dimension.showTooltip(b,v,!1);const x=o.globalInstance;return hi.globalConfig.uniqueTooltip&&hi.hideTooltip(x.id),d}if(d==="mark"){const m=h[0];if(!m)return"none";const y=Object.assign(Object.assign({},f(m)),n),b=[{datum:[y],series:m.series}],v=[{value:y[m.data.dimensionFields[0]],data:b}],x={changePositionOnly:!1,tooltip:null,dimensionInfo:v,chart:(r=o.globalInstance.getChart())!==null&&r!==void 0?r:void 0,datum:y,model:m.series,source:Nt.chart,event:_(m.pos),item:void 0,itemMap:new Map};e.processor.mark.showTooltip({datum:y,mark:null,series:m.series,dimensionInfo:v},x,!1);const S=o.globalInstance;return hi.globalConfig.uniqueTooltip&&hi.hideTooltip(S.id),d}return"none"}const NJ=(n,t)=>{const e=t.getSeries(),i=[];return e.forEach(s=>{var r,a,o,l,h,d,c;const u=s.getDimensionField(),p=s.getMeasureField(),g=s.getSeriesField(),f=P(g)?n[g]:void 0,_=P(g)&&(l=(o=(a=(r=s.getViewDataStatistics)===null||r===void 0?void 0:r.call(s))===null||a===void 0?void 0:a.latestData[g])===null||o===void 0?void 0:o.values)!==null&&l!==void 0?l:[],m=ll(u,n);let y=ll(p,n);const b=Zh(y),v=!b&&P(g)&&C(f)&&_.length>0,x=()=>{var S;const k=(S=s.getViewData())===null||S===void 0?void 0:S.latestData.find(lo(u,m));if(!b&&(y=ll(p,k),!Zh(y)))return;const A=s.type===j.pie?s.dataToCentralPosition(k):s.dataToPosition(k);C(A)||isNaN(A.x)||isNaN(A.y)||i.push({pos:A,data:{dimensionFields:u,dimensionData:m,measureFields:p,measureData:y,hasMeasureData:b,groupField:g,groupData:f},series:s})};if(s.coordinate==="cartesian"){const S=s,k=vi((d=(h=s.getYAxisHelper())===null||h===void 0?void 0:h.getScale(0))===null||d===void 0?void 0:d.type)?"y":"x",A=u.map((M,w)=>[M,w]).filter(([,M])=>C(m==null?void 0:m[M]));let T=[m??[]];A.length>0&&A.forEach(([M,w])=>{var E,R,O,B;const I=(B=(O=(R=(E=s.getViewDataStatistics)===null||E===void 0?void 0:E.call(s))===null||R===void 0?void 0:R.latestData[M])===null||O===void 0?void 0:O.values)!==null&&B!==void 0?B:[],D=[];T.forEach(F=>{I.forEach($=>{var K;const W=(K=F==null?void 0:F.slice())!==null&&K!==void 0?K:[];W[w]=$,D.push(W)})}),T=D}),T.forEach(M=>{var w,E;if(v){const R=(w=S.getViewData())===null||w===void 0?void 0:w.latestData.filter(lo(u,M));_.forEach(O=>{const B=R.find(D=>D[g]===O);if(y=ll(p,B),!Zh(y))return;const I=S.dataToPosition(B);C(I)||isNaN(I.x)||isNaN(I.y)||i.push({pos:I,data:{dimensionFields:u,dimensionData:M,measureFields:p,measureData:y,hasMeasureData:b,groupField:g,groupData:O},series:s,dimType:k})})}else{const R=(E=S.getViewData())===null||E===void 0?void 0:E.latestData.find(lo(u,M));if(!b&&(y=ll(p,R),!Zh(y)))return;const O=S.dataToPosition(R);if(C(O)||isNaN(O.x)||isNaN(O.y))return;i.push({pos:O,data:{dimensionFields:u,dimensionData:M,measureFields:p,measureData:y,hasMeasureData:b,groupField:g,groupData:f},dimType:k,series:s})}})}else if(s.coordinate==="polar")if(s.type===j.pie)x();else{const S=s;if(v){const k=((c=S.getViewData())===null||c===void 0?void 0:c.latestData.filter(lo(u,m))).find(A=>A[g]===f);_.forEach(A=>{if(y=ll(p,k),!Zh(y))return;const T=S.dataToPosition(k);C(T)||isNaN(T.x)||isNaN(T.y)||i.push({pos:T,data:{dimensionFields:u,dimensionData:m,measureFields:p,measureData:y,hasMeasureData:b,groupField:g,groupData:A},series:s})})}else x()}else s.coordinate==="geo"&&x()}),i},oa=n=>{var t,e,i;if((n==null?void 0:n.visible)===!1)return[];const s={mark:((t=n==null?void 0:n.mark)===null||t===void 0?void 0:t.visible)!==!1,dimension:((e=n==null?void 0:n.dimension)===null||e===void 0?void 0:e.visible)!==!1,group:((i=n==null?void 0:n.group)===null||i===void 0?void 0:i.visible)!==!1};return P(n==null?void 0:n.activeType)&&Object.keys(s).forEach(r=>{var a;s[r]=(a=n==null?void 0:n.activeType)===null||a===void 0?void 0:a.includes(r)}),Object.keys(s).filter(r=>s[r])};function GJ(n){return C(n.mark)&&C(n.model)&&C(n.datum)}const nC=(n,t,e)=>{var i,s;return(s=(i=n.tooltipHelper)===null||i===void 0?void 0:i.getDefaultTooltipPattern(t,e))!==null&&s!==void 0?s:null};class UJ{constructor(){this.activeTriggerSet={mark:new Set,dimension:new Set,group:new Set},this.ignoreTriggerSet={mark:new Set,dimension:new Set,group:new Set}}}class un extends UJ{constructor(t){super(),this._getSeriesCacheInfo=()=>{var e,i,s;const{series:r}=this,a=r.getSeriesField();return{seriesFields:P(a)?H(a):(e=r.getSeriesKeys())!==null&&e!==void 0?e:[],dimensionFields:(i=r.getDimensionField())!==null&&i!==void 0?i:[],measureFields:(s=r.getMeasureField())!==null&&s!==void 0?s:[],type:r.type}},this._getDimensionData=e=>{const{dimensionFields:i}=this._seriesCacheInfo;return i[0]&&(e==null?void 0:e[i[0]])},this._getMeasureData=e=>{const{measureFields:i}=this._seriesCacheInfo;return i[0]&&(e==null?void 0:e[i[0]])},this._getSeriesFieldData=e=>{const{dimensionFields:i,seriesFields:s}=this._seriesCacheInfo;if(P(s[0])&&(e!=null&&e[s[0]]))return e==null?void 0:e[s[0]];const r=i[i.length-1];return i.length>1&&(s.length===0||this.series.getSeriesKeys().length),e==null?void 0:e[r]},this._getSeriesStyle=(e,i,s)=>{var r;for(const a of H(i)){const o=(r=this.series.getSeriesStyle(e))===null||r===void 0?void 0:r(a);if(P(o))return o}return s},this.markTooltipKeyCallback=(e,i)=>this._getSeriesFieldData(e),this.markTooltipValueCallback=(e,i)=>this._getMeasureData(e),this.shapeTypeCallback=(e,i)=>{var s;return(s=this._getSeriesStyle(e,"shape",null))!==null&&s!==void 0?s:this._getSeriesStyle(e,"symbolType",this.series.getDefaultShapeType())},this.shapeColorCallback=(e,i)=>this._getSeriesStyle(e,["fill","stroke"]),this.shapeStrokeCallback=(e,i)=>this._getSeriesStyle(e,["stroke","fill"]),this.dimensionTooltipTitleCallback=(e,i)=>this._getDimensionData(e),this.groupTooltipTitleCallback=(e,i)=>this._getSeriesFieldData(e),this.groupTooltipKeyCallback=(e,i)=>{const{seriesFields:s}=this._seriesCacheInfo;let r=this._seriesCacheInfo.dimensionFields;return s[0]&&(r=r.filter(a=>a!==s[0])),r.map(a=>e==null?void 0:e[a]).join("-")},this.series=t,this.updateTooltipSpec()}updateTooltipSpec(){var t,e,i,s;const r=(e=(t=this.series.getSpec())===null||t===void 0?void 0:t.tooltip)!==null&&e!==void 0?e:{},a=(s=(i=this.series.getChart().getSpec())===null||i===void 0?void 0:i.tooltip)!==null&&s!==void 0?s:{},o=Object.assign(Object.assign({},a),r);["mark","dimension","group"].forEach(l=>{const h=o[l];P(h)&&(o[l]=Object.assign(Object.assign({},h),{title:zb(h.title,{seriesId:this.series.id},!0),content:jb(h.content,{seriesId:this.series.id},!0)}))}),this.spec=o,this.activeType=oa(o),this._seriesCacheInfo=this._getSeriesCacheInfo()}getDefaultTooltipPattern(t,e){switch(t){case"mark":return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{seriesId:this.series.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"group":return{visible:!0,activeType:t,title:{key:void 0,value:this.groupTooltipTitleCallback,hasShape:!1},content:[{seriesId:this.series.id,key:this.groupTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},s=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{s.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:s}}}return null}}const Zf=(n,t,e)=>{const i=G(t)?t(n):t;return e?Object.assign(Object.assign({},n),i):Object.assign(Object.assign({},i),n)},zb=(n,t,e)=>P(n)?G(n)?(...i)=>Zf(n(...i),t,e):Zf(n,t,e):void 0,jb=(n,t,e)=>P(n)?H(n).map(i=>G(i)?(...s)=>H(i(...s)).map(r=>Zf(r,t,e)):Zf(i,t,e)):void 0,$J=(n,t,e,i)=>{var s,r,a,o,l,h,d;const c=Object.assign(Object.assign({},t),{activeType:n}),{style:u={}}=t;switch(n){case"mark":case"group":if(e){const b=(r=(s=e.tooltipHelper)===null||s===void 0?void 0:s.spec)!==null&&r!==void 0?r:{};if(P(b.visible)||P(b.activeType)?c.visible=oa(b).includes(n):P(t.visible)||P(t.activeType)?c.visible=oa(t).includes(n):c.visible=!0,c.handler=(o=(a=b.handler)!==null&&a!==void 0?a:t.handler)!==null&&o!==void 0?o:void 0,(l=c.handler)===null||l===void 0?void 0:l.showTooltip)return c}break;case"dimension":if(i!=null&&i.length&&(FL(i).every(b=>{var v;return!oa((v=b.tooltipHelper)===null||v===void 0?void 0:v.spec).includes("dimension")})?c.visible=!1:P(t.visible)||P(t.activeType)?c.visible=oa(t).includes("dimension"):c.visible=!0,c.handler=(h=t.handler)!==null&&h!==void 0?h:void 0,(d=c.handler)===null||d===void 0?void 0:d.showTooltip))return c}const p=YJ(n,e,i),g=XJ(n,e,i),f=vt({},on(t[n]),g),_=p.title,m=lv(void 0,f,u.shape,void 0,_);P(f.title)?f.title=zb(f.title,Object.assign(Object.assign({},_),m)):f.title=zb(_,m,!0);const y=H(p.content);if(P(f.content)){const b=KJ(y);f.content=jb(f.content,v=>lv(v,f,u.shape,b))}else f.content=jb(y,b=>lv(void 0,f,u.shape,void 0,b),!0);return c[n]=Object.assign(Object.assign(Object.assign({},p),f),{activeType:n}),c},YJ=(n,t,e)=>{var i;let s={};switch(n){case"mark":case"group":t&&(s=(i=nC(t,n))!==null&&i!==void 0?i:{});break;case"dimension":if(e!=null&&e.length){const r=[];e.forEach(({data:o})=>o.forEach(l=>{const{series:h}=l,d=[Object.assign(Object.assign({},e[0]),{data:[l]})],c=nC(h,"dimension",d);c&&r.push(c)}));const a=[];r.forEach(({content:o})=>{G(o)?a.push(o):a.push(...H(o))}),s=Object.assign(Object.assign({},r[0]),{content:a})}}return s},XJ=(n,t,e)=>{var i,s;let r={};switch(n){case"mark":case"group":if(t){const a=(s=(i=t.tooltipHelper)===null||i===void 0?void 0:i.spec)!==null&&s!==void 0?s:{};r=a[n]?on(a[n]):{}}break;case"dimension":if(e!=null&&e.length){const a=FL(e).filter(o=>{var l;const h=(l=o.tooltipHelper)===null||l===void 0?void 0:l.spec;return P(h==null?void 0:h.dimension)&&oa(h).includes("dimension")}).map(o=>o.tooltipHelper.spec.dimension);if(a.length){let o=[];a.every(({content:l})=>C(l))?o=void 0:a.forEach(({content:l})=>{C(l)||(G(l)?o==null||o.push(l):o==null||o.push(...H(l)))}),r=Object.assign(Object.assign({},a[0]),{content:o})}}}return r},FL=kh(n=>n.reduce((t,e)=>t.concat(e.data.map(i=>i.series).filter(P)),[])),KJ=n=>{const t={};return n.forEach(e=>{var i;const s=(i=e.seriesId)!==null&&i!==void 0?i:0;t[s]||(t[s]=e)}),t},lv=(n,t,e,i,s)=>{var r,a,o;e&&(e.shapeSize=(r=e.shapeSize)!==null&&r!==void 0?r:e.size);const l=[n,t,e,(o=i==null?void 0:i[(a=n==null?void 0:n.seriesId)!==null&&a!==void 0?a:0])!==null&&o!==void 0?o:i==null?void 0:i[0],s].filter(P),h=new Set(l.reduce((c,u)=>c.concat(Object.keys(u)),[]).filter(c=>c.toLowerCase().includes("shape"))),d={};return h.forEach(c=>{let u,p=0;do u=l[p++][c];while(p{let s;if(s=G(n)?n(t,e):n,i){const{formatFunc:r,args:a}=Rr(void 0,i,n,t);r&&a&&(s=r(...a))}return s},Jf=(n,t,e)=>C(n)?n:G(n)?n(t,e):n,qJ=(n,t,e)=>{if(C(n))return n;let i=[];return H(n).forEach(s=>{G(s)?i=i.concat(H(s(t,e))):i.push(s)}),i};function ZJ(n){var t;const e=!((t=n[0])===null||t===void 0)&&t.series?[{data:n,value:""}]:n;for(const{data:i}of e)for(const{datum:s}of i)for(const r of s??[])if(r)return r}class Da{}Da.dom=`${yt}_TOOLTIP_HANDLER_DOM`,Da.canvas=`${yt}_TOOLTIP_HANDLER_CANVAS`;const JJ="vchart-tooltip-element",QJ=20,sC={key:"其他",value:"..."},Hb=(n,t,e)=>{if(!t&&!e)return typeof n!="object"?n==null?void 0:n.toString():n;const i=gs.getInstance();return t=t||"%Y%m%d",((e=e||"local")==="local"?i.timeFormat:i.timeUTCFormat)(t,n)},tQ=(n,t,e)=>{var i,s,r,a;if(!t||((i=e==null?void 0:e.event)===null||i===void 0?void 0:i.type)==="mouseout")return null;const o={title:{},content:[]},l=Jf(n.title,t,e),{visible:h,value:d,valueTimeFormat:c,valueTimeFormatMode:u,valueStyle:p,hasShape:g,valueFormatter:f}=l??{},_=ji(h,t,e)!==!1;if(l&&_){const x=ZJ(t);o.title={value:Hb(ji(d,x,e,f),c,u),valueStyle:ji(p,x,e),hasShape:g}}else o.title={hasShape:!1,visible:!1};const m=qJ(n.content,t,e),{maxLineCount:y=QJ}=n,b=n.othersLine?Object.assign(Object.assign({},sC),n.othersLine):sC,v=x=>{if(x!=null&&x.length)for(const S of x)for(const k of m??[]){const A=rC(S,k,e);if(A.visible!==!1){if(o.content.length===y-1){o.content.push(Object.assign(Object.assign({},A),b));break}if(!(o.content.lengthC(T.seriesId)||T.seriesId===k.id))!==null&&a!==void 0?a:[];for(const T of S){for(const M of A){const w=rC(T,M,e);if(w.visible!==!1){if(o.content.length===y-1){o.content.push(Object.assign(Object.assign({},w),b));break}if(!(o.content.length=y)break}if(o.content.length>=y)break}if(o.content.length>=y)break}}return o.title&&(o.content.length>0&&o.content[0].shapeType?(C(o.title.shapeType)&&(o.title.shapeType=o.content[0].shapeType),C(o.title.shapeColor)&&(o.title.shapeColor=o.content[0].shapeColor)):o.title.hasShape=!1),o},rC=(n,t,e)=>{const i=Hb(ji(t.key,n,e,t.keyFormatter),t.keyTimeFormat,t.keyTimeFormatMode),s=Hb(ji(t.value,n,e,t.valueFormatter),t.valueTimeFormat,t.valueTimeFormatMode),r=ji(t.visible,n,e)!==!1&&(P(i)||P(s)),a=ji(t.isKeyAdaptive,n,e),o=ji(t.spaceRow,n,e),l=ji(t.shapeType,n,e),h=ji(t.shapeColor,n,e),d=ji(t.shapeFill,n,e),c=ji(t.shapeStroke,n,e),u=ji(t.shapeLineWidth,n,e),p=ji(t.shapeHollow,n,e),g=ji(t.keyStyle,n,e),f=ji(t.valueStyle,n,e);return{key:i,value:s,visible:r,isKeyAdaptive:a,hasShape:t.hasShape,shapeType:l,shapeFill:d,shapeStroke:c,shapeLineWidth:u,shapeHollow:p,shapeColor:h,keyStyle:g,valueStyle:f,spaceRow:o,datum:n}};class SS extends xS{constructor(){super(...arguments),this._visible=!0,this._attributes=null,this._isReleased=!1,this.showTooltip=(t,e,i)=>{const{changePositionOnly:s}=i;return s?this.changeTooltipPosition(i,e):this.changeTooltip(!0,i,e)},this._changeTooltip=(t,e,i)=>this._isReleased?1:t?this._changeTooltipPosition(e,i):(this._clearAllCache(),this._updateTooltip(!1,e),0),this._changeTooltipPosition=(t,e)=>{var i,s,r;if(this._isReleased)return 1;const a=t.event,{tooltipSpec:o,tooltipActual:l,changePositionOnly:h}=t;if(o.enterable){if(!this._isPointerEscaped&&this._isPointerMovingToTooltip(t))return this._isTooltipPaused||(this._isTooltipPaused=!0,this._cachePointerTimer=setTimeout(()=>{this._isPointerEscaped=!0},300)),0;this._isTooltipPaused=!1,this._isPointerEscaped=!1,clearTimeout(this._cachePointerTimer),this._cachePointerPosition=this._getPointerPositionRelativeToTooltipParent(t)}const d=l.activeType;if(o.handler)return(r=(s=(i=o.handler).showTooltip)===null||s===void 0?void 0:s.call(i,d,e,t))!==null&&r!==void 0?r:0;const c=o[d];if(!c)return 1;const u=this._getActualTooltipPosition(l,t,this._getTooltipBoxSize(l,h));l.position=u,c.updatePosition&&(l.position=c.updatePosition(l.position,e,t));let p=(c==null?void 0:c.visible)!==!1;return e&&a.type!=="pointerout"&&l.visible&&(l.title||l.content)||(p=!1),this._updateTooltip(p,Object.assign(Object.assign({},t),{changePositionOnly:h})),0},this._getActualTooltipPosition=(t,e,i)=>{var s,r,a,o,l,h,d;const c=e.event,{tooltipSpec:u}=e,p=(s=e.dimensionInfo)===null||s===void 0?void 0:s[0],g={x:1/0,y:1/0};let{offsetX:f,offsetY:_}=this._option;if(!u)return this._cacheTooltipPosition=void 0,g;const{activeType:m,data:y}=t,b=u[m],v=Jf(b.position,y,e),x=(r=Jf(b.positionMode,y,e))!==null&&r!==void 0?r:m==="mark"?"mark":"pointer",S=this._getParentElement(u),{width:k=0,height:A=0}=i??{},T=u.renderMode==="canvas",M=(a=e==null?void 0:e.chart)===null||a===void 0?void 0:a.getCanvasRect(),w=(o=M==null?void 0:M.width)!==null&&o!==void 0?o:El,E=(l=M==null?void 0:M.height)!==null&&l!==void 0?l:Rl;let R=!1;const O={width:0,height:0};let B={x:0,y:0},I={x:0,y:0},D=1,F=1;if(zn(this._env)&&!u.confine){if(O.width=window.innerWidth,O.height=window.innerHeight,!T){I=(h=S==null?void 0:S.getBoundingClientRect())!==null&&h!==void 0?h:g;const pe=(d=this._compiler.getCanvas())!==null&&d!==void 0?d:this._chartContainer,Se=pe==null?void 0:pe.getBoundingClientRect();B={x:Se.x-I.x,y:Se.y-I.y},D=kp(pe,Se),F=kp(S,I)}}else O.width=w,O.height=E;const $=F/D;let K,W,et,Z,ht=v,J=v;const N=({orient:pe,mode:Se,offset:Mi})=>{var te;let ve,bi;const Cn=e.model,ei=Cn==null?void 0:Cn.getLayoutStartPoint();if(f=Mi??f,Se==="mark"){R=!0;const Ie=e.item,zi=Ie==null?void 0:Ie.getBounds();zi&&ei&&(ve=zi.x1+ei.x,bi=zi.x2+ei.x)}else if(Se==="crosshair"&&((te=p==null?void 0:p.axis)===null||te===void 0?void 0:te.getCoordinateType())==="cartesian"){R=!0;const Ie=iC(e.dimensionInfo,zc(this._component.getRegions(),"cartesian"),ei);Ie&&(ve=Ie.start.x,bi=Ie.end.x)}else ht=pe;if(R)switch(Kh(pe)){case"left":K=ve-k*$-f;break;case"right":K=bi+f;break;case"center":K=(ve+bi)/2-k*$/2;break;case"centerLeft":K=(ve+bi)/2-k*$-f;break;case"centerRight":K=(ve+bi)/2+f}},q=({orient:pe,mode:Se,offset:Mi})=>{var te;let ve,bi;const Cn=e.model,ei=Cn==null?void 0:Cn.getLayoutStartPoint();if(_=Mi??_,Se==="mark"){R=!0;const Ie=e.item,zi=Ie==null?void 0:Ie.getBounds();zi&&ei&&(ve=zi.y1+ei.y,bi=zi.y2+ei.y)}else if(Se==="crosshair"&&((te=p==null?void 0:p.axis)===null||te===void 0?void 0:te.getCoordinateType())==="cartesian"){R=!0;const Ie=iC(e.dimensionInfo,zc(this._component.getRegions(),"cartesian"),ei);Ie&&(ve=Ie.start.y,bi=Ie.end.y)}else J=pe;if(R)switch(qh(pe)){case"top":W=ve-A*$-_;break;case"bottom":W=bi+_;break;case"center":W=(ve+bi)/2-A*$/2;break;case"centerTop":W=(ve+bi)/2-A*$-_;break;case"centerBottom":W=(ve+bi)/2+_}};if(Ct(v)){if(FJ(v)){const{left:pe,right:Se,top:Mi,bottom:te}=v;K=al(pe,c),W=al(Mi,c),et=al(Se,c),Z=al(te,c)}else if(zJ(v)){const{x:pe,y:Se}=v;nt(pe)||G(pe)?K=al(pe,c):N(pe),nt(Se)||G(Se)?W=al(Se,c):q(Se)}}else P(v)&&(N({orient:v,mode:x}),q({orient:v,mode:x}));let X,ot;const{canvasX:ut,canvasY:bt}=c;if(z(K))X=K;else if(z(et))X=w-k*$-et;else{const pe=ut;switch(Kh(ht,"right")){case"center":X=pe-k*$/2;break;case"left":case"centerLeft":X=pe-k*$-f;break;case"right":case"centerRight":X=pe+f}}if(z(W))ot=W;else if(z(Z))ot=E-A*$-Z;else{const pe=bt;switch(qh(J,"bottom")){case"center":ot=pe-A*$/2;break;case"top":case"centerTop":ot=pe-A*$-_;break;case"bottom":case"centerBottom":ot=pe+_}}X*=D,ot*=D,zn(this._env)&&(X+=B.x,ot+=B.y),X/=F,ot/=F;const{width:lt,height:mt}=O,xt=()=>X*F+I.x<0,Bt=()=>(X+k)*F+I.x>lt,At=()=>ot*F+I.y<0,ri=()=>(ot+A)*F+I.y>mt,Qt=()=>{xt()&&(R?X=-I.x/F:Kh(v,"right")==="center"?X+=f+k/2:X+=2*f+k)},pi=()=>{xt()&&(X=-I.x/F)},Me=()=>{Bt()&&(R?X=(lt-I.x)/F-k:Kh(v,"right")==="center"?X-=f+k/2:X-=2*f+k)},ai=()=>{Bt()&&(X=(lt-I.x)/F-k)},Fi=()=>{At()&&(R?ot=-I.y/F:qh(v,"bottom")==="center"?ot+=_+A/2:ot+=2*_+A)},yi=()=>{At()&&(ot=0-I.y/F)},Zs=()=>{ri()&&(R?ot=(mt-I.y)/F-A:qh(v,"bottom")==="center"?ot-=_+A/2:ot-=2*_+A)},Hr=()=>{ri()&&(ot=(mt-I.y)/F-A)};switch(Kh(v,"right")){case"center":case"centerLeft":case"centerRight":xt()?(Qt(),ai()):(Me(),pi());break;case"left":Qt(),ai();break;case"right":Me(),pi()}switch(qh(v,"bottom")){case"center":case"centerTop":case"centerBottom":At()?(Fi(),Hr()):(Zs(),yi());break;case"top":Fi(),Hr();break;case"bottom":Zs(),yi()}const Ga={x:X,y:ot};return this._cacheTooltipPosition=Ga,this._cacheTooltipSize={width:k,height:A},Ga}}get env(){return this._env}onAdd(t){super.onAdd(t);const e=t.component;this._component=e,this._chartOption=e.getOption(),this._env=this._chartOption.mode,this._chartContainer=this._chartOption.globalInstance.getContainer(),this._compiler=e.getCompiler(),this._initFromSpec()}hideTooltip(t){return this.changeTooltip(!1,t)}release(){var t,e,i;this._clearAllCache();const s=(t=this._component.getSpec())!==null&&t!==void 0?t:{};s.handler?(i=(e=s.handler).release)===null||i===void 0||i.call(e):(this._removeTooltip(),this._isReleased=!0)}_clearAllCache(){this._isTooltipPaused=!1,this._isPointerEscaped=!1,clearTimeout(this._cachePointerTimer),this._cachePointerTimer=-1,this._cachePointerPosition=void 0,this._cacheTooltipPosition=void 0,this._cacheTooltipSize=void 0}_throttle(t){const e=this._component.getSpec();let i;return i=nt(e.throttleInterval)?e.throttleInterval:e.renderMode==="html"&&e.transitionDuration?50:10,za(t,i)}_getDefaultOption(){var t,e;const{offset:i}=this._component.getSpec();return Object.assign(Object.assign({},av),{offsetX:(t=i==null?void 0:i.x)!==null&&t!==void 0?t:av.offsetX,offsetY:(e=i==null?void 0:i.y)!==null&&e!==void 0?e:av.offsetY})}_getTooltipBoxSize(t,e){var i,s,r;if(!e||C(this._attributes)){const h=(s=(i=this._chartOption)===null||i===void 0?void 0:i.getTheme())!==null&&s!==void 0?s:{};this._attributes=VJ(t,this._component.getSpec(),h)}const{panel:a,panelDomHeight:o}=(r=this._attributes)!==null&&r!==void 0?r:{},l=this._component.getSpec().renderMode==="canvas";return{width:(a==null?void 0:a.width)+(l?a.lineWidth:0),height:(o??(a==null?void 0:a.height))+(l?a.lineWidth:0)}}_getPointerPositionRelativeToTooltipParent(t){var e,i;let{canvasX:s,canvasY:r}=t.event;const{tooltipSpec:a}=t,o={x:1/0,y:1/0},l=a.renderMode==="canvas",h=this._getParentElement(a);let d={x:0,y:0},c={x:0,y:0},u=1,p=1;if(zn(this._env)&&!a.confine&&!l){c=(e=h==null?void 0:h.getBoundingClientRect())!==null&&e!==void 0?e:o;const g=(i=this._compiler.getCanvas())!==null&&i!==void 0?i:this._chartContainer,f=g==null?void 0:g.getBoundingClientRect();d={x:f.x-c.x,y:f.y-c.y},u=kp(g,f),p=kp(h,c)}return s*=u,r*=u,zn(this._env)&&(s+=d.x,r+=d.y),s/=p,r/=p,{x:s,y:r}}_isPointerMovingToTooltip(t){if(!this._cacheTooltipPosition||!this._cacheTooltipSize||!this._cachePointerPosition)return!1;const{width:e,height:i}=this._cacheTooltipSize,{x:s=0,y:r}=this._cacheTooltipPosition,a=this._getPointerPositionRelativeToTooltipParent(t);if(_d(a,{x1:s,y1:r,x2:s+e,y2:r+i},!1))return!0;const o={x:s,y:r},l={x:o.x+e,y:o.y},h={x:o.x,y:o.y+i},d={x:l.x,y:h.y},c=this._cachePointerPosition;return eo([c,o,l],a.x,a.y)||eo([c,h,d],a.x,a.y)||eo([c,o,d],a.x,a.y)||eo([c,l,h],a.x,a.y)}_getParentElement(t){return t.parentElement}getTooltipContainer(){return this._container}_initFromSpec(){this._option=this._getDefaultOption(),this.changeTooltip=this._throttle(this._changeTooltip),this.changeTooltipPosition=this._throttle(this._changeTooltipPosition)}reInit(){this._initFromSpec()}}SS.specKey="tooltip";const ye=(n,t)=>P(n)?V(n)?n.map(e=>`${e}px`).join(" "):`${n}px`:t??"initial",zL=n=>{const t=n.split(" ").map(e=>Number.isNaN(e)?Number.parseFloat(e.substring(0,e.length-2)):Number.parseFloat(e));return t.length===1?t[0]:t};let hv;const eQ=(n=document.body)=>{if(C(hv)){const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",n.appendChild(t);const e=document.createElement("div");t.appendChild(e),hv=t.offsetWidth-e.offsetWidth,t.parentNode.removeChild(t)}return hv};function iQ(n){var t,e,i;const{panel:s={},title:r,content:a,titleStyle:o={},contentStyle:l={},padding:h,keyWidth:d,valueWidth:c,enterable:u,transitionDuration:p,panelDomHeight:g=0,align:f="left"}=n??{},{fill:_,shadow:m,shadowBlur:y,shadowColor:b,shadowOffsetX:v,shadowOffsetY:x,shadowSpread:S,cornerRadius:k,stroke:A,lineWidth:T=0,width:M=0}=s,{value:w={}}=o,{shape:E={},key:R={},value:O={}}=l,B=nQ(E),I=Jh(R),D=Jh(O),{bottom:F,left:$,right:K,top:W}=Pr(h),et=f==="right"?"marginLeft":"marginRight";return{align:f,panel:{width:ye(M+2*T),minHeight:ye(g+2*T),paddingBottom:ye(F),paddingLeft:ye($),paddingRight:ye(K),paddingTop:ye(W),borderColor:A,borderWidth:ye(T),borderRadius:ye(k),backgroundColor:_?`${_}`:"transparent",boxShadow:m?`${v}px ${x}px ${y}px ${S}px ${b}`:"initial",pointerEvents:u?"auto":"none",transitionDuration:p?`${p}ms`:"initial",transitionProperty:p?"transform":"initial",transitionTimingFunction:p?"ease-out":"initial"},title:Object.assign({marginTop:"0px",marginBottom:a!=null&&a.length?ye(r==null?void 0:r.spaceRow):"0px"},Jh(vt({},w,r==null?void 0:r.value))),content:{},shapeColumn:{common:B,items:a==null?void 0:a.map(({spaceRow:Z},ht)=>({marginTop:"0px",marginBottom:htObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:JObject.assign(Object.assign(Object.assign({marginTop:"0px",marginBottom:Je.setOption(t))}getParentEl(){return Jn.isInstance(this.parent)?this.parent.product:this.parent}constructor(t,e,i){this.type=Jn.type,this._renderContentCache=null,this.children={},this.parent=t,this._option=e,this.childIndex=i??0}init(t,e){}initAll(){this.init(),Object.values(this.children).forEach(t=>t.initAll())}setStyle(t){this.product&&t&&Object.keys(t).forEach(e=>{this.product.style[e]!==t[e]&&(this.product.style[e]=t[e])})}setContent(t){}setVisibility(t){if(!this.product)return;const{style:e}=this.product;e.visibility=t?"visible":"hidden",Object.values(this.children).forEach(i=>i.setVisibility(t))}getVisibility(){var t,e;return!!(!((e=(t=this.product)===null||t===void 0?void 0:t.style)===null||e===void 0)&&e.visibility)&&this.product.style.visibility!=="hidden"}release(){var t;if(Object.values(this.children).forEach(e=>e.release()),this.children={},this.product){try{(t=this.getParentEl())===null||t===void 0||t.removeChild(this.product)}catch{}this.product=null}}createElement(t,e,i,s){const r=ea==null?void 0:ea.createElement(t),a=this.getParentEl();if(!r||!a)return;e&&r.classList.add(...e),i&&Object.keys(i).forEach(l=>{r.style[l]=i[l]}),s&&(r.id=s);let o=this.childIndex;if(Jn.isInstance(this.parent)){let l=Number.MAX_VALUE;for(let h=0;hc.product===a.children[h]);d.childIndex>this.childIndex&&d.childIndex=a.children.length?a.appendChild(r):a.insertBefore(r,a.children[o]),r}}Jn.type="tooltipModel";const sQ={fontSize:"13px",marginBottom:"0px",fontWeight:"normal"},rQ={boxSizing:"border-box"},aQ={display:"inline-block",verticalAlign:"top"},oQ={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},lQ={paddingTop:"0px",paddingBottom:"0px",textAlign:"left",fontWeight:"normal"},hQ={paddingTop:"0px",paddingBottom:"0px",textAlign:"right",fontWeight:"normal"},dQ={lineHeight:"normal",boxSizing:"border-box"};class jL extends Jn{init(t,e,i){if(!this.product){const s=this.createElement(i??"div",[...t??[],"shape"],void 0,e);this.product=s}}setStyle(t,e){super.setStyle(t),this.setSvg(e)}setContent(t){this.setSvg(t)}setSvg(t){const e=cQ(t,this._option.valueToHtml);this.product&&e!==this._svgHtmlCache&&(this._svgHtmlCache=e,this.product.innerHTML=e)}release(){super.release(),this._svgHtmlCache=""}}function cQ(n,t){var e,i,s,r,a,o;if(!(n!=null&&n.hasShape)||!n.symbolType)return"";const{symbolType:l,fill:h,stroke:d,hollow:c=!1}=n,u=n.size?t(n.size):"8px",p=n.lineWidth?t(n.lineWidth)+"px":"0px";let g="currentColor";const f=()=>d?t(d):g,_=zL(u),m=A=>new Ac({symbolType:A,size:_,fill:!0});let y=m(l);const b=y.getParsedPath();b.path||(y=m(b.pathStr));const v=y.getParsedPath().path,x=v.toString(),S=v.bounds;let k=`${S.x1} ${S.y1} ${S.width()} ${S.height()}`;if(p!=="0px"){const[A,T,M,w]=k.split(" ").map(R=>Number(R)),E=Number(p.slice(0,-2));k=`${A-E/2} ${T-E/2} ${M+E} ${w+E}`}if(!h||at(h)||c)return g=c?"none":h?t(h):"currentColor",` + + + + `;if(Ct(h)){g=(e="gradientColor"+n.index)!==null&&e!==void 0?e:"";let A="";const T=((i=h.stops)!==null&&i!==void 0?i:[]).map(M=>``).join("");return h.gradient==="radial"?A=` + ${T} + `:h.gradient==="linear"&&(A=` + ${T} + `),` + + ${A} + + + `}return""}class HL extends Jn{init(t,e,i){this.product||(this.product=this.createElement(i??"span",t,void 0,e))}setContent(t,e){if(!this.product)return;let i=this._option.valueToHtml(t);e&&(i=i.replaceAll(` +`,"
")),i!==this.product.innerHTML&&(this.product.innerHTML=i)}}const aC={overflowWrap:"normal",wordWrap:"normal"};class uQ extends Jn{constructor(t,e,i,s){super(t,e,s),this.className=i}init(){var t,e;this.product||(this.product=this.createElement("div",[this.className]));const i=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[];if(this.className!=="shape-box"||i.some(s=>s.hasShape&&s.shapeType)){Object.keys(this.children).forEach(s=>{const r=zs(s);r>=i.length&&(this.children[r].release(),delete this.children[r])});for(let s=0;s{const r=zs(s);this.children[r].release(),delete this.children[r]})}setStyle(){var t,e,i,s;const r=this._option.getTooltipStyle();super.setStyle(vt({},aQ,r.content,this._getContentColumnStyle()));const a=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[],o=(s=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&s!==void 0?s:[],l=(h,d)=>{var c,u;const{key:p,isKeyAdaptive:g}=h,{height:f}=o[d],{keyColumn:_}=r,m=vt({},g?lQ:oQ,Object.assign(Object.assign(Object.assign({height:ye(f)},aC),_.common),(c=_.items)===null||c===void 0?void 0:c[d]));return at(p)&&((u=p==null?void 0:p.trim)===null||u===void 0?void 0:u.call(p))!==""||nt(p)||m.visibility?m.visibility="visible":m.visibility="hidden",m};a.forEach((h,d)=>{var c;this.className==="key-box"?this.children[d].setStyle(l(h,d)):this.className==="value-box"?this.children[d].setStyle(((u,p)=>{var g;const{height:f}=o[p],{valueColumn:_}=r;return vt({},hQ,Object.assign(Object.assign(Object.assign({height:ye(f)},aC),_.common),(g=_.items)===null||g===void 0?void 0:g[p]))})(0,d)):this.className==="shape-box"&&((c=this.children[d])===null||c===void 0||c.setStyle(((u,p)=>{var g,f,_,m;const{height:y}=o[p],{shapeColumn:b}=r,v=l(u,p),x=`calc((${(f=(g=v.lineHeight)!==null&&g!==void 0?g:v.fontSize)!==null&&f!==void 0?f:"18px"} - ${(_=b.width)!==null&&_!==void 0?_:"8px"}) / 2)`;return vt({},dQ,Object.assign(Object.assign({height:ye(y),paddingTop:x},b.common),(m=b.items)===null||m===void 0?void 0:m[p]))})(h,d),this._getShapeSvgOption(h,d)))})}setContent(){var t,e,i,s;const r=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[],a=(s=(i=this._option.getTooltipAttributes())===null||i===void 0?void 0:i.content)!==null&&s!==void 0?s:[];r.forEach((o,l)=>{var h,d,c,u,p,g,f;let _;if(this.className==="key-box"){const m=o.key;_=at(m)&&((h=m==null?void 0:m.trim)===null||h===void 0?void 0:h.call(m))!==""||nt(m)?m:Zw,(d=this.children[l])===null||d===void 0||d.setContent(_,(c=a[l].key)===null||c===void 0?void 0:c.multiLine)}else if(this.className==="value-box"){const m=o.value;_=at(m)&&((u=m==null?void 0:m.trim)===null||u===void 0?void 0:u.call(m))!==""||nt(m)?m:Zw,(p=this.children[l])===null||p===void 0||p.setContent(_,(g=a[l].value)===null||g===void 0?void 0:g.multiLine)}else this.className==="shape-box"&&(_=this._getShapeSvgOption(o,l),(f=this.children[l])===null||f===void 0||f.setContent(_))})}_getContentColumnStyle(){var t,e;const i=this._option.getTooltipStyle();switch(this.className){case"shape-box":const s=(e=(t=this._option.getTooltipActual())===null||t===void 0?void 0:t.content)!==null&&e!==void 0?e:[];return Object.assign(Object.assign({},i.shapeColumn),this.className!=="shape-box"||s.some(r=>r.hasShape&&r.shapeType)?{}:{display:"none"});case"key-box":return i.keyColumn;case"value-box":return i.valueColumn}}_getShapeSvgOption(t,e){var i,s;const r=this._option.getTooltipStyle(),a=Object.assign(Object.assign({},r.shapeColumn),(i=r.shapeColumn.items)===null||i===void 0?void 0:i[e]);return{hasShape:t.hasShape,symbolType:t.shapeType,size:a.width,fill:(s=t.shapeFill)!==null&&s!==void 0?s:t.shapeColor,stroke:t.shapeStroke,lineWidth:t.shapeLineWidth,hollow:t.shapeHollow,index:e}}}class pQ extends Jn{init(){this.product||(this.product=this.createElement("div",["container-box"]));const{align:t}=this._option.getTooltipAttributes();t==="right"?(this.valueBox||(this.valueBox=this._initBox("value-box",0)),this.keyBox||(this.keyBox=this._initBox("key-box",1)),this.shapeBox||(this.shapeBox=this._initBox("shape-box",2))):(this.shapeBox||(this.shapeBox=this._initBox("shape-box",0)),this.keyBox||(this.keyBox=this._initBox("key-box",1)),this.valueBox||(this.valueBox=this._initBox("value-box",2)))}_initBox(t,e){const i=new uQ(this.product,this._option,t,e);return i.init(),this.children[i.childIndex]=i,i}setStyle(t){super.setStyle(vt(this._getContentContainerStyle(),t)),Object.values(this.children).forEach(e=>{e.setStyle()})}setContent(){Object.values(this.children).forEach(t=>{t.setContent()})}_getContentContainerStyle(){const t={whiteSpace:"nowrap",lineHeight:"0px"},{panelDomHeight:e,panel:i,maxContentHeight:s}=this._option.getTooltipAttributes();if(P(s)&&ed+zL(c),0);return Object.assign(Object.assign({},t),{width:`${h+eQ(this._option.getContainer())}px`,maxHeight:ye(s),overflow:"auto"})}return t}release(){super.release(),this.shapeBox=null,this.keyBox=null,this.valueBox=null}}class gQ extends Jn{init(){const t=this._option.getTooltipActual();this.product||(this.product=this.createElement("h2"));const{align:e}=this._option.getTooltipAttributes();e!=="right"||this.textSpan||this._initTextSpan(0);const{title:i}=t;i!=null&&i.hasShape&&(i!=null&&i.shapeType)?this.shape||this._initShape(e==="right"?1:0):this.shape&&this._releaseShape(),e==="right"||this.textSpan||this._initTextSpan(1)}_initShape(t=0){const e=new jL(this.product,this._option,t);e.init(),this.shape=e,this.children[e.childIndex]=e}_releaseShape(){this.shape&&(this.shape.release(),delete this.children[this.shape.childIndex],this.shape=null)}_initTextSpan(t=1){const e=new HL(this.product,this._option,t);e.init(),this.textSpan=e,this.children[e.childIndex]=e}setStyle(t){var e,i,s,r;const a=this._option.getTooltipStyle(),o=this._option.getTooltipActual(),{title:l}=o;super.setStyle(vt({},sQ,a.title,t)),(e=this.shape)===null||e===void 0||e.setStyle({paddingRight:(i=a.shapeColumn.common)===null||i===void 0?void 0:i.marginRight},{hasShape:l==null?void 0:l.hasShape,symbolType:l==null?void 0:l.shapeType,size:(s=a.shapeColumn.common)===null||s===void 0?void 0:s.width,fill:l==null?void 0:l.shapeColor,hollow:l==null?void 0:l.shapeHollow}),(r=this.textSpan)===null||r===void 0||r.setStyle({color:"inherit"})}setContent(){var t,e,i,s,r,a;const o=this._option.getTooltipStyle(),l=this._option.getTooltipActual(),h=this._option.getTooltipAttributes(),{title:d}=l;this.init(),(t=this.shape)===null||t===void 0||t.setStyle(void 0,{hasShape:d==null?void 0:d.hasShape,symbolType:d==null?void 0:d.shapeType,size:(e=o.shapeColumn.common)===null||e===void 0?void 0:e.width,fill:d==null?void 0:d.shapeColor,hollow:d==null?void 0:d.shapeHollow}),(i=this.textSpan)===null||i===void 0||i.setStyle({color:"inherit"}),(s=this.textSpan)===null||s===void 0||s.setContent(d==null?void 0:d.value,(a=(r=h.title)===null||r===void 0?void 0:r.value)===null||a===void 0?void 0:a.multiLine)}release(){super.release(),this.shape=null,this.textSpan=null}}const VL="99999999999999";class fQ extends Jn{constructor(t,e,i){super(t.getContainer(),t,0),this.title=null,this.content=null,this._classList=e,this._id=i}setVisibility(t){if(super.setVisibility(t),!this.product)return;const{classList:e}=this.product;t?e.add("visible"):e.remove("visible")}init(){var t;const e=this._option.getTooltipActual();this.product||this._initPanel(this._classList,this._id);const{title:i}=e;(i==null?void 0:i.visible)!==!1&&P(i==null?void 0:i.value)?this.title||this._initTitle():this.title&&this._releaseTitle(),((t=e.content)!==null&&t!==void 0?t:[]).length>0?this.content||this._initContent():this.content&&this._releaseContent()}_initPanel(t,e){const i=this.createElement("div",t,{left:"0",top:"0",pointerEvents:"none",padding:"12px",position:"absolute",zIndex:VL,fontFamily:"sans-serif",fontSize:"11px",borderRadius:"3px",borderStyle:"solid",lineHeight:"initial",background:"#fff",boxShadow:"2px 2px 4px rgba(0, 0, 0, 0.1)",maxWidth:"100wh",maxHeight:"100vh"},e);this.product=i}_initTitle(){const t=new gQ(this.product,this._option,0);t.init(),this.title=t,this.children[t.childIndex]=t}_releaseTitle(){this.title&&(this.title.release(),delete this.children[this.title.childIndex],this.title=null)}_initContent(){const t=new pQ(this.product,this._option,1);t.init(),this.content=t,this.children[t.childIndex]=t}_releaseContent(){this.content&&(this.content.release(),delete this.children[this.content.childIndex],this.content=null)}setStyle(){const t=this._option.getTooltipStyle();super.setStyle(vt({},rQ,t.panel)),Object.values(this.children).forEach(e=>e.setStyle())}setContent(){Object.values(this.children).forEach(t=>{t.setContent()})}release(){super.release(),this.title=null,this.content=null}}const WL=n=>{L.registerComponentPlugin(n.type,n)};class Nm extends SS{getVisibility(){var t;return!!(!((t=this.model)===null||t===void 0)&&t.getVisibility())}setVisibility(t){var e;t!==this.getVisibility()&&((e=this.model)===null||e===void 0||e.setVisibility(t))}constructor(){super(Nm.type),this.type=Da.dom,this._tooltipContainer=ea==null?void 0:ea.body}onAdd(t){super.onAdd(t),this._initStyle(),this.initEl()}initEl(){const t=this._component.getSpec(),e=t.parentElement;if(ea&&e){for(let i=0;ithis._domStyle,getTooltipActual:()=>this._tooltipActual,getTooltipAttributes:()=>this._attributes,getContainer:()=>this._container},[t.className],this.name)}}_removeTooltip(){var t;(t=this.model)===null||t===void 0||t.release(),this._container=null}_updateTooltip(t,e){var i,s;const{tooltipActual:r,tooltipSpec:a}=e;if(t&&this.model){if(!e.changePositionOnly){this._tooltipActual=r,this._initStyle();const l=!this.model.product;this.model.initAll(),l&&this._initEvent(this.model.product),this.model.setStyle(),this.model.setContent()}this.setVisibility(t);const o=this.model.product;if(o){const{x:l=0,y:h=0}=(i=r.position)!==null&&i!==void 0?i:{};if(a.updateElement){this._updatePosition((s=this._cacheCustomTooltipPosition)!==null&&s!==void 0?s:{x:l,y:h}),a.updateElement(o,r,e);const d=this._getActualTooltipPosition(r,e,{width:o.offsetWidth,height:o.offsetHeight});this._updatePosition(d),this._cacheCustomTooltipPosition=d}else this._updatePosition({x:l,y:h})}}else this.setVisibility(t),this._cacheCustomTooltipPosition=void 0}_initStyle(){this._domStyle=iQ(this._attributes)}_getParentElement(t){var e;return(e=this._container)!==null&&e!==void 0?e:super._getParentElement(t)}isTooltipShown(){return this.getVisibility()}reInit(){super.reInit(),this._initStyle()}_updatePosition({x:t,y:e}){const i=this.model.product;i&&(i.style.transform=`translate3d(${t}px, ${e}px, 0)`)}_initEvent(t){t.addEventListener("pointerleave",e=>{const{renderMode:i,enterable:s}=this._component.getSpec(),r=e.relatedTarget;i==="html"&&s&&(C(r)||r!==this._compiler.getCanvas()&&!WP(r,this.getTooltipContainer()))&&this._component.hideTooltip()})}}Nm.type=Da.dom;const _Q=()=>{WL(Nm)};class Gm extends SS{constructor(){super(Gm.type),this.type=Da.canvas}onAdd(t){var e;super.onAdd(t),this._tooltipCanvasId=(e=this._chartOption.modeParams)===null||e===void 0?void 0:e.tooltipCanvasId}_initTooltipComponent(t){const e=this._getLayer(t);this._tooltipComponent=new AI({autoCalculatePosition:!1,autoMeasure:!1}),e.add(this._tooltipComponent)}_getLayer(t){if(this._layer)return this._layer;this._layer=t.createLayer(this._tooltipCanvasId);const e=this._layer.layerHandler.canvas.nativeCanvas;return e&&e.style&&(e.style.touchAction="none",e.style.pointerEvents="none"),this._layer}_removeTooltip(){this._layer&&this._layer.removeAllChild(),this._attributes=null}_updateTooltip(t,e){this._visible=t;const i=this._compiler.getStage();if(!i)return;if(!t)return void(this._tooltipComponent&&this._tooltipComponent.attribute.visible&&(this._tooltipComponent.hideAll(),this._tooltipComponent.setAttributes({visibleAll:!1})));this._tooltipComponent||this._initTooltipComponent(i);const{tooltipActual:s}=e,r=s.position;e.changePositionOnly?P(r)&&this._tooltipComponent.setAttributes(r):this._tooltipComponent.setAttributes(Object.assign(Object.assign({},this._attributes),r)),this._tooltipComponent.attribute.visible||(this._tooltipComponent.showAll(),this._tooltipComponent.setAttributes({visibleAll:!0}))}isTooltipShown(){var t;return(t=this._tooltipComponent)===null||t===void 0?void 0:t.attribute.visibleAll}release(){var t;super.release(),(t=this._layer)===null||t===void 0||t.release()}}Gm.type=Da.canvas;const mQ=()=>{WL(Gm)},Oh=(n,t)=>{const e=t.beforeCall();return n.forEach((i,s)=>t.call(i,s,e)),e.keyMap&&(e.keyMap.clear(),e.keyMap=null),n},vQ={min:n=>n.length?ti(n.map(t=>1*t)):0,max:n=>n.length?Ve(n.map(t=>1*t)):0,"array-min":n=>n.length?ti(n.map(t=>1*t)):0,"array-max":n=>n.length?Ve(n.map(t=>1*t)):0,values:n=>{const t={},e=[];for(const i of n)t[i]||(e.push(i),t[i]=1);return e}},Vb=(n,t)=>{var e,i;let s=t.fields;if(G(s)&&(s=s()),!(s!=null&&s.length)||!(n!=null&&n.length))return{};s=$l([],s);const r=t.target==="parser"?"parserData":"latestData",a=n[0][r]?n[0][r]:n||[],o=(i=(e=n[0]).getFields)===null||i===void 0?void 0:i.call(e);return NL(a,s,o)},NL=(n,t,e)=>{const i={};let s=[],r=[];return t.forEach(a=>{const o=a.key;i[o]={};const l=e==null?void 0:e[o],h=a.operations,d=h.some(p=>p==="min"||p==="max"||p==="allValid");let c=!0;s.length=0,n.forEach(p=>{p&&s.push(p[o])});const u=s.length;if(d){r.length=0,s.forEach((g,f)=>{oh(g)&&r.push(g)});const p=s;s=r,r=p,c=s.length===u}else s=h.some(p=>p==="array-min"||p==="array-max")?s.reduce((p,g)=>(g&&g.forEach(f=>{oh(f)&&p.push(f)}),p),[]):s.filter(p=>p!==void 0);a.filter&&(s=s.filter(a.filter)),h.forEach(p=>{if(a.customize)i[o][p]=a.customize;else{if(l&&l.lockStatisticsByDomain&&!C(l.domain)){if(p==="values")return void(i[o][p]=l.domain.slice())}else if(p==="allValid")return;i[o][p]=vQ[p](s),p==="array-max"&&(i[o].max=i[o][p]),p==="array-min"&&(i[o].min=i[o][p])}}),d&&(i[o].allValid=c)}),i},yQ=(n,t)=>{const{config:e}=t;if(!e)return n;const{invalidType:i,checkField:s}=e();return i!=="zero"||s&&s.length&&n.forEach(r=>{s.forEach(a=>{oh(r[a])||(r[a]=0)})}),n};class Ys extends $s{_compileProduct(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.latestData;C(e)||P(this.getProduct())||this._initProduct([])}generateProductId(){var t;return(t=this._data)===null||t===void 0?void 0:t.name}}const Xc=`${yt}_HIERARCHY_DEPTH`,xr=`${yt}_HIERARCHY_ROOT`,bQ=`${yt}_HIERARCHY_ROOT_INDEX`;function gh(){return{keyMap:new Map,needDefaultSeriesField:!this._seriesField,defaultSeriesField:this._seriesField?null:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey)}}function Ho(n,t,e){n&&(e.needDefaultSeriesField&&(n[xn]=e.defaultSeriesField),n[Xi]=t,n[Qn]=e.getKey(n,t,e))}function AS(){return{keyMap:new Map,needDefaultSeriesField:!0,defaultSeriesField:this.getSeriesKeys()[0],getKey:this.generateDefaultDataKey(this._spec.dataKey),categoryField:this.getCategoryField()}}function Um(n,t,e,i=0,s,r){r===void 0&&(r=t),Ho(n,t,e),n[Xc]=i,n[xr]=s||n[e.categoryField],n[bQ]=r,n.children&&n.children.length&&n.children.forEach((a,o)=>Um(a,o,e,n[Xc]+1,n[xr],r))}const oC=["appear","enter","update","exit","disappear","normal"];function zt(n={},t,e){const i={};for(let s=0;s{h.controlOptions={stopWhenStateChange:!0}}),a?(l=V(a)?a.map((h,d)=>{var c;let u=h;return dC(u)&&delete u.type,u.oneByOne&&(u=lC(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:hC,e==null?void 0:e.dataCount)),u}):o.map((h,d)=>{var c;let u=vt({},o[d],a);return dC(u)&&delete u.type,u.oneByOne&&(u=lC(u,(c=e==null?void 0:e.dataIndex)!==null&&c!==void 0?c:hC,e==null?void 0:e.dataCount)),u}),i[r]=l):i[r]=o}return i.state=i.update,i}function Wt(n,t,e){var i,s,r,a,o;const l={};return P(t.animationAppear)&&(l.appear=(i=t.animationAppear[n])!==null&&i!==void 0?i:t.animationAppear),P(t.animationDisappear)&&(l.disappear=(s=t.animationDisappear[n])!==null&&s!==void 0?s:t.animationDisappear),P(t.animationEnter)&&(l.enter=(r=t.animationEnter[n])!==null&&r!==void 0?r:t.animationEnter),P(t.animationExit)&&(l.exit=(a=t.animationExit[n])!==null&&a!==void 0?a:t.animationExit),P(t.animationUpdate)&&(l.update=(o=t.animationUpdate[n])!==null&&o!==void 0?o:t.animationUpdate),t.animationNormal&&t.animationNormal[n]&&(l.normal=t.animationNormal[n]),SQ(l,e)}function lC(n,t,e){const{oneByOne:i,duration:s,delay:r,delayAfter:a}=n;return n.delay=(o,l,h)=>{const d=t(o,h),c=G(s)?s(o,l,h):z(s)?s:0,u=G(r)?r(o,l,h):z(r)?r:0;let p=G(i)?i(o,l,h):i;return p===!1?u:(p=p===!0?0:p,u+d*(c+p))},n.delayAfter=(o,l,h)=>{const d=t(o,h),c=G(s)?s(o,l,h):z(s)?s:0,u=G(a)?a(o,l,h):z(a)?a:0;let p=G(i)?i(o,l,h):i;return p===!1?u:(p=p===!0?0:p,u+((e?e():l.mark.elements.length)-d)*(c+p))},delete n.oneByOne,n}function hC(n,t){var e,i;return(e=n==null?void 0:n[Xi])!==null&&e!==void 0?e:(i=t==null?void 0:t.VGRAMMAR_ANIMATION_PARAMETERS)===null||i===void 0?void 0:i.elementIndex}function Fr(n,t){var e,i,s,r,a;if(n.animation===!1||((e=n.morph)===null||e===void 0?void 0:e.enable)===!1)return!1;const o=((s=(i=n.animationAppear)===null||i===void 0?void 0:i[t])!==null&&s!==void 0?s:n.animationAppear)!==!1,l=((a=(r=n.animationUpdate)===null||r===void 0?void 0:r[t])!==null&&a!==void 0?a:n.animationUpdate)!==!1;return!(!o||!l)}function xQ(n){return P(n.timeSlices)}function dC(n){return!xQ(n)&&P(n.channel)}function SQ(n,t){return n&&(Wb(n=on(n),e=>{var i;return G(e)&&((i=e.prototype)===null||i===void 0?void 0:i.constructor)!==e?(...s)=>e(...s,t):e}),n)}function Wb(n,t){if(V(n))n.forEach((e,i)=>{n[i]=t(n[i],i),Wb(n[i],t)});else if(Ct(n))for(const e in n)n[e]=t(n[e],e),Wb(n[e],t)}function cC(n){var t,e,i,s;const r=n.getSpec();if(r.animation===!1||!P(n.getRegion().animate))return!1;let a=(t=r.animationThreshold)!==null&&t!==void 0?t:Number.MAX_SAFE_INTEGER;return(e=n.getMarks())===null||e===void 0||e.forEach(o=>{const l=o.getProgressiveConfig();l&&(l.large&&l.largeThreshold&&(a=Math.min(a,l.largeThreshold)),l.progressiveThreshold&&(a=Math.min(a,l.progressiveThreshold)))}),!(((s=(i=n.getRawData())===null||i===void 0?void 0:i.latestData)===null||s===void 0?void 0:s.length)>=a)}class pn extends zm{constructor(){super(...arguments),this.markLabelSpec={}}getLabelSpec(t){return this.markLabelSpec[t]}setLabelSpec(t,e){this.markLabelSpec[t]=H(e)}addLabelSpec(t,e,i=!1){this.markLabelSpec[t]||(this.markLabelSpec[t]=[]),i?this.markLabelSpec[t].unshift(e):this.markLabelSpec[t].push(e)}getTheme(t,e){var i,s,r;const a=VO(t),o=(i=this._option)===null||i===void 0?void 0:i.getTheme(),{markByName:l,mark:h}=o,d=this._option.type,c=XO(Pt(o,`series.${d}`),d,h,l),u=Pt(o,`series.${d}_${a}`),p=((r=(s=this.stack)!==null&&s!==void 0?s:u==null?void 0:u.stack)!==null&&r!==void 0?r:c!=null&&c.stack)?Pt(o,`series.${d}_stack`):void 0;return vt({},c,u,p)}transformSpec(t,e,i){this._transformStack(t);const s=super.transformSpec(t,e,i);return this._transformLabelSpec(s.spec),Object.assign(Object.assign({},s),{markLabelSpec:this.markLabelSpec,stack:this.stack})}_transformLabelSpec(t){}_transformStack(t){be(t.stack)&&(this.stack=t.stack),be(t.percent)&&(this.stack=t.percent||this.stack),C(this.stack)&&this._supportStack&&t.seriesField&&(this.stack=!0)}_addMarkLabelSpec(t,e,i="label",s="initLabelMarkStyle",r,a){t&&H(t[i]).forEach(o=>{o&&o.visible&&this.addLabelSpec(e,Object.assign(Object.assign({animation:r??t.animation},o),{getStyleHandler:l=>{var h;return(h=l[s])===null||h===void 0?void 0:h.bind(l)}}),a)})}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{outerRadius:s,innerRadius:r,direction:a}=t;return P(s)&&(i.outerRadius=s),P(r)&&(i.innerRadius=r),P(a)&&(i.direction=a),Object.keys(i).length>0?i:void 0}_mergeThemeToSpec(t,e){const i=this._theme;if(this._shouldMergeThemeToSpec()){const s=this._getDefaultSpecFromChart(e),r=a=>{const o=vt({},i,s,a),l=i.label;return l&&Ct(l)&&V(o.label)&&(o.label=o.label.map(h=>vt({},l,h))),o};return V(t)?{spec:t.map(a=>r(a)),theme:i}:{spec:r(t),theme:i}}return{spec:t,theme:i}}}function AQ(n){return n===Ke["desktop-browser"]||n===Ke["desktop-miniApp"]?{hover:{enable:!0,trigger:"pointermove",triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"pointertap"}}:Ba(n)||ja(n)?{hover:{enable:!0,trigger:["pointerdown","pointermove"],triggerOff:"view:pointerleave"},select:{enable:!0,trigger:"tap"}}:null}class Vo extends vS{getRegion(){return this._region}getLayoutStartPoint(){return this._region.getLayoutStartPoint()}getRootMark(){return this._rootMark}getSeriesMark(){return this._seriesMark}getRawData(){return this._rawData}getViewDataFilter(){return this._viewDataFilter}getViewData(){var t;return(t=this._data)===null||t===void 0?void 0:t.getDataView()}getViewDataProductId(){var t;return(t=this._data)===null||t===void 0?void 0:t.getProductId()}getViewDataStatistics(){return this._viewDataStatistics}getViewStackData(){return this._viewStackData}getSeriesField(){return this._seriesField}setSeriesField(t){P(t)&&(this._seriesField=t,this.getMarks().filter(e=>e.getDataView()===this.getViewData()).forEach(e=>{e.setFacet(this._seriesField)}))}getGroups(){return this._groups}getStack(){var t;return(t=this.getSpecInfo())===null||t===void 0?void 0:t.stack}getStackValue(){var t;return(t=this._spec.stackValue)!==null&&t!==void 0?t:`${yt}_series_${this.type}`}getPercent(){return this._spec.percent}getStackOffsetSilhouette(){return this._spec.stackOffsetSilhouette}get tooltipHelper(){return this._tooltipHelper||this.initTooltip(),this._tooltipHelper}getInvalidType(){return this._invalidType}setInvalidType(t){var e;this._invalidType=t,(e=this.getViewData())===null||e===void 0||e.reRunAllTransform()}getMarkAttributeContext(){return this._markAttributeContext}constructor(t,e){var i;super(t,e),this.specKey="series",this.type="series",this.layoutType="absolute",this.modelType="series",this.name=void 0,this.transformerConstructor=pn,this.coordinate="none",this._region=null,this._layoutStartPoint={x:0,y:0},this._layoutRect={width:null,height:null},this.getLayoutRect=()=>{var s,r;return{width:(s=this._layoutRect.width)!==null&&s!==void 0?s:this._region.getLayoutRect().width,height:(r=this._layoutRect.height)!==null&&r!==void 0?r:this._region.getLayoutRect().height}},this._rootMark=null,this._seriesMark=null,this._viewDataMap=new Map,this._viewDataFilter=null,this._data=null,this.layoutZIndex=0,this._invalidType="break",this._region=e.region,this._dataSet=e.dataSet,!((i=this._spec)===null||i===void 0)&&i.name&&(this.name=this._spec.name)}created(){super.created(),this._buildMarkAttributeContext(),this.initData(),this.initGroups(),this.initStatisticalData(),this.event.emit(ft.afterInitData,{model:this}),this.initRootMark(),this.initMark();const t=cC(this);this._initExtensionMark({hasAnimation:t}),this.initMarkStyle(),this.initMarkState(),t&&this.initAnimation(),this._option.disableTriggerEvent||this.initInteraction(),this.afterInitMark(),this.initEvent(),this.event.emit(ft.afterInitEvent,{model:this})}_buildMarkAttributeContext(){this._markAttributeContext={vchart:this._option.globalInstance,globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)},seriesColor:t=>{var e;return C(t)&&(t=this.getSeriesKeys()[0]),(e=this._option.globalScale.getScale("color"))===null||e===void 0?void 0:e.scale(t)},getRegion:()=>this._region}}setAttrFromSpec(){super.setAttrFromSpec(),this.setSeriesField(this._spec.seriesField),P(this._spec.invalidType)&&(this._invalidType=this._spec.invalidType)}getInvalidCheckFields(){return[this.getStackValueField()]}initInvalidDataTransform(){var t,e;this._invalidType==="zero"&&(!((t=this._rawData)===null||t===void 0)&&t.dataSet)&&(Tt(this._rawData.dataSet,"invalidTravel",yQ),(e=this._rawData)===null||e===void 0||e.transform({type:"invalidTravel",options:{config:()=>({invalidType:this._invalidType,checkField:this.getInvalidCheckFields()})}},!1))}initData(){var t,e,i,s;const r=(t=this._spec.data)!==null&&t!==void 0?t:this._option.getSeriesData(this._spec.dataId,this._spec.dataIndex);if(r&&(this._rawData=fS(r,this._dataSet,this._option.sourceDataList,{onError:(e=this._option)===null||e===void 0?void 0:e.onError})),(s=(i=this._rawData)===null||i===void 0?void 0:i.target)===null||s===void 0||s.addListener("change",this.rawDataUpdate.bind(this)),this._addDataIndexAndKey(),this._rawData){this.getStack()&&(this._viewDataFilter=Fb(this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewDataFilter`}));const a=Fb(this.getStack()?this._viewDataFilter:this._rawData,this._dataSet,{name:`${this.type}_${this.id}_viewData`});this._data=new Ys(this._option,a),this.getStack()&&this._viewDataFilter.target.removeListener("change",a.reRunAllTransform)}this.initInvalidDataTransform()}initGroups(){const t=this.getGroupFields();t&&t.length&&(this._groups={fields:t})}initStatisticalData(){this._data&&this._statisticViewData()}getRawDataStatisticsByField(t,e){var i,s,r;if(this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]||e&&(C(this._rawStatisticsCache[t].min)||C(this._rawStatisticsCache[t].max))||!e&&C(this._rawStatisticsCache[t].values)){if(this._viewDataStatistics&&(!this._viewDataFilter||this._viewDataFilter.transformsArr.length<=1)&&this.getViewData().transformsArr.length<=1&&(!((i=this._viewDataStatistics.latestData)===null||i===void 0)&&i[t]))this._rawStatisticsCache[t]=this._viewDataStatistics.latestData[t];else if(this._rawData){const a=(s=this._rawData.getFields())===null||s===void 0?void 0:s[t];if(a&&a.lockStatisticsByDomain&&a.domain)this._rawStatisticsCache[t]={},e?(this._rawStatisticsCache[t].min=ti(a.domain),this._rawStatisticsCache[t].max=Ve(a.domain)):this._rawStatisticsCache[t].values=a.domain;else{const o=NL(this._rawData.latestData,[{key:t,operations:e?["min","max"]:["values"]}])[t];this._rawStatisticsCache[t]=Y((r=this._rawStatisticsCache[t])!==null&&r!==void 0?r:{},o)}}}return this._rawStatisticsCache[t]}_statisticViewData(){Tt(this._dataSet,"dimensionStatistics",Vb);const t=`${this.type}_${this.id}_viewDataStatic`;this._viewDataStatistics=new Ut(this._dataSet,{name:t}),this._viewDataStatistics.parse([this._data.getDataView()],{type:"dataview"}),this._viewDataStatistics.transform({type:"dimensionStatistics",options:{fields:()=>{const e=this.getStatisticFields();return this._seriesField&&$l(e,[{key:this._seriesField,operations:["values"]}]),e},target:"latest"}},!1),this._data.getDataView().target.removeListener("change",this._viewDataStatistics.reRunAllTransform),this.getStack()&&this.createdStackData()}createStatisticalData(t,e,i){Tt(this._dataSet,"dimensionStatistics",Vb);const s=new Ut(this._dataSet,{name:t});return s.parse([e],{type:"dataview"}),s.transform({type:"dimensionStatistics",options:{operations:["max","min","values"],fields:()=>{var r;const a=$l(this.getStatisticFields(),(r=i==null?void 0:i(e.name))!==null&&r!==void 0?r:[]);return this._seriesField&&$l(a,[{key:this._seriesField,operations:["values"]}]),a},target:"latest"}},!1),s}createdStackData(){const t=`${this.type}_${this.id}_viewStackData`;this._viewStackData=new Ut(this._dataSet,{name:t}),this._viewStackData.parse([this._viewDataFilter],{type:"dataview"}),this._viewStackData.transform({type:"stackSplit",options:{fields:this.getStackGroupFields()}},!1)}_noAnimationDataKey(t,e){return e}generateDefaultDataKey(t){var e;return C(t)?(i,s,r)=>{if(this._spec.animation===!1){const l=this._noAnimationDataKey(i,s);if(l!==void 0)return l}const{keyMap:a}=r,o=this._getSeriesDataKey(i);return a.get(o)===void 0?(a.set(o,0),o):(a.set(o,a.get(o)+1),`${o}_${a.get(o)}`)}:at(t)?i=>i[t]:V(t)&&t.every(i=>at(i))?i=>t.map(s=>i[s]).join("-"):G(t)?(i,s)=>t(i,s):((e=this._option)===null||e===void 0||e.onError(`invalid dataKey: ${t}`),(i,s)=>{})}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(Tt(this._rawData.dataSet,"addVChartProperty",Oh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:gh.bind(this),call:Ho}},!1))}updateRawData(t){this._rawData&&this._rawData.updateRawData(t)}rawDataUpdate(t){var e;(e=this._rawDataStatistics)===null||e===void 0||e.reRunAllTransform(),this._rawStatisticsCache=null,this.event.emit(ft.rawDataUpdate,{model:this})}viewDataFilterOver(t){this.event.emit(ft.viewDataFilterOver,{model:this})}viewDataUpdate(t){var e;this.event.emit(ft.viewDataUpdate,{model:this}),(e=this._data)===null||e===void 0||e.updateData(),this._viewDataStatistics&&this._viewDataStatistics.reRunAllTransform()}viewDataStatisticsUpdate(t){this.event.emit(ft.viewDataStatisticsUpdate,{model:this})}getDatumPositionValue(t,e){return!t||C(e)?null:t[e]}getDatumPositionValues(t,e){return!t||C(e)?[]:at(e)?[t[e]]:e.map(i=>t[i])}setValueFieldToStack(){}setValueFieldToPercent(){}setValueFieldToStackOffsetSilhouette(){}initRootMark(){var t,e;this._rootMark=this._createMark({type:"group",name:`seriesGroup_${this.type}_${this.id}`},{parent:(e=(t=this._region).getGroupMark)===null||e===void 0?void 0:e.call(t),dataView:!1}),this._rootMark.setZIndex(this.layoutZIndex)}_getExtensionMarkNamePrefix(){return`${this.type}_${this.id}_extensionMark`}_initExtensionMark(t){var e;if(!this._spec.extensionMark)return;const i=this.getMarksWithoutRoot();t.depend=i,(e=this._spec.extensionMark)===null||e===void 0||e.forEach((s,r)=>{this._createExtensionMark(s,null,this._getExtensionMarkNamePrefix(),r,t)})}_createExtensionMark(t,e,i,s,r){var a;const o=this._createMark({type:t.type,name:`${i}_${s}`},{skipBeforeLayouted:!0,markSpec:t,parent:e,dataView:!1,customShape:t==null?void 0:t.customShape,componentType:t.componentType,depend:r.depend,key:t.dataKey});if(o){if(r.hasAnimation){const l=zt({},Wt(t.type,t,this._markAttributeContext));o.setAnimationConfig(l)}if(t.type==="group")i=`${i}_${s}`,(a=t.children)===null||a===void 0||a.forEach((l,h)=>{this._createExtensionMark(l,o,i,h,r)});else if(!(e||C(t.dataId)&&C(t.dataIndex))){const l=this._option.getSeriesData(t.dataId,t.dataIndex);l===this._rawData?o.setDataView(this.getViewData(),this.getViewDataProductId()):(o.setDataView(l),l.target.addListener("change",()=>{o.getData().updateData()}))}}}_updateExtensionMarkSpec(){var t;(t=this._spec.extensionMark)===null||t===void 0||t.forEach((e,i)=>{const s=this._marks.getMarkWithInfo({name:`${this._getExtensionMarkNamePrefix()}_${i}`});s&&(this.initMarkStyleWithSpec(s,e),s.updateStaticEncode(),s.updateLayoutState())})}getStackData(){var t;return(t=this._viewStackData)===null||t===void 0?void 0:t.latestData}_parseSelectorOfInteraction(t,e){if(!e||!e.length)return[];const i=[];return t.markIds?e.filter(s=>{t.markIds.includes(s.getProductId())&&i.push(`#${s.getProductId()}`)}):t.markNames?e.forEach(s=>{t.markNames.includes(s.name)&&i.push(`#${s.getProductId()}`)}):e.forEach(s=>{i.push(`#${s.getProductId()}`)}),i}_parseDefaultInteractionConfig(t){if(!(t!=null&&t.length))return[];const e=AQ(this._option.mode);let i=Object.assign({},e==null?void 0:e.hover),s=Object.assign({},e==null?void 0:e.select);const r=this._spec.hover;be(r)?i.enable=r:Ct(r)&&(i.enable=!0,i=vt(i,r));const a=this._spec.select;be(a)?s.enable=a:Ct(a)&&(s.enable=!0,s=vt(s,a));const o=[];if(i.enable){const l=this._parseSelectorOfInteraction(i,t);l.length&&o.push({seriesId:this.id,regionId:this._region.id,selector:l,type:"element-highlight",trigger:i.trigger,triggerOff:i.triggerOff,blurState:dt.STATE_HOVER_REVERSE,highlightState:dt.STATE_HOVER})}if(s.enable){const l=this._parseSelectorOfInteraction(s,t),h=s.mode==="multiple",d=P(s.triggerOff)?s.triggerOff:h?["empty"]:["empty",s.trigger];l.length&&o.push({type:"element-select",seriesId:this.id,regionId:this._region.id,selector:l,trigger:s.trigger,triggerOff:d,reverseState:dt.STATE_SELECTED_REVERSE,state:dt.STATE_SELECTED,isMultiple:h})}return o}_parseInteractionConfig(t){const e=this.getCompiler();if(!e)return;const{interactions:i}=this._spec,s=this._parseDefaultInteractionConfig(t);s&&s.length&&s.forEach(r=>{e.addInteraction(r)}),i&&i.length&&i.forEach(r=>{const a=this._parseSelectorOfInteraction(r,this.getMarks());a.length&&e.addInteraction(Object.assign(Object.assign({},r),{selector:a,seriesId:this.id,regionId:this._region.id}))})}initInteraction(){const t=this.getMarksWithoutRoot();this._parseInteractionConfig(t)}initAnimation(){}initMarkState(){this.initSeriesStyleState()}initSeriesStyleState(){var t;const e=this._spec.seriesStyle;if(!e||!e.length)return;const i=(t=this._seriesField)!==null&&t!==void 0?t:xn;this.getMarksWithoutRoot().forEach(s=>{const r={},a={},o={};e.forEach(h=>{var d;const c=(d=h[s.name])===null||d===void 0?void 0:d.style;c&&(r[h.name]=!0,o[h.name]=o[h.name]||{},Object.keys(c).forEach(u=>{a[u]=!0,o[h.name][u]=c[u]}))}),s.state.addStateInfo({stateValue:mw,level:-1,filter:h=>Array.isArray(h)?h.length!==0&&r[h[0][i]]===!0:r[h[i]]===!0});const l={};Object.keys(a).forEach(h=>{l[h]=d=>{var c,u;let p;if(Array.isArray(d)){if(d.length===0)return;p=(c=o[d[0][i]])===null||c===void 0?void 0:c[h]}return p=(u=o[d[i]])===null||u===void 0?void 0:u[h],P(p)?p:s.getAttribute(h,d)}}),this.setMarkStyle(s,l,mw,tt.User_SeriesStyle)})}afterInitMark(){this.event.emit(ft.afterInitMark,{model:this}),this.setSeriesField(this._spec.seriesField),this.getMarks().forEach(t=>{var e,i;!((i=(e=t.stateStyle)===null||e===void 0?void 0:e.normal)===null||i===void 0)&&i.lineWidth&&t.setAttribute("stroke",this.getColorAttribute(),"normal",tt.Base_Series)})}getMarksWithoutRoot(){return this.getMarks().filter(t=>!t.name.includes("seriesGroup"))}getMarksInType(t){return this._marks.getMarksInType(t)}getMarkInName(t){return this._marks.get(t)}getMarkInId(t){return this.getMarks().find(e=>e.id===t)}initEvent(){var t,e,i;(e=(t=this._data)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.target.addListener("change",this.viewDataUpdate.bind(this)),(i=this._viewDataStatistics)===null||i===void 0||i.target.addListener("change",this.viewDataStatisticsUpdate.bind(this))}_releaseEvent(){super._releaseEvent(),this.getCompiler().removeInteraction(this.id)}initTooltip(){this._tooltipHelper=new un(this)}_compareSpec(t,e,i){var s,r;const a=super._compareSpec(t,e),o=Object.keys(e||{}).sort(),l=Object.keys(t||{}).sort();return ue(o,l)?((i=Object.assign(Object.assign(Object.assign({},$K),Aw),i)).invalidType=!0,t.invalidType!==e.invalidType&&(a.reCompile=!0),i.extensionMark=!0,(H(t.extensionMark).length!==H(e.extensionMark).length||!((s=e.extensionMark)===null||s===void 0)&&s.some((h,d)=>h.type!==t.extensionMark[d].type||h.id!==t.extensionMark[d].id))&&(a.reMake=!0),a.reMake?a:(!((r=e.extensionMark)===null||r===void 0)&&r.some((h,d)=>h.visible!==t.extensionMark[d].visible)&&(a.reCompile=!0),this._marks.getMarks().some(h=>{var d,c;return i[h.name]=!0,((d=e[h.name])===null||d===void 0?void 0:d.visible)!==((c=t[h.name])===null||c===void 0?void 0:c.visible)})&&(a.reCompile=!0),o.some(h=>Aw[h]&&!ue(t[h],e[h]))&&(a.reCompile=!0),o.some(h=>!i[h]&&!ue(t[h],e[h]))&&(a.reMake=!0),a)):(a.reMake=!0,a)}_updateSpecData(){!this._rawData||!this._spec.data||this._spec.data instanceof Ut||_S(this._rawData,this._spec.data,!0)}reInit(t){super.reInit(t);const e=this.getMarksWithoutRoot();e.forEach(i=>{this._spec[i.name]&&this.initMarkStyleWithSpec(i,this._spec[i.name])}),this.initMarkStyle(),e.forEach(i=>{i.updateStaticEncode(),i.updateLayoutState(!0)}),this._updateExtensionMarkSpec(),this._updateSpecData(),this._tooltipHelper&&this._tooltipHelper.updateTooltipSpec(),cC(this)&&this.initAnimation()}onEvaluateEnd(t){this._data.updateData()}onRender(t){}release(){var t,e,i;super.release(),this._viewDataMap.clear();const s=(e=(t=this._rawData)===null||t===void 0?void 0:t.transformsArr)===null||e===void 0?void 0:e.findIndex(r=>r.type==="addVChartProperty");s>=0&&this._rawData.transformsArr.splice(s,1),(i=this._data)===null||i===void 0||i.release(),this._dataSet=this._data=this._rawData=this._rawDataStatistics=this._spec=this._region=this._viewDataStatistics=this._viewStackData=null}setLayoutStartPosition(t){z(t.x)&&(this._layoutStartPoint.x=t.x),z(t.y)&&(this._layoutStartPoint.y=t.y)}setLayoutRect({width:t,height:e},i){z(t)&&(this._layoutRect.width=t),z(e)&&(this._layoutRect.height=e)}getSeriesKeys(){var t,e;return this._seriesField?(e=(t=this.getRawDataStatisticsByField(this._seriesField))===null||t===void 0?void 0:t.values)!==null&&e!==void 0?e:[]:this.name?[this.name]:this.userId?[`${this.userId}`]:[`${this.type}_${this.id}`]}getSeriesStyle(t){return e=>{var i,s;return(s=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&s!==void 0?s:void 0}}_getSeriesInfo(t,e){const i=this.getDefaultShapeType();return e.map(s=>({key:s,originalKey:s,style:this.getSeriesStyle({[t]:s}),shapeType:i}))}getSeriesInfoInField(t){var e,i;return this._getSeriesInfo(t,(i=(e=this.getRawDataStatisticsByField(t))===null||e===void 0?void 0:e.values)!==null&&i!==void 0?i:[])}getSeriesInfoList(){var t;return this._getSeriesInfo((t=this._seriesField)!==null&&t!==void 0?t:xn,this.getSeriesKeys())}_getDefaultColorScale(){var t,e;const i=this.getDefaultColorDomain(),s=this._getDataScheme();return(e=(t=new Ru().domain(i)).range)===null||e===void 0?void 0:e.call(t,s)}_getDataScheme(){return Wc(this.getColorScheme(),this.type)}getDefaultColorDomain(){var t,e;return this._seriesField?(e=(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._seriesField])===null||e===void 0?void 0:e.values:[]}getColorAttribute(){var t,e;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(e=this._seriesField)!==null&&e!==void 0?e:xn}}getDimensionField(){return[]}getMeasureField(){return[]}onMarkPositionUpdate(){this.onMarkTreePositionUpdate(this.getMarksWithoutRoot())}onMarkTreePositionUpdate(t){}_createMark(t,e={}){var i,s,r,a;const{key:o,groupKey:l,skipBeforeLayouted:h,themeSpec:d={},markSpec:c,dataView:u,dataProductId:p,parent:g,isSeriesMark:f,depend:_,progressive:m,support3d:y=this._spec.support3d||!!this._spec.zField,morph:b=!1,clip:v,customShape:x,stateSort:S,noSeparateStyle:k=!1}=e,A=super._createMark(t,{key:o??this._getDataIdKey(),support3d:y,seriesId:this.id,attributeContext:this._markAttributeContext,componentType:e.componentType,noSeparateStyle:k});if(P(A)){this._marks.addMark(A,{name:t.name}),f&&(this._seriesMark=A),C(g)?(i=this._rootMark)===null||i===void 0||i.addMark(A):g!==!1&&g.addMark(A),C(u)?(A.setDataView(this.getViewData(),this.getViewDataProductId()),A.setSkipBeforeLayouted(!0)):u!==!1&&A.setDataView(u,p),be(h)&&A.setSkipBeforeLayouted(h),P(_)&&A.setDepend(...H(_));const T=this.getSpec()||{};A.setMorph(b),A.setMorphKey(((s=T.morph)===null||s===void 0?void 0:s.morphKey)||`${this.getSpecIndex()}_${this.getMarks().length}`),A.setMorphElementKey((a=(r=T.morph)===null||r===void 0?void 0:r.morphElementKey)!==null&&a!==void 0?a:e.defaultMorphElementKey),C(m)||A.setProgressiveConfig(m),C(l)||A.setGroupKey(l),x&&A.setCustomizedShapeCallback(x),S&&A.setStateSortCallback(S),v&&A.setClip(v),this.initMarkStyleWithSpec(A,vt({},d,c||T[A.name]))}return A}_getDataIdKey(){var t;return(t=super._getDataIdKey())!==null&&t!==void 0?t:Qn}_getSeriesDataKey(t){let e="";if(!t)return e;const i=this.getDimensionField();e=i.map(r=>t[r]).join("_");const s=this.getSeriesField();return s&&!i.includes(s)&&(e+=`_${t[s]}`),e}addViewDataFilter(t){var e,i;(i=(e=this._viewDataFilter)!==null&&e!==void 0?e:this.getViewData())===null||i===void 0||i.transform(t,!1)}reFilterViewData(){var t,e;(e=(t=this._viewDataFilter)!==null&&t!==void 0?t:this.getViewData())===null||e===void 0||e.reRunAllTransform()}reTransformViewData(){var t,e;(e=(t=this._data)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.reRunAllTransform()}fillData(){var t;(t=this.getRawData())===null||t===void 0||t.reRunAllTransform()}compile(){this.compileData()}getDefaultShapeType(){return"circle"}getFieldAlias(t){var e;return t!==qe&&t!==La&&t!==An&&t!==zo||(t=this.getStackValueField()),(e=Yf(this.getRawData(),t))!==null&&e!==void 0?e:t}getMarkInfoList(){var t;const e=super.getMarkInfoList();return e.length?e:Object.values((t=Wf[this.type])!==null&&t!==void 0?t:{})}_getInvalidConnectType(){return this._invalidType==="zero"?"zero":this._invalidType==="link"?"connect":"none"}_getInvalidDefined(t){const e=this.getInvalidCheckFields();return!e.length||e.every(i=>oh(t[i]))}_getRelatedComponentSpecInfo(t){var e;const i=this.getSpecIndex(),s=(e=this._option.getSpecInfo().component[t])===null||e===void 0?void 0:e.filter(r=>r.seriesIndexes.includes(i));return s??[]}_forEachStackGroup(t,e){var i,s;(e=e??((i=this._viewStackData)===null||i===void 0?void 0:i.latestData))&&(!((s=e.values)===null||s===void 0)&&s.length?t(e):e.nodes&&Object.values(e.nodes).forEach(r=>{this._forEachStackGroup(t,r)}))}isDatumInViewData(t){if(!t)return!1;const e=this.getViewData().latestData;return!!e&&(!!e.includes(t)||e.some(i=>Object.keys(t).every(s=>t[s]===i[s])))}getSeriesFieldValue(t,e){var i;return t[(i=e??this.getSeriesField())!==null&&i!==void 0?i:xn]}}Vo.mark=me,Vo.transformerConstructor=pn;function kQ(n){return[j.rose,j.radar,j.circularProgress].includes(n)}function GL(n,t,e){const i=n.getScale(0),s="isInverse"in n&&n.isInverse();ie(i.type)?e.sort((r,a)=>(r[t]-a[t])*(s?-1:1)):e.sort((r,a)=>(i.index(r[t])-i.index(a[t]))*(s?-1:1))}function Na(n){return{dataIndex:t=>{var e,i;const s=n.direction==="horizontal"?n.fieldY[0]:n.fieldX[0],r=t==null?void 0:t[s],a=n.direction==="horizontal"?n.scaleY:n.scaleX;return((i=(e=a==null?void 0:a.domain)===null||e===void 0?void 0:e.call(a))!==null&&i!==void 0?i:[]).indexOf(r)||0},dataCount:()=>{var t,e,i;const s=n.direction==="horizontal"?n.scaleY:n.scaleX;return(i=((e=(t=s==null?void 0:s.domain)===null||t===void 0?void 0:t.call(s))!==null&&e!==void 0?e:[]).length)!==null&&i!==void 0?i:0}}}class as extends Vo{constructor(){super(...arguments),this.coordinate="cartesian",this._bandPosition=.5,this._scaleConfig={bandPosition:this._bandPosition},this._direction="vertical",this._sortDataByAxis=!1,this._getPositionXEncoder=()=>{var t;return(t=this._positionXEncoder)===null||t===void 0?void 0:t.bind(this)},this._setPositionXEncoder=t=>{this._positionXEncoder=t.bind(this)},this._getPositionYEncoder=()=>{var t;return(t=this._positionYEncoder)===null||t===void 0?void 0:t.bind(this)},this._setPositionYEncoder=t=>{this._positionYEncoder=t.bind(this)}}_buildScaleConfig(){this._scaleConfig={bandPosition:this._bandPosition}}get fieldX(){return this._fieldX}setFieldX(t){this._fieldX=H(t)}get fieldY(){return this._fieldY}setFieldY(t){this._fieldY=H(t)}get fieldZ(){return this._fieldZ}setFieldZ(t){this._fieldZ=t&&H(t)}get fieldX2(){return this._fieldX2}setFieldX2(t){this._fieldX2=t}get fieldY2(){return this._fieldY2}setFieldY2(t){this._fieldY2=t}get direction(){return this._direction}get scaleX(){return this._scaleX}setScaleX(t){this._scaleX=t}get scaleY(){return this._scaleY}setScaleY(t){this._scaleY=t}get scaleZ(){return this._scaleZ}setScaleZ(t){this._scaleZ=t}getXAxisHelper(){return this._xAxisHelper}setXAxisHelper(t){this._xAxisHelper=t,this.onXAxisHelperUpdate()}getYAxisHelper(){return this._yAxisHelper}setYAxisHelper(t){this._yAxisHelper=t,this.onYAxisHelperUpdate()}getZAxisHelper(){return this._zAxisHelper}setZAxisHelper(t){this._zAxisHelper=t,this.onYAxisHelperUpdate()}get sortDataByAxis(){return this._sortDataByAxis}getStatisticFields(){const t=[];return[{axisHelper:this.getXAxisHelper(),fields:this._fieldX2?[...this._fieldX,this._fieldX2]:this._fieldX},{axisHelper:this.getYAxisHelper(),fields:this._fieldY2?[...this._fieldY,this._fieldY2]:this._fieldY},{axisHelper:this.getZAxisHelper(),fields:this._fieldZ}].forEach(e=>{e.axisHelper&&e.axisHelper.getScale&&e.fields&&e.fields.forEach(i=>{const s={key:i,operations:[]},r=e.axisHelper.getScale(0);ie(r.type)?(s.operations=["max","min"],r.type==="log"&&(s.filter=a=>a>0)):s.operations=["values"],t.push(s)})}),this.getStack()&&t.push({key:this.getStackValueField(),operations:["allValid"]}),t}getGroupFields(){return this.direction==="vertical"?this._fieldX:this._fieldY}getStackGroupFields(){return this.getGroupFields()}getStackValue(){var t,e;const i=(t=this.direction==="horizontal"?this.getXAxisHelper():this.getYAxisHelper())===null||t===void 0?void 0:t.getAxisId();return(e=this._spec.stackValue)!==null&&e!==void 0?e:`${yt}_series_${this.type}_${i}`}getStackValueField(){return this.direction==="horizontal"?H(this._spec.xField)[0]:H(this._spec.yField)[0]}setValueFieldToStack(){this.direction==="horizontal"?(this.setFieldX(qe),this.setFieldX2(An)):(this.setFieldY(qe),this.setFieldY2(An))}setValueFieldToPercent(){this.direction==="horizontal"?(this.setFieldX(La),this.setFieldX2(zo)):(this.setFieldY(La),this.setFieldY2(zo))}setValueFieldToStackOffsetSilhouette(){this.direction==="horizontal"?(this.setFieldX(wb),this.setFieldX2(Mb)):(this.setFieldY(wb),this.setFieldY2(Mb))}onXAxisHelperUpdate(){this.onMarkPositionUpdate()}onYAxisHelperUpdate(){this.onMarkPositionUpdate()}onZAxisHelperUpdate(){this.onMarkPositionUpdate()}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this.setFieldX(this._spec.xField),this.setFieldY(this._spec.yField),this.setFieldZ(this._spec.zField),this._specXField=H(this._spec.xField),this._specYField=H(this._spec.yField),P(this._spec.direction)&&(this._direction=this._spec.direction),this.setFieldX2((t=this._spec)===null||t===void 0?void 0:t.x2Field),this.setFieldY2((e=this._spec)===null||e===void 0?void 0:e.y2Field),this.getStack()&&this.setValueFieldToStack(),this.getPercent()&&this.setValueFieldToPercent(),this.getStackOffsetSilhouette()&&this.setValueFieldToStackOffsetSilhouette(),P(this._spec.sortDataByAxis)&&(this._sortDataByAxis=this._spec.sortDataByAxis===!0)}dataToPosition(t,e){return t?e&&!this.isDatumInViewData(t)?null:{x:this.dataToPositionX(t),y:this.dataToPositionY(t)}:null}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToX=this.valueToPositionX.bind(this),this._markAttributeContext.valueToY=this.valueToPositionY.bind(this),this._markAttributeContext.xBandwidth=(t=0)=>{var e,i,s;return(s=(i=(e=this.getXAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&s!==void 0?s:0},this._markAttributeContext.yBandwidth=(t=0)=>{var e,i,s;return(s=(i=(e=this.getYAxisHelper()).getBandwidth)===null||i===void 0?void 0:i.call(e,t))!==null&&s!==void 0?s:0},this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this)}valueToPosition(t,e){return{x:this.valueToPositionX(t),y:this.valueToPositionY(e)}}_axisPosition(t,e,i){return this._scaleConfig.datum=i,t.isContinuous?t.valueToPosition(e,this._scaleConfig):t.dataToPosition(H(e),this._scaleConfig)}valueToPositionX(t,e){return this._axisPosition(this._xAxisHelper,t,e)}valueToPositionY(t,e){return this._axisPosition(this._yAxisHelper,t,e)}_dataToPosition(t,e,i,s,r,a){const o=r();if(o)return o(t);if(!e)return a(h=>Number.NaN),Number.NaN;const l=(e.getFields?e.getFields():i).slice(0,s);return l&&l.length!==0?(e.isContinuous?a(h=>(this._scaleConfig.datum=h,e.valueToPosition(this.getDatumPositionValue(h,l[0]),this._scaleConfig))):a(h=>(this._scaleConfig.datum=h,e.dataToPosition(H(this.getDatumPositionValues(h,l)),this._scaleConfig))),r()(t)):(a(h=>null),null)}dataToPositionX(t){return this._dataToPosition(t,this._xAxisHelper,this.fieldX,void 0,this._getPositionXEncoder,this._setPositionXEncoder)}dataToPositionY(t){return this._dataToPosition(t,this._yAxisHelper,this.fieldY,void 0,this._getPositionYEncoder,this._setPositionYEncoder)}dataToPositionZ(t){if(!this._zAxisHelper)return Number.NaN;const{dataToPosition:e}=this._zAxisHelper;return e(this.getDatumPositionValues(t,this._fieldZ),{bandPosition:this._bandPosition})}dataToPositionX1(t){return this._xAxisHelper?this._fieldX2&&this._fieldX2 in t?this.valueToPositionX(this.getDatumPositionValues(t,this._fieldX2)):this.valueToPositionX(0):Number.NaN}dataToPositionY1(t){return this._yAxisHelper?this._fieldY2&&this._fieldY2 in t?this.valueToPositionY(this.getDatumPositionValues(t,this._fieldY2)):this.valueToPositionY(0):Number.NaN}positionToData(t){return t?{x:this.positionToDataX(t.x),y:this.positionToDataY(t.y)}:null}positionToDataX(t){return this._scaleX?this._scaleX.invert(t):null}positionToDataY(t){return this._scaleY?this._scaleY.invert(t):null}getRegionRectLeft(){if(!this._xAxisHelper)return Number.NaN;const{getScale:t}=this._xAxisHelper;return t(0).range()[0]}getRegionRectRight(){if(!this._xAxisHelper)return Number.NaN;const{getScale:t}=this._xAxisHelper;return t(0).range()[1]}afterInitMark(){super.afterInitMark(),this.setFieldX(this._fieldX),this.setFieldY(this._fieldY),this._buildScaleConfig()}getDimensionField(){return this._direction==="horizontal"?this._specYField:this._specXField}getDimensionContinuousField(){return this._direction==="horizontal"?[this.fieldY[0],this.fieldY2]:[this.fieldX[0],this.fieldX2]}getMeasureField(){return this._direction==="horizontal"?this._specXField:this._specYField}initEvent(){super.initEvent(),this.sortDataByAxis&&this.event.on(ft.scaleDomainUpdate,{filter:t=>{var e;return t.model.id===((e=this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper)===null||e===void 0?void 0:e.getAxisId())}},()=>{this._sortDataInAxisDomain()})}_sortDataInAxisDomain(){var t,e,i;!((e=(t=this.getViewData())===null||t===void 0?void 0:t.latestData)===null||e===void 0)&&e.length&&(GL(this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper,this._direction==="horizontal"?this._fieldY[0]:this._fieldX[0],this.getViewData().latestData),(i=this._data)===null||i===void 0||i.updateData(!0))}getInvalidCheckFields(){const t=[];return this._xAxisHelper&&this._xAxisHelper.isContinuous&&this._xAxisHelper.getAxisType()!==U.geoCoordinate&&(this._xAxisHelper.getFields?this._xAxisHelper.getFields():this._specXField).forEach(e=>{t.push(e)}),this._yAxisHelper&&this._yAxisHelper.isContinuous&&this._yAxisHelper.getAxisType()!==U.geoCoordinate&&(this._yAxisHelper.getFields?this._yAxisHelper.getFields():this._specYField).forEach(e=>{t.push(e)}),t}reInit(t){this._positionXEncoder&&(this._positionXEncoder=null),this._positionYEncoder&&(this._positionYEncoder=null),super.reInit(t)}}const UL="monotone",$L="linear",TQ="bevel";class kS{addSamplingCompile(){if(this._spec.sampling){const{width:t,height:e}=this._region.getLayoutRect(),i=[],s=this._fieldY,r=this._fieldX;i.push({type:"sampling",size:this._direction==="horizontal"?e:t,factor:this._spec.samplingFactor,yfield:this._direction==="horizontal"?r[0]:s[0],groupBy:this._seriesField,mode:this._spec.sampling}),this._data.getProduct().transform(i)}}addOverlapCompile(){var t;if(this._spec.markOverlap){const e=[];e.push({type:"markoverlap",direction:this._direction==="horizontal"&&this.coordinate==="cartesian"?2:1,delta:this._spec.pointDis,deltaMul:this._spec.pointDisMul,groupBy:this._seriesField}),(t=this._symbolMark)===null||t===void 0||t.getProduct().transform(e)}}reCompileSampling(){this._spec.sampling&&this.compile()}initLineMark(t,e){var i,s;return this._lineMark=this._createMark(Zr.line,{defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:e==null||e,progressive:t,customShape:(i=this._spec.line)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.line)===null||s===void 0?void 0:s.stateSort}),this._lineMark}initLineMarkStyle(t,e){var i,s;const r=this._lineMark;if(r){if(this.setMarkStyle(r,{stroke:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(r,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:a=>a.model===this},()=>{this.encodeDefined(r,"defined")}),this.coordinate==="polar")this.setMarkStyle(r,{lineJoin:TQ,curveType:$L,closePath:!0},"normal",tt.Series);else{const a=e??((s=(i=this.getSpec().line)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.curveType),o=a===UL?t==="horizontal"?"monotoneY":"monotoneX":a;this.setMarkStyle(r,{curveType:o},"normal",tt.Built_In)}this.setMarkStyle(r,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",tt.Series)}return r}_getEventElement(t,e=!1){let i=[];return t.dimensionInfo.some(s=>(s.data.some(r=>r.series===this&&(i=r.datum,!0)),!i.length)),i}_dimensionTrigger(t){const e=this._getEventElement(t);switch(t.action){case"enter":this._symbolActiveMark.getDataView().parse(e),this._symbolActiveMark.getData().updateData(!1);break;case"leave":this._symbolActiveMark.getDataView().parse([]),this._symbolActiveMark.getData().updateData(!1)}}initSymbolMark(t,e){const i=this._spec.point||{};if(i.visible!==!1&&(this._symbolMark=this._createMark(Zr.point,{morph:Fr(this._spec,Zr.point.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,progressive:t,isSeriesMark:!!e,customShape:i.customShape,stateSort:i.stateSort})),this._spec.activePoint===!0){const s=new Ut(this._option.dataSet,{name:`${yt}_series_${this.id}_active_point`});s.parse([]),this._symbolActiveMark=this._createMark({name:`active_point_${this.id}`,type:"symbol"},{morph:!1,groupKey:this._seriesField,isSeriesMark:!1,dataView:s,parent:this._region.getInteractionMark(),customShape:i.customShape,stateSort:i.stateSort}),this._symbolActiveMark.setVisible(!1)}return this._symbolMark}initSymbolMarkStyle(){const t=this._symbolMark;if(!t)return this._initSymbolActiveMarkAlone(),t;if(this._initSymbolMark(t),this._symbolActiveMark&&this._symbolMark.stateStyle.dimension_hover){this._symbolActiveMark.setVisible(!0),this.event.on(Er.dimensionHover,this._dimensionTrigger.bind(this));for(const e in this._symbolMark.stateStyle){this._symbolActiveMark.stateStyle[e]={};for(const i in this._symbolMark.stateStyle[e])this._symbolActiveMark.stateStyle[e][i]={style:null,level:tt.Series,referer:t}}this._symbolActiveMark.state.changeStateInfo({stateValue:dt.STATE_DIMENSION_HOVER,filter:()=>!0})}return t}_initSymbolMark(t){t&&(this.setMarkStyle(t,{fill:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:e=>e.model===this},()=>{this.encodeDefined(t,"visible")}),this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",tt.Series))}_initSymbolActiveMarkAlone(){var t,e;const i=this._symbolActiveMark;i&&(this._initSymbolMark(i),i&&(!((e=(t=this._spec[Zr.point.name])===null||t===void 0?void 0:t.state)===null||e===void 0)&&e.dimension_hover)&&(i.setVisible(!0),this.event.on(Er.dimensionHover,this._dimensionTrigger.bind(this)),this.initMarkStyleWithSpec(i,vt({},this._spec[Zr.point.name],{visible:!0})),this._symbolActiveMark.state.changeStateInfo({stateValue:dt.STATE_DIMENSION_HOVER,filter:()=>!0})))}initLabelMarkStyle(t){var e;t&&(((e=t.getTarget())===null||e===void 0?void 0:e.type)!=="symbol"&&t.setRule("line-data"),this.setMarkStyle(t,{fill:this.getColorAttribute(),text:i=>i[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null}),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:i=>i.model===this},()=>{this.encodeDefined(t,"visible")}))}initLineLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getSeriesField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null})}encodeDefined(t,e){var i,s,r,a;if(!t)return;const o=this._isFieldAllValid();if(this._invalidType==="zero"||o){if(((s=(i=t.stateStyle.normal)===null||i===void 0?void 0:i[e])===null||s===void 0?void 0:s.style)===!0)return;this.setMarkStyle(t,{[e]:!0},"normal",tt.Series)}else{if(((a=(r=t.stateStyle.normal)===null||r===void 0?void 0:r[e])===null||a===void 0?void 0:a.style)!==!0)return;this.setMarkStyle(t,{[e]:this._getInvalidDefined.bind(this)},"normal",tt.Series)}t.getProduct()&&t.compileEncode()}_isFieldAllValid(){const t=this.getViewDataStatistics(),e=this.getStackValueField();return!!(t&&t.latestData&&e)&&t.latestData[e]&&t.latestData[e].allValid}}class YL extends Oi{setStyle(t,e="normal",i=0,s=this.stateStyle){if(C(t))return;s[e]===void 0&&(s[e]={});const r=this._getIgnoreAttributes(),a=["strokeWidth","lineWidth","lineDash","strokeDash","lineJoin","stroke","strokeOpacity","opacity","fill","fillOpacity","texture","texturePadding","textureSize","textureColor"],o=this.isUserLevel(i);let l=!1;Object.keys(t).forEach(h=>{const d=t[h];if(C(d)||r.includes(h))return;o&&a.includes(h)&&(cb(d==null?void 0:d.type)||d!=null&&d.scale||G(d))&&(l=!0);const c=this._filterAttribute(h,d,e,i,o,s);this.setAttribute(h,c,e,i,s)}),l&&this.setEnableSegments(l)}}class Kc extends YL{constructor(){super(...arguments),this.type=Kc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:1})}_getIgnoreAttributes(){var t,e;return((t=this.model)===null||t===void 0?void 0:t.type)===j.radar&&((e=this.model)===null||e===void 0?void 0:e.coordinate)==="polar"?[]:["fill","fillOpacity"]}}Kc.type="line";const $m=()=>{L.registerMark(Kc.type,Kc),B6(),wL()};class XL extends Oi{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{size:1,symbolType:"circle",fill:void 0,lineWidth:0})}}class qc extends XL{constructor(){super(...arguments),this.type=qc.type}}qc.type="symbol";const zr=()=>{L.registerMark(qc.type,qc),$I()};class Iu extends pn{_transformLabelSpec(t){var e,i,s;((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((s=(i=t.point)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.visible)!==!1?this._addMarkLabelSpec(t,"point"):this._addMarkLabelSpec(t,"line"),this._addMarkLabelSpec(t,"line","lineLabel","initLineLabelMarkStyle",void 0,!0)}}class MQ extends PL{constructor(t){super(),this.component=t}releaseAll(){super.releaseAll(),this.component=null}}function wQ(n,t,e,i){switch(n){case U.cartesianBandAxis:return Xh(to(e,["z"]),"band",t);case U.cartesianLinearAxis:return Xh(to(e,["z"]),"linear",t);case U.cartesianLogAxis:return Xh(to(e,["z"]),"log",t);case U.cartesianSymlogAxis:return Xh(to(e,["z"]),"symlog",t);case U.cartesianAxis:case U.cartesianTimeAxis:return Xh(to(e),void 0,t);case U.polarBandAxis:return ov(e.orient,"band",t);case U.polarLinearAxis:return ov(e.orient,"linear",t);case U.polarAxis:return ov(e.orient,void 0,t);case U.cartesianCrosshair:return LJ(t,i);case U.polarCrosshair:return DJ(t,i);case U.colorLegend:case U.sizeLegend:case U.discreteLegend:case U.dataZoom:case U.scrollBar:return CQ(e,yn(n,t));default:return yn(n,t)}}const CQ=(n,t)=>{var e;const i=(e=n.orient)!==null&&e!==void 0?e:t.orient,s=t[aL(i)],r=vt({},t,s);return delete r.horizontal,delete r.vertical,r};class Ou extends zm{getTheme(t,e){return wQ(this.type,this._option.getTheme(),t,e)}_mergeThemeToSpec(t,e){const{spec:i,theme:s}=super._mergeThemeToSpec(t,e);return this._adjustPadding(i),{spec:i,theme:s}}_adjustPadding(t){const{padding:e,noOuterPadding:i=!0,orient:s}=t;i&&e&&s&&(t.padding=Object.assign(Object.assign({},Pr(e)),{[s]:0}))}}var PQ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var l,h;s instanceof W_||this.event.emit(r,{model:this,node:i,event:s,item:a,datum:o,source:Nt.chart,chart:(h=(l=this._option)===null||l===void 0?void 0:l.globalInstance)===null||h===void 0?void 0:h.getChart()},"model")},this._option.animation&&(this.animate=new _L({getCompiler:e.getCompiler}))}initLayout(){var t;super.initLayout(),this._regions=(t=this._regions)!==null&&t!==void 0?t:this._option.getRegionsInIndex(),this._layout&&(this._layout.layoutBindRegionID=this._regions.map(e=>e==null?void 0:e.id))}changeRegions(t){throw new Error("Method not implemented.")}_getNeedClearVRenderComponents(){throw new Error("Method not implemented.")}onRender(t){throw new Error("Method not implemented.")}getVRenderComponents(){return this._getNeedClearVRenderComponents()}callPlugin(t){this.pluginService&&this.pluginService.getAll().forEach(e=>t(e))}getContainer(){var t;return this._container||(this._container=(t=this._option)===null||t===void 0?void 0:t.globalInstance.getStage().find(e=>e.name==="root",!0)),this._container}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||(i.reMake=["seriesId","seriesIndex","regionId","regionIndex"].some(s=>!ue(e==null?void 0:e[s],t[s]))),(e==null?void 0:e.visible)!==t.visible&&(i.reCompile=!0),i}release(){var t;super.release(),this.clear(),(t=this.pluginService)===null||t===void 0||t.releaseAll(),this.pluginService=null}clear(){var t;const e=this._getNeedClearVRenderComponents();e&&e.length&&e.forEach(i=>{var s;i&&((s=this.getContainer())===null||s===void 0||s.removeChild(i),i=null)}),this._container=null,(t=this.pluginService)===null||t===void 0||t.clearAll()}compile(){this.compileMarks(),this.reAppendComponents()}compileMarks(t){this.getMarks().forEach(e=>{var i;e.compile({group:t}),(i=e.getProduct())===null||i===void 0||i.configure({context:{model:this}})})}reAppendComponents(){const t=this._getNeedClearVRenderComponents();t&&t.length&&t.forEach(e=>{var i;e&&!e.stage&&((i=this.getContainer())===null||i===void 0||i.appendChild(e))})}getBoundsInRect(t,e){return{x1:0,x2:0,y1:0,y2:0}}}gn.transformerConstructor=Ou;class Nb extends Oi{constructor(t,e){super(t,e),this.type="component",this._componentType=e.componentType,this._mode=e.mode}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId();this._product=e.mark(rt.component,t??e.rootMark,{componentType:this._componentType,mode:this._mode}).id(i),this._compiledProductId=i}}Nb.type="component";const Ym=()=>{L.registerMark(Nb.type,Nb)},EQ=n=>n;var RQ=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);sb.setInteractive(this._spec.interactive)),this._option.animation!==!1&&Pt(this._option.getChart().getSpec(),"animation")!==!1&&this._spec.animation===!0){const b=zt((o=L.getAnimationInKey("axis"))===null||o===void 0?void 0:o(),{appear:(h=(l=this._spec.animationAppear)!==null&&l!==void 0?l:Pt(this._option.getChart().getSpec(),"animationAppear.axis"))!==null&&h!==void 0?h:Pt(this._option.getChart().getSpec(),"animationAppear"),disappear:(c=(d=this._spec.animationDisappear)!==null&&d!==void 0?d:Pt(this._option.getChart().getSpec(),"animationDisappear.axis"))!==null&&c!==void 0?c:Pt(this._option.getChart().getSpec(),"animationDisappear"),enter:(p=(u=this._spec.animationEnter)!==null&&u!==void 0?u:Pt(this._option.getChart().getSpec(),"animationEnter.axis"))!==null&&p!==void 0?p:Pt(this._option.getChart().getSpec(),"animationEnter"),exit:(f=(g=this._spec.animationExit)!==null&&g!==void 0?g:Pt(this._option.getChart().getSpec(),"animationExit.axis"))!==null&&f!==void 0?f:Pt(this._option.getChart().getSpec(),"animationExit"),update:(m=(_=this._spec.animationUpdate)!==null&&_!==void 0?_:Pt(this._option.getChart().getSpec(),"animationUpdate.axis"))!==null&&m!==void 0?m:Pt(this._option.getChart().getSpec(),"animationUpdate")});b.enter&&(b.update[0].customParameters={enter:b.enter[0]}),this._marks.forEach(v=>v.setAnimationConfig(b))}}}_shouldComputeTickData(){return this.getVisible()||this._spec.forceInitTick}_initData(){const t=this._initTickDataSet(this._tickTransformOption());t.target.addListener("change",this._forceLayout.bind(this)),this._tickData=[new $s(this._option,t)]}collectData(t,e){const i=[];return Ee(this._regions,s=>{var r;let a=this.collectSeriesField(t,s);if(a=V(a)?ie(this._scale.type)?a:[a[0]]:[a],t||(this._dataFieldText=s.getFieldAlias(a[0])),a){const o=s.getViewData();if(e)a.forEach(l=>{i.push(s.getRawDataStatisticsByField(l,!1))});else if(o&&o.latestData&&o.latestData.length){const l=(r=s.getViewDataStatistics)===null||r===void 0?void 0:r.call(s);a.forEach(h=>{var d;!((d=l==null?void 0:l.latestData)===null||d===void 0)&&d[h]&&i.push(l.latestData[h])})}}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),i}isSeriesDataEnable(){let t=!0;return Ee(this._regions,e=>{var i;V((i=e.getViewDataStatistics())===null||i===void 0?void 0:i.latestData)&&(t=!1)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t}setSeriesAndRegionsFromSpec(){const{seriesId:t,seriesIndex:e,regionId:i,regionIndex:s}=this._spec;P(t)&&(this._seriesUserId=H(t)),P(i)&&(this._regionUserId=H(i)),P(e)&&(this._seriesIndex=H(e)),P(s)&&(this._regionIndex=H(s)),this._regions=this._option.getRegionsInUserIdOrIndex(this._regionUserId,this._regionIndex),this.layout.layoutBindRegionID=this._regions.map(r=>r.id)}getBindSeriesFilter(){return{userId:this._seriesUserId,specIndex:this._seriesIndex}}initEvent(){this.event.on(ft.scaleUpdate,{filter:({model:e})=>(e==null?void 0:e.id)===this.id},this.effect.scaleUpdate.bind(this));const t=CI(this._regions,{userId:this._seriesUserId,specIndex:this._seriesIndex}).map(e=>e.getViewDataStatistics()).filter(e=>!!e);t.length>1?this._option.dataSet.multipleDataViewAddListener(t,"change",()=>{this.updateScaleDomain()}):t.length===1&&t[0].target.addListener("change",()=>{this.updateScaleDomain()}),Ee(this._regions,e=>{e.event.on(ft.rawDataUpdate,{filter:({model:i})=>(i==null?void 0:i.id)===e.id},()=>{this._clearRawDomain()})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}updateScaleDomain(){}_clearRawDomain(){}onLayoutEnd(t){this.updateScaleRange(),this.event.emit(ft.scaleUpdate,{model:this,value:"range"}),super.onLayoutEnd(t)}computeData(t){!this._tickData||!this._tickData.length||t!=="force"&&ue(this._scale.range(),[0,1])||this._tickData.forEach(e=>{e.getDataView().reRunAllTransform(),e.updateData()})}initScales(){this._scales=[this._scale];const t=[];if(Ee(this._regions,e=>{const i=e.getGroups();i&&t.push(i)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t.length!==0){const e=Ve(t.map(i=>i.fields.length));for(let i=1;i{var r,a;return((r=e==null?void 0:e[s])===null||r===void 0?void 0:r.visible)!==((a=t==null?void 0:t[s])===null||a===void 0?void 0:a.visible)}),i))}_delegateAxisContainerEvent(t){t.listenerCount("*")===0&&t.addEventListener("*",(e,i)=>this._delegateEvent(t,e,i))}_getAxisAttributes(){const t=this._spec,e={orient:this.getOrient(),select:this._option.disableTriggerEvent!==!0&&t.select,hover:this._option.disableTriggerEvent!==!0&&t.hover};if(t.domainLine&&t.domainLine.visible?e.line=OJ(t.domainLine):e.line={visible:!1},t.label&&t.label.visible){const i=Ea(t.label,["style","formatMethod","state"]);e.label=i,t.label.style&&(e.label.style=G(t.label.style)?(s,r,a,o)=>{var l;const h=t.label.style(s.rawValue,r,s,a,o);return St(vt({},(l=this._theme.label)===null||l===void 0?void 0:l.style,h))}:St(t.label.style)),(t.label.formatMethod||t.label.formatter)&&(e.label.formatMethod=this._getLabelFormatMethod()),t.label.state&&(e.label.state=MZ(t.label.state))}else e.label={visible:!1};if(t.tick&&t.tick.visible?(e.tick={visible:t.tick.visible,length:t.tick.tickSize,inside:t.tick.inside,alignWithLabel:t.tick.alignWithLabel,dataFilter:t.tick.dataFilter},t.tick.style&&(e.tick.style=G(t.tick.style)?(i,s,r,a)=>{var o;const l=t.tick.style(i,s,r,a);return St(vt({},(o=this._theme.tick)===null||o===void 0?void 0:o.style,l))}:St(t.tick.style)),t.tick.state&&(e.tick.state=rl(t.tick.state))):e.tick={visible:!1},t.subTick&&t.subTick.visible?(e.subTick={visible:t.subTick.visible,length:t.subTick.tickSize,inside:t.subTick.inside,count:t.subTick.tickCount},t.subTick.style&&(e.subTick.style=G(t.subTick.style)?(i,s,r,a)=>{var o;const l=t.subTick.style(i,s,r,a);return St(vt({},(o=this._theme.subTick)===null||o===void 0?void 0:o.style,l))}:St(t.subTick.style)),t.subTick.state&&(e.subTick.state=rl(t.subTick.state))):e.subTick={visible:!1},t.title&&t.title.visible){const i=t.title,{autoRotate:s,angle:r,style:a={},background:o,state:l,shape:h}=i,d=RQ(i,["autoRotate","angle","style","background","state","shape"]);let c,u=r;t.orient!=="left"&&t.orient!=="right"||s&&C(u)&&(u=t.orient==="left"?-90:90,c=IJ[t.orient]),e.title=Object.assign(Object.assign({},d),{autoRotate:!1,angle:u?Jt(u):null,textStyle:vt({},c,St(a)),pickable:a.pickable!==!1,childrenPickable:a.pickable!==!1,state:{}}),h&&h.visible?(e.title.shape=Object.assign(Object.assign({},h),{style:St(h.style)}),h.state&&(e.title.state.shape=rl(h.state))):e.title.shape={visible:!1},o&&o.visible?(e.title.background=Object.assign(Object.assign({},o),{style:St(o.style)}),o.state&&(e.title.state.background=rl(o.state))):e.title.background={visible:!1},l&&(e.title.state.text=rl(l))}else e.title={visible:!1};return t.background&&t.background.visible?(e.panel={visible:!0},t.background.style&&(e.panel.style=St(t.background.style)),t.background.state&&(e.panel.state=rl(t.background.state))):e.panel={visible:!1},e}_getGridAttributes(){const t=this._spec;return{alternateColor:t.grid.alternateColor,alignWithLabel:t.grid.alignWithLabel,style:G(t.grid.style)?()=>(e,i)=>{var s,r;const a=t.grid.style((s=e.datum)===null||s===void 0?void 0:s.rawValue,i,e.datum);return St(vt({},(r=this._theme.grid)===null||r===void 0?void 0:r.style,a))}:St(t.grid.style),subGrid:t.subGrid.visible===!1?{visible:!1}:{type:"line",visible:t.subGrid.visible,alternateColor:t.subGrid.alternateColor,style:St(t.subGrid.style)}}}_getLabelFormatMethod(){const{formatMethod:t,formatter:e}=this._spec.label,{formatFunc:i}=Rr(t,e);return i?(s,r,a)=>i(r.rawValue,r,e):null}_initTickDataSet(t,e=0){return br(this._option.dataSet,"scale",EQ),Tt(this._option.dataSet,"ticks",KY),new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_ticks_${e}`}).parse(this._scales[e],{type:"scale"}).transform({type:"ticks",options:t},!1)}_tickTransformOption(){const t=this._tick||{},e=this._spec.label||{},{tickCount:i,forceTickCount:s,tickStep:r,tickMode:a}=t,{style:o,formatMethod:l,minGap:h}=e;return{sampling:this._spec.sampling!==!1,tickCount:i,forceTickCount:s,tickStep:r,tickMode:a,axisOrientType:this._orient,coordinateType:this._coordinateType,labelStyle:o,labelFormatter:l,labelGap:h}}addTransformToTickData(t,e){this._tickData.forEach(i=>{var s;(s=i==null?void 0:i.getDataView())===null||s===void 0||s.transform(t,e)})}dataToPosition(t){return this._scale.scale(t)}}TS.specKey="axes";const Jo=()=>{e9(),r9(),Ym(),L.registerAnimation("axis",()=>({appear:{custom:yY},update:{custom:vY},exit:{custom:Xj}}))};var uC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this.computeData(i==null?void 0:i.value),Ee(this._regions,s=>{const r=this.getOrient();ke(r)?s.setXAxisHelper(this.axisHelper()):Ds(r)?s.setYAxisHelper(this.axisHelper()):$r(r)&&s.setZAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{let{x:s,y:r}=i;return z(s)&&(s+=+(this._orient==="left")*this.getLayoutRect().width),z(r)&&(r+=+(this._orient==="top")*this.getLayoutRect().height),{x:s,y:r}},this._transformLayoutRect=i=>{if(!this._visible)return i;const s=this._latestBounds.clone().translate(-this.getLayoutStartPoint().x,-this.getLayoutStartPoint().y);switch(this._layout.layoutOrient){case"left":this._layout.layoutRectLevelMap.width===mn&&(i.width=s.x1<0?-s.x1:0);break;case"right":this._layout.layoutRectLevelMap.width===mn&&(i.width=s.x2>0?s.x2:0);break;case"top":this._layout.layoutRectLevelMap.height===mn&&(i.height=s.y1<0?-s.y1:0);break;case"bottom":this._layout.layoutRectLevelMap.height===mn&&(i.height=s.y2>0?s.y2:0)}return i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),this._layout.setRectInSpec(this._layoutCacheProcessing(i))},this._updateAxisLayout=()=>{const i=this.getLayoutStartPoint(),s=this._getUpdateAttribute(!1),{grid:r}=s,a=uC(s,["grid"]),o=this._axisMark.getProduct(),l=vt({x:i.x,y:i.y},this._axisStyle,a);o.encode(l),this._gridMark&&this._gridMark.getProduct().encode(vt({x:i.x,y:i.y},this._getGridAttributes(),r))},this._fixAxisOnZero=()=>{const{onZero:i,visible:s}=this._spec.domainLine;if(this.visible&&i&&s!==!1){const{onZeroAxisId:r,onZeroAxisIndex:a}=this._spec.domainLine,o=this._option.getComponentsByKey("axes"),l=ke(this.getOrient()),h=c=>{var u;return(l?!ke(c.getOrient()):ke(c.getOrient()))&&ie(c.getScale().type)&&(c.getTickData()?(u=c.getTickData().getLatestData())===null||u===void 0?void 0:u.find(p=>p.value===0):c.getScale().domain()[0]<=0&&c.getScale().domain()[1]>=0)},d=o.filter(c=>h(c));if(d.length){let c;if(P(r))c=d.find(u=>u.id===r);else if(P(a)){const u=o[a];h(u)&&(c=u)}else c=d[0];if(c){const u=this._axisMark.getProduct(),p=c.valueToPosition(0);l?u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dy:this._orient==="bottom"?-(c.getScale().range()[0]-p):p})}):u.encode({line:Object.assign(Object.assign({},this._axisStyle.line),{dx:this._orient==="left"?p:-(c.getScale().range()[1]-p)})})}}}},this._orient=to(t,["z"]),$r(this._orient)&&(this.layoutType="absolute"),this._dataSet=e.dataSet,this._coordinateType="cartesian"}static getSpecInfo(t){const e=t[this.specKey];if(!e)return null;const i=t.direction==="horizontal";if(!V(e)){if(!Jw(e))return null;const{axisType:o,componentName:l}=Fw(e,i);return e.type=o,[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:l}]}let s=!0;if(e.filter(o=>o.orient==="z")[0]){const o=e.filter(h=>h.orient==="bottom")[0],l=e.filter(h=>Ds(h.orient))[0];s=e.length===3&&o&&l}let r=e.map((o,l)=>({spec:o,index:l}));s||(r=r.filter(({spec:o})=>o.orient!=="z"));const a=[];return r.forEach(({spec:o,index:l})=>{if(!Jw(o))return;const{axisType:h,componentName:d}=Fw(o,i);o.type=h,a.push({spec:o,specPath:[this.specKey,l],specInfoPath:["component",this.specKey,l],type:d})}),a}static createComponent(t,e){const{spec:i}=t,s=uC(t,["spec"]),r=L.getComponentInKey(s.type);return r?new r(i,Object.assign(Object.assign({},e),s)):(e.onError(`Component ${s.type} not found`),null)}initLayout(){super.initLayout(),this._layout.autoIndent=this._spec.autoIndent!==!1,this._layout.layoutOrient=this._orient}setLayout3dBox(t){this.layout3dBox=t}updateScaleRange(){let t=!1;const{width:e,height:i}=this.getLayoutRect(),{left:s,right:r,top:a,bottom:o}=this._innerOffset;let l=[];ke(this.getOrient())?z(e)&&(l=this._inverse?[e-r,s]:[s,e-r]):$r(this.getOrient())?z(e)&&(l=this._inverse?[e-r,s]:[s,e-r],this._scale.range(l)):z(i)&&(l=this._inverse?[a,i-o]:[i-o,a]);const[h,d]=this._scale.range();return l[0]===h&&l[1]===d||(t=!0,this._scale.range(l)),t}init(t){var e;super.init(t),(e=this.pluginService)===null||e===void 0||e.load(BQ.map(i=>new i)),this.callPlugin(i=>{this.pluginService&&i.onInit&&i.onInit(this.pluginService,this)})}setAttrFromSpec(){var t;if(super.setAttrFromSpec(),this.visible){ke(this.getOrient())?Ae(this._spec.maxHeight)&&(this._spec.maxHeight="30%"):Ae(this._spec.maxWidth)&&(this._spec.maxWidth="30%");const i=this._getAxisAttributes();i.label.formatMethod=this._getLabelFormatMethod(),i.verticalFactor=this.getOrient()==="top"||this.getOrient()==="right"?-1:1,this._axisStyle=i}this._tick=this._spec.tick;const e=(t=this._option.getChart())===null||t===void 0?void 0:t.getSpec();this._inverse=RZ(this._spec,(e==null?void 0:e.direction)==="horizontal")}onLayoutStart(t,e,i){if(super.onLayoutStart(t,e,i),!$r(this.getOrient())&&this._spec.innerOffset){const s=this._spec;Ds(this.getOrient())?["top","bottom"].forEach(r=>{this._innerOffset[r]=Si(s.innerOffset[r],e.height,e)}):["left","right"].forEach(r=>{this._innerOffset[r]=Si(s.innerOffset[r],e.width,e)})}}getSeriesStatisticsField(t){let e;return e=ke(this.getOrient())?t.fieldX:$r(this.getOrient())?t.fieldZ:t.fieldY,ie(this._scale.type)?e:[e[0]]}_tickTransformOption(){var t,e,i;return Object.assign(Object.assign({},super._tickTransformOption()),{noDecimals:(t=this._tick)===null||t===void 0?void 0:t.noDecimals,labelLastVisible:(e=this._spec.label)===null||e===void 0?void 0:e.lastVisible,labelFlush:(i=this._spec.label)===null||i===void 0?void 0:i.flush})}axisHelper(){return{isContinuous:ie(this._scale.type),dataToPosition:this.dataToPosition.bind(this),getScale:(t=0)=>this._scales[t],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>this._inverse===!0,getSpec:()=>this._spec}}afterCompile(){var t;const e=(t=this._axisMark)===null||t===void 0?void 0:t.getProduct();e&&e.addEventListener(ct.AFTER_ELEMENT_ENCODE,()=>{if(this._isLayout===!1&&(ke(this.getOrient())?this.callPlugin(i=>{this.pluginService&&i.onDidLayoutHorizontal&&i.onDidLayoutHorizontal(this.pluginService,this)}):this.callPlugin(i=>{this.pluginService&&i.onDidLayoutVertical&&i.onDidLayoutVertical(this.pluginService,this)}),this._delegateAxisContainerEvent(e.getGroupGraphicItem()),this._unitText)){const{x:i,y:s}=this.getLayoutStartPoint(),r=ke(this._orient)?{x:Ve(this._scale.range())+i,y:s}:{x:i,y:ti(this._scale.range())+s};this._unitText.setAttributes(r)}}),this.callPlugin(i=>{this.pluginService&&i.onDidCompile&&i.onDidCompile(this.pluginService,this)})}onRender(t){}changeRegions(t){}update(t){}resize(t){}collectScale(){const t=[];return Ee(this._regions,e=>{t.push(this.getOrient()==="left"||this.getOrient()==="right"?e.scaleY:e.scaleX)},{userId:this._seriesUserId,specIndex:this._seriesIndex}),t}collectSeriesField(t,e){var i,s;let r;return r=t>0?(s=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||s===void 0?void 0:s[t]:ke(this.getOrient())?e.getSpec().x2Field?[...e.fieldX,e.fieldX2]:e.fieldX:$r(this.getOrient())?e.fieldZ:e.getSpec().y2Field?[...e.fieldY,e.fieldY2]:e.fieldY,r}updateSeriesScale(){const t=this.getOrient();Ee(this._regions,e=>{ke(t)?(e.setScaleX(this._scale),e.setXAxisHelper(this.axisHelper())):Ds(t)?(e.setScaleY(this._scale),e.setYAxisHelper(this.axisHelper())):$r(t)&&(e.setScaleZ(this._scale),e.setZAxisHelper(this.axisHelper()))},{userId:this._seriesUserId,specIndex:this._seriesIndex})}getBoundsInRect(t){var e;let i={x1:0,y1:0,x2:0,y2:0};if(!this._visible)return i;this._verticalLimitSize=ke(this.getOrient())?t.height:t.width,this.setLayoutRect(t),!this.updateScaleRange()&&V((e=this.getTickData())===null||e===void 0?void 0:e.getLatestData())||this.computeData("range");const s={skipLayout:!1},r=ke(this.getOrient());this.pluginService&&(r?this.callPlugin(l=>{l.onWillLayoutHorizontal&&l.onWillLayoutHorizontal(this.pluginService,s,this)}):this.callPlugin(l=>{l.onWillLayoutVertical&&l.onWillLayoutVertical(this.pluginService,s,this)}));const a=this._axisMark.getProduct();let o=!1;if(!s.skipLayout){const l=this._getUpdateAttribute(!0),h=a.getGroupGraphicItem(),d=vt(Object.assign({},this.getLayoutStartPoint()),this._axisStyle,l,{line:{visible:!1}}),c=h.getBoundsWithoutRender(d);o=!0,this._latestBounds=c,isFinite(c.width())&&(i=this._appendAxisUnit(c,r))}return o||(this._latestBounds=a.getBounds()),i}_getTitleLimit(t){var e,i,s,r,a;if(this._spec.title.visible&&C((e=this._spec.title.style)===null||e===void 0?void 0:e.maxLineWidth)){const o=(a=(s=(i=this._axisStyle.title)===null||i===void 0?void 0:i.angle)!==null&&s!==void 0?s:(r=this._spec.title.style)===null||r===void 0?void 0:r.angle)!==null&&a!==void 0?a:0;if(t){const d=this.getLayoutRect().width,c=Math.abs(Math.cos(o));return c<1e-6?1/0:d/c}const l=this.getLayoutRect().height,h=Math.abs(Math.sin(o));return h<1e-6?1/0:l/h}return null}_getUpdateAttribute(t){var e;let i=0,s=0;if(!t){const m=this.getRegions();let{x:y,y:b}=m[0].getLayoutStartPoint(),v=y+m[0].getLayoutRect().width,x=b+m[0].getLayoutRect().height;for(let S=1;S{const r=this._getNormalizedValue([s.value],t);return ph(s.value,r)}).filter(s=>s.value>=0&&s.value<=1)]:[]}initEvent(){super.initEvent(),this.visible&&(this.event.on(ft.layoutEnd,this._updateAxisLayout),this.event.on(ft.layoutEnd,this._fixAxisOnZero),this.event.on(ft.layoutRectUpdate,()=>{this._clearLayoutCache()}))}_getNormalizedValue(t,e){return e===0?0:this.dataToPosition(t)/e}_layoutCacheProcessing(t){return["width","height"].forEach(e=>{t[e]{this.layout.getLastComputeOutBounds()[e]=this._layoutCache._lastComputeOutBounds[e]}):(this._hasAutoIndent=!0,["x1","x2","y1","y2"].forEach(e=>{this.layout.getLastComputeOutBounds()[e]t.x2?d.x2-t.x2:0,t.y2+=d.y2>t.y2?d.y2-t.y2:0):(t.x1+=d.x1{const{min:s,max:r}=i;e[0]=e[0]===void 0?s:Math.min(e[0],s),e[1]=e[1]===void 0?r:Math.max(e[1],r)}):(e[0]=0,e[1]=0),this.setSoftDomainMinMax(e),this.expandDomain(e),this.includeZero(e),this.setDomainMinMax(e),e}expandDomain(t){if(!this._expand)return;let e=t[0],i=t[t.length-1];e===i&&(i===0?i=1:i>0?e=0:i<0&&(i=0)),P(this._expand.min)&&(t[0]=e-(i-e)*this._expand.min),P(this._expand.max)&&(t[t.length-1]=i+(i-e)*this._expand.max)}niceDomain(t){const{min:e,max:i}=Yc(this._spec);if(P(e)||P(i)||this._spec.type!=="linear")return t;if(Math.abs(ti(t)-Ve(t))<=1e-12){let s=t[0];const r=s>=0?1:-1;if(s=Math.abs(s),s<1)t[0]=0,t[1]=1;else{let a=s/5;const o=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,o);a=(l>=IQ?10:l>=OQ?5:l>=LQ?2:1)*Math.pow(10,o),t[0]=0,t[1]=10*a}r<0&&(t.reverse(),t[0]*=-1,t[1]*=-1)}return t}includeZero(t){this._zero&&(t[0]=Math.min(t[0],0),t[t.length-1]=Math.max(t[t.length-1],0))}setExtendDomain(t,e){if(e===void 0)return void delete this._extend[t];this._extend[t]=e;const i=this._scale.domain();this.extendDomain(i),this.includeZero(i),this.setDomainMinMax(i),this.niceDomain(i),this._scale.domain(i,this._nice),this._nice&&!this.setScaleNice()&&this._scale.rescale(),this.event.emit(ft.scaleUpdate,{model:this,value:"domain"})}extendDomain(t){let e;const i=t.length-1,s=t[0]-t[i]>0,r=s?i:0,a=s?0:i;for(const o in this._extend)e=this._extend[o],e>t[a]&&(t[a]=e),e=t[1]&&(t[1]=s),this._softMaxValue=s}}setZero(t){this._zero!==t&&(this._zero=t,this.updateScaleDomain())}updateScaleDomain(){if(!this.isSeriesDataEnable())return;const t=this.collectData(),e=this.computeLinearDomain(t);this.updateScaleDomainByModel(e)}updateScaleDomainByModel(t){t=t??this._scale.domain(),this.extendDomain(t),this.includeZero(t),this.setDomainMinMax(t),this.niceDomain(t),this._scale.domain(t,this._nice),this._nice&&!this.setScaleNice()&&this._scale.rescale(),this._updateNiceLabelFormatter(t),this._domainAfterSpec=this._scale.domain(),this.event.emit(ft.scaleDomainUpdate,{model:this}),this.event.emit(ft.scaleUpdate,{model:this,value:"domain"})}getDomainAfterSpec(){return this._domainAfterSpec}_updateNiceLabelFormatter(t){const e=Math.abs(t[1]-t[0]),i=Math.max(-Math.floor(Math.log10(e)),0)+2,s=Math.pow(10,i);this.niceLabelFormatter=r=>z(+r)?Math.round(+r*s)/s:r}}class ba extends Qf{constructor(){super(...arguments),this.type=U.cartesianLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new is}setAttrFromSpec(){super.setAttrFromSpec(),this.setExtraAttrFromSpec()}initScales(){var t,e;super.initScales();const i=[0,1];P((t=this._domain)===null||t===void 0?void 0:t.min)&&(i[0]=this._domain.min),P((e=this._domain)===null||e===void 0?void 0:e.max)&&(i[1]=this._domain.max),this._scale.domain(i)}computeDomain(t){return this.computeLinearDomain(t)}axisHelper(){const t=super.axisHelper();return t.setExtendDomain=this.setExtendDomain.bind(this),t.valueToPosition=this.valueToPosition.bind(this),t}}ba.type=U.cartesianLinearAxis,ba.specKey="axes",$e(ba,Xm);const Tn=()=>{Jo(),L.registerComponent(ba.type,ba)};class KL{constructor(){this._rawDomainIndex=[]}_initData(){var t;if(this._spec.showAllGroupLayers&&this._scales.length>1)for(let e=0;e{i>0&&(e.range([0,t.bandwidth()]),t=e)})}getPosition(t){let e=0,i=this._scale;if(this._scales.length===1||t.length===1)e=this.valueToPosition(t[0]);else{const s=Math.min(t.length,this._scales.length);for(let r=0;rthis._rawDomainIndex[i][a]-this._rawDomainIndex[i][o]))}this.transformScaleDomain(),this.event.emit(ft.scaleDomainUpdate,{model:this}),this.event.emit(ft.scaleUpdate,{model:this,value:"domain"})}getLabelItems(t){const e=[];let i=[];return this._scales.forEach((s,r)=>{var a;const o=this._tickDataMap[r],l=(a=o==null?void 0:o.getLatestData())===null||a===void 0?void 0:a.length,h=l?o.getLatestData().map(d=>d.value):s.domain();if(h&&h.length)if(i&&i.length){const d=[],c=[];i.forEach(u=>{h.forEach(p=>{const g=H(u).concat(p);if(c.push(g),l){const f=ph(p,this._getNormalizedValue(g,t));d.push(f)}})}),l&&e.push(d.filter(u=>u.value>=0&&u.value<=1)),i=c}else h.forEach(d=>{i.push(d)}),l&&e.push(o.getLatestData().map(d=>ph(d.value,this._getNormalizedValue([d.value],t))).filter(d=>d.value>=0&&d.value<=1))}),e.reverse()}_updateRawDomain(){this._rawDomainIndex=[];const t=this._spec.domain;for(let e=0;ethis._rawDomainIndex[e][r]=a)}}_clearRawDomain(){this._rawDomainIndex=[]}}class Rd extends Qf{constructor(){super(...arguments),this.type=U.cartesianBandAxis,this._scale=new qo}computeDomain(t){return this.computeBandDomain(t)}updateScaleRange(){const t=super.updateScaleRange();return this.updateGroupScaleRange(),t}initScales(){super.initScales(),this.calcScales(this._defaultBandInnerPadding,this._defaultBandOuterPadding)}axisHelper(){const t=(e=0)=>this._scales[e];return{isContinuous:!1,dataToPosition:this.dataToPosition.bind(this),getScale:t,getBandwidth:(e=0)=>t(e).bandwidth(),getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>this._inverse,getSpec:()=>this._spec}}transformScaleDomain(){this.updateFixedWholeLength()}updateFixedWholeLength(){if(this._scale){const{bandSize:t,maxBandSize:e,minBandSize:i}=this._getOuterBandSizeFromSpec();if(t&&this._scale.bandwidth(t),e&&this._scale.maxBandwidth(e),i&&this._scale.minBandwidth(i),this._scale.isBandwidthFixed()&&this._spec.autoRegionSize&&(t||e)){const s=pb(this._scale.domain().length,t??e,this._scale.paddingInner(),this._scale.paddingOuter());["bottom","top"].includes(this._orient)?this._regions.forEach(r=>r.setMaxWidth(s)):["left","right"].includes(this._orient)&&this._regions.forEach(r=>r.setMaxHeight(s))}}}_getOuterBandSizeFromSpec(){var t;let{bandSize:e,maxBandSize:i,minBandSize:s,bandSizeLevel:r=0}=this._spec;const{gap:a,extend:o=0}=(t=this._spec.bandSizeExtend)!==null&&t!==void 0?t:{};r=Math.min(r,this._scales.length-1);for(let l=r;l>0;l--){const h=this._scales[l],d=h.domain(),c=h.paddingInner(),u=h.paddingOuter(),p=g=>{const f=l===r?o:0;return C(a)||l{Jo(),L.registerComponent(Rd.type,Rd)};class t_ extends ba{constructor(){super(...arguments),this.type=U.cartesianTimeAxis,this._zero=!1,this.effect={scaleUpdate:t=>{this.computeData(t==null?void 0:t.value),Ee(this._regions,e=>{ke(this.getOrient())?e.setXAxisHelper(this.axisHelper()):e.setYAxisHelper(this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}}}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._tick=vt({},this._spec.tick,(t=this._spec.layers)===null||t===void 0?void 0:t[0])}_initData(){var t;if(super._initData(),(t=this._spec.layers)===null||t===void 0?void 0:t[1]){const e=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_layer_1_ticks`}).parse(this._scale,{type:"scale"}).transform({type:"ticks",options:Object.assign(Object.assign({},this._tickTransformOption()),{tickCount:this._spec.layers[1].tickCount,forceTickCount:this._spec.layers[1].forceTickCount,tickStep:this._spec.layers[1].tickStep})},!1);this._layerTickData=new $s(this._option,e)}}computeData(t){super.computeData(t),this._layerTickData&&(this._layerTickData.getDataView().reRunAllTransform(),this._layerTickData.updateData())}_getLabelFormatMethod(){var t,e,i,s,r,a,o,l;const h=gs.getInstance(),d=((e=(t=this._spec.layers)===null||t===void 0?void 0:t[1])===null||e===void 0?void 0:e.timeFormat)||"%Y%m%d",c=(((s=(i=this._spec.layers)===null||i===void 0?void 0:i[1])===null||s===void 0?void 0:s.timeFormatMode)||"local")==="local"?h.timeFormat:h.timeUTCFormat,u=((a=(r=this._spec.layers)===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.timeFormat)||"%Y%m%d",p=(((l=(o=this._spec.layers)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.timeFormatMode)||"local")==="local"?h.timeFormat:h.timeUTCFormat;return(g,f,_,m,y)=>{var b;let v;return v=y===0?p(u,g):c(d,g),!((b=this._spec.label)===null||b===void 0)&&b.formatMethod?this._spec.label.formatMethod(v,f):v}}getLabelItems(t){var e,i;const s=[],r=(e=this.getTickData())===null||e===void 0?void 0:e.getLatestData();r&&r.length&&s.push(r.map(o=>ph(o.value,this._getNormalizedValue([o.value],t))));const a=(i=this._layerTickData)===null||i===void 0?void 0:i.getLatestData();return a&&a.length&&s.push(a.map(o=>ph(o.value,this._getNormalizedValue([o.value],t)))),s}transformScaleDomain(){}}t_.type=U.cartesianTimeAxis,t_.specKey="axes";const DQ=()=>{Jo(),L.registerComponent(t_.type,t_)};class Bd extends ba{constructor(){super(...arguments),this.type=U.cartesianLogAxis,this._zero=!1,this._scale=new ym}initScales(){var t;super.initScales(),this._scale.base((t=this._spec.base)!==null&&t!==void 0?t:10),this._scale.clamp(!0,null,!1)}transformScaleDomain(){}}Bd.type=U.cartesianLogAxis,Bd.specKey="axes",$e(Bd,Xm);const FQ=()=>{Jo(),L.registerComponent(Bd.type,Bd)};class Id extends ba{constructor(){super(...arguments),this.type=U.cartesianSymlogAxis,this._zero=!1,this._scale=new bm}initScales(){var t;super.initScales(),this._scale.constant((t=this._spec.constant)!==null&&t!==void 0?t:10)}transformScaleDomain(){}}Id.type=U.cartesianSymlogAxis,Id.specKey="axes",$e(Id,Xm);const zQ=()=>{Jo(),L.registerComponent(Id.type,Id)};class Il extends as{constructor(){super(...arguments),this.type=j.line,this.transformerConstructor=Iu,this._sortDataByAxis=!1}compile(){super.compile(),this.addSamplingCompile(),this.addOverlapCompile()}initMark(){var t;const e={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},i=(t=this._spec.seriesMark)!==null&&t!==void 0?t:"line";this.initLineMark(e,i==="line"),this.initSymbolMark(e,i==="point")}initTooltip(){super.initTooltip();const{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._symbolMark&&(i.add(this._symbolMark),e.add(this._symbolMark))}initMarkStyle(){this.initLineMarkStyle(this._direction),this.initSymbolMarkStyle()}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;if(this._lineMark.setAnimationConfig(zt((i=L.getAnimationInKey("line"))===null||i===void 0?void 0:i(r,a),Wt("line",this._spec,this._markAttributeContext))),this._symbolMark){const o=Na(this);this._symbolMark.setAnimationConfig(zt((s=L.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Wt("point",this._spec,this._markAttributeContext),o))}}onLayoutEnd(t){super.onLayoutEnd(t),this.reCompileSampling()}getSeriesStyle(t){var e;const i=((e=this._spec)===null||e===void 0?void 0:e.seriesMark)!=="point";return s=>{var r,a;return i&&s==="fill"&&(s="stroke"),(a=(r=this._seriesMark)===null||r===void 0?void 0:r.getAttribute(s,t))!==null&&a!==void 0?a:void 0}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._lineMark,this._symbolMark]}}Il.type=j.line,Il.mark=fO,Il.transformerConstructor=Iu,$e(Il,kS);const jQ=()=>{aS(),oS(),$m(),zr(),kL(),Wm(),Mn(),Tn(),L.registerSeries(Il.type,Il)};class HQ{get dataList(){return this._dataArr}constructor(t,e){this._dataArr=[],this._onError=e,this._dataSet=t}parseData(t){this._dataArr=[];const e=H(t);for(let i=0;i{a.markRunning()}),this._dataValueForEach(s,(r,a)=>{_S(a,r,i)}),!0)}_dataValueForEach(t,e){t.forEach((i,s)=>{if(i instanceof Ut)return;const r=this.getSeriesData(i.id,s);r&&e(i,r,s)})}getSeriesData(t,e){var i,s;if(!this._dataArr.length)return null;if(typeof t=="string"){const r=this._dataArr.filter(a=>a.name===t);return r[0]?r[0]:((i=this._onError)===null||i===void 0||i.call(this,`no data matches dataId ${t}!`),null)}return typeof e=="number"?this._dataArr[e]?this._dataArr[e]:((s=this._onError)===null||s===void 0||s.call(this,`no data matches dataIndex ${e}!`),null):this._dataArr[0]}}class VQ{constructor(t,e){this._scaleSpecMap=new Map,this._scaleMap=new Map,this._modelScaleSpecMap=new Map,this._markAttributeScaleMap=new Map,this._spec=null,this._chart=null,this.getStatisticalFields=i=>{const s=[];return this._scaleSpecMap.forEach((r,a)=>{Ml(r.domain)&&r.domain.forEach(o=>{o.dataId===i&&o.fields.forEach(l=>{$l(s,[{key:l,operations:ie(r.type)?["max","min"]:["values"]}])})})}),this._markAttributeScaleMap.forEach((r,a)=>{const o=this.getScale(a);r.forEach(l=>{this._getSeriesBySeriesId(l.seriesId).getRawData().name===i&&l.field&&$l(s,[{key:l.field,operations:ie(o.type)?["max","min"]:["values"]}])})}),s},this._spec=t,this._chart=e,this._setAttrFromSpec()}_createFromSpec(t){if(!t.id)return null;let e=this._scaleMap.get(t.id);return e||(e=t.type==="ordinal"&&t.id==="color"?Rb("colorOrdinal"):Rb(t.type)),e?(V(t.range)&&e.range(t.range),V(t.domain)&&(Ml(t.domain)||e.domain(t.domain)),t.specified&&e.specified&&e.specified(t.specified),e):null}_setAttrFromSpec(){var t;if(!(!((t=this._spec)===null||t===void 0)&&t.length))return;const e=new Map,i=new Map;this._spec.forEach(s=>{const r=this._createFromSpec(s);r&&(e.set(s.id,r),i.set(s.id,s))}),this._modelScaleSpecMap.forEach(s=>{const r=this._createFromSpec(s);r&&(e.set(s.id,r),i.set(s.id,s))}),this._scaleSpecMap=i,this._scaleMap=e}updateSpec(t){const e={change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1};if(ue(t,this._spec))return e;e.change=!0;for(let i=0;io.id===s.id);if(!a.id||a.type!==s.type)return e.reMake=!0,e;s.range&&!ue(s.range,r.range())&&(r.range(s.range),e.reRender=!0),Ml(s.domain)?e.reRender=!0:ue(s.domain,r.domain())||(r.domain(s.domain),e.reRender=!0),this._scaleSpecMap.set(s.id,s)}return this._spec=t,e}registerModelScale(t){const e=this._createFromSpec(t);e&&(this._modelScaleSpecMap.set(t.id,t),this._scaleSpecMap.set(t.id,t),this._scaleMap.set(t.id,e))}removeModelScale(t){this._modelScaleSpecMap.forEach(e=>{t(e)&&(this._modelScaleSpecMap.delete(e.id),this._scaleSpecMap.delete(e.id),this._scaleMap.delete(e.id))})}getScale(t){return this._scaleMap.get(t)}getScaleSpec(t){return this._scaleSpecMap.get(t)}_getSeriesByRawDataId(t){const e=this._chart.getAllSeries();for(let i=0;i{const s=this._scaleMap.get(i);if(!s)return;if(!Ml(e.domain))return e.domain&&e.domain.length!==0||s.domain(t),void this._updateMarkScale(i,s,s.domain().slice());let r;r=ie(e.type)?[null,null]:new Set,e.domain.forEach(o=>{const l=this._getSeriesByRawDataId(o.dataId);if(!l)return;const h=ie(e.type);o.fields.forEach(d=>{const c=l.getRawDataStatisticsByField(d,h);c&&(h?(C(r[0])?r[0]=c.min:r[0]=Math.min(c.min,r[0]),C(r[1])?r[1]=c.max:r[1]=Math.max(c.max,r[1])):c.values.forEach(u=>{r.add(u)}))})});const a=r;ie(e.type)||(r=Array.from(r)),s.domain(r),this._updateMarkScale(i,s,a)})}_updateMarkScale(t,e,i){const s=this._markAttributeScaleMap.get(t);s&&s.length!==0&&s.forEach(r=>{if(!r.field||!r.markScale||r.markScale===e)return;if(C(r.changeDomain)||r.changeDomain==="none"||C(r.seriesId))return void(ie(e.type)?r.markScale.domain(i):e.domain(Array.from(i)));const a=this._getSeriesBySeriesId(r.seriesId),o=ie(e.type),l=a.getRawDataStatisticsByField(r.field,o);if(!_t(l))return r.changeDomain==="expand"?(o?(i[0]=Math.min(i[0],l.min),i[1]=Math.max(i[1],l.max)):(l.values.forEach(h=>{i.add(h)}),i=Array.from(i)),void r.markScale.domain(i)):void(r.changeDomain!=="replace"||(o?r.markScale.domain([l.min,l.max]):r.markScale.domain(l.values)));ie(e.type)?r.markScale.domain(i):e.domain(Array.from(i))})}registerMarkAttributeScale(t,e){const i=this._scaleMap.get(t.scale);let s=this._markAttributeScaleMap.get(t.scale);s||(s=[],this._markAttributeScaleMap.set(t.scale,s));let r=i;return(C(t.field)||!C(t.changeDomain)&&t.changeDomain!=="none"&&!C(e))&&(r=i.clone()),s.push(Object.assign(Object.assign({},t),{seriesId:e,markScale:r})),r}}class WQ{constructor(t){this.stackRegion=({model:e})=>{const i=e.getSeries();if(!i.some(l=>l.getStack()))return;const s=i.some(l=>{var h,d;return(d=(h=l.getSpec())===null||h===void 0?void 0:h.totalLabel)===null||d===void 0?void 0:d.visible}),r=s||i.some(l=>l.getPercent()),a=i.some(l=>l.getStackOffsetSilhouette()),o=qO(e,!0);for(const l in o)for(const h in o[l].nodes)QO(o[l].nodes[h],e.getStackInverse(),r);if(a)for(const l in o)for(const h in o[l].nodes)AZ(o[l].nodes[h]);s&&e.getSeries().forEach(l=>{const h=l.getStackData(),d=l.getStackValue(),c=l.getStackValueField();h&&c&&JO(o[d],c)})},this._chart=t}init(){this._chart.getAllRegions().forEach(t=>{t.event.on(ft.regionSeriesDataFilterOver,{filter:({model:e})=>(e==null?void 0:e.id)===t.id},this.stackRegion)})}stackAll(){this._chart.getAllRegions().forEach(t=>{this.stackRegion({model:t})})}}var pC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{var o;return(o=this._series)!==null&&o!==void 0?o:[]},this.getRegionsInIndex=o=>o&&o.length!==0?this._regions.filter((l,h)=>o.includes(h)):[this._regions[0]],this.getAllRegions=()=>this._regions,this.getRegionsInIds=o=>o?this._regions.filter(l=>o.includes(l.id)):[],this.getRegionsInQuerier=o=>o?this._regions.filter((l,h)=>H(o).some(d=>P(d.regionId)&&d.regionId===l.userId||d.regionIndex===h)):this._regions,this.getRegionsInUserId=o=>{if(o)return this._regions.find(l=>l.userId===o)},this.getRegionsInUserIdOrIndex=(o,l)=>this.getAllRegions().filter(h=>o!=null&&o.length?h.userId&&o.includes(h.userId):!(l!=null&&l.length)||l.includes(h.getSpecIndex())),this.getComponents=()=>this._components,this.getSeriesInIndex=o=>o&&o.length!==0?this._series.filter((l,h)=>o.includes(h)):[this._series[0]],this.getSeriesInIds=o=>o?this._series.filter(l=>o.includes(l.id)):[],this.getSeriesInUserId=o=>{if(o)return this._series.find(l=>l.userId===o)},this.getSeriesInUserIdOrIndex=(o,l)=>this.getAllSeries().filter(h=>o!=null&&o.length?h.userId&&o.includes(h.userId):!(l!=null&&l.length)||l.includes(h.getSpecIndex())),this.getComponentByIndex=(o,l)=>{const h=this._components.filter(d=>(d.specKey||d.type)===o);if(h&&h.length!==0)return h[l]},this.getComponentsByKey=o=>this._components.filter(l=>(l.specKey||l.type)===o),this.getComponentByUserId=o=>{const l=this._components.find(h=>h.userId===o);if(l)return l},this.getComponentsByType=o=>this._components.filter(l=>l.type===o),this._paddingSpec=Pr((i=t.padding)!==null&&i!==void 0?i:e.getTheme().padding),this._event=new Lm(e.eventDispatcher,e.mode),this._dataSet=e.dataSet,this._chartData=new HQ(this._dataSet,(s=this._option)===null||s===void 0?void 0:s.onError),this._modelOption=Object.assign(Object.assign({},e),{mode:this._option.mode,map:this._idMap,getChartLayoutRect:()=>this._layoutRect,getChartViewRect:()=>this._viewRect,getChart:()=>this,globalScale:this._globalScale,onError:(r=this._option)===null||r===void 0?void 0:r.onError,disableTriggerEvent:((a=this._option)===null||a===void 0?void 0:a.disableTriggerEvent)===!0,getSeriesData:this._chartData.getSeriesData.bind(this._chartData)}),this._spec=t}created(){this._transformer=new this.transformerConstructor(Object.assign(Object.assign({},this._option),{type:this.type,seriesType:this.seriesType})),this._chartData.parseData(this._spec.data),this._createGlobalScale(),this._createBackground(),this._createLayout(),this._transformer.forEachRegionInSpec(this._spec,this._createRegion.bind(this)),this._transformer.forEachSeriesInSpec(this._spec,this._createSeries.bind(this)),this._transformer.forEachComponentInSpec(this._spec,this._createComponent.bind(this),this._option.getSpecInfo())}init(){this._regions.forEach(t=>t.init({})),this._series.forEach(t=>t.init({})),this._components.forEach(t=>t.init({dataSet:this._dataSet})),this._initEvent(),this._canStack&&(this._stack=new WQ(this),this._stack.init()),this.reDataFlow()}reDataFlow(){this._series.forEach(t=>{var e;return(e=t.getRawData())===null||e===void 0?void 0:e.markRunning()}),this._series.forEach(t=>t.fillData()),this.updateGlobalScaleDomain()}onResize(t,e,i=!0){const s={width:t,height:e};this._canvasRect=s,this._updateLayoutRect(this._option.viewBox),this.setLayoutTag(!0,null,i)}updateViewBox(t,e){this._option.viewBox=t,this._updateLayoutRect(t),this.setLayoutTag(!0,null,e)}_createBackground(){const t=this._spec.background;if(!t||typeof t!="object"||P(t.gradient))return;const e=Ea(t,["x","y","width","height","x1","y1","image"]);e.background=t.image,this._backgroundMark=L.createMark("group","chart-background",{model:this,map:this._option.map,getCompiler:this.getCompiler,globalScale:this._globalScale}),this._backgroundMark.created(),this._backgroundMark.setStyle(Object.assign(Object.assign({},e),{x:()=>this._viewBox.x1,y:()=>this._viewBox.y1,width:()=>this._viewBox.x2-this._viewBox.x1,height:()=>this._viewBox.y2-this._viewBox.y1}))}_createRegion(t,e){if(!t)return;const{spec:i}=e,s=pC(e,["spec"]),r=new t(i,Object.assign(Object.assign({},this._modelOption),s));r&&(r.created(),this._regions.push(r))}_createSeries(t,e){if(!t)return;const{spec:i}=e,s=pC(e,["spec"]);let r;if(P(i.regionId)?r=this.getRegionsInUserId(i.regionId):P(i.regionIndex)&&(r=this.getRegionsInIndex([i.regionIndex])[0]),!r&&!(r=this._regions[0]))return;const a=new t(i,Object.assign(Object.assign(Object.assign({},this._modelOption),s),{type:i.type,region:r,globalScale:this._globalScale,sourceDataList:this._chartData.dataList}));a&&(a.created(),this._series.push(a),r.addSeries(a))}getSeriesById(t){return this._series.find(e=>e.id===t)}_createComponent(t,e){const i=t.createComponent(e,Object.assign(Object.assign({},this._modelOption),{type:t.type,getAllRegions:this.getAllRegions,getRegionsInIndex:this.getRegionsInIndex,getRegionsInIds:this.getRegionsInIds,getRegionsInUserIdOrIndex:this.getRegionsInUserIdOrIndex,getAllSeries:this.getAllSeries,getSeriesInIndex:this.getSeriesInIndex,getSeriesInIds:this.getSeriesInIds,getSeriesInUserIdOrIndex:this.getSeriesInUserIdOrIndex,getAllComponents:this.getComponents,getComponentByIndex:this.getComponentByIndex,getComponentByUserId:this.getComponentByUserId,getComponentsByKey:this.getComponentsByKey,getComponentsByType:this.getComponentsByType}));i&&(i.created(),this._components.push(i))}getAllComponents(){return this._components}getAllModels(){return[].concat(this.getAllSeries(),this.getAllComponents(),this.getAllRegions())}getModelInFilter(t){if(at(t))return this.getAllModels().find(i=>i.userId===t);if(G(t))return this.getAllModels().find(i=>t(i));let e=0;return this.getAllModels().find(i=>{var s;if(((s=i.specKey)!==null&&s!==void 0?s:i.type)===t.type){if(e===t.index)return!0;e++}return!1})}_createLayout(){this._updateLayoutRect(this._option.viewBox),this._initLayoutFunc()}setLayout(t){this._option.layout=t,this._initLayoutFunc()}_initLayoutFunc(){var t,e,i;if(this._layoutFunc=this._option.layout,!this._layoutFunc){let s=!1;(this._spec.zField||this._spec.series&&this._spec.series.some(a=>a.zField))&&(s=!0);const r=L.getLayoutInKey((e=(t=this._spec.layout)===null||t===void 0?void 0:t.type)!==null&&e!==void 0?e:s?"layout3d":"base");if(r){const a=new r(this._spec.layout,{onError:(i=this._option)===null||i===void 0?void 0:i.onError});this._layoutFunc=a.layoutItems.bind(a)}}}layout(t){var e,i,s,r;if((i=(e=this._option.performanceHook)===null||e===void 0?void 0:e.beforeLayoutWithSceneGraph)===null||i===void 0||i.call(e),this.getLayoutTag()){this._event.emit(ft.layoutStart,{chart:this,vchart:this._option.globalInstance}),this.onLayoutStart(t);const a=this.getLayoutElements();this._layoutFunc(this,a,this._layoutRect,this._viewBox),this._event.emit(ft.afterLayout,{elements:a,chart:this}),this.setLayoutTag(!1),this.onLayoutEnd(t),this._event.emit(ft.layoutEnd,{chart:this,vchart:this._option.globalInstance})}(r=(s=this._option.performanceHook)===null||s===void 0?void 0:s.afterLayoutWithSceneGraph)===null||r===void 0||r.call(s)}onLayoutStart(t){this.getAllModels().forEach(e=>e.onLayoutStart(this._layoutRect,this._viewRect,t))}onLayoutEnd(t){this.getAllModels().forEach(e=>{e.modelType!=="series"&&e.onLayoutEnd(t)})}onEvaluateEnd(t){[...this._components,...this._regions,...this._series].forEach(e=>e.onEvaluateEnd(t))}getLayoutElements(){return this.getAllModels().map(t=>t.layout).filter(t=>!!t)}getModelById(t){const e=this._idMap.get(t);if(e&&e instanceof vS)return e}getModelByUserId(t){const e=this.getSeriesInUserId(t);if(e)return e;const i=this.getRegionsInUserId(t);return i||this.getComponentByUserId(t)||void 0}getAllMarks(){return Array.from(this._idMap.values()).filter(t=>t&&t instanceof Oi)}getMarkById(t){const e=this._idMap.get(t);if(e&&e instanceof Oi)return e}updateData(t,e,i=!0,s){const r=this._dataSet.getDataView(t);r&&(r.markRunning(),r.parseNewData(e,s)),i&&this.updateGlobalScaleDomain(),this.getAllModels().forEach(a=>a.onDataUpdate())}updateFullData(t,e=!0){H(t).forEach(i=>{const s=this._dataSet.getDataView(i.id);s&&s.markRunning()}),H(t).forEach(i=>{const s=this._dataSet.getDataView(i.id);s&&_S(s,i,!0)}),e&&this.updateGlobalScaleDomain(),this.getAllModels().forEach(i=>i.onDataUpdate())}onRender(t){}setCanvasRect(t,e){this._canvasRect={width:t,height:e}}getCanvasRect(){return this._canvasRect||(this._canvasRect=uL(this._spec,this._option,{width:El,height:Rl})),this._canvasRect}getSeriesData(t,e){return this._chartData.getSeriesData(t,e)}_transformSpecScale(){var t;const e=this._spec.scales?[...this._spec.scales]:[];let i=e.find(r=>r.id==="color");const s=this.getColorScheme();if(!i&&(i={type:"ordinal",id:"color",domain:null,range:null},e.push(i),this._spec.color)){const r=this._spec.color;if(V(r))i.range=r;else{const a=r;Object.prototype.hasOwnProperty.call(a,"type")&&(i.type=a.type),Object.prototype.hasOwnProperty.call(a,"domain")&&(i.domain=a.domain),Object.prototype.hasOwnProperty.call(a,"range")&&(i.range=a.range),Object.prototype.hasOwnProperty.call(a,"specified")&&(i.specified=a.specified)}}return!((t=i.range)===null||t===void 0)&&t.length||(i.range=Wc(s),i.rangeTheme=!0),e}_createGlobalScale(){this._globalScale=new VQ(this._transformSpecScale(),this),this._modelOption.globalScale=this._globalScale}updateGlobalScaleDomain(){const t=new Set;this._series.forEach(i=>{const s=i.getSeriesKeys();s&&s.forEach(r=>t.add(r))});const e=Array.from(t);this._globalScale.updateScaleDomain(e)}updateGlobalScale(t){_l(t,this._globalScale.updateSpec(this._transformSpecScale()))}updateGlobalScaleTheme(){const t=this._globalScale.getScaleSpec("color"),e=this.getColorScheme();t.rangeTheme&&(t.range=Wc(e),this._globalScale.getScale("color").range(t.range))}updateSpec(t){const e={change:!1,reMake:!1,reRender:!1,reSize:!1,reCompile:!1};if(this.setLayoutTag(!0,null,!1),t.type!==this.type)return e.reMake=!0,e;const i=Object.keys(this._spec).sort(),s=Object.keys(t).sort();if(JSON.stringify(i)!==JSON.stringify(s))return e.reMake=!0,e;for(let a=0;a{_l(t,i.updateSpec(this._spec.region[i.getSpecIndex()]))}):t.reMake=!0)}updateComponentSpec(t){const e={};this._components.forEach(i=>{var s,r;if(i.type===U.label||i.type===U.totalLabel)return;const a=i.specKey||i.type,o=(s=this._spec[a])!==null&&s!==void 0?s:{};V(o)?(e[a]=e[a]||{specCount:o.length,componentCount:0},e[a].componentCount++,_l(t,i.updateSpec((r=o[i.getSpecIndex()])!==null&&r!==void 0?r:{},o))):_l(t,i.updateSpec(o))});for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=e[i];s.componentCount!==s.specCount&&(t.reMake=!0)}}updateSeriesSpec(t){this._spec.series.length===this._series.length?this._series.forEach(e=>{const i=this._spec.series[e.getSpecIndex()];_l(t,e.updateSpec(i))}):t.reMake=!0}getCanvas(){var t,e;return(e=(t=this.getCompiler())===null||t===void 0?void 0:t.getCanvas())!==null&&e!==void 0?e:null}_updateLayoutRect(t){let e=this.getCanvasRect();if(t){this._viewBox=t;const{x1:i=0,y1:s=0,x2:r,y2:a}=t;e={width:r-i,height:a-s}}else this._viewBox={x1:0,y1:0,x2:e.width,y2:e.height};this._viewRect=e,this.padding=NO(this._paddingSpec,e,e),this._layoutRect.width=e.width-this.padding.left-this.padding.right,this._layoutRect.height=e.height-this.padding.top-this.padding.bottom,this._layoutRect.x=this.padding.left,this._layoutRect.y=this.padding.top,this._event.emit(ft.layoutRectUpdate,{chart:this})}setCurrentTheme(){this.updateChartConfig({change:!0,reMake:!1},this._spec),this.setLayoutTag(!0,null,!1),this.updateGlobalScaleTheme(),this.reInit()}reInit(){[...this._regions,...this._series,...this._components].forEach(t=>{const e=t.getSpecInfo();e&&e.spec&&t.reInit(e.spec)})}clear(){this.getAllModels().forEach(t=>{var e;return(e=t.clear)===null||e===void 0?void 0:e.call(t)})}compile(){this.compileBackground(),this.compileLayout(),this.compileRegions(),this.compileSeries(),this.compileComponents()}afterCompile(){this.getAllRegions().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)}),this.getAllSeries().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)}),this.getAllComponents().forEach(t=>{var e;(e=t.afterCompile)===null||e===void 0||e.call(t)})}compileLayout(){const{width:t,height:e}=this.getCanvasRect();this.getCompiler().setSize(t,e)}compileBackground(){var t;this._backgroundMark&&(this._backgroundMark.compile(),(t=this._backgroundMark.getProduct())===null||t===void 0||t.configure({context:{model:this}}).layout(()=>{}))}compileRegions(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeRegionCompile)===null||e===void 0||e.call(t),this.getAllRegions().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterRegionCompile)===null||s===void 0||s.call(i)}compileSeries(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeSeriesCompile)===null||e===void 0||e.call(t),this.getAllSeries().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterSeriesCompile)===null||s===void 0||s.call(i)}compileComponents(){var t,e,i,s;(e=(t=this._option.performanceHook)===null||t===void 0?void 0:t.beforeComponentCompile)===null||e===void 0||e.call(t),this.getAllComponents().forEach(r=>{r.compile()}),(s=(i=this._option.performanceHook)===null||i===void 0?void 0:i.afterComponentCompile)===null||s===void 0||s.call(i)}release(){[...this._components,...this._regions,...this._series].forEach(t=>{t.beforeRelease()}),super.release(),this.clear(),[...this._components,...this._regions,...this._series].forEach(t=>{t.release()}),this._components=this._regions=this._series=[],this._spec={},this._dataSet=this._globalScale=this._layoutFunc=null,this._layoutTag=!1,this._idMap.clear()}onLayout(t){const e=t.rootMark;this.layout({group:e,srView:t})}updateState(t,e){const i=this.getAllSeries();for(const s in t){if(_t(t[s]))continue;const r=t[s];let a={stateValue:s};a=G(r.filter)?Object.assign({filter:r.filter},a):Object.assign(Object.assign({},r.filter),a),r.level&&(a.level=r.level),i.forEach(o=>{o.getMarks().forEach(l=>{l.stateStyle[s]&&(e&&!e(o,l,s)||(l.state.changeStateInfo(a),l.updateMarkState(s)))})})}}setSelected(t,e,i){this._setStateInDatum(dt.STATE_SELECTED,!0,t,e,i)}setHovered(t,e,i){this._setStateInDatum(dt.STATE_HOVER,!0,t,e,i)}clearState(t){this.getAllRegions().forEach(e=>{e.interaction.clearEventElement(t,!0),e.interaction.resetInteraction(t,null)})}clearSelected(){this.clearState(dt.STATE_SELECTED)}clearHovered(){this.clearState(dt.STATE_HOVER)}_initEvent(){[ft.dataZoomChange,ft.scrollBarChange].forEach(t=>{this._event.on(t,({value:e})=>{this._disableMarkAnimation(["exit","update"]);const i=()=>{this._enableMarkAnimation(["exit","update"]),this._event.off(ct.AFTER_MARK_RENDER_END,i)};this._event.on(ct.AFTER_MARK_RENDER_END,i)})})}_enableMarkAnimation(t){this.getAllMarks().forEach(e=>{const i=e.getProduct();i&&i.animate&&i.animate.enableAnimationState(t)})}_disableMarkAnimation(t){this.getAllMarks().forEach(e=>{const i=e.getProduct();i&&i.animate&&i.animate.disableAnimationState(t)})}_setStateInDatum(t,e,i,s,r){const a=(i=i?H(i):null)?Object.keys(i[0]):null;this.getRegionsInQuerier(r).forEach(o=>{i?(o.getSeries().forEach(l=>{l.getMarks().forEach(h=>{if(h.getProduct()&&(!s||G(s)&&s(l,h))){const d=h.getProduct().isCollectionMark(),c=h.getProduct().elements;let u=c;if(d)u=c.filter(p=>{const g=p.getDatum();i.every((f,_)=>a.every(m=>f[m]==g[_][m]))});else if(i.length>1){const p=i.slice();u=c.filter(g=>{if(p.length===0)return!1;const f=g.getDatum(),_=p.findIndex(m=>a.every(y=>m[y]==f[y]));return _>=0&&(p.splice(_,1),!0)})}else{const p=c.find(g=>a.every(f=>i[0][f]==g.getDatum()[f]));p&&(u=[p])}u.forEach(p=>{o.interaction.startInteraction(t,p)})}})}),e&&o.interaction.reverseEventElement(t)):o.interaction.clearEventElement(t,!0)})}setDimensionIndex(t,e){var i,s,r,a;let o=null;Array.from(this._event.getComposedEventMap().values()).forEach(h=>{const{eventType:d,event:c}=h;if(d===Er.dimensionHover||d===Er.dimensionClick){const u=c.dispatch(t,e);u!=null&&u.length&&(o=u)}});const l=C(t)||!o||o.every(h=>vi(h.axis.getScale().type)&&C(h.index));if(e.tooltip!==!1){const h=this.getComponentsByType(U.tooltip)[0];if(h!=null&&h.getVisible())if(l)(s=(i=h).hideTooltip)===null||s===void 0||s.call(i);else{const d={};o.forEach(c=>{const{axis:u,value:p,data:g}=c,f=u.getOrient()==="left"||u.getOrient()==="right";g.forEach(_=>{var m,y,b;const v=f?_.series.fieldY[0]:_.series.fieldX[0];d[v]=(b=(y=(m=_.datum)===null||m===void 0?void 0:m[0])===null||y===void 0?void 0:y[v])!==null&&b!==void 0?b:p})}),h.showTooltip(d,e.showTooltipOption)}}if(e.crosshair!==!1){const h=this.getComponentsByType(U.cartesianCrosshair)[0];h&&h.clearAxisValue&&h.setAxisValue&&(l?((r=h.clearAxisValue)===null||r===void 0||r.call(h),(a=h.hide)===null||a===void 0||a.call(h)):o.forEach(d=>{const{axis:c,value:u}=d;h.clearAxisValue(),h.setAxisValue(u,c),h.layoutByValue()}))}}getColorScheme(){var t,e;return(e=(t=this._option).getTheme)===null||e===void 0?void 0:e.call(t).colorScheme}}const gC=(n,t)=>{var e;const i=n.spec,{regionId:s,regionIndex:r}=i;if(P(s)){const a=H(s);return(e=t.region)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(P(r))return H(r).map(a=>{var o;return(o=t.region)===null||o===void 0?void 0:o[a]}).filter(P)},NQ=(n,t)=>{var e;const i=n.spec,{seriesId:s,seriesIndex:r}=i;if(P(s)){const a=H(s);return(e=t.series)===null||e===void 0?void 0:e.filter(({spec:o})=>a.includes(o.id))}if(P(r))return H(r).map(a=>{var o;return(o=t.series)===null||o===void 0?void 0:o[a]}).filter(P)};class os{constructor(t){this._option=t,this.type=t.type,this.seriesType=t.seriesType}initChartSpec(t){return this.transformSpec(t),this.transformModelSpec(t)}transformSpec(t){t.region&&t.region.length!==0||(t.region=[{}]),t.tooltip===void 0&&(t.tooltip={}),P(t.stackInverse)&&t.region.forEach(e=>{!P(e.stackInverse)&&(e.stackInverse=t.stackInverse)}),P(t.stackSort)&&t.region.forEach(e=>{!P(e.stackSort)&&(e.stackSort=t.stackSort)})}transformModelSpec(t){return this.createSpecInfo(t,(e,i,s)=>{const{spec:r,specPath:a,specInfoPath:o,type:l}=i,h=new e.transformerConstructor(Object.assign(Object.assign({},this._option),{type:l})).transformSpec(r,t,s);Yp(t,a,h.spec),Yp(s,o??a,Object.assign(Object.assign({},i),h))})}createSpecInfo(t,e){var i,s;e||(e=(a,o,l)=>{const{spec:h,specPath:d,specInfoPath:c,type:u}=o,p=new a.transformerConstructor(Object.assign(Object.assign({},this._option),{type:u}));Yp(l,c??d,Object.assign(Object.assign({},o),{theme:p.getTheme(h,t)}))});const r={};return this.forEachRegionInSpec(t,e,r),this.forEachSeriesInSpec(t,e,r),(i=r.series)===null||i===void 0||i.forEach((a,o)=>{var l,h;const d=((h=(l=gC(a,r))!==null&&l!==void 0?l:r.region)!==null&&h!==void 0?h:[])[0];d&&(d.seriesIndexes||(d.seriesIndexes=[]),d.seriesIndexes.push(o),a.regionIndexes=d.regionIndexes.slice())}),this.forEachComponentInSpec(t,e,r),Object.values((s=r.component)!==null&&s!==void 0?s:{}).forEach(a=>a.forEach((o,l)=>{var h,d,c;if(o){if(!o.regionIndexes){const u=(d=(h=gC(o,r))!==null&&h!==void 0?h:r.region)!==null&&d!==void 0?d:[];o.regionIndexes=u.map(p=>p.regionIndexes[0])}if(!o.seriesIndexes){const u=NQ(o,r);if(u)o.seriesIndexes=u.map(({seriesIndexes:p})=>p[0]);else{const p=new Set;((c=o.regionIndexes)!==null&&c!==void 0?c:[]).forEach(g=>{var f,_;const m=(f=r.region)===null||f===void 0?void 0:f[g];(_=m==null?void 0:m.seriesIndexes)===null||_===void 0||_.forEach(y=>p.add(y))}),o.seriesIndexes=Array.from(p)}}}})),r}_isValidSeries(t){return!0}_getDefaultSeriesSpec(t){var e,i,s,r;return{dataKey:t.dataKey,hover:t.hover,select:t.select,label:t.label,seriesStyle:t.seriesStyle,animation:(e=t.animation)!==null&&e!==void 0?e:this._option.animation,animationThreshold:(i=t.animationThreshold)!==null&&i!==void 0?i:(r=(s=this._option).getTheme)===null||r===void 0?void 0:r.call(s).animationThreshold,animationAppear:t.animationAppear,animationDisappear:t.animationDisappear,animationEnter:t.animationEnter,animationUpdate:t.animationUpdate,animationExit:t.animationExit,animationNormal:t.animationNormal,extensionMark:t.extensionMark,large:t.large,largeThreshold:t.largeThreshold,progressiveStep:t.progressiveStep,progressiveThreshold:t.progressiveThreshold,background:t.seriesBackground,invalidType:t.invalidType,seriesField:t.seriesField,morph:t.morph,interactions:t.interactions}}forEachRegionInSpec(t,e,i){var s;return((s=t.region)!==null&&s!==void 0?s:[]).map((r,a)=>e(L.getRegionInType("region"),{spec:r,specPath:["region",a],type:"region",regionIndexes:[a]},i))}forEachSeriesInSpec(t,e,i){var s;return((s=t.series)!==null&&s!==void 0?s:[]).map((r,a)=>e(L.getSeriesInType(r.type),{spec:r,specPath:["series",a],type:r.type,seriesIndexes:[a]},i))}forEachComponentInSpec(t,e,i){var s,r,a;const o=[],l=L.getComponents();let h,d,c,u;const p=[];for(let f=0;f0&&(g=!0,f.forEach(_=>{const m=L.getComponentInKey(_.type);o.push(e(m,_,i))}))}if(d&&!g){const f=d.getSpecInfo(t,i);(f==null?void 0:f.length)>0&&(g=!0,f.forEach(_=>{const m=L.getComponentInKey(_.type);o.push(e(m,_,i))}))}return c&&!g&&((r=c.getSpecInfo(t,i))===null||r===void 0||r.forEach(f=>{o.push(e(c,f,i))})),p.forEach(f=>{var _;(_=f.getSpecInfo(t,i))===null||_===void 0||_.forEach(m=>{o.push(e(f,m,i))})}),(a=u==null?void 0:u.getSpecInfo(t,i))===null||a===void 0||a.forEach(f=>{o.push(e(u,f,i))}),o}transformSeriesSpec(t){const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}_findBandAxisBySeries(t,e,i){const s=(t==null?void 0:t.direction)==="horizontal"?["left","right"]:["top","bottom"];return i.find(r=>{if(!s.includes(r.orient))return!1;if(P(r.seriesId)){if(H(r.seriesId).includes(t==null?void 0:t.id))return!0}else if(P(r.seriesIndex)){if(H(r.seriesIndex).includes(e))return!0}else if(r.type==="band")return!0;return!0})}_applyAxisBandSize(t,e,i){const{barMaxWidth:s,barMinWidth:r,barWidth:a,barGapInGroup:o}=i;let l=!1;nt(r)?(t.minBandSize=r,l=!0):nt(a)?(t.minBandSize=a,l=!0):nt(s)&&(t.minBandSize=s,l=!0),l&&(t.bandSizeLevel=Number.MAX_VALUE,t.bandSizeExtend={extend:e,gap:V(o)?o[o.length-1]:o})}}class ks extends os{needAxes(){return!0}_isValidSeries(t){return!this.seriesType||t===this.seriesType}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{xField:t.xField,yField:t.yField,zField:t.zField,seriesField:t.seriesField,seriesStyle:t.seriesStyle,direction:t.direction,stack:t.stack,percent:t.percent,stackOffsetSilhouette:t.stackOffsetSilhouette,totalLabel:t.totalLabel,sortDataByAxis:t.sortDataByAxis}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t);const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e],this._transformAxisSpec(t)}_transformAxisSpec(t){if(this.needAxes()){t.axes||(t.axes=[]);const e={x:!1,y:!1,z:!1};t.axes.forEach(i=>{const{orient:s}=i;s!=="top"&&s!=="bottom"||(e.x=!0),s!=="left"&&s!=="right"||(e.y=!0),s==="z"&&(e.z=!0),Pt(i,"trimPadding")&&vt(i,pL(this.type,t))}),e.x||t.axes.push({orient:"bottom"}),e.y||t.axes.push({orient:"left"}),t.zField&&!e.z&&t.axes.push({orient:"z"})}}}class qL extends ks{_getDefaultSeriesSpec(t){var e;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,line:t.line,seriesMark:(e=t.seriesMark)!==null&&e!==void 0?e:"line",activePoint:t.activePoint,sampling:t.sampling,samplingFactor:t.samplingFactor,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap,lineLabel:t.lineLabel})}transformSpec(t){super.transformSpec(t),Wa(t)}}class Od extends xe{constructor(){super(...arguments),this.transformerConstructor=qL,this.type="line",this.seriesType=j.line,this._canStack=!0}}Od.type="line",Od.seriesType=j.line,Od.transformerConstructor=qL;const GQ=()=>{jQ(),L.registerChart(Od.type,Od)};class Zc extends YL{constructor(){super(...arguments),this.type=Zc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}_getIgnoreAttributes(){return[]}}Zc.type="area";const Km=()=>{L.registerMark(Zc.type,Zc),P6(),wL()};class UQ extends un{constructor(){super(...arguments),this._getSeriesStyle=(t,e,i)=>{var s,r,a,o;for(const l of H(e)){let h=(s=this.series.getSeriesStyle(t))===null||s===void 0?void 0:s(l);if(h!==!1||l!=="fill"&&l!=="stroke"||(h=l==="fill"?(a=(r=this.series.getSeriesStyle(t))===null||r===void 0?void 0:r("stroke"))===null||a===void 0?void 0:a[0]:(o=this.series.getSeriesStyle(t))===null||o===void 0?void 0:o("fill")),P(h))return h}return i}}}const $Q=()=>{vJ(),kL(),Wm()};class ZL extends Iu{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){var e,i,s;super._transformLabelSpec(t),this._addMarkLabelSpec(t,"area","areaLabel","initLineLabelMarkStyle",void 0,!0),((e=t.point)===null||e===void 0?void 0:e.visible)!==!1&&((s=(i=t.point)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.visible)!==!1||this._addMarkLabelSpec(t,"area")}_transformSpecAfterMergingTheme(t,e,i){var s,r,a,o,l;super._transformSpecAfterMergingTheme(t,e,i);const{area:h={},line:d={},seriesMark:c}=t,u=h.visible!==!1&&((s=h.style)===null||s===void 0?void 0:s.visible)!==!1,p=d.visible!==!1&&((r=d.style)===null||r===void 0?void 0:r.visible)!==!1;h.support3d=!(!h.support3d&&!d.support3d),h.zIndex=P(h.zIndex)||P(d.zIndex)?Math.max((a=h.zIndex)!==null&&a!==void 0?a:0,(o=d.zIndex)!==null&&o!==void 0?o:0):void 0,h.style&&delete h.style.stroke,h.state&&Object.keys(h.state).forEach(_=>{"style"in h.state[_]?delete h.state[_].style.stroke:delete h.state[_].stroke});let g=h,f=d;(c==="line"||p&&!u)&&(g=d,f=h),h.style=vt({},f.style,g.style),h.state=vt({},f.state,g.state),u||(h.style.fill=!1),p||(h.style.stroke=!1),h.interactive===!1&&(h.style.fillPickable=!1),d.interactive===!1&&(d.style.strokePickable=!1),h.interactive=!(!h.interactive&&(l=d.interactive)!==null&&l!==void 0&&!l),h.visible=!(!u&&!p),t.area=h,t.line=d}}class vr extends as{constructor(){super(...arguments),this.type=j.area,this.transformerConstructor=ZL,this._sortDataByAxis=!1}initMark(){var t,e;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},s=this._spec.area||{},r=s.visible!==!1&&((t=s.style)===null||t===void 0?void 0:t.visible)!==!1,a=(e=this._spec.seriesMark)!==null&&e!==void 0?e:"area";this._areaMark=this._createMark(vr.mark.area,{groupKey:this._seriesField,defaultMorphElementKey:this.getDimensionField()[0],progressive:i,isSeriesMark:r&&a!=="point",customShape:s.customShape,stateSort:s.stateSort}),this.initSymbolMark(i,a==="point")}initMarkStyle(){this.initAreaMarkStyle(),this.initSymbolMarkStyle()}initAreaMarkStyle(){var t,e,i,s,r;const a=(i=(e=(t=this.getSpec().area)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.curveType)!==null&&i!==void 0?i:(r=(s=this.getSpec().line)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.curveType,o=a===UL?this._direction==="horizontal"?"monotoneY":"monotoneX":a,l=this._areaMark;l&&(this._direction==="horizontal"?this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),x1:h=>{var d,c;return Zt(this.dataToPositionX1(h),(c=(d=this._xAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null,orient:this._direction},"normal",tt.Series):this.setMarkStyle(this._areaMark,{x:this.dataToPositionX.bind(this),y1:h=>{var d,c;return Zt(this.dataToPositionY1(h),(c=(d=this._yAxisHelper)===null||d===void 0?void 0:d.getScale)===null||c===void 0?void 0:c.call(d,0))},y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null},"normal",tt.Series),this.setMarkStyle(l,{fill:this.getColorAttribute(),stroke:this.getColorAttribute()},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(l,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.setMarkStyle(l,{curveType:o},"normal",tt.Built_In),Object.keys(l.stateStyle).forEach(h=>{l.stateStyle[h].stroke&&l.setPostProcess("stroke",d=>[d,!1,!1,!1],h)}))}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;if(this._lineMark&&this._lineMark.setAnimationConfig(zt((e=L.getAnimationInKey("line"))===null||e===void 0?void 0:e(r,a),Wt("line",this._spec,this._markAttributeContext))),this._areaMark&&this._areaMark.setAnimationConfig(zt((i=L.getAnimationInKey("area"))===null||i===void 0?void 0:i(r,a),Wt("area",this._spec,this._markAttributeContext))),this._symbolMark){const o=Na(this);this._symbolMark.setAnimationConfig(zt((s=L.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Wt("point",this._spec,this._markAttributeContext),o))}}initTooltip(){this._tooltipHelper=new UQ(this);const{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._areaMark&&(t.add(this._areaMark),e.add(this._areaMark)),this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._symbolMark&&(i.add(this._symbolMark),e.add(this._symbolMark))}viewDataStatisticsUpdate(t){super.viewDataStatisticsUpdate(t),this.encodeDefined(this._areaMark,"defined")}compile(){super.compile(),this.addSamplingCompile(),this.addOverlapCompile()}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._areaMark,this._symbolMark,this._lineMark]}onLayoutEnd(t){super.onLayoutEnd(t),this.reCompileSampling()}getSeriesStyle(t){return e=>{var i,s,r,a,o;const l=(i=this._spec.seriesMark)!==null&&i!==void 0?i:"area";let h=(r=(s=this._seriesMark)===null||s===void 0?void 0:s.getAttribute(e,t))!==null&&r!==void 0?r:void 0;return e!=="fill"||h&&l!=="line"||(e="stroke",h=(o=(a=this._seriesMark)===null||a===void 0?void 0:a.getAttribute(e,t))!==null&&o!==void 0?o:void 0),e==="stroke"&&V(h)?h[0]:h}}}vr.type=j.area,vr.mark=hS,vr.transformerConstructor=ZL,$e(vr,kS);const YQ=()=>{aS(),oS(),$m(),Km(),zr(),$Q(),Mn(),Tn(),L.registerSeries(vr.type,vr)};class JL extends ks{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,line:t.line,area:t.area,seriesMark:t.seriesMark,activePoint:t.activePoint,sampling:t.sampling,samplingFactor:t.samplingFactor,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap,areaLabel:t.areaLabel})}transformSpec(t){super.transformSpec(t),Wa(t)}}class Ld extends xe{constructor(){super(...arguments),this.transformerConstructor=JL,this.type="area",this.seriesType=j.area,this._canStack=!0}}Ld.type="area",Ld.seriesType=j.area,Ld.transformerConstructor=JL;const XQ=()=>{YQ(),L.registerChart(Ld.type,Ld)};function QL(n,t=!0){return(e,i,s)=>{const r=n.direction==="vertical"?n.yField:n.xField,a=e==null?void 0:e[r];return n.direction==="vertical"?{overall:t&&n.growFrom(),orient:a>0?"negative":"positive"}:{overall:!!t&&n.growFrom(),orient:a>0?"positive":"negative"}}}const Lu=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:QL(n,t)}),fh=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthOut":"growHeightOut",options:QL(n,t)}),KQ={type:"fadeIn"},qQ={type:"growCenterIn"};function tD(n,t){if(t===!1)return{};switch(t){case"fadeIn":return KQ;case"scaleIn":return qQ;default:return Lu(n)}}const ZQ=()=>{L.registerAnimation("bar",(n,t)=>({appear:tD(n,t),enter:Lu(n,!1),exit:fh(n,!1),disappear:fh(n)}))},JQ=()=>{L.registerAnimation("bar3d",(n,t)=>({appear:tD(n,t),enter:Lu(n,!1),exit:fh(n,!1),disappear:fh(n)}))};class Jc extends Oi{constructor(){super(...arguments),this.type=Jc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}Jc.type="rect";const jr=()=>{L.registerMark(Jc.type,Jc),sS(),TL()};function eD(n,t,e){var i,s;if(n.values.length>0){let r;if(n.sortDatums.length){let a=n.sortDatums;t&&(a=n.sortDatums.slice().reverse());for(let o=0;o{var d,c;const u=(c=(d=o[e.axisHelper]).getScale)===null||c===void 0?void 0:c.call(d,0);for(let p=0;pthis._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[yw]):this._spec.barMinHeight?this._calculateRectPosition(t,!1):Zt(this._dataToPosX(t),e),this._getBarXEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!1),t[bw]):Zt(this._dataToPosX1(t),e),this._getBarYStart=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[xw]):this._spec.barMinHeight?this._calculateRectPosition(t,!0):Zt(this._dataToPosY(t),e),this._getBarYEnd=(t,e)=>this._shouldDoPreCalculate()?(this._calculateStackRectPosition(!0),t[Sw]):Zt(this._dataToPosY1(t),e),this._getBarBackgroundXStart=t=>{const e=t.range();return Math.min(e[0],e[e.length-1])},this._getBarBackgroundXEnd=t=>{const e=t.range();return Math.max(e[0],e[e.length-1])},this._getBarBackgroundYStart=t=>{const e=t.range();return Math.min(e[0],e[e.length-1])},this._getBarBackgroundYEnd=t=>{const e=t.range();return Math.max(e[0],e[e.length-1])},this._getBarBackgroundPositionXEncoder=()=>{var t;return(t=this._barBackgroundPositionXEncoder)===null||t===void 0?void 0:t.bind(this)},this._setBarBackgroundPositionXEncoder=t=>{this._barBackgroundPositionXEncoder=t.bind(this)},this._getBarBackgroundPositionYEncoder=()=>{var t;return(t=this._barBackgroundPositionYEncoder)===null||t===void 0?void 0:t.bind(this)},this._setBarBackgroundPositionYEncoder=t=>{this._barBackgroundPositionYEncoder=t.bind(this)}}initMark(){var t,e;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._initBarBackgroundMark(i),this._barMark=this._createMark(Object.assign(Object.assign({},ys.mark.bar),{name:this._barMarkName,type:this._barMarkType}),{morph:Fr(this._spec,this._barMarkName),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,progressive:i,customShape:(t=this._spec.bar)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.bar)===null||e===void 0?void 0:e.stateSort})}_initBarBackgroundMark(t){this._spec.barBackground&&this._spec.barBackground.visible&&(this._barBackgroundMark=this._createMark(ys.mark.barBackground,{dataView:this._barBackgroundViewData.getDataView(),dataProductId:this._barBackgroundViewData.getProductId(),progressive:t,customShape:this._spec.barBackground.customShape,stateSort:this._spec.barBackground.stateSort}))}initMarkStyle(){this._barMark&&this.setMarkStyle(this._barMark,{fill:this.getColorAttribute()},"normal",tt.Series)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null})}initTooltip(){super.initTooltip();const{mark:t,group:e}=this._tooltipHelper.activeTriggerSet;this._barMark&&(t.add(this._barMark),e.add(this._barMark))}_statisticViewData(){var t,e;super._statisticViewData();const i=(t=this._spec.barBackground)!==null&&t!==void 0?t:{};if(!i.visible)return;const s=this._getRelatedComponentSpecInfo("axes").some(a=>a.type===U.cartesianBandAxis);let r;if(Tt(this._option.dataSet,"addVChartProperty",Oh),s){const a=([o],{scaleDepth:l})=>{var h,d;let c=[{}];const u=this.getDimensionField(),p=C(l)?u.length:Math.min(u.length,l);for(let g=0;g{const h=[],[d,c]=this.getDimensionContinuousField(),u={};return o.latestData.forEach(p=>{const g=`${p[d]}-${p[c]}`;u[g]||(u[g]={[d]:p[d],[c]:p[c]},h.push(u[g]))}),h};Tt(this._option.dataSet,"dimensionItems",a);const o=this.getViewData();r=new Ut(this._option.dataSet).parse([o],{type:"dataview"}).transform({type:"dimensionItems"},!1).transform({type:"addVChartProperty",options:{beforeCall:gh.bind(this),call:Ho}},!1),o==null||o.target.addListener("change",r.reRunAllTransform)}this._barBackgroundViewData=new Ys(this._option,r)}init(t){var e,i;super.init(t),this.direction==="vertical"?((e=this._xAxisHelper)===null||e===void 0?void 0:e.getScale(0).type)==="band"?this.initBandRectMarkStyle():this.initLinearRectMarkStyle():((i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale(0).type)==="band"?this.initBandRectMarkStyle():this.initLinearRectMarkStyle()}_shouldDoPreCalculate(){const t=this.getRegion();return this.getStack()&&t.getSeries().filter(e=>e.type===this.type&&e.getSpec().barMinHeight).length}_calculateStackRectPosition(t){const e=this.getRegion();if(e._bar_series_position_calculated)return;let i,s,r,a,o;e._bar_series_position_calculated=!0,t?(i=Sw,s=xw,r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(i=bw,s=yw,r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=qO(e,!1,h=>h.type===this.type);for(const h in l)for(const d in l[h].nodes)eD(l[h].nodes[d],e.getStackInverse(),{isVertical:t,start:i,end:s,startMethod:r,endMethod:a,axisHelper:o})}_calculateRectPosition(t,e){var i,s;let r,a,o;e?(r="_dataToPosY1",a="_dataToPosY",o="_yAxisHelper"):(r="_dataToPosX1",a="_dataToPosX",o="_xAxisHelper");const l=(s=(i=this[o]).getScale)===null||s===void 0?void 0:s.call(i,0),h=this[o].isInverse(),d=this._spec.barMinHeight,c=Zt(this[r](t),l),u=Zt(this[a](t),l);let p=Math.abs(c-u);pthis._getBarXStart(o,r),x1:o=>this._getBarXEnd(o,r),y:o=>this._getPosition(this.direction,o),height:()=>this._getBarWidth(this._yAxisHelper),width:()=>{},y1:()=>{}},"normal",tt.Series):this.setMarkStyle(this._barMark,{y:o=>this._getBarYStart(o,a),y1:o=>this._getBarYEnd(o,a),x:o=>this._getPosition(this.direction,o),width:()=>this._getBarWidth(this._xAxisHelper),x1:()=>{},height:()=>{}},"normal",tt.Series),this._initStackBarMarkStyle(),this._initBandBarBackgroundMarkStyle()}_initStackBarMarkStyle(){var t,e,i,s;if(!this._spec.stackCornerRadius)return;const r=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),a=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0);this._barMark.setClip(()=>{const o=[];return this._forEachStackGroup(l=>{let h=1/0,d=-1/0,c=!1,u=1/0,p=-1/0;l.values.forEach(f=>{const _=f[An],m=f[qe],y=f[zo],b=f[La];h=Math.min(h,_,m),d=Math.max(d,_,m),P(y)&&P(b)&&(c=!0,u=Math.min(u,y,b),p=Math.max(p,y,b))});const g=Object.assign(Object.assign(Object.assign({},l.values[0]),{[An]:h,[qe]:d}),c?{[zo]:u,[La]:p}:void 0);o.push(wo(Object.assign(Object.assign({},this.direction==="horizontal"?{x:this._getBarXStart(g,r),x1:this._getBarXEnd(g,r),y:this._getPosition(this.direction,g),height:this._getBarWidth(this._yAxisHelper)}:{y:this._getBarYStart(g,a),y1:this._getBarYEnd(g,a),x:this._getPosition(this.direction,g),width:this._getBarWidth(this._xAxisHelper)}),{cornerRadius:this._spec.stackCornerRadius,fill:!0})))}),o})}initLinearRectMarkStyle(){var t,e,i,s;const r=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),a=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0);if(this.direction==="horizontal"){const o=P(this._fieldY2)?{y:l=>Zt(this._dataToPosY(l),a),y1:l=>Zt(this._dataToPosY1(l),a)}:{y:l=>Zt(this._dataToPosY(l)-this._getBarWidth(this._yAxisHelper)/2,a),height:l=>this._getBarWidth(this._yAxisHelper)};this.setMarkStyle(this._barMark,Object.assign({x:l=>this._getBarXStart(l,r),x1:l=>this._getBarXEnd(l,r)},o),"normal",tt.Series),this.setMarkStyle(this._barBackgroundMark,Object.assign({x:()=>this._getBarBackgroundXStart(r),x1:()=>this._getBarBackgroundXEnd(r)},o),"normal",tt.Series)}else{const o=P(this._fieldX2)?{x:l=>Zt(this._dataToPosX(l),r),x1:l=>Zt(this._dataToPosX1(l),r)}:{x:l=>Zt(this._dataToPosX(l)-this._getBarWidth(this._xAxisHelper)/2,r),width:l=>this._getBarWidth(this._xAxisHelper)};this.setMarkStyle(this._barMark,Object.assign(Object.assign({},o),{y:l=>this._getBarYStart(l,a),y1:l=>this._getBarYEnd(l,a)}),"normal",tt.Series),this.setMarkStyle(this._barBackgroundMark,Object.assign(Object.assign({},o),{y:()=>this._getBarBackgroundYStart(a),y1:()=>this._getBarBackgroundYEnd(a)}),"normal",tt.Series)}}_initBandBarBackgroundMarkStyle(){var t,e,i,s,r;if(!this._barBackgroundMark)return;const a=(e=(t=this._xAxisHelper)===null||t===void 0?void 0:t.getScale)===null||e===void 0?void 0:e.call(t,0),o=(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0),l=(r=this._spec.barBackground)!==null&&r!==void 0?r:{},h=C(l.fieldLevel)?void 0:l.fieldLevel+1;this.direction==="horizontal"?this.setMarkStyle(this._barBackgroundMark,{x:()=>this._getBarBackgroundXStart(a),x1:()=>this._getBarBackgroundXEnd(a),y:d=>this._getPosition(this.direction,d,h,"barBackground"),height:()=>this._getBarWidth(this._yAxisHelper,h),width:()=>{},y1:()=>{}},"normal",tt.Series):this.setMarkStyle(this._barBackgroundMark,{x:d=>this._getPosition(this.direction,d,h,"barBackground"),y:()=>this._getBarBackgroundYStart(o),y1:()=>this._getBarBackgroundYEnd(o),width:()=>this._getBarWidth(this._xAxisHelper,h),x1:()=>{},height:()=>{}},"normal",tt.Series)}initAnimation(){var t,e;const i={yField:this._fieldY[0],xField:this._fieldX[0],direction:this.direction,growFrom:()=>{var a,o;return this.direction==="horizontal"?(a=this._xAxisHelper)===null||a===void 0?void 0:a.getScale(0).scale(0):(o=this._yAxisHelper)===null||o===void 0?void 0:o.getScale(0).scale(0)}},s=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset,r=Na(this);this._barMark.setAnimationConfig(zt((e=L.getAnimationInKey("bar"))===null||e===void 0?void 0:e(i,s),Wt(this._barMarkName,this._spec,this._markAttributeContext),r))}_getBarWidth(t,e){var i,s;const r=this._groups?this._groups.fields.length:1,a=C(e)?r:Math.min(r,e),o=(s=(i=t.getBandwidth)===null||i===void 0?void 0:i.call(t,a-1))!==null&&s!==void 0?s:6,l=this._spec.barWidth!==void 0&&a===r,h=this._spec.barMinWidth!==void 0,d=this._spec.barMaxWidth!==void 0;let c=o;return l&&(c=Bl(this._spec.barWidth,o)),h&&(c=Math.max(c,Bl(this._spec.barMinWidth,o))),d&&(c=Math.min(c,Bl(this._spec.barMaxWidth,o))),c}_getPosition(t,e,i,s){var r,a,o,l,h;let d,c,u;t==="horizontal"?(d=this.getYAxisHelper(),c="height",u=s==="barBackground"?this.dataToBarBackgroundPositionY.bind(this):this.dataToPositionY.bind(this)):(d=this.getXAxisHelper(),c="width",u=s==="barBackground"?this.dataToBarBackgroundPositionX.bind(this):this.dataToPositionX.bind(this));const p=d.getScale(0),g=this._groups?this._groups.fields.length:1,f=C(i)?g:Math.min(g,i),_=(a=(r=d.getBandwidth)===null||r===void 0?void 0:r.call(d,f-1))!==null&&a!==void 0?a:6,m=f===g?this._barMark.getAttribute(c,e):_;if(f>1&&P(this._spec.barGapInGroup)){const b=this._groups.fields,v=H(this._spec.barGapInGroup);let x=0,S=0;for(let k=b.length-1;k>=1;k--){const A=b[k],T=(l=(o=d.getScale(k))===null||o===void 0?void 0:o.domain())!==null&&l!==void 0?l:[],M=T.length,w=Bl((h=v[k-1])!==null&&h!==void 0?h:ca(v),_),E=T.indexOf(e[A]);k===b.length-1?(x+=M*m+(M-1)*w,S+=E*(m+w)):(S+=E*(x+w),x+=x+(M-1)*w)}return p.scale(e[b[0]])+d.getBandwidth(0)/2-x/2+S}const y=ie(p.type||"band");return u(e,f)+.5*(_-m)+(y?-_/2:0)}dataToBarBackgroundPositionX(t,e){return this._dataToPosition(t,this._xAxisHelper,this.fieldX,e,this._getBarBackgroundPositionXEncoder,this._setBarBackgroundPositionXEncoder)}dataToBarBackgroundPositionY(t,e){return this._dataToPosition(t,this._yAxisHelper,this.fieldY,e,this._getBarBackgroundPositionYEncoder,this._setBarBackgroundPositionYEncoder)}onLayoutEnd(t){super.onLayoutEnd(t),this.getRegion()._bar_series_position_calculated=!1,this._spec.sampling&&this.compile()}compile(){if(super.compile(),this._spec.sampling){const{width:t,height:e}=this._region.getLayoutRect(),i=[],s=this._fieldY,r=this._fieldX;i.push({type:"sampling",size:this._direction==="horizontal"?e:t,factor:this._spec.samplingFactor,yfield:this._direction==="horizontal"?r[0]:s[0],groupBy:this._seriesField,mode:this._spec.sampling}),this._data.getProduct().transform(i)}}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._barMark]}compileData(){var t;super.compileData(),(t=this._barBackgroundViewData)===null||t===void 0||t.compile()}fillData(){var t,e;super.fillData(),(e=(t=this._barBackgroundViewData)===null||t===void 0?void 0:t.getDataView())===null||e===void 0||e.reRunAllTransform()}viewDataUpdate(t){var e,i,s;super.viewDataUpdate(t),(i=(e=this._barBackgroundViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(s=this._barBackgroundViewData)===null||s===void 0||s.updateData()}release(){var t;super.release(),(t=this._barBackgroundViewData)===null||t===void 0||t.release(),this._barBackgroundViewData=null}}ys.type=j.bar,ys.mark=Im,ys.transformerConstructor=qm;const iD=()=>{aS(),jr(),ZQ(),Mn(),Tn(),L.registerSeries(ys.type,ys)};class Zm extends ks{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup,barMinHeight:t.barMinHeight,sampling:t.sampling,samplingFactor:t.samplingFactor,barBackground:t.barBackground,stackCornerRadius:t.stackCornerRadius})}transformSpec(t){super.transformSpec(t),Wa(t)}_transformAxisSpec(t){var e,i;if(super._transformAxisSpec(t),!t.axes)return;const s=t.series.some(a=>a.direction==="horizontal"),r=(e=t.axes.find(a=>a.type==="band"))!==null&&e!==void 0?e:t.axes.find(a=>(s?["left","right"]:["top","bottom"]).includes(a.orient));if(r&&!r.bandSize&&!r.maxBandSize&&!r.minBandSize&&t.autoBandSize){const a=Ct(t.autoBandSize)&&(i=t.autoBandSize.extend)!==null&&i!==void 0?i:0,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d}=t.series.find(c=>c.type==="bar");this._applyAxisBandSize(r,a,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d})}}}class mo extends xe{constructor(){super(...arguments),this.transformerConstructor=Zm,this.type="bar",this.seriesType=j.bar,this._canStack=!0}}mo.type="bar",mo.seriesType=j.bar,mo.transformerConstructor=Zm;const QQ=()=>{iD(),L.registerChart(mo.type,mo)};class Qc extends Oi{constructor(){super(...arguments),this.type=Qc.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,length:3})}}Qc.type="rect3d";const MS=()=>{L.registerMark(Qc.type,Qc),I6(),TL()};class e_ extends ys{constructor(){super(...arguments),this.type=j.bar3d,this._barMarkName="bar3d",this._barMarkType="rect3d"}}e_.type=j.bar3d,e_.mark=lS;const nD=()=>{JQ(),MS(),Mn(),Tn(),L.registerSeries(e_.type,e_)};class sD extends Zm{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup})}}class Dd extends mo{constructor(){super(...arguments),this.transformerConstructor=sD,this.type="bar3d",this.seriesType=j.bar3d}}Dd.type="bar3d",Dd.seriesType=j.bar3d,Dd.transformerConstructor=sD;const ttt=()=>{nD(),L.registerChart(Dd.type,Dd)},_C=10,ett=[10,20],itt=je.Linear,mC="circle",ntt=je.Ordinal,stt=["circle","square","triangle","diamond","star"],rtt=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},att=()=>{L.registerAnimation("scatter",(n,t)=>Object.assign({appear:rtt(0,t)},bS))};class rD extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"point")}}class xa extends as{constructor(){super(...arguments),this.type=j.scatter,this.transformerConstructor=rD,this._invalidType="zero"}setAttrFromSpec(){super.setAttrFromSpec(),this._size=this._spec.size,this._sizeField=this._spec.sizeField,this._shape=this._spec.shape,this._shapeField=this._spec.shapeField}_getSeriesAttribute(t,e,{defaultScaleType:i,defaultRange:s},r){var a,o,l,h;if(G(e))return e;if(V(e)){if(C(t))return(a=this._option)===null||a===void 0||a.onError(`${r}Field is required.`),e;if(i!=="ordinal"&&e.length>2)return(o=this._option)===null||o===void 0||o.onError(`${r} length is invalid, specify up to 2 ${r}s.`),e;const d=`${yt}_series_scatter_${this.id}_scale_${r}`;return this._option.globalScale.registerModelScale({id:d,type:i,domain:[{dataId:this._rawData.name,fields:[t]}],range:e}),{scale:d,field:t}}if(Ct(e)){if(C(t))return(l=this._option)===null||l===void 0||l.onError(`${r}Field is required.`),e;const d=`${yt}_series_scatter_${this.id}_scale_${r}`,c=Object.assign({id:d,type:i,domain:[{dataId:this._rawData.name,fields:[t]}],range:s},e);return this._option.globalScale.registerModelScale(c),{scale:c.id,field:t}}return(h=this._option)===null||h===void 0||h.onError(`${r} attribute is invalid.`),e}getSizeAttribute(t,e){return C(e)?_C:nt(e)?e:at(e)&&K2(e)?parseFloat(e):this._getSeriesAttribute(t,e,{defaultScaleType:itt,defaultRange:ett},"size")}getShapeAttribute(t,e){return C(e)?mC:at(e)?e:this._getSeriesAttribute(t,e,{defaultScaleType:ntt,defaultRange:stt},"shape")}initMark(){var t,e;const i={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._symbolMark=this._createMark(xa.mark.point,{morph:Fr(this._spec,xa.mark.point.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,progressive:i,isSeriesMark:!0,customShape:(t=this._spec.point)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.point)===null||e===void 0?void 0:e.stateSort})}initMarkStyle(){this.initSymbolMarkStyle()}initAnimation(){var t,e,i;const s=Na(this),r=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._symbolMark.setAnimationConfig(zt((i=L.getAnimationInKey("scatter"))===null||i===void 0?void 0:i({},r),Wt("point",this._spec,this._markAttributeContext),s))}initSymbolMarkStyle(){const t=this._symbolMark;t&&(this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)}),this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),z:this._fieldZ?this.dataToPositionZ.bind(this):null,fill:this.getColorAttribute(),size:nt(this._size)||G(this._size)?this._size:_C,symbolType:at(this._shape)||G(this._shape)?this._shape:mC},dt.STATE_NORMAL,tt.Series),(P(this._sizeField)||P(this._size))&&this.setMarkStyle(t,{size:this.getSizeAttribute(this._sizeField,this._size)},dt.STATE_NORMAL,tt.User_Mark),(P(this._shapeField)||P(this._shape))&&this.setMarkStyle(t,{symbolType:this.getShapeAttribute(this._shapeField,this._shape)},dt.STATE_NORMAL,tt.User_Mark))}initTooltip(){super.initTooltip(),this._symbolMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark)}viewDataStatisticsUpdate(t){super.viewDataStatisticsUpdate(t);const e=[this.getDimensionField()[0],this.getStackValueField()].every(i=>{var s,r,a;return i&&((a=(r=(s=this.getViewDataStatistics())===null||s===void 0?void 0:s.latestData)===null||r===void 0?void 0:r[i])===null||a===void 0?void 0:a.allValid)});this._invalidType==="zero"||e?this.setMarkStyle(this._symbolMark,{visible:!0},"normal",tt.Series):this.setMarkStyle(this._symbolMark,{visible:this._getInvalidDefined.bind(this)},"normal",tt.Series),this._symbolMark.getProduct()&&this._symbolMark.compileEncode()}initLabelMarkStyle(t){t&&(this._labelMark=t,this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getStackValueField()],z:this._fieldZ?this.dataToPositionZ.bind(this):null},dt.STATE_NORMAL,tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{visible:this._getInvalidDefined.bind(this)},dt.STATE_NORMAL,tt.Series))}handleZoom(t){var e,i;this.getMarksWithoutRoot().forEach(r=>{const a=r.getProduct();!a||!a.elements||!a.elements.length||a.elements.forEach((o,l)=>{const h=o.getGraphicItem(),d=o.getDatum(),c=this.dataToPosition(d);c&&h&&h.translateTo(c.x,c.y)})});const s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();s&&s.evaluate(null,null)}handlePan(t){var e,i;this.getMarksWithoutRoot().forEach(r=>{const a=r.getProduct();!a||!a.elements||!a.elements.length||a.elements.forEach((o,l)=>{const h=o.getGraphicItem(),d=o.getDatum(),c=this.dataToPosition(d);c&&h&&h.translateTo(c.x,c.y)})});const s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct();s&&s.evaluate(null,null)}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._symbolMark]}}xa.type=j.scatter,xa.mark=_O,xa.transformerConstructor=rD;const ott=()=>{zr(),att(),Mn(),Tn(),L.registerSeries(xa.type,xa)};class aD extends ks{_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{point:t.point,size:t.size,sizeField:t.sizeField,shape:t.shape,shapeField:t.shapeField})}}class Fd extends xe{constructor(){super(...arguments),this.transformerConstructor=aD,this.type="scatter",this.seriesType=j.scatter,this._canStack=!0}}Fd.type="scatter",Fd.seriesType=j.scatter,Fd.transformerConstructor=aD;const ltt=()=>{ott(),L.registerChart(Fd.type,Fd)};Jb();const vC={},wS=["clipAngle","clipExtent","scale","translate","center","rotate","precision","reflectX","reflectY","parallels","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function htt(n,t){return function e(){const i=t();return i.type=n,i.path=Jb().projection(i),i.copy=i.copy||function(){const s=e();return wS.forEach(r=>{i[r]&&s[r](i[r]())}),s.path.pointRadius(i.path.pointRadius()),s},i}}function Jr(n,t){n&&at(n)||uo("Projection type must be a name string.");const e=n.toLowerCase();return arguments.length>1&&(vC[e]=htt(e,t)),vC[e]||null}const yC={albers:pE,albersusa:Pz,azimuthalequalarea:Ez,azimuthalequidistant:Rz,conicconformal:Oz,conicequalarea:lg,conicequidistant:Fz,equalEarth:jz,equirectangular:Lz,gnomonic:Hz,identity:Vz,mercator:Bz,naturalEarth1:Wz,orthographic:Nz,stereographic:Gz,transversemercator:Uz};Object.keys(yC).forEach(n=>{Jr(n,yC[n])});const bC="Feature",oD="FeatureCollection";function dtt(n){return n.type===oD?n.features:H(n).filter(t=>!C(t)).map(t=>t.type===bC?t:{type:bC,geometry:t})}function ctt(n){const t=H(n);return t.length===1?t[0]:{type:oD,features:t.reduce((e,i)=>e.concat(dtt(i)),[])}}function utt(n){const t=Jr((n||"mercator").toLowerCase());return t||uo("Unrecognized projection type: "+n),t()}function ptt(n,t,e){G(n[t])&&n[t](e)}const gtt=wS.concat(["pointRadius","fit","extent","size"]);function xC(n,t){let e=[];return n&&Object.keys(n).forEach(i=>{gtt.includes(i)&&(e=e.concat(Gi(n[i],t)))}),e}let ftt=class extends Em{constructor(t){super(t),this.grammarType="projection"}parse(t){return super.parse(t),this.pointRadius(t.pointRadius),this.size(t.size),this.extent(t.extent),this.fit(t.fit),this.configure(t),this.commit(),this}pointRadius(t){return C(this.spec.pointRadius)||this.detach(Gi(this.spec.pointRadius,this.view)),this.spec.pointRadius=t,this.attach(Gi(t,this.view)),this.commit(),this}size(t){return C(this.spec.size)||this.detach(Gi(this.spec.size,this.view)),this.spec.size=t,this.attach(Gi(t,this.view)),this.commit(),this}extent(t){return C(this.spec.extent)||this.detach(Gi(this.spec.extent,this.view)),this.spec.extent=t,this.attach(Gi(t,this.view)),this.commit(),this}fit(t){return C(this.spec.fit)||this.detach(Gi(this.spec.fit,this.view)),this.spec.fit=t,this.attach(Gi(t,this.view)),this.commit(),this}configure(t){return this.detach(xC(this.spec,this.view)),C(t)?this.spec={type:this.spec.type,fit:this.spec.fit,extent:this.spec.extent,size:this.spec.size,pointRadius:this.spec.pointRadius}:(Object.assign(this.spec,t),this.attach(xC(this.spec,this.view))),this.commit(),this}evaluate(t,e){if(this.projection&&this.projection.type===this.spec.type||(this.projection=utt(this.spec.type),this.projection.type=this.spec.type),wS.forEach(i=>{C(this.spec[i])||ptt(this.projection,i,He(this.spec[i],e,Jr))}),C(this.spec.pointRadius)||this.projection.path.pointRadius(He(this.spec.pointRadius,e,Jr)),!(C(this.spec.fit)||C(this.spec.extent)&&C(this.spec.size))){const i=ctt(He(this.spec.fit,e,Jr));this.spec.extent?this.projection.fitExtent(He(this.spec.extent,e,Jr),i):this.spec.size&&this.projection.fitSize(He(this.spec.size,e,Jr),i)}return this.projection}output(){return this.projection}};const _tt=()=>{it.registerGrammar("projection",ftt,"projections")},mtt=(n,t)=>{if(!t.from||!t.from())return n;const e=t.fields,i=t.key,s=t.values,r=t.default,a=t.as||[e],o=t.from().reduce(function(h,d){return d[e]&&h.set(d[e],d),h},new Map);let l;if(G(t.set))l=function(h){const d=o.get(h[i]);t.set(h,d)};else if(s){const h=s.length;l=function(d){const c=o.get(d[i]);if(C(c))for(let u=0;u(l(h),h))};class vtt extends Vo{constructor(){super(...arguments),this.type=j.geo,this.coordinate="geo",this._nameProperty="name"}getMapViewData(){var t;return(t=this._mapViewData)===null||t===void 0?void 0:t.getDataView()}get nameField(){return this._nameField}set nameField(t){this._nameField=t}get valueField(){return this._valueField}set valueField(t){this._valueField=t}getNameProperty(){return this._nameProperty}getCentroidProperty(){return this._centroidProperty}getCoordinateHelper(){return this._coordinateHelper}setCoordinateHelper(t){this._coordinateHelper=t}getStatisticFields(){const t=[];return t.push({key:this._nameField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}getGroupFields(){return null}dataToPosition(t,e){var i;let s=null;if(!t||e&&!this.isDatumInViewData(t))return s;const{dataToPosition:r,latitudeField:a,longitudeField:o}=this._coordinateHelper;if(s=this.nameToPosition(t),s===null){const l=o?t==null?void 0:t[o]:Number.NaN,h=a?t==null?void 0:t[a]:Number.NaN;s=(i=r==null?void 0:r([l,h]))!==null&&i!==void 0?i:null}return s}nameToPosition(t){const e=this.getDatumName(t);return C(e)?null:this.nameValueToPosition(e)}nameValueToPosition(t){var e,i;const s=(i=(e=this.getMapViewData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.filter(l=>this.getDatumName(l)===t)[0];if(C(s))return null;const{dataToPosition:r}=this._coordinateHelper,a=this.getDatumCenter(s),o=r==null?void 0:r(a);return C(o)||isNaN(o.x)||isNaN(o.y)?null:o}dataToLatitude(t){if(!this._coordinateHelper)return Number.NaN;const{dataToLatitude:e}=this._coordinateHelper;return e(t)}dataToLongitude(t){if(!this._coordinateHelper)return Number.NaN;const{dataToLatitude:e}=this._coordinateHelper;return e(t)}valueToPosition(t,e){return{x:this.dataToLongitude(t),y:this.dataToLatitude(e)}}positionToData(t){}latitudeToData(t){}longitudeToData(t){}dataToPositionX(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionY(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionZ(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}release(){super.release(),this._mapViewData.release(),this._mapViewData=this._mapViewDataStatistics=null}getStackGroupFields(){return[this._nameField]}getStackValueField(){return this._spec.valueField}compileData(){var t;(t=this._mapViewData)===null||t===void 0||t.compile()}initStatisticalData(){if(super.initStatisticalData(),this._mapViewData){const t=`${yt}_series_${this.id}_mapViewDataStatic`;this._mapViewDataStatistics=this.createStatisticalData(t,this._mapViewData.getDataView()),this._mapViewData.getDataView().target.removeListener("change",this._mapViewDataStatistics.reRunAllTransform)}}getSeriesKeys(){var t,e,i,s,r;return this._seriesField?(r=(e=(t=this.getRawDataStatisticsByField(this._seriesField))===null||t===void 0?void 0:t.values)!==null&&e!==void 0?e:(s=(i=this._mapViewDataStatistics)===null||i===void 0?void 0:i.latestData[this._seriesField])===null||s===void 0?void 0:s.values)!==null&&r!==void 0?r:[]:this.name?[this.name]:this.userId?[`${this.userId}`]:[`${this.type}_${this.id}`]}fillData(){var t,e;super.fillData(),(t=this._mapViewData.getDataView())===null||t===void 0||t.reRunAllTransform(),(e=this._mapViewDataStatistics)===null||e===void 0||e.reRunAllTransform()}getActiveMarks(){return[]}}const i_=`${yt}_MAP_LOOK_UP_KEY`,ytt=(n,t)=>(n.features&&n.features.forEach((e,i)=>{var s;e[Xi]=i;const r=(s=e.properties)===null||s===void 0?void 0:s[t.nameProperty];t.nameMap&&t.nameMap[r]?e[i_]=t.nameMap[r]:e[i_]=r}),n.features);class btt extends un{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=t=>{var e;const i=this.series;return(e=this._getDimensionData(t))!==null&&e!==void 0?e:i.getDatumName(t)}}}class tu extends Oi{constructor(){super(...arguments),this.type=tu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0,path:""})}}tu.type="path";const CS=()=>{L.registerMark(tu.type,tu),UI()};class xtt{constructor(t){this.projection=Jr(t.type)()}fit(t,e,i){const s={type:"FeatureCollection",features:i};this.projection.fitExtent([t,e],s)}center(t){var e,i;(i=(e=this.projection)===null||e===void 0?void 0:e.center)===null||i===void 0||i.call(e,t)}project(t){var e;return(e=this.projection)===null||e===void 0?void 0:e.call(this,t)}shape(t){var e,i;return(i=(e=this.projection)===null||e===void 0?void 0:e.path)===null||i===void 0?void 0:i.call(e,t)}invert(t){var e,i;return(i=(e=this.projection)===null||e===void 0?void 0:e.invert)===null||i===void 0?void 0:i.call(e,t)}scale(t){var e;if(!((e=this.projection)===null||e===void 0)&&e.scale){if(t===void 0)return this.projection.scale();this.projection.scale(t)}}translate(t){var e;if(!((e=this.projection)===null||e===void 0)&&e.scale){if(t===void 0)return this.projection.translate();this.projection.translate(t)}}evaluate(t,e,i){const s=this.projection.copy();return s==null?void 0:s.fitExtent([t,e],{type:"FeatureCollection",features:i})}}class Stt{parserScrollEvent(t){return t&&!(t.ctrlKey||t.deltaY===0&&t.deltaX===0)&&(t.scrollX=t.deltaX,t.scrollY=t.deltaY,t)}parserZoomEvent(t){if(!t)return t;const e=Math.pow(1.0005,-t.deltaY*Math.pow(16,t.deltaMode));return t.zoomDelta=e,t.zoomX=t.canvasX,t.zoomY=t.canvasY,t}clearZoom(){}clearScroll(){}clearDrag(){}parserDragEvent(){return!0}}class Att{constructor(){this._lastScale=0}clearZoom(){this._lastScale=0,this.pointerId=null}parserDragEvent(t){return!0}parserZoomEvent(t){const e=t.scale;if(this._lastScale===0)return this._lastScale=e,t;t.zoomDelta=e/this._lastScale;const i=t.center;return t.zoomX=i.x,t.zoomY=i.y,this._lastScale=e,t}parserScrollEvent(t){return t}clearScroll(){}clearDrag(){}}function rr(n){return n===Ke["desktop-browser"]||n===Ke["desktop-miniApp"]?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"wheel",zoomEnd:"pointerup",scroll:"wheel",trigger:Stt}:Ba(n)||ja(n)?{start:"pointerdown",move:"pointermove",end:"pointerup",zoom:"pinch",zoomEnd:"pinchend",scroll:"pan",scrollEnd:"panend",trigger:Att}:null}const hl={debounce:Xs,throttle:za};class PS{constructor(){this._isGestureListener=!1}initZoomable(t,e=Ke["desktop-browser"]){this._eventObj=t,this._renderMode=e,this._gestureController=this._option.getChart().getVGrammarView().renderer._gestureController,this._isGestureListener=Ba(this._renderMode)||ja(this._renderMode),rr(this._renderMode)&&(this._clickEnable=!0,this._zoomableTrigger=new(this._getZoomTriggerEvent("trigger")))}_getZoomTriggerEvent(t){return rr(this._renderMode)[t]}_zoomEventDispatch(t,e,i){if(!this._isGestureListener&&!t.event)return;const s=this._isGestureListener?t:t.event.clone();this._zoomableTrigger.parserZoomEvent(s);const{zoomDelta:r,zoomX:a,zoomY:o}=s;if(C(r)||!_d({x:a,y:o},this._getRegionOrSeriesLayout(e),!1))return;let l={};i&&(l=i({zoomDelta:r,zoomX:a,zoomY:o},s)),this._eventObj.emit("zoom",Object.assign(Object.assign({scale:s.zoomDelta,scaleCenter:{x:s.zoomX,y:s.zoomY}},l),{model:this}))}_getRegionOrSeriesLayout(t){t.type!=="region"&&(t=t.getRegion());const{x:e,y:i,width:s,height:r}=t.layout.getLayout();return{x1:e,y1:i,x2:e+s,y2:i+r}}_bindZoomEventAsRegion(t,e,i,s){var r,a;const o=(r=s==null?void 0:s.delayType)!==null&&r!==void 0?r:"throttle",l=(a=s==null?void 0:s.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("zoom")]:[this._getZoomTriggerEvent("zoom"),{level:he.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("zoomEnd")]:[this._getZoomTriggerEvent("zoomEnd"),{level:he.chart,consume:!1}];h.on(...c,hl[o](u=>{this._zoomableTrigger.clearZoom()},l)),h.on(...d,hl[o](u=>{this._zoomEventDispatch(u,e,i)},l))}initZoomEventOfSeries(t,e,i){this._option.disableTriggerEvent||rr(this._renderMode)&&this._bindZoomEventAsRegion(t.event,t,e,i)}initZoomEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||rr(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindZoomEventAsRegion(a.event,a,i,s)}):this._bindZoomEventAsRegion(this._eventObj,r,i,s)})}_scrollEventDispatch(t,e,i){let s=!1;if(!this._isGestureListener&&(!t.event||this._option.disableTriggerEvent))return s;const r=this._isGestureListener?t:t.event;this._zoomableTrigger.parserScrollEvent(r);const{scrollX:a,scrollY:o,canvasX:l,canvasY:h}=r;return C(a)&&C(o)||_d({x:l,y:h},this._getRegionOrSeriesLayout(e),!1)&&(i&&(s=i({scrollX:a,scrollY:o},r)),this._eventObj.emit("scroll",{scrollX:a,scrollY:o,model:this})),s}_bindScrollEventAsRegion(t,e,i,s){var r,a;const o=(r=s==null?void 0:s.delayType)!==null&&r!==void 0?r:"throttle",l=(a=s==null?void 0:s.delayTime)!==null&&a!==void 0?a:0,h=this._isGestureListener?this._gestureController:t,d=this._isGestureListener?[this._getZoomTriggerEvent("scroll")]:[this._getZoomTriggerEvent("scroll"),{level:he.chart,consume:!0}],c=this._isGestureListener?[this._getZoomTriggerEvent("scrollEnd")]:[this._getZoomTriggerEvent("scrollEnd"),{level:he.chart,consume:!1}];h.on(...c,hl[o](u=>{this._zoomableTrigger.clearScroll()},l)),h.on(...d,hl[o](u=>this._scrollEventDispatch(u,e,i),l))}initScrollEventOfSeries(t,e,i){rr(this._renderMode)&&this._bindScrollEventAsRegion(t.event,t,e,i)}initScrollEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||rr(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&this._bindScrollEventAsRegion(a.event,a,i,s)}):this._bindScrollEventAsRegion(this._eventObj,r,i,s)})}_bindDragEventAsRegion(t,e,i,s){t.on(this._getZoomTriggerEvent("start"),{level:he.chart},r=>{if(!r.event)return;const{event:a}=r;_d({x:a.canvasX,y:a.canvasY},this._getRegionOrSeriesLayout(e),!1)&&this._handleDrag(r,i,s)}),t.on("click",{level:he.chart},()=>!this._clickEnable)}initDragEventOfSeries(t,e,i){this._option.disableTriggerEvent||rr(this._renderMode)&&t.event.on(this._getZoomTriggerEvent("start"),{level:he.model,filter:({model:s})=>(s==null?void 0:s.id)===t.id},s=>{this._handleDrag(s,e,i)})}initDragEventOfRegions(t,e,i,s){this._option.disableTriggerEvent||rr(this._renderMode)&&t.forEach(r=>{e?r.getSeries().forEach(a=>{e(a)&&(a.event.on(this._getZoomTriggerEvent("start"),{level:he.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},o=>{this._handleDrag(o,i)}),a.event.on("click",{level:he.model,filter:({model:o})=>(o==null?void 0:o.id)===a.id},()=>!this._clickEnable))}):this._bindDragEventAsRegion(this._eventObj,r,i,s)})}_handleDrag(t,e,i){var s,r,a;if(this._option.disableTriggerEvent||(this._clickEnable=!1,!this._zoomableTrigger.parserDragEvent(t.event)))return;const o=(s=i==null?void 0:i.delayType)!==null&&s!==void 0?s:"throttle",l=(r=i==null?void 0:i.delayTime)!==null&&r!==void 0?r:0,h=(a=i==null?void 0:i.realTime)===null||a===void 0||a,d=this._getZoomTriggerEvent("move"),c=this._getZoomTriggerEvent("end"),u=t.event;let p=u.canvasX,g=u.canvasY,f=u.canvasX,_=u.canvasY;const m=hl[o](b=>{this._clickEnable=!0;const v=b.event,x=[v.canvasX-f,v.canvasY-_];f=v.canvasX,_=v.canvasY,!h&&e&&e(x,b.event),this._eventObj.emit("panend",{delta:x,model:this}),this._zoomableTrigger.pointerId=null,this._eventObj.off(d,{level:he.chart,source:Nt.chart},y),this._eventObj.off(c,{level:he.chart,source:Nt.window},m),this._eventObj.allow(c)},l),y=hl[o](b=>{if(!this._zoomableTrigger.parserDragEvent(b.event))return;this._clickEnable=!1,this._eventObj.prevent(c,m);const v=b.event,x=[v.canvasX-p,v.canvasY-g];p=v.canvasX,g=v.canvasY,h&&e&&e(x,b.event),this._eventObj.emit("panmove",{delta:x,model:this})},l);this._eventObj.on(d,{level:he.chart,source:Nt.chart},y),this._eventObj.on(c,{level:he.chart,source:Nt.chart},m)}}function ktt(n,t){return`${yt}_${t}_${n}`}class n_ extends gn{constructor(){super(...arguments),this.type=U.geoCoordinate,this.name=U.geoCoordinate,this.layoutType="none",this.layoutZIndex=re.Mark,this._projectionSpec={name:ktt(this.type,this.id),type:"mercator"},this._actualScale=1,this._initialScale=1,this.effect={scaleUpdate:()=>{this.coordinateHelper()}},this._handleChartZoom=(t,e)=>{var i,s,r,a,o,l;let h=t.zoomDelta;const d=this._actualScale;return this._actualScale*=h,this._actualScale<((i=this._spec.zoomLimit)===null||i===void 0?void 0:i.min)?(this._actualScale=(s=this._spec.zoomLimit)===null||s===void 0?void 0:s.min,h=((r=this._spec.zoomLimit)===null||r===void 0?void 0:r.min)/d):this._actualScale>((a=this._spec.zoomLimit)===null||a===void 0?void 0:a.max)&&(this._actualScale=(o=this._spec.zoomLimit)===null||o===void 0?void 0:o.max,h=((l=this._spec.zoomLimit)===null||l===void 0?void 0:l.max)/d),this.zoom(h,[t.zoomX,t.zoomY]),{scale:h,totalScale:this._actualScale}},this.pan=(t=[0,0])=>{var e,i,s;const r=(i=(e=this._projection)===null||e===void 0?void 0:e.translate())!==null&&i!==void 0?i:[0,0];let a=r[0],o=r[1];a+=t[0],o+=t[1],(s=this._projection)===null||s===void 0||s.translate([a,o])}}get longitudeField(){return this._longitudeField}get latitudeField(){return this._latitudeField}get projectionSpec(){return this._projectionSpec}setProjection(t){this._projectionSpec=Object.assign(Object.assign({},t),{name:this._projectionSpec.name})}getZoom(){return this._actualScale}static getSpecInfo(t){if(C(t))return null;const e=[];return t.region.forEach((i,s)=>{if(i.coordinate==="geo"){const r=Object.assign(Object.assign({},i),{padding:0});e.push({spec:r,regionIndex:s,type:U.geoCoordinate,specInfoPath:["component","geoCoordinate",s]})}}),e}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this._spec.roam&&this.initZoomable(this.event,this._option.mode),this._projectionSpec=vt(this._projectionSpec,this._spec.projection),this._projectionSpec.zoom>((t=this._spec.zoomLimit)===null||t===void 0?void 0:t.max)&&(this._projectionSpec.zoom=this._spec.zoomLimit.max),this._projectionSpec.zoom<((e=this._spec.zoomLimit)===null||e===void 0?void 0:e.min)&&(this._projectionSpec.zoom=this._spec.zoomLimit.min),this._actualScale=(i=this._projectionSpec.zoom)!==null&&i!==void 0?i:1,this._initialScale=this._actualScale,this._longitudeField=this._spec.longitudeField,this._latitudeField=this._spec.latitudeField}created(){super.created(),this._regions=this._option.getRegionsInIndex([this._option.regionIndex]),this.initProjection(),this.coordinateHelper(),this.initEvent(),this._initCenterCache()}dispatchZoom(t,e){const i=e||{x:this.getLayoutStartPoint().x+this.getLayoutRect().width/2,y:this.getLayoutStartPoint().y+this.getLayoutRect().height/2},{scale:s,totalScale:r}=this._handleChartZoom({zoomDelta:t,zoomX:i.x,zoomY:i.y});s!==1&&this.event.emit("zoom",{scale:s,scaleCenter:i,totalScale:r,model:this})}initEvent(){this.event.on(ft.scaleUpdate,{filter:({model:t})=>(t==null?void 0:t.id)===this.id},this.effect.scaleUpdate.bind(this)),this._spec.roam&&(this.initZoomEventOfRegions(this._regions,null,this._handleChartZoom),this.initDragEventOfRegions(this._regions,()=>!0,this.pan),this._regions.forEach(t=>{t.getSeries().forEach(e=>{e.event.on("zoom",i=>(e.handleZoom(i),!0)),e.event.on("panmove",i=>(e.handlePan(i),!0))})}))}initProjection(){var t;this._projection=new xtt(this._projectionSpec),this._projection.projection!==null||(t=this._option)===null||t===void 0||t.onError("unsupported projection type!")}coordinateHelper(){const t={longitudeField:this._longitudeField,latitudeField:this._latitudeField,dataToPosition:this.dataToPosition.bind(this),dataToLongitude:this.dataToLongitude.bind(this),dataToLatitude:this.dataToLatitude.bind(this),shape:this.shape.bind(this),getCoordinateId:()=>this.id};this._regions.forEach(e=>{e.getSeries().forEach(i=>{i.type===j.map?i.setCoordinateHelper(t):(i.setXAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(s,r)=>{var a;let o=s[0];if(C(o)&&(r!=null&&r.datum)){const l=r.datum[i.getDimensionField()[0]];o=(a=this._centerCache.get(l))===null||a===void 0?void 0:a.x}return this.dataToLongitude(o)},valueToPosition:(s,r)=>{var a;if(C(s)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];s=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.x}return this.dataToLongitude(s)},getFields:()=>[this._longitudeField],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>!1})),i.setYAxisHelper(Object.assign(Object.assign({},t),{isContinuous:!0,dataToPosition:(s,r)=>{var a;let o=s[0];if(C(o)&&(r!=null&&r.datum)){const l=r.datum[i.getDimensionField()[0]];o=(a=this._centerCache.get(l))===null||a===void 0?void 0:a.y}return this.dataToLatitude(o)},valueToPosition:(s,r)=>{var a;if(C(s)&&(r!=null&&r.datum)){const o=r.datum[i.getDimensionField()[0]];s=(a=this._centerCache.get(o))===null||a===void 0?void 0:a.y}return this.dataToLatitude(s)},getFields:()=>[this._latitudeField],getAxisType:()=>this.type,getAxisId:()=>this.id,isInverse:()=>!1})))})})}onLayoutEnd(t){this.setLayoutRect(this._regions[0].getLayoutRect()),this.setLayoutStartPosition(this._regions[0].getLayoutStartPoint());const{width:e,height:i}=this.getLayoutRect(),{translate:s,scale:r,center:a}=this.evaluateProjection([0,0],[e,i]);s&&this._projection.translate(s),r&&this._projection.scale(r),a&&this._projection.center(a),Ee(this._regions,o=>{var l;if(o.type===j.map){o.areaPath.clear();const h=(l=o.getRootMark().getProduct())===null||l===void 0?void 0:l.getGroupGraphicItem();h&&h.attribute.postMatrix&&h.setAttributes({postMatrix:new Re})}}),this._actualScale=this._initialScale,super.onLayoutEnd(t)}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}collectFeatures(){const t=[];return this._regions.forEach(e=>{e.getSeries().forEach(i=>{var s,r;i.type===j.map&&t.push(...(r=(s=i.getMapViewData())===null||s===void 0?void 0:s.latestData)!==null&&r!==void 0?r:[])})}),t}dataToPosition(t=[]){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([t[0],t[1]]);return{x:i==null?void 0:i[0],y:i==null?void 0:i[1]}}dataToLatitude(t){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([0,t]);return i==null?void 0:i[1]}dataToLongitude(t){var e;const i=(e=this._projection)===null||e===void 0?void 0:e.project([t,0]);return i==null?void 0:i[0]}zoom(t,e=[0,0]){var i,s,r,a,o,l;let h=(s=(i=this._projection)===null||i===void 0?void 0:i.scale())!==null&&s!==void 0?s:0;const d=(a=(r=this._projection)===null||r===void 0?void 0:r.translate())!==null&&a!==void 0?a:[0,0];let c=d[0],u=d[1];h*=t,c-=(e[0]-c)*(t-1),u-=(e[1]-u)*(t-1),(o=this._projection)===null||o===void 0||o.scale(h),(l=this._projection)===null||l===void 0||l.translate([c,u])}shape(t){return this._projection.shape(t)}invert(t){return this._projection.invert(t)}evaluateProjection(t,e){var i;const s=this._projection.evaluate(t,e,this.collectFeatures());let r=s.translate();const a=s.scale()*this._initialScale,o=(i=this._projectionSpec.center)!==null&&i!==void 0?i:s.invert([e[0]/2,e[1]/2]);return o&&(r=[e[0]/2,e[1]/2]),{translate:r,scale:a,center:o}}_initCenterCache(){this._centerCache||(this._centerCache=new Map),this._regions.forEach(t=>{t.getSeries().forEach(e=>{var i,s;e.type==="map"&&((s=(i=e.getMapViewData())===null||i===void 0?void 0:i.latestData)!==null&&s!==void 0?s:[]).forEach((r={})=>{const a=r[e.getDimensionField()[0]]||r[i_],o=e.getDatumCenter(r);a&&P(o)&&this._centerCache.set(a,{x:o[0],y:o[1]})})})})}release(){super.release(),this._centerCache&&this._centerCache.clear(),this._centerCache=null}}n_.type=U.geoCoordinate,$e(n_,PS);const lD=()=>{L.registerComponent(n_.type,n_)};class hD extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"area",void 0,void 0,!1)}}class Sa extends vtt{constructor(){super(...arguments),this.type=j.map,this.transformerConstructor=hD,this._areaCache=new Map}getNameMap(){return this._nameMap}get areaPath(){return this._areaCache}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this.map=this._spec.map,this._nameMap=this._spec.nameMap,this._nameField=this._spec.nameField,this._valueField=this._spec.valueField,this._spec.nameProperty&&(this._nameProperty=this._spec.nameProperty),this._spec.centroidProperty&&(this._centroidProperty=this._spec.centroidProperty),this.map||(t=this._option)===null||t===void 0||t.onError(`map type '${this.map}' is not specified !`),jo.get(this.map)||(e=this._option)===null||e===void 0||e.onError(`'${this.map}' data is not registered !`)}initData(){var t,e;super.initData(),Tt(this._dataSet,"copyDataView",Dm),Tt(this._dataSet,"map",ytt),Tt(this._dataSet,"lookup",mtt);const i=jo.get(this.map);i||(t=this._option)===null||t===void 0||t.onError("no valid map data found!");const s=new Ut(this._dataSet,{name:`map_${this.id}_data`});s.parse([i],{type:"dataview"}).transform({type:"copyDataView",options:{deep:!0},level:Ss.copyDataView}).transform({type:"map",options:{nameMap:this._nameMap,nameProperty:this._nameProperty}}).transform({type:"lookup",options:{from:()=>{var r;return(r=this._data)===null||r===void 0?void 0:r.getLatestData()},key:i_,fields:this._nameField,set:(r,a)=>{a&&Object.keys(a).forEach(o=>{o in r||(r[o]=a[o])})}}}),(e=this._data)===null||e===void 0||e.getDataView().target.addListener("change",s.reRunAllTransform),this._mapViewData=new Ys(this._option,s)}initMark(){this._pathMark=this._createMark(Sa.mark.area,{morph:Fr(this._spec,Sa.mark.area.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this.getDimensionField()[0],isSeriesMark:!0,skipBeforeLayouted:!0,dataView:this._mapViewData.getDataView(),dataProductId:this._mapViewData.getProductId()})}initMarkStyle(){const t=this._pathMark;t&&(this.setMarkStyle(t,{fill:e=>{var i,s,r,a;return P(e[(i=this._seriesField)!==null&&i!==void 0?i:xn])?((s=this._option.globalScale.getScale("color"))!==null&&s!==void 0?s:this._getDefaultColorScale()).scale(e[(r=this._seriesField)!==null&&r!==void 0?r:xn]):(a=this._spec)===null||a===void 0?void 0:a.defaultFillColor},path:this.getPath.bind(this)},"normal",tt.Series),t.setPostProcess("fill",e=>P(e)?e:this._spec.defaultFillColor),this.setMarkStyle(t,{smoothScale:!0},"normal",tt.Built_In))}initLabelMarkStyle(t){t&&(this._labelMark=t,this.setMarkStyle(t,{text:e=>this.getDatumName(e),x:e=>{var i;return(i=this.dataToPosition(e))===null||i===void 0?void 0:i.x},y:e=>{var i;return(i=this.dataToPosition(e))===null||i===void 0?void 0:i.y}}))}initAnimation(){var t;this._pathMark.setAnimationConfig(zt((t=L.getAnimationInKey("fadeInOut"))===null||t===void 0?void 0:t(),Wt("area",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new btt(this),this._pathMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pathMark)}getPath(t){var e;const i=this._areaCache.get(t[Xi]);if(i)return i.shape;const s=(e=this._coordinateHelper)===null||e===void 0?void 0:e.shape(t);return this._areaCache.set(t[Xi],{shape:s}),s}onEvaluateEnd(){this._mapViewData.updateData()}getDimensionField(){return[this.nameField]}getMeasureField(){return[this.valueField]}release(){super.release(),this._areaCache.clear(),this._nameMap={},this._mapViewData=null}handleZoom(t){var e,i,s;const{scale:r,scaleCenter:a}=t;if(r===1)return;const o=(e=this.getRootMark().getProduct())===null||e===void 0?void 0:e.getGroupGraphicItem();o&&(o.attribute.postMatrix||o.setAttributes({postMatrix:new Re}),o.scale(r,r,a));const l=(s=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||s===void 0?void 0:s.getProduct();l&&l.evaluate(null,null)}handlePan(t){var e,i,s;const{delta:r}=t;if(r[0]===0&&r[1]===0)return;const a=(e=this.getRootMark().getProduct())===null||e===void 0?void 0:e.getGroupGraphicItem();a&&(a.attribute.postMatrix||a.setAttributes({postMatrix:new Re}),a.translate(r[0],r[1]));const o=(s=(i=this._labelMark)===null||i===void 0?void 0:i.getComponent())===null||s===void 0?void 0:s.getProduct();o&&o.evaluate(null,null)}getDatumCenter(t){var e,i,s,r;return this._centroidProperty&&(!((e=t.properties)===null||e===void 0)&&e[this._centroidProperty])?(i=t.properties)===null||i===void 0?void 0:i[this._centroidProperty]:z(t.centroidX*t.centroidY)?[t.centroidX,t.centroidY]:!((s=t.properties)===null||s===void 0)&&s.center?t.properties.center:!((r=t.properties)===null||r===void 0)&&r.centroid?t.properties.centroid:[Number.NaN,Number.NaN]}getDatumName(t){var e;if(t[this.nameField])return t[this.nameField];const i=(e=t.properties)===null||e===void 0?void 0:e[this._nameProperty];if(i){if(this._spec.nameMap&&this._spec.nameMap[i])return this._spec.nameMap[i];if(this._spec.showDefaultName||!this._spec.nameMap)return i}return""}dataToPositionX(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}dataToPositionY(t){var e;return(e=this._option)===null||e===void 0||e.onError("Method not implemented."),0}viewDataUpdate(t){var e,i,s;super.viewDataUpdate(t),(i=(e=this._mapViewData)===null||e===void 0?void 0:e.getDataView())===null||i===void 0||i.reRunAllTransform(),(s=this._mapViewData)===null||s===void 0||s.updateData()}_getDataIdKey(){return Xi}getActiveMarks(){return[this._pathMark]}}Sa.type=j.map,Sa.mark=xO,Sa.transformerConstructor=hD;const Ttt=()=>{_tt(),lD(),CS(),L.registerSeries(Sa.type,Sa),L.registerImplement("registerMap",jZ),L.registerImplement("unregisterMap",HZ),Dr()},Mtt=(n,t)=>{if(!n||n.length===0)return n;const{indexField:e,total:i,groupData:s}=t,r=[],{dimensionValues:a,dimensionData:o}=s().latestData,l=Array.from(a[e]);let h={start:0,end:0,positive:0,negative:0,lastIndex:null};return l.forEach((d,c)=>{const u={start:h.end,end:h.end,lastIndex:h.lastIndex,lastEnd:h.end,index:d,isTotal:!1,positive:h.end,negative:h.end},p=o[d];if(p==null||p.forEach((g,f)=>{f===p.length-1?g[Vc]=!0:delete g[Vc]}),p.length>1){const g=f=>{if(i&&i.type!=="end"){if(i.type==="field"||i.type==="custom")return!!f[i.tagField]}else if(c===l.length-1)return!0;return!1};if(p.some(f=>g(f)))return h=wtt(p,d,u,r,h,l,c,t,g),void r.push(u)}h=dD(p,d,u,r,h,l,c,t),r.push(u)}),r};function wtt(n,t,e,i,s,r,a,o,l){e.isTotal=!0;const{valueField:h,startAs:d,endAs:c,total:u}=o,p=[],g=[];if(n.forEach(x=>{l(x)?g.push(x):p.push(x)}),g.length===n.length){const x=dD([n[0]],t,e,i,s,r,a,o);return g.forEach(S=>{S[d]=n[0][d],S[c]=n[0][c],S[h]=n[0][h]}),x}const f=g[0];let{start:_,end:m}=cD(f,e,i,s,u);e.start=_,e.end=m;let y=_,b=_,v=m-_;return p.forEach(x=>{const S=+x[h];S>=0?(x[d]=+y,y=us(y,S)):(x[d]=+b,b=us(b,S)),x[c]=us(x[d],S),_=us(_,S),v=xv(v,S)}),g.forEach(x=>{x[d]=+_,x[c]=us(x[d],v),x[h]=v}),Object.assign(Object.assign({},e),{lastIndex:t})}function dD(n,t,e,i,s,r,a,o){const{valueField:l,startAs:h,endAs:d,total:c,seriesField:u,seriesFieldName:p}=o;return n.forEach(g=>{let f=!1;if(c&&c.type!=="end"){if((c.type==="field"||c.type==="custom")&&g[c.tagField]){f=!0;const{start:_,end:m}=cD(g,e,i,s,c);g[h]=_,g[d]=m,g[l]=m-_,e.start=_,e.end=m}}else a===r.length-1&&(e.start=0,g[h]=e.start,g[d]=e.end,f=!0);if(!f){const _=+g[l];_>=0?(g[h]=+e.positive,e.positive=us(e.positive,_)):(g[h]=+e.negative,e.negative=us(e.negative,_)),g[d]=us(g[h],_),e.end=us(e.end,_)}e.isTotal=f,(C(u)||u===Vf)&&(g[Vf]=f?p.total:+g[l]>=0?p.increase:p.decrease)}),Object.assign(Object.assign({},e),{lastIndex:t})}function cD(n,t,e,i,s){return s&&s.type!=="end"?s.type==="field"||s.type==="custom"?s.type==="custom"?Ptt(n,i,s):s.collectCountField&&!C(n[s.collectCountField])?Ett(n,e,t,s):Rtt(n,t,s):{start:0,end:0}:Ctt(t)}function Ctt(n){return{start:0,end:n.end}}function Ptt(n,t,e){return e.product(n,t)}function Ett(n,t,e,i){let s=0,r=e.end;const a=t.length-+n[i.collectCountField],o=t.length-1;return a<0?Us("total.collectCountField error"):s=t[a].start,o<0?Us("total.collectCountField error"):r=t[o].end,{start:s,end:r}}function Rtt(n,t,e){let i=0,s=t.end;return e.startField&&!C(n[e.startField])&&(i=+n[e.startField]),e.valueField&&!C(n[e.valueField])&&(s=us(i,+n[e.valueField])),{start:i,end:s}}const Btt=(n,t)=>{if(!n)return n;const{indexField:e,valueField:i,total:s,seriesField:r}=t,a={[e]:(s==null?void 0:s.text)||"total",[i]:n.reduce((o,l)=>us(o,+l[i]),0)};return r&&(a[r]="total"),n.push(a),n},Itt={type:"fadeIn"},Ott={type:"growCenterIn"};function Ltt(n,t){switch(t){case"fadeIn":return Itt;case"scaleIn":return Ott;default:return Lu(n,!1)}}const Dtt=()=>{L.registerAnimation("waterfall",(n,t)=>({appear:Ltt(n,t),enter:Lu(n,!1),exit:fh(n,!1),disappear:fh(n,!1)}))};class eu extends Oi{constructor(){super(...arguments),this.type=eu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x1:0,y1:0})}}eu.type="rule";const Lh=()=>{L.registerMark(eu.type,eu),rS()},Ftt=(n,t)=>{if(!t.fields)return n;const e={};return{dimensionValues:e,dimensionData:uD(n.map(i=>i.latestData).flat(),t.fields,e)}};function uD(n,t,e){if(t.length===0)return n;const i=t[0],s=t.slice(1);e[i]=new Set;const r=ztt(n,i,e[i]);return s.length?jtt(r,(a,o)=>uD(a,s,e)):r}function ztt(n,t,e){const i={};return n.forEach(s=>{const r=s[t];i[r]||(i[r]=[],e.add(r)),i[r].push(s)}),i}function jtt(n,t){return Object.keys(n).reduce((e,i)=>(e[i]=t(n[i],i),e),{})}class Htt{get fields(){return this._fields}get groupData(){return this._groupData}constructor(t){this._fields=[],this._fields=t}initData(t,e){const i=t.name,s=new Ut(e instanceof Ra?e:t.dataSet);s.name=i,s.parse([t],{type:"dataview"}),Tt(e,"dimensionTree",Ftt),s.transform({type:"dimensionTree",options:{fields:this._fields}},!1),s.target.addListener("change",this.groupDataUpdate.bind(this)),this._groupData=s}groupDataUpdate(){}getGroupValueInField(t){var e,i,s;const r=(s=(i=(e=this.groupData)===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.dimensionValues)===null||s===void 0?void 0:s[t];return r?Array.from(r):[]}}class pD extends qm{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"bar"),this._addMarkLabelSpec(t,"bar","stackLabel","initStackLabelMarkStyle")}}const SC={rect:AC,symbol:gD,arc:kC,point:Utt,"line-data":Wtt,stackLabel:fD,line:TC,area:TC,rect3d:AC,arc3d:kC,treemap:Xtt,venn:Ktt};function Vtt(n,t){var e;const{labelSpec:i}=t;return i.overlap&&!Ct(i.overlap)&&(i.overlap={}),((e=SC[n])!==null&&e!==void 0?e:SC.point)(t)}function ES(n,t,e,i){var s;const{labelMark:r,series:a}=n,o={text:t[a.getMeasureField()[0]],data:t,textType:(s=n.labelSpec.textType)!==null&&s!==void 0?s:"text"},l=Object.keys(r.stateStyle.normal);for(const c of l){const u=r.getAttribute(c,t);o[c]=u}const{formatFunc:h,args:d}=Rr(e,i,o.text,t);return h&&(o.text=h(...d,{series:a})),o}function RS(n){return G(n)?t=>n(t.data):n}function gD(n){var t,e,i;const{series:s,labelSpec:r}=n,a=s.direction==="horizontal"?"right":"top",o=(t=RS(r.position))!==null&&t!==void 0?t:a;let l;return l=r.overlap!==!1&&{strategy:(i=(e=r.overlap)===null||e===void 0?void 0:e.strategy)!==null&&i!==void 0?i:Ntt(),avoidBaseMark:o!=="center"},{position:o,overlap:l}}function Wtt(n){const t=gD(n);return be(t.overlap)||(t.overlap.avoidBaseMark=!1),t}function Ntt(){return[{type:"position",position:["top","bottom","right","left","top-right","top-left","bottom-left","bottom-right"]}]}function AC(n){var t,e,i,s,r,a;const{series:o,labelSpec:l={}}=n,h=(t=RS(l.position))!==null&&t!==void 0?t:"outside",d=(e=o.direction)!==null&&e!==void 0?e:"vertical",c=o.direction==="horizontal"?(i=o.getXAxisHelper())===null||i===void 0?void 0:i.isInverse():(s=o.getYAxisHelper())===null||s===void 0?void 0:s.isInverse();let u,p=h;at(h)&&h==="outside"&&(p=f=>{const{data:_}=f,m=o.getMeasureField()[0],y=(_==null?void 0:_[m])>=0&&c||(_==null?void 0:_[m])<0&&!c?1:0;return{vertical:["top","bottom"],horizontal:["right","left"]}[d][y]}),u=l.overlap!==!1&&{strategy:(a=(r=l.overlap)===null||r===void 0?void 0:r.strategy)!==null&&a!==void 0?a:Gtt(o)};let g=!1;return at(h)&&h.includes("inside")&&(g=!0),{position:p,overlap:u,smartInvert:g}}function Gtt(n){return[{type:"position",position:t=>{var e,i;const{data:s}=t,r=n.getMeasureField()[0];return(n.direction==="horizontal"?!((e=n.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=n.getYAxisHelper())===null||i===void 0)&&i.isInverse())?(s==null?void 0:s[r])>=0?n.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]:n.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:(s==null?void 0:s[r])>=0?n.direction==="horizontal"?["right","inside-right"]:["top","inside-top"]:n.direction==="horizontal"?["left","inside-left"]:["bottom","inside-bottom"]}}]}function Utt(n){const{labelSpec:t}=n;let e;return e=t.overlap!==!1&&{avoidBaseMark:!1},{position:"center",overlap:e}}function kC(n){var t;const{labelSpec:e}=n,i=(t=RS(e.position))!==null&&t!==void 0?t:"outside",s=i;let r;return r=e.smartInvert?e.smartInvert:at(i)&&i.includes("inside"),{position:s,smartInvert:r}}function $tt(n,t,e,i){return t.direction==="horizontal"?e==="middle"?.5*(t.totalPositionX(n,"end")+t.totalPositionY(n,"start")):e==="max"?t.totalPositionX(n,n.end>=n.start?"end":"start")+i:e==="min"?t.totalPositionX(n,n.end>=n.start?"start":"end")-i:t.totalPositionX(n,"end")+(n.end>=n.start?i:-i):t.totalPositionX(n,"index",.5)}function Ytt(n,t,e,i){return t.direction==="horizontal"?t.totalPositionY(n,"index",.5):e==="middle"?.5*(t.totalPositionY(n,"end")+t.totalPositionY(n,"start")):e==="max"?t.totalPositionY(n,n.end>=n.start?"end":"start")-i:e==="min"?t.totalPositionY(n,n.end>=n.start?"start":"end")+i:t.totalPositionY(n,"end")+(n.end>=n.start?-i:i)}function fD(n,t,e){const i=n.series,s=n.labelSpec||{},r=i.getTotalData();return{customLayoutFunc:a=>a.map(o=>{const l=s.position||"withChange",h=s.offset||0,d=t?t(o.data):o.data,c=ES(n,d,s.formatMethod);return c.x=$tt(d,i,l,h),c.y=Ytt(d,i,l,h),i.direction==="horizontal"?c.textAlign=l==="middle"?"center":l==="withChange"&&d.end-d.start>=0||l==="max"?"left":"right":c.textBaseline=l==="middle"?l:l==="withChange"&&d.end-d.start>=0||l==="max"?"bottom":"top",e==null||e(o,d,c),ih(Object.assign(Object.assign({},c),{id:o.id}))}),dataFilter:a=>{const o=[];return r.forEach(l=>{const h=a.find(d=>{var c;return l.index===((c=d.data)===null||c===void 0?void 0:c[i.getDimensionField()[0]])});h&&(h.data=l,o.push(h))}),o},overlap:{strategy:[]}}}function Xtt(n){return{customLayoutFunc:(t,e)=>e,overlap:!1}}function Ktt(n){return{customLayoutFunc:(t,e)=>e,smartInvert:!0}}function TC(n){var t,e,i,s;const{labelSpec:r,series:a}=n,o=(i=(e=(t=a.getViewDataStatistics)===null||t===void 0?void 0:t.call(a).latestData)===null||e===void 0?void 0:e[a.getSeriesField()])===null||i===void 0?void 0:i.values,l=o?o.map((h,d)=>({[a.getSeriesField()]:h,index:d})):[];return{position:(s=r.position)!==null&&s!==void 0?s:"end",data:l}}class vo extends ys{constructor(){super(...arguments),this.type=j.waterfall,this.transformerConstructor=pD,this._leaderLineMark=null,this._stackLabelMark=null,this._labelMark=null}getTotalData(){var t;return(t=this._totalData)===null||t===void 0?void 0:t.getLatestData()}initGroups(){const t=this.getGroupFields();t&&t.length&&(this._groups=new Htt(t),this._data&&this._groups.initData(this._data.getDataView(),this._dataSet))}setAttrFromSpec(){super.setAttrFromSpec(),this.setValueFieldToStack(),this._fieldX=[this._fieldX[0]],this._fieldY=[this._fieldY[0]],C(this._seriesField)&&(this._seriesField=Vf)}getSeriesKeys(){return this._seriesField===Vf?[this._theme.seriesFieldName.increase,this._theme.seriesFieldName.decrease,this._theme.seriesFieldName.total]:super.getSeriesKeys()}initData(){var t;super.initData(),Tt(this._dataSet,"waterfallFillTotal",Btt),Tt(this._dataSet,"waterfall",Mtt),(C(this._spec.total)||this._spec.total.type==="end")&&((t=this._rawData)===null||t===void 0||t.transform({type:"waterfallFillTotal",options:{indexField:this.getGroupFields()[0],valueField:this.getStackValueField(),seriesField:this.getSeriesField(),seriesFieldName:this._theme.seriesFieldName,total:this._spec.total}},!1));const e=Fb(this.getViewData(),this._dataSet,{name:`${yt}_series_${this.id}_totalData`});this.getViewData().target.removeListener("change",e.reRunAllTransform),this._totalData=new Ys(this._option,e),e.transform({type:"waterfall",options:{indexField:this.getGroupFields()[0],valueField:this.getStackValueField(),seriesField:this.getSeriesField(),seriesFieldName:this._theme.seriesFieldName,startAs:An,endAs:qe,total:this._spec.total,groupData:()=>this.getGroups().groupData}},!1)}initAnimation(){var t,e,i,s;const r={yField:this.direction==="horizontal"?this._fieldY[0]:this.getStackValueField(),xField:this.direction==="horizontal"?this.getStackValueField():this._fieldX[0],direction:this.direction,growFrom:()=>{var l,h;return this.direction==="horizontal"?(l=this._xAxisHelper)===null||l===void 0?void 0:l.getScale(0).scale(0):(h=this._yAxisHelper)===null||h===void 0?void 0:h.getScale(0).scale(0)}},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,o=Na(this);this._barMark.setAnimationConfig(zt((i=L.getAnimationInKey("waterfall"))===null||i===void 0?void 0:i(r,a),Wt("bar",this._spec,this._markAttributeContext),o)),this._leaderLineMark&&this._leaderLineMark.setAnimationConfig(zt((s=L.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Wt("leaderLine",this._spec,this._markAttributeContext)))}viewDataUpdate(t){this._totalData.getDataView().reRunAllTransform(),this._totalData.updateData(),super.viewDataUpdate(t)}addViewDataFilter(t){}reFilterViewData(){}onEvaluateEnd(t){super.onEvaluateEnd(t),this._totalData.updateData()}initMark(){var t,e;super.initMark();const i=this._createMark(vo.mark.leaderLine,{key:"index",customShape:(t=this._spec.leaderLine)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.leaderLine)===null||e===void 0?void 0:e.stateSort});i&&(this._leaderLineMark=i,i.setDataView(this._totalData.getDataView(),this._totalData.getProductId()))}initLabelMarkStyle(t){var e;if(t)return!this._labelMark&&(!((e=this._spec.label)===null||e===void 0)&&e.visible)?(super.initLabelMarkStyle(t),void(this._labelMark=t)):void 0}initStackLabelMarkStyle(t){t&&(this._stackLabelMark=t,t.skipEncode=!0,t.setRule("stackLabel"),t.setDataView(this._totalData.getDataView(),this._totalData.getProductId()),this.setMarkStyle(t,{text:e=>{var i;return((i=this._spec.stackLabel)===null||i===void 0?void 0:i.valueType)==="absolute"?e.end:xv(e.end,e.start)}}))}initTotalLabelMarkStyle(t){this.setMarkStyle(t,{text:e=>{var i;return"end"in e?((i=this._spec.totalLabel)===null||i===void 0?void 0:i.valueType)==="absolute"?e.end:xv(e.end,e.start):this.direction==="horizontal"?e[this._fieldX[0]]:e[this._fieldY[0]]}})}getTotalLabelComponentStyle(t){return fD(Object.assign(Object.assign({},t),{series:this,labelSpec:this._spec.totalLabel}),e=>{const i=this.direction==="vertical"?e[this._fieldX[0]]:e[this._fieldY[0]];return this._totalData.getLatestData().find(s=>s.index===i)})}totalPositionX(t,e,i=.5){const{dataToPosition:s,getBandwidth:r}=this._xAxisHelper;return this._direction==="horizontal"?Zt(s([t[e]],{bandPosition:this._bandPosition})):s([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("width",t)*(.5-i)}totalPositionY(t,e,i=.5){const{dataToPosition:s,getBandwidth:r}=this._yAxisHelper;return this._direction==="horizontal"?s([t[e]],{bandPosition:this._bandPosition})+.5*r(0)-this._barMark.getAttribute("height",t)*(.5-i):Zt(s([t[e]],{bandPosition:this._bandPosition}))}initMarkStyle(){super.initMarkStyle(),this._leaderLineMark&&(this._direction==="horizontal"?this.setMarkStyle(this._leaderLineMark,{visible:t=>!C(t.lastIndex),x:t=>this.totalPositionX(t,"lastEnd",0),x1:t=>this.totalPositionX(t,t.isTotal?"end":"start",0),y:t=>t.lastIndex?this.totalPositionY(t,"lastIndex",1):0,y1:t=>this.totalPositionY(t,"index",0)},"normal",tt.Series):this.setMarkStyle(this._leaderLineMark,{visible:t=>!C(t.lastIndex),x:t=>t.lastIndex?this.totalPositionX(t,"lastIndex",1):0,x1:t=>this.totalPositionX(t,"index",0),y:t=>this.totalPositionY(t,"lastEnd",0),y1:t=>this.totalPositionY(t,t.isTotal?"end":"start",0)},"normal",tt.Series))}}vo.type=j.waterfall,vo.mark=CO,vo.transformerConstructor=pD;const qtt=()=>{Lh(),jr(),Dtt(),Dr(),Mn(),Tn(),L.registerSeries(vo.type,vo)},iu=`${yt}_BOX_PLOT_OUTLIER_VALUE`;var ae;(function(n){n.OUTLIER="outlier",n.MAX="max",n.MIN="min",n.MEDIAN="median",n.Q1="q1",n.Q3="q3",n.SERIES_FIELD="seriesField"})(ae||(ae={}));const Ztt=(n,t)=>{const e=[],{outliersField:i,dimensionField:s}=t;return(n[0].latestData||[]).forEach(r=>{let a=r[i];V(a)||(a=[a]),e.push(...a.map(o=>{const l={[iu]:o};return s.forEach(h=>{l[h]=r[h]}),l}))}),e};class Jtt extends un{constructor(){super(...arguments),this.getContentKey=t=>e=>{if(this.isOutlierMark(e))return t===ae.OUTLIER?this.series.getOutliersField():t===ae.SERIES_FIELD?this.series.getSeriesField():null;switch(t){case ae.MIN:return this.series.getMinField();case ae.MAX:return this.series.getMaxField();case ae.MEDIAN:return this.series.getMedianField();case ae.Q1:return this.series.getQ1Field();case ae.Q3:return this.series.getQ3Field();case ae.SERIES_FIELD:return this.series.getSeriesField()}return null},this.getContentValue=t=>e=>{if(this.isOutlierMark(e))return t===ae.OUTLIER?e[iu]:t===ae.SERIES_FIELD?e[this.series.getSeriesField()]:null;switch(t){case ae.MIN:return e[this.series.getMinField()];case ae.MAX:return e[this.series.getMaxField()];case ae.MEDIAN:return e[this.series.getMedianField()];case ae.Q1:return e[this.series.getQ1Field()];case ae.Q3:return e[this.series.getQ3Field()];case ae.SERIES_FIELD:return e[this.series.getSeriesField()]}return null},this.shapeColorCallback=t=>this.series.getShaftShape()==="line"?this.series.getMarkInName("boxPlot").getAttribute("stroke",t):this.series.getMarkInName("boxPlot").getAttribute("fill",t),this.getOutlierFillColor=t=>{var e;const i=this.series.getOutliersStyle();return(e=i==null?void 0:i.fill)!==null&&e!==void 0?e:this.series.getMarkInName("outlier").getAttribute("fill",t)},this.isOutlierMark=t=>P(t[iu])}getDefaultTooltipPattern(t){return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.getContentKey(ae.OUTLIER),value:this.getContentValue(ae.OUTLIER),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.getOutlierFillColor,shapeStroke:this.getOutlierFillColor,shapeHollow:!1},{key:this.getContentKey(ae.MAX),value:this.getContentValue(ae.MAX),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.Q3),value:this.getContentValue(ae.Q3),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.MEDIAN),value:this.getContentValue(ae.MEDIAN),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.Q1),value:this.getContentValue(ae.Q1),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.MIN),value:this.getContentValue(ae.MIN),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1},{key:this.getContentKey(ae.SERIES_FIELD),value:this.getContentValue(ae.SERIES_FIELD),hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]}}}class nu extends Oi{constructor(){super(...arguments),this.type=nu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:2,boxWidth:30,shaftWidth:20,shaftShape:"line"})}_initProduct(t){const e=this.getStyle("shaftShape"),i=this.getVGrammarView(),s=this.getProductId(),r=e==="bar"?"barBoxplot":"boxplot",a=this.getStyle("direction");this._product=i.glyph(r,t??i.rootMark).id(s).configureGlyph({direction:a}),this._compiledProductId=s}}nu.type="boxPlot";const Qtt=()=>{L.registerMark(nu.type,nu),H6(),G6()};class Wo extends as{constructor(){super(...arguments),this.type=j.boxPlot}getMinField(){return this._minField}getMaxField(){return this._maxField}getQ1Field(){return this._q1Field}getMedianField(){return this._medianField}getQ3Field(){return this._q3Field}getOutliersField(){return this._outliersField}getShaftShape(){return this._shaftShape}getBoxFillColor(){return this._boxFillColor}getStrokeColor(){return this._strokeColor}getOutliersStyle(){return this._outliersStyle}setAttrFromSpec(){var t,e,i,s,r;super.setAttrFromSpec();const a=(e=(t=this._spec.boxPlot)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this._minField=this._spec.minField,this._maxField=this._spec.maxField,this._q1Field=this._spec.q1Field,this._medianField=this._spec.medianField,this._q3Field=this._spec.q3Field,this._outliersField=this._spec.outliersField,this._lineWidth=(i=a.lineWidth)!==null&&i!==void 0?i:2,this._boxWidth=a.boxWidth,this._shaftShape=(s=a.shaftShape)!==null&&s!==void 0?s:"line",this._shaftWidth=a.shaftWidth,this._boxFillColor=a.boxFill,this._strokeColor=a.stroke,this._shaftFillOpacity=this._shaftShape==="bar"?(r=a.shaftFillOpacity)!==null&&r!==void 0?r:.5:void 0,this._outliersStyle=this._spec.outliersStyle}initMark(){const t={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._boxPlotMark=this._createMark(Wo.mark.boxPlot,{isSeriesMark:!0,progressive:t}),this._outlierMark=this._createMark(Wo.mark.outlier,{progressive:t,key:Xi,dataView:this._outlierDataView.getDataView(),dataProductId:this._outlierDataView.getProductId()})}initMarkStyle(){var t,e,i,s,r;const a=this._boxPlotMark;if(a){const l={direction:this._direction,lineWidth:this._lineWidth,shaftShape:this._shaftShape,fill:(t=this._boxFillColor)!==null&&t!==void 0?t:this._shaftShape==="line"?"#FFF":this.getColorAttribute(),minMaxFillOpacity:this._shaftFillOpacity,stroke:(e=this._strokeColor)!==null&&e!==void 0?e:this._shaftShape==="line"?this.getColorAttribute():"#000"},h=this._direction==="horizontal"?Object.assign(Object.assign({y:this.dataToPositionY.bind(this)},l),{boxHeight:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},ruleHeight:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()},q1q3Height:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},minMaxHeight:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()}}):Object.assign(Object.assign({x:this.dataToPositionX.bind(this)},l),{boxWidth:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},ruleWidth:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()},q1q3Width:()=>{var d;return(d=this._boxWidth)!==null&&d!==void 0?d:this._getMarkWidth()},minMaxWidth:()=>{var d;return(d=this._shaftWidth)!==null&&d!==void 0?d:this._getMarkWidth()}});this.setMarkStyle(a,h,dt.STATE_NORMAL,tt.Series)}const o=this._outlierMark;o&&this.setMarkStyle(o,{fill:(s=(i=this._outliersStyle)===null||i===void 0?void 0:i.fill)!==null&&s!==void 0?s:this.getColorAttribute(),size:nt((r=this._outliersStyle)===null||r===void 0?void 0:r.size)?this._outliersStyle.size:10,symbolType:"circle"},dt.STATE_NORMAL,tt.Series)}initBoxPlotMarkStyle(){var t,e;const i=this._boxPlotMark,s=this._direction==="horizontal"?this._xAxisHelper:this._yAxisHelper;if(i&&s){const{dataToPosition:a}=s,o=(t=s==null?void 0:s.getScale)===null||t===void 0?void 0:t.call(s,0);this.setMarkStyle(i,{min:l=>Zt(a(this.getDatumPositionValues(l,this._minField),{bandPosition:this._bandPosition}),o),q1:l=>Zt(a(this.getDatumPositionValues(l,this._q1Field),{bandPosition:this._bandPosition}),o),median:l=>Zt(a(this.getDatumPositionValues(l,this._medianField),{bandPosition:this._bandPosition}),o),q3:l=>Zt(a(this.getDatumPositionValues(l,this._q3Field),{bandPosition:this._bandPosition}),o),max:l=>Zt(a(this.getDatumPositionValues(l,this._maxField),{bandPosition:this._bandPosition}),o)},dt.STATE_NORMAL,tt.Series)}const r=this._outlierMark;if(r&&s){const{dataToPosition:a}=s,o=(e=s==null?void 0:s.getScale)===null||e===void 0?void 0:e.call(s,0),l=this._direction==="horizontal"?{y:this.dataToPositionY.bind(this),x:h=>Zt(a(this.getDatumPositionValues(h,iu),{bandPosition:this._bandPosition}),o)}:{x:this.dataToPositionX.bind(this),y:h=>Zt(a(this.getDatumPositionValues(h,iu),{bandPosition:this._bandPosition}),o)};this.setMarkStyle(r,l,dt.STATE_NORMAL,tt.Series)}}initData(){if(super.initData(),!this._data)return;Tt(this._dataSet,"foldOutlierData",Ztt),Tt(this._dataSet,"addVChartProperty",Oh);const t=new Ut(this._dataSet,{name:`${this.type}_outlier_${this.id}_data`});t.parse([this.getViewData()],{type:"dataview"}),t.name=`${yt}_series_${this.id}_outlierData`,t.transform({type:"foldOutlierData",options:{dimensionField:this._direction==="horizontal"?this._fieldY:this._fieldX,outliersField:this._outliersField}}),t.transform({type:"addVChartProperty",options:{beforeCall:gh.bind(this),call:Ho}},!1),this._outlierDataView=new Ys(this._option,t)}init(t){super.init(t),this.initBoxPlotMarkStyle()}_getMarkWidth(){if(this._autoBoxWidth)return this._autoBoxWidth;const t=this._direction==="horizontal"?this._yAxisHelper:this._xAxisHelper,e=this._direction==="horizontal"?this._fieldY:this._fieldX,i=t.getBandwidth(e.length-1)/e.length;return this._autoBoxWidth=i,this._autoBoxWidth}onLayoutEnd(t){super.onLayoutEnd(t),this._autoBoxWidth=null}_initAnimationSpec(t={}){const e=Y({},t);return["appear","enter","update","exit","disappear"].forEach(i=>{e[i]&&e[i].type==="scaleIn"?e[i].type=this._shaftShape==="line"?"boxplotScaleIn":"barBoxplotScaleIn":e[i]&&e[i].type==="scaleOut"&&(e[i].type=this._shaftShape==="line"?"boxplotScaleOut":"barBoxplotScaleOut")}),e}initAnimation(){var t,e,i,s,r,a,o;const l=Na(this);if(this._boxPlotMark){const h=this._initAnimationSpec((t=L.getAnimationInKey("scaleInOut"))===null||t===void 0?void 0:t()),d=this._initAnimationSpec(Wt("boxPlot",this._spec,this._markAttributeContext));this._boxPlotMark.setAnimationConfig(zt(h,d,l))}if(this._outlierMark){const h={appear:(e=this._spec.animationAppear)===null||e===void 0?void 0:e.symbol,disappear:(i=this._spec.animationDisappear)===null||i===void 0?void 0:i.symbol,enter:(s=this._spec.animationEnter)===null||s===void 0?void 0:s.symbol,exit:(r=this._spec.animationExit)===null||r===void 0?void 0:r.symbol,update:(a=this._spec.animationUpdate)===null||a===void 0?void 0:a.symbol};this._outlierMark.setAnimationConfig(zt((o=L.getAnimationInKey("scaleInOut"))===null||o===void 0?void 0:o(),h,l))}}initTooltip(){this._tooltipHelper=new Jtt(this),this._boxPlotMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._boxPlotMark),this._outlierMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._outlierMark)}getStatisticFields(){const t=super.getStatisticFields(),e=t.find(i=>i.key===this._outliersField);return e&&(e.operations=["array-min","array-max"]),t}onEvaluateEnd(t){super.onEvaluateEnd(t),this._outlierDataView.updateData()}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._boxPlotMark]}}Wo.type=j.boxPlot,Wo.mark=PO;const tet=()=>{Qtt(),zr(),Wm(),Mn(),Tn(),L.registerSeries(Wo.type,Wo)};class _h extends Oi{getTextType(){return this._textType}constructor(t,e){super(t,e),this.type=_h.type,this._textType="text"}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{angle:0,textAlign:"center",lineWidth:0,textConfig:[]})}initStyleWithSpec(t,e){super.initStyleWithSpec(t,e),t.textType&&(this._textType=t.textType)}compileEncode(){super.compileEncode(),this._textType==="rich"&&this._product.encodeState("group",{textType:this._textType})}}_h.type="text";const wn=()=>{L.registerMark(_h.type,_h),YI(),L6()};function MC(n,t,e,i,s,r,a,o,l){n.setMarkStyle(t,{textAlign:h=>{if(l()==="vertical")return"center";const d=s(h),c=r(h);if(e==="middle")return"center";if(d>=c){if(e==="start")return"left";if(e==="end")return"right";if(e==="outside")return"left"}else{if(e==="start")return"right";if(e==="end")return"left";if(e==="outside")return"right"}return"center"},textBaseline:h=>{if(l()==="horizontal")return"middle";const d=a(h),c=o(h);if(e==="middle")return"middle";if(c>=d){if(e==="start")return"bottom";if(e==="end")return"top";if(e==="outside")return"bottom"}else{if(e==="start")return"top";if(e==="end")return"bottom";if(e==="outside")return"top"}return"middle"}}),n.setMarkStyle(t,{x:h=>{const d=l(),c=s(h),u=r(h);if(d==="vertical"||e==="middle")return(c+u)/2;if(c>=u){if(e==="start")return u+i;if(e==="end")return c-i;if(e==="outside")return c+i}else{if(e==="start")return u-i;if(e==="end")return c+i;if(e==="outside")return c-i}return(c+u)/2},y:h=>{const d=l(),c=a(h),u=o(h);if(d==="horizontal"||e==="middle")return(c+u)/2;if(c>=u){if(e==="start")return u+i;if(e==="end")return c-i;if(e==="outside")return c+i}else{if(e==="start")return u-i;if(e==="end")return c+i;if(e==="outside")return c-i}return(c+u)/2}},"normal",tt.Series)}class eet extends un{getDefaultTooltipPattern(t){return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:e=>this.series.getSpec().direction==="horizontal"?e[this.series.getSpec().xField[0]]+"-"+e[this.series.getSpec().xField[1]]:e[this.series.getSpec().yField[0]]+"-"+e[this.series.getSpec().yField[1]],hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]}}}const _D=n=>({type:"growCenterIn",options:{direction:n.direction==="horizontal"?"x":"y"}}),iet={type:"fadeIn"},wC=n=>({type:"growCenterOut",options:{direction:n.direction==="horizontal"?"x":"y"}});function net(n,t){return t==="fadeIn"?iet:_D(n)}const set=()=>{L.registerAnimation("rangeColumn",(n,t)=>({appear:net(n,t),enter:_D(n),exit:wC(n),disappear:wC(n)}))};class mD extends qm{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){var e;((e=t.label)===null||e===void 0?void 0:e.position)!=="bothEnd"&&this._addMarkLabelSpec(t,"bar")}}class _s extends ys{constructor(){super(...arguments),this.type=j.rangeColumn,this._barMarkType="rect",this._barName=j.bar,this.transformerConstructor=mD}initMark(){var t,e,i,s,r,a,o,l,h,d;this._initBarBackgroundMark();const c=(t=this._spec.label)===null||t===void 0?void 0:t.position;this._barMark=this._createMark(_s.mark.bar,{morph:Fr(this._spec,_s.mark.bar.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:(e=this._spec.bar)===null||e===void 0?void 0:e.customShape,stateSort:(i=this._spec.bar)===null||i===void 0?void 0:i.stateSort}),((s=this._spec.label)===null||s===void 0?void 0:s.visible)!==!1&&c==="bothEnd"&&(((a=(r=this._spec.label)===null||r===void 0?void 0:r.minLabel)===null||a===void 0?void 0:a.visible)!==!1&&(this._minLabelMark=this._createMark(_s.mark.minLabel,{markSpec:(o=this._spec.label)===null||o===void 0?void 0:o.minLabel})),((h=(l=this._spec.label)===null||l===void 0?void 0:l.maxLabel)===null||h===void 0?void 0:h.visible)!==!1&&(this._maxLabelMark=this._createMark(_s.mark.maxLabel,{markSpec:(d=this._spec.label)===null||d===void 0?void 0:d.maxLabel})))}initMarkStyle(){var t,e,i,s,r,a,o,l,h,d;super.initMarkStyle();const c=this._minLabelMark,u=(t=this._spec.label)===null||t===void 0?void 0:t.minLabel;if(c){this.setMarkStyle(c,{fill:(i=(e=u==null?void 0:u.style)===null||e===void 0?void 0:e.fill)!==null&&i!==void 0?i:this.getColorAttribute(),text:m=>{const y=this._spec.direction==="horizontal"?m[this._spec.xField[0]]:m[this._spec.yField[0]];return u!=null&&u.formatMethod?u.formatMethod(y,m):y}});const f=(s=u==null?void 0:u.position)!==null&&s!==void 0?s:"end",_=(r=u==null?void 0:u.offset)!==null&&r!==void 0?r:this._direction==="vertical"?-20:-25;MC(this,c,f,_,m=>this._barMark.getAttribute("x",m),m=>this._direction==="vertical"?this._barMark.getAttribute("x",m)+this._barMark.getAttribute("width",m):this._barMark.getAttribute("x1",m),m=>this._barMark.getAttribute("y",m),m=>this._direction==="vertical"?this._barMark.getAttribute("y1",m):this._barMark.getAttribute("y",m)+this._barMark.getAttribute("height",m),()=>this._direction)}const p=this._maxLabelMark,g=(a=this._spec.label)===null||a===void 0?void 0:a.maxLabel;if(p){this.setMarkStyle(p,{fill:(l=(o=g==null?void 0:g.style)===null||o===void 0?void 0:o.fill)!==null&&l!==void 0?l:this.getColorAttribute(),text:m=>{const y=this._spec.direction==="horizontal"?m[this._spec.xField[1]]:m[this._spec.yField[1]];return g!=null&&g.formatMethod?g.formatMethod(y,m):y}});const f=(h=g==null?void 0:g.position)!==null&&h!==void 0?h:"start",_=(d=g==null?void 0:g.offset)!==null&&d!==void 0?d:this._direction==="vertical"?-20:-25;MC(this,p,f,_,m=>this._barMark.getAttribute("x",m),m=>this._direction==="vertical"?this._barMark.getAttribute("x",m)+this._barMark.getAttribute("width",m):this._barMark.getAttribute("x1",m),m=>this._barMark.getAttribute("y",m),m=>this._direction==="vertical"?this._barMark.getAttribute("y1",m):this._barMark.getAttribute("y",m)+this._barMark.getAttribute("height",m),()=>this._direction)}}initLabelMarkStyle(t){t&&(this.setMarkStyle(t,{text:e=>{let i,s;return this._spec.direction==="horizontal"?(i=e[this._spec.xField[0]],s=e[this._spec.xField[1]]):(i=e[this._spec.yField[0]],s=e[this._spec.yField[1]]),i+"-"+s},z:this._fieldZ?this.dataToPositionZ.bind(this):null}),this._labelMark=t)}_dataToPosX(t){return this._xAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.xField[0]),{bandPosition:this._bandPosition})}_dataToPosX1(t){return this._xAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.xField[1]),{bandPosition:this._bandPosition})}_dataToPosY(t){return this._yAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.yField[0]),{bandPosition:this._bandPosition})}_dataToPosY1(t){return this._yAxisHelper.dataToPosition(this.getDatumPositionValues(t,this._spec.yField[1]),{bandPosition:this._bandPosition})}initAnimation(){var t,e,i,s,r;const a=Na(this),o=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._barMark.setAnimationConfig(zt((i=L.getAnimationInKey("rangeColumn"))===null||i===void 0?void 0:i({direction:this.direction},o),Wt("bar",this._spec,this._markAttributeContext),a)),this._minLabelMark&&this._minLabelMark.setAnimationConfig(zt((s=L.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Wt("label",this._spec,this._markAttributeContext),a)),this._maxLabelMark&&this._maxLabelMark.setAnimationConfig(zt((r=L.getAnimationInKey("fadeInOut"))===null||r===void 0?void 0:r(),Wt("label",this._spec,this._markAttributeContext),a))}initTooltip(){this._tooltipHelper=new eet(this),this._barMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._barMark),this._minLabelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._minLabelMark),this._maxLabelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._maxLabelMark),this._labelMark&&this._tooltipHelper.ignoreTriggerSet.mark.add(this._labelMark)}}_s.type=j.rangeColumn,_s.mark=LO,_s.transformerConstructor=mD;const ret=()=>{jr(),wn(),set(),Dr(),Mn(),Tn(),L.registerSeries(_s.type,_s)};class s_ extends _s{constructor(){super(...arguments),this.type=j.rangeColumn3d,this._barMarkType="rect3d",this._barName=j.bar3d}}s_.type=j.rangeColumn3d,s_.mark=DO;const aet=()=>{MS(),Mn(),Tn(),L.registerSeries(s_.type,s_)};class oet extends un{getDefaultTooltipPattern(t,e){switch(t){case"mark":case"group":return{visible:!0,activeType:t,title:{key:void 0,value:this.dimensionTooltipTitleCallback,hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this._getDimensionData,hasShape:!1},s=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{a.type==="rangeArea"&&s.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:o=>this.series.getSpec().direction==="horizontal"?o[this.series.getSpec().xField[0]]+"-"+o[this.series.getSpec().xField[1]]:o[this.series.getSpec().yField[0]]+"-"+o[this.series.getSpec().yField[1]],hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:s}}}return null}}class mh extends vr{constructor(){super(...arguments),this.type=j.rangeArea}initMark(){var t;const{customShape:e,stateSort:i}=(t=this._spec.area)!==null&&t!==void 0?t:{};this._areaMark=this._createMark(mh.mark.area,{defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:e,stateSort:i})}initMarkStyle(){this.initAreaMarkStyle()}initAreaMarkStyle(){const t=this._areaMark;t&&(super.initAreaMarkStyle(),this._direction==="horizontal"?this.setMarkStyle(this._areaMark,{x1:e=>{if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:i}=this._xAxisHelper;return i(this.getDatumPositionValues(e,this._spec.xField[1]),{bandPosition:this._bandPosition})}},"normal",tt.Series):this.setMarkStyle(this._areaMark,{y1:e=>{if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:i}=this._yAxisHelper;return i(this.getDatumPositionValues(e,this._spec.yField[1]),{bandPosition:this._bandPosition})}},"normal",tt.Series),this.setMarkStyle(t,{stroke:!1},"normal",tt.Series))}initTooltip(){this._tooltipHelper=new oet(this),this._areaMark&&this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark)}_isFieldAllValid(){const t=this.getViewDataStatistics(),e=this.fieldY;return!!(t&&t.latestData&&e.length)&&e.every(i=>t.latestData[i]&&t.latestData[i].allValid)}}mh.type=j.rangeArea,mh.mark=HO;const het=()=>{Km(),Mn(),Tn(),L.registerSeries(mh.type,mh)};class Du extends Vo{constructor(){super(...arguments),this.coordinate="polar",this._outerRadius=jc,this._innerRadius=0,this._angleField=[],this._radiusField=[],this._sortDataByAxis=!1}get outerRadius(){return this._outerRadius}get innerRadius(){return this._innerRadius}getAngleField(){return this._angleField}setAngleField(t){return this._angleField=P(t)?H(t):[],this._angleField}getRadiusField(){return this._radiusField}setRadiusField(t){return this._radiusField=P(t)?H(t):[],this._radiusField}get innerRadiusField(){return this._innerRadiusField}setInnerRadiusField(t){return this._innerRadiusField=H(t),this._innerRadiusField}get radiusScale(){return this._radiusScale}setRadiusScale(t){return this._radiusScale=t,t}get angleScale(){return this._angleScale}setAngleScale(t){return this._angleScale=t,t}get angleAxisHelper(){return this._angleAxisHelper}set angleAxisHelper(t){this._angleAxisHelper=t,this.onAngleAxisHelperUpdate()}get radiusAxisHelper(){return this._radiusAxisHelper}set radiusAxisHelper(t){this._radiusAxisHelper=t,this.onRadiusAxisHelperUpdate()}get sortDataByAxis(){return this._sortDataByAxis}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this),this._markAttributeContext.getCenter=()=>this.angleAxisHelper.center(),this._markAttributeContext.getLayoutRadius=()=>this._computeLayoutRadius()}valueToPosition(t,e){if(C(t)||C(e)||!this.angleAxisHelper||!this.radiusAxisHelper)return{x:Number.NaN,y:Number.NaN};const i=this.angleAxisHelper.dataToPosition(H(t)),s=this.radiusAxisHelper.dataToPosition(H(e));return this.angleAxisHelper.coordToPoint({angle:i,radius:s})}dataToPosition(t,e){return t&&this.angleAxisHelper&&this.radiusAxisHelper?e&&!this.isDatumInViewData(t)?null:this.valueToPosition(this.getDatumPositionValues(t,this._angleField),this.getDatumPositionValues(t,this._radiusField)):null}dataToPositionX(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.x}dataToPositionY(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.y}dataToPositionZ(t){return 0}positionToData(t){}radiusToData(t){}angleToData(t){}getStatisticFields(){var t,e;const i=[];return!((t=this.radiusAxisHelper)===null||t===void 0)&&t.getScale&&this._radiusField.forEach(s=>{const r={key:s,operations:[]};ie(this.radiusAxisHelper.getScale(0).type)?r.operations=["max","min"]:r.operations=["values"],i.push(r)}),!((e=this.angleAxisHelper)===null||e===void 0)&&e.getScale&&this._angleField.forEach(s=>{const r={key:s,operations:[]};ie(this.angleAxisHelper.getScale(0).type)?r.operations=["max","min"]:r.operations=["values"],i.push(r)}),i}setAttrFromSpec(){super.setAttrFromSpec(),P(this._spec.outerRadius)&&(this._outerRadius=this._spec.outerRadius),P(this._spec.radius)&&(this._outerRadius=this._spec.radius),P(this._spec.innerRadius)&&(this._innerRadius=this._spec.innerRadius),P(this._spec.sortDataByAxis)&&(this._sortDataByAxis=this._spec.sortDataByAxis===!0)}onRadiusAxisHelperUpdate(){this.onMarkPositionUpdate()}onAngleAxisHelperUpdate(){this.onMarkPositionUpdate()}afterInitMark(){super.afterInitMark()}_computeLayoutRadius(){const t=this._angleAxisHelper||this._radiusAxisHelper;if(t)return t.layoutRadius();const{width:e,height:i}=this._region.getLayoutRect();return Math.min(e/2,i/2)}initEvent(){super.initEvent(),this.sortDataByAxis&&this.event.on(ft.scaleDomainUpdate,{filter:t=>{var e;return t.model.id===((e=this._angleAxisHelper)===null||e===void 0?void 0:e.getAxisId())}},()=>{this._sortDataInAxisDomain()})}_sortDataInAxisDomain(){var t,e;!((e=(t=this.getViewData())===null||t===void 0?void 0:t.latestData)===null||e===void 0)&&e.length&&GL(this.angleAxisHelper,this._angleField[0],this.getViewData().latestData)}getInvalidCheckFields(){const t=[];return this.angleAxisHelper.isContinuous&&this._angleField.forEach(e=>{t.push(e)}),this.radiusAxisHelper.isContinuous&&this._radiusField.forEach(e=>{t.push(e)}),t}}function det(n){return oh(n)?Number.parseFloat(n):0}const cet=(n,t)=>{const e=n.map(k=>Object.assign({},k));if(!e||e.length===0)return e;const{asStartAngle:i,asEndAngle:s,asMiddleAngle:r,asRadian:a,asRatio:o,asQuadrant:l,asK:h}=t,d=t.angleField(),c=t.startAngle(),u=t.endAngle(),p=t.minAngle(),g=(k,A,T)=>{k[i]=A,k[s]=A+T,k[r]=A+T/2,k[a]=T,k[l]=nX(A+T/2)};let f=0,_=-1/0;for(let k=0;kNumber(k[d])),y=u-c;let b=c,v=y,x=0;const S=dX(m);if(e.forEach((k,A)=>{const T=k[q0],M=f?T/f:0;let w=M*y;w{g(A,c+T*k,k)})}else{const k=v/x;b=c,e.forEach(A=>{const T=A[a]===p?p:A[q0]*k;g(A,b,T),b+=T})}return f!==0&&(e[e.length-1][s]=u),e};function Jm(n,t,e){return(i,s,r)=>t?n.growField==="radius"?{overall:0}:{overall:n.growFrom(i,s,e)}:{overall:!1}}const CC=n=>({type:n.growField==="radius"?"growRadiusIn":"growAngleIn",options:Jm(n,!0,Ze.appear)}),uet={type:"fadeIn"},vD=n=>({type:n.growField==="radius"?"growRadiusIn":"growAngleIn",easing:"linear",options:Jm(n,!0,Ze.enter)}),yD=n=>({type:n.growField==="radius"?"growRadiusOut":"growAngleOut",easing:"linear",options:Jm(n,!0,Ze.exit)}),bD=n=>({type:n.growField==="radius"?"growRadiusOut":"growAngleOut",options:Jm(n,!0,Ze.exit)});function xD(n,t){if(t===!1)return{};switch(t){case"fadeIn":return uet;case"growRadius":return CC(Object.assign(Object.assign({},n),{growField:"radius"}));default:return CC(Object.assign(Object.assign({},n),{growField:"angle"}))}}const pet=()=>{L.registerAnimation("pie",(n,t)=>({appear:xD(n,t),enter:vD(n),exit:yD(n),disappear:bD(n)}))},get=()=>{L.registerAnimation("pie3d",(n,t)=>({appear:xD(n,t),enter:vD(n),exit:yD(n),disappear:bD(n)}))};function fet(n,t){var e,i,s,r;const a=(i=(e=t.options)===null||e===void 0?void 0:e.distance)!==null&&i!==void 0?i:10,o=z(t.duration)?t.duration/2:1e3,l=(s=t.options.easing)!==null&&s!==void 0?s:"cubicOut";return{oneByOne:t.oneByOne,loop:(r=t.loop)!==null&&r!==void 0&&r,timeSlices:[{duration:o,effects:{easing:l,channel:{x:{from:h=>n.getAttribute("x",h),to:h=>n.getAttribute("x",h)+Ue({x:0,y:0},a,h[_r]).x},y:{from:h=>n.getAttribute("y",h),to:h=>n.getAttribute("y",h)+Ue({x:0,y:0},a,h[_r]).y}}}},{duration:o,effects:{easing:l,channel:{x:{to:h=>n.getAttribute("x",h),from:h=>n.getAttribute("x",h)+Ue({x:0,y:0},a,h[_r]).x},y:{to:h=>n.getAttribute("y",h),from:h=>n.getAttribute("y",h)+Ue({x:0,y:0},a,h[_r]).y}}}}]}}class SD extends Oi{constructor(t,e){super(t,e),this.type=vh.type,this._unCompileChannel={centerOffset:!0,radiusOffset:!0},this.computeOuterRadius=(i,s,r="normal",a,o)=>{var l;return o+((l=this.getAttribute("radiusOffset",s,r,a))!==null&&l!==void 0?l:0)},this.computeCenter=(i,s,r="normal",a,o)=>Ue({x:0,y:0},this.getAttribute("centerOffset",s,r,a),s[_r])[i]+o,this._computeExChannel.x=this.computeCenter,this._computeExChannel.y=this.computeCenter,this._computeExChannel.outerRadius=this.computeOuterRadius,this._extensionChannel.centerOffset=["x","y"],this._extensionChannel.radiusOffset=["outerRadius"]}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{startAngle:0,endAngle:0,outerRadius:0,innerRadius:0,cornerRadius:0,lineWidth:0,innerPadding:0,outerPadding:0})}}class vh extends SD{constructor(){super(...arguments),this.type=vh.type}}vh.type="arc";const Qo=()=>{M6(),ML(),L.registerMark(vh.type,vh)};class BS extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie")}_mergeThemeToSpec(t,e){const i=this._theme;let s=t;if(this._shouldMergeThemeToSpec()){const r=this._getDefaultSpecFromChart(e);s=vt({},this._theme,r,t);const a=(o,l)=>vt({},o==="inside"?this._theme.innerLabel:this._theme.outerLabel,l);V(s.label)?s.label=s.label.map(o=>a(o.position,o)):s.label=a(s.label.position,s.label)}return{spec:s,theme:i}}_getDefaultSpecFromChart(t){var e;const i=(e=super._getDefaultSpecFromChart(t))!==null&&e!==void 0?e:{},{centerX:s,centerY:r}=t;return P(s)&&(i.centerX=s),P(r)&&(i.centerY=r),Object.keys(i).length>0?i:void 0}}const PC=(n,t)=>{var e,i,s,r,a,o;const l=(e=n.type)!==null&&e!==void 0?e:n.orient==="angle"?"band":"linear",h=`${U.polarAxis}-${l}`,d=(i=n.startAngle)!==null&&i!==void 0?i:t.startAngle,c=(s=n.endAngle)!==null&&s!==void 0?s:t.endAngle;return{axisType:l,componentName:h,startAngle:d??qx,endAngle:c??(P(d)?d+360:PI),center:P(t.center)?t.center:P(t==null?void 0:t.centerX)||P(t==null?void 0:t.centerY)?{x:t==null?void 0:t.centerX,y:t==null?void 0:t.centerY}:void 0,outerRadius:(o=(a=(r=n.radius)!==null&&r!==void 0?r:t.outerRadius)!==null&&a!==void 0?a:t.radius)!==null&&o!==void 0?o:jc,layoutRadius:t.layoutRadius}},AD=(n,t,e,i=0,s=0*Math.PI)=>{if(nt(n))return n;if(G(n))return n(t(),e());const r=t();return n==="auto"&&r.width>0&&r.height>0?xF(r,e(),i,s):Math.min(r.width/2,r.height/2)};class yh extends Du{constructor(){super(...arguments),this.transformerConstructor=BS,this._pieMarkName="pie",this._pieMarkType="arc",this.getCenter=()=>{var t,e,i,s;const{width:r,height:a}=this._region.getLayoutRect();return{x:(e=(t=this._spec)===null||t===void 0?void 0:t.centerX)!==null&&e!==void 0?e:r/2,y:(s=(i=this._spec)===null||i===void 0?void 0:i.centerY)!==null&&s!==void 0?s:a/2}},this._startAngle=Cm,this._endAngle=Kx,this._pieMark=null,this._labelMark=null,this._labelLineMark=null,this.dataToCentralPosition=t=>{const e=t[_r];if(C(e))return null;const i=this.computeDatumRadius(t),s=this.computeDatumInnerRadius(t),r=this.computeCenter(t);return Ue(r,(i+s)/2,e)}}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getCenter=()=>({x:()=>this.getCenter().x,y:()=>this.getCenter().y}),this._markAttributeContext.startAngleScale=t=>this.startAngleScale(t),this._markAttributeContext.endAngleScale=t=>this.endAngleScale(t)}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this._centerOffset=(t=this._spec.centerOffset)!==null&&t!==void 0?t:0,this._cornerRadius=(e=this._spec.cornerRadius)!==null&&e!==void 0?e:0;const i=sX(P(this._spec.startAngle)?Jt(this._spec.startAngle):this._startAngle,P(this._spec.endAngle)?Jt(this._spec.endAngle):this._endAngle);this._startAngle=i.startAngle,this._endAngle=i.endAngle,this._padAngle=P(this._spec.padAngle)?Jt(this._spec.padAngle):0,this.setAngleField(this._spec.valueField||this._spec.angleField),this._spec.categoryField&&this.setSeriesField(this._spec.categoryField),this._radiusField=[],this._specAngleField=this._angleField.slice(),this._specRadiusField=[]}initData(){super.initData();const t=this.getViewData();if(!t)return;Tt(this._dataSet,"pie",cet),t.transform({type:"pie",options:{angleField:()=>this._angleField[0],startAngle:()=>this._startAngle,endAngle:()=>this._endAngle,minAngle:()=>P(this._spec.minAngle)?Jt(this._spec.minAngle):0,asStartAngle:HM,asEndAngle:VM,asRatio:uX,asMiddleAngle:_r,asRadian:fX,asQuadrant:gX,asK:pX}},!1);const e=new Ut(this._dataSet,{name:`${yt}_series_${this.id}_viewDataLabel`});e.parse([this.getViewData()],{type:"dataview"}),this._viewDataLabel=new Ys(this._option,e)}initMark(){var t,e;this._pieMark=this._createMark(Object.assign(Object.assign({},yh.mark.pie),{name:this._pieMarkName,type:this._pieMarkType}),{morph:Fr(this._spec,this._pieMarkName),defaultMorphElementKey:this._seriesField,key:Qn,groupKey:this._seriesField,skipBeforeLayouted:!0,isSeriesMark:!0,customShape:(t=this._spec.pie)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.pie)===null||e===void 0?void 0:e.stateSort})}startAngleScale(t){return Wp(HM)(t)}endAngleScale(t){return Wp(VM)(t)}_computeLayoutRadius(){return AD(this._spec.layoutRadius,this.getLayoutRect,this.getCenter,this._startAngle,this._endAngle)}initMarkStyle(){const t=this._pieMark;t&&this.setMarkStyle(t,{x:()=>this.getCenter().x,y:()=>this.getCenter().y,fill:this.getColorAttribute(),outerRadius:Tw(this._outerRadius)?this._outerRadius:()=>this._computeLayoutRadius()*this._outerRadius,innerRadius:Tw(this._innerRadius)?this._innerRadius:()=>this._computeLayoutRadius()*this._innerRadius,cornerRadius:()=>this._computeLayoutRadius()*this._cornerRadius,startAngle:e=>this.startAngleScale(e),endAngle:e=>this.endAngleScale(e),padAngle:this._padAngle,centerOffset:this._centerOffset},"normal",tt.Series)}initInteraction(){this._parseInteractionConfig(this._pieMark?[this._pieMark]:[])}initTooltip(){super.initTooltip(),this._pieMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pieMark)}initMarkStyleWithSpec(t,e,i){if(super.initMarkStyleWithSpec(t,e,i),t.name===this._pieMarkName){const s=this.getSpec()[t.name];if(s)for(const r in s.state||{})this.setMarkStyle(t,this.generateRadiusStyle(s.state[r]),r,tt.User_Mark)}}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{visible:Wp(cX).bind(this),text:e=>e[this.getDimensionField()[0]],fill:this.getColorAttribute(),z:this.dataToPositionZ.bind(this)})}afterInitMark(){super.afterInitMark()}initEvent(){var t;super.initEvent(),(t=this._viewDataLabel.getDataView())===null||t===void 0||t.target.addListener("change",this.viewDataLabelUpdate.bind(this))}initGroups(){}onLayoutEnd(t){this._viewDataLabel.getDataView().reRunAllTransform(),this.onMarkPositionUpdate(),super.onLayoutEnd(t)}getDimensionField(){return this._seriesField?[this._seriesField]:[]}getMeasureField(){return this._specAngleField}viewDataLabelUpdate(){this.event.emit(ft.viewDataLabelUpdate,{model:this}),this._viewDataLabel.updateData()}generateRadiusStyle(t){if(!t)return;const e={};return t.outerRadius&&(e.outerRadius=()=>this._computeLayoutRadius()*t.outerRadius),t.innerRadius&&(e.innerRadius=()=>this._computeLayoutRadius()*t.innerRadius),t.cornerRadius&&(e.cornerRadius=()=>this._computeLayoutRadius()*t.cornerRadius),e}computeCenter(t){return{x:this._pieMark.getAttribute("x",t,"normal"),y:this._pieMark.getAttribute("y",t,"normal")}}getRadius(t="normal"){var e,i,s,r,a,o,l;const h=t==="normal"?(s=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.outerRadius:(l=(o=(a=this.getSpec()[((r=this._pieMark)===null||r===void 0?void 0:r.name)||"pie"])===null||a===void 0?void 0:a.state)===null||o===void 0?void 0:o[t])===null||l===void 0?void 0:l.outerRadius;return h??this._outerRadius}getInnerRadius(t="normal"){var e,i,s,r,a,o,l;const h=t==="normal"?(s=(i=this.getSpec()[((e=this._pieMark)===null||e===void 0?void 0:e.name)||"pie"])===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.innerRadius:(l=(o=(a=this.getSpec()[((r=this._pieMark)===null||r===void 0?void 0:r.name)||"pie"])===null||a===void 0?void 0:a.state)===null||o===void 0?void 0:o[t])===null||l===void 0?void 0:l.innerRadius;return h??this._innerRadius}computeRadius(t,e){return this._computeLayoutRadius()*t*(C(e)?1:e)+this._centerOffset}computeDatumRadius(t,e){return this._computeLayoutRadius()*this.getRadius(e)+this._centerOffset}_compareSpec(t,e,i){i=i??{data:!0};const s=["centerX","centerY","centerOffset","radius","innerRadius","cornerRadius","startAngle","endAngle","padAngle"];s.forEach(a=>{i[a]=!0});const r=super._compareSpec(t,e,i);return t=t??{},s.some(a=>t[a]!==e[a])&&(r.reRender=!0,r.change=!0),r}computeDatumInnerRadius(t,e){return this._computeLayoutRadius()*this.getInnerRadius(e)+this._centerOffset}dataToPosition(t,e){const i=t[_r];if(C(i)||e&&!this.isDatumInViewData(t))return null;const s=this.computeDatumRadius(t),r=this.computeCenter(t);return Ue(r,s,i)}initAnimation(){var t,e;const i={growFrom:(r,a,o)=>{var l;if(o===Ze.appear)return this._startAngle;if(o===Ze.disappear)return this._endAngle;const h=[Ze.disappear,Ze.exit],d=a.mark.elements,c=r,u=c==null?void 0:c[Xi];if(d.find(g=>{var f;return((f=g.data[0])===null||f===void 0?void 0:f[Xi]){var f;return((f=g.data[0])===null||f===void 0?void 0:f[Xi])>u})===void 0)return this._endAngle;const p=[...d].reverse().find(g=>{var f;return((f=g.data[0])===null||f===void 0?void 0:f[Xi]){Qo(),pet(),L.registerSeries(Gb.type,Gb)};class su extends SD{constructor(){super(...arguments),this.type=su.type,this._support3d=!0}}su.type="arc3d";const kD=()=>{ML(),w6(),L.registerMark(su.type,su)};class TD extends BS{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie3d")}}class zd extends yh{constructor(){super(...arguments),this.type=j.pie3d,this._pieMarkName="pie3d",this._pieMarkType="arc3d",this.transformerConstructor=TD}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this._angle3d=(e=(t=this._spec)===null||t===void 0?void 0:t.angle3d)!==null&&e!==void 0?e:-Math.PI/3}initMarkStyle(){super.initMarkStyle();const t=this._pieMark;t&&this.setMarkStyle(t,{beta:()=>this._angle3d},"normal",tt.Series)}initLabelMarkStyle(t,e={}){if(!t)return;super.initLabelMarkStyle(t);const i={};t.setSupport3d(!0),i.beta=this._angle3d,i.anchor3d=s=>{const{x:r,y:a}=this.getCenter();return[r,a]},i.angle=s=>{const r=s[_r];return e.position==="inside"?Zl(r):0},this.setMarkStyle(t,Object.assign(Object.assign({},i),{z:100}),void 0,tt.Mark)}}zd.type=j.pie3d,zd.mark=yO,zd.transformerConstructor=TD;const met=()=>{get(),kD(),L.registerSeries(zd.type,zd)},EC=n=>{const t=n.growField==="angle"?0:n.innerRadius;return n.growField==="angle"?{type:n.growField==="angle"?"growAngleIn":"growRadiusIn"}:{channel:{innerRadius:{from:t,to:(e,i)=>{var s;return(s=i.getFinalGraphicAttributes())===null||s===void 0?void 0:s.innerRadius}},outerRadius:{from:t,to:(e,i)=>{var s;return(s=i.getFinalGraphicAttributes())===null||s===void 0?void 0:s.outerRadius}}}}},vet={type:"fadeIn"},yet=n=>({type:n.growField==="angle"?"growAngleIn":"growRadiusIn"}),bet=n=>({type:n.growField==="angle"?"growAngleOut":"growRadiusOut"}),xet=n=>({type:n.growField==="angle"?"growAngleOut":"growRadiusOut"});function Aet(n,t){if(t===!1)return{};switch(t){case"fadeIn":return vet;case"growAngle":return EC(Object.assign(Object.assign({},n),{growField:"angle"}));default:return EC(Object.assign(Object.assign({},n),{growField:"radius"}))}}const ket=()=>{L.registerAnimation("rose",(n,t)=>({appear:Aet(n,t),enter:yet(n),exit:bet(n),disappear:xet(n)}))};class MD extends Du{getStackGroupFields(){return this._angleField}getStackValueField(){return H(this._spec.valueField)[0]||H(this._spec.radiusField)[0]}getGroupFields(){return this._angleField}setAttrFromSpec(){super.setAttrFromSpec(),this.setAngleField(this._spec.categoryField||this._spec.angleField),this.setRadiusField(this._spec.valueField||this._spec.radiusField),this._specAngleField=this._angleField.slice(),this._specRadiusField=this._radiusField.slice(),this.setInnerRadiusField(this._spec.valueField||this._spec.radiusField),this.getStack()&&this.setValueFieldToStack(),this.getPercent()&&this.setValueFieldToPercent()}setValueFieldToStack(){this.setRadiusField(qe),this.setInnerRadiusField(An)}setValueFieldToPercent(){this.setRadiusField(La),this.setInnerRadiusField(zo)}getDimensionField(){return this._specAngleField}getMeasureField(){return this._specRadiusField}getDefaultShapeType(){return"square"}}class wD extends pn{constructor(){super(...arguments),this._supportStack=!0}_transformLabelSpec(t){this._addMarkLabelSpec(t,"rose")}}var RC=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{if(!Qw(l))return;const{axisType:d,componentName:c,startAngle:u,endAngle:p,center:g,outerRadius:f,layoutRadius:_}=PC(l,t);l.center=g,l.startAngle=u,l.endAngle=p,l.outerRadius=f,l.type=d,l.layoutRadius=_;const m={spec:l,specPath:[this.specKey,h],specInfoPath:["component",this.specKey,h],type:c};i.push(m),l.orient==="radius"?(a.push(m),r=h):(o.push(m),s=h)}),a.forEach(l=>{l.angleAxisIndex=s}),o.forEach(l=>{l.radiusAxisIndex=r}),i}static createComponent(t,e){const{spec:i}=t,s=RC(t,["spec"]),r=L.getComponentInKey(s.type);return r?new r(i,Object.assign(Object.assign({},e),s)):(e.onError(`Component ${s.type} not found`),null)}constructor(t,e){super(t,e),this.type=U.polarAxis,this.name=U.polarAxis,this._defaultBandPosition=0,this._defaultBandInnerPadding=0,this._defaultBandOuterPadding=0,this.layoutType="absolute",this.layoutZIndex=re.Axis,this._tick=void 0,this._center=null,this._startAngle=Cm,this._endAngle=Kx,this._orient="radius",this._groupScales=[],this.effect={scaleUpdate:i=>{this.computeData(i==null?void 0:i.value),Ee(this._regions,s=>{this.getOrient()==="radius"?s.radiusAxisHelper=this.axisHelper():s.angleAxisHelper=this.axisHelper()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._transformLayoutPosition=i=>{var s;const r=(s=this.getRegions())===null||s===void 0?void 0:s[0];return r?r.getLayoutStartPoint():i},this.getRefLayoutRect=()=>this.getRegions()[0].getLayoutRect(),this._coordinateType="polar"}setAttrFromSpec(){super.setAttrFromSpec(),this.visible&&(this._axisStyle=this._getAxisAttributes(),this._gridStyle=this._getGridAttributes()),this._tick=this._spec.tick,this._orient=this._spec.orient==="angle"?"angle":"radius",this._center=this._spec.center,this._startAngle=Jt(this._spec.startAngle),this._endAngle=Jt(this._spec.endAngle),this._inverse=this._spec.inverse}onRender(t){}changeRegions(){}_tickTransformOption(){var t;return Object.assign(Object.assign({},super._tickTransformOption()),{noDecimal:(t=this._tick)===null||t===void 0?void 0:t.noDecimals,startAngle:this.startAngle,labelOffset:$c(this._spec),getRadius:()=>this.getOuterRadius(),inside:this._spec.inside})}afterCompile(){var t;const e=(t=this._axisMark)===null||t===void 0?void 0:t.getProduct();e&&e.addEventListener(ct.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateAxisContainerEvent(e.getGroupGraphicItem())})}updateScaleRange(){const t=this._scale.range();let e;return e=this.getOrient()==="radius"?this._inverse?[this.computeLayoutOuterRadius(),this.computeLayoutInnerRadius()]:[this.computeLayoutInnerRadius(),this.computeLayoutOuterRadius()]:this._inverse?[this._endAngle,this._startAngle]:[this._startAngle,this._endAngle],(!t||!e||t[0]!==e[0]||t[1]!==e[1])&&(this._scale.range(e),!0)}collectSeriesField(t,e){var i,s;let r;return r=t>0?(s=(i=e.getGroups())===null||i===void 0?void 0:i.fields)===null||s===void 0?void 0:s[t]:this.getOrient()==="radius"?e.getRadiusField():e.getAngleField(),r}updateSeriesScale(){Ee(this._regions,t=>{this.getOrient()==="radius"?(t.setRadiusScale(this._scale),t.radiusAxisHelper=this.axisHelper()):(t.setAngleScale(this._scale),t.angleAxisHelper=this.axisHelper())},{userId:this._seriesUserId,specIndex:this._seriesIndex})}getSeriesStatisticsField(t){const e=this.getOrient()==="radius"?t.getRadiusField():t.getAngleField();return ie(this._scale.type)?e:[e[0]]}initGroupScales(){}axisHelper(){return{isContinuous:ie(this._scale.type),dataToPosition:this.dataToPosition.bind(this),coordToPoint:this.coordToPoint.bind(this),pointToCoord:this.pointToCoord.bind(this),center:this.getCenter.bind(this),layoutRadius:this._computeLayoutRadius.bind(this),getScale:(t=0)=>this._scales[t],getAxisId:()=>this.id,getSpec:()=>this._spec}}positionToData(t){const e=this.pointToCoord(t);return this.getOrient()==="radius"?this.invert(e.radius):this.invert(e.angle)}coordToPoint(t){const e=this.getCenter();return Ue(e,t.radius,t.angle)}pointToCoord(t){const{x:e,y:i}=this.getCenter();let s=t.x-e,r=t.y-i;const a=this._startAngle,o=this._endAngle,l=Math.sqrt(s*s+r*r);s/=l,r/=l;let h=Math.atan2(r,s);if(ho)for(;h>=o;)h-=2*Math.PI;return{radius:l,angle:h}}getCenter(){var t,e;const i=this.getRefLayoutRect(),{width:s,height:r}=i;return{x:Si((t=this._center)===null||t===void 0?void 0:t.x,s,i,s/2),y:Si((e=this._center)===null||e===void 0?void 0:e.y,r,i,r/2)}}getOuterRadius(){return this.computeLayoutOuterRadius()}getInnerRadius(){return this.computeLayoutInnerRadius()}updateLayoutAttribute(){this._visible&&(this.getOrient()==="radius"?this._layoutRadiusAxis():this._layoutAngleAxis()),super.updateLayoutAttribute()}_getNormalizedValue(t,e){return e===0?0:(this.dataToPosition(t)-this._getStartValue())/e}getLabelItems(t){var e;const i=(e=this.getTickData())===null||e===void 0?void 0:e.getLatestData();return i&&i.length?[i.map(s=>ph(s.value,this._getNormalizedValue([s.value],t)))]:[]}_getStartValue(){return this.getOrient()==="radius"?this.computeLayoutInnerRadius():this._startAngle}_layoutAngleAxis(){var t,e,i;const s=this.getCenter(),r=this.computeLayoutOuterRadius(),a=this.computeLayoutInnerRadius(),o=this._endAngle-this._startAngle,l=this.getLabelItems(o),h=Object.assign(Object.assign({},this.getLayoutStartPoint()),{inside:this._spec.inside,center:s,radius:r,innerRadius:a,startAngle:this._startAngle,endAngle:this._endAngle,sides:!((i=(e=(t=this._getRelatedAxis(this._option.radiusAxisIndex))===null||t===void 0?void 0:t.getSpec())===null||e===void 0?void 0:e.grid)===null||i===void 0)&&i.smooth?void 0:this.getScale().domain().length}),d=Object.assign(Object.assign({},h),{title:{text:this._spec.title.text||this._dataFieldText},items:l,orient:"angle"});this._spec.grid.visible&&(d.grid=Object.assign({type:"line",smoothLink:!0,items:l[0]},h)),this._update(d)}_layoutRadiusAxis(){var t,e,i;const s=this.getCenter(),r=this.computeLayoutOuterRadius(),a=this.computeLayoutInnerRadius(),o=this.coordToPoint({angle:this._startAngle,radius:r}),l=this.coordToPoint({angle:this._startAngle,radius:a}),h=Ce.distancePP(l,o),d=this.getLabelItems(h),c=Object.assign(Object.assign({},this.getLayoutStartPoint()),{start:l,end:o,verticalFactor:-1}),u=Object.assign(Object.assign({},c),{title:{text:this._spec.title.text||this._dataFieldText},items:d,orient:"radius"});!((t=this._spec.grid)===null||t===void 0)&&t.visible&&(u.grid=Object.assign({items:d[0],type:!((e=this._spec.grid)===null||e===void 0)&&e.smooth?"circle":"polygon",center:s,closed:!0,sides:(i=this._getRelatedAxis(this._option.angleAxisIndex))===null||i===void 0?void 0:i.getScale().domain().length,startAngle:this._startAngle,endAngle:this._endAngle},c)),this._update(u)}_getRelatedAxis(t){if(P(t))return this._option.getComponentByIndex(this.specKey,t)}_computeLayoutRadius(){return AD(this._spec.layoutRadius,this.getRefLayoutRect,this.getCenter,this._startAngle,this._endAngle)}computeLayoutOuterRadius(){var t;const e=(t=this._spec.outerRadius)!==null&&t!==void 0?t:this._spec.radius,i=e??this.getRefSeriesRadius().outerRadius;return this._computeLayoutRadius()*i}computeLayoutInnerRadius(){var t;const e=(t=this._spec.innerRadius)!==null&&t!==void 0?t:this.getRefSeriesRadius().innerRadius;return this._computeLayoutRadius()*e}getRefSeriesRadius(){let t=jc,e=0;const i=this.getChart().getSpec();return Ee(this.getRegions(),s=>{const r=s;if(kQ(r.type)){const{outerRadius:a=i.outerRadius,innerRadius:o=i.innerRadius}=r;z(a)&&(t=a),z(o)&&(e=o)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),{outerRadius:t,innerRadius:e}}_update(t){const{grid:e}=t,i=RC(t,["grid"]);this._axisMark.getProduct().encode(vt({},this._axisStyle,i)),this._gridMark&&this._gridMark.getProduct().encode(vt({},this._gridStyle,e))}invert(t){var e;if(this.getOrient()==="angle"&&this._scale.type==="band"){const i=this._scale.range(),s=i[i.length-1]-i[0],r=((e=this.getSpec().bandPosition)!==null&&e!==void 0?e:this._defaultBandPosition)===.5?0:this._scale.bandwidth()/2;if(i[0]<0){const a=(t+r+Math.abs(i[0]))%s-Math.abs(i[0]);return this._scale.invert(a)}return this._scale.invert((t+r)%s)}return this._scale.invert(t)}}r_.type=U.polarAxis,r_.specKey="axes";class jd extends r_{constructor(){super(...arguments),this.type=U.polarLinearAxis,this._zero=!0,this._nice=!0,this._extend={},this._scale=new is}setAttrFromSpec(){super.setAttrFromSpec(),this.setExtraAttrFromSpec()}initScales(){super.initScales(),this.setScaleNice()}computeDomain(t){return this.computeLinearDomain(t)}axisHelper(){const t=super.axisHelper();return t.setExtendDomain=this.setExtendDomain.bind(this),t}}jd.type=U.polarLinearAxis,jd.specKey="axes",$e(jd,Xm);const Dh=()=>{Jo(),L.registerComponent(jd.type,jd)};class Hd extends r_{constructor(){super(...arguments),this.type=U.polarBandAxis,this._scale=new qo}computeDomain(t){return this.computeBandDomain(t)}updateScaleRange(){const t=super.updateScaleRange();return this.updateGroupScaleRange(),t}axisHelper(){const t=super.axisHelper();return Object.assign(Object.assign({},t),{getBandwidth:e=>t.getScale(e).bandwidth()})}initScales(){super.initScales(),this.calcScales(this._defaultBandInnerPadding,this._defaultBandOuterPadding)}transformScaleDomain(){}}Hd.type=U.polarBandAxis,Hd.specKey="axes",$e(Hd,KL);const Fu=()=>{Jo(),L.registerComponent(Hd.type,Hd)};class Aa extends MD{constructor(){super(...arguments),this.type=j.rose,this.transformerConstructor=wD,this._roseMark=null,this._labelMark=null}initMark(){this.initRoseMark()}initMarkStyle(){this.initRoseMarkStyle()}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getCenter=()=>({x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y}),this._markAttributeContext.startAngleScale=t=>this.startAngleScale(t),this._markAttributeContext.endAngleScale=t=>this.endAngleScale(t)}initRoseMark(){var t,e;this._roseMark=this._createMark(Aa.mark.rose,{morph:Fr(this._spec,Aa.mark.rose.name),defaultMorphElementKey:this.getDimensionField()[0],groupKey:this._seriesField,isSeriesMark:!0,customShape:(t=this._spec.rose)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.rose)===null||e===void 0?void 0:e.stateSort})}getRoseAngle(){var t,e,i;return(i=(e=(t=this.angleAxisHelper).getBandwidth)===null||e===void 0?void 0:e.call(t,this._groups?this._groups.fields.length-1:0))!==null&&i!==void 0?i:.5}startAngleScale(t){return this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))-.5*this.angleAxisHelper.getBandwidth(this.getGroupFields().length-1)}endAngleScale(t){return this.angleAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))+this.getRoseAngle()-.5*this.angleAxisHelper.getBandwidth(this.getGroupFields().length-1)}initRoseMarkStyle(){const t=this._roseMark;t&&this.setMarkStyle(t,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:e=>this.startAngleScale(e),endAngle:e=>this.endAngleScale(e),fill:this.getColorAttribute(),outerRadius:e=>Zt(this.radiusAxisHelper.dataToPosition([e[this._radiusField[0]]]),this.radiusAxisHelper.getScale(0)),innerRadius:e=>{var i;if(!this.getStack())return 0;const s=Zt(this.radiusAxisHelper.dataToPosition([e[this._innerRadiusField[0]]]),this.radiusAxisHelper.getScale(0));return s<=Number.MIN_VALUE?this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0):s}})}initTooltip(){super.initTooltip(),this._roseMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._roseMark)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{text:e=>e[this.getDimensionField()[0]],fill:this.getColorAttribute(),z:0})}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;if(this._roseMark){const r={innerRadius:()=>{var a;return this._computeLayoutRadius()*((a=this._spec.innerRadius)!==null&&a!==void 0?a:0)}};this._roseMark.setAnimationConfig(zt((i=L.getAnimationInKey("rose"))===null||i===void 0?void 0:i(r,s),Wt("rose",this._spec,this._markAttributeContext)))}}getDefaultShapeType(){return"circle"}getActiveMarks(){return[this._roseMark]}}Aa.type=j.rose,Aa.mark=bO,Aa.transformerConstructor=wD;const Tet=()=>{L.registerSeries(Aa.type,Aa),Qo(),ket(),Fu(),Dh()};class Met extends dn{constructor(t,e,i,s,r){super(t,e,i,s,r);const a=this.params.pointToCoord,o=this.params.coordToPoint;G(a)&&G(o)||(this.valid=!1),this._pointToCoord=a,this._coordToPoint=o}getEndProps(){return this.valid===!1?{}:this._coordToPoint({angle:this._toAngle,radius:this._toRadius})}onBind(){const{angle:t,radius:e}=this._pointToCoord(this.from),{angle:i,radius:s}=this._pointToCoord(this.to);z(i*s)||(this.valid=!1),this._fromAngle=z(t)?t:i,this._fromRadius=z(e)?e:s,this._toAngle=i,this._toRadius=s,Lf(this._fromAngle,this._toAngle)&&Lf(this._fromRadius,this._toRadius)&&(this.valid=!1)}onUpdate(t,e,i){if(this.valid===!1)return i.x=this.to.x,void(i.y=this.to.y);if(t){const{x:s,y:r}=this.getEndProps();i.x=s,i.y=r}else{const{x:s,y:r}=this._coordToPoint({angle:this._fromAngle+(this._toAngle-this._fromAngle)*e,radius:this._fromRadius+(this._toRadius-this._fromRadius)*e});i.x=s,i.y=r}}}class wet extends _R{constructor(t,e,i,s,r){super(t,e,i,s,r);const a=this.params.pointToCoord,o=this.params.coordToPoint;this._pointToCoord=a,this._coordToPoint=o}onUpdate(t,e,i){this.points=this.points.map((s,r)=>{const a=this.polarPointInterpolation(this.interpolatePoints[r][0],this.interpolatePoints[r][1],e);return a.context=s.context,a}),i.points=this.points}polarPointInterpolation(t,e,i){const s=this._pointToCoord(t),r=this._pointToCoord({x:t.x1,y:t.y1});let a=js(s.angle),o=js(r.angle);const l=this._pointToCoord(e),h=this._pointToCoord({x:e.x1,y:e.y1});let d=js(l.angle),c=js(h.angle);!z(a)&&z(d)&&(a=d),z(a)&&!z(d)&&(d=a),!z(o)&&z(c)&&(o=c),z(o)&&!z(c)&&(c=o);const u=a+(d-a)*i,p=s.radius+(l.radius-s.radius)*i,g=o+(c-o)*i,f=r.radius+(h.radius-r.radius)*i,{x:_,y:m}=this._coordToPoint({angle:u,radius:p}),{x:y,y:b}=this._coordToPoint({angle:g,radius:f}),v=new ze(_,m,y,b);return v.defined=e.defined,v}}const CD=n=>({type:n==="in"?"fadeIn":"fadeOut"}),Cet=(n,t)=>({type:t==="in"?"growPointsIn":"growPointsOut",options:()=>({center:n.center()})});function Mp(n,t,e){return t==="fadeIn"?CD(e):Cet(n,e)}const Pet=(n,t)=>{const e=()=>{var a;return(a=n.center())===null||a===void 0?void 0:a.x},i=(a,o)=>o.getGraphicAttribute("x"),s=()=>{var a;return(a=n.center())===null||a===void 0?void 0:a.y},r=(a,o)=>o.getGraphicAttribute("y");return t==="in"?{channel:{x:{from:e,to:i},y:{from:s,to:r}}}:{channel:{x:{from:i,to:e},y:{from:r,to:s}}}};function BC(n,t,e){return t==="fadeIn"?CD(e):Pet(n,e)}const IC=(n,t)=>({custom:$j,customParameters:(e,i)=>{var s;return{group:i.getGraphicItem(),startAngle:(s=n.startAngle)!==null&&s!==void 0?s:Math.PI/2,orient:"clockwise",center:n.center(),radius:n.radius(),animationType:t}}}),Eet=()=>{L.registerAnimation("radar",(n,t)=>({appear:t==="clipIn"?void 0:Mp(n,t,"in"),enter:Mp(n,t,"in"),exit:Mp(n,t,"out"),disappear:t==="clipIn"?void 0:Mp(n,t,"out"),update:[{options:{excludeChannels:["points","defined"]}},{channel:["points"],custom:wet,customParameters:n,duration:aa.update.duration,easing:aa.update.easing}]})),L.registerAnimation("radarSymbol",(n,t)=>({appear:t==="clipIn"?void 0:BC(n,t,"in"),enter:{type:"scaleIn"},exit:{type:"scaleOut"},disappear:t==="clipIn"?void 0:BC(n,t,"out"),update:[{options:{excludeChannels:["x","y"]}},{channel:["x","y"],custom:Met,customParameters:n,duration:aa.update.duration,easing:aa.update.easing}]})),L.registerAnimation("radarGroup",(n,t)=>({appear:IC(n,"in"),disappear:IC(n,"out")})),Rh()};class la extends MD{constructor(){super(...arguments),this.type=j.radar,this.transformerConstructor=Iu,this._sortDataByAxis=!1}initGroups(){}compile(){super.compile(),this.addOverlapCompile()}initMark(){var t,e,i,s;const r={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold},a=((t=this._spec.area)===null||t===void 0?void 0:t.visible)!==!1&&((i=(e=this._spec.area)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.visible)!==!1,o=(s=this._spec.seriesMark)!==null&&s!==void 0?s:"area";this.initAreaMark(r,a&&o==="area"),this.initLineMark(r,o==="line"||o==="area"&&!a),this.initSymbolMark(r,o==="point")}initMarkStyle(){this.initAreaMarkStyle(),this.initLineMarkStyle(),this.initSymbolMarkStyle()}initAreaMark(t,e){var i,s;this._areaMark=this._createMark(la.mark.area,{progressive:t,isSeriesMark:e,customShape:(i=this._spec.area)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.area)===null||s===void 0?void 0:s.stateSort})}initAreaMarkStyle(){const t=this._areaMark;t&&(this.setMarkStyle(t,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),x1:e=>e&&this.angleAxisHelper&&this.radiusAxisHelper?this.valueToPosition(this.getDatumPositionValues(e,this._angleField),this.getStack()?this.getDatumPositionValues(e,this._innerRadiusField):this.radiusScale.domain()[0]).x:Number.NaN,y1:e=>!e||!this.angleAxisHelper||!this.radiusAxisHelper?Number.NaN:this.valueToPosition(this.getDatumPositionValues(e,this._angleField),this.getStack()?this.getDatumPositionValues(e,this._innerRadiusField):this.radiusScale.domain()[0]).y,fill:this.getColorAttribute(),curveType:$L,closePath:!0},"normal",tt.Series),this._invalidType!=="zero"&&this.setMarkStyle(t,{defined:this._getInvalidDefined.bind(this),connectedType:this._getInvalidConnectType()},"normal",tt.Series),this.event.on(ft.viewDataStatisticsUpdate,{filter:e=>e.model===this},()=>{this.encodeDefined(t,"defined")}))}initTooltip(){super.initTooltip();const{dimension:t,group:e,mark:i}=this._tooltipHelper.activeTriggerSet;this._lineMark&&(t.add(this._lineMark),e.add(this._lineMark)),this._areaMark&&(t.add(this._areaMark),e.add(this._areaMark)),this._symbolMark&&(i.add(this._symbolMark),e.add(this._symbolMark))}initAnimation(){var t,e,i,s;const r={center:()=>{var o;return(o=this.angleAxisHelper)===null||o===void 0?void 0:o.center()},radius:()=>{const o=this.getLayoutRect();return Math.min(o.width,o.height)},startAngle:P(this._spec.startAngle)?Jt(this._spec.startAngle):Cm,pointToCoord:o=>{var l;return(l=this.angleAxisHelper)===null||l===void 0?void 0:l.pointToCoord(o)},coordToPoint:o=>this.angleAxisHelper.coordToPoint(o)},a=(i=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset)!==null&&i!==void 0?i:"clipIn";a==="clipIn"&&this._rootMark&&this._rootMark.setAnimationConfig(zt((s=L.getAnimationInKey("radarGroup"))===null||s===void 0?void 0:s(r,a),Wt("group",this._spec,this._markAttributeContext))),[[this._areaMark,"radar"],[this._lineMark,"radar"],[this._symbolMark,"radarSymbol"]].forEach(([o,l])=>{if(P(o)){const h=L.getAnimationInKey(l);o.setAnimationConfig(zt(h==null?void 0:h(r,a),Wt(o.name,this._spec,this._markAttributeContext)))}})}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._areaMark,this._symbolMark,this._lineMark]}getSeriesStyle(t){return e=>{var i,s,r,a;let o=(s=(i=this._seriesMark)===null||i===void 0?void 0:i.getAttribute(e,t))!==null&&s!==void 0?s:void 0;return e!=="fill"||o||(e="stroke",o=(a=(r=this._seriesMark)===null||r===void 0?void 0:r.getAttribute(e,t))!==null&&a!==void 0?a:void 0),e==="stroke"&&V(o)?o[0]:o}}}la.type=j.radar,la.mark=mO,la.transformerConstructor=Iu,$e(la,kS);const Ret=()=>{L.registerSeries(la.type,la),oS(),Km(),$m(),zr(),Eet(),Fu(),Dh()};class Bet extends un{updateTooltipSpec(){var t;super.updateTooltipSpec(),P((t=this.spec)===null||t===void 0?void 0:t.mark)&&(this.spec.mark.updateContent=(e,i,s)=>{const r=[],a=e.filter(o=>o.key==="children");return a.length>0&&a[0].value.forEach(o=>{let l=!0;for(const h in o)r.push({shapeType:"circle",hasShape:l,shapeColor:this.shapeColorCallback(i[0].datum[0]),shapeStroke:this.shapeStrokeCallback(i[0].datum[0]),key:h,value:o[h]+""}),l=!1}),e.concat(r)})}getDefaultTooltipPattern(t){return t==="mark"?{visible:!0,activeType:t,title:{key:"event info",value:"event info"},content:[{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:e=>e.type,value:e=>e.id},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"event_time",value:e=>gs.getInstance().timeFormat("%Y%m%d",e.event_time)},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"action_type",value:e=>e.action_type},{shapeType:"square",hasShape:!0,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"children",value:e=>e.children}],updateContent:(e,i,s)=>{const r=[];return e[3].value.forEach(a=>{let o=!0;for(const l in a)r.push({shapeType:"circle",hasShape:o,shapeColor:this.shapeColorCallback(i[0].datum[0]),shapeStroke:this.shapeStrokeCallback(i[0].datum[0]),key:l,value:a[l]+""}),o=!1}),e.concat(r)}}:null}}const Iet=(n,t)=>{var e;const i=!((e=n[0])===null||e===void 0)&&e.latestData?n[0].latestData:n||[],s=[];return i.forEach(r=>{const a={};for(const l in r)l!==t&&(a[l]=r[l]);const o=r[t];o==null||o.forEach(l=>{s.push(Object.assign({},a,l))})}),s},Oet={fill:"#bbb",fillOpacity:.2};class Ln extends as{constructor(){super(...arguments),this.type=j.dot}getSeriesGroupField(){return this._seriesField}setSeriesGroupField(t){P(t)&&(this._seriesGroupField=t)}getTitleField(){return this._titleField}setTitleField(t){P(t)&&(this._titleField=t)}getSubTitleField(){return this._subTitleField}setSubTitleField(t){P(t)&&(this._subTitleField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){P(t)&&(this._dotTypeField=t)}getHighLightSeriesGroup(){return this._highLightSeriesGroup}setHighLightSeriesGroup(t){P(t)&&(this._highLightSeriesGroup=t)}setGridBackground(t){P(t)&&(this._gridBackground=t)}initData(){var t;super.initData(),this._xDimensionStatisticsDomain=this.getRawData().latestData.map(e=>e[this._fieldY[0]]),Tt(this._option.dataSet,"objFlat",Iet),Tt(this._option.dataSet,"copyDataView",Dm),br(this._option.dataSet,"dataview",j_),(t=this.getViewData())===null||t===void 0||t.transform({type:"objFlat",options:"dots",level:Ss.dotObjFlat},!1)}setSeriesField(t){P(t)&&(this._seriesField=t,this.getMarksInType(["line","area"]).forEach(e=>{e.setFacet(this._seriesField)}))}getStatisticFields(){return[{key:this._fieldY[0],operations:["values"],customize:this._xDimensionStatisticsDomain}]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setSeriesGroupField(this._spec.seriesGroupField),this.setTitleField(this._spec.titleField),this.setSubTitleField(this._spec.subTitleField),this.setDotTypeField(this._spec.dotTypeField),this.setHighLightSeriesGroup(this._spec.highLightSeriesGroup),this.setGridBackground(vt(Oet,((t=this._spec.grid)===null||t===void 0?void 0:t.background)||{}))}initMark(){this._clipMark=this._createMark(Ln.mark.group),this._containerMark=this._createMark(Ln.mark.group,{parent:this._clipMark,dataView:this.getRawData()}),this._gridBackgroundMark=this._createMark(Ln.mark.gridBackground,{parent:this._containerMark,dataView:this.getRawData()}),this._gridMark=this._createMark(Ln.mark.grid,{parent:this._containerMark,dataView:this.getRawData()}),this._dotMark=this._createMark(Ln.mark.dot,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark}),this._titleMark=this._createMark(Ln.mark.title,{parent:this._containerMark,dataView:this.getRawData()}),this._subTitleMark=this._createMark(Ln.mark.subTitle,{parent:this._containerMark,dataView:this.getRawData()}),this._symbolMark=this._createMark(Ln.mark.symbol,{parent:this._containerMark,dataView:this.getRawData()})}initMarkStyle(){const t=this._clipMark;t&&(this.setMarkStyle(t,{x:-this._spec.leftAppendPadding,y:0,width:1e4,height:this._spec.clipHeight,clip:!0},"normal",tt.Series),t.setInteractive(!1));const e=this._containerMark;e&&(this.setMarkStyle(e,{x:this._spec.leftAppendPadding},"normal",tt.Series),e.setInteractive(!1));const i=this._gridBackgroundMark;i&&this.setMarkStyle(i,{x:this.getRegionRectLeft.bind(this),x1:this.getRegionRectRight.bind(this),y:this.dataToGridBackgroundPositionY.bind(this),y1:this.dataToGridBackgroundPositionY1.bind(this),fill:this._gridBackground.fill,fillOpacity:this.dataToGridBackgroundOpacity.bind(this)},"normal",tt.Series);const s=this._gridMark;s&&this.setMarkStyle(s,{stroke:this.getColorAttribute(),x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),x1:this.getRegionRectRight.bind(this),y1:this.dataToPositionY.bind(this)},"normal",tt.Series);const r=this._dotMark;r&&this.setMarkStyle(r,{x:this.dataToPositionX.bind(this),y:this.dataToPositionY.bind(this),fill:this.getDotColorAttribute(),fillOpacity:this.dataToOpacity.bind(this)},"normal",tt.Series);const a=this._titleMark;a&&this.setMarkStyle(a,{fill:this.getColorAttribute(),text:h=>h[this.getTitleField()],x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this)},"normal",tt.Series);const o=this._subTitleMark;o&&this.setMarkStyle(o,{fill:this.getColorAttribute(),text:h=>h[this.getSubTitleField()],x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this)},"normal",tt.Series);const l=this._symbolMark;l&&this.setMarkStyle(l,{x:this.getRegionRectLeft.bind(this),y:this.dataToPositionY.bind(this),fill:this.getColorAttribute()},"normal",tt.Series)}dataToGridBackgroundPositionY(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e,getBandwidth:i}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fieldY),{bandPosition:this._bandPosition})-i(0)/2}dataToGridBackgroundPositionY1(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e,getBandwidth:i}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fieldY),{bandPosition:this._bandPosition})+i(0)/2}dataToOpacity(t){var e,i,s,r;if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:a,getScale:o}=this._xAxisHelper;return a(this.getDatumPositionValues(t,this._fieldX),{bandPosition:this._bandPosition})o(0).range()[1]?0:(r=(s=(i=(e=this._theme)===null||e===void 0?void 0:e.dot)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.fillOpacity)!==null&&r!==void 0?r:1}dataToGridBackgroundOpacity(t){return t[this._seriesGroupField]===this._highLightSeriesGroup?this._gridBackground.fillOpacity:0}onLayoutEnd(t){var e,i;super.onLayoutEnd(t);const s=(i=(e=this._spec)===null||e===void 0?void 0:e.leftAppendPadding)!==null&&i!==void 0?i:0;this.setMarkStyle(this._clipMark,{width:this.getLayoutRect().width+s},"normal",tt.Series)}getDefaultColorDomain(){var t,e;return this._seriesGroupField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._seriesGroupField].values:this._seriesField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesField].values:[]}getColorAttribute(){var t,e,i;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(i=(e=this._seriesGroupField)!==null&&e!==void 0?e:this._seriesField)!==null&&i!==void 0?i:xn}}getDotColorScale(){var t,e,i;const s=this._dotTypeField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._dotTypeField].values:this._seriesGroupField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesGroupField].values:this._seriesField?(i=this.getViewDataStatistics())===null||i===void 0?void 0:i.latestData[this._seriesField].values:[],r=this._getDataScheme();return new Ru().domain(s).range(r)}getDotColorAttribute(){var t,e,i,s;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this.getDotColorScale(),field:(s=(i=(e=this._dotTypeField)!==null&&e!==void 0?e:this._seriesGroupField)!==null&&i!==void 0?i:this._seriesField)!==null&&s!==void 0?s:xn}}initTooltip(){this._tooltipHelper=new Bet(this),this._dotMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._dotMark)}onEvaluateEnd(t){super.onEvaluateEnd(t)}onMarkTreePositionUpdate(t){t.forEach(e=>{e.type==="group"?this.onMarkTreePositionUpdate(e.getMarks()):e.updateLayoutState()})}getDotData(){var t;return(t=this._dotMark)===null||t===void 0?void 0:t.getData()}_getDataIdKey(){}getStackValueField(){return null}getActiveMarks(){return[this._dotMark]}}Ln.type=j.dot,Ln.mark=kO;const Let=()=>{zr(),Lh(),jr(),wn(),L.registerSeries(Ln.type,Ln)};class Det extends un{getDefaultTooltipPattern(t){return t==="mark"?{visible:!0,activeType:t,title:{key:"link info",value:"link info"},content:[{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"time",value:e=>gs.getInstance().timeFormat("%Y%m%d %H:%M",e.from.split("_")[1])},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"type",value:e=>e.action_type},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"from",value:e=>e.from},{hasShape:!0,shapeType:"square",shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,key:"to",value:e=>e.to}]}:null}}const Fet=(n,t)=>{const{infoKey:e,fields:i,linkData:s,dotData:r}=t,{fromField:a,toField:o,xField:l,yField:h}=i(),d=s(),c=r(),u={};return c.forEach(p=>{const g={};for(const _ in p)_!==e&&(g[_]=p[_]);const f=p[e];f==null||f.forEach(_=>{u[_.node_name]=Object.assign({},g,_)})}),d.forEach(p=>{var g,f,_,m;p[a+"_xField"]=(g=u==null?void 0:u[p[a]])===null||g===void 0?void 0:g[l],p[a+"_yField"]=(f=u==null?void 0:u[p[a]])===null||f===void 0?void 0:f[h],p[o+"_xField"]=(_=u==null?void 0:u[p[o]])===null||_===void 0?void 0:_[l],p[o+"_yField"]=(m=u==null?void 0:u[p[o]])===null||m===void 0?void 0:m[h]}),d};class yr extends as{constructor(){super(...arguments),this.type=j.link}getFromField(){return this._fromField}setFromField(t){P(t)&&(this._fromField=t)}getToField(){return this._toField}setToField(t){P(t)&&(this._toField=t)}getDotTypeField(){return this._dotTypeField}setDotTypeField(t){P(t)&&(this._dotTypeField=t)}getDotSeriesSpec(){return this._dotSeriesSpec}setDotSeriesSpec(t){P(t)&&(this._dotSeriesSpec=t)}_getDotData(){const t=this._option.getChart().getSeriesInIndex([this._spec.dotSeriesIndex])[0];return t?t.getRawData().latestData:[]}initData(){var t;super.initData(),Tt(this._option.dataSet,"linkDotInfo",Fet),(t=this.getViewData())===null||t===void 0||t.transform({type:"linkDotInfo",options:{infoKey:"dots",fields:()=>({fromField:this._fromField,toField:this._toField,xField:this._dotSeriesSpec.xField,yField:this._dotSeriesSpec.yField}),linkData:()=>this._rawData.latestData,dotData:()=>this._getDotData()},level:Ss.linkDotInfo},!1)}setAttrFromSpec(){super.setAttrFromSpec(),this.setFromField(this._spec.fromField),this.setToField(this._spec.toField),this.setDotTypeField(this._spec.dotTypeField),this.setDotSeriesSpec(this._spec.dotSeriesSpec)}initMark(){this._clipMark=this._createMark(yr.mark.group),this._containerMark=this._createMark(yr.mark.group,{parent:this._clipMark}),this._linkMark=this._createMark(yr.mark.link,{skipBeforeLayouted:!1,parent:this._containerMark}),this._arrowMark=this._createMark(yr.mark.arrow,{skipBeforeLayouted:!1,isSeriesMark:!0,parent:this._containerMark})}initMarkStyle(){var t,e,i,s;const r=this._clipMark;r&&(this.setMarkStyle(r,{x:-this._spec.leftAppendPadding,y:0,width:1e4,height:this._spec.clipHeight,clip:!0},"normal",tt.Series),r.setInteractive(!1));const a=this._containerMark;a&&(this.setMarkStyle(a,{x:this._spec.leftAppendPadding,width:this.getLayoutRect().width},"normal",tt.Series),a.setInteractive(!1));const o=this._linkMark;o&&this.setMarkStyle(o,{stroke:this.getColorAttribute(),strokeOpacity:this.dataToOpacity.bind(this),x:this.dataToPositionXFrom.bind(this),y:this.dataToPositionYFrom.bind(this),x1:this.dataToPositionXTo.bind(this),y1:this.dataToPositionYTo.bind(this)},"normal",tt.Series);const l=this._arrowMark;if(l){const h=(s=(i=(e=(t=this._theme)===null||t===void 0?void 0:t.arrow)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:10;this.setMarkStyle(l,{x:this.dataToPositionXTo.bind(this),y:d=>this.dataToPositionArrowYTo(d,h),fill:this.getColorAttribute(),fillOpacity:this.dataToOpacity.bind(this),size:h,symbolType:d=>this.isPositionYFromHigher(d)?"triangleDown":"triangleUp"},"normal",tt.Series)}}afterInitMark(){super.afterInitMark()}dataToPositionXFrom(t){if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:e}=this._xAxisHelper;return e(this.getDatumPositionValues(t,this._fromField+"_xField"),{bandPosition:this._bandPosition})}dataToPositionYFrom(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._fromField+"_yField"))}dataToPositionXTo(t){if(!this._xAxisHelper)return Number.NaN;const{dataToPosition:e}=this._xAxisHelper;return e(this.getDatumPositionValues(t,this._toField+"_xField"),{bandPosition:this._bandPosition})}dataToPositionYTo(t){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:e}=this._yAxisHelper;return e(this.getDatumPositionValues(t,this._toField+"_yField"),{bandPosition:this._bandPosition})}dataToPositionArrowYTo(t,e){if(!this._yAxisHelper)return Number.NaN;const{dataToPosition:i}=this._yAxisHelper,s=this.isPositionYFromHigher(t)?-e/2:e/2;return i(this.getDatumPositionValues(t,this._toField+"_yField"),{bandPosition:this._bandPosition})+s}dataToOpacity(t){return this.isPositionXOuterRange(t,this._fromField+"_xField")||this.isPositionXOuterRange(t,this._toField+"_xField")||t[this._fromField]===t[this._toField]?0:1}isPositionYFromHigher(t){return this.dataToPositionYFrom(t)s(0).range()[1]}getDefaultColorDomain(){var t,e;return this._dotTypeField?(t=this.getViewDataStatistics())===null||t===void 0?void 0:t.latestData[this._dotTypeField].values:this._seriesField?(e=this.getViewDataStatistics())===null||e===void 0?void 0:e.latestData[this._seriesField].values:[]}getColorAttribute(){var t,e,i;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:(i=(e=this._dotTypeField)!==null&&e!==void 0?e:this._seriesField)!==null&&i!==void 0?i:xn}}initInteraction(){const t=[];this._linkMark&&t.push(this._linkMark),this._arrowMark&&t.push(this._arrowMark),this._parseInteractionConfig(t)}initTooltip(){this._tooltipHelper=new Det(this),this._linkMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark),this._arrowMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._arrowMark)}onMarkTreePositionUpdate(t){t.forEach(e=>{e.type==="group"?this.onMarkTreePositionUpdate(e.getMarks()):e.updateLayoutState()})}getDotInfoData(){var t,e;return(e=(t=this._linkMark)!==null&&t!==void 0?t:this._arrowMark)===null||e===void 0?void 0:e.getData()}getActiveMarks(){return[this._linkMark,this._arrowMark]}}yr.type=j.link,yr.mark=AO;const zet=()=>{Lh(),zr(),Mn(),Tn(),L.registerSeries(yr.type,yr)};class Fh extends Du{constructor(){super(...arguments),this._arcGroupMark=null,this._getAngleValueStart=t=>{const e=this._getAngleAxis(),{tickMask:i}=this._spec;if(i!=null&&i.forceAlign&&this._isTickMaskVisible(e)){const s=t[this.getStack()?An:$p],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=Jt(i.offsetAngle);let l;if(P(s)){const h=l1(r,c=>c.value-s),d=h>=r.length||s>r[h].value-a/2?Math.min(h,r.length-1):h>0?h-1:void 0;d!==void 0&&(l=this.angleAxisHelper.dataToPosition([r[d].value-a/2]))}return C(l)&&(l=this.angleAxisHelper.dataToPosition([r[0].value-a/2])),l+o}return this._getAngleValueStartWithoutMask(t)},this._getAngleValueEnd=t=>{const e=this._getAngleAxis(),{tickMask:i}=this._spec;if(i!=null&&i.forceAlign&&this._isTickMaskVisible(e)){const s=t[this.getStack()?qe:this._angleField[0]],r=this._getAngleAxisSubTickData(e),a=r[1].value-r[0].value,o=Jt(i.offsetAngle),l=l1(r,c=>c.value-s),h=l>=r.length||s>r[l].value-a/2?Math.min(l,r.length-1):l>0?l-1:void 0;let d;return d=h!==void 0?this.angleAxisHelper.dataToPosition([r[h].value+a/2]):this.angleAxisHelper.dataToPosition([r[0].value-a/2]),d+o}return this._getAngleValueEndWithoutMask(t)}}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec();const s=(t=this._option.globalInstance.getChart())===null||t===void 0?void 0:t.getSpec(),r=(e=this._spec.startAngle)!==null&&e!==void 0?e:s==null?void 0:s.startAngle;this._startAngle=P(r)?Jt(r):Cm;const a=(i=this._spec.endAngle)!==null&&i!==void 0?i:s==null?void 0:s.endAngle;this._endAngle=P(a)?Jt(a):Kx,this.setAngleField(this._spec.valueField||this._spec.angleField),this.setRadiusField(this._spec.categoryField||this._spec.radiusField),this._specAngleField=this._angleField.slice(),this._specRadiusField=this._radiusField.slice()}getStackGroupFields(){return this._radiusField}getStackValueField(){var t;return(t=this._angleField)===null||t===void 0?void 0:t[0]}getGroupFields(){return this._angleField}_convertMarkStyle(t){const e=super._convertMarkStyle(t);if(e.fill){const i=t.fill;(i==null?void 0:i.gradient)!=="conical"||P(i==null?void 0:i.startAngle)||P(i==null?void 0:i.endAngle)||(e.fill=Object.assign(Object.assign({},i),{startAngle:this._startAngle,endAngle:this._endAngle}))}return e}_getAngleValueStartWithoutMask(t){if(this.getStack()){const e=Zt(this.angleAxisHelper.dataToPosition([t[An]]),this.angleAxisHelper.getScale(0));if(z(e))return e}return this._startAngle}_getAngleValueEndWithoutMask(t){if(this.getStack()){const e=Zt(this.angleAxisHelper.dataToPosition([t[qe]]),this.angleAxisHelper.getScale(0));if(z(e))return e}return this.angleAxisHelper.dataToPosition([t[this._angleField[0]]])}getDimensionField(){return this._specRadiusField}getMeasureField(){return this._specAngleField}initMark(){this._initArcGroupMark()}initMarkStyle(){this._initArcGroupMarkStyle()}_initArcGroupMark(){return this._arcGroupMark=this._createMark(Fh.mark.group,{skipBeforeLayouted:!1}),this._arcGroupMark}_initArcGroupMarkStyle(){const t=this._arcGroupMark;t.setZIndex(this.layoutZIndex),t.created(),this.setMarkStyle(t,{x:0,y:0},"normal",tt.Series),t.setClip(()=>{const e=this._getAngleAxis();if(this._isTickMaskVisible(e)){const{tickMask:r}=this._spec,{angle:a,offsetAngle:o,style:l={}}=r,h=this._getAngleAxisSubTickData(e),{x:d,y:c}=this.angleAxisHelper.center(),u=this._computeLayoutRadius(),p=l;return h.map(({value:g})=>{const f=this.angleAxisHelper.dataToPosition([g])+Jt(o),_=Jt(a)/2;return Ex(Object.assign(Object.assign({},p),{x:d,y:c,startAngle:f-_,endAngle:f+_,innerRadius:u*this._innerRadius,outerRadius:u*this._outerRadius,fill:!0}))})}const{width:i,height:s}=this.getLayoutRect();return[wo({width:i,height:s,fill:!0})]}),this._arcGroupMark.setInteractive(!1)}_getAngleAxis(){if(!this.angleAxisHelper)return;const t=this.angleAxisHelper.getAxisId();return this._option.getChart().getAllComponents().find(e=>e.id===t)}_getAngleAxisTickData(t){var e;return(e=t==null?void 0:t.getTickData())===null||e===void 0?void 0:e.getLatestData()}_isTickMaskVisible(t){const e=this._getAngleAxisTickData(t),{tickMask:i}=this._spec;return i&&i.visible!==!1&&(e==null?void 0:e.length)>1}_getAngleAxisSubTickData(t){var e;const i=this._getAngleAxisTickData(t),s=[],{subTick:r={},tick:a={}}=(e=t==null?void 0:t.getSpec())!==null&&e!==void 0?e:{},{tickCount:o=4}=r,{alignWithLabel:l}=a;if((i==null?void 0:i.length)>=2){const h=i[1].value-i[0].value;for(let d=0;d({type:"growAngleIn",options:{overall:n.startAngle}}),Het={type:"fadeIn"};function Vet(n,t){return t==="fadeIn"?Het:jet(n)}const PD=()=>{L.registerAnimation("circularProgress",(n,t)=>({appear:Vet(n,t),enter:{type:"growAngleIn"},disappear:{type:"growAngleOut"}}))};class ED extends pn{constructor(){super(...arguments),this._supportStack=!0}}class ka extends Fh{constructor(){super(...arguments),this.type=j.circularProgress,this.transformerConstructor=ED,this._progressMark=null,this._trackMark=null,this._getRadiusValueStart=t=>{if(this.getGroupFields().length>1){const e=this.radiusAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()));if(z(e))return e}return this.radiusAxisHelper.dataToPosition([t[this._radiusField[0]]])},this._getRadiusValueEnd=t=>{var e,i;if(this.getGroupFields().length>1){const s=this.radiusAxisHelper.dataToPosition(this.getDatumPositionValues(t,this.getGroupFields()))+((i=(e=this.radiusAxisHelper).getBandwidth)===null||i===void 0?void 0:i.call(e,this._groups?this._groups.fields.length-1:0));if(z(s))return s}return this.radiusAxisHelper.dataToPosition([t[this._radiusField[0]]])+this.radiusAxisHelper.getScale(0).step()}}getStackGroupFields(){return this.getGroupFields()}getGroupFields(){return this._radiusField}initMark(){super.initMark(),this._initTrackMark(),this._initProgressMark()}initMarkStyle(){super.initMarkStyle(),this._initTrackMarkStyle(),this._initProgressMarkStyle()}_initProgressMark(){var t,e;return this._progressMark=this._createMark(ka.mark.progress,{parent:this._arcGroupMark,isSeriesMark:!0,customShape:(t=this._spec.progress)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.progress)===null||e===void 0?void 0:e.stateSort}),this._progressMark}_initProgressMarkStyle(){var t;const e=this._progressMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._getAngleValueStart,endAngle:this._getAngleValueEnd,innerRadius:this._getRadiusValueStart,outerRadius:this._getRadiusValueEnd,cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:200,forceShowCap:!0},"normal",tt.Series)}initInteraction(){const t=[];this._trackMark&&t.push(this._trackMark),this._progressMark&&t.push(this._progressMark),this._parseInteractionConfig(t)}initTooltip(){super.initTooltip(),this._progressMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark)}_initTrackMark(){var t,e;return this._trackMark=this._createMark(ka.mark.track,{parent:this._arcGroupMark,customShape:(t=this._spec.track)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.track)===null||e===void 0?void 0:e.stateSort}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&this.setMarkStyle(t,{visible:e=>{const i=this.angleAxisHelper.getScale(0).range(),s=Math.min(i[0],i[i.length-1]),r=this._getAngleValueStartWithoutMask(e);return Math.abs(r-s)<=1e-14},x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:()=>{const e=this.getStack()?An:this._angleField[0],i=this.angleAxisHelper.getScale(0).domain();return this._getAngleValueStart({[e]:i[0]})},endAngle:()=>{const e=this.getStack()?qe:this._angleField[0],i=this.angleAxisHelper.getScale(0).domain();return this._getAngleValueEnd({[e]:i[i.length-1]})},innerRadius:this._getRadiusValueStart,outerRadius:this._getRadiusValueEnd,cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:100},"normal",tt.Series)}initAnimation(){var t,e,i,s;const r=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._progressMark.setAnimationConfig(zt((i=L.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},r),Wt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(zt((s=L.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Wt("track",this._spec,this._markAttributeContext)))}getActiveMarks(){return[this._progressMark]}}ka.type=j.circularProgress,ka.mark=SO,ka.transformerConstructor=ED;const Wet=()=>{L.registerSeries(ka.type,ka),Qo(),PD(),Dr(),Fu(),Dh()};function RD(n){return()=>n.direction==="vertical"?{orient:"negative"}:{orient:"positive"}}const Net=n=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:RD(n)}),Get=n=>({type:n.direction==="horizontal"?"growWidthOut":"growHeightOut",options:RD(n)}),Uet={type:"fadeIn"};function $et(n,t){return t===!1?{}:t==="fadeIn"?Uet:Net(n)}const Yet=()=>{L.registerAnimation("linearProgress",(n,t)=>({appear:$et(n,t),enter:{type:"grow"},disappear:Get(n)}))};class Xet extends un{getDefaultTooltipPattern(t,e){const i=super.getDefaultTooltipPattern(t,e);switch(t){case"mark":case"group":return i;case"dimension":return i.visible=!1,i}return null}}class Ta extends as{constructor(){super(...arguments),this.type=j.linearProgress,this._progressMark=null,this._trackMark=null,this._progressGroupMark=null}initMark(){this._initProgressGroupMark(),this._initTrackMark(),this._initProgressMark()}initMarkStyle(){this._initProgressGroupMarkStyle(),this._initTrackMarkStyle(),this._initProgressMarkStyle()}_initProgressMark(){var t,e;return this._progressMark=this._createMark(Ta.mark.progress,{isSeriesMark:!0,parent:this._progressGroupMark,customShape:(t=this._spec.progress)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.progress)===null||e===void 0?void 0:e.stateSort}),this._progressMark}_initProgressMarkStyle(){var t,e,i,s,r,a,o,l;const h=this._progressMark;if(h)if(this._spec.direction==="vertical"){const d=(e=(t=this._spec.progress)===null||t===void 0?void 0:t.leftPadding)!==null&&e!==void 0?e:0,c=(s=(i=this._spec.progress)===null||i===void 0?void 0:i.rightPadding)!==null&&s!==void 0?s:0;this.setMarkStyle(h,{x:u=>{var p,g;return Zt(this.dataToPositionX(u),(g=(p=this._xAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._spec.bandWidth/2+d},y:u=>{var p,g;return Zt(this.dataToPositionY(u),(g=(p=this._yAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))},height:()=>{var u;return(u=this._yAxisHelper)===null||u===void 0?void 0:u.dataToPosition([0],{bandPosition:this._bandPosition})},width:this._spec.bandWidth-d-c,cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",tt.Series)}else{const d=(a=(r=this._spec.progress)===null||r===void 0?void 0:r.topPadding)!==null&&a!==void 0?a:0,c=(l=(o=this._spec.progress)===null||o===void 0?void 0:o.bottomPadding)!==null&&l!==void 0?l:0;this.setMarkStyle(h,{x:u=>{var p,g;return Zt(this.dataToPositionX(u),(g=(p=this._xAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._xAxisHelper.dataToPosition([1],{bandPosition:this._bandPosition})},y:u=>{var p,g;return Zt(this.dataToPositionY(u),(g=(p=this._yAxisHelper)===null||p===void 0?void 0:p.getScale)===null||g===void 0?void 0:g.call(p,0))-this._spec.bandWidth/2+d},height:this._spec.bandWidth-d-c,width:()=>{var u;return(u=this._xAxisHelper)===null||u===void 0?void 0:u.dataToPosition([1],{bandPosition:this._bandPosition})},cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute()},"normal",tt.Series)}}_initTrackMark(){var t,e;return this._trackMark=this._createMark(Ta.mark.track,{parent:this._progressGroupMark,customShape:(t=this._spec.track)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.track)===null||e===void 0?void 0:e.stateSort}),this._trackMark}_initTrackMarkStyle(){const t=this._trackMark;t&&(this._spec.direction==="vertical"?this.setMarkStyle(t,{x:e=>{var i,s;return Zt(this.dataToPositionX(e),(s=(i=this._xAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0))-this._spec.bandWidth/2},y:0,width:this._spec.bandWidth,height:()=>this._scaleY.range()[0],cornerRadius:this._spec.cornerRadius},"normal",tt.Series):this.setMarkStyle(t,{x:0,y:e=>{var i,s;return Zt(this.dataToPositionY(e),(s=(i=this._yAxisHelper)===null||i===void 0?void 0:i.getScale)===null||s===void 0?void 0:s.call(i,0))-this._spec.bandWidth/2},height:this._spec.bandWidth,width:()=>this._scaleX.range()[1],cornerRadius:this._spec.cornerRadius},"normal",tt.Series))}_initProgressGroupMark(){return this._progressGroupMark=this._createMark(Ta.mark.group,{skipBeforeLayouted:!1}),this._progressGroupMark}_initProgressGroupMarkStyle(){const t=this._progressGroupMark;t.setZIndex(this.layoutZIndex),t.created(),this.setMarkStyle(t,{clip:!0,x:0,y:0,path:()=>{var e;const i=[];return(e=this._rawData)===null||e===void 0||e.rawData.forEach((s,r)=>{var a,o,l,h;if(this._spec.direction==="vertical"){const d=Zt(this.dataToPositionX(s),(o=(a=this._xAxisHelper)===null||a===void 0?void 0:a.getScale)===null||o===void 0?void 0:o.call(a,0))-this._spec.bandWidth/2,c=this._scaleY.range()[0];i.push(wo({x:d,y:0,height:c,width:this._spec.bandWidth,cornerRadius:this._spec.cornerRadius,fill:!0}))}else{const d=Zt(this.dataToPositionY(s),(h=(l=this._yAxisHelper)===null||l===void 0?void 0:l.getScale)===null||h===void 0?void 0:h.call(l,0))-this._spec.bandWidth/2,c=this._scaleX.range()[1];i.push(wo({x:0,y:d,height:this._spec.bandWidth,width:c,cornerRadius:this._spec.cornerRadius,fill:!0}))}}),i}},"normal",tt.Series),this._progressGroupMark.setInteractive(!1)}initInteraction(){const t=[];this._trackMark&&t.push(this._trackMark),this._progressMark&&t.push(this._progressMark),this._parseInteractionConfig(t)}initAnimation(){var t,e,i,s;const r={direction:this.direction},a=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._progressMark.setAnimationConfig(zt((i=L.getAnimationInKey("linearProgress"))===null||i===void 0?void 0:i(r,a),Wt("progress",this._spec,this._markAttributeContext))),this._trackMark.setAnimationConfig(zt((s=L.getAnimationInKey("fadeInOut"))===null||s===void 0?void 0:s(),Wt("track",this._spec,this._markAttributeContext)))}initTooltip(){this._tooltipHelper=new Xet(this),this._progressMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark),this._trackMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._trackMark)}getActiveMarks(){return[this._progressMark]}}Ta.type=j.linearProgress,Ta.mark=wO;const Ket=()=>{jr(),Yet(),Dr(),L.registerSeries(Ta.type,Ta)},OC=[0],qet="hidden",LC=20,Zet=[20,40],Jet=[200,500],Qet="circle",tit={shrink:!1,enlarge:!1,fontSizeLimitMin:0},eit=!0,DC=1,iit=["triangleForward","triangle","diamond","square","star","cardioid","circle","pentagon","rect"],dv=`${yt}_WORD_CLOUD_WEIGHT`,FC=`${yt}_WORD_CLOUD_TEXT`;class bh extends Vo{constructor(){super(...arguments),this._fontSizeRange=[LC,LC],this._isWordCloudShape=!1,this._dataChange=!0,this.getWordColor=t=>t.isFillingWord?(this._fillingColorCallback&&!this._dataChange||(this._fillingColorCallback=this._wordCloudShapeConfig.fillingColorHexField?e=>e[this._wordCloudShapeConfig.fillingColorHexField]:this.initColorCallback(this._wordCloudShapeConfig.fillingSeriesField,!0)),this._fillingColorCallback(t)):(this._keyWordColorCallback&&!this._dataChange||(this._keyWordColorCallback=this._colorHexField?e=>e[this._colorHexField]:this.initColorCallback(this._seriesField,!1)),this._keyWordColorCallback(t))}setValueField(t){P(t)&&(this._valueField=t)}setFontSizeRange(t){P(t)?this._fontSizeRange=t:this._fontSizeRange=Zet}setAttrFromSpec(){var t,e,i,s,r,a,o,l,h,d;super.setAttrFromSpec(),this._padding=this._option.getChart().padding,this._nameField=this._spec.nameField,this._fontFamilyField=this._spec.fontFamilyField,this._fontWeightField=this._spec.fontWeightField,this._fontStyleField=this._spec.fontStyleField,this._colorHexField=this._spec.colorHexField,this._colorMode=(t=this._spec.colorMode)!==null&&t!==void 0?t:"ordinal",this._colorList=this._spec.colorList,this.setValueField(this._spec.valueField),this._fontWeightRange=(e=this._spec.fontWeightRange)!==null&&e!==void 0?e:Jet,this._rotateAngles=(i=this._spec.rotateAngles)!==null&&i!==void 0?i:OC,this.setFontSizeRange(this._spec.fontSizeRange),this._maskShape=(s=this._spec.maskShape)!==null&&s!==void 0?s:Qet,this._keepAspect=this._spec.keepAspect,this._random=(r=this._spec.random)!==null&&r!==void 0?r:eit,this._fontPadding=(o=(a=this._spec.word)===null||a===void 0?void 0:a.padding)!==null&&o!==void 0?o:DC,this._textField=!((l=this._spec.word)===null||l===void 0)&&l.formatMethod?FC:this._nameField,this._wordCloudConfig=Object.assign({drawOutOfBound:qet,layoutMode:"default",zoomToFit:tit},this._spec.wordCloudConfig),this._wordCloudShapeConfig=Object.assign({fillingSeriesField:this.getSeriesField(),fillingRotateAngles:OC,layoutMode:"default"},this._spec.wordCloudShapeConfig),this._fillingFontPadding=(d=(h=this._spec.fillingWord)===null||h===void 0?void 0:h.padding)!==null&&d!==void 0?d:DC,this._isWordCloudShape=!iit.includes(this._maskShape),this._defaultFontFamily=this._option.getTheme().fontFamily}initData(){var t,e;super.initData(),(e=(t=this.getViewData())===null||t===void 0?void 0:t.target)===null||e===void 0||e.addListener("change",()=>{this._dataChange=!0,this.compile()})}initMark(){this._wordMark=this._createMark(bh.mark.word,{key:Qn,defaultMorphElementKey:this._seriesField,groupKey:this._seriesField,isSeriesMark:!0})}initMarkStyle(){var t,e,i;const s=this._wordMark,r=(t=this._spec.word)!==null&&t!==void 0?t:{};s&&(this.setMarkStyle(s,{fill:this.getWordColor,text:a=>a[this._textField],x:a=>a.x,y:a=>a.y,fontFamily:a=>a.fontFamily,fontSize:a=>a.fontSize,fontStyle:a=>a.fontStyle,fontWeight:a=>a.fontWeight,angle:a=>a.angle,visible:a=>a.visible},"normal",tt.Series),this.setMarkStyle(s,{fontFamily:(i=(e=r.style)===null||e===void 0?void 0:e.fontFamily)!==null&&i!==void 0?i:this._defaultFontFamily},"normal",tt.User_Mark))}initTooltip(){super.initTooltip(),this._wordMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._wordMark)}initAnimation(){var t,e;const i=this._wordMark;if(i){const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,r={animationConfig:()=>{var a,o;return(o=(a=i.getAnimationConfig())===null||a===void 0?void 0:a.appear)===null||o===void 0?void 0:o[0]}};i.setAnimationConfig(zt(L.getAnimationInKey("wordCloud")(r,s),Wt("word",this._spec,this._markAttributeContext)))}}getWordOrdinalColorScale(t,e){var i,s,r,a,o;const l=e?this._wordCloudShapeConfig.fillingColorList:this._colorList,h=t?(i=this.getViewData())===null||i===void 0?void 0:i.latestData.map(c=>c[t]):[],d=(r=l??((s=this._option.globalScale.getScale("color"))===null||s===void 0?void 0:s.range()))!==null&&r!==void 0?r:this._getDataScheme();return(o=(a=new Ru().domain(h)).range)===null||o===void 0?void 0:o.call(a,d)}initColorCallback(t,e){var i;if(this._colorMode==="ordinal"){const r=this.getWordOrdinalColorScale(t,e);return a=>{var o;return r.scale(a[(o=this._seriesField)!==null&&o!==void 0?o:xn])}}let s=(i=e?this._colorList:this._wordCloudShapeConfig.fillingColorList)!==null&&i!==void 0?i:this._option.globalScale.getScale("color").range();return s.length===1&&(s=[s[0],s[0]]),r=>s[0]}compile(){var t,e;super.compile();const{width:i,height:s}=this._region.getLayoutRect();if(!z(i)||!z(s)||!(s>0&&i>0))return;const r=[],a=this._valueField,o=new is,l=this._fontWeightRange;if(a){const[d,c]=Fy((t=this.getViewData())===null||t===void 0?void 0:t.latestData.map(u=>+u[a]));o.domain([d,c],!0).range(l),r.push({type:"map",as:dv,callback:u=>d===c?o.scale(c):o.scale(u[a])})}const h=(e=this._spec.word)!==null&&e!==void 0?e:{};h.formatMethod&&r.push({type:"map",as:FC,callback:h.formatMethod}),this._isWordCloudShape?r.push(Object.assign({type:"wordcloudShape"},this._wordCloudShapeTransformOption())):r.push(Object.assign({type:"wordcloud"},this._wordCloudTransformOption())),this._wordMark.getProduct().transform(r)}_wordCloudTransformOption(){var t,e,i,s,r;const{width:a,height:o}=this._region.getLayoutRect(),l=(e=(t=this._spec.word)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};return{layoutType:zn(this._option.mode)?this._wordCloudConfig.layoutMode:"fast",size:[a,o],shape:this._maskShape,dataIndexKey:Qn,text:{field:this._textField},fontSize:this._valueField?{field:this._valueField}:this._fontSizeRange[0],fontSizeRange:this._fontSizeRange==="auto"?null:this._fontSizeRange,padding:this._fontPadding,rotate:this._rotateAngles,fontFamily:(s=(i=this._fontFamilyField)!==null&&i!==void 0?i:l.fontFamily)!==null&&s!==void 0?s:this._defaultFontFamily,fontWeight:this._fontWeightField?{field:this._fontWeightField}:this._valueField?{field:dv}:null,fontStyle:(r=this._fontStyleField)!==null&&r!==void 0?r:l.fontStyle,randomVisible:this._random,clip:this._wordCloudConfig.drawOutOfBound==="clip",shrink:this._wordCloudConfig.zoomToFit.shrink,enlarge:this._wordCloudConfig.zoomToFit.enlarge,minFontSize:this._wordCloudConfig.zoomToFit.fontSizeLimitMin,progressiveTime:this._wordCloudConfig.progressiveTime,progressiveStep:this._wordCloudConfig.progressiveStep}}_wordCloudShapeTransformOption(){var t,e,i,s,r,a,o,l,h,d;const{width:c,height:u}=this._region.getLayoutRect(),p=(e=(t=this._spec.word)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{},g=(i=this._wordCloudShapeConfig)!==null&&i!==void 0?i:{},f=this._wordCloudShapeConfig.fillingRotateAngles;return{dataIndexKey:Qn,size:[c,u],shape:this._maskShape,text:{field:this._textField},fontSize:this._valueField?{field:this._valueField}:this._fontSizeRange[0],fontSizeRange:this._fontSizeRange==="auto"?null:this._fontSizeRange,padding:this._fontPadding,rotateList:this._rotateAngles,fontFamily:(r=(s=this._fontFamilyField)!==null&&s!==void 0?s:p.fontFamily)!==null&&r!==void 0?r:this._defaultFontFamily,fontWeight:this._fontWeightField?{field:this._fontWeightField}:this._valueField?{field:dv}:null,fontStyle:(a=this._fontStyleField)!==null&&a!==void 0?a:p.fontStyle,fillingFontFamily:(l=(o=g.fillingFontFamilyField)!==null&&o!==void 0?o:p.fontFamily)!==null&&l!==void 0?l:this._defaultFontFamily,fillingPadding:this._fillingFontPadding,fillingFontStyle:(h=g.fillingFontStyleField)!==null&&h!==void 0?h:p.fontStyle,fillingFontWeight:(d=g.fillingFontWeightField)!==null&&d!==void 0?d:p.fontWeight,fillingRotateList:f,fillingTimes:g.fillingTimes,fillingXStep:g.fillingXStep,fillingYStep:g.fillingYStep,fillingXRatioStep:g.fillingXRatioStep,fillingYRatioStep:g.fillingYRatioStep,fillingInitialOpacity:g.fillingInitialOpacity,fillingDeltaOpacity:g.fillingDeltaOpacity,fillingInitialFontSize:g.fillingInitialFontSize,fillingDeltaFontSize:g.fillingDeltaFontSize,ratio:g.ratio,fillingRatio:g.fillingRatio,removeWhiteBorder:g.removeWhiteBorder,textLayoutTimes:g.textLayoutTimes,fontSizeShrinkFactor:g.fontSizeShrinkFactor,stepFactor:g.stepFactor,layoutMode:g.layoutMode,importantWordCount:g.importantWordCount,globalShinkLimit:g.globalShinkLimit,fontSizeEnlargeFactor:g.fontSizeEnlargeFactor,fillingDeltaFontSizeFactor:g.fillingDeltaFontSizeFactor}}getStatisticFields(){const t=[];return t.push({key:this._nameField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}dataToPosition(t){return null}dataToPositionX(t){return null}dataToPositionY(t){return null}dataToPositionZ(t){return null}valueToPosition(t,e){return null}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}onLayoutEnd(t){super.onLayoutEnd(t),this.compile(),this._dataChange=!1}getActiveMarks(){return[this._wordMark]}reInit(){super.reInit(),this._keyWordColorCallback&&(this._keyWordColorCallback=null),this._fillingColorCallback&&(this._fillingColorCallback=null)}}bh.mark=Cb;const nit=n=>({custom:Yj,customParameters:(t,e)=>n,easing:"linear",loop:1/0,duration:6e3});function sit(n,t,e){return n*e({channel:{fontSize:{from:0}},duration:200,delay:(t,e,i)=>{const s=n.animationConfig(),r=(s==null?void 0:s.duration)||200,a=(s==null?void 0:s.totalTime)||aa.appear.duration,o=i.VGRAMMAR_ANIMATION_PARAMETERS.elementCount;return i.VGRAMMAR_ANIMATION_PARAMETERS.elementIndex*sit(r,a,o)}});function ait(n,t){return t===!1?{}:t==="fadeIn"?{type:"fadeIn"}:rit(n)}const BD=()=>{L.registerAnimation("wordCloud",(n,t)=>({appear:ait(n,t),enter:{type:"fadeIn"},exit:{type:"fadeOut"},disappear:{type:"fadeOut"}}))},ID=()=>{L.registerAnimation("wordCloud3d",n=>({appear:nit(n)}))},cv={triangleForward:dit,triangleUpright:zC,triangle:zC,diamond:oit,square:hit,star:lit,cardioid:cit,circle:uit,pentagon:pit};function oit(){return function(n){const t=n%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))}}function lit(){return function(n){const t=(n+.955)%(2*Math.PI/10);return(n+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}function hit(){return function(n){return Math.min(1/Math.abs(Math.cos(n)),1/Math.abs(Math.sin(n)))}}function zC(){return function(n){const t=(n+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function dit(){return function(n){const t=n%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))}}function cit(){return function(n){return 1-Math.sin(n)}}function uit(){return function(){return 1}}function pit(){return function(n){const t=(n+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))}}function OD(n,t){const e=t[0],i=t[1];let s=1;const r=[t[0]>>1,t[1]>>1];switch(n){case"cardioid":r[1]=~~(i/2.7*.6),s=Math.floor(Math.min(e/2.3,i/2.6));break;case"triangleForward":s=i/Math.sqrt(.75)>e?Math.floor(e/2):Math.floor(i/(2*Math.sqrt(.75)));break;case"triangle":case"triangleUpright":r[1]=~~(i/1.5),s=Math.floor(Math.min(i/1.5,e/2));break;case"rect":s=Math.floor(Math.max(i/2,e/2));break;default:s=Math.floor(Math.min(e/2,i/2))}return{maxRadius:s,center:r}}const git=n=>cv[n]?cv[n]():cv.circle(),jC=(n,t)=>"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-n)+n).toFixed()+"%)";function Za(n){return G(n)?n:function(){return n}}class zh{constructor(t){var e,i;switch(this.options=Y({},zh.defaultOptions,t),G(this.options.shape)?this.shape=this.options.shape:this.shape=git(this.options.shape),this.getText=(e=Za(this.options.text))!==null&&e!==void 0?e:s=>s,this.getTextFontWeight=Za(this.options.fontWeight),this.getTextFontSize=Za(this.options.fontSize),this.getTextFontStyle=Za(this.options.fontStyle),this.getTextFontFamily=Za(this.options.fontFamily),this.outputCallback=(i=this.options.outputCallback)!==null&&i!==void 0?i:s=>s,this.options.color){case"random-dark":this.getTextColor=()=>jC(10,50);break;case"random-light":this.getTextColor=()=>jC(50,90);break;default:this.getTextColor=Za(this.options.color)}if(C(this.options.rotate))if(this.options.useRandomRotate){const s=Math.abs(this.options.maxRotation-this.options.minRotation),r=Math.abs(Math.floor(this.options.rotationSteps)),a=Math.min(this.options.maxRotation,this.options.minRotation);this.getTextRotate=()=>this.options.rotateRatio===0||Math.random()>this.options.rotateRatio?0:s===0?a:r>0?a+Math.floor(Math.random()*r)*s/(r-1):a+Math.random()*s}else this.getTextRotate=()=>0;else this.getTextRotate=G(this.options.rotate)?s=>{var r;return Jt((r=this.options.rotate(s))!==null&&r!==void 0?r:0)}:(s,r)=>{const a=H(this.options.rotate),o=this.options.random?Math.random():_F(r);return Jt(a[Math.floor(o*a.length)])}}exceedTime(){var t;return this.options.progressiveStep>0?this.progressiveIndex>=(((t=this.currentStepIndex)!==null&&t!==void 0?t:0)+1)*this.options.progressiveStep:this.options.progressiveTime>0&&new Date().getTime()-this.escapeTime>this.options.progressiveTime}progressiveRun(){var t;if(this.options.progressiveStep>0?this.currentStepIndex=((t=this.currentStepIndex)!==null&&t!==void 0?t:0)+1:this.options.progressiveTime>0&&(this.escapeTime=Date.now()),this.data&&this.progressiveIndex&&this.progressiveIndex0?this.currentStepIndex=0:this.options.progressiveTime>0&&(this.escapeTime=Date.now()),this.progressiveResult=[]}output(){return this.result?this.outputCallback(this.result):null}progressiveOutput(){return this.progressiveResult?this.outputCallback(this.progressiveResult):null}unfinished(){return this.data&&this.data.length&&!C(this.progressiveIndex)&&this.progressiveIndex[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}function _it(n){const t=4*n[0]/n[1];let e=0,i=0;return s=>{const r=s<0?-1:1;switch(Math.sqrt(1+4*r*s)-r&3){case 0:e+=t;break;case 1:i+=4;break;case 2:e-=t;break;default:i-=4}return[e,i]}}class Xl extends zh{constructor(t){var e;super(Y({},Xl.defaultOptions,t)),this.cw=64,this.ch=2048,this._size=[256,256],this._isBoardExpandCompleted=!1,this._placeStatus=0,this._tTemp=null,this._dtTemp=null,this._dy=0,this.cacheMap=new Map,this.options.minFontSize<=Xl.defaultOptions.minFontSize&&(this.options.minFontSize=Xl.defaultOptions.minFontSize),this.spiral=at(this.options.spiral)?(e=HC[this.options.spiral])!==null&&e!==void 0?e:HC.archimedean:this.options.spiral,this.random=this.options.random?Math.random:()=>1,this.getTextPadding=Za(this.options.padding)}zoomRatio(){return this._originSize[0]/this._size[0]}dy(){return this._dy}layoutWord(t){const e=this.data[t];if((""+e.text).trim()==="")return!0;const{maxRadius:i,center:s}=OD(this.options.shape,this._size);if(e.x=s[0],e.y=s[1],mit(this.contextAndRatio,e,this.data,t,this.cw,this.ch),this._placeStatus=0,e.hasText&&this.place(this._board,e,this._bounds,i))return this.result.push(e),this._bounds?yit(this._bounds,e):this._bounds=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=this._size[0]>>1,e.y-=this._size[1]>>1,this._tTemp=null,this._dtTemp=null,!0;if(this.updateBoardExpandStatus(e.fontSize),e.hasText&&this.shouldShrinkContinue()){if(this._placeStatus===1){const r=e.fontSize*this._originSize[0]/this.options.minFontSize,a=Math.max(e.width,e.height);if(a<=r)this.expandBoard(this._board,this._bounds,a/this._size[0]);else{if(!this.options.clip)return!0;this.expandBoard(this._board,this._bounds,r/this._size[0])}}else this._placeStatus,this.expandBoard(this._board,this._bounds);return this.updateBoardExpandStatus(e.fontSize),!1}return this._tTemp=null,this._dtTemp=null,!0}layout(t,e){this.initProgressive(),this.result=[],this._size=[e.width,e.height],this.clearCache(),this._originSize=[...this._size];const i=this.getContext(Rt.createCanvas({width:1,height:1}));this.contextAndRatio=i,this._board=new Array((this._size[0]>>5)*this._size[1]).fill(0),this._bounds=null;const s=t.length;let r=0;this.result=[];const a=t.map((l,h)=>({text:this.getText(l),fontFamily:this.getTextFontFamily(l),fontStyle:this.getTextFontStyle(l),fontWeight:this.getTextFontWeight(l),angle:this.getTextRotate(l,h),fontSize:~~this.getTextFontSize(l),padding:this.getTextPadding(l),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:l,x:0,y:0,width:0,height:0})).sort(function(l,h){return h.fontSize-l.fontSize});this.data=a;let o=0;for(;r=2?(r++,o=0):o++,this.progressiveIndex=r,!this.exceedTime()););if(!this.options.clip&&this.options.enlarge&&this._bounds&&this.shrinkBoard(this._bounds),this._bounds&&["cardioid","triangle","triangle-upright"].includes(this.options.shape)){const l=(this._bounds[0].y+this._bounds[1].y)/2;this._dy=-(l-this._size[1]/2)}return this.result}formatTagItem(t){const e=this._size,i=this.zoomRatio(),s=this.dy(),r=e[0]>>1,a=e[1]>>1,o=t.length,l=[];let h,d;for(let c=0;c=this._size[0]||i.y>=this._size[1])return;const s=Math.min(e.x,this._size[0]-i.x),r=Math.min(e.y,this._size[1]-i.y),a=2*Math.min(s/this._size[0],r/this._size[1]);this._size=this._size.map(o=>o*(1-a))}expandBoard(t,e,i){const s=this._size[0]*(i||1.1)-this._size[0]>>5;let r=2*s>2?s:2;r%2!=0&&r++;let a=Math.ceil(this._size[1]*(r<<5)/this._size[0]);a%2!=0&&a++;const o=this._size[0],l=this._size[1],h=new Array(r).fill(0),d=new Array(a/2*(r+(o>>5))).fill(0);this.insertZerosToArray(t,l*(o>>5),d.length+r/2);for(let c=l-1;c>0;c--)this.insertZerosToArray(t,c*(o>>5),h.length);this.insertZerosToArray(t,0,d.length+r/2),this._size=[o+(r<<5),l+a],e&&(e[0].x+=(r<<5)/2,e[0].y+=a/2,e[1].x+=(r<<5)/2,e[1].y+=a/2)}insertZerosToArray(t,e,i){const s=Math.floor(i/6e4),r=i%6e4;for(let a=0;a>2);t.width=(this.cw<<5)/i,t.height=this.ch/i;const s=t.getContext("2d");return s.fillStyle=s.strokeStyle="red",s.textAlign="center",{context:s,ratio:i,canvas:t}}place(t,e,i,s){let r=!1;if(this.shouldShrinkContinue()&&(e.width>this._size[0]||e.height>this._size[1]))return this._placeStatus=1,!1;const a=this.random()<.5?1:-1;if(!this.shouldShrinkContinue()&&this.isSizeLargerThanMax(e,a))return null;const o=e.x,l=e.y,h=Math.sqrt(this._size[0]*this._size[0]+this._size[1]*this._size[1]),d=this.spiral(this._size);let c,u,p,g,f=-a;for(this._tTemp=null,this._dtTemp=null;c=d(f+=a);){u=c[0],p=c[1];const _=Math.sqrt(u**2+p**2);let m=Math.atan(p/u);u<0?m+=Math.PI:p<0&&(m=2*Math.PI+m);const y=this.shape(m);if(Math.min(Math.abs(u),Math.abs(p))>=h)break;if(_>=s)r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);else{if(e.x=o+~~(_*y*Math.cos(-m)),e.y=l+~~(_*y*Math.sin(-m)),g=e,this.options.clip)if(this.shouldShrinkContinue()){if(uv(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}}else{if(xit(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}uv(g,this._size)&&(g=Sit(g,this._size))}else if(uv(g,this._size)){r&&this._tTemp===null&&(this._tTemp=f,this._dtTemp=a);continue}if(r=!0,(!i||bit(g,i))&&(!i||!vit(g,t,this._size))){const b=g.sprite,v=g.width>>5,x=this._size[0]>>5,S=g.x-(v<<4),k=127&S,A=32-k,T=g.y1-g.y0;let M,w=(g.y+g.y0)*x+(S>>5);for(let E=0;E>>k:0);w+=x}return e.sprite=null,g.sprite=null,!0}}}return this._tTemp!==null&&(this._placeStatus=3),!this.shouldShrinkContinue()&&this.setCache(g,a),!1}clearCache(){this.cacheMap.clear()}setCache(t,e){const i=`${t.angle}-${e}`,s=t.x1-t.x0,r=t.y1-t.y0;if(!this.cacheMap.has(i))return void this.cacheMap.set(i,{width:s,height:r});const{width:a,height:o}=this.cacheMap.get(i);(s=s&&o>=r}}function mit(n,t,e,i,s,r){if(t.sprite)return;const a=n.context,o=n.ratio;a.setTransform(o,0,0,o,0,0),a.clearRect(0,0,(s<<5)/o,r/o);let l=0,h=0,d=0;const c=e.length;let u,p,g,f,_;for(--i;++i>5<<5,g=~~Math.max(Math.abs(S+k),Math.abs(S-k))}else u=u+31>>5<<5;if(g>d&&(d=g),l+u>=s<<5&&(l=0,h+=d,d=0),h+g>=r)break;a.translate((l+(u>>1))/o,(h+(g>>1))/o),t.angle&&a.rotate(t.angle),a.fillText(t.text,0,0),t.padding&&(a.lineWidth=2*t.padding,a.strokeText(t.text,0,0)),a.restore(),t.width=u,t.height=g,t.xoff=l,t.yoff=h,t.x1=u>>1,t.y1=g>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,l+=u}const m=a.getImageData(0,0,(s<<5)/o,r/o).data,y=[];for(;--i>=0;){if(!(t=e[i]).hasText)continue;for(u=t.width,p=u>>5,g=t.y1-t.y0,f=0;f>5),S=m[(h+_)*(s<<5)+(l+f)<<2]?1<<31-f%32:0;y[x]|=S,b|=S}b?v=_:(t.y0++,g--,_--,h++)}t.y1=t.y0+v,t.sprite=y.slice(0,(t.y1-t.y0)*p)}}function vit(n,t,e){const i=e[0]>>5,s=n.sprite,r=n.width>>5,a=n.x-(r<<4),o=127&a,l=32-o,h=n.y1-n.y0;let d,c=(n.y+n.y0)*i+(a>>5);for(let u=0;u>>o:0))&t[c+p])return!0;c+=i}return!1}function yit(n,t){const e=n[0],i=n[1];t.x+t.x0i.x&&(i.x=t.x+t.x1),t.y+t.y1>i.y&&(i.y=t.y+t.y1)}function bit(n,t){return n.x+n.x1>t[0].x&&n.x+n.x0t[0].y&&n.y+n.y0n.x+n.x0>t[0]||n.y+n.y0>t[0]||n.x+n.x1<0||n.y+n.y1<0,uv=(n,t)=>n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1];function Sit(n,t){const e=n.sprite,i=n.y1-n.y0,s=n.width>>5;let r=0;const a=[],o=Math.max(-(n.y0+n.y),0),l=Math.min(i+(t[1]-(n.y1+n.y)),i),h=Math.max(-(n.x0+n.x),0)>>5,d=Math.min(s+(t[0]-(n.x1+n.x)>>5)+1,s);for(let f=0;f{e>=this.ngx||i>=this.ngy||e<0||i<0||(this.grid[e][i]=!1)},this.updateGrid=(e,i,s,r,a)=>{const o=a.occupied;let l=o.length;for(;l--;){const h=e+o[l][0],d=i+o[l][1];h>=this.ngx||d>=this.ngy||h<0||d<0||this.fillGridAt(h,d)}},this.gridSize=Math.max(Math.floor(this.options.gridSize),4)}getPointsAtRadius(t){if(this.pointsAtRadius[t])return this.pointsAtRadius[t];const e=8*t;let i=e;const s=[];for(t===0&&s.push([this.center[0],this.center[1],0]);i--;){const r=this.shape(i/e*2*Math.PI);s.push([this.center[0]+t*r*Math.cos(-i/e*2*Math.PI),this.center[1]+t*r*Math.sin(-i/e*2*Math.PI)*this.options.ellipticity,i/e*2*Math.PI])}return this.pointsAtRadius[t]=s,s}getTextInfo(t,e=1,i){var s;const r=this.options.clip?1:e,a=Math.max(Math.floor(this.getTextFontSize(t)*r),this.options.minFontSize);let o=this.getText(t)+"";if(this.options.clip&&(o=o.slice(0,Math.ceil(o.length*e))),!o)return null;const l=this.getTextFontWeight(t),h=this.getTextFontStyle(t),d=this.getTextRotate&&(s=this.getTextRotate(t,i))!==null&&s!==void 0?s:0,c=this.getTextFontFamily(t),u=document.createElement("canvas"),p=u.getContext("2d",{willReadFrequently:!0});p.font=h+" "+l+" "+a.toString(10)+"px "+c;const g=p.measureText(o).width,f=Math.max(a,p.measureText("m").width,p.measureText("W").width);let _=g+2*f,m=3*f;const y=Math.ceil(_/this.gridSize),b=Math.ceil(m/this.gridSize);_=y*this.gridSize,m=b*this.gridSize;const v=-g/2,x=.4*-f,S=Math.ceil((_*Math.abs(Math.sin(d))+m*Math.abs(Math.cos(d)))/this.gridSize),k=Math.ceil((_*Math.abs(Math.cos(d))+m*Math.abs(Math.sin(d)))/this.gridSize),A=k*this.gridSize,T=S*this.gridSize;u.setAttribute("width",""+A),u.setAttribute("height",""+T),p.scale(1,1),p.translate(A/2,T/2),p.rotate(-d),p.font=h+" "+l+" "+a.toString(10)+"px "+c,p.fillStyle="#000",p.textBaseline="middle",p.fillText(o,v,x);const M=p.getImageData(0,0,A,T).data;if(this.exceedTime())return null;const w=[];let E,R=k;const O=[S/2,k/2,S/2,k/2],B=(I,D,F)=>{let $=this.gridSize;for(;$--;){let K=this.gridSize;for(;K--;)if(M[4*((D*this.gridSize+$)*A+(I*this.gridSize+K))+3])return F.push([I,D]),IO[1]&&(O[1]=I),DO[2]&&(O[2]=D))}};for(;R--;)for(E=S;E--;)B(R,E,w);return{datum:t,occupied:w,bounds:O,gw:k,gh:S,fillTextOffsetX:v,fillTextOffsetY:x,fillTextWidth:g,fillTextHeight:f,fontSize:a,fontStyle:h,fontWeight:l,fontFamily:c,angle:d,text:o}}canFitText(t,e,i,s,r){let a=r.length;for(;a--;){const o=t+r[a][0],l=e+r[a][1];if(o>=this.ngx||l>=this.ngy||o<0||l<0){if(!this.options.drawOutOfBound)return!1}else if(!this.grid[o][l])return!1}return!0}layoutWord(t,e=1){const i=this.data[t],s=this.getTextInfo(i,e,t);if(!s||this.exceedTime())return!1;if(!this.options.drawOutOfBound&&(!this.options.shrink||s.fontSize<=this.options.minFontSize)&&!this.options.clip){const o=s.bounds;if(o[1]-o[3]+1>this.ngx||o[2]-o[0]+1>this.ngy)return!1}let r=this.maxRadius+1;const a=o=>{const l=Math.floor(o[0]-s.gw/2),h=Math.floor(o[1]-s.gh/2),d=s.gw,c=s.gh;return!!this.canFitText(l,h,d,c,s.occupied)&&(s.distance=this.maxRadius-r,s.theta=o[2],this.outputText(l,h,s),this.updateGrid(l,h,d,c,s),!0)};for(;r--;){let o=this.getPointsAtRadius(this.maxRadius-r);if(this.options.random&&(o=[].concat(o),PP(o)),o.some(a))return!0}return(this.options.clip||!!(this.options.shrink&&s.fontSize>this.options.minFontSize))&&this.layoutWord(t,.75*e)}outputText(t,e,i){const s=this.getTextColor(i),r={text:i.text,datum:i.datum,color:s,fontStyle:i.fontStyle,fontWeight:i.fontWeight,fontFamily:i.fontFamily,angle:i.angle,width:i.fillTextWidth,height:i.fillTextHeight,x:(t+i.gw/2)*this.gridSize,y:(e+i.gh/2)*this.gridSize+i.fillTextOffsetY+.5*i.fontSize,fontSize:i.fontSize};this.result.push(r),this.progressiveResult&&this.progressiveResult.push(r)}initGrid(t){let e;if(this.grid=[],t){let i=document.createElement("canvas").getContext("2d");i.fillStyle=this.options.backgroundColor,i.fillRect(0,0,1,1);let s=i.getImageData(0,0,1,1).data,r=t.getContext("2d").getImageData(0,0,this.ngx*this.gridSize,this.ngy*this.gridSize).data;const a=(l,h)=>{let d=this.gridSize;for(;d--;){let c=this.gridSize;for(;c--;)for(e=4;e--;)if(r[4*((h*this.gridSize+d)*this.ngx*this.gridSize+(l*this.gridSize+c))+e]!==s[e])return void(this.grid[l][h]=!1)}};let o=this.ngx;for(;o--;){this.grid[o]=[];let l=this.ngy;for(;l--;)a(o,l),this.grid[o][l]!==!1&&(this.grid[o][l]=!0)}r=i=s=void 0}else{let i=this.ngx;for(;i--;){this.grid[i]=[];let s=this.ngy;for(;s--;)this.grid[i][s]=!0}}}layout(t,e){this.initProgressive(),this.data=t,this.pointsAtRadius=[],this.ngx=Math.floor(e.width/this.gridSize),this.ngy=Math.floor(e.height/this.gridSize);const{center:i,maxRadius:s}=OD(this.options.shape,[e.width,e.height]);this.center=e.origin?[e.origin[0]/this.gridSize,e.origin[1]/this.gridSize]:[i[0]/this.gridSize,i[1]/this.gridSize],this.maxRadius=Math.floor(s/this.gridSize),this.initGrid(e.canvas),this.result=[];let r=0;for(;r0,this.aspectRatio=1}fit(t){for(let e=0,i=this.result.length;e.5?1:-1:t%2==0?1:-1),r=this.center[0]-o/2+s*h*Math.cos(i)*this.aspectRatio,a=this.center[1]-l/2+s*h*Math.sin(i),e.left=r,e.top=a,e.x=r+o/2,e.y=a+l/2,d=this.fit(e);return!!d&&!!(this.options.clip||e.left>=0&&e.left+e.width<=this.width&&e.top>=0&&e.top+e.height<=this.height)&&(this.result.push(e),!0)}layout(t,e){if(!(t!=null&&t.length))return[];this.initProgressive(),this.result=[],this.maxRadius=Math.sqrt(e.width*e.width+e.height*e.height)/2,this.center=[e.width/2,e.height/2],this.width=e.width,this.height=e.height,this.data=t.sort((s,r)=>this.getTextFontSize(r)-this.getTextFontSize(s));let i=0;for(;it.left+t.width||n.top>t.top+t.height)}Qm.defaultOptions={enlarge:!1};const kit={x:"x",y:"y",z:"z",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle"},Tit=(n,t)=>{var e,i,s,r,a,o;if(n.size&&(n.size[0]<=0||n.size[1]<=0))return Lt.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];const l=t,h=((e=n.size)!==null&&e!==void 0?e:[500,500]).slice();h[0]=Math.floor(h[0]),h[1]=Math.floor(h[1]);const d=n.fontFamily?Xa(n.fontFamily):"sans-serif",c=n.fontStyle?Xa(n.fontStyle):"normal",u=n.fontWeight?Xa(n.fontWeight):"normal",p=n.rotate?Xa(n.rotate):0,g=Xa(n.text),f=(i=n.spiral)!==null&&i!==void 0?i:"archimedean",_=n.padding?Xa(n.padding):1,m=(s=n.shape)!==null&&s!==void 0?s:"square",y=(r=n.shrink)!==null&&r!==void 0&&r,b=(a=n.enlarge)!==null&&a!==void 0&&a,v=(o=n.clip)!==null&&o!==void 0&&o,x=n.minFontSize,S=n.randomVisible,k=n.as||kit,A=n.depth_3d,T=n.postProjection;let M=n.fontSize?Xa(n.fontSize):14;const w=n.fontSizeRange;if(w&&!nt(M)){const O=M,B=Mit(wit(O,l),w);M=I=>B(O(I))}let E=Xl;n.layoutType==="fast"?E=Qm:n.layoutType==="grid"&&(E=LD);const R=new E({text:g,padding:_,spiral:f,shape:m,rotate:p,fontFamily:d,fontStyle:c,fontWeight:u,fontSize:M,shrink:y,clip:v,enlarge:b,minFontSize:x,random:S,progressiveStep:n.progressiveStep,progressiveTime:n.progressiveTime,outputCallback:O=>{const B=[];let I,D;for(let F=0,$=O.length;F<$;F++)D=O[F],I=D.datum,I[k.x]=D.x,I[k.y]=D.y,I[k.fontFamily]=D.fontFamily,I[k.fontSize]=D.fontSize,I[k.fontStyle]=D.fontStyle,I[k.fontWeight]=D.fontWeight,I[k.angle]=D.angle,T==="StereographicProjection"&&Cit(h,D,I,k,A),B.push(I);return B}});return R.layout(l,{width:h[0],height:h[1]}),n.progressiveStep>0||n.progressiveTime>0?{progressive:R}:R.output()},Xa=n=>at(n)||nt(n)||G(n)||V(n)?n:t=>t[n.field],pv=n=>n<0?-Math.sqrt(-n):Math.sqrt(n),Mit=(n,t)=>{if(n[0]===n[1])return a=>t[0];const e=pv(n[0]),i=pv(n[1]),s=Math.min(e,i),r=Math.max(e,i);return a=>(pv(a)-s)/(r-s)*(t[1]-t[0])+t[0]},wit=(n,t)=>{let e=1/0,i=-1/0;const s=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]};function Cit(n,t,e,i,s){const r=Math.max(n[0],n[1])/2,a=Pit(n[0],n[1],r,{x:r,y:r,z:s??r},t);e[i.x]=a.x,e[i.y]=a.y,e[i.z]=a.z}function Pit(n,t,e,i,s){const{x:r,y:a}=s,o=r/n*Math.PI*2;let l=Math.PI-a/t*Math.PI;return l+=(l{it.registerTransform("wordcloud",{transform:Tit,markPhase:"beforeJoin"},!0)};var a_;(function(n){n.BEFORE_WORDCLOUD_SHAPE_LAYOUT="beforeWordcloudShapeLayout",n.AFTER_WORDCLOUD_SHAPE_LAYOUT="afterWordcloudShapeLayout"})(a_||(a_={}));const Eit=(n,t)=>{if(t.length===1&&t[0]==="#537EF5")return!0;if(!Array.isArray(n)||!Array.isArray(t)||n.length!==t.length)return!1;for(let e=0;e{let n=-1;const t=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9];return()=>(n=(n+1)%t.length,t[n])},Bit=n=>/^[\u4e00-\u9fa5]+$/.test(n),FD=(n,t)=>{if(C(n))return 0;let e=0;for(const i of n)Bit(i)?e+=1:e+=.53;return e};function Iit(n){return n&&(TP(n)||MP(n)||n.startsWith("{var i;const s=Px({image:n}),r=(i=s.resources)===null||i===void 0?void 0:i.get(n);r&&r.state==="success"&&r.data?t(r.data):(s.successCallback=()=>{var a;if(s){const o=(a=s.resources)===null||a===void 0?void 0:a.get(n);o&&o.state==="success"&&o.data?t(o.data):e(new Error("image load failed"+n))}else e(new Error("image load failed"+n))},s.failCallback=()=>{Lt.getInstance().error("image 加载失败!",n)})}):null}function Oit(n){return typeof n=="function"?n:function(){return n}}function Lit(n){const t=Iit(n.shapeUrl);return t?t.then(e=>n&&n.removeWhiteBorder&&e?Fit(e,n.tempCanvas,n.tempCtx):e):null}function Dit(n,t){const{size:e,tempCanvas:i,tempCtx:s}=t,r=zit(n,e);i.width=e[0],i.height=e[1],s.clearRect(0,0,i.width,i.height),s.drawImage(n,r.x,r.y,r.width,r.height);const a=s.getImageData(0,0,e[0],e[1]),o=new Array(e[0]*e[1]).fill(0);let l=1;const h=[[0,1],[1,0],[-1,0],[0,-1]];let d=[];for(let w=0;w=e[1]?e[1]-1:B,I=I<0?0:I>=e[0]?e[0]-1:I,o[B*e[0]+I]!==0||o_(a,B,I)||(o[B*e[0]+I]=l,d.push([B,I]))}l++,d=[]}const c={},u={},p={},g={},f={},_={},m={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0,width:0,height:0};for(let w=0;wg[R][1]&&(g[R][1]=w),Eg[R][3]&&(g[R][3]=E),Em.x2&&(m.x2=E),wm.y2&&(m.y2=w)),u[R]=u[R]||0,u[R]++)}const y=[];for(const w in c){const E=c[w],R=~~(E.reduce(($,K)=>$+K[0],0)/E.length),O=~~(E.reduce(($,K)=>$+K[1],0)/E.length);p[w]=[R,O],y.push(...E);const[B,I,D,F]=g[w];f[w]=~~Math.max(Math.sqrt((R-D)**2+(O-B)**2),Math.sqrt((R-F)**2+(O-I)**2),Math.sqrt((R-D)**2+(O-I)**2),Math.sqrt((R-F)**2+(O-B)**2)),_[w]=(F-D)/(I-B)}const b=Object.keys(p).map(w=>({label:w-1,boundary:c[w],area:u[w],center:p[w],maxPoint:g[w],maxR:f[w],ratio:_[w]}));m.width=m.x2-m.x1+1,m.height=m.y2-m.y1+1;const v=~~(y.reduce((w,E)=>w+E[0],0)/y.length),x=~~(y.reduce((w,E)=>w+E[1],0)/y.length),S=~~Math.max(Math.sqrt((v-m.x1)**2+(x-m.y1)**2),Math.sqrt((v-m.x2)**2+(x-m.y2)**2),Math.sqrt((v-m.x1)**2+(x-m.y2)**2),Math.sqrt((v-m.x2)**2+(x-m.y1)**2)),k=m.width/m.height,A=Object.keys(u).reduce((w,E)=>w+u[E],0),T={regions:b,labels:o,labelNumber:l-1};return Object.assign(t,{segmentation:T,shapeConfig:r,shapeBounds:m,shapeMaxR:S,shapeRatio:k,shapeCenter:[v,x],shapeArea:A});function M(w,E){const R=[[0,1],[1,0],[-1,0],[0,-1]];if(w===0||E===0||w===e[1]-1||E===e[0]-1)return!0;for(let O=0;O<4;O++){let B=w+R[O][0],I=E+R[O][1];if(B=B<0?0:B>=e[1]?e[1]-1:B,I=I<0?0:I>=e[0]?e[0]-1:I,o[B*e[0]+I]===0)return!0}return!1}}function o_(n,t,e){const i=n.width;return n.data[t*i*4+4*e+3]===0||n.data[t*i*4+4*e+0]===255&&n.data[t*i*4+4*e+1]===255&&n.data[t*i*4+4*e+2]===255}function Fit(n,t,e){t.width=n.width,t.height=n.height,e.clearRect(0,0,t.width,t.height),e.drawImage(n,0,0);const i=t.width,s=e.getImageData(0,0,t.width,t.height);let r=0,a=s.height,o=0,l=s.width;for(;rr&&VC(s,i,a-1);)--a;for(;oo&&WC(s,i,l-1,r,a);)--l;const h=e.getImageData(o,r,l-o,a-r);return t.width=h.width,t.height=h.height,e.clearRect(0,0,t.width,t.height),e.putImageData(h,0,0),t}function VC(n,t,e){for(let i=0;it[1]&&(s=t[1]/i);const r=Math.floor(s*e),a=Math.floor(s*i);return{x:(t[0]-r)/2,y:(t[1]-a)/2,width:r,height:a,scale:s}}function jit(n,t){const{segmentation:{regions:e}}=t;let i=-1/0,s=0,r=0;e.forEach((h,d)=>{const c=h.area;c>i&&(i=c,r=d),s+=c});let a=0;e.forEach(h=>{const d=h.area,c=Math.ceil(d/s*n.length),u=d/i;h.words=[],h.regionNum=c,h.regionWeight=u,a+=c}),ah.regionNum);n.forEach(h=>{let d=0,c=0;h.regionIndex=-1;do{if(l[o]>0&&h.weight<=e[o].regionWeight){h.regionIndex=o,e[o].words.push(h),l[o]--,o=(o+1)%e.length;break}o=(o+1)%e.length,d++,c++,c>e.length+1&&(e.forEach(u=>{u.regionWeight+=.15}),c=0)}while(h.regionIndex===-1&&d<3*e.length);h.regionIndex===-1&&(h.regionIndex=r,e[r].words.push(h),l[r]--)}),e.forEach(h=>{h.words.sort((d,c)=>c.weight-d.weight)})}function Hit(n,t,e){const{size:i,stepFactor:s}=t,{segmentation:{regions:r},tempCtx:a,tempCanvas:o,boardSize:l,shapeCenter:h,shapeMaxR:d,shapeRatio:c}=e,u=IS(e);for(const p of r){const{words:g,center:f,maxR:_,ratio:m}=p;for(let y=0;y(f.hasPlaced||(f.hasText=!1,f.sprite=null,f.fontSize=Math.max(~~(f.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!f.hasPlaced));if(g.length===0)break;for(let f=0;fv&&(x=n.sort((S,k)=>k.weight-S.weight)[v].weight);for(let S=0;Sx&&b>r){const B=O.datum[Symbol.for("vGrammar_id")];B!==m&&(m=B,y=b),b*=_,n.forEach(I=>{I.hasText=!1,I.sprite=null,I.fontSize=I.fontSize*_}),f=g.slice(0),E=!0;break}if(!O.skip&&O.datum[Symbol.for("vGrammar_id")]===m){n.forEach(B=>{B.hasText=!1,B.sprite=null,B.fontSize=B.fontSize/b}),O.skip=!0,b=y,m=null,f=g.slice(0),E=!0;break}}}E&&(S=-1)}for(let S=0;S(A.hasPlaced||(A.hasText=!1,A.sprite=null,A.fontSize=Math.max(~~(A.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!A.hasPlaced));if(k.length===0)break;for(let A=0;A_&&(m=n.sort((x,S)=>S.weight-x.weight)[_-1].weight);let y=0,b=1,v=!1;for(let x=0;x=m&&y++,y>=_&&!v){b*=f,n.forEach(O=>{O.hasText=!1,O.sprite=null,O.fontSize=O.fontSize*f}),g=p.slice(0),w=!0,y=0;break}}else{if(R.weight>=m&&b>1){n.forEach(O=>{O.hasText=!1,O.sprite=null,O.fontSize=O.fontSize/f}),b/=f,v=!0,g=p.slice(0),w=!0;break}if(R.weight>=m)return zD(n,t,e)}}w&&(x=-1)}for(let x=0;x(k.hasPlaced||(k.hasText=!1,k.sprite=null,k.fontSize=Math.max(~~(k.fontSize*t.fontSizeShrinkFactor),t.minFontSize)),!k.hasPlaced));if(S.length===0)break;for(let k=0;k=e)break;if(t.x=~~(o+u),t.y=~~(l+p),!(t.x-y<0||t.x+b>s[0]||t.y-_<0||t.y+m>s[1]||HD(t,n,r)))return jD(t,n,r),!0}return!1}function jD(n,t,e){const{wordSize:i}=n,s=n.sprite,r=i[0]>>5,a=e[0]>>5,o=n.x-(r<<4),l=o%32,h=32-l,d=i[1];let c,u=(n.y-(i[1]>>1))*a+(o>>5);if(l===0)for(let p=0;p>>l:0);u+=a}}function HD(n,t,e){const{sprite:i,wordSize:s}=n,r=e[0]>>5,a=s[0]>>5,o=n.x-(a<<4),l=o%32,h=32-l,d=s[1];let c,u=(n.y-(s[1]>>1))*r+(o>>5);if(l===0)for(let p=0;p>>l:0))&t[u+g])return!0;u+=r}return!1}function Wit(n){return function(t){return[n*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function No(n,t,e,i){if(e[i].sprite||e[i].fontSize===0)return;const s=2048,r=Math.PI/180,a=e.length;n.width=s,n.height=2048,t.clearRect(0,0,s,2048),t.textAlign="center";let o,l,h=0,d=0,c=0,u=0;const p=i;for(--i;++i>5<<5,l=Math.ceil(l),l>c&&(c=l),h+o>=s&&(h=0,d+=c,c=l),d+l>=2048){if(d===0){m.hasText=!1;continue}break}d+l>=u&&(u=d+l),t.translate(h+(o>>1),d+(l>>1)),m.rotate!==0&&t.rotate(m.rotate*r),t.fillText(m.text,0,0),m.padding&&(t.lineWidth=2*m.padding,t.strokeText(m.text,0,0)),t.restore(),m.LT=[h,d],m.wordSize=[o,l],m.hasText=!0,h+=o}if(u===0)return;const g=t.getImageData(0,0,s,u).data;let f,_;for(;--i>=p;){const m=e[i];if(!m.hasText){m.bounds={dTop:1/0,dBottom:-1/0,dLeft:1/0,dRight:-1/0};break}const{LT:y=[0,0],wordSize:b}=m;[h,d]=y;const v=b[0]>>5,x=new Array(v*b[1]).fill(0);let[S,k,A,T]=[1/0,-1/0,1/0,-1/0];for(_=0;_0){const w=1<<31-f%32;x[v*_+(f>>5)]|=w,fT&&(T=f),M|=w}M&&(_k&&(k=_))}m.bounds={dTop:(b[1]>>1)-S,dBottom:k-(b[1]>>1),dLeft:(b[0]>>1)-A,dRight:T-(b[0]>>1)},m.sprite=x,delete m.LT}}function IS(n){const{segmentation:{labels:t},boardSize:e,size:i}=n,s=e[0]>>5,r=new Array(s*i[1]).fill(0);for(let a=0;a>5)]|=l}if(e[0]>i[0]){const a=(1<c?A-c:c,y),T=T>p?T-p:p;return M;function w(R,O){const B=n.map(Z=>{const{text:ht,color:J,fillingColor:N,hasPlaced:q,datum:X}=Z;return{x:0,y:0,weight:0,text:ht,fontFamily:h(X),fontStyle:o(X),fontWeight:l(X),fontSize:R,rotate:g[~~(k()*g.length)],padding:f(X),opacity:O,visible:!0,color:J,fillingColor:N,hasPlaced:q,datum:X}});E(B);let I=0;const{x1:D,y1:F,x2:$,y2:K}=v,[W,et]=[D+~~(k()*r*2),F+~~(k()*a*2)];for(let Z=et;Z<=K;Z+=a)for(let ht=W;ht<=$;ht+=r){No(S,x,B,I);const J=B[I];J.x=ht,J.y=Z;const{wordSize:N,bounds:q,hasPlaced:X}=J;if(!X||!q){++I===B.length&&(I=0,_&&E(B));continue}const{dTop:ot,dBottom:ut,dLeft:bt,dRight:lt}=q;J.x-bt<0||J.x+lt>i[0]||J.y-ot<0||J.y+ut>i[1]||J.hasText&&J.sprite&&!HD(J,m,b)&&(jD(J,m,b),M.push(Object.assign({},J)),++I===B.length&&(I=0,_&&E(B)))}}function E(R){return R.sort(()=>k()-.5)}}function Git(n,t,e){jit(n,e),t.layoutMode==="ensureMapping"?zD(n,t,e):t.layoutMode==="ensureMappingEnlarge"?Vit(n,t,e):Hit(n,t,e);const i=Nit(n,t,e),s=[],r=[];for(let a=0;aa.visible=!1),{fillingWords:i,successedWords:r,failedWords:s}}const Uit={x:"x",y:"y",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",angle:"angle",opacity:"opacity",visible:"visible",isFillingWord:"isFillingWord",color:"color"};class $it{constructor(t,e){this.progressiveResult=[],this.options=t,this.view=e}layout(t){this.data=t;const e=this.options,i={shapeUrl:e.shape,size:e.size,ratio:e.ratio||.8,tempCanvas:void 0,tempCtx:void 0,removeWhiteBorder:e.removeWhiteBorder||!1,boardSize:[0,0],random:!1,randomGenerator:void 0},s=Rt.createCanvas({width:e.size[0],height:e.size[1]}),r=s.getContext("2d");r.textAlign="center",r.textBaseline="middle",i.tempCanvas=s,i.tempCtx=r;const a=e.size[0]+31>>5<<5;i.boardSize=[a,e.size[1]],i.random?i.randomGenerator=Math.random:i.randomGenerator=Rit();const o=Lit(i);o?(this.segmentationInput=i,this.isImageFinished=!1,this.isLayoutFinished=!1,o.then(l=>{this.shapeImage=l,this.isImageFinished=!0}).catch(l=>{this.shapeImage=null,this.isImageFinished=!0})):(this.isImageFinished=!0,this.isLayoutFinished=!0)}unfinished(){return!this.isLayoutFinished}output(){return this.progressiveResult}progressiveRun(){this.isImageFinished&&!this.isLayoutFinished&&(this.shapeImage&&this.doLayout(),this.isLayoutFinished=!0)}progressiveOutput(){return this.progressiveResult}doLayout(){var t,e,i;const s=this.segmentationInput,r=Dit(this.shapeImage,s),a=this.options,o=this.data,l=a.colorMode||"ordinal",h={getText:Qi(a.text),getFontSize:Qi(a.fontSize),fontSizeRange:a.fontSizeRange,colorMode:l,getColor:a.colorField?Qi(a.colorField):Qi(a.text),getFillingColor:Qi(a.fillingColorField),colorList:a.colorList||(l==="ordinal"?["#2E62F1"]:["#537EF5","#2E62F1","#2358D8","#184FBF","#0C45A6","#013B8E"]),getColorHex:Qi(a.colorHexField),getFontFamily:Qi(a.fontFamily||"sans-serif"),rotateList:a.rotateList||[0],getPadding:Qi(a.padding||1),getFontStyle:Qi(a.fontStyle||"normal"),getFontWeight:Qi(a.fontWeight||"normal"),getFontOpacity:a.fontOpacity?Qi(a.fontOpacity):()=>1};Xit(o,h,r);const d={size:a.size,ratio:a.ratio||.8,shapeUrl:a.shape,random:a.random===void 0||a.random,textLayoutTimes:a.textLayoutTimes||3,removeWhiteBorder:a.removeWhiteBorder||!1,layoutMode:a.layoutMode||"default",fontSizeShrinkFactor:a.fontSizeShrinkFactor||.8,stepFactor:a.stepFactor||1,importantWordCount:a.importantWordCount||10,globalShinkLimit:a.globalShinkLimit||.2,fontSizeEnlargeFactor:a.fontSizeEnlargeFactor||1.5,fillingRatio:a.fillingRatio||.7,fillingTimes:a.fillingTimes||4,fillingXStep:a.fillingXRatioStep?Math.max(Math.floor(a.size[0]*a.fillingXRatioStep),1):a.fillingXStep||4,fillingYStep:a.fillingYRatioStep?Math.max(Math.floor(a.size[1]*a.fillingYRatioStep),1):a.fillingYStep||4,fillingInitialFontSize:a.fillingInitialFontSize,fillingDeltaFontSize:a.fillingDeltaFontSize,fillingInitialOpacity:a.fillingInitialOpacity||.8,fillingDeltaOpacity:a.fillingDeltaOpacity||.05,getFillingFontFamily:Qi(a.fillingFontFamily||"sans-serif"),getFillingFontStyle:Qi(a.fillingFontStyle||"normal"),getFillingFontWeight:Qi(a.fillingFontWeight||"normal"),getFillingPadding:Qi(a.fillingPadding||.4),fillingRotateList:a.fillingRotateList||[0,90],fillingDeltaFontSizeFactor:a.fillingDeltaFontSizeFactor||.2,fillingColorList:a.fillingColorList||["#537EF5"],sameColorList:!1,minInitFontSize:a.minInitFontSize||10,minFontSize:a.minFontSize||4,minFillFoontSize:a.minFillFoontSize||2},c=Eit(h.colorList,d.fillingColorList);d.sameColorList=c,Yit(o,h,d,a),Kit(o,h,d,r);const{getText:u,getFontFamily:p,getFontStyle:g,getFontWeight:f,getPadding:_,getColor:m,getFillingColor:y,getColorHex:b,fontSizeScale:v,colorScale:x,fillingColorScale:S,getFontOpacity:k,rotateList:A}=h,T=o.map(W=>{var et,Z;return{x:0,y:0,weight:0,text:u(W),fontFamily:p(W),fontWeight:f(W),fontStyle:g(W),rotate:A[~~(s.randomGenerator()*A.length)],fontSize:Math.max(d.minInitFontSize,~~v(W)),opacity:k(W),padding:_(W),color:b&&b(W)||x&&x(m(W))||"black",fillingColor:!y||((et=a.colorField)===null||et===void 0?void 0:et.field)===((Z=a.fillingColorField)===null||Z===void 0?void 0:Z.field)&&c?void 0:b&&b(W)||S&&S(y(W))||"black",datum:W,visible:!0,hasPlaced:!1}}),M=Ve(T.map(W=>W.fontSize));T.forEach(W=>W.weight=W.fontSize/M),T.sort((W,et)=>et.weight-W.weight);const{fillingWords:w,successedWords:E,failedWords:R}=Git(T,d,r),O=(e=(t=a.text)===null||t===void 0?void 0:t.field)!==null&&e!==void 0?e:"textKey",B=(i=a.dataIndexKey)!==null&&i!==void 0?i:"defaultDataIndexKey",I=a.as||Uit;let D,F;const $=[];for(let W=0;W{var Z,ht;const J={};J[I.x]=W.x,J[I.y]=W.y,J[I.fontFamily]=W.fontFamily,J[I.fontSize]=W.fontSize,J[I.fontStyle]=W.fontStyle,J[I.fontWeight]=W.fontWeight,J[I.angle]=Jt(W.rotate),J[I.opacity]=W.opacity,J[I.visible]=W.visible,J[I.isFillingWord]=!0,J[I.color]=y?((Z=a.colorField)===null||Z===void 0?void 0:Z.field)===((ht=a.fillingColorField)===null||ht===void 0?void 0:ht.field)&&c?W.color:W.fillingColor:d.fillingColorList[~~(s.randomGenerator()*d.fillingColorList.length)],J[O]=W.text,J[B]=`${W.text}_${et}_fillingWords`,K.push(J)}),this.view&&this.view.emit&&this.view.emit(a_.AFTER_WORDCLOUD_SHAPE_LAYOUT,{successedWords:E,failedWords:R}),this.progressiveResult=$.concat(K)}release(){this.segmentationInput=null,this.data=null,this.shapeImage=null,this.progressiveResult=null,this.options=null}}const Yit=(n,t,e,i)=>{var s,r,a,o;const{colorMode:l,getColor:h,getFillingColor:d}=t,{sameColorList:c}=e;let u,p,g=t.colorList,f=e.fillingColorList;if(l==="ordinal"){const _=n.map(m=>h(m));if(u=m=>new Po().domain(_).range(g).scale(m),d&&(((s=i.colorField)===null||s===void 0?void 0:s.field)!==((r=i.fillingColorField)===null||r===void 0?void 0:r.field)||!c)){const m=n.map(y=>d(y));p=y=>new Po().domain(m).range(f).scale(y)}}else{g.length===1&&(g=[g[0],g[0]]);const _=new is().domain(Vd(h,n)).range(g);if(u=m=>_.scale(m),d&&(((a=i.colorField)===null||a===void 0?void 0:a.field)!==((o=i.fillingColorField)===null||o===void 0?void 0:o.field)||!c)){f.length===1&&(f=[f[0],f[0]]);const m=new is().domain(Vd(d,n)).range(f);p=y=>m.scale(y)}}Object.assign(t,{colorScale:u,fillingColorScale:p})},Xit=(n,t,e)=>{let{fontSizeRange:i}=t;const{getFontSize:s,getText:r}=t;let a;if(s){if(s&&i){const o=new If().domain(Vd(s,n)).range(i);a=l=>o.scale(s(l))}else if(s&&G(s)&&!i){const[l,h]=Vd(s,n),d=n.map(p=>({text:r(p),value:s(p),weight:h===l?1:(s(p)-l)/(h-l)})),c=NC(d,e,!0);i=[~~(.5*c),~~c];const u=new If().domain(Vd(s,n)).range(i);a=p=>u.scale(s(p))}}else{const o=n.map(h=>({text:r(h)})),l=NC(o,e,!1);a=Oit(l)}Object.assign(t,{getFontSize:s,fontSizeRange:i,fontSizeScale:a})},NC=(n,t,e)=>{const i=t.shapeArea,s=t.ratio,r=t.segmentation.regions,a=Math.ceil(Math.sqrt(i)/12),o=n.reduce((h,d)=>{const c=FD(d.text);return c{const g=FD(s(p));return g>l?u:u+g},0)/n.length;let c;if(d===0)c=8;else{const u=.2*i.shapeArea;c=Math.sqrt(h*(u/d))}r=~~c,a=c*e.fillingDeltaFontSizeFactor,Object.assign(e,{fillingInitialFontSize:r,fillingDeltaFontSize:a})}}const Vd=(n,t)=>{let e=1/0,i=-1/0;const s=t.length;let r;for(let a=0;ai&&(i=r);return t.length===1&&e===i&&(e-=1e4),[e,i]},Qi=n=>n?typeof n=="string"||typeof n=="number"?()=>n:G(n)?n:t=>t[n.field]:null,qit=(n,t,e,i)=>{if(!n.size||C(n.size[0])||C(n.size[1])||n.size[0]<=0||n.size[1]<=0)return Lt.getInstance().info("Wordcloud size dimensions must be greater than 0"),[];if(n.size=[Math.ceil(n.size[0]),Math.ceil(n.size[1])],n.shape||uo("WordcloudShape shape must be specified."),n.text||uo("WordcloudShape text must be specified."),i!=null&&i.emit&&i.emit(a_.BEFORE_WORDCLOUD_SHAPE_LAYOUT),!t||t.length===0)return[];const s=new $it(n,i);return s.layout(t),s.unfinished()?{progressive:s}:s.output()},VD=()=>{it.registerTransform("wordcloudShape",{transform:qit,markPhase:"beforeJoin"},!0)};class ru extends bh{constructor(){super(...arguments),this.type=j.wordCloud}}ru.type=j.wordCloud;const WD=()=>{t0(),wn(),BD(),L.registerSeries(ru.type,ru)},Zit=()=>{VD(),t0(),wn(),BD(),L.registerSeries(ru.type,ru)};class au extends bh{constructor(){super(...arguments),this.type=j.wordCloud3d}_wordCloudTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudTransformOption()),{postProjection:(t=this._spec.postProjection)!==null&&t!==void 0?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}_wordCloudShapeTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudShapeTransformOption()),{postProjection:(t=this._spec.postProjection)!==null&&t!==void 0?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}initMark(){this._wordMark=this._createMark(bh.mark.word,{groupKey:this._seriesField,support3d:!0,isSeriesMark:!0})}initMarkStyle(){super.initMarkStyle();const t=this._wordMark;t&&this.setMarkStyle(t,{z:e=>{var i;return(i=e.z)!==null&&i!==void 0?i:0}},"normal",tt.Series)}initAnimation(){var t,e;const i=(t=this._padding)!==null&&t!==void 0?t:{};this._wordMark&&this._wordMark.setAnimationConfig(zt((e=L.getAnimationInKey("wordCloud3d"))===null||e===void 0?void 0:e(()=>{var s;const r=this.getCompiler().getVGrammarView(),a=r.width()-i.left||0-i.right||0,o=r.height()-i.top||0-i.bottom||0,l=Math.max(a,o)/2;return{center:{x:l,y:l,z:(s=this._spec.depth_3d)!==null&&s!==void 0?s:l},r:l}}),Wt("word",this._spec,this._markAttributeContext)))}}au.type=j.wordCloud3d;const ND=()=>{t0(),wn(),ID(),L.registerSeries(au.type,au)},Jit=()=>{VD(),t0(),wn(),ID(),L.registerSeries(au.type,au)},Qit=(n,t)=>{var e,i;const s=n.map(x=>Object.assign({},x));if(!s||s.length===0)return s;const{valueField:r,asTransformRatio:a,asReachRatio:o,asHeightRatio:l,asValueRatio:h,asNextValueRatio:d,asLastValueRatio:c,asLastValue:u,asCurrentValue:p,asNextValue:g,heightVisual:f=!1,isCone:_=!0,range:m}=t,y=s.reduce((x,S)=>Math.max(x,Number.parseFloat(S[r])||-1/0),-1/0),b=s.reduce((x,S)=>Math.min(x,Number.parseFloat(S[r])||1/0),1/0),v=[(e=m==null?void 0:m.min)!==null&&e!==void 0?e:b,(i=m==null?void 0:m.max)!==null&&i!==void 0?i:y];return s.forEach((x,S)=>{var k,A;const T=Number.parseFloat(x[r]),M=Number.parseFloat((k=s[S-1])===null||k===void 0?void 0:k[r]),w=Number.parseFloat((A=s[S+1])===null||A===void 0?void 0:A[r]),E=z(w*T)&&T!==0?w/T:0,R=z(T*M)&&M!==0?T/M:0;u&&(x[u]=M),g&&(x[g]=w),a&&(x[a]=E),o&&(x[o]=S===0?1:R),l&&(x[l]=f===!0?E:1/s.length),h&&(x[h]=T/v[1]),d&&(x[d]=S===s.length-1?_?0:x[h]:w/v[1]),c&&(x[c]=S===0?1:M/v[1]),p&&(x[p]=T)}),s},tnt=(n,t)=>{var e,i;const s=(i=(e=n[0])===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.map(r=>Object.assign({},r));return s&&s.length!==0&&(s.shift(),s.forEach(r=>{r[t.asIsTransformLevel]=!0})),s},ent=`${yt}_FUNNEL_TRANSFORM_RATIO`,Ub=`${yt}_FUNNEL_REACH_RATIO`,int=`${yt}_FUNNEL_HEIGHT_RATIO`,wp=`${yt}_FUNNEL_VALUE_RATIO`,GC=`${yt}_FUNNEL_LAST_VALUE_RATIO`,UC=`${yt}_FUNNEL_NEXT_VALUE_RATIO`,nnt=`${yt}_FUNNEL_LAST_VALUE`,snt=`${yt}_FUNNEL_CURRENT_VALUE`,rnt=`${yt}_FUNNEL_NEXT_VALUE`,$C=`${yt}_FUNNEL_TRANSFORM_LEVEL`,er=20,Ka=5,ant="80%",ont=0;class lnt extends un{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=(t,e)=>{var i,s,r;const a=this.series;return((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform"?"转化率":(s=this._getDimensionData(t))!==null&&s!==void 0?s:(r=t.properties)===null||r===void 0?void 0:r[`${a.getCategoryField()}`]},this.markTooltipValueCallback=(t,e)=>{var i;return((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform"?`${(100*(t==null?void 0:t[Ub])).toFixed(1)}%`:this._getMeasureData(t)},this.markTooltipKeyCallback=(t,e)=>{var i;if(((i=e==null?void 0:e.mark)===null||i===void 0?void 0:i.name)==="transform")return"转化率";const{dimensionFields:s,seriesFields:r}=this._seriesCacheInfo,a=s[s.length-1];return P(r[0])?t==null?void 0:t[r[0]]:t==null?void 0:t[a]}}}class GD extends Oi{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{points:[]})}}class ou extends GD{constructor(){super(...arguments),this.type=ou.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{lineWidth:0})}}ou.type="polygon";const UD=()=>{L.registerMark(ou.type,ou),O6(),CL()};class OS extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel"),t.isTransform&&this._addMarkLabelSpec(t,"transform","transformLabel")}}class ms extends Vo{constructor(){super(...arguments),this.type=j.funnel,this._funnelMarkName="funnel",this._funnelMarkType="polygon",this._transformMarkName="transform",this._transformMarkType="polygon",this.transformerConstructor=OS,this._funnelMark=null,this._funnelTransformMark=null,this._labelMark=null,this._transformLabelMark=null,this._funnelOuterLabelMark={}}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this._funnelOrient=(t=this._spec.funnelOrient)!==null&&t!==void 0?t:"top",this._shape=(e=this._spec.shape)!==null&&e!==void 0?e:"trapezoid",this._isHorizontal()?this._funnelAlign=["top","bottom"].includes(this._spec.funnelAlign)?this._spec.funnelAlign:"center":this._funnelAlign=["left","right"].includes(this._spec.funnelAlign)?this._spec.funnelAlign:"center",!this._seriesField&&this._spec.categoryField&&this.setSeriesField(this._spec.categoryField)}initData(){if(super.initData(),!this._data)return;Tt(this._dataSet,"funnel",Qit),Tt(this._dataSet,"funnelTransform",tnt);const t=new Ut(this._dataSet,{name:`${yt}_series_${this.id}_viewDataTransform`});t.parse([this.getViewData()],{type:"dataview"}),this._viewDataTransform=new Ys(this._option,t)}getStatisticFields(){const t=[];return t.push({key:this._categoryField,operations:["values"]}),t.push({key:this._valueField,operations:["max","min"]}),t}_statisticViewData(){var t,e,i,s,r,a,o,l,h;super._statisticViewData(),this._data.getDataView().transform({type:"funnel",options:{valueField:this.getValueField(),isCone:this._spec.isCone,asCurrentValue:snt,asTransformRatio:ent,asReachRatio:Ub,asHeightRatio:int,asValueRatio:wp,asNextValueRatio:UC,asLastValueRatio:GC,asLastValue:nnt,asNextValue:rnt,range:{min:(e=(t=this._spec.range)===null||t===void 0?void 0:t.min)!==null&&e!==void 0?e:(s=(i=this.getViewDataStatistics().latestData)===null||i===void 0?void 0:i[this.getValueField()])===null||s===void 0?void 0:s.min,max:(a=(r=this._spec.range)===null||r===void 0?void 0:r.max)!==null&&a!==void 0?a:(l=(o=this.getViewDataStatistics().latestData)===null||o===void 0?void 0:o[this.getValueField()])===null||l===void 0?void 0:l.max}}}),(h=this._viewDataTransform.getDataView())===null||h===void 0||h.transform({type:"funnelTransform",options:{asIsTransformLevel:$C}})}initMark(){var t,e,i,s,r,a,o,l,h,d,c,u;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},ms.mark.funnel),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:(t=this._theme)===null||t===void 0?void 0:t.funnel,morph:Fr(this._spec,this._funnelMarkName),defaultMorphElementKey:this._seriesField,groupKey:this._seriesField,isSeriesMark:!0,customShape:(e=this._spec.funnel)===null||e===void 0?void 0:e.customShape,stateSort:(i=this._spec.funnel)===null||i===void 0?void 0:i.stateSort,noSeparateStyle:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},ms.mark.transform),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:(s=this._theme)===null||s===void 0?void 0:s.transform,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId(),customShape:(r=this._spec.transform)===null||r===void 0?void 0:r.customShape,stateSort:(a=this._spec.transform)===null||a===void 0?void 0:a.stateSort,noSeparateStyle:!0})),(l=(o=this._spec)===null||o===void 0?void 0:o.outerLabel)===null||l===void 0?void 0:l.visible){const{line:p}=(h=this._spec.outerLabel)!==null&&h!==void 0?h:{},{line:g}=(c=(d=this._theme)===null||d===void 0?void 0:d.outerLabel)!==null&&c!==void 0?c:{};this._funnelOuterLabelMark.label=this._createMark(ms.mark.outerLabel,{themeSpec:(u=this._theme)===null||u===void 0?void 0:u.outerLabel,markSpec:this._spec.outerLabel,skipBeforeLayouted:!0,noSeparateStyle:!0}),this._funnelOuterLabelMark.line=this._createMark(ms.mark.outerLabelLine,{themeSpec:g,markSpec:p,depend:[this._funnelOuterLabelMark.label],noSeparateStyle:!0})}}initTooltip(){this._tooltipHelper=new lnt(this),this._funnelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._funnelMark),this._funnelTransformMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._funnelTransformMark)}getDimensionField(){return this._seriesField?[this._seriesField]:[]}getMeasureField(){return[this._valueField]}getGroupFields(){return null}initMarkStyle(){const t=this._funnelMark;t&&this.setMarkStyle(t,{points:r=>this.getPoints(r),visible:r=>P(r[this._valueField]),fill:this.getColorAttribute()},"normal",tt.Series);const e=this._funnelTransformMark;e&&this.setMarkStyle(e,{points:r=>this.getPoints(r)},"normal",tt.Series);const i=this._funnelOuterLabelMark.label;i&&this.setMarkStyle(i,{text:r=>{const a=`${r[this.getCategoryField()]}`;return G(this._spec.outerLabel.formatMethod)?this._spec.outerLabel.formatMethod(a,r):a},x:r=>this._computeOuterLabelPosition(r).x,y:r=>this._computeOuterLabelPosition(r).y,textAlign:r=>this._computeOuterLabelPosition(r).align,textBaseline:r=>this._computeOuterLabelPosition(r).textBaseline,maxLineWidth:r=>this._computeOuterLabelLimit(r)},"normal",tt.Series);const s=this._funnelOuterLabelMark.line;s&&i&&this.setMarkStyle(s,{x:r=>this._computeOuterLabelLinePosition(r).x1,y:r=>this._computeOuterLabelLinePosition(r).y1,x1:r=>this._computeOuterLabelLinePosition(r).x2,y1:r=>this._computeOuterLabelLinePosition(r).y2},"normal",tt.Series)}initLabelMarkStyle(t){var e,i;if(!t)return;const s=t.getTarget(),r=t.getComponent();s===this._funnelMark?(this._labelMark=t,this.setMarkStyle(t,{text:a=>`${a[this.getCategoryField()]} ${a[this.getValueField()]}`,x:a=>this._computeLabelPosition(a).x,y:a=>this._computeLabelPosition(a).y,maxLineWidth:a=>this._computeLabelLimit(a,this._spec.label),stroke:this.getColorAttribute()},"normal",tt.Series),!((e=this._funnelOuterLabelMark)===null||e===void 0)&&e.label&&this._funnelOuterLabelMark.label.setDepend(r),!((i=this._funnelOuterLabelMark)===null||i===void 0)&&i.line&&this._funnelOuterLabelMark.line.setDepend(...this._funnelOuterLabelMark.line.getDepend())):this._funnelTransformMark&&s===this._funnelTransformMark&&(this._transformLabelMark=t,this.setMarkStyle(t,{text:a=>`${(100*Wp(Ub).bind(this)(a)).toFixed(1)}%`,x:a=>this._computeLabelPosition(a).x,y:a=>this._computeLabelPosition(a).y,maxLineWidth:a=>this._computeLabelLimit(a,this._spec.transformLabel)},"normal",tt.Series))}initAnimation(){var t,e,i,s,r,a,o;const l=(i=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset)!==null&&i!==void 0?i:"clipIn";l==="clipIn"&&this._rootMark&&this._rootMark.setAnimationConfig(zt((s=L.getAnimationInKey("cartesianGroupClip"))===null||s===void 0?void 0:s({direction:()=>this._isHorizontal()?"x":"y",width:()=>{const h=this.getRootMark().getProduct();if(h){const{x1:d,x2:c}=h.getBounds();return Math.max(d,c)}return this.getLayoutRect().width},height:()=>{const h=this.getRootMark().getProduct();if(h){const{y1:d,y2:c}=h.getBounds();return Math.max(d,c)}return this.getLayoutRect().height},orient:()=>this._isReverse()?"negative":"positive"},l),Wt("group",this._spec,this._markAttributeContext))),[(r=this._funnelOuterLabelMark)===null||r===void 0?void 0:r.label].forEach(h=>{h&&h.setAnimationConfig(zt(L.getAnimationInKey("fadeInOut")(),Wt(h.name,this._spec,this._markAttributeContext)))}),[this._funnelMark,this._funnelTransformMark].forEach(h=>{h&&h.setAnimationConfig(zt(L.getAnimationInKey("funnel")({},l),Wt(h.name,this._spec,this._markAttributeContext)))}),!((a=this._funnelOuterLabelMark)===null||a===void 0)&&a.line&&this._funnelOuterLabelMark.line.setAnimationConfig(zt((o=L.getAnimationInKey("fadeInOut"))===null||o===void 0?void 0:o(),Wt("outerLabelLine",this._spec,this._markAttributeContext)))}initGroups(){}getStackGroupFields(){return[]}getStackValueField(){return null}initEvent(){var t;super.initEvent(),(t=this._viewDataTransform.getDataView())===null||t===void 0||t.target.addListener("change",e=>{this._viewDataTransform.updateData()})}getPoints(t){const e=this.isTransformLevel(t),i=this._getMainAxisLength(e)/2;let s,r;e?(s=this._shape==="rect"?this._getSecondaryAxisLength(t[GC])/2:this._getSecondaryAxisLength(t[wp])/2,r=this._getSecondaryAxisLength(t[wp])/2):(s=this._getSecondaryAxisLength(t[wp])/2,r=this._shape==="rect"?s:this._getSecondaryAxisLength(t[UC])/2);const{x:a,y:o}=this._getPositionByData(t),l=this._getPolygonPoints([a,o],s,r,s,r,i);return this._funnelAlign!=="center"&&this._adjustPoints(l),l}isTransformLevel(t){return!!(t!=null&&t[$C])}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToPosition=this.valueToPosition.bind(this),this._markAttributeContext.getPoints=this.getPoints.bind(this),this._markAttributeContext.isTransformLevel=this.isTransformLevel.bind(this)}valueToPosition(t){var e,i,s;const r=(s=(i=(e=this.getViewData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i.find)===null||s===void 0?void 0:s.call(i,a=>a[this._categoryField]===t);return P(r)?this._getPolygonCenter(this.getPoints(r)):null}dataToPosition(t,e){return e&&!this.isDatumInViewData(t)?null:this.valueToPosition(t[this._categoryField])}dataToPositionX(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.x}dataToPositionY(t){var e;return(e=this.dataToPosition(t))===null||e===void 0?void 0:e.y}dataToPositionZ(t){return 0}_getMainAxisLength(t=!1){var e;const i=this.getViewData().latestData.length,s=this._isHorizontal()?this.getLayoutRect().width:this.getLayoutRect().height,r=!!this._spec.isTransform,a=r?0:(e=this._spec.gap)!==null&&e!==void 0?e:0,o=r?Math.max(0,i-1):0,l=this._spec.heightRatio||.5,h=(s-a*Math.max(0,i-1))/(i+l*o);return t?r?h*l:0:h}_getSecondaryAxisLength(t){const e=Number.isNaN(t)||!Number.isFinite(t)?0:t,i=this._computeMaxSize(),s=this._computeMinSize();return s+(i-s)*e}_getPositionByData(t){var e;const i=(e=this.getViewData().latestData)===null||e===void 0?void 0:e.findIndex(u=>u[this._categoryField]===t[this._categoryField]&&u[Qn]===t[Qn]);if(!P(i)||i<0)return{};const s=this.isTransformLevel(t),r=this._isHorizontal(),a=r?this.getLayoutRect().height:this.getLayoutRect().width,o=r?this.getLayoutRect().width:this.getLayoutRect().height,l=a/2;let h=0;const d=this._getMainAxisLength(),c=this._getMainAxisLength(!0);return h+=i*(d+c),h+=s?-c/2:d/2,!this._spec.isTransform&&this._spec.gap&&(h+=this._spec.gap*i),this._isReverse()&&(h=o-h),this._isHorizontal()?{x:h,y:l}:{x:l,y:h}}_getPolygonPoints(t,e,i,s,r,a){const o=t[0],l=t[1];switch(this._funnelOrient){case"left":return[{x:o-a,y:l+e},{x:o-a,y:l-s},{x:o+a,y:l-r},{x:o+a,y:l+i}];case"right":return[{x:o+a,y:l-s},{x:o+a,y:l+s},{x:o-a,y:l+i},{x:o-a,y:l-i}];case"bottom":return[{x:o+e,y:l+a},{x:o-s,y:l+a},{x:o-r,y:l-a},{x:o+i,y:l-a}];default:return[{x:o-e,y:l-a},{x:o+s,y:l-a},{x:o+r,y:l+a},{x:o-i,y:l+a}]}}_getPolygonCenter(t){if(this._isHorizontal()){const s=(t[0].x+t[3].x)/2,r=(t[0].y+t[3].y)/2;return{x:(s+(t[1].x+t[2].x)/2)/2,y:(r+(t[1].y+t[2].y)/2)/2}}const e=(t[0].x+t[3].x)/2,i=(t[0].y+t[3].y)/2;return{x:(e+(t[1].x+t[2].x)/2)/2,y:(i+(t[1].y+t[2].y)/2)/2}}_adjustPoints(t){let e,i,s;return this._isHorizontal()?(s="y",this._funnelOrient==="left"?(e=this._funnelAlign==="bottom"?-t[1].y:t[1].y,i=this._funnelAlign==="bottom"?-t[2].y:t[2].y):(e=this._funnelAlign==="bottom"?-t[0].y:t[0].y,i=this._funnelAlign==="bottom"?-t[3].y:t[3].y)):(s="x",this._funnelOrient==="top"?(e=this._funnelAlign==="left"?t[0].x:-t[0].x,i=this._funnelAlign==="left"?t[3].x:-t[3].x):(e=this._funnelAlign==="left"?t[1].x:-t[1].x,i=this._funnelAlign==="left"?t[2].x:-t[2].x)),t[0][s]-=e,t[1][s]-=e,t[2][s]-=i,t[3][s]-=i,t}_computeLabelPosition(t){const e=this.getPoints(t);return this._getPolygonCenter(e)}_computeLabelLimit(t,e){const i=e==null?void 0:e.limit;if(nt(i))return i;const s=this.getPoints(t);return i==="shapeSize"?this._isHorizontal()?Math.abs(s[3].x-s[0].x):(Math.abs(s[0].x-s[1].x)+Math.abs(s[2].x-s[3].x))/2:this._isHorizontal()?Math.abs(s[3].x-s[0].x):void 0}_computeOuterLabelPosition(t){var e,i;let s,r,a=(e=this._spec.outerLabel)===null||e===void 0?void 0:e.position,o="center",l="middle";if(a=this._isHorizontal()?["top","bottom"].includes(a)?a:this._funnelAlign==="bottom"?"top":"bottom":["left","right"].includes(a)?a:this._funnelAlign==="left"?"right":"left",((i=this._spec.outerLabel)===null||i===void 0?void 0:i.alignLabel)!==!1)({x:s,y:r}=this._getPositionByData(t)),a==="left"?(s=0,o="left"):a==="right"?(s=this.getLayoutRect().width,o="right"):a==="top"?(r=0,l="top"):a==="bottom"&&(r=this.getLayoutRect().height,l="bottom");else{const{x2:h,y2:d}=this._computeOuterLabelLinePosition(t);s=h,r=d,a==="left"?(s-=Ka,o="right"):a==="right"?(s+=Ka,o="left"):a==="top"?(r-=Ka,l="bottom"):a==="bottom"&&(r+=Ka,l="top")}return{x:s,y:r,align:o,textBaseline:l}}_computeOuterLabelLimit(t){var e,i,s,r,a;if(this._isHorizontal())return this._getMainAxisLength(this.isTransformLevel(t));const o=this.getPoints(t),l=(Math.abs(o[0].x-o[1].x)+Math.abs(o[2].x-o[3].x))/2,h=this.getCategoryField(),d=(s=(i=(e=this._labelMark)===null||e===void 0?void 0:e.getComponent())===null||i===void 0?void 0:i.getProduct().getGroupGraphicItem().find(({attribute:g,type:f})=>{var _;return f==="text"&&((_=g.data)===null||_===void 0?void 0:_[h])===t[h]},!0))===null||s===void 0?void 0:s.AABBBounds,c=d?d.x2-d.x1:0,u=this._funnelOuterLabelMark.line?er:0;let p=this.getLayoutRect().width-Math.max(l,c);return this._funnelAlign==="center"&&(p/=2),p-u-((a=(r=this._spec.outerLabel)===null||r===void 0?void 0:r.spaceWidth)!==null&&a!==void 0?a:Ka)}_computeOuterLabelLinePosition(t){var e,i,s,r,a,o,l,h,d,c,u;const p=this.getCategoryField(),g=(a=(r=(s=(i=(e=this._funnelOuterLabelMark)===null||e===void 0?void 0:e.label)===null||i===void 0?void 0:i.getProduct())===null||s===void 0?void 0:s.elements)===null||r===void 0?void 0:r.find(T=>{var M;return((M=T.data[0])===null||M===void 0?void 0:M[p])===t[p]}))===null||a===void 0?void 0:a.getBounds(),f=(h=(l=(o=this._labelMark)===null||o===void 0?void 0:o.getComponent())===null||l===void 0?void 0:l.getProduct().getGroupGraphicItem().find(({attribute:T,type:M})=>{var w;return M==="text"&&((w=T.data)===null||w===void 0?void 0:w[p])===t[p]},!0))===null||h===void 0?void 0:h.AABBBounds,_=(d=this._spec.outerLabel)!==null&&d!==void 0?d:{};let m,y,b,v;if(this._isHorizontal()){const T=(c=_.spaceWidth)!==null&&c!==void 0?c:Ka,M=this.getPoints(t),w=(Math.abs(M[0].y-M[1].y)+Math.abs(M[2].y-M[3].y))/2;return this._spec.outerLabel.position==="top"||this._funnelAlign==="bottom"?(b=this._getPolygonCenter(M).y-w/2-T,v=_.alignLabel!==!1?(g==null?void 0:g.y2)+T:b-T,m=this._getPolygonCenter(M).x,b-v{UD(),wn(),Lh(),L.registerSeries(ms.type,ms),L.registerAnimation("funnel",(n,t)=>Object.assign({appear:t==="clipIn"?void 0:{type:"fadeIn"}},Vm)),mJ(),Dr()};class lu extends GD{constructor(){super(...arguments),this.type=lu.type}}lu.type="pyramid3d";const $D=()=>{L.registerMark(lu.type,lu),C6(),CL()};class YD extends OS{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel3d"),t.isTransform&&this._addMarkLabelSpec(t,"transform3d","transformLabel")}}class Ws extends ms{constructor(){super(...arguments),this.type=j.funnel3d,this._funnelMarkName="funnel3d",this._funnelMarkType="pyramid3d",this._transformMarkName="transform3d",this._transformMarkType="pyramid3d",this.transformerConstructor=YD}initMark(){var t,e,i,s,r,a,o,l;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},Ws.mark.funnel3d),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:(t=this._theme)===null||t===void 0?void 0:t.funnel3d,key:this._seriesField,isSeriesMark:!0,support3d:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},Ws.mark.transform3d),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:(e=this._theme)===null||e===void 0?void 0:e.transform3d,key:this._seriesField,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId()})),(s=(i=this._spec)===null||i===void 0?void 0:i.outerLabel)===null||s===void 0?void 0:s.visible){const{line:h}=(r=this._spec.outerLabel)!==null&&r!==void 0?r:{},{line:d}=(o=(a=this._theme)===null||a===void 0?void 0:a.outerLabel)!==null&&o!==void 0?o:{};this._funnelOuterLabelMark.label=this._createMark(Ws.mark.outerLabel,{themeSpec:(l=this._theme)===null||l===void 0?void 0:l.outerLabel,key:this._seriesField,markSpec:this._spec.outerLabel}),this._funnelOuterLabelMark.line=this._createMark(Ws.mark.outerLabelLine,{themeSpec:d,key:this._seriesField,markSpec:h,depend:[this._funnelOuterLabelMark.label]})}}initMarkStyle(){super.initMarkStyle();const t=this._funnelMark;t&&this.setMarkStyle(t,{z:e=>{if(this._isHorizontal())return 0;const i=this.getPoints(e),s=Math.max(Math.abs(i[0].x-i[1].x),Math.abs(i[2].x-i[3].x));return(this._computeMaxSize()-s)/2}},"normal",tt.Series)}initLabelMarkStyle(t){var e,i;super.initLabelMarkStyle(t),this.setMarkStyle(t,{z:s=>{if(this._isHorizontal())return 0;const r=this.getPoints(s),a=Math.max(Math.abs(r[0].x-r[1].x),Math.abs(r[2].x-r[3].x));return(this._computeMaxSize()-a)/2}},"normal",tt.Series),this._labelMark=t,!((e=this._funnelOuterLabelMark)===null||e===void 0)&&e.label&&this._funnelOuterLabelMark.label.setDepend(t.getComponent()),!((i=this._funnelOuterLabelMark)===null||i===void 0)&&i.line&&this._funnelOuterLabelMark.line.setDepend(...this._funnelOuterLabelMark.line.getDepend())}}Ws.type=j.funnel3d,Ws.mark=MO,Ws.transformerConstructor=YD;const dnt=()=>{$D(),wn(),Lh(),L.registerSeries(Ws.type,Ws)},l_=(n,t)=>{const e=(n-t[0])/(t[1]-t[0]||1);return Math.max(0,Math.min(1,e))},h_=n=>{const t=n.mark.elements.filter(i=>i.diffState===qt.update),e=ti(t.map(i=>{var s;return(s=i==null?void 0:i.data)===null||s===void 0?void 0:s[0].depth}));return t.filter(i=>{var s;return((s=i==null?void 0:i.data)===null||s===void 0?void 0:s[0].depth)===e})},YC=(n,t,e)=>_t(n)?[t,e]:[ti(n.map(i=>1*i.getGraphicAttribute("startAngle",!1))),Ve(n.map(i=>1*i.getGraphicAttribute("endAngle",!1)))],cnt=n=>({channel:{startAngle:{from:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=h_(e),a=YC(r,i,s);return l_(t.startAngle,a)*(s-i)+i},to:t=>t.startAngle},endAngle:{from:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=h_(e),a=YC(r,i,s);return l_(t.endAngle,a)*(s-i)+i},to:t=>t.endAngle},outerRadius:{from:t=>t.innerRadius,to:t=>t.outerRadius},innerRadius:{from:t=>t.innerRadius,to:t=>t.innerRadius}}}),XC=n=>[ti(n.map(t=>1*t.getGraphicAttribute("startAngle",!1))),Ve(n.map(t=>1*t.getGraphicAttribute("endAngle",!1)))],KC=n=>({channel:{startAngle:{from:(t,e)=>e.getGraphicAttribute("startAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=h_(e),a=XC(r);return l_(e.getGraphicAttribute("startAngle",!1),a)*(s-i)+i}},endAngle:{from:(t,e)=>e.getGraphicAttribute("endAngle",!1),to:(t,e)=>{const{startAngle:i,endAngle:s}=n.animationInfo(),r=h_(e),a=XC(r);return l_(e.getGraphicAttribute("endAngle",!1),a)*(s-i)+i}},outerRadius:{from:(t,e)=>e.getGraphicAttribute("outerRadius",!1),to:()=>n.animationInfo().innerRadius},innerRadius:{from:(t,e)=>e.getGraphicAttribute("innerRadius",!1),to:()=>n.animationInfo().innerRadius}}}),unt=(n,t)=>{switch(t){case"fadeIn":return{type:"fadeIn"};case"growAngle":return{type:"growAngleIn"};default:return{type:"growRadiusIn"}}},pnt=()=>{L.registerAnimation("sunburst",(n,t)=>({appear:unt(n,t),enter:cnt(n),exit:KC(n),disappear:KC(n)}))},LS=(n,t=[],e)=>{const i=(e==null?void 0:e.maxDepth)>=0;return n.forEach(s=>{(!i||s.depth<=e.maxDepth)&&(t.push(e!=null&&e.callback?e.callback(s):s),s.children&&(i&&s.depth===e.maxDepth?(s.children=null,s.isLeaf=!0):LS(s.children,t,e)))}),t};function gnt(n,t,e,i,s){const r=n.children,a=r.length;let o=0;const l=new Array(a+1);l[0]=0;for(let d=0;d{if(d>=c-1){const k=r[d];return k.x0=p,k.y0=g,k.x1=f,void(k.y1=_)}const m=l[d],y=u/2+m;let b=d+1,v=c-1;for(;b>>1;l[k]_-g){const k=u?(p*S+f*x)/u:f;h(d,b,x,p,g,k,_),h(b,c,S,k,g,f,_)}else{const k=u?(g*S+_*x)/u:_;h(d,b,x,p,g,f,k),h(b,c,S,p,k,f,_)}};h(0,a,n.value,t,e,i,s)}function e0(n,t,e,i,s,r={x0:"x0",x1:"x1",y0:"y0",y1:"y1"}){const a=n.children;let o,l=-1;const h=a.length,d=n.value&&(i-t)/n.value;for(;++lm&&(m=h),x=f*f*v,y=Math.max(m/x,x/_),y>b){f-=h;break}b=y}l=Object.assign({},t,{value:f,children:o.slice(d,c)}),a.push(l),p(t,e,i,s,r)=>{_nt(n,t,e,i,s,r)},i0=(n,t,e=0,i=-1,s,r)=>{let a=0,o=i??-1,l=e;return n.forEach((h,d)=>{var c,u;const p={flattenIndex:++o,key:r?r(h):`${(c=s==null?void 0:s.key)!==null&&c!==void 0?c:""}-${d}`,maxDepth:-1,depth:e,index:d,value:h.value,isLeaf:!0,datum:s?s.datum.concat(h):[h],parentKey:s==null?void 0:s.key};if(!((u=h.children)===null||u===void 0)&&u.length){p.children=[],p.isLeaf=!1;const g=i0(h.children,p.children,e+1,o,p,r);p.value=C(h.value)?g.sum:Math.max(g.sum,Ja(h.value)),o=g.flattenIndex,l=Math.max(g.maxDepth,l)}else p.isLeaf=!0,p.value=Ja(h.value);a+=Math.abs(p.value),t.push(p)}),{sum:a,maxDepth:l,flattenIndex:o}},ml=(n,t,e,i)=>{let s=i;return n.forEach((r,a)=>{var o;s=t(r,a,e,s),!((o=r.children)===null||o===void 0)&&o.length&&(s=ml(r.children,t,r,s))}),i},Xp=(n,t,e,i)=>{let s=i;return n.forEach((r,a)=>{var o;!((o=r.children)===null||o===void 0)&&o.length&&(s=Xp(r.children,t,r,s)),s=t(r,a,e,s)}),s},qC={binary:gnt,dice:e0,slice:DS,sliceDice:fnt};class n0{constructor(t){var e;this._filterByArea=(r,a)=>{var o;const l=this._getMinAreaByDepth(r.depth);if(l>0&&r.value*athis._filterByArea(d,a));h.length?h.length!==r.children.length&&(r.children=h):(r.isLeaf=!0,r.children=null)}return!0},this._getMinAreaByDepth=r=>{var a;return r<0?0:(a=V(this.options.minVisibleArea)?this.options.minVisibleArea[r]:this.options.minVisibleArea)!==null&&a!==void 0?a:0},this._getGapWidthByDepth=r=>{var a;return r<0?0:(a=V(this.options.gapWidth)?this.options.gapWidth[r]:this.options.gapWidth)!==null&&a!==void 0?a:0},this._getPaddingByDepth=r=>{var a;return r<0?0:(a=V(this.options.padding)?this.options.padding[r]:this.options.padding)!==null&&a!==void 0?a:0},this._getLabelPaddingByDepth=r=>{var a;return r<0?0:(a=V(this.options.labelPadding)?this.options.labelPadding[r]:this.options.labelPadding)!==null&&a!==void 0?a:0},this._layoutNode=r=>{const a=this._getGapWidthByDepth(r.depth);let o=r.x0,l=r.y0,h=r.x1,d=r.y1;if(r.maxDepth=this._maxDepth,a>0&&(o+=a/2,h-=a/2,l+=a/2,d-=a/2,o>h&&(o=(o+h)/2,h=o),l>d&&(l=(l+d)/2,d=l),r.x0=o,r.x1=h,r.y0=l,r.y1=d),r.children){const c=this._getLabelPaddingByDepth(r.depth),u=this._getPaddingByDepth(r.depth);u>0&&u0&&(this.options.labelPosition==="top"&&l+cl?(r.labelRect={x0:o,y0:d-c,x1:h,y1:d},d-=c):this.options.labelPosition==="left"&&o+co&&(r.labelRect={x0:h-c,y0:l,x1:h,y1:d},h-=c));const p=this._getGapWidthByDepth(r.depth+1);p>0&&(o-=p/2,h+=p/2,l-=p/2,d+=p/2),this._splitNode(r,o,l,h,d)}},this.options=Object.assign({},n0.defaultOpionts,t);const i=this.options.nodeKey,s=G(i)?i:i?bs(i):null;this._getNodeKey=s,this._splitNode=this.options.splitType==="squarify"?mnt(this.options.aspectRatio):(e=qC[this.options.splitType])!==null&&e!==void 0?e:qC.binary,this._maxDepth=-1}layout(t,e){var i;if(!t||!t.length)return[];const s="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)},r=[],a=i0(t,r,0,-1,null,this._getNodeKey);if(this._maxDepth=a.maxDepth,a.sum<=0)return[];const o={flattenIndex:-1,maxDepth:-1,key:"-1",depth:-1,index:-1,value:a.sum,datum:null,x0:s.x0,x1:s.x1,y0:s.y0,y1:s.y1,children:r},l=s.width*s.height/a.sum;return this._filterByArea(o,l),this._layout(o),(i=o.children)!==null&&i!==void 0?i:[]}_filterChildren(t){const e=this.options.maxDepth;if(nt(e)&&e>=0&&t.depth>=e)return!1;const i=this.options.minChildrenVisibleArea;if(nt(i)&&Math.abs((t.x1-t.x0)*(t.y1-t.y0)){var s;!((s=i==null?void 0:i.children)===null||s===void 0)&&s.length?this._layout(i):this._layoutNode(i)})}}n0.defaultOpionts={aspectRatio:(1+Math.sqrt(5))/2,gapWidth:0,labelPadding:0,labelPosition:"top",splitType:"binary",minVisibleArea:10};const vnt=(n,t)=>{const e=new n0(n).layout(t,"width"in n?{width:n.width,height:n.height}:{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1});if(n.flatten){const i=[];return LS(e,i,{maxDepth:n==null?void 0:n.maxDepth}),i}return e},ynt={x0:"startAngle",x1:"endAngle",y0:"innerRadius",y1:"outerRadius"};class hu{constructor(t){this._layoutNode=s=>{if(s.maxDepth=this._maxDepth,s.children){const r=this._parsedInnerRadius[s.depth+1],a=this._parsedOutterRadius[s.depth+1];e0(s,s.startAngle,Math.min(r,a),s.endAngle,Math.max(r,a),ynt);const o=V(this.options.label)?this.options.label[s.depth+1]:this.options.label;s.children.forEach(l=>{if(l.x=this._parsedCenter[0],l.y=this._parsedCenter[1],o)return this._layoutLabel(l,be(o)?{align:"center",rotate:"radial"}:o)})}},this.options=t?Object.assign({},hu.defaultOpionts,t):Object.assign({},hu.defaultOpionts);const e=this.options.nodeKey,i=G(e)?e:e?bs(e):null;this._getNodeKey=i,this._maxDepth=-1}_parseRadius(t,e){const i=t.x0+Dn(this.options.center[0],t.width),s=t.y0+Dn(this.options.center[1],t.height),r=Math.min(t.width/2,t.height/2),a=this.options.innerRadius,o=this.options.outerRadius,l=V(a),h=l?a.map(g=>Dn(g,r)):Dn(a,r),d=V(o),c=this.options.gapRadius,u=d?o.map(g=>Dn(g,r)):Dn(o,r),p=EP(0,e+1);if(l)this._parsedInnerRadius=p.map((g,f)=>{const _=h[f];return C(_)?r:_}),this._parsedOutterRadius=p.map((g,f)=>{var _,m;return d?(_=u[f])!==null&&_!==void 0?_:r:fC(u[f])?r:u[f]),this._parsedInnerRadius=p.map((g,f)=>{var _;return f===0?h:this._parsedOutterRadius[f-1]-(V(c)?(_=c[f])!==null&&_!==void 0?_:0:c)});else{const g=Dn(a,r),f=(u-g)/(e+1);this._parsedInnerRadius=p.map((_,m)=>g+m*f),this._parsedOutterRadius=p.map((_,m)=>{var y;return this._parsedInnerRadius[m]+f-(V(c)?(y=c[m])!==null&&y!==void 0?y:0:c)})}this._parsedCenter=[i,s],this._maxRadius=r}layout(t,e){const i="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};if(!t||!t.length)return[];const s=[],r=i0(t,s,0,-1,null,this._getNodeKey);return this._parseRadius(i,r.maxDepth),this._maxDepth=r.maxDepth,this._layout(s,{flattenIndex:-1,maxDepth:-1,key:"-1",depth:-1,index:-1,value:r.sum,datum:null,children:s,startAngle:this.options.startAngle,endAngle:this.options.endAngle}),s}_layout(t,e){this._layoutNode(e),t.forEach(i=>{var s;!((s=i==null?void 0:i.children)===null||s===void 0)&&s.length?this._layout(i.children,i):this._layoutNode(i)})}_layoutLabel(t,e){var i;const s=(t.startAngle+t.endAngle)/2,r=(e.align==="start"?t.innerRadius:e.align==="end"?t.outerRadius:(t.innerRadius+t.outerRadius)/2)+((i=e.offset)!==null&&i!==void 0?i:0),a=Ue({x:this._parsedCenter[0],y:this._parsedCenter[1]},r,s);if(t.label={x:a.x,y:a.y,textBaseline:"middle"},e.rotate==="tangential")t.label.angle=s-Math.PI/2,t.label.textAlign="center",t.label.maxLineWidth=Math.abs(t.endAngle-t.startAngle)*r;else{const o=s%(2*Math.PI),l=o<0?o+2*Math.PI:o;l>Math.PI/2&&l<1.5*Math.PI?(t.label.angle=l+Math.PI,t.label.textAlign=e.align==="start"?"end":e.align==="end"?"start":"center"):(t.label.angle=l,t.label.textAlign=e.align),t.label.maxLineWidth=t.isLeaf?void 0:Math.abs(t.outerRadius-t.innerRadius)}}}hu.defaultOpionts={startAngle:Math.PI/2,endAngle:-3*Math.PI/2,center:["50%","50%"],gapRadius:0,innerRadius:0,outerRadius:"70%"};const bnt=1664525,xnt=1013904223,ZC=4294967296;function Snt(n=1){let t=n;return()=>(t=(bnt*t+xnt)%ZC)/ZC}function Ant(n,t){let e=0;const i=PP(Array.from(n),t),s=i.length;let r,a,o=[];for(;e0&&e*e>i*i+s*s}function gv(n,t){for(let e=0;e1e-6?(w+Math.sqrt(w*w-4*M*E))/(2*M):E/w);return{x:i+S+k*R,y:s+A+T*R,radius:R}}function JC(n,t,e){const i=n.x-t.x;let s,r;const a=n.y-t.y;let o,l;const h=i*i+a*a;h?(r=t.radius+e.radius,r*=r,l=n.radius+e.radius,l*=l,r>l?(s=(h+l-r)/(2*h),o=Math.sqrt(Math.max(0,l/h-s*s)),e.x=n.x-s*i-o*a,e.y=n.y-s*a+o*i):(s=(h+r-l)/(2*h),o=Math.sqrt(Math.max(0,r/h-s*s)),e.x=t.x+s*i-o*a,e.y=t.y+s*a+o*i)):(e.x=t.x+e.radius,e.y=t.y)}function QC(n,t){const e=n.radius+t.radius-1e-6,i=t.x-n.x,s=t.y-n.y;return e>0&&e*e>i*i+s*s}function tP(n){const t=n._,e=n.next._,i=t.radius+e.radius,s=(t.x*e.radius+e.x*t.radius)/i,r=(t.y*e.radius+e.y*t.radius)/i;return s*s+r*r}function Pp(n){return{_:n,next:null,prev:null}}function wnt(n,t){const e=(n=H(n)).length;if(!e)return 0;let i=n[0];if(i.x=0,i.y=0,e===1)return i.radius;const s=n[1];if(i.x=-s.radius,s.x=i.radius,s.y=0,e===2)return i.radius+s.radius;let r=n[2];JC(s,i,r);let a,o,l,h,d,c,u,p=Pp(i),g=Pp(s),f=Pp(r);p.next=g,f.prev=g,g.next=f,p.prev=f,f.next=p,g.prev=p;for(let m=3;mt.padding:V(t==null?void 0:t.padding)?s=>{var r;return(r=t.padding[s.depth+1])!==null&&r!==void 0?r:0}:()=>0,this._maxDepth=-1}layout(t,e){var i;const s="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};if(!t||!t.length)return[];const r=[],a=i0(t,r,0,-1,null,this._getNodeKey);this._maxDepth=a.maxDepth;const o=Snt(),l={flattenIndex:-1,maxDepth:-1,key:"root",depth:-1,index:-1,value:a.sum,datum:null,children:r,x:s.x0+s.width/2,y:s.y0+s.height/2},{nodeSort:h,setRadius:d,padding:c,includeRoot:u}=(i=this.options)!==null&&i!==void 0?i:{};if(h!==!1){const p=G(h)?this.options.nodeKey:du.defaultOpionts.nodeSort;ml([l],g=>{g.children&&g.children.length&&g.children.sort(p)})}if(d)ml([l],eP(d)),Xp([l],fv(this._getPadding,.5,o)),ml([l],iP(1,this._maxDepth));else{const p=Math.min(s.width,s.height);ml([l],eP(du.defaultOpionts.setRadius)),Xp([l],fv(MG,1,o)),c&&Xp([l],fv(this._getPadding,l.radius/p,o)),ml([l],iP(p/(2*l.radius),this._maxDepth))}return u?[l]:r}}du.defaultOpionts={setRadius:n=>Math.sqrt(n.value),padding:0,nodeSort:(n,t)=>t.value-n.value};const Cnt=()=>{it.registerTransform("treemap",{transform:vnt,markPhase:"beforeJoin"},!0)},zu=(n,t={})=>{if(!n)return[];const e=[];return LS(n,e,t),e},Pnt=(n,t)=>{if(!n)return n;const e=t(),{width:i,height:s}=e;return new hu(e).layout(n,{width:i,height:s})},Ent=10;class Rnt extends un{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}var ha;(function(n){n.DrillDown="drillDown",n.DrillUp="drillUp"})(ha||(ha={}));const Bnt=(n,t)=>{const e=t.info(),i=t.keyField(),s=e==null?void 0:e.key;if(C(s))return n;if(e.type===ha.DrillDown){const r=eL(n,s,i,"children");return H(r)}if(e.type===ha.DrillUp){const r=iL(n,s,i,"children");if(r)return H(r)}return n};class FS{_getDrillTriggerEvent(t){var e;const{mode:i}=this._drillParams;return(e=rr(i))===null||e===void 0?void 0:e[t]}_hideTooltip(){const t=this.getChart().getComponentsByType(U.tooltip)[0];t&&t.hideTooltip()}initDrillable(t){this._drillParams=t}initDrillableData(t){const{getRawData:e}=this._drillParams;Tt(t,"drillFilter",Bnt),e().transform({type:"drillFilter",options:{info:()=>this._drillInfo,keyField:()=>this._drillParams.drillField()}})}bindDrillEvent(){const{event:t,getRawData:e,drillField:i}=this._drillParams,s=i();this._getDrillTriggerEvent("start")&&t.on(this._getDrillTriggerEvent("start"),r=>{var a,o,l;if(C(r.datum)||C((a=r.datum)===null||a===void 0?void 0:a[s]))return void this.drillUp();this._hideTooltip();const h=r.datum[s],d=(l=(o=this._drillInfo)===null||o===void 0?void 0:o.path)!==null&&l!==void 0?l:[],c=kZ(e().rawData,h,s,"children");d[d.length-1]===c[c.length-1]?this.drillUp():this.drillDown(c)})}drillDown(t=[]){const{getRawData:e,event:i}=this._drillParams;if(!V(t)||_t(t))return t;const s=t[t.length-1];return this._drillInfo={key:s,path:t,type:ha.DrillDown},e().reRunAllTransform(),i.emit(ft.drill,{value:{path:t,type:ha.DrillDown},model:this}),t}drillUp(){var t,e;const{getRawData:i,event:s}=this._drillParams,r=(e=(t=this._drillInfo)===null||t===void 0?void 0:t.path)!==null&&e!==void 0?e:[];if(!V(r)||_t(r))return r;const a=r.pop();return this._drillInfo={key:a,path:r,type:ha.DrillUp},i().reRunAllTransform(),s.emit(ft.drill,{value:{path:r,type:ha.DrillUp},model:this}),r}}class Ma extends Du{constructor(){super(...arguments),this.type=j.sunburst}setCategoryField(t){return this._categoryField=t,this._categoryField}getCategoryField(){return this._categoryField}setValueField(t){return this._valueField=t,this._valueField}getValueField(){return this._valueField}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:xr),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e;return(e=this._spec.drillField)!==null&&e!==void 0?e:Qn},getRawData:()=>this.getRawData()}),this._startAngle=Jt(this._spec.startAngle),this._endAngle=Jt(this._spec.endAngle),this._centerX=this._spec.centerX,this._centerY=this._spec.centerY,this._offsetX=this._spec.offsetX,this._offsetY=this._spec.offsetY,this.__innerRadius=this._spec.innerRadius,this.__outerRadius=this._spec.outerRadius,this._gap=this._spec.gap,this._labelLayout=this._spec.labelLayout,this._sunburst=this._spec.sunburst,this._label=this._spec.label,this._labelAutoVisible=this._spec.labelAutoVisible}initData(){super.initData();const t=this.getRawData();t&&(this._spec.drill&&this.initDrillableData(this._dataSet),Tt(this._dataSet,"sunburstLayout",Pnt),Tt(this._dataSet,"flatten",zu),t.transform({type:"sunburstLayout",options:()=>{const{innerRadius:e,outerRadius:i,gap:s,label:r}=this._computeLevel();return{nodeKey:this._categoryField,width:this.getLayoutRect().width,height:this.getLayoutRect().height,center:[P(this._centerX)?this._centerX:this.getLayoutRect().width/2,P(this._centerY)?this._centerY:this.getLayoutRect().height/2],startAngle:this._startAngle,endAngle:this._endAngle,innerRadius:e,outerRadius:i,gapRadius:s,label:r}}}),t.transform({type:"flatten",options:{callback:e=>{if(e.datum){const i=e.datum[e.depth];return Object.assign(Object.assign({},e),i)}return e}}}))}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Xc,operations:["max","min","values"]},{key:xr,operations:["values"]}])}_addDataIndexAndKey(){const t=this.getRawData();C(t==null?void 0:t.dataSet)||(Tt(t.dataSet,"addVChartProperty",Oh),t.transform({type:"addVChartProperty",options:{beforeCall:AS.bind(this),call:Um}}))}initMark(){this._initArcMark(),this._initLabelMark()}initMarkStyle(){this._initArcMarkStyle(),this._initLabelMarkStyle()}_initArcMark(){var t,e;if(this._sunburst.visible===!1)return;const i=this._createMark(Ma.mark.sunburst,{isSeriesMark:!0,customShape:(t=this._spec.sunburst)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.sunburst)===null||e===void 0?void 0:e.stateSort});this._sunburstMark=i}_initArcMarkStyle(){C(this._sunburstMark)||this.setMarkStyle(this._sunburstMark,{x:t=>t.x+(P(this._offsetX)?this._offsetX:0),y:t=>t.y+(P(this._offsetY)?this._offsetY:0),outerRadius:t=>t.outerRadius,innerRadius:t=>t.innerRadius,startAngle:t=>t.startAngle,endAngle:t=>t.endAngle,fill:this.getColorAttribute()},dt.STATE_NORMAL,tt.Series)}_initLabelMark(){if(this._label.visible!==!0)return;const t=this._createMark(Ma.mark.label,{isSeriesMark:!1});this._labelMark=t}_initLabelMarkStyle(){C(this._labelMark)||this.setMarkStyle(this._labelMark,{visible:t=>{var e;const i=this._labelAutoVisible;return Ct(i)&&i.enable===!0?(t.endAngle-t.startAngle)*(t.outerRadius-t.innerRadius)>((e=i==null?void 0:i.circumference)!==null&&e!==void 0?e:Ent):this._spec.label.visible},x:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.x)+(P(this._offsetX)?this._offsetX:0)},y:t=>{var e;return((e=t.label)===null||e===void 0?void 0:e.y)+(P(this._offsetY)?this._offsetY:0)},textBaseline:t=>{var e;return(e=t.label)===null||e===void 0?void 0:e.textBaseline},textAlign:t=>{var e;return(e=t.label)===null||e===void 0?void 0:e.textAlign},angle:t=>{var e,i;return(i=(e=t.label)===null||e===void 0?void 0:e.angle)!==null&&i!==void 0?i:0},fontSize:10,text:t=>t.name},dt.STATE_NORMAL,tt.Series)}initTooltip(){this._tooltipHelper=new Rnt(this),this._sunburstMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._sunburstMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}initAnimation(){var t,e;const i={animationInfo:()=>({innerRadius:this._computeRadius(H(this.__innerRadius))[0],outerRadius:this._computeRadius(H(this.__outerRadius))[0],startAngle:H(this._startAngle)[0],endAngle:H(this._endAngle)[0]})},s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this.getMarksInType("arc").forEach(r=>{var a;r.setAnimationConfig(zt((a=L.getAnimationInKey("sunburst"))===null||a===void 0?void 0:a(i,s),Wt(r.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(r=>{var a;r.setAnimationConfig(zt((a=L.getAnimationInKey("fadeInOut"))===null||a===void 0?void 0:a(),Wt(r.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.drill&&this.bindDrillEvent()}onLayoutEnd(t){super.onLayoutEnd(t),this._rawData.reRunAllTransform()}_computeRadius(t){return V(t)?t.map(e=>this._computeLayoutRadius()*e):this._computeLayoutRadius()*t}_computeLevel(){return{innerRadius:this._computeRadius(this.__innerRadius),outerRadius:this._computeRadius(this.__outerRadius),gap:this._gap,label:this._labelLayout}}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._sunburstMark]}}Ma.type=j.sunburst,Ma.mark=OO,$e(Ma,FS);const Int=()=>{L.registerSeries(Ma.type,Ma),Qo(),wn(),Dr(),pnt()},Ont=(n,t)=>{if(!n)return n;const e=t(),{width:i,height:s}=e;return i===0||s===0?n:new du(e).layout(n,{width:i,height:s})};class Lnt extends un{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}}const Dnt=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"growRadiusIn"},Fnt=()=>{L.registerAnimation("circlePacking",(n,t)=>({appear:Dnt(t),enter:{type:"growRadiusIn"},exit:{type:"growRadiusOut"},disappear:{type:"growRadiusOut"}}))};class wa extends as{constructor(){super(...arguments),this.type=j.circlePacking}setCategoryField(t){return this._categoryField=t,this._categoryField}getCategoryField(){return this._categoryField}setValueField(t){return this._valueField=t,this._valueField}getValueField(){return this._valueField}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:xr),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e;return(e=this._spec.drillField)!==null&&e!==void 0?e:Qn},getRawData:()=>this.getRawData()}),this._circlePacking=this._spec.circlePacking,this._label=this._spec.label,this._layoutPadding=this._spec.layoutPadding}initData(){super.initData();const t=this.getRawData();C(t)||(this._spec.drill&&this.initDrillableData(this._dataSet),Tt(this._dataSet,"circlePackingLayout",Ont),Tt(this._dataSet,"flatten",zu),t.transform({type:"circlePackingLayout",options:()=>({nodeKey:this._categoryField,padding:this._layoutPadding,includeRoot:!1,width:this.getLayoutRect().width||1,height:this.getLayoutRect().height||1})}),t.transform({type:"flatten",options:{callback:e=>{if(e.datum){const i=e.datum[e.depth];return Object.assign(Object.assign({},e),i)}return e}}}))}_addDataIndexAndKey(){const t=this.getRawData();C(t==null?void 0:t.dataSet)||(Tt(t.dataSet,"addVChartProperty",Oh),t.transform({type:"addVChartProperty",options:{beforeCall:AS.bind(this),call:Um}}))}initMark(){this._initCirclePackingMark(),this._initLabelMark()}initMarkStyle(){this._initCirclePackingMarkStyle(),this._initLabelMarkStyle()}_initCirclePackingMark(){var t,e;if(((t=this._circlePacking)===null||t===void 0?void 0:t.visible)===!1)return;const i=this._createMark(wa.mark.circlePacking,{isSeriesMark:!0,customShape:(e=this._spec.circlePacking)===null||e===void 0?void 0:e.customShape});this._circlePackingMark=i}_initCirclePackingMarkStyle(){C(this._circlePackingMark)||this.setMarkStyle(this._circlePackingMark,{x:t=>t.x,y:t=>t.y,outerRadius:t=>t.radius,innerRadius:0,startAngle:0,endAngle:2*Math.PI,fill:this.getColorAttribute(),zIndex:t=>t.depth},dt.STATE_NORMAL,tt.Series)}_initLabelMark(){var t;if(((t=this._label)===null||t===void 0?void 0:t.visible)===!1)return;const e=this._createMark(wa.mark.label,{isSeriesMark:!1});this._labelMark=e}_initLabelMarkStyle(){C(this._labelMark)||this.setMarkStyle(this._labelMark,{x:t=>t.x,y:t=>t.y,text:t=>t.key,cursor:"pointer"},dt.STATE_NORMAL,tt.Series)}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Xc,operations:["max","min","values"]},{key:xr,operations:["values"]}])}initTooltip(){this._tooltipHelper=new Lnt(this),this._tooltipHelper.updateTooltipSpec(),this._circlePackingMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._circlePackingMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}initAnimation(){var t;const e=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;this.getMarksInType("arc").forEach(i=>{var s;i.setAnimationConfig(zt((s=L.getAnimationInKey("circlePacking"))===null||s===void 0?void 0:s(void 0,e),Wt(i.name,this._spec,this._markAttributeContext)))}),this.getMarksInType("text").forEach(i=>{var s;i.setAnimationConfig(zt((s=L.getAnimationInKey("scaleInOut"))===null||s===void 0?void 0:s(),Wt(i.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.drill&&this.bindDrillEvent()}onLayoutEnd(t){super.onLayoutEnd(t),this._rawData.reRunAllTransform()}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._circlePackingMark]}}wa.type=j.circlePacking,wa.mark=FO,$e(wa,FS);const znt=()=>{L.registerSeries(wa.type,wa),Qo(),wn(),Wm(),Fnt()},qD=n=>{let t=0;return n.forEach((e,i)=>{var s;C(e.value)&&(!((s=e.children)===null||s===void 0)&&s.length?e.value=qD(e.children):e.value=0),t+=Math.abs(e.value)}),t};function nP(n){return n.depth}function sP(n,t){return t-1-n.endDepth}function jnt(n,t){return n.sourceLinks.length?n.depth:t-1}function Hnt(n,t,e){return n.targetLinks.length?n.depth:n.sourceLinks.length?ti(n.sourceLinks.map(i=>e[i.target].depth))-1:0}const Ep=(n,t)=>(n==null?void 0:n.y0)-(t==null?void 0:t.y0),rP=(n,t)=>{if(C(n.value))return null;const e=(t?n.targetLinks:n.sourceLinks).reduce((i,s)=>(C(s.value)?i.count+=1:i.sum+=s.value,i),{sum:0,count:0});return e.count>0?(n.value-e.sum)/e.count:null},Vnt={left:nP,right:sP,justify:jnt,center:Hnt,start:nP,end:sP},Wnt=Kl(0,1);class ju{constructor(t){this._ascendingSourceBreadth=(s,r)=>Ep(this._nodeMap[s.source],this._nodeMap[r.source])||s.index-r.index,this._ascendingTargetBreadth=(s,r)=>Ep(this._nodeMap[s.target],this._nodeMap[r.target])||s.index-r.index,this.options=Object.assign({},ju.defaultOptions,t);const e=this.options.nodeKey,i=G(e)?e:e?bs(e):null;this._getNodeKey=i,this._logger=Lt.getInstance(),this._alignFunc=G(this.options.setNodeLayer)?s=>this.options.setNodeLayer(s.datum):Vnt[this.options.nodeAlign]}layout(t,e){if(!t)return null;const i="width"in e?{x0:0,x1:e.width,y0:0,y1:e.height,width:e.width,height:e.height}:{x0:Math.min(e.x0,e.x1),x1:Math.max(e.x0,e.x1),y0:Math.min(e.y0,e.y1),y1:Math.max(e.y0,e.y1),width:Math.abs(e.x1-e.x0),height:Math.abs(e.y1-e.y0)};Zk(this.options.direction)?this._viewBox={x0:i.y0,x1:i.y1,y0:i.x0,y1:i.x1,width:i.height,height:i.width}:this._viewBox=i;const s=this.computeNodeLinks(t),r=s.nodes;let a=s.links;if(this._nodeMap=s.nodeMap,this.computeNodeValues(r),this.computeNodeDepths(r),["right","end","justify"].includes(this.options.nodeAlign)&&this.computeNodeEndDepths(r),this._maxDepth<=1)return null;const o=this.computeNodeBreadths(r);return this.computeLinkBreadths(r),r.forEach(l=>{l.sourceLinks=l.sourceLinks.filter(h=>!C(h.source)&&!C(h.target)),l.targetLinks=l.targetLinks.filter(h=>!C(h.source)&&!C(h.target))}),a=a.filter(l=>!C(l.source)&&!C(l.target)),Zk(this.options.direction)&&(r.forEach(l=>{const h=l.y0,d=l.y1;l.y0=l.x0,l.y1=l.x1,l.x0=h,l.x1=d}),a.forEach(l=>{l.vertical=!0;const h=l.x0,d=l.x1;l.x0=l.y0,l.x1=l.y1,l.y0=h,l.y1=d})),a.forEach(l=>{const h=this._nodeMap[l.source],d=this._nodeMap[l.target];l.sourceRect={x0:h.x0,x1:h.x1,y0:h.y0,y1:h.y1},l.targetRect={x0:d.x0,x1:d.x1,y1:d.y1,y0:d.y0}}),{nodes:r,links:a,columns:o}}computeHierarchicNodeLinks(t){const e=[],i=[],s={},r={},a=[];qD(t);const o=(l,h,d)=>{l.forEach((c,u)=>{const p=this._getNodeKey?this._getNodeKey(c):d?`${d[d.length-1].key}-${u}`:`${h}-${u}`,g=C(c.value)?0:Ja(c.value);if(s[p])s[p].value=void 0;else{const f={depth:h,datum:c,index:u,key:p,value:g,sourceLinks:[],targetLinks:[]};s[p]=f,e.push(f)}d&&a.push({source:d[d.length-1].key,target:p,value:g,parents:d}),c.children&&c.children.length&&o(c.children,h+1,d?d.concat([s[p]]):[s[p]])})};return o(t,0,null),a.forEach((l,h)=>{const d=`${l.source}-${l.target}`,c=Ea(l,["parents"]);if(c.parents=l.parents.map(p=>Ea(p,["sourceLinks","targetLinks"])),r[d])return r[d].value+=Ja(l.value),void r[d].datum.push(c);const u={index:h,key:`${l.source}-${l.target}`,source:l.source,target:l.target,datum:[c],value:l.value,parents:l.parents.map(p=>p.key)};i.push(u),s[l.source].sourceLinks.push(u),s[l.target].targetLinks.push(u),r[d]=u}),{nodes:e,links:i,nodeMap:s}}computeSourceTargetNodeLinks(t){const e=[],i=[],s={};t.nodes&&t.nodes.forEach((a,o)=>{const l={depth:-1,datum:a,index:o,key:this._getNodeKey?this._getNodeKey(a):o,value:a.value,sourceLinks:[],targetLinks:[]};s[l.key]=l,e.push(l)});const r=[];return t.links.forEach((a,o)=>{const l=!C(a.source),h=!C(a.target);if(t.nodes&&(!s[a.source]||!s[a.target]))return;t.nodes||!l||s[a.source]||(s[a.source]={value:void 0,depth:-1,index:e.length,key:a.source,datum:null,sourceLinks:[],targetLinks:[]},e.push(s[a.source])),t.nodes||!h||s[a.target]||(s[a.target]={value:void 0,depth:-1,index:e.length,key:a.target,datum:null,sourceLinks:[],targetLinks:[]},e.push(s[a.target]));const d={index:o,source:a.source,target:a.target,datum:a,value:a.value};this.options.divideNodeValueToLink&&C(a.value)&&r.push(d),i.push(d),l&&s[a.source].sourceLinks.push(d),h&&s[a.target].targetLinks.push(d)}),this.options.divideNodeValueToLink&&r.length&&r.forEach(a=>{const o=[rP(s[a.source]),rP(s[a.target],!0)].filter(l=>!C(l));o.length&&(a.value=ti(o))}),{nodeMap:s,nodes:e,links:i}}computeNodeLinks(t){let e;"links"in t?e=this.computeSourceTargetNodeLinks(t):(this._isHierarchic=!0,e=this.computeHierarchicNodeLinks(t.nodes));let i=e.nodes;const s=e.links;if(this.options.linkSortBy)for(let r=0,a=i.length;rr.targetLinks.length||r.sourceLinks.length)),{nodes:i,links:s,nodeMap:e.nodeMap}}computeNodeValues(t){for(let e=0,i=t.length;e{var o;return r+((o=Ja(a.value))!==null&&o!==void 0?o:0)},0),s.targetLinks.reduce((r,a)=>{var o;return r+((o=Ja(a.value))!==null&&o!==void 0?o:0)},0))}}computeNodeDepths(t){const e=t.length;let i,s,r=t,a=0;for(;r.length&&ae&&this._logger.warn("Error: there is a circular link"),this._maxDepth=a}computeNodeEndDepths(t){const e=t.length;let i,s,r=t,a=0;for(;r.length&&ae&&this._logger.warn("Error: there is a circular link")}computeNodeLayers(t){const e=this.options.nodeWidth,i=this.options.linkWidth,s=this.options.minStepWidth,r=this._viewBox.width;let a=null,o=null,l=!1;if(at(e)){const d=Fe(parseFloat(e.replace("%",""))/100,0,1);let c=r/(this._maxDepth-1+d);s>0&&(c=Math.max(s,c)),a=c*d,o=c*(1-d),l=!0}else if(nt(e)){if(a=e,nt(i))o=i;else if(C(i)){let d=(r-e)/(this._maxDepth-1);s>0&&(d=Math.max(s,d)),o=d-e}l=!0}else G(e)&&nt(i)&&(o=i);const h=[];for(let d=0,c=t.length;d{const f=g.reduce((m,y)=>m+y.value,0),_=g.reduce((m,y)=>m+this.options.nodeGap(y),0);return Math.min(p,(this._viewBox.height-_)/f)},1/0);else{const p=t.reduce((_,m)=>Math.max(_,m.length),0),g=this._viewBox.height/p,f=Math.min(this.options.nodeGap,g);if(o=()=>f,this._gapY=f,(r+f)*p>this._viewBox.height&&(r=g-f),this.options.equalNodeHeight)l=this._viewBox.height/p-f;else{const _=r>0?Math.max(f,r):f;a=t.reduce((m,y)=>{const b=y.reduce((v,x)=>v+x.value,0);return Math.min(m,(this._viewBox.height-((y.length-1)*_+r))/b)},1/0)}}const h=this.options.gapPosition==="start",d=!h&&this.options.gapPosition!=="end",c=nt(this.options.nodeHeight)?p=>this.options.nodeHeight:G(this.options.nodeHeight)?this.options.nodeHeight:l>0?p=>l:p=>Math.max(p.value*a,0),u=nt(this.options.linkHeight)?()=>this.options.linkHeight:G(this.options.linkHeight)?this.options.linkHeight:(p,g,f)=>Math.max(g.value?f*Wnt(p.value/g.value):0,s,0);for(let p=0,g=t.length;p0){if(this.options.crossNodeAlign!=="start")if(this.options.crossNodeAlign==="end")for(let x=0,S=f.length;x1&&(v/=f.length-1,m+v>=0)){m+=v,this._gapY=Math.min(m);for(let x=1,S=f.length;x0))continue;const u=(d/c-h.y0)*e;h.y0+=u,h.y1+=u,this.reorderNodeLinks(h)}C(this.options.nodeSortBy)&&a.sort(Ep),this.resolveCollisions(a,i)}}relaxRightToLeft(t,e,i){for(let s=t.length-2;s>=0;--s){const r=t[s];for(let a=0,o=r.length;a0))continue;const c=(h/d-l.y0)*e;l.y0+=c,l.y1+=c,this.reorderNodeLinks(l)}this.options.nodeSortBy===void 0&&r.sort(Ep),this.resolveCollisions(r,i)}}resolveCollisions(t,e){const i=t.length>>1,s=t[i];this.resolveCollisionsBottomToTop(t,s.y0-this._gapY,i-1,e),this.resolveCollisionsTopToBottom(t,s.y1+this._gapY,i+1,e),this.resolveCollisionsBottomToTop(t,this._viewBox.y1,t.length-1,e),this.resolveCollisionsTopToBottom(t,this._viewBox.y0,0,e)}resolveCollisionsTopToBottom(t,e,i,s){for(;i1e-6&&(r.y0+=a,r.y1+=a),e=r.y1+this._gapY}}resolveCollisionsBottomToTop(t,e,i,s){for(;i>=0;--i){const r=t[i],a=(r.y1-e)*s;a>1e-6&&(r.y0-=a,r.y1-=a),e=r.y0-this._gapY}}targetTop(t,e){let i,s,r,a=t.y0-(t.sourceLinks.length-1)*this._gapY/2;for(i=0,s=t.sourceLinks.length;is.y1||a?(d.y0=s.y1-d.thickness/2,a=!0):r+=d.thickness}let o=s.y0;a=!1;for(let l=0,h=s.targetLinks.length;ls.y1||a?(d.y1=s.y1-d.thickness/2,a=!0):o+=d.thickness}}}computeLinkBreadthsOverlap(t){const e=this.options.linkOverlap;for(let i=0,s=t.length;i{const e=new ju(n).layout(Array.isArray(t)?t[0]:t,"width"in n?{width:n.width,height:n.height}:{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1});return e?[e]:[]},Gnt=()=>{it.registerTransform("sankey",{transform:Nnt,markPhase:"beforeJoin"},!0)},ZD=(n,t,e)=>{t.forEach(i=>{C(i[e])||n.add(i[e]),i.children&&i.children.length>0&&ZD(n,i.children,e)})},Unt=n=>{var t;if(!n||!V(n))return[];if(n.length>1){const e={links:[],nodes:[]};return n.forEach(i=>{i.id!=="links"&&i.id!=="nodes"||(e[i.id]=i.values)}),[e]}return!((t=n[0])===null||t===void 0)&&t.latestData?n[0].latestData:n},$nt=(n,t)=>{if(!n||!(t!=null&&t.view)||!n.length)return[];const e=t.view();if(e.x1-e.x0==0||e.y1-e.y0==0||e.x1-e.x0==-1/0||e.x1-e.x0==1/0||e.y1-e.y0==-1/0||e.y1-e.y0==1/0)return[];const i=n[0];if((t.sourceField!=="source"||t.targetField!=="target"||t.valueField!=="value")&&i.links){const a=[];i.links.forEach(o=>{const l={};for(const h in o)h===t.sourceField?l.source=o[t.sourceField]:h===t.targetField?l.target=o[t.targetField]:h===t.valueField?l.value=o[t.valueField]:l[h]=o[h];a.push(l)}),i.links=a}const s=new ju(t),r=[];return r.push(s.layout(i,e)),r},Ynt=n=>{var t,e;return n&&V(n)&&(!((t=n[0])===null||t===void 0)&&t.latestData)&&n[0].latestData.length&&n[0].latestData[0]&&(e=n[0].latestData[0].nodes)!==null&&e!==void 0?e:[]},Xnt=n=>{var t,e;return n&&V(n)&&(!((t=n[0])===null||t===void 0)&&t.latestData)&&n[0].latestData.length&&n[0].latestData[0]&&(e=n[0].latestData[0].links)!==null&&e!==void 0?e:[]};class Knt extends un{getDefaultTooltipPattern(t,e){switch(t){case"mark":return{visible:!0,activeType:t,title:{key:void 0,value:i=>{if(i.source){if(nt(i.source)){const s=this.series.getSeriesKeys();return s[i.source]+" => "+s[i.target]}return i.source+" => "+i.target}return i.datum?i.datum[this.series.getSpec().categoryField]:i.key},hasShape:!1},content:[{key:this.markTooltipKeyCallback,value:i=>i.value,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1}]};case"dimension":if(e){const i={key:void 0,value:this._getDimensionData,hasShape:!1},s=[];return e.forEach(({data:r})=>r.forEach(({series:a})=>{s.push({seriesId:a.id,key:this.markTooltipKeyCallback,value:this.markTooltipValueCallback,hasShape:!0,shapeType:this.shapeTypeCallback,shapeColor:this.shapeColorCallback,shapeStroke:this.shapeStrokeCallback,shapeHollow:!1})})),{visible:!0,activeType:t,title:i,content:s}}}return null}}const qnt=(n,t=!0)=>({type:n.direction==="horizontal"?"growWidthIn":"growHeightIn",options:{overall:t&&n.growFrom(),orient:"positive"}}),Znt=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:qnt(n),Jnt=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"linkPathGrowIn"},Qnt=()=>{L.registerAnimation("sankeyNode",(n,t)=>Object.assign({appear:Znt(n,t)},Vm)),L.registerAnimation("sankeyLinkPath",(n,t)=>({appear:Jnt(t),enter:{type:"linkPathGrowIn"},exit:{type:"linkPathGrowOut"},disappear:{type:"linkPathGrowOut"}}))};class cu extends Oi{constructor(){super(...arguments),this.type=cu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x:0,y:0,x0:0,y0:0,x1:100,y1:100,thickness:1,round:!0})}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId(),s=this.getStyle("direction");this._product=e.glyph("linkPath",t??e.rootMark).id(i).configureGlyph({direction:s}),this._compiledProductId=i}}cu.type="linkPath";const tst=()=>{J6(),L.registerMark(cu.type,cu)};class Ca extends as{constructor(){super(...arguments),this.type=j.sankey,this._nodeLayoutZIndex=re.Node,this._labelLayoutZIndex=re.Label,this._viewBox=new di,this._fillByNode=t=>{var e,i,s,r,a;if(t&&t.sourceRect&&t.targetRect)return this._fillByLink(t);const o=(i=(e=this._spec.node)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.fill;if(P(o))return o;if(P(this._spec.seriesField)){const l=(r=(s=this._option)===null||s===void 0?void 0:s.globalScale)===null||r===void 0?void 0:r.getScale("color"),h=t!=null&&t.datum?t.datum:t;return l==null?void 0:l.scale(h==null?void 0:h[this._spec.seriesField])}return(a=this._colorScale)===null||a===void 0?void 0:a.scale(this._getNodeNameFromData(t))},this._fillByLink=t=>{var e,i,s,r,a,o,l;const h=(i=(e=this._spec.link)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.fill;if(h)return h;if(P(this._spec.seriesField)){const c=(r=(s=this._nodesSeriesData)===null||s===void 0?void 0:s.getLatestData())===null||r===void 0?void 0:r.find(g=>t.source===g.key),u=c==null?void 0:c.datum,p=(o=(a=this._option)===null||a===void 0?void 0:a.globalScale)===null||o===void 0?void 0:o.getScale("color");return p==null?void 0:p.scale(u==null?void 0:u[this._spec.seriesField])}const d=nt(t.source)?this.getNodeList()[t.source]:t.source;return(l=this._colorScale)===null||l===void 0?void 0:l.scale(d)},this._handleEmphasisElement=t=>{var e;const i=(e=this._spec.emphasis)!==null&&e!==void 0?e:{},s=t.item;i.effect==="adjacency"?s&&s.mark.id().includes("node")?this._handleNodeAdjacencyClick(s):s&&s.mark.id().includes("link")?this._handleLinkAdjacencyClick(s):this._handleClearEmpty():i.effect==="related"&&(s&&s.mark.id().includes("node")?this._handleNodeRelatedClick(s):s&&s.mark.id().includes("link")?this._handleLinkRelatedClick(s):this._handleClearEmpty())},this._handleClearEmpty=()=>{var t,e,i;const s=(t=this._nodeMark)===null||t===void 0?void 0:t.getProductElements();if(!s||!s.length)return;const r=(e=this._linkMark)===null||e===void 0?void 0:e.getProductElements();if(!r||!r.length)return;const a=(i=this._labelMark)===null||i===void 0?void 0:i.getProductElements();if(!a||!a.length)return;const o=[dt.STATE_SANKEY_EMPHASIS,dt.STATE_SANKEY_EMPHASIS_REVERSE];s.forEach(l=>{l.removeState(o)}),r.forEach(l=>{l.removeState(o)}),a.forEach(l=>{l.removeState(o)})},this._handleNodeAdjacencyClick=t=>{const e=t.getDatum(),i=[e.key];if(this._linkMark){const s=this._linkMark.getProductElements();if(!s||!s.length)return;s.forEach((r,a)=>{const o=r.getDatum(),l=o!=null&&o.parents?"parents":"source";if(H(o[l]).includes(e.key)){let h;if(i.includes(o.source)||i.push(o.source),i.includes(o.target)||i.push(o.target),l==="parents"){const d=o.datum;h=(d?d.filter(c=>c.parents.some(u=>u.key===e.key)).reduce((c,u)=>c+u.value,0):0)/o.value}r.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(dt.STATE_SANKEY_EMPHASIS),r.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:h})}else o.target===e.key?i.includes(o.source)||i.push(o.source):(r.removeState(dt.STATE_SANKEY_EMPHASIS),r.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),i)},this._handleLinkAdjacencyClick=t=>{const e=t.getDatum(),i=[e.source,e.target];if(this._linkMark){const s=this._linkMark.getProductElements();if(!s||!s.length)return;s.forEach(r=>{r===t?(r.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),r.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:1})):(r.removeState(dt.STATE_SANKEY_EMPHASIS),r.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),i),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),i)},this._handleNodeRelatedClick=t=>{var e;const i=t.getDatum(),s=this._nodeMark.getProductElements();if(!s||!s.length)return;const r=this._linkMark.getProductElements();if(!(!r||!r.length))if((!((e=r[0].getDatum())===null||e===void 0)&&e.parents?"parents":"source")=="source"){const a=[i.key],o=[];if(r.forEach((l,h)=>{var d,c,u,p;const g=l.getDatum(),f=g!=null&&g.parents?"parents":"source";if(H(g[f]).includes(i.key)){if(o.includes((d=g.key)!==null&&d!==void 0?d:g.index)||o.push((c=g.key)!==null&&c!==void 0?c:g.index),a.includes(g.source)||a.push(g.source),!a.includes(g.target)){a.push(g.target);let _=s.find(m=>m.data[0].key===g.target).data[0].sourceLinks;for(;(_==null?void 0:_.length)>0;){const m=[];return _.forEach(y=>{var b,v;if(!o.includes((b=y.key)!==null&&b!==void 0?b:y.index)&&(o.push((v=y.key)!==null&&v!==void 0?v:y.index),!a.includes(y.target))){a.push(y.target);const x=s.find(S=>S.data[0].key===y.target);m.push(x.data[0].targetLinks)}}),void(_=m)}}}else if(g.target===i.key&&(o.includes((u=g.key)!==null&&u!==void 0?u:g.index)||o.push((p=g.key)!==null&&p!==void 0?p:g.index),!a.includes(g.source))){a.push(g.source);let _=s.find(m=>m.data[0].key===g.source).data[0].targetLinks;for(;(_==null?void 0:_.length)>0;){const m=[];return _.forEach(y=>{var b,v;if(!o.includes((b=y.key)!==null&&b!==void 0?b:y.index)&&(o.push((v=y.key)!==null&&v!==void 0?v:y.index),!a.includes(y.source))){a.push(y.source);const x=s.find(S=>S.data[0].key===y.source);m.push(x.data[0].targetLinks)}}),void(_=m)}}}),this._linkMark){const l=this._linkMark.getProductElements();if(!l||!l.length)return;l.forEach((h,d)=>{var c;o.includes((c=h.getDatum().key)!==null&&c!==void 0?c:h.getDatum().index)?(h.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),h.addState(dt.STATE_SANKEY_EMPHASIS)):(h.removeState(dt.STATE_SANKEY_EMPHASIS),h.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE))})}this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}else{const a=[i.key],o=i.targetLinks.reduce((l,h)=>(H(h.datum).forEach(d=>{const c=d.parents,u=c.length;for(let p=0;py.source===g&&y.target===f);m?m.value+=_:l.push({source:g,target:f,value:_})}}),l),[]);r.forEach((l,h)=>{const d=l.getDatum(),c=d!=null&&d.parents?"parents":"source",u=d.datum,p=u?u.filter(f=>f[c].some(_=>_.key===i.key)):null,g=o.find(f=>f.source===d.source&&f.target===d.target);if(p&&p.length){a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target);const f=p.reduce((_,m)=>_+m.value,0)/d.value;return l.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(dt.STATE_SANKEY_EMPHASIS),void l.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:f})}if(g)return a.includes(d.source)||a.push(d.source),a.includes(d.target)||a.push(d.target),l.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(dt.STATE_SANKEY_EMPHASIS),void l.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:g.value/d.value});l.removeState(dt.STATE_SANKEY_EMPHASIS),l.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE)}),this._nodeMark&&this._highLightElements(this._nodeMark.getProductElements(),a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}},this._handleLinkRelatedClick=t=>{var e;const i=this._nodeMark.getProductElements();if(!i||!i.length)return;const s=this._linkMark.getProductElements();if(!(!s||!s.length))if((!((e=t.getDatum())===null||e===void 0)&&e.parents?"parents":"source")=="source"){const r=[dt.STATE_SANKEY_EMPHASIS,dt.STATE_SANKEY_EMPHASIS_REVERSE];if(this._linkMark&&s.forEach(a=>{a.removeState(r)}),this._nodeMark&&i.forEach(a=>{a.removeState(r)}),this._labelMark){const a=this._labelMark.getProductElements();if(!a||!a.length)return;a.forEach(o=>{o.removeState(r)})}}else{const r=t.getDatum(),a=[r.source,r.target],o=[];H(r.datum).forEach(l=>{const h=l.parents,d=h.length;for(let c=0;c_.source===u&&_.target===p);o.push({source:h[c].key,target:h[c+1].key,value:l.value}),f?f.value+=g:o.push({source:u,target:p,value:g})}}),s.forEach(l=>{const h=l.getDatum(),d=h.datum;if(h.source===r.source&&h.target===r.target)return l.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),void l.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:1});const c=d?d.filter(p=>{const g=p.parents.map(f=>f.key);return g.includes(r.source)&&g.includes(r.target)}):null;if(c&&c.length){a.includes(h.source)||a.push(h.source),a.includes(h.target)||a.push(h.target);const p=c.filter(f=>f.parents.some((_,m)=>{var y;return _.key===r.source&&((y=f.parents[m+1])===null||y===void 0?void 0:y.key)===r.target})).reduce((f,_)=>f+_.value,0),g=p/h.value;return l.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(dt.STATE_SANKEY_EMPHASIS),void l.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:g})}const u=o.find(p=>p.source===h.source&&p.target===h.target);if(u)return a.includes(h.source)||a.push(h.source),a.includes(h.target)||a.push(h.target),l.removeState(dt.STATE_SANKEY_EMPHASIS_REVERSE),l.addState(dt.STATE_SANKEY_EMPHASIS),void l.addState(dt.STATE_SANKEY_EMPHASIS,{ratio:u.value/h.value});l.removeState(dt.STATE_SANKEY_EMPHASIS),l.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE)}),this._highLightElements(i,a),this._labelMark&&this._highLightElements(this._labelMark.getProductElements(),a)}}}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:this._spec.categoryField),this._labelLimit=(i=(e=this._spec.label)===null||e===void 0?void 0:e.limit)!==null&&i!==void 0?i:100}initData(){var t,e,i,s;super.initData();const r=this.getViewData(),a=this.getRawData();if(a&&r){Tt(this._dataSet,"sankeyLayout",$nt),Tt(this._dataSet,"sankeyFormat",Unt),a.transform({type:"sankeyFormat"},!1),r.transform({type:"sankeyLayout",options:{view:()=>({x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2}),sourceField:this._spec.sourceField,targetField:this._spec.targetField,valueField:this._spec.valueField,direction:this._spec.direction,nodeAlign:(t=this._spec.nodeAlign)!==null&&t!==void 0?t:"justify",nodeGap:(e=this._spec.nodeGap)!==null&&e!==void 0?e:8,nodeWidth:(i=this._spec.nodeWidth)!==null&&i!==void 0?i:10,linkWidth:this._spec.linkWidth,minStepWidth:this._spec.minStepWidth,minNodeHeight:(s=this._spec.minNodeHeight)!==null&&s!==void 0?s:4,minLinkHeight:this._spec.minLinkHeight,iterations:this._spec.iterations,nodeKey:this._spec.nodeKey,linkSortBy:this._spec.linkSortBy,nodeSortBy:this._spec.nodeSortBy,setNodeLayer:this._spec.setNodeLayer,dropIsolatedNode:this._spec.dropIsolatedNode,nodeHeight:this._spec.nodeHeight,linkHeight:this._spec.linkHeight,equalNodeHeight:this._spec.equalNodeHeight,linkOverlap:this._spec.linkOverlap},level:Ss.sankeyLayout});const{dataSet:o}=this._option;Tt(o,"sankeyNodes",Ynt),Tt(o,"flatten",zu);const l=new Ut(o,{name:`sankey-node-${this.id}-data`});l.parse([this.getViewData()],{type:"dataview"}),l.transform({type:"sankeyNodes"}),l.transform({type:"flatten",options:{callback:d=>{if(d.datum){const c=d.datum[d.depth];return Object.assign(Object.assign({},d),c)}return d}}},!1),l.transform({type:"addVChartProperty",options:{beforeCall:gh.bind(this),call:Ho}},!1),this._nodesSeriesData=new Ys(this._option,l),Tt(o,"sankeyLinks",Xnt);const h=new Ut(o,{name:`sankey-link-${this.id}-data`});h.parse([this.getViewData()],{type:"dataview"}),h.transform({type:"sankeyLinks"}),h.transform({type:"addVChartProperty",options:{beforeCall:gh.bind(this),call:Ho}},!1),this._linksSeriesData=new Ys(this._option,h)}}initMark(){var t,e,i,s;const r=this._createMark(Ca.mark.node,{isSeriesMark:!0,dataView:this._nodesSeriesData.getDataView(),dataProductId:this._nodesSeriesData.getProductId(),customShape:(t=this._spec.node)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.node)===null||e===void 0?void 0:e.stateSort});r&&(r.setZIndex(this._nodeLayoutZIndex),this._nodeMark=r);const a=this._createMark(Ca.mark.link,{dataView:this._linksSeriesData.getDataView(),dataProductId:this._linksSeriesData.getProductId(),customShape:(i=this._spec.link)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.link)===null||s===void 0?void 0:s.stateSort});if(a&&(this._linkMark=a),this._spec.label&&this._spec.label.visible){const o=this._createMark(Ca.mark.label,{dataView:this._nodesSeriesData.getDataView(),dataProductId:this._nodesSeriesData.getProductId()});o&&(this._labelMark=o)}}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.valueToNode=this.valueToNode.bind(this),this._markAttributeContext.valueToLink=this.valueToLink.bind(this)}valueToNode(t){const e=this._nodesSeriesData.getLatestData(),i=H(t)[0];return e&&e.find(s=>s.key===i)}valueToLink(t){const e=this._linksSeriesData.getLatestData(),i=H(t);return e&&e.find(s=>s&&s.source===i[0]&&s.target===i[1])}valueToPositionX(t){const e=this.valueToNode(t);return e==null?void 0:e.x0}valueToPositionY(t){const e=this.valueToNode(t);return e==null?void 0:e.y0}initMarkStyle(){this._initNodeMarkStyle(),this._initLinkMarkStyle(),this._initLabelMarkStyle()}_initNodeMarkStyle(){const t=this._nodeMark;t&&this.setMarkStyle(t,{x:e=>e.x0,x1:e=>e.x1,y:e=>e.y0,y1:e=>e.y1,fill:this._fillByNode},dt.STATE_NORMAL,tt.Mark)}_initLinkMarkStyle(){var t;const e=this._linkMark;e&&this.setMarkStyle(e,{x0:i=>i.x0,x1:i=>i.x1,y0:i=>i.y0,y1:i=>i.y1,thickness:i=>i.thickness,fill:this._fillByLink,direction:(t=this._spec.direction)!==null&&t!==void 0?t:"horizontal"},dt.STATE_NORMAL,tt.Series)}_initLabelMarkStyle(){this._labelMark&&(this._spec.direction==="vertical"?this._spec.label.position==="inside-start"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"left",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-middle"?this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"center",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-end"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"right",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>t.y1>=this._viewBox.y2?t.y0:t.y1,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"center",textBaseline:t=>t.y1>=this._viewBox.y2?"bottom":"top"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-start"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"left",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-middle"?this.setMarkStyle(this._labelMark,{x:t=>(t.x0+t.x1)/2,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"center",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="inside-end"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:"#ffffff",text:t=>this._createText(t),limit:t=>{var e;return(e=this._spec.label.limit)!==null&&e!==void 0?e:t.x1-t.x0},textAlign:"right",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="left"?this.setMarkStyle(this._labelMark,{x:t=>t.x0,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"right",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this._spec.label.position==="right"?this.setMarkStyle(this._labelMark,{x:t=>t.x1,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:"left",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series):this.setMarkStyle(this._labelMark,{x:t=>t.x1>=this._viewBox.x2?t.x0:t.x1,y:t=>(t.y0+t.y1)/2,fill:this._fillByNode,text:t=>this._createText(t),limit:this._labelLimit,textAlign:t=>t.x1>=this._viewBox.x2?"right":"left",textBaseline:"middle"},dt.STATE_NORMAL,tt.Series),this._labelMark.setZIndex(this._labelLayoutZIndex))}_createText(t){var e;if(C(t)||C(t.datum))return"";let i=t.datum[this._spec.categoryField]||"";return!((e=this._spec.label)===null||e===void 0)&&e.formatMethod&&(i=this._spec.label.formatMethod(i,t.datum)),i}initAnimation(){var t,e,i,s,r;const a={direction:this.direction,growFrom:()=>{var l,h;return this.direction==="horizontal"?(l=this._xAxisHelper)===null||l===void 0?void 0:l.getScale(0).scale(0):(h=this._yAxisHelper)===null||h===void 0?void 0:h.getScale(0).scale(0)}},o=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._nodeMark&&this._nodeMark.setAnimationConfig(zt((i=L.getAnimationInKey("sankeyNode"))===null||i===void 0?void 0:i(a,o),Wt("node",this._spec,this._markAttributeContext))),this._linkMark&&this._linkMark.setAnimationConfig(zt((s=L.getAnimationInKey("sankeyLinkPath"))===null||s===void 0?void 0:s(a,o),Wt("link",this._spec,this._markAttributeContext))),this._labelMark&&this._labelMark.setAnimationConfig(zt((r=L.getAnimationInKey("fadeInOut"))===null||r===void 0?void 0:r(),Wt("label",this._spec,this._markAttributeContext)))}initEvent(){var t,e,i;super.initEvent(),(t=this._nodesSeriesData.getDataView())===null||t===void 0||t.target.addListener("change",this.nodesSeriesDataUpdate.bind(this)),(e=this._linksSeriesData.getDataView())===null||e===void 0||e.target.addListener("change",this.linksSeriesDataUpdate.bind(this));const s=(i=this._spec.emphasis)!==null&&i!==void 0?i:{};if(this._option.disableTriggerEvent!==!0&&s.enable&&(s.effect==="adjacency"||s.effect==="related")){const r=s.trigger==="hover"?"pointerover":"pointerdown";this.event.on(r,{level:he.chart},this._handleEmphasisElement)}}nodesSeriesDataUpdate(){this._nodesSeriesData.updateData(),this._nodeList=null,this._setNodeOrdinalColorScale()}linksSeriesDataUpdate(){this._linksSeriesData.updateData()}_highLightElements(t,e){t&&t.length&&t.forEach(i=>{i.removeState([dt.STATE_SANKEY_EMPHASIS_REVERSE,dt.STATE_SANKEY_EMPHASIS]),e.includes(i.getDatum().key)||i.addState(dt.STATE_SANKEY_EMPHASIS_REVERSE)})}initTooltip(){this._tooltipHelper=new Knt(this),this._nodeMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nodeMark),this._linkMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark),this._labelMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark)}_setNodeOrdinalColorScale(){var t,e,i,s,r;const a=(e=(t=this._option)===null||t===void 0?void 0:t.globalScale)===null||e===void 0?void 0:e.getScale("color");if(a!=null&&a._specified)return void(this._colorScale=a);let o,l;a&&(o=a.domain(),l=a.range()),l||(l=this._getDataScheme()),o&&!C(o[0])||(o=this.getNodeList(),o.length>10&&(l=(i=this._getDataScheme()[1])===null||i===void 0?void 0:i.scheme));const h=new Ru;(r=(s=h.domain(o)).range)===null||r===void 0||r.call(s,l),this._colorScale=h}getNodeList(){var t;if(this._nodeList)return this._nodeList;const e=this._rawData.latestData[0],i=e!=null&&e.nodes?!((t=e.nodes[0])===null||t===void 0)&&t.children?Array.from(this.extractNamesFromTree(e.nodes,this._spec.categoryField)):e.nodes.map((s,r)=>s[this._spec.categoryField]):e!=null&&e.links?Array.from(this.extractNamesFromLink(e.links)):e==null?void 0:e.values.map((s,r)=>s[this._spec.categoryField]);return this._nodeList=i,i}_getNodeNameFromData(t){var e;return t!=null&&t.datum?t.datum[this._spec.categoryField]:(e=t.key)!==null&&e!==void 0?e:t[this._spec.categoryField]}extractNamesFromTree(t,e){const i=new Set;return t.forEach(s=>{i.add(s[e]),s.children&&this.extractNamesFromTree(s.children,e).forEach(r=>i.add(r))}),i}extractNamesFromLink(t){const e=new Set,{sourceField:i,targetField:s}=this._spec;return t.forEach(r=>{P(r[i])&&e.add(r[i]),P(r[s])&&e.add(r[s])}),e}getDimensionField(){return[this._spec.categoryField]}getMeasureField(){return[this._valueField]}getRawDataStatisticsByField(t,e){var i;return this._rawStatisticsCache||(this._rawStatisticsCache={}),!this._rawStatisticsCache[t]&&(this._viewDataStatistics&&this.getViewData().transformsArr.length<=1&&(!((i=this._viewDataStatistics.latestData)===null||i===void 0)&&i[t])?this._rawStatisticsCache[t]=this._viewDataStatistics.latestData[t]:this._rawData&&(this._rawStatisticsCache[t]={values:this._collectByField(t)})),this._rawStatisticsCache[t]}_collectByField(t){var e,i,s;const r=[],a=(i=(e=this.getRawData())===null||e===void 0?void 0:e.latestData)===null||i===void 0?void 0:i[0];if(!a)return[];if(a.links)!((s=a.nodes)===null||s===void 0)&&s.length&&a.nodes.forEach(o=>{o[this._seriesField]&&r.push(o[this._seriesField])});else if(a.nodes){const o=new Set;return ZD(o,a.nodes,this._seriesField),Array.from(o)}return r}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this._region.getLayoutRect().width,this._region.getLayoutRect().height),this.getViewData().reRunAllTransform()}getDefaultShapeType(){return"square"}_noAnimationDataKey(t,e){}getActiveMarks(){return[this._nodeMark,this._linkMark]}}Ca.type=j.sankey,Ca.mark=RO;const est=()=>{Gnt(),jr(),tst(),wn(),Qnt(),Dr(),L.registerSeries(Ca.type,Ca)},ist=(n,t)=>{let e={},i=t.fields;if(G(i)&&(i=i()),!(i!=null&&i.length)||!(n!=null&&n.length)||!n[0].latestData)return e;const s=n[0].latestData,r=zu(s);return e=Vb([{latestData:r}],t),e};class nst extends un{constructor(){super(...arguments),this.markTooltipKeyCallback=t=>t==null?void 0:t[this.series.getDimensionField()[0]]}get defaultShapeType(){return"square"}}const sst=n=>n==="fadeIn"?{type:"fadeIn"}:{type:"growCenterIn"},rst=()=>{L.registerAnimation("treemap",(n,t)=>({appear:sst(t),enter:{type:"growCenterIn"},exit:{type:"growCenterOut"},disappear:{type:"growCenterOut"}}))};class JD extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nonLeaf","nonLeafLabel","initNonLeafLabelMarkStyle"),this._addMarkLabelSpec(t,"leaf")}}class Fs extends as{constructor(){super(...arguments),this.type=j.treemap,this.transformerConstructor=JD,this._viewBox=new di,this._enableAnimationHook=this.enableMarkAnimation.bind(this),this.isHierarchyData=()=>!0}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField((t=this._spec.seriesField)!==null&&t!==void 0?t:xr),this._spec.roam&&(this.initZoomable(this.event,this._option.mode),this._matrix=new Re),this._spec.drill&&this.initDrillable({event:this.event,mode:this._option.mode,drillField:()=>{var e,i;return(i=(e=this._spec.drillField)!==null&&e!==void 0?e:this._categoryField)!==null&&i!==void 0?i:Qn},getRawData:()=>this.getRawData()}),z(this._spec.maxDepth)&&(this._maxDepth=this._spec.maxDepth-1)}initData(){super.initData(),this.getViewData()&&this._spec.drill&&this.initDrillableData(this._dataSet)}compile(){super.compile(),this._runTreemapTransform()}_runTreemapTransform(t=!1){var e,i,s,r;const a=this._data.getProduct();a&&a.transform([{type:"treemap",x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2,maxDepth:this._maxDepth,gapWidth:this._spec.gapWidth,padding:this._spec.nodePadding,splitType:this._spec.splitType,aspectRatio:this._spec.aspectRatio,labelPadding:!((e=this._spec.nonLeafLabel)===null||e===void 0)&&e.visible?(i=this._spec.nonLeafLabel)===null||i===void 0?void 0:i.padding:0,labelPosition:(s=this._spec.nonLeafLabel)===null||s===void 0?void 0:s.position,minVisibleArea:(r=this._spec.minVisibleArea)!==null&&r!==void 0?r:10,minChildrenVisibleArea:this._spec.minChildrenVisibleArea,minChildrenVisibleSize:this._spec.minChildrenVisibleSize,flatten:!0},{type:"map",callback:o=>(o&&[xr,"name"].forEach(l=>{o[l]=o.datum[o.depth][l]}),o)}]),t&&this.getCompiler().renderNextTick()}_addDataIndexAndKey(){var t;!((t=this._rawData)===null||t===void 0)&&t.dataSet&&(Tt(this._rawData.dataSet,"addVChartProperty",Oh),this._rawData.transform({type:"addVChartProperty",options:{beforeCall:AS.bind(this),call:Um}}))}getRawDataStatisticsByField(t,e){var i;if(!this._rawDataStatistics){const s=`${this.type}_${this.id}_rawDataStatic`;this._rawDataStatistics=this._createHierarchyDataStatistics(s,[this._rawData]),this._rawData.target.removeListener("change",this._rawDataStatistics.reRunAllTransform),this._rawDataStatistics.reRunAllTransform()}return(i=this._rawDataStatistics.latestData)===null||i===void 0?void 0:i[t]}_createHierarchyDataStatistics(t,e){Tt(this._dataSet,"hierarchyDimensionStatistics",ist),Tt(this._dataSet,"flatten",zu);const i=new Ut(this._dataSet,{name:t});return i.parse(e,{type:"dataview"}),i.transform({type:"hierarchyDimensionStatistics",options:{fields:()=>{const s=this.getStatisticFields();return this._seriesField&&this._seriesField!==this._categoryField&&s.push({key:this._seriesField,operations:["values"]}),s}}},!1),i}getStatisticFields(){return super.getStatisticFields().concat([{key:this._categoryField,operations:["values"]},{key:this._valueField,operations:["max","min"]},{key:Xc,operations:["max","min","values"]},{key:xr,operations:["values"]}])}initMark(){var t,e,i,s;const r=this._createMark(Fs.mark.nonLeaf,{isSeriesMark:!0,customShape:(t=this._spec.nonLeaf)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.nonLeaf)===null||e===void 0?void 0:e.stateSort});r&&(r.setTransform([{type:"filter",callback:o=>!this._shouldFilterElement(o,"nonLeaf")}]),this._nonLeafMark=r);const a=this._createMark(Fs.mark.leaf,{isSeriesMark:!0,customShape:(i=this._spec.leaf)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.leaf)===null||s===void 0?void 0:s.stateSort});a&&(a.setTransform([{type:"filter",callback:o=>!this._shouldFilterElement(o,"leaf")}]),this._leafMark=a)}initMarkStyle(){this._initLeafMarkStyle(),this._initNonLeafMarkStyle()}_initLeafMarkStyle(){this._leafMark&&this.setMarkStyle(this._leafMark,{x:t=>t.x0,y:t=>t.y0,x1:t=>t.x1,y1:t=>t.y1,fill:this.getColorAttribute()},dt.STATE_NORMAL,tt.Series)}_initNonLeafMarkStyle(){this._nonLeafMark&&this.setMarkStyle(this._nonLeafMark,{x:t=>t.x0,y:t=>t.y0,x1:t=>t.x1,y1:t=>t.y1,fill:this.getColorAttribute()},dt.STATE_NORMAL,tt.Series)}initLabelMarkStyle(t){t&&(this._labelMark=t,t.setRule("treemap"),this.setMarkStyle(t,{x:e=>(e.x0+e.x1)/2,y:e=>(e.y0+e.y1)/2,text:e=>{var i;return(i=e.datum[e.depth])===null||i===void 0?void 0:i[this.getDimensionField()[0]]},maxLineWidth:e=>e.x1===e.x0?Number.MIN_VALUE:e.x1-e.x0},dt.STATE_NORMAL,tt.Series),t.getTextType()==="rich"&&this.setMarkStyle(t,{maxWidth:e=>Math.abs(e.x0-e.x1),maxHeight:e=>Math.abs(e.y0-e.y1),ellipsis:!0},dt.STATE_NORMAL,tt.Series))}initNonLeafLabelMarkStyle(t){t&&(this._nonLeafLabelMark=t,t.setRule("treemap"),this.setMarkStyle(t,{x:e=>e.labelRect?(e.labelRect.x0+e.labelRect.x1)/2:(e.x0+e.x1)/2,y:e=>e.labelRect?(e.labelRect.y0+e.labelRect.y1)/2:(e.y0+e.y1)/2,text:e=>{var i;return(i=e.datum[e.depth])===null||i===void 0?void 0:i[this.getDimensionField()[0]]},maxLineWidth:e=>e.x1===e.x0?Number.MIN_VALUE:e.x1-e.x0},dt.STATE_NORMAL,tt.Series),t.getTextType()==="rich"&&this.setMarkStyle(t,{maxWidth:e=>Math.abs(e.x0-e.x1),maxHeight:e=>Math.abs(e.y0-e.y1),ellipsis:!0},dt.STATE_NORMAL,tt.Series))}initAnimation(){this.getMarksInType("rect").forEach(t=>{var e;t.setAnimationConfig(zt((e=L.getAnimationInKey("treemap"))===null||e===void 0?void 0:e(),Wt(t.name,this._spec,this._markAttributeContext)))})}initEvent(){super.initEvent(),this._spec.roam&&(this.initDragEventOfSeries(this),this.event.on("panmove",t=>{this.handlePan(t)}),this.initZoomEventOfSeries(this),this.event.on("zoom",t=>{this.handleZoom(t)})),this._spec.drill&&this.bindDrillEvent()}_getDataIdKey(){return"key"}initTooltip(){this._tooltipHelper=new nst(this),this._leafMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._leafMark),this._nonLeafMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nonLeafMark)}_shouldFilterElement(t,e){const i=t.isLeaf;return e==="leaf"?!i:i}handlePan(t){const{delta:e}=t;if(e[0]===0&&e[1]===0)return;this._matrix.reset(),this._matrix.translate(e[0],e[1]);const{a:i,b:s,c:r,d:a,e:o,f:l}=this._matrix;this._matrix.multiply(i,s,r,a,o,l),this._viewBox.transformWithMatrix(this._matrix),this._runTreemapTransform(!0)}handleZoom(t){const{scale:e,scaleCenter:i}=t;if(e===1)return;this._matrix.reset();const{x:s,y:r}=i;this._matrix.translate(s,r),this._matrix.scale(e,e),this._matrix.translate(-s,-r);const{a,b:o,c:l,d:h,e:d,f:c}=this._matrix;this._matrix.multiply(a,o,l,h,d,c),this.disableMarkAnimation(),this.event.on(ct.AFTER_DO_RENDER,this._enableAnimationHook),this._viewBox.transformWithMatrix(this._matrix),this._runTreemapTransform(!0)}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this.getLayoutRect().width,this.getLayoutRect().height),this._runTreemapTransform()}enableMarkAnimation(){this.getMarks().forEach(t=>{var e;(e=t.getProduct().animate)===null||e===void 0||e.enable()}),[this._labelMark,this._nonLeafLabelMark].forEach(t=>{t&&t.getComponent()&&t.getComponent().getProduct().getGroupGraphicItem().enableAnimation()}),this.event.off(ct.AFTER_DO_RENDER,this._enableAnimationHook)}disableMarkAnimation(){this.getMarks().forEach(t=>{var e;(e=t.getProduct().animate)===null||e===void 0||e.disable()}),[this._labelMark,this._nonLeafLabelMark].forEach(t=>{t&&t.getComponent()&&t.getComponent().getProduct().getGroupGraphicItem().disableAnimation()})}getDefaultShapeType(){return"square"}getActiveMarks(){return[this._nonLeafMark,this._leafMark]}}Fs.type=j.treemap,Fs.mark=EO,Fs.transformerConstructor=JD,$e(Fs,FS),$e(Fs,PS);const ast=()=>{jr(),wn(),rst(),Dr(),Cnt(),L.registerSeries(Fs.type,Fs)},ost=n=>({channel:{angle:{from:n.startAngle+Math.PI/2}}}),lst={type:"fadeIn"};function hst(n,t){return t==="fadeIn"?lst:ost(n)}const dst=()=>{L.registerAnimation("gaugePointer",(n,t)=>{const e=hst(n,t);return{appear:e,enter:e,disappear:{type:"fadeOut"}}})};class QD extends pn{constructor(){super(...arguments),this._supportStack=!1}}class Sr extends Fh{constructor(){super(...arguments),this.type=j.gaugePointer,this.transformerConstructor=QD,this._pinMark=null,this._pointerMark=null,this._pinBackgroundMark=null}setAttrFromSpec(){var t;super.setAttrFromSpec(),this.setRadiusField(this._spec.radiusField),this._pointerType=((t=this._spec.pointer)===null||t===void 0?void 0:t.type)==="rect"?"rect":"path"}initMark(){this._pinBackgroundMark=this._createMark(Sr.mark.pinBackground),this._pointerMark=this._createMark(Object.assign(Object.assign({},Sr.mark.pointer),{type:this._pointerType}),{isSeriesMark:!0}),this._pinMark=this._createMark(Sr.mark.pin)}initMarkStyle(){this.initPinBackgroundMarkStyle(),this.initPointerMarkStyle(),this.initPinMarkStyle()}initGroups(){}initPointerMarkStyle(){const t=this._pointerMark,e=this._spec.pointer;t&&(this.setMarkStyle(t,{x:i=>{var s,r;const{x:a}=this._getPointerAnchor(i,e);return a-this._getPointerWidth()*((r=(s=e==null?void 0:e.center)===null||s===void 0?void 0:s[0])!==null&&r!==void 0?r:0)},y:i=>{var s,r;const{y:a}=this._getPointerAnchor(i,e);return a-this._getPointerHeight(i)*((r=(s=e==null?void 0:e.center)===null||s===void 0?void 0:s[1])!==null&&r!==void 0?r:0)},anchor:i=>{const{x:s,y:r}=this._getPointerAnchor(i,e);return[s,r]},fill:this.getColorAttribute(),zIndex:200}),this._pointerType==="path"?this.setMarkStyle(t,{scaleX:this._getPointerWidth.bind(this),scaleY:this._getPointerHeight.bind(this),angle:i=>this._getPointerAngle(i)+Math.PI/2}):this.setMarkStyle(t,{width:this._getPointerWidth.bind(this),height:this._getPointerHeight.bind(this),angle:i=>this._getPointerAngle(i)-Math.PI/2}))}initTooltip(){super.initTooltip(),this._pointerMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._pointerMark)}_getPointerAnchor(t,e){var i;return(i=e.isOnCenter)===null||i===void 0||i?this.angleAxisHelper.center():this.radiusAxisHelper.coordToPoint({radius:this._innerRadius*this._computeLayoutRadius(),angle:this.angleAxisHelper.dataToPosition([t[this._angleField[0]]])})}_getPointerWidth(){return this._spec.pointer.width*this._computeLayoutRadius()}_getPointerHeight(t){var e,i;const s=this._spec.pointer,r=this._radiusField[0];return P(this.radiusAxisHelper)&&P(r)?this.radiusAxisHelper.dataToPosition([t[r]])-((e=s==null?void 0:s.innerPadding)!==null&&e!==void 0?e:0)-((i=s==null?void 0:s.outerPadding)!==null&&i!==void 0?i:10):s.height*this._computeLayoutRadius()}_getPointerAngle(t){const e=this.angleAxisHelper.getScale().domain(),i=Ve(e),s=ti(e),r=Fe(t[this._angleField[0]],s,i);return this.angleAxisHelper.dataToPosition([r])}_getRotatedPointerCenterOffset(t){var e,i,s,r;const a=this._spec.pointer,o=this._getPointerWidth()*((i=(e=a==null?void 0:a.center)===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:0),l=-this._getPointerHeight(t)*((r=(s=a==null?void 0:a.center)===null||s===void 0?void 0:s[1])!==null&&r!==void 0?r:0),h=this._getPointerAngle(t)-Math.PI/2,d=Math.cos(h),c=Math.sin(h);return{x:o*d+l*c,y:-(l*d-o*c)}}initPinBackgroundMarkStyle(){const t=this._pinBackgroundMark,e=this._spec.pinBackground;t&&this.setMarkStyle(t,{x:i=>this._getPointerAnchor(i,e).x,y:i=>this._getPointerAnchor(i,e).y,scaleX:()=>e.width*this._computeLayoutRadius(),scaleY:()=>e.height*this._computeLayoutRadius(),fill:this.getColorAttribute(),zIndex:100})}initPinMarkStyle(){const t=this._pinMark,e=this._spec.pin;t&&this.setMarkStyle(t,{x:i=>this._getPointerAnchor(i,e).x,y:i=>this._getPointerAnchor(i,e).y,scaleX:()=>e.width*this._computeLayoutRadius(),scaleY:()=>e.height*this._computeLayoutRadius(),fill:this.getColorAttribute(),zIndex:300})}initInteraction(){this._parseInteractionConfig(this._pointerMark?[this._pointerMark]:[])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._pointerMark.setAnimationConfig(zt((i=L.getAnimationInKey("gaugePointer"))===null||i===void 0?void 0:i({startAngle:this._startAngle},s),Wt("pointer",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}Sr.type=j.gaugePointer,Sr.mark=IO,Sr.transformerConstructor=QD;const cst=()=>{L.registerSeries(Sr.type,Sr),CS(),jr(),dst(),Fu(),Dh()};class t2 extends pn{constructor(){super(...arguments),this._supportStack=!1}_transformLabelSpec(t){this._addMarkLabelSpec(t,"segment")}}class Pa extends Fh{constructor(){super(...arguments),this.type=j.gauge,this.transformerConstructor=t2,this._segmentMark=null,this._trackMark=null,this._padAngle=0}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._padAngle=Jt((t=this._spec.padAngle)!==null&&t!==void 0?t:0)}initData(){var t;super.initData(),Tt(this._option.dataSet,"spiltSegment",(e,i)=>{const s=e.slice();return s.sort((r,a)=>r[this._angleField[0]]-a[this._angleField[0]]),s.forEach((r,a)=>{r[tv]=r[this._angleField[0]],r[$p]=a>0?s[a-1][tv]:void 0}),s}),(t=this.getViewData())===null||t===void 0||t.transform({type:"spiltSegment"},!1)}initMark(){super.initMark(),this._trackMark=this._createMark(Pa.mark.track,{parent:this._arcGroupMark,dataView:!1}),this._segmentMark=this._createMark(Pa.mark.segment,{parent:this._arcGroupMark,isSeriesMark:!0})}initMarkStyle(){super.initMarkStyle(),this.initTrackMarkStyle(),this.initSegmentMarkStyle()}initSegmentMarkStyle(){var t;const e=this._segmentMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._getAngleValueStart.bind(this),endAngle:this._getAngleValueEnd.bind(this),innerRadius:()=>{var i;return this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0)},outerRadius:()=>{var i,s;return this._computeLayoutRadius()*((s=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&s!==void 0?s:1)},cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,fill:this.getColorAttribute(),zIndex:200,forceShowCap:!0})}initTooltip(){super.initTooltip(),this._segmentMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._segmentMark)}initTrackMarkStyle(){var t;const e=this._trackMark;e&&this.setMarkStyle(e,{x:()=>this.angleAxisHelper.center().x,y:()=>this.angleAxisHelper.center().y,startAngle:this._startAngle,endAngle:this._endAngle,innerRadius:()=>{var i;return this._computeLayoutRadius()*((i=this._spec.innerRadius)!==null&&i!==void 0?i:0)},outerRadius:()=>{var i,s;return this._computeLayoutRadius()*((s=(i=this._spec.radius)!==null&&i!==void 0?i:this._spec.outerRadius)!==null&&s!==void 0?s:1)},cap:(t=this._spec.roundCap)!==null&&t!==void 0&&t,boundsMode:"imprecise",cornerRadius:this._spec.cornerRadius,zIndex:100})}_getAngleValueStartWithoutMask(t){const e=this._getAngleValueStartWithoutPadAngle(t),i=this._getAngleValueEndWithoutPadAngle(t);return Kl(e,(e+i)/2)(e+(i>e?1:-1)*Math.abs(this._padAngle/2))}_getAngleValueEndWithoutMask(t){const e=this._getAngleValueStartWithoutPadAngle(t),i=this._getAngleValueEndWithoutPadAngle(t);return Kl(i,(e+i)/2)(i-(i>e?1:-1)*Math.abs(this._padAngle/2))}_getAngleValueStartWithoutPadAngle(t){return P(t[$p])?this.angleAxisHelper.dataToPosition([t[$p]]):this._startAngle}_getAngleValueEndWithoutPadAngle(t){return this.angleAxisHelper.dataToPosition([t[tv]])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset;this._segmentMark.setAnimationConfig(zt((i=L.getAnimationInKey("circularProgress"))===null||i===void 0?void 0:i({startAngle:this._startAngle},s),Wt("segment",this._spec,this._markAttributeContext)))}getDefaultShapeType(){return"circle"}getActiveMarks(){return[]}}Pa.type=j.gauge,Pa.mark=BO,Pa.transformerConstructor=t2;const ust=()=>{L.registerSeries(Pa.type,Pa),Qo(),PD(),Dh()};class uu extends XL{constructor(){super(...arguments),this.type=uu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{padding:0})}}uu.type="cell";const pst=()=>{L.registerMark(uu.type,uu),D6(),zK()};function gst(n){return n===!1?{}:{type:"fadeIn"}}const fst=()=>{L.registerAnimation("heatmap",(n,t)=>Object.assign(Object.assign({},Vm),{appear:gst(t)}))};class _st extends un{getDefaultTooltipPattern(t,e){const i=super.getDefaultTooltipPattern(t,e);return P(i)&&t==="dimension"&&(i.visible=!1),i}}class e2 extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"cell")}}class Ar extends as{constructor(){super(...arguments),this.type=j.heatmap,this.transformerConstructor=e2}getFieldValue(){return this._fieldValue}setFieldValue(t){this._fieldValue=H(t)}setAttrFromSpec(){super.setAttrFromSpec(),this.setFieldValue(this._spec.valueField)}initMark(){var t,e,i,s;const r={progressiveStep:this._spec.progressiveStep,progressiveThreshold:this._spec.progressiveThreshold,large:this._spec.large,largeThreshold:this._spec.largeThreshold};this._cellMark=this._createMark(Ar.mark.cell,{morph:Fr(this._spec,Ar.mark.cell.name),defaultMorphElementKey:this.getDimensionField()[0],isSeriesMark:!0,progressive:r,customShape:(t=this._spec.cell)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.cell)===null||e===void 0?void 0:e.stateSort}),this._backgroundMark=this._createMark(Ar.mark.cellBackground,{progressive:r,customShape:(i=this._spec.cellBackground)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.cellBackground)===null||s===void 0?void 0:s.stateSort})}initMarkStyle(){this.initCellMarkStyle(),this.initCellBackgroundMarkStyle()}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this.getMeasureField()[0]]})}initCellMarkStyle(){this.setMarkStyle(this._cellMark,{x:t=>this.dataToPositionX(t),y:t=>this.dataToPositionY(t),size:()=>[this.getCellSize(this._xAxisHelper),this.getCellSize(this._yAxisHelper)],fill:this.getColorAttribute()},"normal",tt.Series)}initCellBackgroundMarkStyle(){var t,e,i;const s=ln((i=(e=(t=this._spec.cellBackground)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.padding)!==null&&i!==void 0?i:0);this.setMarkStyle(this._backgroundMark,{x:r=>{const a=this.getCellSize(this._xAxisHelper);return this.dataToPositionX(r)-a/2+s[3]},y:r=>{const a=this.getCellSize(this._yAxisHelper);return this.dataToPositionY(r)-a/2+s[0]},width:()=>this.getCellSize(this._xAxisHelper)-s[1]-s[3],height:()=>this.getCellSize(this._yAxisHelper)-s[0]-s[2]},"normal",tt.Series)}getColorAttribute(){var t;return{scale:(t=this._option.globalScale.getScale("color"))!==null&&t!==void 0?t:this._getDefaultColorScale(),field:this.getFieldValue[0]}}initInteraction(){this._parseInteractionConfig(this._cellMark?[this._cellMark]:[])}initAnimation(){var t,e,i;const s=(e=(t=this._spec)===null||t===void 0?void 0:t.animationAppear)===null||e===void 0?void 0:e.preset,r=Na(this);this._cellMark.setAnimationConfig(zt((i=L.getAnimationInKey("heatmap"))===null||i===void 0?void 0:i(s),Wt("cell",this._spec,this._markAttributeContext),r))}getCellSize(t){var e,i;return(i=(e=t.getBandwidth)===null||e===void 0?void 0:e.call(t,0))!==null&&i!==void 0?i:6}initTooltip(){this._tooltipHelper=new _st(this),this._cellMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._cellMark)}getDefaultShapeType(){return"square"}getDimensionField(){return[].concat(this.fieldX,this.fieldY)}getMeasureField(){return this.getFieldValue()}getActiveMarks(){return[this._cellMark]}}Ar.type=j.heatmap,Ar.mark=zO,Ar.transformerConstructor=e2;const mst=()=>{wn(),pst(),fst(),Mn(),Tn(),L.registerSeries(Ar.type,Ar)},vst=(n,t)=>{var e,i,s,r,a,o,l,h,d,c,u,p,g,f,_;if(!n||!(t!=null&&t.view)||!V(n))return n;const m=t.view();if(m.x1-m.x0==0||m.y1-m.y0==0||m.x1-m.x0==-1/0||m.x1-m.x0==1/0||m.y1-m.y0==-1/0||m.y1-m.y0==1/0)return n;const y=Jt((e=t.startAngle)!==null&&e!==void 0?e:-90),b=Jt((i=t.endAngle)!==null&&i!==void 0?i:270),v=Math.max((m.x1-m.x0)/2,(m.y1-m.y0)/2),x=Dn((s=t.innerRadius)!==null&&s!==void 0?s:0,v),S=Dn(t.outerRadius,v),k=[nt((r=t.center)===null||r===void 0?void 0:r[0])?t.center[0]:m.x0+Dn((o=(a=t.center)===null||a===void 0?void 0:a[0])!==null&&o!==void 0?o:"50%",m.x1-m.x0),nt((l=t.center)===null||l===void 0?void 0:l[1])?t.center[1]:m.y0+Dn((d=(h=t.center)===null||h===void 0?void 0:h[1])!==null&&d!==void 0?d:"50%",m.y1-m.y0)],A=bs(t.field),T=n.map(A),[M,w]=Fy(T),E=M===w?W=>(x+S)/2:W=>x+(S-x)*(W-M)/(w-M),R=C(t.radiusField)?A:bs(t.radiusField),O=(u=(c=t==null?void 0:t.radiusRange)===null||c===void 0?void 0:c[1])!==null&&u!==void 0?u:5;let B=W=>O;if(R){const[W,et]=R!==A?Fy(n.map(R)):[M,w],Z=(g=(p=t.radiusRange)===null||p===void 0?void 0:p[0])!==null&&g!==void 0?g:5,ht=(_=(f=t.radiusRange)===null||f===void 0?void 0:f[1])!==null&&_!==void 0?_:5;W!==et&&(B=J=>Z+(ht-Z)*(R(J)-W)/(et-W))}const I=Math.min(y,b),D=Math.max(y,b),F=yst(I,D,n.length),$=[],K=(D-I)/60;return n.forEach((W,et)=>{const Z=E(T[et]),ht=B(W);let J,N,q=F[et];for(let X=0;X<60&&(J=k[0]+Z*Math.cos(q),N=k[1]+Z*Math.sin(q),bst({x:J,y:N,size:ht},$)||J-htm.x1||N-htm.y1);X++)X<59&&(q+=K,q>D?q=I:q{let i=0,s=Math.max(Math.ceil(2*(t-n)/Math.PI),2),r=(t-n)/s,a=0,o=1,l=0,h=0;const d=[];let c=n;for(;l=2&&(r/=2,s*=2));return d},bst=(n,t)=>!(!t||!t.length)&&t.some(e=>Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2){if(!n||!V(n))return[];const{keyword:e,categoryField:i}=t,s=n[0].latestData[0];return{[i]:e,[Xi]:s==null?void 0:s[Xi],[xn]:s==null?void 0:s[xn]}};class pu extends Oi{constructor(){super(...arguments),this.type=pu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{x:0,y:0,ripple:0})}_initProduct(t){const e=this.getVGrammarView(),i=this.getProductId();this._product=e.glyph("ripplePoint",t??e.rootMark).id(i),this._compiledProductId=i}}pu.type="ripple";const i2=()=>{L.registerMark(pu.type,pu),U6()},Sst=(n,t)=>t==="fadeIn"?{type:"fadeIn"}:{type:"scaleIn"},Ast=()=>{L.registerAnimation("correlation",(n,t)=>Object.assign({appear:Sst(0,t)},bS))};class n2 extends pn{_transformLabelSpec(t){this._addMarkLabelSpec(t,"nodePoint"),this._addMarkLabelSpec(t,"centerPoint","centerLabel")}}class kr extends Du{constructor(){super(...arguments),this.type=j.correlation,this.transformerConstructor=n2,this._viewBox=new di}getCategoryField(){return this._categoryField}setCategoryField(t){return this._categoryField=t,this._categoryField}getValueField(){return this._valueField}setValueField(t){return this._valueField=t,this._valueField}getSeriesField(){return this._seriesField}setSeriesField(t){P(t)&&(this._seriesField=t)}getSizeField(){return this._sizeField}setSizeField(t){P(t)&&(this._sizeField=t)}getSizeRange(){return this._sizeRange}setSizeRange(t){P(t)&&(this._sizeRange=t)}setAttrFromSpec(){super.setAttrFromSpec(),this.setCategoryField(this._spec.categoryField),this.setValueField(this._spec.valueField),this.setSeriesField(this._spec.seriesField),this.setSizeField(this._spec.sizeField),this.setSizeRange(this._spec.sizeRange)}initData(){var t,e,i;if(super.initData(),!this._data)return;Tt(this._dataSet,"correlation",vst);const s=new Ra;br(s,"dataview",j_),Tt(s,"correlationCenter",xst);const r=new Ut(s,{name:`${this.type}_${this.id}_center`});r.parse([this.getViewData()],{type:"dataview"}),r.transform({type:"correlationCenter",options:{keyword:(i=(e=(t=this._spec.centerLabel)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.text)!==null&&i!==void 0?i:"",categoryField:this._spec.categoryField}}),this._centerSeriesData=new Ys(this._option,r)}_statisticViewData(){super._statisticViewData(),this._data.getDataView().transform({type:"correlation",options:{view:()=>({x0:this._viewBox.x1,x1:this._viewBox.x2,y0:this._viewBox.y1,y1:this._viewBox.y2}),field:this._spec.valueField,radiusRange:this._spec.sizeRange,radiusField:this._spec.sizeField,center:[this._spec.centerX,this._spec.centerY],innerRadius:this._spec.innerRadius,outerRadius:this._spec.outerRadius,startAngle:this._spec.startAngle,endAngle:this._spec.endAngle}})}initMark(){var t,e,i,s;const r=this._createMark(kr.mark.nodePoint,{groupKey:this._seriesField,isSeriesMark:!0,key:Xi,customShape:(t=this._spec.nodePoint)===null||t===void 0?void 0:t.customShape,stateSort:(e=this._spec.nodePoint)===null||e===void 0?void 0:e.stateSort});r&&(r.setZIndex(re.Node),this._nodePointMark=r);const a=this._createMark(kr.mark.ripplePoint,{key:Xi,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId()});a&&(this._ripplePointMark=a);const o=this._createMark(kr.mark.centerPoint,{key:Xi,dataView:this._centerSeriesData.getDataView(),dataProductId:this._centerSeriesData.getProductId(),customShape:(i=this._spec.centerPoint)===null||i===void 0?void 0:i.customShape,stateSort:(s=this._spec.centerPoint)===null||s===void 0?void 0:s.stateSort});o&&(o.setZIndex(re.Node),this._centerPointMark=o)}initMarkStyle(){this._initNodePointMarkStyle(),this._initRipplePointMarkStyle(),this._initCenterPointMarkStyle()}_initNodePointMarkStyle(){var t,e,i,s;const r=this._nodePointMark;if(!r)return;const a=(e=(t=this._spec.nodePoint)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this.setMarkStyle(r,{x:o=>o[cO],y:o=>o[uO],size:o=>o[pO],fill:(i=a.fill)!==null&&i!==void 0?i:this.getColorAttribute(),fillOpacity:(s=a.fillOpacity)!==null&&s!==void 0?s:1,lineWidth:0},dt.STATE_NORMAL,tt.Series)}_initRipplePointMarkStyle(){var t,e,i,s,r;const a=this._ripplePointMark;if(!a)return;const o=(e=(t=this._spec.ripplePoint)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{};this.setMarkStyle(a,{x:()=>{var l;return(l=this._spec.centerX)!==null&&l!==void 0?l:(this._viewBox.x1+this._viewBox.x2)/2},y:()=>{var l;return(l=this._spec.centerY)!==null&&l!==void 0?l:(this._viewBox.y1+this._viewBox.y2)/2},size:()=>Math.max(this._viewBox.x2-this._viewBox.x1,this._viewBox.y2-this._viewBox.y1)/2,fill:(i=o.fill)!==null&&i!==void 0?i:this.getColorAttribute(),opacity:(s=o.fillOpacity)!==null&&s!==void 0?s:.2,ripple:(r=o.ripple)!==null&&r!==void 0?r:0},dt.STATE_NORMAL,tt.Series)}_initCenterPointMarkStyle(){var t,e,i,s,r,a;const o=this._centerPointMark;o&&this.setMarkStyle(o,{x:()=>{var l;return(l=this._spec.centerX)!==null&&l!==void 0?l:(this._viewBox.x1+this._viewBox.x2)/2},y:()=>{var l;return(l=this._spec.centerY)!==null&&l!==void 0?l:(this._viewBox.y1+this._viewBox.y2)/2},size:()=>.2*Math.max(this._viewBox.x2-this._viewBox.x1,this._viewBox.y2-this._viewBox.y1)/2,fill:(i=(e=(t=this._spec.centerPoint)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.fill)!==null&&i!==void 0?i:this.getColorAttribute(),fillOpacity:(a=(r=(s=this._spec.centerPoint)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.fillOpacity)!==null&&a!==void 0?a:1},dt.STATE_NORMAL,tt.Series)}initTooltip(){super.initTooltip(),this._nodePointMark&&this._tooltipHelper.activeTriggerSet.mark.add(this._nodePointMark)}initLabelMarkStyle(t){t&&this.setMarkStyle(t,{fill:this.getColorAttribute(),text:e=>e[this._categoryField],z:this.dataToPositionZ.bind(this)},dt.STATE_NORMAL,tt.Series)}initAnimation(){var t,e;const i=(t=this._spec.animationAppear)===null||t===void 0?void 0:t.preset;this._nodePointMark.setAnimationConfig(zt((e=L.getAnimationInKey("correlation"))===null||e===void 0?void 0:e({},i),Wt("nodePoint",this._spec,this._markAttributeContext)))}getGroupFields(){return[]}getStackGroupFields(){return[]}getStackValueField(){return""}getActiveMarks(){return[this._nodePointMark,this._centerPointMark]}getDimensionField(){return[this._categoryField]}getMeasureField(){return[this._valueField]}onLayoutEnd(t){super.onLayoutEnd(t),this._viewBox.set(0,0,this._region.getLayoutRect().width,this._region.getLayoutRect().height),this._rawData.reRunAllTransform(),this.getViewData().reRunAllTransform()}}kr.type=j.correlation,kr.mark=jO,kr.transformerConstructor=n2;const kst=()=>{zr(),i2(),L.registerSeries(kr.type,kr),Ast()};class s2 extends os{_isValidSeries(t){return t===j.map}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{type:t.type,nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,map:t.map,nameProperty:t.nameProperty,centroidProperty:t.centroidProperty,nameMap:t.nameMap,area:t.area,defaultFillColor:t.defaultFillColor,showDefaultName:t.showDefaultName})}transformSpec(t){super.transformSpec(t),t.region.forEach(i=>{i.coordinate="geo"});const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}}class Wd extends xe{constructor(){super(...arguments),this.transformerConstructor=s2,this.type="map",this.seriesType=j.map}}Wd.type="map",Wd.seriesType=j.map,Wd.transformerConstructor=s2;const Tst=()=>{Ttt(),L.registerChart(Wd.type,Wd)};class zS extends os{_isValidSeries(t){return!this.seriesType||t===this.seriesType}getIndicatorSpec(t){var e,i,s;const r=H(t.indicator),a=(e=t.innerRadius)!==null&&e!==void 0?e:(s=(i=t.series)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.innerRadius;return P(a)&&r.forEach(o=>{C(o.limitRatio)&&(o.limitRatio=a)}),r}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{radius:t.radius,outerRadius:t.outerRadius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,sortDataByAxis:t.sortDataByAxis}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),V(t.dataZoom)&&t.dataZoom.length>0&&t.dataZoom.forEach(e=>{e.filterMode==="axis"&&(e.filterMode="filter")}),this.transformSeriesSpec(t),P(t.indicator)&&(t.indicator=this.getIndicatorSpec(t))}}class r2 extends zS{needAxes(){return!1}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{seriesField:t.seriesField,categoryField:t.categoryField||t.radiusField,valueField:t.valueField||t.angleField,startAngle:t.startAngle,endAngle:t.endAngle,radius:t.radius,innerRadius:t.innerRadius,centerX:t.centerX,centerY:t.centerY})}_transformProgressAxisSpec(t,e,i,s,r){var a,o;t.axes||(t.axes=[]);let l=((a=t.axes)!==null&&a!==void 0?a:[]).find(c=>c.orient==="radius"),h=((o=t.axes)!==null&&o!==void 0?o:[]).find(c=>c.orient==="angle");h||(h=e,t.axes.push(h)),l||(l=i,t.axes.push(l)),C(h.type)&&(h.type="linear"),C(l.type)&&(l.type="band");const d=Yc(h,{min:0,max:1});C(h.min)&&(h.min=d.min),C(h.max)&&(h.max=d.max),s&&Object.assign(h,vt({},s,h)),r&&Object.assign(l,vt({},r,l))}}class a2 extends zS{needAxes(){return!0}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField||t.angleField,valueField:t.valueField||t.radiusField})}transformSpec(t){var e;if(super.transformSpec(t),this.needAxes()){t.axes||(t.axes=[]);const i={radius:!1,angle:!1};((e=t.axes)!==null&&e!==void 0?e:[]).forEach(s=>{const{orient:r}=s;r==="radius"&&(i.radius=!0),r==="angle"&&(i.angle=!0)}),i.angle||t.axes.push({orient:"angle"}),i.radius||t.axes.push({orient:"radius"})}}}class Hu extends zS{needAxes(){return!1}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField||t.seriesField,valueField:t.valueField||t.angleField,center:t.center,centerOffset:t.centerOffset,cornerRadius:t.cornerRadius,padAngle:t.padAngle,minAngle:t.minAngle,layoutRadius:t.layoutRadius})}}class jS extends xe{constructor(){super(...arguments),this.transformerConstructor=Hu}}jS.transformerConstructor=Hu;class Nd extends jS{constructor(){super(...arguments),this.transformerConstructor=Hu,this.type="pie",this.seriesType=j.pie}}Nd.type="pie",Nd.seriesType=j.pie,Nd.transformerConstructor=Hu;const Mst=()=>{_et(),L.registerChart(Nd.type,Nd)};class o2 extends Hu{transformSpec(t){super.transformSpec(t),t.series.forEach(e=>{e.type==="pie3d"&&(e.angle3d=t.angle3d)})}}class Gd extends jS{constructor(){super(...arguments),this.transformerConstructor=o2,this.type="pie3d",this.seriesType=j.pie3d}}Gd.type="pie3d",Gd.seriesType=j.pie3d,Gd.transformerConstructor=o2;const wst=()=>{met(),L.registerChart(Gd.type,Gd)};class l2 extends a2{_getDefaultSeriesSpec(t){var e,i,s;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{radius:(e=t.radius)!==null&&e!==void 0?e:jc,outerRadius:(i=t.outerRadius)!==null&&i!==void 0?i:jc,innerRadius:(s=t.innerRadius)!==null&&s!==void 0?s:0,seriesField:t.seriesField,stack:t.stack,percent:t.percent})}transformSpec(t){var e;super.transformSpec(t),((e=t.axes)!==null&&e!==void 0?e:[]).forEach(i=>{["domainLine","grid","label","tick"].forEach(s=>{i[s]||(i[s]={visible:!1})}),i.orient==="angle"&&C(i.bandPosition)&&(i.bandPosition=.5)}),t.crosshair=H(t.crosshair||{}).map(i=>vt({categoryField:{visible:!0,line:{visible:!0,type:"rect"}}},i))}}class Ud extends xe{constructor(){super(...arguments),this.transformerConstructor=l2,this.type="rose",this.seriesType=j.rose,this._canStack=!0}}Ud.type="rose",Ud.seriesType=j.rose,Ud.transformerConstructor=l2;const Cst=()=>{Tet(),L.registerChart(Ud.type,Ud)};class h2 extends a2{_getDefaultSeriesSpec(t){var e;return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{seriesField:t.seriesField,line:t.line,point:t.point,stack:t.stack,percent:t.percent,area:vt({visible:!1},t.area),seriesMark:(e=t.seriesMark)!==null&&e!==void 0?e:"area",activePoint:t.activePoint,pointDis:t.pointDis,pointDisMul:t.pointDisMul,markOverlap:t.markOverlap})}transformSpec(t){var e;super.transformSpec(t),((e=t.axes)!==null&&e!==void 0?e:[]).forEach(i=>{i.orient==="radius"&&(["domainLine","label","tick"].forEach(s=>{i[s]||(i[s]={visible:!1})}),i.grid||(i.grid={visible:!0}))}),t.crosshair=H(t.crosshair||{}).map(i=>vt({categoryField:{visible:!0,line:{visible:!0,type:"line"}}},i))}}class $d extends xe{constructor(){super(...arguments),this.transformerConstructor=h2,this.type="radar",this.seriesType=j.radar,this._canStack=!0}}$d.type="radar",$d.seriesType=j.radar,$d.transformerConstructor=h2;const Pst=()=>{Ret(),L.registerChart($d.type,$d)};class d2 extends os{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return delete e.data,e}_transformAxisSpec(t){t.axes&&t.autoBandSize&&t.series.forEach((e,i)=>{var s;if(e.type==="bar"){const r=this._findBandAxisBySeries(e,i,t.axes);if(r&&!r.bandSize&&!r.maxBandSize&&!r.minBandSize){const a=Ct(e.autoBandSize)&&(s=e.autoBandSize.extend)!==null&&s!==void 0?s:0,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d}=e;this._applyAxisBandSize(r,a,{barMaxWidth:o,barMinWidth:l,barWidth:h,barGapInGroup:d})}}})}transformSpec(t){if(super.transformSpec(t),t.series&&t.series.length){const e=this._getDefaultSeriesSpec(t);t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})})}t.axes&&t.axes.length&&t.axes.forEach(e=>{Pt(e,"trimPadding")&&vt(e,pL(this.type,t))}),this._transformAxisSpec(t)}}class d_ extends xe{constructor(){super(...arguments),this.transformerConstructor=d2,this.type="common",this._canStack=!0}}d_.type="common",d_.transformerConstructor=d2;const Est=()=>{L.registerChart(d_.type,d_)},$b=12;class c2 extends os{_getSeriesDataLength(t,e){var i,s;if(e.data){const a=H(e.data)[0];return a instanceof Ut?(i=a.latestData)===null||i===void 0?void 0:i.length:(s=a.values)===null||s===void 0?void 0:s.length}const r=H(t.data).find((a,o)=>e.dataId?a instanceof Ut?a.name===e.dataId:a.id===e.dataId:e.dataIndex===o);return r?r instanceof Ut?r.latestData.length:r.values.length:0}addAttrToComponentSpec(t,e,i){return Array.isArray(t)?t[0][e]=i:t[e]=i,t}transformSpec(t){var e,i,s,r,a,o,l,h,d,c,u;super.transformSpec(t);let p=0;const g=[],f=[],_=[],m=[],y=[],b=t.series.filter(A=>A.type!==j.link).length,v=(500-20*(b-1))/b,x=((e=t==null?void 0:t.appendPadding)===null||e===void 0?void 0:e.left)||0,S=((i=t==null?void 0:t.appendPadding)===null||i===void 0?void 0:i.right)||0;if(t!=null&&t.legends){g.push({modelId:`legendRow${p}`,col:1,row:p}),this.addAttrToComponentSpec(t.legends,"id",`legendRow${p}`);const A=H(t.legends);let T=(s=A[0].height)!==null&&s!==void 0?s:40;if(A[0].padding){const M=Pr(A[0].padding);T+=Number((r=M==null?void 0:M.bottom)!==null&&r!==void 0?r:0),T+=Number((a=M==null?void 0:M.top)!==null&&a!==void 0?a:0),A[0].offsetY=Number((l=(o=A[0])===null||o===void 0?void 0:o.offsetY)!==null&&l!==void 0?l:0)+Number((h=M==null?void 0:M.top)!==null&&h!==void 0?h:0)}y.push({index:p,size:T}),p++}t!=null&&t.dataZoom&&(g.push({modelId:`dataZoomRow${p}`,col:1,row:p}),this.addAttrToComponentSpec(t.dataZoom,"id",`dataZoomRow${p}`),p++,y.push({index:p,size:10}),p++),f.push({id:`regionAxesRow${p}`}),g.push({modelId:`axesRow${p}`,col:1,row:p}),t.axes[0].id=`axesRow${p}`,t.axes[0].regionIndex=Array.from(Array(t.series.length),(A,T)=>T+1),p++,(d=t==null?void 0:t.series)===null||d===void 0||d.forEach(A=>{var T,M;if([j.bar,j.line,j.area,j.dot].includes(A.type)){if(g.push({modelId:`${A.type}Row${p}`,col:1,row:p}),g.push({modelId:`axesLeftRow${p}`,col:0,row:p}),f.push({id:`${A.type}Row${p}`,clip:!1}),y.push({index:p,size:(A==null?void 0:A.height)||v}),_.push({orient:"left",id:`axesLeftRow${p}`,type:A.type===j.dot?"band":"linear",visible:A.type!==j.dot,title:{visible:!0,autoRotate:!1,style:{text:A==null?void 0:A.barTitle,dx:-20,textBaseline:"middle",textAlign:"end"}},grid:{visible:typeof((T=A==null?void 0:A.grid)===null||T===void 0?void 0:T.visible)!="boolean"||((M=A==null?void 0:A.grid)===null||M===void 0?void 0:M.visible),style:(w,E)=>{var R,O,B,I,D;let F=0;if(E===0){const $=(R=A==null?void 0:A.grid)===null||R===void 0?void 0:R.style;F=(B=(O=$==null?void 0:$.lineWidth)!==null&&O!==void 0?O:$==null?void 0:$.strokeWidth)!==null&&B!==void 0?B:1}return{lineWidth:F,stroke:((D=(I=A==null?void 0:A.grid)===null||I===void 0?void 0:I.style)===null||D===void 0?void 0:D.stroke)||"#dfdfdf",lineDash:[0,0]}}},domainLine:{visible:!1},tick:{visible:!1},label:{visible:!1},regionIndex:f.length-1}),A.type===j.dot){g.push({modelId:`scrollBarRightRow${p}`,col:2,row:p});const w=this._getSeriesDataLength(t,A);let E=0;w&&(E=((A==null?void 0:A.height)||v)/(30*w)),m.push(Object.assign({orient:"right",visible:A.type===j.dot&&E<1,id:`scrollBarRightRow${p}`,start:0,end:Math.min(E,1),filterMode:"axis",regionIndex:f.length-1,axisId:`axesLeftRow${p}`},H(t==null?void 0:t.scrollBar)[0]))}A.regionIndex=f.length-1,p++,y.push({index:p,size:(A==null?void 0:A.padding)||20}),p++,A.leftAppendPadding=x,A.type===j.dot&&(A.title.style.dx=-x,A.subTitle.style.dx=-x)}}),(c=t==null?void 0:t.series)===null||c===void 0||c.forEach(A=>{if(A.type===j.link){const T=A.dotSeriesIndex+1;g.push({modelId:`${A.type}Row${T}`,col:1,row:T-1}),A.regionIndex=t.series[A.dotSeriesIndex].regionIndex,A.leftAppendPadding=x,A.height=t.series[A.dotSeriesIndex].height,A.clipHeight=t.series[A.dotSeriesIndex].clipHeight}}),t!=null&&t.legends&&this.addAttrToComponentSpec(t.legends,"regionIndex",[f.length-1]);const k={type:"grid",col:4,row:p,colWidth:[{index:0,size:x},{index:2,size:$b},{index:3,size:S}],rowHeight:y,elements:g};t.layout=k,t.region=f,(u=t.axes)===null||u===void 0||u.push(..._),t.scrollBar=m}}var Rst=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{Let(),zet(),Mn(),Tn(),L.registerChart(c_.type,c_)};class HS extends ks{transformSpec(t){super.transformSpec(t),t.axes.forEach(e=>e.type="linear")}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{x2Field:t==null?void 0:t.x2Field,y2Field:t==null?void 0:t.y2Field,barMinHeight:t==null?void 0:t.barMinHeight,barBackground:t==null?void 0:t.barBackground})}}class VS extends xe{constructor(){super(...arguments),this.transformerConstructor=HS,this._canStack=!0}}VS.transformerConstructor=HS;class s0 extends HS{transformSpec(t){super.transformSpec(t),Wa(t)}}class Yd extends VS{constructor(){super(...arguments),this.transformerConstructor=s0,this.type="histogram",this.seriesType=j.bar}}Yd.type="histogram",Yd.seriesType=j.bar,Yd.transformerConstructor=s0;const Ist=()=>{iD(),L.registerChart(Yd.type,Yd)};class Xd extends VS{constructor(){super(...arguments),this.transformerConstructor=s0,this.type="histogram3d",this.seriesType=j.bar3d}}Xd.type="histogram3d",Xd.seriesType=j.bar3d,Xd.transformerConstructor=s0;const Ost=()=>{nD(),L.registerChart(Xd.type,Xd)};class u2 extends r2{_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},s),{cornerRadius:(e=t.cornerRadius)!==null&&e!==void 0?e:0,roundCap:(i=t.roundCap)!==null&&i!==void 0&&i,progress:t.progress,track:t.track,tickMask:t.tickMask})}transformSpec(t){super.transformSpec(t),this._transformProgressAxisSpec(t,{orient:"angle",visible:!1},{orient:"radius",visible:!1},{forceInitTick:t.tickMask&&t.tickMask.visible!==!1})}}class Kd extends xe{constructor(){super(...arguments),this.transformerConstructor=u2,this.type="circularProgress",this.seriesType=j.circularProgress,this._canStack=!0}}Kd.type="circularProgress",Kd.seriesType=j.circularProgress,Kd.transformerConstructor=u2;const Lst=()=>{Wet(),L.registerChart(Kd.type,Kd)};class p2 extends r2{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},e),{radiusField:t.radiusField,pin:t.pin,pinBackground:t.pinBackground,pointer:t.pointer})}_getDefaultCircularProgressSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{type:j.circularProgress})}transformSpec(t){var e,i,s,r,a;super.transformSpec(t);let o=(e=t.series)===null||e===void 0?void 0:e.find(l=>l.type===j.gauge||l.type===j.circularProgress);C(o)&&(o=(i=t.gauge)!==null&&i!==void 0?i:this._getDefaultCircularProgressSeriesSpec(t),o.type==="circularProgress"&&(C(o.radiusField)&&C(o.categoryField)&&(o.radiusField=(r=(s=t.radiusField)!==null&&s!==void 0?s:t.categoryField)!==null&&r!==void 0?r:t.seriesField),C(o.valueField)&&C(o.angleField)&&(o.valueField=(a=t.valueField)!==null&&a!==void 0?a:t.angleField)),t.series.length===1?t.series.push(o):t.series.forEach(l=>{l.type===o.type&&Object.keys(o).forEach(h=>{h in l||(l[h]=o[h])})})),o.type===j.circularProgress?this._transformProgressAxisSpec(t,{orient:"angle",visible:!0,domainLine:{visible:!1},grid:{visible:!1}},{orient:"radius",visible:!1},{zIndex:re.Region+50}):this._transformGaugeAxisSpec(t)}_transformGaugeAxisSpec(t){var e;t.axes||(t.axes=[]);const i={radius:null,angle:null};((e=t.axes)!==null&&e!==void 0?e:[]).forEach(s=>{const{orient:r}=s;r==="radius"&&(i.radius=s),r==="angle"&&(i.angle=s)}),i.angle||(i.angle={orient:"angle",visible:!0},t.axes.push(i.angle)),i.radius||(i.radius={orient:"radius",visible:!1},t.axes.push(i.radius)),C(i.angle.type)&&(i.angle.type="linear"),C(i.radius.type)&&(i.radius.type="linear"),C(i.angle.zIndex)&&(i.angle.zIndex=re.Region+50)}}class qd extends xe{constructor(){super(...arguments),this.transformerConstructor=p2,this.type="gauge",this.seriesType=j.gaugePointer}}qd.type="gauge",qd.seriesType=j.gaugePointer,qd.transformerConstructor=p2;const Dst=()=>{cst(),ust(),L.registerChart(qd.type,qd)};class r0 extends os{transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class WS extends xe{constructor(){super(...arguments),this.transformerConstructor=r0,this.type="wordCloud",this.seriesType=j.wordCloud}}WS.transformerConstructor=r0;class g2 extends r0{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,fontFamilyField:t.fontFamilyField,fontWeightField:t.fontWeightField,fontStyleField:t.fontStyleField,colorHexField:t.colorHexField,colorMode:t.colorMode,colorList:t.colorList,rotateAngles:t.rotateAngles,fontWeightRange:t.fontWeightRange,fontSizeRange:t.fontSizeRange,maskShape:t.maskShape,keepAspect:t.keepAspect,random:t.random,wordCloudConfig:t.wordCloudConfig,wordCloudShapeConfig:t.wordCloudShapeConfig,word:t.word,fillingWord:t.fillingWord}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}}class yo extends WS{constructor(){super(...arguments),this.transformerConstructor=g2,this.type="wordCloud",this.seriesType=j.wordCloud}}yo.type="wordCloud",yo.seriesType=j.wordCloud,yo.transformerConstructor=g2;const Fst=()=>{WD(),L.registerChart(yo.type,yo)},zst=()=>{Zit(),WD(),L.registerChart(yo.type,yo)};class f2 extends r0{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{nameField:t.nameField,valueField:t.valueField,seriesField:t.seriesField,fontFamilyField:t.fontFamilyField,fontWeightField:t.fontWeightField,fontStyleField:t.fontStyleField,colorHexField:t.colorHexField,colorMode:t.colorMode,colorList:t.colorList,rotateAngles:t.rotateAngles,fontWeightRange:t.fontWeightRange,fontSizeRange:t.fontSizeRange,depth_3d:t.depth_3d,maskShape:t.maskShape,keepAspect:t.keepAspect,random:t.random,wordCloudConfig:t.wordCloudConfig,wordCloudShapeConfig:t.wordCloudShapeConfig,word:t.word,fillingWord:t.fillingWord}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}}class bo extends WS{constructor(){super(...arguments),this.transformerConstructor=f2,this.type="wordCloud3d",this.seriesType=j.wordCloud3d}}bo.type="wordCloud3d",bo.seriesType=j.wordCloud3d,bo.transformerConstructor=f2;const jst=()=>{ND(),L.registerChart(bo.type,bo)},Hst=()=>{Jit(),ND(),L.registerChart(bo.type,bo)};class a0 extends os{needAxes(){return!1}_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,funnelAlign:t.funnelAlign,funnelOrient:t.funnelOrient,heightRatio:t.heightRatio,shape:t.shape,funnel:t.funnel,transform:t.transform,outerLabel:t.outerLabel,transformLabel:t.transformLabel,isTransform:t.isTransform,maxSize:t.maxSize,minSize:t.minSize,gap:t.gap,isCone:t.isCone,range:t.range}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t);const e=this._getDefaultSeriesSpec(t);t.series&&t.series.length!==0?t.series.forEach(i=>{this._isValidSeries(i.type)&&Object.keys(e).forEach(s=>{s in i||(i[s]=e[s])})}):t.series=[e]}}class Zd extends xe{constructor(){super(...arguments),this.transformerConstructor=a0,this.type="funnel",this.seriesType=j.funnel}}Zd.type="funnel",Zd.seriesType=j.funnel,Zd.transformerConstructor=a0;const Vst=()=>{hnt(),L.registerChart(Zd.type,Zd)};class Jd extends xe{constructor(){super(...arguments),this.transformerConstructor=a0,this.type="funnel3d",this.seriesType=j.funnel3d}}Jd.type="funnel3d",Jd.seriesType=j.funnel3d,Jd.transformerConstructor=a0;const Wst=()=>{dnt(),L.registerChart(Jd.type,Jd)};class _2 extends ks{needAxes(){return!1}_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},s),{direction:(e=t.direction)!==null&&e!==void 0?e:"horizontal",cornerRadius:(i=t.cornerRadius)!==null&&i!==void 0?i:0,bandWidth:t.bandWidth,progress:t.progress,track:t.track})}transformSpec(t){var e,i;if(super.transformSpec(t),t.axes||(t.axes=[]),t.direction==="vertical"){let s=null,r=null;((e=t.axes)!==null&&e!==void 0?e:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(s=o),l==="bottom"&&(r=o)}),s||(s={orient:"left",visible:!1},t.axes.push(s)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),C(r.type)&&(r.type="band"),C(s.type)&&(s.type="linear");const a=Yc(s,{min:0,max:1});C(s.min)&&(s.min=a.min),C(s.max)&&(s.max=a.max)}else{let s=null,r=null;((i=t.axes)!==null&&i!==void 0?i:[]).forEach(o=>{const{orient:l}=o;l==="left"&&(s=o),l==="bottom"&&(r=o)}),s||(s={type:"band",orient:"left",visible:!1},t.axes.push(s)),r||(r={orient:"bottom",visible:!1},t.axes.push(r)),C(r.type)&&(r.type="linear"),C(s.type)&&(s.type="band");const a=Yc(r,{min:0,max:1});C(r.min)&&(r.min=a.min),C(r.max)&&(r.max=a.max)}}}class Qd extends xe{constructor(){super(...arguments),this.transformerConstructor=_2,this.type="linearProgress",this.seriesType=j.linearProgress,this._canStack=!0}}Qd.type="linearProgress",Qd.seriesType=j.linearProgress,Qd.transformerConstructor=_2;const Nst=()=>{Ket(),L.registerChart(Qd.type,Qd)};class m2 extends ks{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barWidth:t.barWidth,barMaxWidth:t.barMaxWidth,barMinWidth:t.barMinWidth,barGapInGroup:t.barGapInGroup,barBackground:t.barBackground,barMinHeight:t.barMinHeight,stackCornerRadius:t.stackCornerRadius});return s.bar=t.bar,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s}transformSpec(t){super.transformSpec(t),Wa(t)}}class tc extends xe{constructor(){super(...arguments),this.transformerConstructor=m2,this.type="rangeColumn",this.seriesType=j.rangeColumn}}tc.type="rangeColumn",tc.seriesType=j.rangeColumn,tc.transformerConstructor=m2;const Gst=()=>{ret(),L.registerChart(tc.type,tc)};class v2 extends ks{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{barGapInGroup:t.barGapInGroup});return s.bar3d=t.bar3d,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s}}class ec extends xe{constructor(){super(...arguments),this.transformerConstructor=v2,this.type="rangeColumn3d",this.seriesType=j.rangeColumn3d}}ec.type="rangeColumn3d",ec.seriesType=j.rangeColumn3d,ec.transformerConstructor=v2;const Ust=()=>{aet(),L.registerChart(ec.type,ec)};class y2 extends os{_getDefaultSeriesSpec(t){const e=P(t.startAngle)?t.startAngle:qx,i=P(t.endAngle)?t.endAngle:e+Zl(2*Math.PI),s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,centerX:t.centerX,centerY:t.centerY,offsetX:t.offsetX,offsetY:t.offsetY,startAngle:e,endAngle:i,innerRadius:t.innerRadius,outerRadius:t.outerRadius,gap:t.gap,labelLayout:t.labelLayout,label:t.label,labelAutoVisible:t.labelAutoVisible,drill:t.drill,drillField:t.drillField}),r=j.sunburst;return s.type=r,s[r]=t[r],s}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class ic extends xe{constructor(){super(...arguments),this.transformerConstructor=y2,this.type="sunburst",this.seriesType=j.sunburst}}ic.type="sunburst",ic.seriesType=j.sunburst,ic.transformerConstructor=y2;const $st=()=>{Int(),L.registerChart(ic.type,ic)};class b2 extends os{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,layoutPadding:t.layoutPadding,label:t.label,circlePacking:t.circlePacking,drill:t.drill,drillField:t.drillField}),i=j.circlePacking;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class nc extends xe{constructor(){super(...arguments),this.transformerConstructor=b2,this.type="circlePacking",this.seriesType=j.circlePacking}}nc.type="circlePacking",nc.seriesType=j.circlePacking,nc.transformerConstructor=b2;const Yst=()=>{znt(),L.registerChart(nc.type,nc)};class x2 extends os{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,aspectRatio:t.aspectRatio,splitType:t.splitType,maxDepth:t.maxDepth,gapWidth:t.gapWidth,nodePadding:t.nodePadding,minVisibleArea:t.minVisibleArea,minChildrenVisibleArea:t.minChildrenVisibleArea,minChildrenVisibleSize:t.minChildrenVisibleSize,roam:t.roam,drill:t.drill,drillField:t.drillField,leaf:t.leaf,nonLeaf:t.nonLeaf,nonLeafLabel:t.nonLeafLabel}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class sc extends xe{constructor(){super(...arguments),this.transformerConstructor=x2,this.type="treemap",this.seriesType=j.treemap}}sc.type="treemap",sc.seriesType=j.treemap,sc.transformerConstructor=x2;const Xst=()=>{ast(),L.registerChart(sc.type,sc)};class S2 extends Zm{transformSpec(t){super.transformSpec(t),t.legends&&H(t.legends).forEach(e=>{e.select=!1,e.hover=!1,e.filter=!1}),Wa(t)}_getDefaultSeriesSpec(t){return Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{bar:t.bar,stackLabel:t.stackLabel,leaderLine:t.leaderLine,total:t.total})}}class rc extends mo{constructor(){super(...arguments),this.transformerConstructor=S2,this.type="waterfall",this.seriesType=j.waterfall}}rc.type="waterfall",rc.seriesType=j.waterfall,rc.transformerConstructor=S2;const Kst=()=>{qtt(),L.registerChart(rc.type,rc)};class A2 extends ks{_getDefaultSeriesSpec(t){var e;const i=[t.maxField,t.medianField,t.q1Field,t.q3Field,t.minField,t.outliersField],s=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{boxPlot:t.boxPlot,direction:(e=t.direction)!==null&&e!==void 0?e:"vertical",minField:t.minField,maxField:t.maxField,q1Field:t.q1Field,medianField:t.medianField,q3Field:t.q3Field,outliersField:t.outliersField,outliersStyle:t.outliersStyle});return s[s.direction==="horizontal"?"xField":"yField"]=i,s}transformSpec(t){super.transformSpec(t),t.axes||(t.axes=[{orient:"bottom"},{orient:"left"}]),Wa(t)}}class ac extends xe{constructor(){super(...arguments),this.transformerConstructor=A2,this.type="boxPlot",this.seriesType=j.boxPlot}}ac.type="boxPlot",ac.seriesType=j.boxPlot,ac.transformerConstructor=A2;const qst=()=>{tet(),L.registerChart(ac.type,ac)};class k2 extends os{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,sourceField:t.sourceField,targetField:t.targetField,direction:t.direction,nodeAlign:t.nodeAlign,nodeGap:t.nodeGap,nodeWidth:t.nodeWidth,linkWidth:t.linkWidth,minStepWidth:t.minStepWidth,minNodeHeight:t.minNodeHeight,minLinkHeight:t.minLinkHeight,dropIsolatedNode:t.dropIsolatedNode,nodeHeight:t.nodeHeight,linkHeight:t.linkHeight,equalNodeHeight:t.equalNodeHeight,linkOverlap:t.linkOverlap,iterations:t.iterations,nodeKey:t.nodeKey,linkSortBy:t.linkSortBy,nodeSortBy:t.nodeSortBy,setNodeLayer:t.setNodeLayer,node:t.node,link:t.link,label:t.label,emphasis:t.emphasis}),i=this.seriesType;return i&&(e.type=i,e[i]=t[i]),e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class oc extends xe{constructor(){super(...arguments),this.transformerConstructor=k2,this.type="sankey",this.seriesType=j.sankey}_setStateInDatum(t,e,i,s,r){const a=V(i)?i[0]:i,o=a?Object.keys(a):null;this.getRegionsInQuerier(r).forEach(l=>{if(!a)return void l.interaction.clearEventElement(t,!0);let h=!1;l.getSeries().forEach(d=>{var c,u;let p=null;d.getMarksWithoutRoot().forEach(g=>{if(g.type==="text")return;let f=null;const _=g.getProduct();_&&((!s||G(s)&&s(d,g))&&(f=_.elements.find(m=>o.every(y=>{var b;let v=(b=m.getDatum())===null||b===void 0?void 0:b.datum;return V(v)&&(v=v[0]),a[y]==(v==null?void 0:v[y])}))),f&&(h=!0,l.interaction.startInteraction(t,f),(_.id().includes("node")||_.id().includes("link"))&&(p=f)))}),p&&((u=(c=d)._handleEmphasisElement)===null||u===void 0||u.call(c,{item:p}))}),e&&h&&l.interaction.reverseEventElement(t)})}}oc.type="sankey",oc.seriesType=j.sankey,oc.transformerConstructor=k2;const Zst=()=>{est(),L.registerChart(oc.type,oc)};class T2 extends ks{_getDefaultSeriesSpec(t){var e,i;const s=Object.assign({},super._getDefaultSeriesSpec(t));return s.area=t.area,t.direction==="horizontal"?s.xField=(e=t.xField)!==null&&e!==void 0?e:[t.minField,t.maxField]:s.yField=(i=t.yField)!==null&&i!==void 0?i:[t.minField,t.maxField],s.stack=!1,s}transformSpec(t){super.transformSpec(t),Wa(t)}}class lc extends xe{constructor(){super(...arguments),this.transformerConstructor=T2,this.type="rangeArea",this.seriesType=j.rangeArea}}lc.type="rangeArea",lc.seriesType=j.rangeArea,lc.transformerConstructor=T2;const Jst=()=>{het(),L.registerChart(lc.type,lc)};class M2 extends ks{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return Object.assign(Object.assign({},e),{valueField:t.valueField,cell:t.cell})}}class hc extends xe{constructor(){super(...arguments),this.transformerConstructor=M2,this.type="heatmap",this.seriesType=j.heatmap}}hc.type="heatmap",hc.seriesType=j.heatmap,hc.transformerConstructor=M2;const Qst=()=>{mst(),L.registerChart(hc.type,hc)};class w2 extends os{_getDefaultSeriesSpec(t){const e=Object.assign(Object.assign({},super._getDefaultSeriesSpec(t)),{categoryField:t.categoryField,valueField:t.valueField,seriesField:t.seriesField,sizeField:t.sizeField,sizeRange:t.sizeRange,centerX:t.centerX,centerY:t.centerY,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,ripplePoint:t.ripplePoint,centerPoint:t.centerPoint,centerLabel:t.centerLabel,nodePoint:t.nodePoint,label:t.label}),i=j.correlation;return e.type=i,e[i]=t[i],e}transformSpec(t){super.transformSpec(t),this.transformSeriesSpec(t)}}class dc extends xe{constructor(){super(...arguments),this.transformerConstructor=w2,this.type="correlation",this.seriesType=j.correlation}}dc.type="correlation",dc.seriesType=j.correlation,dc.transformerConstructor=w2;const trt=()=>{kst(),L.registerChart(dc.type,dc)};function C2(n){var t,e;const i=Object.assign({},n);return _t(n.style)||(i.textStyle=St(n.style)),_t(n.textStyle)||vt(i.textStyle,St(n.textStyle)),!((t=n.shape)===null||t===void 0)&&t.style&&St(i.shape.style),!((e=n.background)===null||e===void 0)&&e.style&&St(i.background.style),i}var ert=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{const e=[],i={},{series:s,seriesField:r}=t;return s().forEach(a=>{const o=r(a);let l;l=o===a.getSeriesField()?a.getSeriesInfoList():a.getSeriesInfoInField(o),l.forEach(h=>{i[h.key]||(i[h.key]=!0,e.push(h))})}),e},srt=(n,t)=>{var e,i,s;const{series:r,selected:a,field:o,data:l}=t,h=a(),d=l();if(h.length===0&&d.length)return[];if(h.length===d.length)return n;const c={};h.forEach(p=>{c[p]=!0});const u=(e=o())!==null&&e!==void 0?e:xn;return V(n)&&(!((i=n[0])===null||i===void 0)&&i.nodes)?(n[0].nodes=n[0].nodes.filter(p=>c[p.key]===!0),!((s=n[0])===null||s===void 0)&&s.links&&(n[0].links=n[0].links.filter(p=>c[p.source]===!0&&c[p.target]===!0))):P(u)&&(n=n.filter(p=>c[r.getSeriesFieldValue(p,u)]===!0)),n};class NS extends gn{constructor(){super(...arguments),this.layoutType="normal",this.layoutZIndex=re.Legend,this.layoutLevel=xs.Legend,this.specKey="legends",this._orient="left",this._visible=!0,this._position="middle",this._preSelectedData=[],this._selectedData=[],this.effect={onSelectedDataChange:()=>{Ee(this._regions,t=>{var e;(e=t.getViewData())===null||e===void 0||e.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Ee(this._regions,t=>{t.reFilterViewData()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}}}get orient(){return this._orient}get visible(){return this._visible}get position(){return this._position}getLegendData(){return this._legendData.getLatestData()}getSelectedData(){return this._selectedData}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._orient=uS(this._spec.orient)?this._spec.orient:"left",this._position=(t=this._spec.position)!==null&&t!==void 0?t:"middle",this._visible=this._spec.visible!==!1;const{regionId:e,regionIndex:i,seriesId:s,seriesIndex:r}=this._spec;P(s)&&(this._seriesUserId=H(s)),P(e)&&(this._regionUserId=H(e)),P(r)&&(this._seriesIndex=H(r)),P(i)&&(this._regionUserIndex=H(i)),this._regions=this._option.getRegionsInUserIdOrIndex(this._regionUserId,this._regionUserIndex)}created(){super.created(),this.initData()}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reRender=!0,(t==null?void 0:t.orient)!==(e==null?void 0:e.orient)?(i.reMake=!0,i):(ue(e,t)||(i.reCompile=!0),i)}changeRegions(t){}_bindLegendDataChange(){this._preSelectedData=this._selectedData.slice(),this._initSelectedData()}initData(){const t=this._initLegendData();t.target.addListener("change",this._bindLegendDataChange.bind(this)),this._legendData=new $s(this._option,t),this._initSelectedData(),Ee(this._regions,e=>{e.event.on(ft.rawDataUpdate,{filter:({model:i})=>(i==null?void 0:i.id)===e.id},()=>{this._legendData.getDataView().reRunAllTransform()})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}setSelectedData(t){var e,i,s;const r=this._selectedData;C(t)||JSON.stringify(r)===JSON.stringify(t)||(Ee(this._regions,a=>{a.legendSelectedFilter&&(t=a.legendSelectedFilter(this,t))},{userId:this._seriesUserId,specIndex:this._seriesIndex}),this._selectedData=[...t],(i=(e=this.effect).onSelectedDataChange)===null||i===void 0||i.call(e),this.event.emit(ft.legendSelectedDataChange,{model:this}),(s=this._legendComponent)===null||s===void 0||s.setSelected(this._selectedData))}afterSetLayoutStartPoint(t){if(super.afterSetLayoutStartPoint(t),this._legendComponent){const{x:e,y:i}=t;z(e*i)&&this._legendComponent.setAttributes({x:e,y:i})}}getBoundsInRect(t,e){if(!this._visible)return this._legendComponent&&this._legendComponent.parent&&(this._legendComponent.parent.removeChild(this._legendComponent),this._legendComponent=null),{x1:0,y1:0,x2:0,y2:0};const i={x1:this.getLayoutStartPoint().x,y1:this.getLayoutStartPoint().y,x2:0,y2:0},s=this._getLegendAttributes(t);if(s.disableTriggerEvent=this._option.disableTriggerEvent,this._legendComponent)ue(s,this._cacheAttrs)||this._legendComponent.setAttributes(vt({},s,{defaultSelected:this._selectedData}));else{const o=new(this._getLegendConstructor())(vt({},s,{defaultSelected:this._selectedData}));o.name="legend",this._legendComponent=o,this.getContainer().add(o),this._option.disableTriggerEvent||this._initEvent(),o.on("*",(l,h)=>this._delegateEvent(this._legendComponent,l,h))}this._cacheAttrs=s;const r=isFinite(this._legendComponent.AABBBounds.width())?this._legendComponent.AABBBounds.width():0,a=isFinite(this._legendComponent.AABBBounds.height())?this._legendComponent.AABBBounds.height():0;if(this.layoutType!=="normal-inline"){const o=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",l=this._position,{width:h,height:d}=e;let c=0,u=0;o==="horizontal"?l==="middle"?c=(h-r)/2:l==="end"&&(c=h-r):l==="middle"?u=(d-a)/2:l==="end"&&(u=d-a),this._legendComponent.setAttributes({dx:c,dy:u})}return i.x2=i.x1+r,i.y2=i.y1+a,i}onDataUpdate(){var t,e,i;if(JSON.stringify(this._preSelectedData)!==JSON.stringify(this._selectedData)){if(this._legendComponent){const s=this._getLegendAttributes(this.getLayoutRect());ue(s,this._cacheAttrs)||this._legendComponent.setAttributes(vt({},s,{defaultSelected:this._selectedData}))}(e=(t=this.effect).onSelectedDataChange)===null||e===void 0||e.call(t),(i=this.getChart())===null||i===void 0||i.setLayoutTag(!0,null,!1),this.event.emit(ft.legendSelectedDataChange,{model:this})}}_getNeedClearVRenderComponents(){return[this._legendComponent]}clear(){super.clear(),this._cacheAttrs=null,this._preSelectedData=null}}NS.specKey="legends";class u_ extends NS{constructor(){super(...arguments),this.type=U.discreteLegend,this.name=U.discreteLegend}static getSpecInfo(t){const e=t[this.specKey];if(!e)return;if(!V(e))return e.type&&e.type!=="discrete"?void 0:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.discreteLegend}];const i=[];return e.forEach((s,r)=>{s.type&&s.type!=="discrete"||i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.discreteLegend})}),i}init(t){super.init(t),Ee(this._regions,e=>{e.addViewDataFilter({type:"discreteLegendFilter",options:{series:e,selected:()=>this._selectedData,field:()=>this._getSeriesLegendField(e),data:()=>this.getLegendDefaultData()},level:Ss.legendFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}_initLegendData(){Tt(this._option.dataSet,"discreteLegendFilter",srt),Tt(this._option.dataSet,"discreteLegendDataMake",nrt);const t=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"discreteLegendDataMake",options:{series:()=>{const e=[];return Ee(this._regions,i=>{e.push(i)},{specIndex:this._spec.seriesIndex,userId:this._spec.seriesId}),e},seriesField:e=>this._getSeriesLegendField(e)}}),t}_getSeriesLegendField(t){var e,i,s;const r=t.getSeriesField(),a=(e=this._spec.scaleName)!==null&&e!==void 0?e:this._spec.scale;if(C(a)||!t.getRawData())return r;const o=this._option.globalScale.getScaleSpec(a);if(!o)return r;if(this._spec.field)return this._spec.field;if(!Ml(o.domain))return r;const l=o.domain.find(h=>h.dataId===t.getRawData().name);return l&&(s=(i=l.fields)===null||i===void 0?void 0:i[0])!==null&&s!==void 0?s:r}_initSelectedData(){const t=this.getLegendDefaultData();if(this._unselectedData){const e=[],i=[];t.forEach(s=>{this._unselectedData.includes(s)?i.push(s):e.push(s)}),this._selectedData=e,this._unselectedData=i}else this._spec.defaultSelected?this._selectedData=[...this._spec.defaultSelected]:this._selectedData=t}getLegendDefaultData(t){return G(this._spec.data)?this._getLegendItems().map(e=>e.label):this._legendData.getLatestData().map(t?e=>e.originalKey:e=>e.key)}_addDefaultTitleText(t){var e,i,s,r;if(!((e=t.title)===null||e===void 0)&&e.visible&&C(t.title.text)&&C((i=t.title.style)===null||i===void 0?void 0:i.text)){const a=(r=(s=this._regions)===null||s===void 0?void 0:s[0])===null||r===void 0?void 0:r.getSeries()[0];if(!a)return;t.title.text=Yf(a.getRawData(),a.getSeriesField())}}_getLegendAttributes(t){const e=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",i=Object.assign(Object.assign({layout:e,items:this._getLegendItems(),zIndex:this.layoutZIndex},irt(this._spec,t)),{maxWidth:t.width,maxHeight:t.height});return this._addDefaultTitleText(i),this._addLegendItemFormatMethods(i),i}_getLegendConstructor(){return _I}setSelectedData(t){t&&(this._unselectedData=this.getLegendDefaultData().filter(e=>!t.includes(e))),super.setSelectedData(t)}_initEvent(){if(this._legendComponent){const t=this._spec.filter!==!1;this._legendComponent.addEventListener(Ui.legendItemClick,e=>{const i=Pt(e,"detail.currentSelected");t&&this.setSelectedData(i),this.event.emit(ft.legendItemClick,{model:this,value:i,event:e})}),this._legendComponent.addEventListener(Ui.legendItemHover,e=>{const i=Pt(e,"detail");this.event.emit(ft.legendItemHover,{model:this,value:i,event:e})}),this._legendComponent.addEventListener(Ui.legendItemUnHover,e=>{const i=Pt(e,"detail");this.event.emit(ft.legendItemUnHover,{model:this,value:i,event:e})})}}_getLegendItems(){const t=(this._legendData.getLatestData()||[]).map(e=>{var i,s;const r=e.style("fillOpacity"),a=e.style("strokeOpacity"),o=e.style("opacity"),l=e.style("texture");return{label:e.key,shape:{symbolType:(s=(i=e.style("symbolType"))!==null&&i!==void 0?i:e.shapeType)!==null&&s!==void 0?s:"circle",fillOpacity:z(r)?r:1,strokeOpacity:z(a)?a:1,opacity:z(o)?o:1,texturePadding:l?1:null,textureSize:l?4:null,texture:l,fill:e.style("fill"),stroke:e.style("stroke"),textureColor:e.style("textureColor"),innerBorder:e.style("innerBorder"),outerBorder:e.style("outerBorder"),lineDash:e.style("lineDash"),lineDashOffset:e.style("lineDashOffset"),lineWidth:e.style("lineWidth")}}});return G(this._spec.data)?this._spec.data(t,this._option.globalScale.getScale("color"),this._option.globalScale):t}_addLegendItemFormatMethods(t){var e,i,s,r;const{formatMethod:a,formatter:o}=(i=(e=this._spec.item)===null||e===void 0?void 0:e.label)!==null&&i!==void 0?i:{},{formatMethod:l,formatter:h}=(r=(s=this._spec.item)===null||s===void 0?void 0:s.value)!==null&&r!==void 0?r:{},{formatFunc:d}=Rr(a,o);o&&!a&&d&&(t.item.label.formatMethod=(u,p)=>d(u,p,o));const{formatFunc:c}=Rr(l,h);h&&!l&&c&&(t.item.value.formatMethod=(u,p)=>c(h,u,p,o))}}u_.specKey="legends",u_.type=U.discreteLegend;const rrt=()=>{L.registerComponent(u_.type,u_)},art=(n,t)=>{const{series:e,field:i,scale:s}=t,r=i();if(i&&r){let a=1/0,o=-1/0;return e().forEach(l=>{const h=l.getRawDataStatisticsByField(r,!0),d=h==null?void 0:h.min,c=h==null?void 0:h.max;z(d)&&(a=Math.min(d,a)),z(c)&&(o=Math.max(c,o))}),[a,o]}if(s){const a=s();return a?a.domain():[]}return[]},ort=(n,t)=>{const{selected:e,field:i,data:s,isHierarchyData:r}=t,a=e(),o=i(),l=r||(h=>h&&h.some(d=>d&&TZ(d)));if(a===s())return n;if(o&&!_t(a)){const[h,d]=a;return l(n)?nL(n,+h,+d):n.filter(c=>c[o]>=h&&c[o]<=d)}return n};var lrt=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{aP(s.type)&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:s.type==="color"?U.colorLegend:U.sizeLegend})}),i}constructor(t,e){super(t,e),this.type=U.colorLegend,this.name=U.colorLegend;const i=this._spec.type==="color"?U.colorLegend:U.sizeLegend;this.type=i,this.name=i}setAttrFromSpec(){super.setAttrFromSpec(),this._field=this._spec.field,this._legendType=this._spec.type}init(t){super.init(t),Ee(this._regions,e=>{e.addViewDataFilter({type:"continuousLegendFilter",options:{selected:()=>this._selectedData,field:()=>this._field,data:()=>this._legendData.getLatestData(),isHierarchyData:e.isHierarchyData},level:Ss.legendFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex})}_getScaleInGlobal(){const t=this._option.globalScale;let e=this._spec.scale;return e||(e=this._legendType),t.getScale(e)}_initLegendData(){Tt(this._option.dataSet,"continuousLegendFilter",ort),Tt(this._option.dataSet,"continuousLegendDataMake",art);const t=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_data`});return t.transform({type:"continuousLegendDataMake",options:{series:()=>CI(this._regions,{userId:this._seriesUserId,specIndex:this._seriesIndex}),field:()=>this._field,scale:this._getScaleInGlobal.bind(this)}}),t}_initSelectedData(){this._spec.defaultSelected?this._selectedData=this._spec.defaultSelected.slice():this._selectedData=this._legendData.getLatestData()}_addDefaultTitleText(t){var e,i,s,r;if(!((e=t.title)===null||e===void 0)&&e.visible&&C(t.title.text)&&C((i=t.title.style)===null||i===void 0?void 0:i.text)){const a=this._field;if(a){const d=(r=(s=this._regions)===null||s===void 0?void 0:s[0])===null||r===void 0?void 0:r.getSeries()[0];return d?void(t.title.text=Yf(d.getRawData(),a)):void 0}let o=this._spec.scale;o||(o=this._legendType);const l=this._option.globalScale.getScaleSpec(o);if(!Ml(l==null?void 0:l.domain))return;const h=l.domain[0];if(h.fields.length===0)return;t.title.text=Yf(this._option.dataSet.getDataView(h.dataId),h.fields[0])}}_getLegendAttributes(t){var e,i;const s=this.layoutOrient==="bottom"||this.layoutOrient==="top"?"horizontal":"vertical",r=s==="horizontal"?"bottom":this.layoutOrient;let a=[];const o=this._getScaleInGlobal();o&&o.type==="linear"&&(a=o.range()),_t(a)&&(a=this._legendType==="color"?crt:urt);let l=(e=this._legendData.getLatestData()[0])!==null&&e!==void 0?e:0,h=(i=this._legendData.getLatestData()[1])!==null&&i!==void 0?i:1;this._legendData.getLatestData()[0]===this._legendData.getLatestData()[1]&&(l=Math.min(0,this._legendData.getLatestData()[0]),h=this._legendData.getLatestData()[0]===0?1:Math.max(0,this._legendData.getLatestData()[0]));const d=Object.assign({layout:s,align:r,zIndex:this.layoutZIndex,min:l,max:h,value:this._spec.defaultSelected,[this._legendType==="color"?"colors":"sizeRange"]:a},hrt(this._spec));return this._addDefaultTitleText(d),d}_getLegendConstructor(){return drt[this._legendType]}_initEvent(){if(this._legendComponent){const t=this._spec.filter!==!1;this._legendComponent.addEventListener("change",Xs(e=>{const i=Pt(e,"detail.value");t&&this.setSelectedData(i),this.event.emit(ft.legendFilter,{model:this,value:i,event:e})},30))}}}p_.specKey="legends",p_.type=U.continuousLegend;const prt=()=>{L.registerComponent(p_.type,p_)};class GS{constructor(t){this._showTooltipByHandler=(e,i)=>{var s,r,a;if(C(e))return 1;i.changePositionOnly||this.clearCache(),this._updateViewSpec(i);const o=this._cacheViewSpec;if(C(o==null?void 0:o[this.activeType])||o.visible===!1)return 1;i.tooltipSpec=o,this._updateActualTooltip(e,i),i.tooltipActual=this._cacheActualTooltip;const{title:l,content:h}=this._cacheActualTooltip,d=C(l==null?void 0:l.key)&&C(l==null?void 0:l.value)&&!(h!=null&&h.length);if(this.component.event.emit(ft.tooltipShow,Object.assign(Object.assign({},i),{isEmptyTooltip:C(l==null?void 0:l.key)&&C(l==null?void 0:l.value)&&!(h!=null&&h.length),tooltipData:e,activeType:this.activeType,tooltip:this.component})),d)return 1;let c;return!((s=o.handler)===null||s===void 0)&&s.showTooltip?c=o.handler.showTooltip.bind(o.handler):!((r=this.component.tooltipHandler)===null||r===void 0)&&r.showTooltip&&(c=this.component.tooltipHandler.showTooltip.bind(this.component.tooltipHandler)),c?(a=c(this.activeType,e,i))!==null&&a!==void 0?a:0:1},this.component=t}_preprocessDimensionInfo(t){const e=[];if(t==null||t.forEach(i=>{const s=Object.assign(Object.assign({},i),{data:i.data.filter(({series:r})=>{var a,o;return((o=(a=r.getSpec())===null||a===void 0?void 0:a.tooltip)===null||o===void 0?void 0:o.visible)!==!1})});s.data.length>0&&e.push(s)}),e.length>0)return e}_getDimensionInfo(t){var e,i;let s;const r=this.component.getChart(),a=r.getCompiler().getStage().getLayer(void 0),o={x:t.event.viewX,y:t.event.viewY};if(a.globalTransMatrix.transformPoint({x:t.event.viewX,y:t.event.viewY},o),s=[...(e=hL(r,o,!0))!==null&&e!==void 0?e:[],...(i=rL(r,o))!==null&&i!==void 0?i:[]],s.length===0)s=void 0;else if(s.length>1){const l=s.filter(h=>{var d;const c=h.axis;if(c.getSpec().hasDimensionTooltip)return!0;if(!vi(c.getScale().type))return!1;let u;for(const p of(d=c==null?void 0:c.getRegions())!==null&&d!==void 0?d:[]){for(const g of p.getSeries())if(g.coordinate==="cartesian"){u=g;break}if(P(u))break}return P(u)&&u.getDimensionField()[0]===u.fieldY[0]?c.getOrient()==="left"||c.getOrient()==="right":c.getOrient()==="bottom"||c.getOrient()==="top"});if(s=l.length?l:s.slice(0,1),s.length>1){const h=new Set;s.forEach(d=>{d.data=d.data.filter(({key:c})=>!h.has(c)&&(h.add(c),!0))})}}return s}_updateViewSpec(t){const{changePositionOnly:e,model:i,dimensionInfo:s}=t;e&&this._cacheViewSpec||(this._cacheViewSpec=$J(this.activeType,this.component.getSpec(),i,s))}_updateActualTooltip(t,e){var i,s,r,a;const o=this._cacheViewSpec[this.activeType],{changePositionOnly:l}=e;if(!l||!this._cacheActualTooltip){const h=tQ(o,t,e),d=!!P(h)&&Jf(o.visible,t,e)!==!1;this._cacheActualTooltip=Object.assign(Object.assign({},h),{visible:d,activeType:o.activeType,data:t});const{title:c,content:u}=this._cacheActualTooltip;this._cacheActualTooltip.title=(s=(i=o.updateTitle)===null||i===void 0?void 0:i.call(o,c,t,e))!==null&&s!==void 0?s:c,this._cacheActualTooltip.content=(a=(r=o.updateContent)===null||r===void 0?void 0:r.call(o,u,t,e))!==null&&a!==void 0?a:u}}clearCache(){this._cacheViewSpec=void 0,this._cacheActualTooltip=void 0}}class grt extends GS{constructor(){super(...arguments),this.activeType="dimension"}showTooltip(t,e,i){const s=Object.assign(Object.assign({},e),{dimensionInfo:this._preprocessDimensionInfo(t),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(t,s)}shouldHandleTooltip(t,e){var i,s;const{tooltipInfo:r}=e;if(C(r))return!1;const a=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!((s=a==null?void 0:a.activeType)!==null&&s!==void 0?s:this.component.getSpec().activeType).includes("dimension")}getMouseEventData(t){var e;return{tooltipInfo:this._getDimensionInfo(t),ignore:[...(e=this.component.getOption().getAllSeries())!==null&&e!==void 0?e:[]].some(i=>{var s;const r=(s=i.tooltipHelper)===null||s===void 0?void 0:s.ignoreTriggerSet.dimension;return t.model&&(r==null?void 0:r.has(t.model))||t.mark&&(r==null?void 0:r.has(t.mark))})}}}class frt extends GS{constructor(){super(...arguments),this.activeType="mark"}showTooltip(t,e,i){const{datum:s,series:r,dimensionInfo:a}=t,o=[{datum:[s],series:r}],l=Object.assign(Object.assign({},e),{dimensionInfo:this._preprocessDimensionInfo(a),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(o,l)}shouldHandleTooltip(t,e){var i;const{tooltipInfo:s}=e;if(C(s))return!1;const r=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!(r!=null&&r.activeType.includes("mark"))}getMouseEventData(t,e){var i;let s,r;if(((i=t.model)===null||i===void 0?void 0:i.modelType)==="series"){const a=t.model,o=a.tooltipHelper,l=o==null?void 0:o.activeTriggerSet.mark,h=o==null?void 0:o.ignoreTriggerSet.mark;l!=null&&l.has(t.model)||l!=null&&l.has(t.mark)?s={mark:t.mark,datum:t.datum,series:a,dimensionInfo:e}:(h!=null&&h.has(t.model)||h!=null&&h.has(t.mark))&&(r=!0)}return{tooltipInfo:s,ignore:r}}}class _rt extends GS{constructor(){super(...arguments),this.activeType="group"}showTooltip(t,e,i){const{datum:s,series:r,dimensionInfo:a}=t,o=[{datum:H(s),series:r}],l=Object.assign(Object.assign({},e),{groupDatum:this._getGroupDatum(e),dimensionInfo:this._preprocessDimensionInfo(a),changePositionOnly:i,tooltip:this.component});return this._showTooltipByHandler(o,l)}shouldHandleTooltip(t,e){var i;const{tooltipInfo:s}=e;if(C(s))return!1;const r=(i=t.model)===null||i===void 0?void 0:i.tooltipHelper;return!!(r!=null&&r.activeType.includes("group"))}getMouseEventData(t,e){var i,s;let r,a;if(((i=t.model)===null||i===void 0?void 0:i.modelType)==="series"){const o=t.model,l=o.tooltipHelper,h=l==null?void 0:l.activeTriggerSet.group,d=l==null?void 0:l.ignoreTriggerSet.group;if(h!=null&&h.has(t.model)||h!=null&&h.has(t.mark)){const c=this.component.getSpec()[this.activeType];(c!=null&&c.triggerMark?H(c.triggerMark):[]).includes((s=t.mark)===null||s===void 0?void 0:s.name)&&(r={mark:t.mark,datum:t.datum,series:o,dimensionInfo:e})}else(d!=null&&d.has(t.model)||d!=null&&d.has(t.mark))&&(a=!0)}return{tooltipInfo:r,ignore:a}}_getGroupDatum(t){const{model:e,mark:i,datum:s}=t,r=e;if(["line","area"].includes(i.type))return H(s);const a=r.getViewData().latestData,o=r.getSeriesField();if(!o)return a;const l=H(s)[0][o];return a.filter(h=>h[o]===l)}}const oP=n=>P(n)&&!V(n),_v=n=>P(n)&&V(n);class P2 extends Ou{_shouldMergeThemeToSpec(){return!1}_initTheme(t,e){var i;const{spec:s,theme:r}=super._initTheme(t,e);return s.style=vt({},this._theme,s.style),s.offset=vt({},r.offset,t.offset),s.transitionDuration=(i=t.transitionDuration)!==null&&i!==void 0?i:r.transitionDuration,{spec:s,theme:r}}_transformSpecAfterMergingTheme(t,e,i){var s,r,a,o,l,h,d,c;super._transformSpecAfterMergingTheme(t,e,i),t.visible=(s=t.visible)===null||s===void 0||s,t.activeType=oa(t),t.renderMode=(r=t.renderMode)!==null&&r!==void 0?r:ja(this._option.mode)||!zn(this._option.mode)?"canvas":"html",t.trigger=(a=t.trigger)!==null&&a!==void 0?a:"hover",t.className=(o=t.className)!==null&&o!==void 0?o:JJ,t.enterable=(l=t.enterable)!==null&&l!==void 0&&l,t.transitionDuration=(h=t.transitionDuration)!==null&&h!==void 0?h:150,t.triggerOff=(d=t.triggerOff)!==null&&d!==void 0?d:t.trigger,t.confine=(c=t.confine)!==null&&c!==void 0?c:t.renderMode==="canvas",P(t.mark)&&(t.mark.activeType="mark"),P(t.dimension)&&(t.dimension.activeType="dimension"),P(t.parentElement)?at(t.parentElement)&&(t.parentElement=Rt.getElementById(t.parentElement)):zn(this._option.mode)&&(t.parentElement=ea==null?void 0:ea.body)}}class cc extends gn{constructor(){super(...arguments),this.layoutZIndex=1,this.type=U.tooltip,this.name=U.tooltip,this.transformerConstructor=P2,this.specKey="tooltip",this.layoutType="none",this._alwaysShow=!1,this._eventList=[],this._isTooltipShown=!1,this._clickLock=!1,this._mountEvent=(t,e,i)=>{this.event.on(t,e,i),this._eventList.push({eventType:t,handler:i})},this._handleClickToLock=t=>{this._clickLock?(this._handleChartMouseOut(t),this._clickLock=!1):this._clickLock=!0},this._getMouseOutHandler=t=>e=>{var i,s,r;if(this._alwaysShow||this._clickLock||!this._isTooltipShown&&!(!((s=(i=this.tooltipHandler)===null||i===void 0?void 0:i.isTooltipShown)===null||s===void 0)&&s.call(i)))return;const a=zn((r=this._option)===null||r===void 0?void 0:r.mode),{clientX:o,clientY:l}=e.event;a&&this._isPointerOnTooltip(e)||a&&t&&this._isPointerInChart({x:o,y:l})||this._handleChartMouseOut(e)},this._handleChartMouseOut=t=>{this._alwaysShow||this._spec.triggerOff!=="none"&&(this._hideTooltipByHandler(Object.assign(Object.assign({},t),{tooltip:this})),this._cacheInfo=void 0,this._cacheParams=void 0,this._cacheActiveType=void 0)},this._getMouseMoveHandler=t=>e=>{if(this.tooltipHandler||this._initHandler(),this.processor||this._initProcessor(),this._alwaysShow||this._isPointerOnTooltip(e))return;if(this._clickLock)return void(t&&(this._handleChartMouseOut(e),this._clickLock=!1));const i=this._getMouseEventData(e),{tooltipInfo:{dimension:s},ignore:{mark:r,dimension:a}}=i,o={mark:!1,dimension:!1,group:!1};o.group=this._showTooltipByMouseEvent("group",i,e,t),o.group||(o.mark=this._showTooltipByMouseEvent("mark",i,e,t)),o.mark||o.group||(o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t)),Object.values(o).every(l=>!l)&&!GJ(e)&&(r&&oP(this._cacheInfo)?o.mark=this._showTooltipByMouseEvent("mark",i,e,t,!0):a&&_v(this._cacheInfo)?o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t,!0):P(s)&&(o.dimension=this._showTooltipByMouseEvent("dimension",i,e,t))),o.mark||o.group||o.dimension&&!C(s)||this._handleChartMouseOut(e)},this._showTooltipByMouseEvent=(t,e,i,s,r)=>{var a;const o=this.processor[t];if(!o.shouldHandleTooltip(i,{tooltipInfo:e.tooltipInfo[t],ignore:e.ignore[t]}))return!1;let l;if(this._timer&&clearTimeout(this._timer),r)l=!o.showTooltip(this._cacheInfo,i,!0);else{const d=e.tooltipInfo[t],c=this._isSameAsCache(d,i,t);l=!o.showTooltip(d,i,c),l&&(this._cacheInfo=d,this._cacheParams=i,this._cacheActiveType=t)}l&&(this._isTooltipShown=!0,s&&this._spec.lockAfterClick&&!this._clickLock?this._clickLock=!0:Number.isFinite(this._spec.hideTimer)&&(this._timer=setTimeout(()=>{this._handleChartMouseOut()},this._spec.hideTimer)));const h=(a=this._option)===null||a===void 0?void 0:a.globalInstance;return l&&hi.globalConfig.uniqueTooltip&&h&&hi.hideTooltip(h.id),l},this._getMouseEventData=t=>{const e={tooltipInfo:{},ignore:{}};let i="dimension";const{tooltipInfo:s,ignore:r}=this.processor[i].getMouseEventData(t);e.tooltipInfo[i]=s,e.ignore[i]=r;const a=s;for(i of Object.keys(this.processor))if(i!=="dimension"){const{tooltipInfo:o,ignore:l}=this.processor[i].getMouseEventData(t,a);e.tooltipInfo[i]=o,e.ignore[i]=l}return e},this._hideTooltipByHandler=t=>{var e,i,s,r;if(!this._isTooltipShown&&!(!((i=(e=this.tooltipHandler)===null||e===void 0?void 0:e.isTooltipShown)===null||i===void 0)&&i.call(e)))return 0;let a;if(this.event.emit(ft.tooltipHide,Object.assign(Object.assign({},t),{source:Nt.chart,tooltip:this})),Object.values(this.processor).forEach(o=>{o.clearCache()}),!((s=this._spec.handler)===null||s===void 0)&&s.hideTooltip?a=this._spec.handler.hideTooltip.bind(this._spec.handler):!((r=this.tooltipHandler)===null||r===void 0)&&r.hideTooltip&&(a=this.tooltipHandler.hideTooltip.bind(this.tooltipHandler)),a){const o=a(t);return o||(this._isTooltipShown=!1),o}return 1}}static getSpecInfo(t){const e=t[this.specKey];if(!e)return null;if(!V(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.tooltip}];const i=[];return e.forEach((s,r)=>{i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.tooltip})}),i}isTooltipShown(){return this._isTooltipShown}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}_registerEvent(){}_releaseEvent(){}onLayout(t){}onLayoutEnd(t){}onRender(t){}created(){super.created(),this._regions=this._option.getAllRegions(),this._initEvent()}release(){var t,e;super.release(),this._timer&&clearTimeout(this._timer),this._eventList.forEach(({eventType:i,handler:s})=>{this.event.off(i,s)}),this._eventList=[],(e=(t=this.tooltipHandler)===null||t===void 0?void 0:t.release)===null||e===void 0||e.call(t),this._isTooltipShown=!1}beforeRelease(){this.event.emit(ft.tooltipHide,{tooltip:this,chart:this.getChart()}),this.event.emit(ft.tooltipRelease,{tooltip:this,chart:this.getChart()})}_initHandler(){var t,e,i;const s=(t=this._spec.renderMode)!==null&&t!==void 0?t:"html",r=this._option.globalInstance.getTooltipHandlerByUser();if(r)this.tooltipHandler=r;else{const a=s==="canvas"?Da.canvas:Da.dom,o=L.getComponentPluginInType(a);o||Co("Can not find tooltip handler: "+a);const l=new o;l.name=`${this._spec.className}-${(e=this._option.globalInstance.id)!==null&&e!==void 0?e:0}-${this.getSpecIndex()}`,(i=this.pluginService)===null||i===void 0||i.load([l]),this.tooltipHandler=l}}_initProcessor(){this.processor={mark:new frt(this),dimension:new grt(this),group:new _rt(this)}}_initEvent(){var t;if(this._option.disableTriggerEvent)return;const e=H((t=this._spec.trigger)!==null&&t!==void 0?t:"hover"),i=this._option.mode;e.includes("hover")&&(this._mountEvent("pointermove",{source:"chart"},this._getMouseMoveHandler(!1)),(Ba(i)||ja(i))&&(this._mountEvent("pointerdown",{source:"chart"},this._getMouseMoveHandler(!1)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0))),this._mountEvent("pointerout",{source:"canvas"},this._getMouseOutHandler(!1))),e.includes("click")?(this._mountEvent("pointertap",{source:"chart"},this._getMouseMoveHandler(!0)),this._mountEvent("pointerup",{source:"window"},this._getMouseOutHandler(!0))):this._spec.lockAfterClick&&this._mountEvent("pointertap",{source:"chart"},this._handleClickToLock)}reInit(t){var e,i;super.reInit(t),this.tooltipHandler?(i=(e=this.tooltipHandler).reInit)===null||i===void 0||i.call(e):this._initHandler()}showTooltip(t,e){var i;if(this.tooltipHandler||this._initHandler(),this.processor||this._initProcessor(),!(!((i=this.tooltipHandler)===null||i===void 0)&&i.showTooltip))return!1;const s=WJ(t,e,this);return s!=="none"&&(this._alwaysShow=!!(e!=null&&e.alwaysShow)),s}hideTooltip(){const t={changePositionOnly:!1,tooltip:this,item:void 0,datum:void 0,source:Nt.chart};return this._alwaysShow=!1,!this._hideTooltipByHandler(t)}_isSameAsCache(t,e,i){if(i!==this._cacheActiveType)return!1;if(t===this._cacheInfo)return!0;if(C(this._cacheInfo)||C(t))return!1;if(_v(t)){if(oP(this._cacheInfo))return!1;const r=this._cacheInfo;if(!(r.length===t.length&&t.every((a,o)=>sL(a,r[o]))))return!1}else{if(_v(this._cacheInfo))return!1;const r=this._cacheInfo;if(!((t==null?void 0:t.datum)===r.datum&&(t==null?void 0:t.mark)===r.mark&&(t==null?void 0:t.series)===r.series))return!1}const s=this._cacheParams;return!C(s)&&!C(e)&&s.mark===e.mark&&s.model===e.model&&s.datum===e.datum}_isPointerInChart(t){var e;const i=(e=this._option)===null||e===void 0?void 0:e.globalInstance;if(!i||!i.getChart())return!1;const{x:s,y:r}=t,a=i.getCanvas(),{x:o,y:l,width:h,height:d}=a.getBoundingClientRect();return s>=o&&s<=o+h&&r>=l&&r<=l+d}_isPointerOnTooltip(t){var e,i;if(this._spec.enterable&&this._spec.renderMode==="html"){const{event:s}=t;let r;if(P(s.nativeEvent)){const o=s.nativeEvent;r=o.relatedTarget,o.composedPath&&o.composedPath().length>0&&(r=o.composedPath()[0])}else r=s.relatedTarget;const a=(i=(e=this.tooltipHandler)===null||e===void 0?void 0:e.getTooltipContainer)===null||i===void 0?void 0:i.call(e);if(P(a)&&P(r)&&WP(r,a))return!0}return!1}getVisible(){return this._spec.visible!==!1}}cc.type=U.tooltip,cc.transformerConstructor=P2,cc.specKey="tooltip";const mrt=()=>{L.registerComponent(cc.type,cc)};function vrt(n){return n===Ke["desktop-browser"]||n===Ke["desktop-miniApp"]?{click:"pointertap",hover:"pointermove",hoverOut:"pointerleave",clickOut:"pointerleave"}:Ba(n)||ja(n)?{click:"tap",hover:["pointerdown","pointermove"],hoverOut:"pointerleave",clickOut:"pointerleave"}:null}var lP;(function(n){n[n.ALL=3]="ALL",n[n.HORIZONTAL=2]="HORIZONTAL",n[n.VERTICAL=1]="VERTICAL"})(lP||(lP={}));var hP=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{if(!this._option)return;const{x:s,y:r}=this.calculateTriggerPoint(i);this.showDefault=!1,this._layoutCrosshair(s,r);const a=this._getNeedClearVRenderComponents();this._hasActive=a.some(o=>o&&o.attribute.visible!==!1)},this._handleClickInEvent=i=>{if(!this._hasActive||!this._spec.lockAfterClick||this._clickLock)return this._clickLock?(this._clickLock=!1,void this._handleOutEvent()):void(this._onlyLockClick||(this._handleIn(i),nt(this.triggerOff)&&(this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this._handleOutEvent()},this.triggerOff))));this._clickLock=!0},this._handleHoverInEvent=za(i=>{this._clickLock||this._handleIn(i)},10),this._handleOutEvent=()=>{this.enableRemain||this._clickLock||!this._hasActive||(this.clearOutEvent(),this.hide())},this._handleTooltipShow=i=>{const s=i.tooltipData;if(i.isEmptyTooltip||!s||!s.length)return void this._handleTooltipHideOrRelease();if(Ct(this._spec.followTooltip)&&this._spec.followTooltip[i.activeType]===!1)return void this._handleTooltipHideOrRelease();const{x:r,y:a}=this.calculateTriggerPoint(i);this.showDefault=!1,this._layoutCrosshair(r,a,s,i.activeType);const o=this._getNeedClearVRenderComponents();this._hasActive=o.some(l=>l&&l.attribute.visible!==!1)},this._handleTooltipHideOrRelease=()=>{this.clearOutEvent(),this.hide()},this.enable=!0,this.showDefault=!0}_getLimitBounds(){var t,e;if(!this._limitBounds){const{width:i,height:s}=(e=(t=this._option.globalInstance.getChart())===null||t===void 0?void 0:t.getViewRect())!==null&&e!==void 0?e:{width:0,height:0};this._limitBounds={x1:0,y1:0,x2:i,y2:s}}return this._limitBounds}_showDefaultCrosshair(){this.showDefault&&this._showDefaultCrosshairBySpec()}setAttrFromSpec(){super.setAttrFromSpec(),this._parseCrosshairSpec()}created(){super.created(),this._initEvent()}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||ue(e,t)||(i.reRender=!0,i.reMake=!0),i}_initEvent(){if(!this._option.disableTriggerEvent)if(this._spec.followTooltip)this._registerTooltipEvent();else{const t=this._getTriggerEvent();t&&t.forEach(e=>{this._registerEvent(e.in,!1,e.click),e.out&&this._registerEvent(e.out,!0)})}}_registerEvent(t,e,i){const s=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent,r=e?{level:he.chart}:{source:Nt.chart};V(t)?t.forEach(a=>{this.event.on(a,r,s)}):this.event.on(t,r,s)}_eventOff(t,e,i){const s=e?this._handleOutEvent:i?this._handleClickInEvent:this._handleHoverInEvent;V(t)?t.forEach(r=>{this.event.off(r,s)}):this.event.off(t,s)}updateLayoutAttribute(){this._limitBounds=null,this._showDefaultCrosshair()}calculateTriggerPoint(t){const{event:e}=t,i=this._option.getCompiler().getStage().getLayer(void 0),s={x:e.viewX,y:e.viewY};return i.globalTransMatrix.transformPoint({x:e.viewX,y:e.viewY},s),{x:s.x-this.getLayoutStartPoint().x,y:s.y-this.getLayoutStartPoint().y}}_getTriggerEvent(){const{mode:t=Ke["desktop-browser"]}=this._option,e=vrt(t);if(e){const i=H(this.trigger||"hover"),s=a=>a==="click"?this.triggerOff==="none"?null:e.clickOut:e.hoverOut;this._spec.lockAfterClick&&!i.includes("click")?(i.push("click"),this._onlyLockClick=!0):this._onlyLockClick=!1;const r=[];return i.forEach(a=>{r.push({click:a==="click",in:e[a],out:s(a)})}),r}return null}_registerTooltipEvent(){this.event.on(ft.tooltipHide,{source:Nt.chart},this._handleTooltipHideOrRelease),this.event.on(ft.tooltipShow,{source:Nt.chart},this._handleTooltipShow),this.event.on(ft.tooltipRelease,{source:Nt.chart},this._handleTooltipHideOrRelease)}_getAxisInfoByField(t){var e,i;const s=(i=(e=this._option).getComponentsByKey)===null||i===void 0?void 0:i.call(e,"axes");if(!(s!=null&&s.length))return null;let r=Pt(this._spec,`${t}Field.bindingAxesIndex`);if(r||(r=[],s.forEach((p,g)=>{yrt[t].includes(p.getOrient())&&r.push(g)})),!r.length)return null;const a=new Map;let o=1/0,l=1/0,h=-1/0,d=-1/0;const{x:c,y:u}=this.getLayoutStartPoint();return r.forEach(p=>{o=1/0,l=1/0,h=-1/0,d=-1/0;const g=s.find(f=>f.getSpecIndex()===p);g&&(g.getRegions().forEach(f=>{const{x:_,y:m}=f.getLayoutStartPoint();o=Math.min(o,_-c),l=Math.min(l,m-u),h=Math.max(h,_+f.getLayoutRect().width-c),d=Math.max(d,m+f.getLayoutRect().height-u)}),a.set(p,{x1:o,y1:l,x2:h,y2:d,axis:g}))}),a}changeRegions(t){}onLayoutEnd(t){const e=this._regions[0];this.setLayoutRect(e.getLayoutRect()),this.setLayoutStartPosition(e.getLayoutStartPoint()),super.onLayoutEnd(t)}onRender(t){}_releaseEvent(){this.clearOutEvent();const t=this._getTriggerEvent();t&&t.forEach(e=>{this._eventOff(e.in,!1,e.click),e.out&&this._eventOff(e.out,!0)})}_parseCrosshairSpec(){this._parseFieldInfo();const{trigger:t,triggerOff:e,labelZIndex:i,gridZIndex:s}=this._spec;t&&(this.trigger=t),(e==="none"||nt(e)&&e>0)&&(this.triggerOff=e),i!==void 0&&(this.labelZIndex=i),s!==void 0&&(this.gridZIndex=s)}_parseField(t,e){var i,s,r;const a={},{line:o={},label:l={},visible:h}=t;if(a.visible=h,a.type=o.type||"line",o.visible===!1)a.style={visible:!1};else{const d=o.style||{},{stroke:c,fill:u,lineWidth:p}=d,g=d,{strokeOpacity:f,fillOpacity:_,opacity:m}=g,y=hP(g,["strokeOpacity","fillOpacity","opacity"]),b=a.type==="line";let v=b?f:_;if(nt(m)&&(v=(v??1)*m),a.style=Object.assign({opacity:v,pickable:!1,visible:!0},y),b)a.style.stroke=c||u,a.style.lineWidth=Pt(o,"width",p||2);else{a.style.fill=u||c,!((r=(s=(i=this._spec[e])===null||i===void 0?void 0:i.line)===null||s===void 0?void 0:s.style)===null||r===void 0)&&r.stroke&&(a.style.stroke=this._spec[e].line.style.stroke);const x=Pt(o,"width");if(typeof x=="string"){const S=parseInt(x.substring(0,x.length-1),10)/100;a.style.sizePercent=S}else typeof x!="number"&&typeof x!="function"||(a.style.size=x)}}if(l.visible){const d=l.labelBackground||{},c=l.style||{},u=d.style||{},{fill:p="rgba(47, 59, 82, 0.9)",stroke:g,outerBorder:f}=u,_=hP(u,["fill","stroke","outerBorder"]);a.label={visible:!0,formatMethod:l.formatMethod,formatter:l.formatter,minWidth:d.minWidth,maxWidth:d.maxWidth,padding:d.padding,textStyle:Object.assign(Object.assign({fontSize:14,pickable:!1},c),{fill:c.fill||"#fff",stroke:Pt(c,"stroke")}),panel:(be(d.visible)?d.visible:d)?Object.assign({visible:!0,pickable:!1,fill:p,stroke:g,outerBorder:Object.assign({stroke:p,distance:0,lineWidth:3},f)},_):{visible:!1},zIndex:this.labelZIndex,childrenPickable:!1,pickable:!1}}else a.label={visible:!1};return a}_filterAxisByPoint(t,e,i){return t&&t.forEach(s=>{const r=s.axis;if(rX(s,e,i)&&t.delete(r.getSpecIndex()),r.type.startsWith("polarAxis")){const a=r.getCenter(),o=r.getInnerRadius(),l=r.getOuterRadius(),h=Ce.distancePP({x:e,y:i},a);(h>l||h{(s.xField&&s.xField.visible!==!1||s.yField&&s.yField.visible!==!1)&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.cartesianCrosshair})}),i}constructor(t,e){super(t,e),this.type=U.cartesianCrosshair,this.name=U.cartesianCrosshair,this._currValueX=new Map,this._currValueY=new Map}_showDefaultCrosshairBySpec(){const{xField:t,yField:e}=this._spec;if(t!=null&&t.visible&&t.defaultSelect){const{axisIndex:i,datum:s}=t.defaultSelect;this._defaultCrosshair(i,s,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:s}=e.defaultSelect;this._defaultCrosshair(i,s,2)}}_defaultCrosshair(t,e,i){const s=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);s&&(i===1?(this._currValueX.clear(),this._currValueX.set(t,{axis:s,value:e})):(this._currValueY.clear(),this._currValueY.set(t,{axis:s,value:e})),this.layoutByValue(i))}_findAllAxisContains(t,e){const i=this._getAxisInfoByField("x"),s=this._getAxisInfoByField("y");return{xAxisMap:this._filterAxisByPoint(i,t,e),yAxisMap:this._filterAxisByPoint(s,t,e)}}_getValueAt(t,e){return t.getScale().invert(e)}clearAxisValue(){this._currValueX.clear(),this._currValueY.clear()}setAxisValue(t,e){ke(e.getOrient())?this._currValueX.set(e.getSpecIndex(),{value:t,axis:e}):this._currValueY.set(e.getSpecIndex(),{value:t,axis:e})}_getAllAxisValues(t,e,i,s){let r=!1;return t.forEach(a=>{vi(a.axis.getScale().type)&&(r?this.enable=!1:r=!0)}),!!this.enable&&(t.forEach((a,o)=>{const l=a.axis;i.set(o,{value:this._getValueAt(l,e-(s?l.getLayoutStartPoint().x-this.getLayoutStartPoint().x:l.getLayoutStartPoint().y-this.getLayoutStartPoint().y)),axis:l})}),!0)}_layoutCrosshair(t,e,i,s){var r;let a=t,o=e;if(i&&i.length){if(s==="dimension"){const d=i[0],c=d.data.findIndex(p=>p.datum.length>0);let u;if(c>-1){const p=d.data[c];u=p.series.dataToPosition(p.datum[0])}(P(d.dimType)?d.dimType==="y":Ds((r=d==null?void 0:d.axis)===null||r===void 0?void 0:r.getOrient()))?o=u==null?void 0:u.y:a=u==null?void 0:u.x}else if(s==="mark"){const d=i[0],c=d.series.dataToPosition(d.datum[0]);a=c==null?void 0:c.x,o=c==null?void 0:c.y}}const{xAxisMap:l,yAxisMap:h}=this._findAllAxisContains(a,o);if(l&&l.size===0||h&&h.size===0){if(this.enableRemain)return;this.hide()}else this._currValueX.clear(),this._currValueY.clear(),l&&l.size&&this._getAllAxisValues(l,a,this._currValueX,!0),h&&h.size&&this._getAllAxisValues(h,o,this._currValueY,!1),this.layoutByValue(3)}hide(){this._xCrosshair&&this._xCrosshair.hideAll(),this._xTopLabel&&this._xTopLabel.hideAll(),this._xBottomLabel&&this._xBottomLabel.hideAll(),this._yCrosshair&&this._yCrosshair.hideAll(),this._yLeftLabel&&this._yLeftLabel.hideAll(),this._yRightLabel&&this._yRightLabel.hideAll()}layoutByValue(t=3){if(!this.enable)return;const e=zc(this._regions,"cartesian");if(!e)return;const{x:i,y:s,offsetWidth:r,offsetHeight:a,bandWidth:o,bandHeight:l}=BL(t,e,this.getLayoutStartPoint(),this._currValueX,this._currValueY,this._xHair,this._yHair,this.enableRemain,this._cacheXCrossHairInfo,this._cacheYCrossHairInfo);this.enableRemain&&(i&&(this._cacheXCrossHairInfo=Object.assign(Object.assign({},i),{_isCache:!0})),s&&(this._cacheYCrossHairInfo=Object.assign(Object.assign({},s),{_isCache:!0}))),i&&this._layoutVertical(i,o,r),s&&this._layoutHorizontal(s,l,a)}_layoutVertical(t,e,i){var s,r;if(t._isCache&&this.enableRemain||!this._xHair)return;const{x:a,topPos:o,height:l,top:h,bottom:d,visible:c}=t;if(c){const u=this._xHair.type,p=IL(this._xHair,t,e,i);if(this._updateCrosshair("x",u,p),h.visible){const g=Object.assign(Object.assign(Object.assign({x:a+e/2,y:o},h),this._xHair.label),{textStyle:Object.assign(Object.assign({},(s=this._xHair.label)===null||s===void 0?void 0:s.textStyle),{textAlign:"center",textBaseline:"bottom"}),zIndex:this.labelZIndex,visible:!0});this._updateCrosshairLabel(this._xTopLabel,g,f=>{f.name="crosshair-x-top-label",this._xTopLabel=f})}else this._xTopLabel&&this._xTopLabel.hideAll();if(d.visible){const g=Object.assign(Object.assign(Object.assign({x:a+e/2,y:o+l},d),this._xHair.label),{textStyle:Object.assign(Object.assign({},(r=this._xHair.label)===null||r===void 0?void 0:r.textStyle),{textAlign:"center",textBaseline:"top"}),zIndex:this.labelZIndex,visible:!0});this._updateCrosshairLabel(this._xBottomLabel,g,f=>{f.name="crosshair-x-bottom-label",this._xBottomLabel=f})}else this._xBottomLabel&&this._xBottomLabel.hideAll()}}_layoutHorizontal(t,e,i){var s,r;if(t._isCache&&this.enableRemain||!this._yHair)return;const{leftPos:a,width:o,y:l,left:h,right:d,visible:c}=t;if(c){const u=this._yHair.type,p=OL(this._yHair,t,e,i);if(this._updateCrosshair("y",u,p),h.visible){const g=Object.assign(Object.assign(Object.assign({x:a,y:l+e/2},h),this._yHair.label),{textStyle:Object.assign(Object.assign({},(s=this._yHair.label)===null||s===void 0?void 0:s.textStyle),{textAlign:"right",textBaseline:"middle"}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._yLeftLabel,g,f=>{f.name="crosshair-y-left-label",this._yLeftLabel=f})}else this._yLeftLabel&&this._yLeftLabel.hideAll();if(d.visible){const g=Object.assign(Object.assign(Object.assign({x:a+o,y:l+e},d),this._yHair.label),{textStyle:Object.assign(Object.assign({},(r=this._yHair.label)===null||r===void 0?void 0:r.textStyle),{textAlign:"left",textBaseline:"middle"}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._yRightLabel,g,f=>{f.name="crosshair-y-right-label",this._yRightLabel=f})}else this._yRightLabel&&this._yRightLabel.hideAll()}}_parseFieldInfo(){const{xField:t,yField:e}=this._spec;t&&t.visible&&(this._xHair=this._parseField(t,"xField")),e&&e.visible&&(this._yHair=this._parseField(e,"yField"))}_updateCrosshair(t,e,i){const s=this.getContainer();let r;if(r=t==="x"?this._xCrosshair:this._yCrosshair,r)r.setAttributes(i);else{const a=t==="x"?this._xHair.style:this._yHair.style;e==="line"?r=new Tu(Object.assign(Object.assign({},i),{lineStyle:a,zIndex:this.gridZIndex+1,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1})):e==="rect"&&(r=new hm(Object.assign(Object.assign({},i),{rectStyle:a,zIndex:this.gridZIndex,disableTriggerEvent:this._option.disableTriggerEvent,pickable:!1}))),s==null||s.add(r),t==="x"?this._xCrosshair=r:this._yCrosshair=r}}_updateCrosshairLabel(t,e,i){const s=this.getContainer();t?t.setAttributes(e):(i(t=new rs(e)),s==null||s.add(t)),RL(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._xCrosshair,this._xTopLabel,this._xBottomLabel,this._yCrosshair,this._yLeftLabel,this._yRightLabel]}}g_.specKey="crosshair",g_.type=U.cartesianCrosshair;const brt=()=>{L.registerComponent(g_.type,g_)};var dP=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{let l={x:0,y:0,center:{x:0,y:0},radius:0,distance:0,startAngle:0,endAngle:0,innerRadius:0,visible:!1,label:{visible:!1,text:"",offset:0}},h={x:0,y:0,center:{x:0,y:0},radius:0,distance:0,startAngle:0,endAngle:0,innerRadius:0,visible:!1,sides:n.angleAxisHelper.getScale(0).domain().length,label:{visible:!1,text:"",offset:0}};if(i){l.visible=!!t.size;const d=n.angleAxisHelper.getBandwidth(0);t.forEach(c=>{var u,{axis:p,value:g,coord:f}=c,_=dP(c,["axis","value","coord"]);g=g??"",vt(l,_);const m=n.angleAxisHelper.dataToPosition([g]);l.angle=m;const y=p.niceLabelFormatter;!((u=i.label)===null||u===void 0)&&u.visible&&(l.label.visible=!0,l.label.defaultFormatter=y,l.label.text=g,l.label.offset=$c(p.getSpec())),l.startAngle=m-d/2,l.endAngle=m+d/2})}if(s&&(h.visible=!!e.size,e.forEach(d=>{var c,{axis:u,value:p,coord:g}=d,f=dP(d,["axis","value","coord"]);p=p??"";const _=u.niceLabelFormatter;!((c=s.label)===null||c===void 0)&&c.visible&&(h.label.visible=!0,h.label.defaultFormatter=_,h.label.text=p,h.label.offset=$c(u.getSpec())),h.angle=g.angle,h.axis=u,vt(h,f)})),r&&!l.visible&&P(a))l=a;else if(l.label.visible&&i&&i.label){const{label:d}=l,{formatMethod:c,formatter:u}=i.label,{formatFunc:p,args:g}=Rr(c,u,d.text,{label:d.text,orient:"angle"});p?d.text=p(...g):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}if(r&&!h.visible&&P(o))h=o;else if(h.label.visible&&s&&s.label){const{label:d}=h,{formatMethod:c,formatter:u}=s.label,{formatFunc:p,args:g}=Rr(c,u,d.text,{label:d.text,orient:"radius"});p?d.text=p(...g):d.defaultFormatter&&(d.text=d.defaultFormatter(d.text))}return{angle:l,radius:h}},Srt=(n,t)=>{const{angle:e,innerRadius:i,radius:s,startAngle:r,endAngle:a,center:o}=t;let l;return l=(n.type==="rect"?"sector":"line")=="sector"?{center:o,innerRadius:i,radius:s,startAngle:r,endAngle:a}:{start:Ue(o,i,e),end:Ue(o,s,e)},l},Art=(n,t)=>{const{center:e,startAngle:i,endAngle:s,distance:r,sides:a,axis:o,point:l,radius:h,innerRadius:d}=t;let c=r;if((n.smooth?"circle":"polygon")=="polygon"){const u=o.getCenter(),p=qp(u,l),g=(s-i)/a,f=Math.floor((p-i)/g),_=f*g+i,m=Math.min((f+1)*g+i,s),y=Ue(u,r,_),b=Ue(u,r,m),v=jP([b.x,b.y],[y.x,y.y],[u.x,u.y],[l.x,l.y]);v&&(c=Fe(Ce.distancePN(l,v[0],v[1])+r,d,h))}return{center:e,startAngle:i,endAngle:s,radius:c,sides:a}};class f_ extends US{static getSpecInfo(t){const e=t[this.specKey];if(C(e))return;if(!V(e))return e.categoryField&&e.categoryField.visible!==!1||e.valueField&&e.valueField.visible!==!1?[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.polarCrosshair}]:void 0;const i=[];return e.forEach((s,r)=>{(s.categoryField&&s.categoryField.visible!==!1||s.valueField&&s.valueField.visible!==!1)&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.polarCrosshair})}),i}constructor(t,e){super(t,e),this.type=U.polarCrosshair,this.name=U.polarCrosshair,this._currValueAngle=new Map,this._currValueRadius=new Map}_showDefaultCrosshairBySpec(){const{categoryField:t,valueField:e}=this._spec;if(t!=null&&t.visible&&t.defaultSelect){const{axisIndex:i,datum:s}=t.defaultSelect;this._defaultCrosshair(i,s,1)}if(e!=null&&e.visible&&e.defaultSelect){const{axisIndex:i,datum:s}=e.defaultSelect;this._defaultCrosshair(i,s,2)}}_defaultCrosshair(t,e,i){const s=this._option.getComponentsByKey("axes").find(r=>r.getSpecIndex()===t);if(s){if(i===1){this._currValueAngle.clear();const r={angle:s.valueToPosition(e),radius:s.getOuterRadius()},a=s.coordToPoint(r);this._currValueAngle.set(t,this._getValueByAxis(s,a))}else{this._currValueRadius.clear();const r={angle:s.startAngle,radius:s.valueToPosition(e)},a=s.coordToPoint(r);this._currValueRadius.set(t,this._getValueByAxis(s,a))}this.layoutByValue(3)}}hide(){this._radiusCrosshair&&this._radiusCrosshair.hideAll(),this._radiusLabelCrosshair&&this._radiusLabelCrosshair.hideAll(),this._angleCrosshair&&this._angleCrosshair.hideAll(),this._angleLabelCrosshair&&this._angleLabelCrosshair.hideAll()}_findAllAxisContains(t,e){const i=this._getAxisInfoByField("category"),s=this._getAxisInfoByField("value");return{angleAxisMap:this._filterAxisByPoint(i,t,e),radiusAxisMap:this._filterAxisByPoint(s,t,e)}}_getAllAxisValues(t,e,i){let s=!1;return t.forEach(r=>{vi(r.axis.getScale().type)&&(s?this.enable=!1:s=!0)}),!!this.enable&&(t.forEach((r,a)=>{const o=r.axis;i.set(a,this._getValueByAxis(o,e))}),!0)}_getValueByAxis(t,e){const{x:i,y:s}=t.getLayoutStartPoint(),{x:r,y:a}=this.getLayoutStartPoint(),o=t.positionToData({x:e.x-(i-r),y:e.y-(s-a)}),l={x:t.getCenter().x+this.getLayoutStartPoint().x,y:t.getCenter().y+this.getLayoutStartPoint().y};return{value:o,axis:t,center:l,innerRadius:t.getInnerRadius(),radius:t.getOuterRadius(),startAngle:t.startAngle,endAngle:t.endAngle,distance:Ce.distancePP(e,t.getCenter()),coord:t.pointToCoord(e),point:e}}_layoutCrosshair(t,e,i,s){let r=t,a=e;if(i&&i.length){if(s==="dimension"){const h=i[0];if(h.axis){const d=h.axis.pointToCoord({x:r,y:a}),c=h.axis.getOrient()==="radius"?{radius:h.position,angle:d.angle}:{radius:d.radius,angle:h.position},u=h.axis.coordToPoint(c);r=u.x,a=u.y}}else if(s==="mark"){const h=i[0],d=h.series.dataToPosition(h.datum[0]);r=d.x,a=d.y}}const{angleAxisMap:o,radiusAxisMap:l}=this._findAllAxisContains(r,a);if(o.size!==0||l.size!==0)this._currValueAngle.clear(),this._currValueRadius.clear(),o&&this._getAllAxisValues(o,{x:r,y:a},this._currValueAngle),l&&this._getAllAxisValues(l,{x:r,y:a},this._currValueRadius),this.layoutByValue(3);else{if(this.enableRemain)return;this.hide()}}layoutByValue(t=3){if(!this.enable)return;const e=zc(this._regions,"polar");if(!e)return;const{angle:i,radius:s}=xrt(e,this._currValueAngle,this._currValueRadius,this._angleHair,this._radiusHair,this.enableRemain,this._cacheAngleCrossHairInfo,this._cacheRadiusCrossHairInfo);this.enableRemain&&(this._cacheAngleCrossHairInfo=Object.assign(Object.assign({},i),{_isCache:!0}),this._cacheRadiusCrossHairInfo=Object.assign(Object.assign({},s),{_isCache:!0})),t&&(this._layoutRadius(s),this._layoutAngle(i))}_layoutAngle(t){var e;if(t._isCache&&this.enableRemain)return;const i=this.getContainer(),{angle:s,radius:r,label:a,center:o,visible:l}=t;if(l){const h=this._angleHair.type==="rect"?"sector":"line",d=Srt(this._angleHair,t);if(this._angleCrosshair)this._angleCrosshair.setAttributes(d);else{let c;h==="line"?c=new Tu(Object.assign(Object.assign({},d),{lineStyle:this._angleHair.style,zIndex:this.gridZIndex,pickable:!1})):h==="sector"&&(c=new cm(Object.assign(Object.assign({},d),{sectorStyle:this._angleHair.style,zIndex:this.gridZIndex,pickable:!1}))),this._angleCrosshair=c,i.add(c)}if(a.visible){const c=J$(s),u=Object.assign(Object.assign(Object.assign(Object.assign({},Ue(o,r+a.offset,s)),this._angleHair.label),a),{textStyle:Object.assign(Object.assign({},(e=this._angleHair.label)===null||e===void 0?void 0:e.textStyle),{textAlign:c.align,textBaseline:c.baseline}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._angleLabelCrosshair,u,p=>{p.name="crosshair-angle-label",this._angleLabelCrosshair=p})}else this._angleLabelCrosshair&&this._angleLabelCrosshair.hideAll()}}_layoutRadius(t){var e;if(t._isCache&&this.enableRemain)return;const{center:i,startAngle:s,label:r,visible:a}=t,o=this.getContainer();if(a){const l=this._radiusHair.smooth?"circle":"polygon",h=Art(this._radiusHair,t),d=h.radius;if(this._radiusCrosshair)this._radiusCrosshair.setAttributes(h);else{let c;c=l==="polygon"?new um(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex+1})):new dm(Object.assign(Object.assign({},h),{lineStyle:this._radiusHair.style,zIndex:this.gridZIndex})),this._radiusCrosshair=c,o.add(c)}if(r.visible){const c=hX(s),u=Object.assign(Object.assign(Object.assign(Object.assign({},Ue(i,d,s)),this._radiusHair.label),r),{textStyle:Object.assign(Object.assign({},(e=this._radiusHair.label)===null||e===void 0?void 0:e.textStyle),{textAlign:c.align,textBaseline:c.baseline}),zIndex:this.labelZIndex});this._updateCrosshairLabel(this._radiusLabelCrosshair,u,p=>{p.name="crosshair-radius-label",this._radiusLabelCrosshair=p})}else this._radiusLabelCrosshair&&this._radiusLabelCrosshair.hideAll()}}_parseFieldInfo(){var t;const{categoryField:e,valueField:i}=this._spec;e&&e.visible&&(this._angleHair=this._parseField(e,"categoryField")),i&&i.visible&&(this._radiusHair=this._parseField(i,"valueField"),this._radiusHair.smooth=(t=i==null?void 0:i.line)===null||t===void 0?void 0:t.smooth)}_updateCrosshairLabel(t,e,i){const s=this.getContainer();t?t.setAttributes(e):(t=new rs(e),s==null||s.add(t),i(t)),RL(t,this._getLimitBounds())}_getNeedClearVRenderComponents(){return[this._radiusCrosshair,this._radiusLabelCrosshair,this._angleCrosshair,this._angleLabelCrosshair]}}f_.specKey="crosshair",f_.type=U.polarCrosshair;const krt=()=>{L.registerComponent(f_.type,f_)},Trt=(n,t)=>{const{getNewDomain:e,isContinuous:i,field:s}=t,r=s(),a=e();if(C(a)||C(r))return n;if(a.length===0)return[];const o={};a.forEach(h=>{o[h]||(o[h]=1)});let l=null;return l=i()?h=>h[r]>=a[0]&&h[r]<=a[1]:h=>o[h[r]+""]||o[h[r]],n.filter(l)},Mrt=(n,t)=>{const{stateFields:e,valueFields:i,dataCollection:s}=t.input,{stateField:r,valueField:a}=t.output,o={},l=[];return s.forEach((h,d)=>{var c;if(C(e[d]))return;const u=(c=h.getFields())===null||c===void 0?void 0:c[e[d]];u&&u.lockStatisticsByDomain&&u.domain.forEach(p=>{o[p]=0}),h.latestData.forEach(p=>{H(e[d]).forEach(g=>{C(p[g])||(C(o[p[g]])&&(o[p[g]]=0),C(i[d])||(o[p[g]]+=isNaN(parseFloat(p[i[d]]))?1:parseFloat(p[i[d]])))})})}),Object.keys(o).forEach((h,d)=>{const c={[r]:h};a&&(c[a]=o[h]),l.push(c)}),l};class $S extends gn{get relatedAxisComponent(){return this._relatedAxisComponent}setStartAndEnd(t,e,i=["percent","percent"]){const[s="percent",r="percent"]=i,a=s==="percent"?t:this.dataToStatePoint(t),o=r==="percent"?e:this.dataToStatePoint(e);this._handleChange(a,o,!0)}enableInteraction(){this._activeRoam=!0}disableInteraction(){this._activeRoam=!1}zoomIn(t){this._handleChartZoom({zoomDelta:1.2,zoomX:t==null?void 0:t.x,zoomY:t==null?void 0:t.y})}zoomOut(t){this._handleChartZoom({zoomDelta:.8,zoomX:t==null?void 0:t.x,zoomY:t==null?void 0:t.y})}_handleChange(t,e,i){var s,r;(r=(s=this._spec)===null||s===void 0?void 0:s.zoomLock)!==null&&r!==void 0&&r||e-t!==this._spanCache&&(e-tthis._maxSpan)?this._shouldChange=!1:(this._shouldChange=!0,this._spanCache=e-t)}_isReverse(){const t=this._relatedAxisComponent;if(!t)return!1;const e=t.getScale();return e.range()[0]>e.range()[1]&&(!t.getInverse()||this._isHorizontal)}_updateRangeFactor(t){const e=this._relatedAxisComponent.getScale(),i=this._isReverse(),s=i?[1-this._end,1-this._start]:[this._start,this._end];if(i)switch(t){case"startHandler":e.rangeFactorEnd(s[1]);break;case"endHandler":e.rangeFactorStart(s[0]);break;default:e.rangeFactorStart(s[0],!0),e.rangeFactorEnd(s[1])}else switch(t){case"startHandler":e.rangeFactorStart(s[0]);break;case"endHandler":e.rangeFactorEnd(s[1]);break;default:e.rangeFactorEnd(s[1],!0),e.rangeFactorStart(s[0])}const r=e.rangeFactor();r?(this._start=i?1-r[1]:r[0],this._end=i?1-r[0]:r[1]):(this._start=0,this._end=1)}get visible(){return this._visible}constructor(t,e){super(t,e),this.layoutType="none",this._orient="left",this._cacheVisibility=void 0,this._dataUpdating=!1,this._shouldChange=!0,this._stateField="x",this._activeRoam=!0,this._zoomAttr={enable:!0,rate:1,focus:!0},this._dragAttr={enable:!0,rate:1,reverse:!0},this._scrollAttr={enable:!0,rate:1,reverse:!0},this.effect={onZoomChange:i=>{var s,r;const a=this._relatedAxisComponent;if(a&&this._filterMode==="axis"){const o=a.getScale(),l=a.getSpec();this._auto&&this._getAxisBandSize(l)&&this._spec.ignoreBandSize&&(o.bandwidth("auto"),o.maxBandwidth("auto"),o.minBandwidth("auto")),this._updateRangeFactor(i),this._auto&&((r=(s=this._component)===null||s===void 0?void 0:s.setStartAndEnd)===null||r===void 0||r.call(s,this._start,this._end)),a.effect.scaleUpdate()}else Ee(this._regions,o=>{var l;(l=o.getViewData())===null||l===void 0||l.markRunning()},{userId:this._seriesUserId,specIndex:this._seriesIndex}),Ee(this._regions,o=>{o.reFilterViewData()},{userId:this._seriesUserId,specIndex:this._seriesIndex})}},this._visible=!0,this._handleStateChange=(i,s,r)=>{var a,o;return this._startValue=i,this._endValue=s,this._newDomain=this._parseDomainFromState(this._startValue,this._endValue),(o=(a=this.effect).onZoomChange)===null||o===void 0||o.call(a,r),!0},this._handleChartZoom=i=>{var s,r;if(!this._activeRoam)return;const{zoomDelta:a,zoomX:o,zoomY:l}=i,{x:h,y:d}=this._regions[0].getLayoutStartPoint(),{width:c,height:u}=this._regions[0].getLayoutRect(),p=Math.abs(this._start-this._end),g=(r=(s=this._spec.roamZoom)===null||s===void 0?void 0:s.rate)!==null&&r!==void 0?r:1;if(p>=1&&a<1||p<=.01&&a>1)return;const f=this._isHorizontal?o:l,_=p*(a-1)*g;let m=_/2,y=_/2;if(f){const x=this._isHorizontal?h:d,S=this._isHorizontal?c:u;m=Math.abs(x-f)/Math.abs(S-x)*_,y=Math.abs(S-f)/Math.abs(S-x)*_}const b=Fe(this._start+m,0,1),v=Fe(this._end-y,0,1);this._handleChange(Math.min(b,v),Math.max(b,v),!0)},this._handleChartScroll=(i,s)=>{var r;if(!this._activeRoam)return!1;const{scrollX:a,scrollY:o}=i;let l=this._isHorizontal?a:o;const h=this._isHorizontal?Gt(a/o)>=.5:Gt(o/a)>=.5;this._scrollAttr.reverse||(l=-l),h&&this._handleChartMove(l,(r=this._scrollAttr.rate)!==null&&r!==void 0?r:1);const d=this._start!==0&&this._end!==1;return h&&d},this._handleChartDrag=(i,s)=>{var r;if(!this._activeRoam)return;const[a,o]=i;let l=this._isHorizontal?a:o;this._dragAttr.reverse&&(l=-l),this._handleChartMove(l,(r=this._dragAttr.rate)!==null&&r!==void 0?r:1)},this._handleChartMove=(i,s)=>{const r=this._isHorizontal?this.getLayoutRect().width:this.getLayoutRect().height;if(Math.abs(i)>=1e-6){if(i>0&&this._end<1){const a=Math.min(1-this._end,i/r)*s;this._handleChange(this._start+a,this._end+a,!0)}else if(i<0&&this._start>0){const a=Math.max(-this._start,i/r)*s;this._handleChange(this._start+a,this._end+a,!0)}}return!1},this._orient=to(t),this._isHorizontal=aL(this._orient)==="horizontal"}created(){super.created(),this._setAxisFromSpec(),this._setRegionsFromSpec(),this._initEvent(),this._initData(),this._initStateScale(),this._setStateFromSpec()}initLayout(){super.initLayout(),this._layout&&(this._layout.layoutOrient=this._orient)}_setAxisFromSpec(){if(P(this._spec.axisId)?this._relatedAxisComponent=this._option.getComponentByUserId(this._spec.axisId):P(this._spec.axisIndex)&&(this._relatedAxisComponent=this._option.getComponentByIndex("axes",this._spec.axisIndex)),C(this._spec.field)&&!this._relatedAxisComponent){const t=this._option.getComponentsByKey("axes"),e=t.find(i=>i._orient===this._orient);if(e)this._relatedAxisComponent=e;else{const i=t.find(s=>!ie(s.getScale().type));this._relatedAxisComponent=i}}this._relatedAxisComponent&&this._filterMode==="axis"&&(this._relatedAxisComponent.autoIndentOnce=!0)}_setRegionsFromSpec(){var t,e;this._regions=this._relatedAxisComponent?this._relatedAxisComponent.getRegions():this._option.getAllRegions();const i=this._relatedAxisComponent?(e=(t=this._relatedAxisComponent).getBindSeriesFilter)===null||e===void 0?void 0:e.call(t):null;if(P(i)&&(P(i.userId)&&(this._seriesUserId=H(i.userId)),P(i.specIndex)&&(this._seriesIndex=H(i.specIndex))),P(this._spec.seriesId)){const s=H(this._spec.seriesId);this._seriesUserId?this._seriesUserId=this._seriesUserId.filter(r=>s.includes(r)):this._seriesUserId=s}if(P(this._spec.seriesIndex)){const s=H(this._spec.seriesIndex);this._seriesIndex?this._seriesIndex=this._seriesIndex.filter(r=>s.includes(r)):this._seriesIndex=s}if(P(this._spec.regionIndex)){const s=this._option.getRegionsInIndex(H(this._spec.regionIndex));this._regions=this._regions.filter(r=>s.includes(r))}else if(P(this._spec.regionId)){const s=H(this._spec.regionId);this._regions=s.length?this._regions.filter(r=>s.includes(r.id)):[]}}onDataUpdate(){var t;const e=this._computeDomainOfStateScale(ie(this._stateScale.type));this._stateScale.domain(e,!1),this._handleChange(this._start,this._end,!0),this._spec.auto&&(this._dataUpdating=!0,(t=this.getChart())===null||t===void 0||t.setLayoutTag(!0,null,!1))}_computeDomainOfStateScale(t){if(this._spec.customDomain)return this._spec.customDomain;const e=this._data.getLatestData().map(i=>i[this._stateField]);if(t){const i=e.map(s=>1*s);return e.length?[ti(i),Ve(i)]:[-1/0,1/0]}return e}_initEvent(){this._initCommonEvent()}_initData(){const t=[],e=[],i=[];if(this._relatedAxisComponent){const a={};Ee(this._regions,o=>{var l,h;const d=o.coordinate==="cartesian"?o.getXAxisHelper():o.coordinate==="polar"?o.angleAxisHelper:null,c=o.coordinate==="cartesian"?o.getYAxisHelper():o.coordinate==="polar"?o.radiusAxisHelper:null;if(!d||!c)return;const u=d.getAxisId()===this._relatedAxisComponent.id?d:c.getAxisId()===this._relatedAxisComponent.id?c:this._isHorizontal?d:c,p=u===d?c:d,g=ie(p.getScale(0).type);t.push(o.getRawData());const f=o.getSpec(),_=H(f.xField),m=H(f.yField),y=o.coordinate==="cartesian"?_[0]:(l=f.angleField)!==null&&l!==void 0?l:f.categoryField,b=o.coordinate==="cartesian"?m[0]:(h=f.radiusField)!==null&&h!==void 0?h:f.valueField;if(a[o.id]=o.type==="link"?"from_xField":u===d?y:b,e.push(a[o.id]),this._valueField){const v=o.type==="link"?"from_yField":p===d?y:b;i.push(g?v:null)}},{userId:this._seriesUserId,specIndex:this._seriesIndex}),this._originalStateFields=a}else Ee(this._regions,a=>{t.push(a.getRawData()),e.push(this._field),this._valueField&&i.push(this._spec.valueField)},{userId:this._seriesUserId,specIndex:this._seriesIndex});const{dataSet:s}=this._option;br(s,"dataview",j_),Tt(s,"dataFilterComputeDomain",Mrt);const r=new Ut(s,{name:`${this.type}_${this.id}_data`});r.transform({type:"dataFilterComputeDomain",options:{input:{dataCollection:t,stateFields:e,valueFields:i},output:{stateField:this._stateField,valueField:this._valueField}}},!1),this._data=new $s(this._option,r),r.reRunAllTransform(),s.multipleDataViewAddListener(t,"change",this._handleDataCollectionChange.bind(this))}setAttrFromSpec(){var t;super.setAttrFromSpec(),this._spec.roamZoom===!0||this._spec.roamZoom?this._zoomAttr=Y({},this._zoomAttr,this._spec.roamZoom):this._zoomAttr.enable=!1,this._spec.roamDrag===!0||this._spec.roamDrag?this._dragAttr=Y({},this._dragAttr,this._spec.roamDrag):this._dragAttr.enable=!1,this._spec.roamScroll===!0||this._spec.roamScroll?this._scrollAttr=Y({},this._scrollAttr,this._spec.roamScroll):this._scrollAttr.enable=!1,this._field=this._spec.field,this._width=this._computeWidth(),this._height=this._computeHeight(),this._visible=(t=this._spec.visible)===null||t===void 0||t}_statePointToData(t){const e=this._stateScale,i=e.domain();if(ie(e.type))return this._isReverse()?i[0]+(i[1]-i[0])*(1-t):i[0]+(i[1]-i[0])*t;let s=e.range();this._isReverse()&&(s=s.slice().reverse());const r=s[0]+(s[1]-s[0])*t;return e.invert(r)}dataToStatePoint(t){const e=this._stateScale,i=e.scale(t);let s=e.range();return!this._isHorizontal&&ie(e.type)&&(s=s.slice().reverse()),(i-s[0])/(s[1]-s[0])}_modeCheck(t,e){return t==="start"?e==="percent"&&this._spec.start||e==="value"&&this._spec.startValue:e==="percent"&&this._spec.end||e==="value"&&this._spec.endValue}_setStateFromSpec(){var t,e;let i,s;if(this._auto=!!this._spec.auto,this._spec.rangeMode){const[r,a]=this._spec.rangeMode;this._modeCheck("start",r)&&this._modeCheck("end",a)&&(i=r==="percent"?this._spec.start:this.dataToStatePoint(this._spec.startValue),s=a==="percent"?this._spec.end:this.dataToStatePoint(this._spec.endValue))}else i=this._spec.start?this._spec.start:this._spec.startValue?this.dataToStatePoint(this._spec.startValue):0,s=this._spec.end?this._spec.end:this._spec.endValue?this.dataToStatePoint(this._spec.endValue):1;this._startValue=this._statePointToData(i),this._endValue=this._statePointToData(s),this._start=i,this._end=s,this._minSpan=(t=this._spec.minSpan)!==null&&t!==void 0?t:0,this._maxSpan=(e=this._spec.maxSpan)!==null&&e!==void 0?e:1,ie(this._stateScale.type)&&this._stateScale.domain()[0]!==this._stateScale.domain()[1]&&(this._spec.minValueSpan&&(this._minSpan=this._spec.minValueSpan/(this._stateScale.domain()[1]-this._stateScale.domain()[0])),this._spec.maxValueSpan&&(this._maxSpan=this._spec.maxValueSpan/(this._stateScale.domain()[1]-this._stateScale.domain()[0]))),this._minSpan=Math.max(0,this._minSpan),this._maxSpan=Math.min(this._maxSpan,1),this._relatedAxisComponent&&this._filterMode==="axis"||this._start===0&&this._end===1||(this._newDomain=this._parseDomainFromState(this._startValue,this._endValue))}_parseFieldOfSeries(t){var e;return(e=this._originalStateFields)===null||e===void 0?void 0:e[t.id]}_initStateScale(){const t=[0,1];if(this._relatedAxisComponent){const e=this._relatedAxisComponent.getScale(),i=ie(e.type),s=this._computeDomainOfStateScale(i);if(this._stateScale=e.clone(),i){const r=s.map(a=>1*a);this._stateScale.domain(s.length?[ti(r),Ve(r)]:[0,1],!0).range(t)}else this._stateScale.domain(s,!0).range(t)}else this._stateScale=new qo,this._stateScale.domain(this._computeDomainOfStateScale(),!0).range(t)}init(t){super.init(t),this._addTransformToSeries(),this._start===0&&this._end===1||this.effect.onZoomChange()}_addTransformToSeries(){this._relatedAxisComponent&&this._filterMode==="axis"||(Tt(this._option.dataSet,"dataFilterWithNewDomain",Trt),Ee(this._regions,t=>{t.addViewDataFilter({type:"dataFilterWithNewDomain",options:{getNewDomain:()=>this._newDomain,field:()=>{var e;return(e=this._field)!==null&&e!==void 0?e:this._parseFieldOfSeries(t)},isContinuous:()=>ie(this._stateScale.type)},level:Ss.dataZoomFilter})},{userId:this._seriesUserId,specIndex:this._seriesIndex}))}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reMake||ue(e,t)||(i.reRender=!0,i.reMake=!0),i}reInit(t){super.reInit(t),this._marks.forEach(e=>{e.getMarks().forEach(i=>{this.initMarkStyleWithSpec(i,this._spec[i.name])})})}changeRegions(){}update(t){}resize(t){}_parseDomainFromState(t,e){if(ie(this._stateScale.type))return[Math.min(e,t),Math.max(e,t)];const i=this._stateScale.domain(),s=i.indexOf(t),r=i.indexOf(e);return i.slice(Math.min(s,r),Math.max(s,r)+1)}_initCommonEvent(){var t,e,i,s,r,a,o;const l={delayType:(e=(t=this._spec)===null||t===void 0?void 0:t.delayType)!==null&&e!==void 0?e:"throttle",delayTime:P((i=this._spec)===null||i===void 0?void 0:i.delayType)?(r=(s=this._spec)===null||s===void 0?void 0:s.delayTime)!==null&&r!==void 0?r:30:0,realTime:(o=(a=this._spec)===null||a===void 0?void 0:a.realTime)===null||o===void 0||o};this._zoomAttr.enable&&this.initZoomEventOfRegions(this._regions,null,this._handleChartZoom,l),this._scrollAttr.enable&&this.initScrollEventOfRegions(this._regions,null,this._handleChartScroll,l),this._dragAttr.enable&&this.initDragEventOfRegions(this._regions,null,this._handleChartDrag,l)}updateLayoutAttribute(){this._visible&&this._createOrUpdateComponent(),super.updateLayoutAttribute()}onLayoutStart(t,e,i){super.onLayoutStart(t,e,i);const s=this._autoUpdate(t),r=this._isHorizontal?"height":"width";this.layout.setLayoutRect({[r]:s?this[`_${r}`]:0},{[r]:tt.Built_In}),this._dataUpdating=!1}getBoundsInRect(t){const e={x1:this.getLayoutStartPoint().x,y1:this.getLayoutStartPoint().y,x2:0,y2:0};return this._isHorizontal?(e.y2=e.y1+this._height,e.x2=e.x1+t.width):(e.x2=e.x1+this._width,e.y2=e.y1+t.height),e}hide(){var t;(t=this._component)===null||t===void 0||t.hideAll()}show(){var t;(t=this._component)===null||t===void 0||t.showAll()}_getAxisBandSize(t){const e=t==null?void 0:t.bandSize,i=t==null?void 0:t.maxBandSize,s=t==null?void 0:t.minBandSize;if(e||s||i)return{bandSize:e,maxBandSize:i,minBandSize:s}}_autoUpdate(t){var e,i,s,r,a,o;if(!this._auto)return this._cacheVisibility=void 0,!0;const l=this._relatedAxisComponent,h=l==null?void 0:l.getSpec(),d=l==null?void 0:l.getScale(),c=this._getAxisBandSize(h);if(!this._dataUpdating&&vi(d.type)&&(t==null?void 0:t.height)===((e=this._cacheRect)===null||e===void 0?void 0:e.height)&&(t==null?void 0:t.width)===((i=this._cacheRect)===null||i===void 0?void 0:i.width)&&this._fixedBandSize===(c==null?void 0:c.bandSize))return this._cacheVisibility;let u=!0;if(this._isHorizontal&&(t==null?void 0:t.width)!==((s=this._cacheRect)===null||s===void 0?void 0:s.width)?d.range(l.getInverse()?[t.width,0]:[0,t.width]):(t==null?void 0:t.height)!==((r=this._cacheRect)===null||r===void 0?void 0:r.height)&&d.range(l.getInverse()?[0,t.height]:[t.height,0]),this._cacheRect={width:t==null?void 0:t.width,height:t==null?void 0:t.height},this._fixedBandSize=c==null?void 0:c.bandSize,vi(d.type)){c&&(this._start||this._end)&&(this.type===U.scrollBar&&(this._start=0,this._end=1),this._updateRangeFactor());const[p,g]=(a=d.rangeFactor())!==null&&a!==void 0?a:[];u=(!C(p)||!C(g))&&!(p===0&&g===1)}else{const[p,g]=(o=d.rangeFactor())!==null&&o!==void 0?o:[this._start,this._end];u=!(p===0&&g===1)}return this.setStartAndEnd(this._start,this._end),u?this.show():this.hide(),this._cacheVisibility=u,u}_getNeedClearVRenderComponents(){return[this._component]}}$e($S,PS);class E2 extends Ou{_mergeThemeToSpec(t,e){const i=this._theme;let s=t;if(this._shouldMergeThemeToSpec()){const r=o=>{const l=vt({selectedBackgroundChart:{line:{},area:{}}},this._theme,o),{selectedBackgroundChart:h={}}=o,{line:d,area:c}=h;return d&&d.visible!==!1&&(l.selectedBackgroundChart.line.style=Object.assign(Object.assign({},l.selectedBackgroundChart.line.style),{visible:!0})),c&&c.visible!==!1&&(l.selectedBackgroundChart.area.style=Object.assign(Object.assign({},l.selectedBackgroundChart.area.style),{visible:!0})),l},a=t;s=V(a)?a.map(o=>r(o)):r(a)}return this._adjustPadding(s),{spec:s,theme:i}}}class uc extends $S{static getSpecInfo(t){const e=t[this.specKey];if(C(e))return;if(!V(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.dataZoom}];const i=[];return e.forEach((s,r)=>{i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.dataZoom})}),i}constructor(t,e){var i;super(t,e),this.type=U.dataZoom,this.name=U.dataZoom,this.transformerConstructor=E2,this.specKey="dataZoom",this.layoutZIndex=re.DataZoom,this.layoutLevel=xs.DataZoom,this.layoutType="region-relative",this._isReverseCache=!1,this._dataToPositionX=s=>{const r=this._orient==="left"?this._middleHandlerSize:0,a=this._isHorizontal?this._startHandlerSize/2:0,o=this._isHorizontal?this._stateScale:this._valueScale,l=this._isHorizontal?this._stateField:this._valueField;return o.scale(s[l])+this.getLayoutStartPoint().x+r+a},this._dataToPositionX2=s=>{const r=this._orient==="left"?this._middleHandlerSize:0,a=this._isHorizontal?this._startHandlerSize/2:0,o=this._isHorizontal?this._stateScale:this._valueScale,l=o.domain()[0];return o.scale(l)+this.getLayoutStartPoint().x+r+a},this._dataToPositionY=s=>{const r=this._isHorizontal?this._middleHandlerSize:0,a=this._isHorizontal?0:this._startHandlerSize/2,o=this._isHorizontal?this._valueScale:this._stateScale,l=this._isHorizontal?this._valueField:this._stateField;return o.scale(s[l])+this.getLayoutStartPoint().y+r+a},this._dataToPositionY2=s=>{const r=this._isHorizontal?this._middleHandlerSize:0,a=this._isHorizontal?0:this._startHandlerSize/2,o=this._isHorizontal?this._valueScale:this._stateScale,l=o.domain()[0];return o.scale(l)+this.getLayoutStartPoint().y+r+a},this._valueField="y",this._filterMode=(i=t.filterMode)!==null&&i!==void 0?i:"filter"}created(){super.created(),this._initValueScale()}setAttrFromSpec(){var t,e,i,s,r,a,o,l,h,d;super.setAttrFromSpec(),be(this._spec.roam)&&(this._zoomAttr.enable=this._spec.roam,this._dragAttr.enable=this._spec.roam,this._scrollAttr.enable=this._spec.roam),(this._zoomAttr.enable||this._dragAttr.enable||this._scrollAttr.enable)&&this.initZoomable(this.event,this._option.mode),this._backgroundSize=(e=(t=this._spec.background)===null||t===void 0?void 0:t.size)!==null&&e!==void 0?e:30,this._middleHandlerSize=this._computeMiddleHandlerSize(),this._width=this._computeWidth(),this._height=this._computeHeight(),C((r=(s=(i=this._spec)===null||i===void 0?void 0:i.startHandler)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.size)&&(this._spec.startHandler.style.size=this._isHorizontal?this._height-this._middleHandlerSize:this._width-this._middleHandlerSize),C((l=(o=(a=this._spec)===null||a===void 0?void 0:a.endHandler)===null||o===void 0?void 0:o.style)===null||l===void 0?void 0:l.size)&&(this._spec.endHandler.style.size=this._isHorizontal?this._height-this._middleHandlerSize:this._width-this._middleHandlerSize);const c=(h=this._spec.startHandler.style.visible)===null||h===void 0||h,u=(d=this._spec.endHandler.style.visible)===null||d===void 0||d;this._startHandlerSize=c?this._spec.startHandler.style.size:0,this._endHandlerSize=u?this._spec.endHandler.style.size:0}onLayoutEnd(t){this._updateScaleRange(),this._isReverse()&&!this._isReverseCache&&(this._isReverseCache=this._isReverse(),this.effect.onZoomChange()),this._cacheVisibility!==!1&&super.onLayoutEnd(t)}_initValueScale(){const t=this._computeDomainOfValueScale();if(t){const e=new is;e.domain(t),this._valueScale=e}}_updateScaleRange(){var t,e;const i=this._startHandlerSize+this._endHandlerSize;if(!this._stateScale||!this._valueScale)return;let s;const r=this._isHorizontal?this.getLayoutRect().width-i:this.getLayoutRect().height-i,a=(e=(t=this._relatedAxisComponent)===null||t===void 0?void 0:t.getScale().range())!==null&&e!==void 0?e:[this._startHandlerSize/2,r+this._startHandlerSize/2];this._isHorizontal?(s=this._visible?[this._startHandlerSize/2,this._computeWidth()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([this._computeHeight()-this._middleHandlerSize,0])):this.layoutOrient==="left"?(s=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([this._computeWidth()-this._middleHandlerSize,0])):(s=this._visible?[this._startHandlerSize/2,this._computeHeight()-i+this._startHandlerSize/2]:a,this._stateScale.range(s),this._valueScale.range([0,this._computeWidth()-this._middleHandlerSize])),this._component&&this._cacheVisibility!==!1&&this._component.setAttributes({size:{width:this._computeWidth(),height:this._computeHeight()},position:{x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y}})}_computeDomainOfValueScale(){const t=this._data.getLatestData().map(i=>i[this._valueField]),e=t.map(i=>1*i);return t.length?[ti(e),Ve(e)]:null}_computeMiddleHandlerSize(){var t,e,i,s;let r=0;if(!((e=(t=this._spec)===null||t===void 0?void 0:t.middleHandler)===null||e===void 0)&&e.visible){const a=(i=this._spec.middleHandler.icon.style.size)!==null&&i!==void 0?i:8,o=(s=this._spec.middleHandler.background.size)!==null&&s!==void 0?s:40;r+=Math.max(a,o)}return r}_computeWidth(){return this._visible===!1?0:nt(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:this._backgroundSize+this._middleHandlerSize}_computeHeight(){return this._visible===!1?0:nt(this._spec.height)?this._spec.height:this._isHorizontal?this._backgroundSize+this._middleHandlerSize:this.getLayoutRect().height-(this._startHandlerSize+this._endHandlerSize)/2}_isScaleValid(t){if(!t||!t.domain())return!1;const e=t.domain();return(!ie(t.type)||e[0]!==e[1])&&(!vi(t.type)||rF(e).length!==1)}_getAttrs(t){var e,i,s,r,a;const o=(e=this._spec)!==null&&e!==void 0?e:{};return Object.assign({zIndex:this.layoutZIndex,start:this._start,end:this._end,position:{x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y},orient:this._orient,size:{width:this.getLayoutRect().width,height:this.getLayoutRect().height},showDetail:o.showDetail,brushSelect:(i=o.brushSelect)!==null&&i!==void 0&&i,zoomLock:(s=o.zoomLock)!==null&&s!==void 0&&s,minSpan:this._minSpan,maxSpan:this._maxSpan,delayType:o.delayType,delayTime:P(o.delayType)?(r=o.delayTime)!==null&&r!==void 0?r:30:0,realTime:(a=o.realTime)===null||a===void 0||a,previewData:t&&this._data.getLatestData(),previewPointsX:t&&this._dataToPositionX,previewPointsY:t&&this._dataToPositionY,tolerance:this._spec.tolerance},this._getComponentAttrs(t))}_createOrUpdateComponent(){if(this._visible){const t=this._isHorizontal?this._stateScale:this._valueScale,e=this._isHorizontal?this._valueScale:this._stateScale,i=this._isScaleValid(t)&&this._isScaleValid(e)&&this._spec.showBackgroundChart!==!1,s=this._getAttrs(i);if(this._component)this._component.setAttributes(s);else{const r=this.getContainer();this._component=new eI(s),this._isHorizontal?i&&this._component.setPreviewPointsY1(this._dataToPositionY2):i&&this._component.setPreviewPointsX1(this._dataToPositionX2),this._component.setStatePointToData(a=>this._statePointToData(a)),this._component.addEventListener("change",a=>{const{start:o,end:l,tag:h}=a.detail;this._handleChange(o,l,void 0,h)}),r.add(this._component),this._updateScaleRange()}}}_handleChange(t,e,i,s){if(super._handleChange(t,e,i),this._shouldChange){i&&this._component&&this._component.setStartAndEnd(t,e),this._start=t,this._end=e;const r=this._statePointToData(t),a=this._statePointToData(e);(G(this._spec.updateDataAfterChange)?this._spec.updateDataAfterChange(t,e,r,a):this._handleStateChange(r,a,s))&&this.event.emit(ft.dataZoomChange,{model:this,value:{filterData:this._filterMode!=="axis",start:t,end:e,startValue:this._startValue,endValue:this._endValue,newDomain:this._newDomain}})}}_handleDataCollectionChange(){var t;const e=this._data.getDataView();if(e.reRunAllTransform(),(t=this._component)===null||t===void 0||t.setPreviewData(e.latestData),this._valueScale){const i=this._computeDomainOfValueScale();i&&this._valueScale.domain(i)}}_getComponentAttrs(t){var e,i,s,r,a,o,l,h,d,c,u;const{middleHandler:p={},startText:g={},endText:f={},backgroundChart:_={},selectedBackgroundChart:m={}}=this._spec;return{backgroundStyle:St((e=this._spec.background)===null||e===void 0?void 0:e.style),startHandlerStyle:St((i=this._spec.startHandler)===null||i===void 0?void 0:i.style),middleHandlerStyle:p.visible?{visible:!0,icon:St((s=p.icon)===null||s===void 0?void 0:s.style),background:{size:(r=p.background)===null||r===void 0?void 0:r.size,style:St((a=p.background)===null||a===void 0?void 0:a.style)}}:{visible:!1},endHandlerStyle:St((o=this._spec.endHandler)===null||o===void 0?void 0:o.style),startTextStyle:{padding:g.padding,formatMethod:this._getHandlerTextFormatMethod(g),textStyle:St(g.style)},endTextStyle:{padding:f.padding,formatMethod:this._getHandlerTextFormatMethod(f),textStyle:St(f.style)},selectedBackgroundStyle:St(this._spec.selectedBackground.style),dragMaskStyle:St((l=this._spec.dragMask)===null||l===void 0?void 0:l.style),backgroundChartStyle:t?{line:vt(St((h=_.line)===null||h===void 0?void 0:h.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},St((d=_.area)===null||d===void 0?void 0:d.style))}:{line:{visible:!1},area:{visible:!1}},selectedBackgroundChartStyle:t?{line:vt(St((c=m.line)===null||c===void 0?void 0:c.style),{fill:!1}),area:Object.assign({curveType:"basis",visible:!0},St((u=m.area)===null||u===void 0?void 0:u.style))}:{line:{visible:!1},area:{visible:!1}},disableTriggerEvent:this._option.disableTriggerEvent}}_getHandlerTextFormatMethod(t){const{formatMethod:e,formatter:i}=t,{formatFunc:s}=Rr(e,i);return s?r=>s(r,{label:r},i):void 0}_getNeedClearVRenderComponents(){return[this._component]}clear(){if(this._component){const t=this.getContainer();this._component.removeAllChild(),t&&t.removeChild(this._component),this._component=null}super.clear()}}uc.type=U.dataZoom,uc.transformerConstructor=E2,uc.specKey="dataZoom";const wrt=()=>{L.registerComponent(uc.type,uc)};class __ extends $S{static getSpecInfo(t){const e=t[this.specKey];if(C(e))return;if(!V(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.scrollBar}];const i=[];return e.forEach((s,r)=>{i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.scrollBar})}),i}constructor(t,e){var i;super(t,e),this.type=U.scrollBar,this.name=U.scrollBar,this.specKey="scrollBar",this.layoutZIndex=re.DataZoom,this.layoutLevel=xs.DataZoom,this.layoutType="region-relative",this._filterMode=(i=t.filterMode)!==null&&i!==void 0?i:"axis"}setAttrFromSpec(){super.setAttrFromSpec(),be(this._spec.roam)&&(this._zoomAttr.enable=!1,this._dragAttr.enable=this._spec.roam,this._scrollAttr.enable=this._spec.roam),(this._zoomAttr.enable||this._dragAttr.enable||this._scrollAttr.enable)&&this.initZoomable(this.event,this._option.mode)}onLayoutEnd(t){var e,i;this._updateScaleRange(),(i=(e=this.effect).onZoomChange)===null||i===void 0||i.call(e),super.onLayoutEnd(t)}_updateScaleRange(){this._component&&this._component.setAttributes({x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y,width:this.getLayoutRect().width,height:this.getLayoutRect().height})}_computeWidth(){return nt(this._spec.width)?this._spec.width:this._isHorizontal?this.getLayoutRect().width:$b}_computeHeight(){return nt(this._spec.height)?this._spec.height:this._isHorizontal?$b:this.getLayoutRect().height}_getAttrs(){var t,e,i,s,r,a;return Object.assign({zIndex:this.layoutZIndex,x:this.getLayoutStartPoint().x,y:this.getLayoutStartPoint().y,width:this.getLayoutRect().width,height:this.getLayoutRect().height,range:[this._start,this._end],direction:this._isHorizontal?"horizontal":"vertical",delayType:(t=this._spec)===null||t===void 0?void 0:t.delayType,delayTime:P((e=this._spec)===null||e===void 0?void 0:e.delayType)?(s=(i=this._spec)===null||i===void 0?void 0:i.delayTime)!==null&&s!==void 0?s:30:0,realTime:(a=(r=this._spec)===null||r===void 0?void 0:r.realTime)===null||a===void 0||a},this._getComponentAttrs())}_createOrUpdateComponent(){const t=this._getAttrs();if(this._component)this._component.setAttributes(t);else{const e=this.getContainer();this._component=new wf(t),this._component.addEventListener("scrollDrag",i=>{const s=i.detail.value;this._handleChange(s[0],s[1])}),e.add(this._component)}}_handleChange(t,e,i){super._handleChange(t,e,i);const s=Lf(this._start,t)&&Lf(this._end,e);if(this._shouldChange&&!s){i&&this._component&&this._component.setAttribute("range",[t,e]),this._start=t,this._end=e;const r=this._statePointToData(t),a=this._statePointToData(e);(G(this._spec.updateDataAfterChange)?this._spec.updateDataAfterChange(t,e,r,a):this._handleStateChange(this._statePointToData(t),this._statePointToData(e)))&&this.event.emit(ft.scrollBarChange,{model:this,value:{filterData:this._filterMode!=="axis",start:this._start,end:this._end,startValue:this._startValue,endValue:this._endValue,newDomain:this._newDomain}})}}_handleDataCollectionChange(){}_initCommonEvent(){super._initCommonEvent(),this._component&&this._component.on("scrollDrag",t=>{const e=t.detail.value;this._handleChange(e[0],e[1])})}_getComponentAttrs(){const{rail:t,slider:e,innerPadding:i}=this._spec,s={};return C(i)||(s.padding=i),_t(t==null?void 0:t.style)||(s.railStyle=St(t.style)),_t(e==null?void 0:e.style)||(s.sliderStyle=St(e.style)),s.disableTriggerEvent=this._option.disableTriggerEvent,s}_getNeedClearVRenderComponents(){return[this._component]}}__.type=U.scrollBar,__.specKey="scrollBar";const Crt=()=>{L.registerComponent(__.type,__)},Prt=(n,t)=>{const{datum:e,title:i,content:s}=t,r=[],a=e.call(null);return i.visible&&r.push({type:"title",index:0,datum:a,spec:i}),H(s).forEach((o,l)=>{o.visible&&r.push({type:"content",index:l,datum:a,spec:o})}),r};class Sh extends gn{constructor(){super(...arguments),this.type=U.indicator,this.name=U.indicator,this.specKey="indicator",this.layoutType="none",this.layoutZIndex=re.Indicator,this.layoutLevel=xs.Indicator,this._gap=0,this._activeDatum=null}static getSpecInfo(t){if(this.type!==Sh.type)return null;const e=t[this.specKey];if(!V(e))return e.visible===!1?[]:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.indicator}];const i=[];return e.forEach((s,r)=>{s&&s.visible!==!1&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.indicator})}),i}created(){super.created(),this.initData(),this.initEvent()}setAttrFromSpec(){super.setAttrFromSpec(),this._gap=this._spec.gap||0,this._title=this._spec.title,this._content=H(this._spec.content),this._regions=this._option.getRegionsInUserIdOrIndex(H(this._spec.regionId),H(this._spec.regionIndex))}onRender(t){}changeRegions(t){}initEvent(){var t;if(this._option.disableTriggerEvent||this._spec.trigger==="none")return;const e=(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView();e&&(this._spec.trigger==="hover"?(e.addEventListener("element-highlight:start",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(i.elements[0].getDatum())}),e.addEventListener("element-highlight:reset",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(null)})):(e.addEventListener("element-select:start",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(i.elements[0].getDatum())}),e.addEventListener("element-select:reset",i=>{this.isRelativeModel(i.options.regionId)&&this.updateDatum(null)})))}updateDatum(t){this._activeDatum=t,this._displayData.updateData();const e=this._getIndicatorAttrs();this._createOrUpdateIndicatorComponent(e)}initData(){Tt(this._option.dataSet,"indicatorFilter",Prt);const t=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_data`});t.transform({type:"indicatorFilter",options:{title:this._title,content:this._content,datum:()=>this._activeDatum}}),t.target.addListener("change",this.updateDatum.bind(this)),this._displayData=new $s(this._option,t)}updateLayoutAttribute(){const t=this._getIndicatorAttrs();this._createOrUpdateIndicatorComponent(t),super.updateLayoutAttribute()}_getIndicatorAttrs(){const t=this._regions[0],{width:e,height:i}=t.getLayoutRect(),{x:s,y:r}=t.getLayoutStartPoint(),a=[];return H(this._spec.content).forEach(o=>{const l=vt({},this._theme.content,o);a.push({visible:l.visible!==!1&&(!l.field||this._activeDatum!==null),space:l.space||this._gap,autoLimit:l.autoLimit,autoFit:l.autoFit,fitPercent:l.fitPercent,fitStrategy:l.fitStrategy,style:Object.assign(Object.assign({},Dw(Ea(l.style,["text"]),this._activeDatum)),{text:this._createText(l.field,l.style.text)})})}),{visible:this._spec.visible!==!1&&(this._spec.fixed!==!1||this._activeDatum!==null),size:{width:e,height:i},zIndex:this.layoutZIndex,x:s,y:r,dx:this._spec.offsetX?Bl(this._spec.offsetX,this._computeLayoutRadius()):0,dy:this._spec.offsetY?Bl(this._spec.offsetY,this._computeLayoutRadius()):0,limitRatio:this._spec.limitRatio||1/0,title:{visible:this._spec.title.visible!==!1&&(!P(this._spec.title.field)||this._activeDatum!==null),space:this._spec.title.space||this._gap,autoLimit:this._spec.title.autoLimit,autoFit:this._spec.title.autoFit,fitPercent:this._spec.title.fitPercent,fitStrategy:this._spec.title.fitStrategy,style:Object.assign(Object.assign({},Dw(Ea(this._spec.title.style,["text"]),this._activeDatum)),{text:this._createText(this._spec.title.field,this._spec.title.style.text)})},content:a}}_createOrUpdateIndicatorComponent(t){if(this._indicatorComponent)ue(t,this._cacheAttrs)||this._indicatorComponent.setAttributes(t);else{const e=this.getContainer(),i=new B8(t);i.name="indicator",e.add(i),this._indicatorComponent=i,this._indicatorComponent.on("*",(s,r)=>this._delegateEvent(this._indicatorComponent,s,r))}return this._cacheAttrs=t,this._indicatorComponent}_createText(t,e){var i;return t?this._activeDatum?this._activeDatum[t]:"":G(e)?(i=e(this._activeDatum,void 0))!==null&&i!==void 0?i:"":e??""}_computeLayoutRadius(){const t=this._regions[0],{width:e,height:i}=t.getLayoutRect();return Math.min(e/2,i/2)}isRelativeModel(t){return this._regions.some(e=>e.id===t)}_getNeedClearVRenderComponents(){return[this._indicatorComponent]}clear(){this._cacheAttrs=null,super.clear()}getIndicatorComponent(){return this._indicatorComponent}}Sh.type=U.indicator,Sh.specKey="indicator";const Ert=()=>{L.registerComponent(Sh.type,Sh)},Rrt=["sum","average","min","max","variance","standardDeviation","median"];var Brt=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s1*a),s=ti(i),r=Ve(i);return tr}function cP(n,t,e,i,s,r){var a,o;const{relativeSeries:l}=i;let h;return nt(n.x)&&Fa(t,n.x,e)&&((o=l==null?void 0:(a=l.getXAxisHelper()).setExtendDomain)===null||o===void 0||o.call(a,"marker_xAxis_extend",n.x)),h=Sn(n.x)?Ol(n.x,s)+r.x:l.getXAxisHelper().dataToPosition([n.x])+r.x,h}function uP(n,t,e,i,s,r){var a,o;const{relativeSeries:l}=i;let h;return nt(n.y)&&Fa(t,n.y,e)&&((o=(a=l.getYAxisHelper())===null||a===void 0?void 0:a.setExtendDomain)===null||o===void 0||o.call(a,"marker_yAxis_extend",n.y)),h=Sn(n.y)?Ol(n.y,s)+r.y:l.getYAxisHelper().dataToPosition([n.y])+r.y,h}function pP(n,t,e,i){var s,r;const{relativeSeries:a}=i;return nt(n.angle)&&Fa(t,n.angle,e)&&((r=(s=a.angleAxisHelper)===null||s===void 0?void 0:s.setExtendDomain)===null||r===void 0||r.call(s,"marker_angleAxis_extend",n.angle)),a.angleAxisHelper.dataToPosition([n.angle])}function gP(n,t,e,i){var s,r;const{relativeSeries:a}=i;return nt(n.radius)&&Fa(t,n.radius,e)&&((r=(s=a.radiusAxisHelper)===null||s===void 0?void 0:s.setExtendDomain)===null||r===void 0||r.call(s,"marker_radiusAxis_extend",n.radius)),a.radiusAxisHelper.dataToPosition([n.radius])}function Ol(n,t){return Number(n.substring(0,n.length-1))*t/100}function Qh(n){return Rrt.includes(n)}function m_(n,t,e,i,s){const r=t.getRegion(),a=r.getLayoutStartPoint(),o=e.getRegion(),l=o.getLayoutStartPoint(),h=Math.abs(Math.min(a.x,l.x)-Math.max(a.x+r.getLayoutRect().width,l.x+o.getLayoutRect().width)),d=Math.abs(Math.min(a.y,l.y)-Math.max(a.y+r.getLayoutRect().height,l.y+o.getLayoutRect().height)),c={relativeSeries:i,startRelativeSeries:t,endRelativeSeries:e},u=[],p=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,g=i.getXAxisHelper().getScale(0).domain(),f=i.getYAxisHelper().getScale(0).domain();return p.forEach(_=>{const m=P(_.x),y=P(_.y);if(m&&y){const b=cP(_,g,s,c,h,a),v=uP(_,f,s,c,d,a);u.push([{x:b,y:v}])}else if(m){const b=cP(_,g,s,c,h,a),v=Math.max(a.y+r.getLayoutRect().height,l.y+o.getLayoutRect().height),x=Math.min(a.y,l.y);u.push([{x:b,y:v},{x:b,y:x}])}else if(y){const b=Math.min(a.x,l.x),v=uP(_,f,s,c,d,a),x=Math.max(a.x+r.getLayoutRect().width,l.x+o.getLayoutRect().width);u.push([{x:b,y:v},{x,y:v}])}}),u}function YS(n,t,e,i,s){const r={relativeSeries:i,startRelativeSeries:t,endRelativeSeries:e},a=[],o=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,l=i.angleAxisHelper.getScale(0).domain(),h=i.radiusAxisHelper.getScale(0).domain(),d=Math.min(i.getRegion().getLayoutRect().width/2,i.getRegion().getLayoutRect().height/2);return o.forEach(c=>{const u=P(c.angle),p=P(c.radius);if(u&&p){const g=pP(c,l,s,r),f=gP(c,h,s,r);a.push([{angle:g,radius:f}])}else if(u){const g=pP(c,l,s,r);a.push([{angle:g,radius:-d},{angle:g,radius:d}])}else if(p){const g=gP(c,h,s,r);a.push([{radius:g,angle:0},{radius:g,angle:2*Math.PI}])}}),a}function Irt(n,t){const e=[];return(n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData).forEach(i=>{P(i.areaName)&&e.push([{x:t.nameValueToPosition(i.areaName).x+t.getRegion().getLayoutStartPoint().x,y:t.nameValueToPosition(i.areaName).y+t.getRegion().getLayoutStartPoint().y}])}),e}function XS(n,t,e,i){const s=[],r=n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData,a=V(i);return r.forEach((o,l)=>{var h,d,c,u;const p=o!=null&&o.getRefRelativeSeries?o.getRefRelativeSeries():t,g=p.getRegion(),f=g.getLayoutStartPoint(),{width:_,height:m}=g.getLayoutRect();let y=0,b=0;if(i){const A=a?i[l]:i,T=A.x,M=A.y;T&&(y=Sn(T)?Number(T.substring(0,T.length-1))*_/100:T),M&&(b=Sn(M)?Number(M.substring(0,M.length-1))*m/100:M)}const v=p.getXAxisHelper().getScale(0).domain(),x=p.getYAxisHelper().getScale(0).domain(),S=H(o.x),k=H(o.y);S.length===1&&nt(S[0])&&Fa(v,S[0],e)&&((d=(h=p.getXAxisHelper())===null||h===void 0?void 0:h.setExtendDomain)===null||d===void 0||d.call(h,"marker_xAxis_extend",S[0])),k.length===1&&nt(k[0])&&Fa(x,k[0],e)&&((u=(c=p.getYAxisHelper())===null||c===void 0?void 0:c.setExtendDomain)===null||u===void 0||u.call(c,"marker_yAxis_extend",k[0])),s.push({x:p.getXAxisHelper().dataToPosition(S)+f.x+y,y:p.getYAxisHelper().dataToPosition(k)+f.y+b})}),s}function R2(n,t,e){const i=[];return(n.latestData[0]&&n.latestData[0].latestData?n.latestData[0].latestData:n.latestData).forEach(s=>{var r,a,o,l;const h=s!=null&&s.getRefRelativeSeries?s.getRefRelativeSeries():t,d=h.angleAxisHelper.getScale(0).domain(),c=h.radiusAxisHelper.getScale(0).domain(),u=H(s.angle),p=H(s.radius);u.length===1&&nt(u[0])&&Fa(d,u[0],e)&&((a=(r=h.angleAxisHelper)===null||r===void 0?void 0:r.setExtendDomain)===null||a===void 0||a.call(r,"marker_xAxis_extend",u[0])),p.length===1&&nt(p[0])&&Fa(c,p[0],e)&&((l=(o=h.radiusAxisHelper)===null||o===void 0?void 0:o.setExtendDomain)===null||l===void 0||l.call(o,"marker_yAxis_extend",p[0])),i.push({angle:h.angleAxisHelper.dataToPosition(u),radius:h.radiusAxisHelper.dataToPosition(p)})}),i}function KS(n,t,e){if(e){const r=t.getRegion(),{x:a,y:o}=r.getLayoutStartPoint(),{width:l,height:h}=r.getLayoutRect();return n.map(d=>{let{x:c,y:u}=d;return Sn(c)&&(c=Ol(c,l)),c+=a,Sn(u)&&(u=Ol(u,h)),u+=o,{x:c,y:u}})}const{width:i,height:s}=t.getOption().getChart().getViewRect();return n.map(r=>{let{x:a,y:o}=r;return Sn(a)&&(a=Ol(a,i)),Sn(o)&&(o=Ol(o,s)),{x:a,y:o}})}function qS(n){let t=1/0,e=-1/0,i=1/0,s=-1/0;return n.forEach(r=>{const a=r.getLayoutStartPoint(),o=r.getLayoutRect();a.xe&&(e=a.x+o.width),a.ys&&(s=a.y+o.height)}),{minX:t,maxX:e,minY:i,maxY:s}}function ZS(n,t){const{labelBackground:e={},style:i,shape:s}=n,r=Brt(n,["labelBackground","style","shape"]);if(n.visible!==!1){const a=r;return s!=null&&s.visible?a.shape=Object.assign({visible:!0},St(s.style)):a.shape={visible:!1},e.visible!==!1?(a.panel=Object.assign({visible:!0,customShape:e.customShape},da(St(e.style),t)),P(e.padding)&&(a.padding=ln(e.padding))):(a.panel={visible:!1},a.padding=0),i&&(a.textStyle=da(St(i),t)),a}return{visible:!1}}function xi(n,t){for(const e in n)G(n[e])&&(n[e]=n[e](t));return n}function da(n,t){return G(n)?n(t):n}function fP(n,t){return G(n)?n(t):n}function _P(n,t,e){return P(n)?t==="regionLeft"?e.getLayoutStartPoint().x-n.x:t==="regionRight"?e.getLayoutStartPoint().x+e.getLayoutRect().width-n.x:t==="regionTop"?e.getLayoutStartPoint().y-n.y:t==="regionBottom"?e.getLayoutStartPoint().y+e.getLayoutRect().height-n.y:t:t}function xo(n){const t="x"in n,e="y"in n,i="x1"in n,s="y1"in n,r="angle"in n,a="radius"in n,o="angle1"in n,l="radius1"in n;return{doXProcess:t&&!e&&!s,doXYY1Process:t&&e&&s,doYProcess:e&&!t&&!i,doYXX1Process:e&&t&&i,doXYProcess:t&&e&&i&&s,doAngleProcess:r&&!o&&!a&&!l,doRadiusProcess:a&&!l&&!r&&!o,doAngRadRad1Process:r&&!o&&a&&l,doRadAngAng1Process:a&&r&&o&&!l,doRadAngProcess:r&&a&&o&&l,doCoordinatesProcess:"coordinates"in n&&(!("process"in n)||"process"in n&&"xy"in n.process)}}function So(n){const t="x"in n,e="x1"in n,i="y"in n,s="y1"in n,r="angle"in n,a="radius"in n,o="angle1"in n,l="radius1"in n;return{doXProcess:t&&e&&!i&&!s,doYProcess:i&&s&&!t&&!e,doXYProcess:t&&e&&i&&s,doAngleProcess:r&&o&&!a&&!l,doRadiusProcess:a&&l&&!r&&!o,doRadAngProcess:r&&a&&o&&l,doCoordinatesProcess:"coordinates"in n}}function Yb(n){return{doXYProcess:P(n.x)&&P(n.y),doPolarProcess:P(n.angle)&&P(n.radius),doGeoProcess:P(n.areaName)}}function Ort(n,t,e,i=0){const s=[],r=n.y-t.y,a=n.x-t.x;switch(e){case"top":s.push(n),s.push({x:n.x,y:r>0?n.y-i-Math.abs(r):n.y-i}),s.push({x:t.x,y:r>0?t.y-i:t.y-i-Math.abs(r)}),s.push(t);break;case"bottom":s.push(n),s.push({x:n.x,y:r<0?n.y+i+Math.abs(r):n.y+i}),s.push({x:t.x,y:r<0?t.y+i:t.y+i+Math.abs(r)}),s.push(t);break;case"left":s.push(n),s.push({x:a>0?n.x-i-Math.abs(a):n.x-i,y:n.y}),s.push({x:a>0?t.x-i:t.x-i-Math.abs(a),y:t.y}),s.push(t);break;case"right":s.push(n),s.push({x:a>0?n.x+i:n.x+i+Math.abs(a),y:n.y}),s.push({x:a>0?t.x+i+Math.abs(a):t.x+i,y:t.y}),s.push(t)}return s}function Lrt(n,t,e,i=0){const s=n.y-t.y,r=n.x-t.x;return e==="bottom"?{dx:r>0?-r/2:Math.abs(r/2),dy:s>0?i:Math.abs(s)+i}:e==="top"?{dx:r>0?-Math.abs(r/2):+Math.abs(r/2),dy:s>0?-(Math.abs(s)+i):-i}:e==="left"?{dx:r>0?-r-i:-i,dy:s>0?-s/2:Math.abs(s/2)}:e==="right"?{dx:r>0?i:Math.abs(r)+i,dy:s>0?-s/2:Math.abs(s/2)}:{}}const Drt=(n,t)=>{const e=n[0].latestData;return kI(e,t.field)},Frt=(n,t)=>{const e=n[0].latestData;return Xx(e,t.field)};function zrt(n,t){const e=n[0].latestData;return TI(e,t.field)}function jrt(n,t){const e=n[0].latestData;return MI(e,t.field)}function Hrt(n,t){const e=n[0].latestData;return wI(e,t.field)}function Vrt(n,t){const e=n[0].latestData;return aX(e,t.field)}function Wrt(n,t){const e=n[0].latestData;return oX(e,t.field)}function JS(n,t){const e=[];return t.forEach(i=>{const s={x:null,y:null,angle:null,radius:null,areaName:null};if(P(i.x)){const r=i.x;V(r)?s.x=r.map(a=>ir(a,n,i)):s.x=ir(r,n,i)}if(P(i.y)){const r=i.y;V(r)?s.y=r.map(a=>ir(a,n,i)):s.y=ir(r,n,i)}if(P(i.angle)){const r=i.angle;V(r)?s.angle=r.map(a=>ir(a,n,i)):s.angle=ir(r,n,i)}if(P(i.radius)){const r=i.radius;V(r)?s.radius=r.map(a=>ir(a,n,i)):s.radius=ir(r,n,i)}if(P(i.areaName)){const r=i.areaName;s.areaName=ir(r,n,i)}i.getRefRelativeSeries&&(s.getRefRelativeSeries=i.getRefRelativeSeries),e.push(s)}),e}const Nrt={min:Drt,max:Frt,sum:zrt,average:jrt,variance:Hrt,standardDeviation:Vrt,median:Wrt};function ir(n,t,e){const i=e.getRelativeSeries(),s=e.getStartRelativeSeries(),r=e.getEndRelativeSeries(),a=i.getData().getLatestData(),o=s.getData().getLatestData(),l=r.getData().getLatestData();if(G(n))return n(a,o,l,i,s,r);if(vs(n)){const{aggrType:h,field:d}=n;return Nrt[h](t,{field:d})}return n}class QS extends gn{constructor(){super(...arguments),this.layoutType="none",this._layoutOffsetX=0,this._layoutOffsetY=0}getRelativeSeries(){return this._relativeSeries}getMarkerData(){return this._markerData}static _getMarkerCoordinateType(t){return"cartesian"}static getSpecInfo(t){const e=t[this.specKey];if(_t(e))return;if(!V(e)&&e.visible!==!1&&this._getMarkerCoordinateType(e)===this.coordinateType)return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:this.type}];const i=[];return H(e).forEach((s,r)=>{s.visible!==!1&&this._getMarkerCoordinateType(s)===this.coordinateType&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:this.type})}),i}created(){super.created(),this._bindSeries(),this._initDataView(),this.initEvent()}_getAllRelativeSeries(){return{getRelativeSeries:()=>this._relativeSeries,getStartRelativeSeries:()=>this._startRelativeSeries,getEndRelativeSeries:()=>this._endRelativeSeries}}_getFieldInfoFromSpec(t,e,i){const s={x:"xField",y:"yField",radius:"valueField",angle:"categoryField",areaName:"nameField"};return at(e)&&Qh(e)?{field:i.getSpec()[s[t]],aggrType:e}:e}_processSpecByDims(t){const e=this._relativeSeries,i={};return t.forEach(s=>i[s.dim]=this._getFieldInfoFromSpec(s.dim,s.specValue,e)),Object.assign(Object.assign({},i),this._getAllRelativeSeries())}_processSpecCoo(t){var e;let i;return((e=t.coordinates)!==null&&e!==void 0?e:H(t.coordinate)).map(s=>{const r=this._getSeriesByIdOrIndex(s.refRelativeSeriesId,s.refRelativeSeriesIndex);if(this.coordinateType==="cartesian"){const{xField:a,yField:o}=r.getSpec(),{xFieldDim:l,xFieldIndex:h,yFieldDim:d,yFieldIndex:c}=s;let u=a;P(h)&&(u=H(a)[h]),l&&H(a).includes(l)&&(u=l);let p=o;P(c)&&(p=H(o)[c]),d&&H(o).includes(d)&&(p=d),i=Object.assign({x:void 0,y:void 0},this._getAllRelativeSeries()),at(s[u])&&Qh(s[u])?i.x={field:u,aggrType:s[u]}:i.x=H(u).map(g=>s[g]),at(s[p])&&Qh(s[p])?i.y={field:p,aggrType:s[p]}:i.y=H(p).map(g=>s[g])}else if(this.coordinateType==="polar"){const{valueField:a,categoryField:o}=r.getSpec(),{angleFieldDim:l,angleFieldIndex:h}=s;let d=o;P(h)&&(d=H(o)[h]),l&&H(o).includes(l)&&(d=l);const c=a;i=Object.assign({angle:void 0,radius:void 0},this._getAllRelativeSeries()),at(s[d])&&Qh(s[d])?i.angle={field:d,aggrType:s[d]}:i.angle=H(d).map(u=>s[u]),at(s[c])&&Qh(s[c])?i.radius={field:c,aggrType:s[c]}:i.radius=H(c).map(u=>s[u])}return i.getRefRelativeSeries=()=>r,i})}_getRelativeDataView(){if(this._specifiedDataSeries){let t=[];H(this._specifiedDataSeries).forEach(i=>{t=t.concat(i.getViewData().latestData)});const e=new Ra;return e.registerParser("array",AP),new Ut(e).parse(t,{type:"array"})}return this._relativeSeries.getViewData()}updateLayoutAttribute(){var t,e,i;if((t=this._spec.visible)===null||t===void 0||t){if(!this._markerComponent){const s=this._createMarkerComponent();s.name=(e=this._spec.name)!==null&&e!==void 0?e:this.type,s.id=(i=this._spec.id)!==null&&i!==void 0?i:`${this.type}-${this.id}`,this._markerComponent=s,this.getContainer().add(this._markerComponent),this._markerComponent.on("*",(r,a)=>{this._delegateEvent(this._markerComponent,r,a,null,this.getMarkerData.bind(this))})}this._markerLayout()}super.updateLayoutAttribute()}_getSeriesByIdOrIndex(t,e){var i,s;let r;return r=(i=this._option.getSeriesInUserIdOrIndex(P(t)?[t]:[],[e]))===null||i===void 0?void 0:i[0],r||(r=(s=this._relativeSeries)!==null&&s!==void 0?s:this._getFirstSeries()),r}_bindSeries(){const t=this._spec;this._relativeSeries=this._getSeriesByIdOrIndex(t.relativeSeriesId,t.relativeSeriesIndex),this._startRelativeSeries=this._getSeriesByIdOrIndex(t.startRelativeSeriesId,t.startRelativeSeriesIndex),this._endRelativeSeries=this._getSeriesByIdOrIndex(t.endRelativeSeriesId,t.endRelativeSeriesIndex),t.specifiedDataSeriesIndex&&t.specifiedDataSeriesIndex==="all"||t.specifiedDataSeriesId&&t.specifiedDataSeriesId==="all"?this._specifiedDataSeries=this._option.getAllSeries():(t.specifiedDataSeriesIndex||t.specifiedDataSeriesId)&&(this._specifiedDataSeries=this._getSeriesByIdOrIndex(t.specifiedDataSeriesId,t.specifiedDataSeriesIndex))}initEvent(){this._relativeSeries.coordinate!=="cartesian"&&(this._relativeSeries.event.on("zoom",this._markerLayout.bind(this)),this._relativeSeries.event.on("panmove",this._markerLayout.bind(this)),this._relativeSeries.event.on("scroll",this._markerLayout.bind(this)))}onRender(t){}changeRegions(t){}clear(){super.clear(),this._firstSeries=null}_getFirstSeries(){var t;if(this._firstSeries)return this._firstSeries;const e=zc(this._regions);return e?(this._firstSeries=e,e):((t=this._option)===null||t===void 0||t.onError("need at least one series"),null)}_getNeedClearVRenderComponents(){return[this._markerComponent]}onLayoutStart(t,e,i){C(this._spec.offsetX)||(this._layoutOffsetX=Si(this._spec.offsetX,e.width,e)),C(this._spec.offsetY)||(this._layoutOffsetY=Si(this._spec.offsetY,e.height,e)),super.onLayoutStart(t,e,i)}_compareSpec(t,e){const i=super._compareSpec(t,e);return ue(e,t)||(i.reRender=!0,i.reMake=!0,i.change=!0),i}}function Grt(n,t){const e=n[0].latestData;return lX(e,t.fieldX,t.fieldY)}function t1(n,t){if(t&&t.getRelativeSeries){const e=t.getRelativeSeries();if(e){const i=e.getViewData();return i&&i.latestData&&i.latestData.length?n:[]}}return n}class e1 extends QS{constructor(){super(...arguments),this.specKey="markLine",this.layoutZIndex=re.MarkLine}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:s,doRadAngAng1Process:r,doRadAngProcess:a}=xo(t);return t.coordinateType==="polar"||e||i||s||r||a?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,s,r,a,o,l,h,d,c,u,p,g,f,_,m,y,b;const{label:v={},startSymbol:x={},endSymbol:S={}}=this._spec,k={zIndex:this.layoutZIndex,interactive:(t=this._spec.interactive)===null||t===void 0||t,hover:(e=this._spec.interactive)===null||e===void 0||e,select:(i=this._spec.interactive)===null||i===void 0||i,points:[{x:0,y:0},{x:0,y:0}],center:{x:0,y:0},radius:0,startAngle:0,endAngle:0,lineStyle:da(St((s=this._spec.line)===null||s===void 0?void 0:s.style),this._markerData),clipInRange:(r=this._spec.clip)!==null&&r!==void 0&&r,label:ZS(v,this._markerData),state:{line:xi((o=(a=this._spec.line)===null||a===void 0?void 0:a.state)!==null&&o!==void 0?o:{},this._markerData),lineStartSymbol:xi((h=(l=this._spec.startSymbol)===null||l===void 0?void 0:l.state)!==null&&h!==void 0?h:{},this._markerData),lineEndSymbol:xi((c=(d=this._spec.endSymbol)===null||d===void 0?void 0:d.state)!==null&&c!==void 0?c:{},this._markerData),label:xi((g=(p=(u=this._spec)===null||u===void 0?void 0:u.label)===null||p===void 0?void 0:p.state)!==null&&g!==void 0?g:{},this._markerData),labelBackground:xi((y=(m=(_=(f=this._spec)===null||f===void 0?void 0:f.label)===null||_===void 0?void 0:_.labelBackground)===null||m===void 0?void 0:m.state)!==null&&y!==void 0?y:{},this._markerData)},animation:(b=this._spec.animation)!==null&&b!==void 0&&b,animationEnter:this._spec.animationEnter,animationExit:this._spec.animationExit,animationUpdate:this._spec.animationUpdate};return x.visible?k.startSymbol=Object.assign(Object.assign({},x),{visible:!0,style:St(x.style)}):k.startSymbol={visible:!1},S.visible?k.endSymbol=Object.assign(Object.assign({},S),{visible:!0,style:St(S.style)}):k.endSymbol={visible:!1},this._newMarkLineComponent(k)}_getUpdateMarkerAttrs(){var t,e,i,s;const r=this._spec,a=this._markerData,o=this._startRelativeSeries,l=this._endRelativeSeries,h=this._relativeSeries,d=this._computePointsAttr(),c=h.getViewData().latestData,u=a.latestData[0]&&a.latestData[0].latestData?a.latestData[0].latestData:a.latestData;let p;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:_,maxX:m,minY:y,maxY:b}=qS([o.getRegion(),l.getRegion(),h.getRegion()]);p={x:_,y,width:m-_,height:b-y}}const g=(i=(e=this._markerComponent)===null||e===void 0?void 0:e.attribute)!==null&&i!==void 0?i:{},f=Object.assign(Object.assign({},g.label),{text:this._spec.label.formatMethod?this._spec.label.formatMethod(u,c):(s=g.label)===null||s===void 0?void 0:s.text});return Object.assign(Object.assign({},d),{label:f,limitRect:p,dx:this._layoutOffsetX,dy:this._layoutOffsetY})}_markerLayout(){var t;const e=this._getUpdateMarkerAttrs();(t=this._markerComponent)===null||t===void 0||t.setAttributes(e)}_initDataView(){const t=this._spec,e="coordinates"in t,{doXProcess:i,doYProcess:s,doXYY1Process:r,doYXX1Process:a,doXYProcess:o,doAngleProcess:l,doRadiusProcess:h,doAngRadRad1Process:d,doRadAngAng1Process:c,doRadAngProcess:u}=xo(t);if(this._markerData=this._getRelativeDataView(),!(i||s||r||a||o||l||h||d||c||u||e))return;Tt(this._option.dataSet,"markerAggregation",JS),Tt(this._option.dataSet,"markerRegression",Grt),Tt(this._option.dataSet,"markerFilter",t1);const{options:p,needAggr:g,needRegr:f,processData:_}=this._computeOptions(),m=new Ut(this._option.dataSet);m.parse([_],{type:"dataview"}),g&&m.transform({type:"markerAggregation",options:p}),f&&m.transform({type:"markerRegression",options:p}),m.transform({type:"markerFilter",options:this._getAllRelativeSeries()}),m.target.on("change",()=>{this._markerLayout()}),this._markerData=m}}e1.specKey="markLine";class v_ extends e1{constructor(){super(...arguments),this.type=U.markLine,this.name=U.markLine,this.coordinateType="cartesian"}_newMarkLineComponent(t){return new pa(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,o=P(e.coordinates),l=P(e.process),h=l&&P(e.process.x),d=l&&P(e.process.y),c=P(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t,{doXProcess:p,doYProcess:g,doXYY1Process:f,doYXX1Process:_,doXYProcess:m,doCoordinatesProcess:y}=xo(e);let b=[];if(p||f||g||_||m||o&&h||o&&d){const v=m_(i,s,r,a,u);b=v.length===1?v[0]:v.map(x=>x[0])}else y?b=XS(i,a,u,e.coordinatesOffset):c&&(b=KS(e.positions,a,e.regionRelative));return{points:b}}_markerLayout(){var t,e,i,s,r,a,o,l;const h=this._getUpdateMarkerAttrs();if(this._spec.type==="type-step"){const d=this._startRelativeSeries,c=this._endRelativeSeries,{multiSegment:u,mainSegmentIndex:p}=this._spec.line||{},{connectDirection:g,expandDistance:f=0}=this._spec;let _;if(Sn(f)){const k=d.getRegion(),A=k.getLayoutStartPoint(),T=c.getRegion(),M=T.getLayoutStartPoint();if(g==="bottom"||g==="top"){const w=Math.abs(Math.min(A.y,M.y)-Math.max(A.y+k.getLayoutRect().height,M.y+T.getLayoutRect().height));_=Number(f.substring(0,f.length-1))*w/100}else{const w=Math.abs(Math.min(A.x,M.x)-Math.max(A.x+k.getLayoutRect().width,M.x+T.getLayoutRect().width));_=Number(f.substring(0,f.length-1))*w/100}}else _=f;const{points:m,label:y,limitRect:b}=h,v=Ort(m[0],m[1],g,_);let x;x=u&&P(p)?{position:"middle",autoRotate:!1,refX:0,refY:0}:Object.assign(Object.assign({position:"start",autoRotate:!1},Lrt(m[0],m[1],g,_)),{refX:0,refY:0}),z((t=this._spec.label)===null||t===void 0?void 0:t.refX)&&(x.refX+=this._spec.label.refX),z((e=this._spec.label)===null||e===void 0?void 0:e.refY)&&(x.refY+=this._spec.label.refY),z((i=this._spec.label)===null||i===void 0?void 0:i.dx)&&(x.dx=(x.dx||0)+this._spec.label.dx),z((s=this._spec.label)===null||s===void 0?void 0:s.dy)&&(x.dy=(x.dy||0)+this._spec.label.dy);const S=(a=(r=this._markerComponent)===null||r===void 0?void 0:r.attribute)!==null&&a!==void 0?a:{};(o=this._markerComponent)===null||o===void 0||o.setAttributes({points:u?[[v[0],v[1]],[v[1],v[2]],[v[2],v[3]]]:v,label:Object.assign(Object.assign(Object.assign({},y),x),{textStyle:Object.assign(Object.assign({},S.label.textStyle),{textAlign:"center",textBaseline:"middle"})}),limitRect:b,multiSegment:u,mainSegmentIndex:p,dx:this._layoutOffsetX,dy:this._layoutOffsetY})}else(l=this._markerComponent)===null||l===void 0||l.setAttributes(h)}_computeOptions(){let t,e=this._getRelativeDataView(),i=!0,s=!1;const r=this._spec,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYY1Process:h,doYXX1Process:d,doXYProcess:c,doCoordinatesProcess:u}=xo(r);if(c)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x1},{dim:"y",specValue:r.y1}])];else if(o)t=[this._processSpecByDims([{dim:"x",specValue:r.x}])];else if(l)t=[this._processSpecByDims([{dim:"y",specValue:r.y}])];else if(h)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y1}])];else if(d)t=[this._processSpecByDims([{dim:"x",specValue:r.x},{dim:"y",specValue:r.y}]),this._processSpecByDims([{dim:"x",specValue:r.x1},{dim:"y",specValue:r.y}])];else if(u){if(t=this._processSpecCoo(r),i=!1,e=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_data`}).parse([a.getViewData()],{type:"dataview"}).transform({type:"markerAggregation",options:t}),r.process&&"x"in r.process&&(t=[this._processSpecByDims([{dim:"x",specValue:r.process.x}])],i=!0),r.process&&"y"in r.process&&(t=t=[this._processSpecByDims([{dim:"y",specValue:r.process.y}])],i=!0),r.process&&"xy"in r.process){const{xField:p,yField:g}=a.getSpec();t={fieldX:p,fieldY:g},s=!0}}else i=!1;return{options:t,needAggr:i,needRegr:s,processData:e}}}v_.type=U.markLine,v_.coordinateType="cartesian";const Urt=()=>{L.registerComponent(v_.type,v_),dI()};class y_ extends e1{constructor(){super(...arguments),this.type=U.polarMarkLine,this.name=U.polarMarkLine,this.coordinateType="polar"}_newMarkLineComponent(t){const{doRadiusProcess:e,doRadAngAng1Process:i}=xo(this._spec);return e||i?new po(t):new pa(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,o=(t=e.autoRange)!==null&&t!==void 0&&t,{doAngleProcess:l,doRadiusProcess:h,doAngRadRad1Process:d,doRadAngAng1Process:c,doRadAngProcess:u,doCoordinatesProcess:p}=xo(e);let g=[],f={};const _={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};if(l||h||d||c||u){const m=YS(i,s,r,a,o);g=m.length===1?m[0]:m.map(y=>y[0]),f=g[0].radius===g[1].radius?{radius:g[0].radius,startAngle:g[0].angle,endAngle:g[1].angle,center:_}:{points:g.map(y=>Ue(_,y.radius,y.angle))}}else p&&(g=R2(i,a,o),f={points:g.map(m=>Ue(_,m.radius,m.angle))});return f}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doAngRadRad1Process:s,doRadAngAng1Process:r,doRadAngProcess:a,doCoordinatesProcess:o}=xo(t);let l;const h=this._getRelativeDataView();return a?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius1}])]:e?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle}])]:i?l=[this._processSpecByDims([{dim:"radius",specValue:t.radius}])]:s?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius1}])]:r?l=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius}])]:o&&(l=this._processSpecCoo(t)),{options:l,needAggr:!0,needRegr:!1,processData:h}}}y_.type=U.polarMarkLine,y_.coordinateType="polar";const $rt=()=>{L.registerComponent(y_.type,y_),x8(),dI()};class b_ extends gn{get orient(){return this._orient}constructor(t,e){super(t,e),this.type=U.title,this.specKey=U.title,this.layoutType="normal",this.layoutZIndex=re.Title,this.layoutLevel=xs.Title,this._orient="top",this._orient=uS(t.orient)?t.orient:"top"}initLayout(){super.initLayout(),this._layout&&(this._layout.layoutOrient=this._orient)}static getSpecInfo(t){const e=t[this.specKey];if(!e||e.visible===!1)return null;if(!V(e))return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.title}];const i=[];return e.forEach((s,r)=>{s.visible!==!1&&i.push({spec:s,specPath:[this.specKey,r],specInfoPath:["component",this.specKey,r],type:U.title})}),i}onRender(t){}_compareSpec(t,e){const i=super._compareSpec(t,e);return(e==null?void 0:e.orient)!==(t==null?void 0:t.orient)&&(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}update(t){}resize(t){}afterSetLayoutStartPoint(t){z(t.x)&&this._titleComponent&&this._titleComponent.setAttribute("x",t.x),z(t.y)&&this._titleComponent&&this._titleComponent.setAttribute("y",t.y),super.afterSetLayoutStartPoint(t)}getBoundsInRect(t){let e={};this.setLayoutRect(t);const i=this._getTitleAttrs();this._createOrUpdateTitleComponent(i),e=this._getTitleLayoutRect();const{x:s,y:r}=this.getLayoutStartPoint();return{x1:s,y1:r,x2:s+e.width,y2:r+e.height}}_getTitleLayoutRect(){const t=this._titleComponent.AABBBounds;return{width:this._spec.width?this._spec.width:z(t.width())?t.width():0,height:this._spec.height?this._spec.height:z(t.height())?t.height():0}}_getTitleAttrs(){var t,e,i,s,r,a,o,l,h;const d=Math.max(0,(t=this._spec.width)!==null&&t!==void 0?t:this.getLayoutRect().width);return Object.assign(Object.assign({},Ea(this._spec,["padding"])),{textType:(e=this._spec.textType)!==null&&e!==void 0?e:"text",text:(i=this._spec.text)!==null&&i!==void 0?i:"",subtextType:(s=this._spec.subtextType)!==null&&s!==void 0?s:"text",subtext:(r=this._spec.subtext)!==null&&r!==void 0?r:"",x:(a=this._spec.x)!==null&&a!==void 0?a:0,y:(o=this._spec.y)!==null&&o!==void 0?o:0,width:d,height:this._spec.height,minWidth:this._spec.minWidth,maxWidth:this._spec.maxWidth,minHeight:this._spec.minHeight,maxHeight:this._spec.maxHeight,padding:this._spec.innerPadding,align:(l=this._spec.align)!==null&&l!==void 0?l:"left",verticalAlign:(h=this._spec.verticalAlign)!==null&&h!==void 0?h:"top",textStyle:Object.assign({width:d},this._spec.textStyle),subtextStyle:Object.assign({width:d},this._spec.subtextStyle)})}_createOrUpdateTitleComponent(t){if(this._titleComponent)ue(t,this._cacheAttrs)||this._titleComponent.setAttributes(t);else{const e=this.getContainer(),i=new vI(t);i.name="title",e.add(i),this._titleComponent=i,i.on("*",(s,r)=>this._delegateEvent(i,s,r))}return this._cacheAttrs=t,this._titleComponent}_getNeedClearVRenderComponents(){return[this._titleComponent]}clear(){super.clear(),this._cacheAttrs=null}}b_.type=U.title,b_.specKey=U.title;const Yrt=()=>{L.registerComponent(b_.type,b_)};class i1 extends QS{constructor(){super(...arguments),this.specKey="markArea",this.layoutZIndex=re.MarkArea}static _getMarkerCoordinateType(t){const{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:s}=So(t);return t.coordinateType==="polar"||e||i||s?"polar":"cartesian"}_createMarkerComponent(){var t,e,i,s,r,a,o,l,h,d,c,u;const p=(t=this._spec.label)!==null&&t!==void 0?t:{},g={zIndex:this.layoutZIndex,interactive:(e=this._spec.interactive)===null||e===void 0||e,hover:(i=this._spec.interactive)===null||i===void 0||i,select:(s=this._spec.interactive)===null||s===void 0||s,points:[{x:0,y:0}],center:{x:0,y:0},innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,areaStyle:da(St((r=this._spec.area)===null||r===void 0?void 0:r.style),this._markerData),clipInRange:(a=this._spec.clip)!==null&&a!==void 0&&a,label:ZS(p,this._markerData),state:{area:xi((o=this._spec.area)===null||o===void 0?void 0:o.state,this._markerData),label:xi((l=this._spec.label)===null||l===void 0?void 0:l.state,this._markerData),labelBackground:xi((c=(d=(h=this._spec)===null||h===void 0?void 0:h.label)===null||d===void 0?void 0:d.labelBackground)===null||c===void 0?void 0:c.state,this._markerData)},animation:(u=this._spec.animation)!==null&&u!==void 0&&u,animationEnter:this._spec.animationEnter,animationExit:this._spec.animationExit,animationUpdate:this._spec.animationUpdate};return this._newMarkAreaComponent(g)}_markerLayout(){var t,e,i,s;const r=this._spec,a=this._markerData,o=this._startRelativeSeries,l=this._endRelativeSeries,h=this._relativeSeries,d=this._computePointsAttr(),c=this._getRelativeDataView().latestData,u=a?a.latestData[0]&&a.latestData[0].latestData?a.latestData[0].latestData:a.latestData:c;let p;if(r.clip||!((t=r.label)===null||t===void 0)&&t.confine){const{minX:g,maxX:f,minY:_,maxY:m}=qS([o.getRegion(),l.getRegion(),h.getRegion()]);p={x:g,y:_,width:f-g,height:m-_}}this._markerComponent&&this._markerComponent.setAttributes(Object.assign(Object.assign({},d),{label:Object.assign(Object.assign({},(e=this._markerComponent.attribute)===null||e===void 0?void 0:e.label),{text:this._spec.label.formatMethod?this._spec.label.formatMethod(u,c):(s=(i=this._markerComponent.attribute)===null||i===void 0?void 0:i.label)===null||s===void 0?void 0:s.text}),limitRect:p,dx:this._layoutOffsetX,dy:this._layoutOffsetY}))}_initDataView(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:s,doAngleProcess:r,doRadiusProcess:a,doRadAngProcess:o,doCoordinatesProcess:l}=So(t);if(!(e||i||s||r||a||o||l))return null;const{options:h}=this._computeOptions(),d=this._getRelativeDataView();Tt(this._option.dataSet,"markerAggregation",JS),Tt(this._option.dataSet,"markerFilter",t1);const c=new Ut(this._option.dataSet,{name:`${this.type}_${this.id}_data`});c.parse([d],{type:"dataview"}),c.transform({type:"markerAggregation",options:h}),c.transform({type:"markerFilter",options:this._getAllRelativeSeries()}),c.target.on("change",()=>{this._markerLayout()}),this._markerData=c}}i1.specKey="markArea";class x_ extends i1{constructor(){super(...arguments),this.type=U.markArea,this.name=U.markArea,this.coordinateType="cartesian"}_newMarkAreaComponent(t){return new ga(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doXProcess:o,doYProcess:l,doXYProcess:h,doCoordinatesProcess:d}=So(e),c=P(e.positions),u=(t=e.autoRange)!==null&&t!==void 0&&t;let p=[],g=[];if(h){g=m_(i,s,r,a,u);const[f,_]=g;f&&f.length&&_&&_.length&&(p=[{x:f[0].x,y:_[0].y},f[0],{x:_[0].x,y:f[0].y},_[0]])}else if(o||l){g=m_(i,s,r,a,u);const[f,_]=g;f&&f.length&&_&&_.length&&(p=[...f,_[1],_[0]])}else d?p=XS(i,a,u,e.coordinatesOffset):c&&(p=KS(e.positions,a,e.regionRelative));return{points:p}}_computeOptions(){const t=this._spec,{doXProcess:e,doYProcess:i,doXYProcess:s,doCoordinatesProcess:r}=So(t);let a;return s?a=[this._processSpecByDims([{dim:"x",specValue:t.x},{dim:"y",specValue:t.y}]),this._processSpecByDims([{dim:"x",specValue:t.x1},{dim:"y",specValue:t.y1}])]:e?a=[this._processSpecByDims([{dim:"x",specValue:t.x}]),this._processSpecByDims([{dim:"x",specValue:t.x1}])]:i?a=[this._processSpecByDims([{dim:"y",specValue:t.y}]),this._processSpecByDims([{dim:"y",specValue:t.y1}])]:r&&(a=this._processSpecCoo(t)),{options:a}}}x_.type=U.markArea,x_.coordinateType="cartesian";const Xrt=()=>{L.registerComponent(x_.type,x_),cI()};class S_ extends i1{constructor(){super(...arguments),this.type=U.polarMarkArea,this.name=U.polarMarkArea,this.coordinateType="polar"}_newMarkAreaComponent(t){const{doRadiusProcess:e,doAngleProcess:i,doRadAngProcess:s}=So(this._spec);return i||e||s?new go(t):new ga(t)}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._startRelativeSeries,r=this._endRelativeSeries,a=this._relativeSeries,{doAngleProcess:o,doRadiusProcess:l,doRadAngProcess:h,doCoordinatesProcess:d}=So(e),c=(t=e.autoRange)!==null&&t!==void 0&&t;let u,p={};const g={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};if(o||l||h){const f=YS(i,s,r,a,c);h?p={innerRadius:f[0][0].radius,outerRadius:f[1][0].radius,startAngle:f[0][0].angle,endAngle:f[1][0].angle,center:g}:o?p={innerRadius:0,outerRadius:Math.abs(f[0][0].radius),startAngle:f[0][1].angle,endAngle:f[1][1].angle,center:g}:l&&(p={innerRadius:f[0][0].radius,outerRadius:f[1][0].radius,startAngle:f[0][0].angle,endAngle:f[1][1].angle,center:g})}else d&&(u=R2(i,a,c),p={points:u.map(f=>Ue(g,f.radius,f.angle))});return p}_computeOptions(){const t=this._spec,{doAngleProcess:e,doRadiusProcess:i,doRadAngProcess:s,doCoordinatesProcess:r}=So(t);let a;return s?a=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius1}])]:e?a=[this._processSpecByDims([{dim:"angle",specValue:t.angle},{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"angle",specValue:t.angle1},{dim:"radius",specValue:t.radius}])]:i?a=[this._processSpecByDims([{dim:"radius",specValue:t.radius}]),this._processSpecByDims([{dim:"radius",specValue:t.radius1}])]:r&&(a=this._processSpecCoo(t)),{options:a}}}S_.type=U.polarMarkArea,S_.coordinateType="polar";const Krt=()=>{L.registerComponent(S_.type,S_),S8(),cI()},mP=n=>{const t=Object.assign({},n);return St(t)},qrt=n=>{const t=Object.assign({},n);return St(t)},Rp=n=>Object.assign(Object.assign({},n),{style:Object.assign({},St(n.style))}),B2=n=>{var t,e,i,s,r,a,o,l,h,d,c,u,p,g,f;const _=mP((e=(t=n==null?void 0:n.slider)===null||t===void 0?void 0:t.trackStyle)!==null&&e!==void 0?e:{}),m=mP((s=(i=n==null?void 0:n.slider)===null||i===void 0?void 0:i.railStyle)!==null&&s!==void 0?s:{}),y=qrt((a=(r=n==null?void 0:n.slider)===null||r===void 0?void 0:r.handlerStyle)!==null&&a!==void 0?a:{}),b=Rp((l=(o=n==null?void 0:n.controller)===null||o===void 0?void 0:o.start)!==null&&l!==void 0?l:{}),v=Rp((d=(h=n==null?void 0:n.controller)===null||h===void 0?void 0:h.pause)!==null&&d!==void 0?d:{}),x=Rp((u=(c=n==null?void 0:n.controller)===null||c===void 0?void 0:c.backward)!==null&&u!==void 0?u:{}),S=Rp((g=(p=n==null?void 0:n.controller)===null||p===void 0?void 0:p.forward)!==null&&g!==void 0?g:{}),k=Object.assign(Object.assign({},n),{direction:n.direction,interval:n.interval,visible:n.visible,orient:(f=n.orient)!==null&&f!==void 0?f:"bottom",slider:Object.assign(Object.assign({},n.slider),{trackStyle:_,railStyle:m,handlerStyle:y}),controller:Object.assign(Object.assign({},n.controller),{start:b,pause:v,backward:x,forward:S})});return n.visible||(k.controller.visible=!1,k.slider.visible=!1),k},Zrt=(n,t)=>Object.assign(Object.assign({},B2(n)),{data:t,type:"continuous"}),Jrt=(n,t)=>Object.assign(Object.assign({},B2(n)),{data:t,type:"discrete"}),td=n=>n==="left"||n==="right",mv=n=>n==="top"||n==="bottom";class A_ extends gn{constructor(){super(...arguments),this.layoutZIndex=re.Player,this.layoutLevel=xs.Player,this.specKey="player",this.type=U.player,this._orient="bottom",this._getPlayerAttrs=()=>{var t,e,i,s,r,a;const o=this._spec.type,l={size:{width:this._width,height:this._height},dx:(t=this._spec.dx)!==null&&t!==void 0?t:0+this._dx,dy:(e=this._spec.dy)!==null&&e!==void 0?e:0+this._dy};return o==="discrete"?Object.assign(Object.assign(Object.assign({},Jrt(this._spec,this._specs)),l),{disableTriggerEvent:this._option.disableTriggerEvent,loop:(s=(i=this._spec)===null||i===void 0?void 0:i.loop)===null||s===void 0||s}):Object.assign(Object.assign(Object.assign({},Zrt(this._spec,this._specs)),l),{disableTriggerEvent:this._option.disableTriggerEvent,loop:(a=(r=this._spec)===null||r===void 0?void 0:r.loop)===null||a===void 0||a})},this._createOrUpdatePlayerComponent=()=>{const t=Object.assign({},this._getPlayerAttrs()),e=this.getContainer();this._playerComponent?ue(t,this._cacheAttrs)||(this._cacheAttrs=t,this._playerComponent.setAttributes(t),this._playerComponent._initAttributes(),this._playerComponent.render()):(t.type==="discrete"?this._playerComponent=new X8(t):this._playerComponent=new q8(t),this._cacheAttrs=t,this._playerComponent.name="player",e.add(this._playerComponent),this._initEvent())},this._maxSize=()=>{var t,e,i,s,r,a,o,l,h;return Math.max(...H((e=(t=this._spec.controller.start)===null||t===void 0?void 0:t.style)===null||e===void 0?void 0:e.size),...H((s=(i=this._spec.controller.pause)===null||i===void 0?void 0:i.style)===null||s===void 0?void 0:s.size),...H((a=(r=this._spec.controller.backward)===null||r===void 0?void 0:r.style)===null||a===void 0?void 0:a.size),...H((l=(o=this._spec.controller.forward)===null||o===void 0?void 0:o.style)===null||l===void 0?void 0:l.size),(h=td(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&h!==void 0?h:10)},this._sliderExceededSize=()=>{var t,e,i,s,r,a,o,l,h;const d=(t=td(this._orient)?this._spec.slider.railStyle.width:this._spec.slider.railStyle.height)!==null&&t!==void 0?t:10,c=Math.max(...H((i=(e=this._spec.controller.start)===null||e===void 0?void 0:e.style)===null||i===void 0?void 0:i.size),...H((r=(s=this._spec.controller.pause)===null||s===void 0?void 0:s.style)===null||r===void 0?void 0:r.size),...H((o=(a=this._spec.controller.backward)===null||a===void 0?void 0:a.style)===null||o===void 0?void 0:o.size),...H((h=(l=this._spec.controller.forward)===null||l===void 0?void 0:l.style)===null||h===void 0?void 0:h.size));return d>=c?d-c:0},this._initEvent=()=>{this._option.disableTriggerEvent||(this._option.globalInstance.on(ft.rendered,()=>{var t;!((t=this._spec)===null||t===void 0)&&t.auto&&this._playerComponent.play()}),this._playerComponent.addEventListener(De.end,()=>{var t;this.event.emit(ft.playerEnd,{model:this}),this._alternate&&this._spec.type==="discrete"&&(this._direction=this._direction==="default"?"reverse":"default",this._playerComponent.setAttributes({direction:this._direction,dataIndex:this._direction==="reverse"?this._specs.length-2:1})),!((t=this._spec)===null||t===void 0)&&t.loop&&this._playerComponent.play()}),this._playerComponent.addEventListener(De.change,t=>{const{index:e}=t.detail,i=this._specs[e];H(i.data).forEach(s=>{var r,a;(a=(r=this._option)===null||r===void 0?void 0:r.globalInstance)===null||a===void 0||a.updateData(s.id,s.values)}),this.event.emit(ft.playerChange,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(De.backward,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(ft.playerBackward,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(De.forward,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(ft.playerForward,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(De.play,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(ft.playerPlay,{model:this,value:{spec:i,index:e,specs:this._specs}})}),this._playerComponent.addEventListener(De.pause,t=>{const{index:e}=t.detail,i=this._specs[e];this.event.emit(ft.playerPause,{model:this,value:{spec:i,index:e,specs:this._specs}})}))}}get orient(){return this._orient}set layoutOrient(t){this._orient=t}static getSpecInfo(t){const e=t[this.specKey];return C(e)?null:[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.player}]}setAttrFromSpec(){var t,e,i,s,r,a,o,l;super.setAttrFromSpec(),this._orient=(t=this._spec.orient)!==null&&t!==void 0?t:"bottom",this._specs=(e=this._spec.specs)!==null&&e!==void 0?e:[],this._direction=(i=this._spec.direction)!==null&&i!==void 0?i:"default",this._alternate=(s=this._spec.alternate)!==null&&s!==void 0&&s,this._dx=(r=this._spec.dx)!==null&&r!==void 0?r:0,this._dy=(a=this._spec.dy)!==null&&a!==void 0?a:0,this._position=(o=this._spec.position)!==null&&o!==void 0?o:"middle",this._visible=(l=this._spec.visible)===null||l===void 0||l}afterSetLayoutStartPoint(t){if(super.afterSetLayoutStartPoint(t),z(t.x)){const e=td(this._orient)?t.x+this._sliderExceededSize()/2:t.x;this._playerComponent&&this._playerComponent.setAttribute("x",e)}if(z(t.y)){const e=mv(this._orient)?t.y+this._sliderExceededSize()/2:t.y;this._playerComponent&&this._playerComponent.setAttribute("y",e)}}getBoundsInRect(t,e){this._width=this._computeWidth(t),this._height=this._computeHeight(t),this._dx=this._computeDx(e),this._dy=this._computeDy(e);const i=this._computeLayoutRect(t,this._width,this._height);return this._createOrUpdatePlayerComponent(),i}changeRegions(t){}onRender(t){}_getNeedClearVRenderComponents(){return[this._playerComponent]}_computeLayoutRect(t,e,i){if(this._visible===!1)return{x1:0,x2:0,y1:0,y2:0};switch(this._orient){case"top":case"left":return{x1:0,y1:0,x2:e,y2:i};case"right":return{x1:t.width-e,y1:0,x2:t.width,y2:t.height};default:return{x1:0,y1:t.height-i,x2:t.width,y2:t.height}}}_computeWidth(t){return nt(this._spec.width)?Math.min(t.width,Number(this._spec.width)):td(this._orient)?this._maxSize():t.width}_computeHeight(t){return nt(this._spec.height)?(this._height=this._spec.height,Math.min(t.height,Number(this._spec.height))):mv(this._orient)?this._maxSize():t.height}_computeDx(t){return td(this._orient)||this._position==="start"?0:this._position==="middle"?(t.width-this._width)/2:t.width-this._width}_computeDy(t){return mv(this._orient)||this._position==="start"?0:this._position==="middle"?(t.height-this._height)/2:t.height-this._height}}A_.specKey="player",A_.type=U.player;const Qrt=()=>{L.registerComponent(A_.type,A_)};class n1 extends gn{constructor(t,e){super(t,e),this.type=U.label,this.name=U.label,this.layoutType="none",this.layoutZIndex=re.Label,this._regions=e.getRegionsInIndex(e.regionIndexes)}_interactiveConfig(t){const{interactive:e}=t,i={hover:!1,select:!1,state:t.state};if(e!==!0)return i;const{hover:s,select:r}=this._option.getChart().getSpec();return s===!1&&s.enable===!1||(i.hover=!0),r===!1&&r.enable===!1||(i.select=!0),i}_compareSpec(t,e){const i=super._compareSpec(t,e);return i.reRender=!0,ue(e,t)||(i.reMake=!0),i}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}_delegateLabelEvent(t){t.listenerCount("*")===0&&t.addEventListener("*",(e,i)=>this._delegateEvent(t,e,i))}}n1.type=U.label;class k_ extends _h{constructor(){super(...arguments),this.skipEncode=!1}getRule(){return this._rule}setRule(t){this._rule=t}getTarget(){return this._target}setTarget(t){this._target=t,this._rule||this.setRule(t.type)}getComponent(){return this._component}setComponent(t){this._component=t}}k_.type="text",k_.constructorType="label";const I2=()=>{L.registerMark(k_.constructorType,k_),YI()};class O2 extends Ou{_initTheme(t,e){return{spec:t,theme:this._theme}}}class pc extends n1{constructor(t,e){super(t,e),this.type=U.label,this.name=U.label,this.specKey="label",this.transformerConstructor=O2,this.layoutZIndex=re.Label,this._layoutRule=t.labelLayout||"series"}static getSpecInfo(t,e){const i=[];return((e==null?void 0:e.region)||[]).forEach((r,a)=>{(r.seriesIndexes||[]).some(o=>{const l=e.series[o],{markLabelSpec:h={}}=l;return Object.values(h).some(d=>Array.isArray(d)&&(c=>c.some(u=>u.visible))(d))})&&i.push({spec:t,type:U.label,specInfoPath:["component",this.specKey,a],regionIndexes:[a]})}),i}init(t){super.init(t),this.initEvent(),this._initTextMark(),this._initLabelComponent(),this._initTextMarkStyle()}reInit(t){super.reInit(t),this._labelInfoMap&&this._labelInfoMap.clear(),this._initTextMark(),this._initTextMarkStyle()}initEvent(){this.event.on(ft.dataZoomChange,()=>{this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&s.disableAnimation()}),this.event.on(ct.AFTER_MARK_RENDER_END,t)});const t=()=>{this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&s.enableAnimation()}),this.event.off(ct.AFTER_MARK_RENDER_END,t)}}afterCompile(){this._labelComponentMap.forEach((t,e)=>{const i=e.getProduct();i&&i.addEventListener(ct.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateLabelEvent(i.getGroupGraphicItem())})})}_initTextMark(){this._labelInfoMap||(this._labelInfoMap=new Map),this._labelComponentMap||(this._labelComponentMap=new Map),Ee(this._regions,t=>{const{markLabelSpec:e={}}=t.getSpecInfo(),i=Object.keys(e),s=t.getRegion();this._labelInfoMap.get(s)||this._labelInfoMap.set(s,[]);for(let r=0;r{if(l.visible){const d=this._labelInfoMap.get(s),c=this._createMark({type:"label",name:`${a}-label-${h}`},{noSeparateStyle:!0,attributeContext:t.getMarkAttributeContext()});c.setTarget(o),d.push({labelMark:c,baseMark:o,series:t,labelSpec:l})}})}})}_initLabelComponent(){this._labelInfoMap.forEach((t,e)=>{if(this._layoutRule==="region"){const i=this._createMark({type:"component",name:`${e.getGroupMark().name}-label-component`},{componentType:"label",noSeparateStyle:!0,support3d:this._spec.support3d});i&&(i.setSkipBeforeLayouted(!0),this._marks.addMark(i),this._labelComponentMap.set(i,()=>this._labelInfoMap.get(e)))}else t.forEach((i,s)=>{const r=this._createMark({type:"component",name:`${i.labelMark.name}-component`},{componentType:"label",noSeparateStyle:!0,support3d:i.baseMark.getSupport3d()});r&&(r.setSkipBeforeLayouted(!0),this._marks.addMark(r),this._labelComponentMap.set(r,()=>this._labelInfoMap.get(e)[s]),i.labelMark.setComponent(r))})})}_initTextMarkStyle(){this._labelInfoMap.forEach(t=>{t.forEach(e=>{var i,s;const{labelMark:r,labelSpec:a,series:o}=e;if(this.initMarkStyleWithSpec(r,a,void 0),G(a==null?void 0:a.getStyleHandler)){const l=a.getStyleHandler(o);l==null||l.call(o,r,a)}!((s=(i=r.stateStyle)===null||i===void 0?void 0:i.normal)===null||s===void 0)&&s.lineWidth&&r.setAttribute("stroke",o.getColorAttribute(),"normal",tt.Base_Series)})})}updateLayoutAttribute(){super.updateLayoutAttribute(),this._labelComponentMap.forEach((t,e)=>{const i=t();V(i)?this._updateMultiLabelAttribute(i,e):this._updateSingleLabelAttribute(i,e)})}_updateMultiLabelAttribute(t,e){this._updateLabelComponentAttribute(e.getProduct(),t.map(({baseMark:i})=>i.getProduct()),t)}_updateSingleLabelAttribute(t,e){const{baseMark:i}=t;this._updateLabelComponentAttribute(e.getProduct(),i.getProduct(),[t])}_updateLabelComponentAttribute(t,e,i){const s=this._option.getComponentsByType("totalLabel");t.target(e).configure({interactive:!1}).depend(s.map(r=>r.getMarks()[0].getProduct())).labelStyle((r,a)=>{var o,l;const h=i[a.labelIndex];if(h){const{labelSpec:d,labelMark:c}=h,u=c.getRule(),p=this._interactiveConfig(d),g=(l=(o=this._spec)===null||o===void 0?void 0:o.centerOffset)!==null&&l!==void 0?l:0,f=vt({textStyle:Object.assign({pickable:d.interactive===!0},d.style),overlap:{avoidMarks:s.map(_=>_.getMarks()[0].getProductId())}},Vtt(u,h),Object.assign(Object.assign(Object.assign({},Ea(d,["position","style","state","type"])),p),{centerOffset:g}));return u!=="line"&&u!=="area"||(f.type=u),f}}).encode((r,a,o)=>{if(i[o.labelIndex]){const{labelSpec:l,labelMark:h}=i[o.labelIndex];return h.skipEncode?{data:r}:ES(i[o.labelIndex],r,l.formatMethod,l.formatter)}}).size(()=>i[0].series.getRegion().getLayoutRect())}compileMarks(){this.getMarks().forEach(t=>{var e;const i=this._labelComponentMap.get(t)();let s;s=V(i)?i[0].series.getRegion().getGroupMark().getProduct():i.series.getRegion().getGroupMark().getProduct(),t.compile({group:s}),(e=t.getProduct())===null||e===void 0||e.configure({context:{model:this,labelInfo:i}})})}getVRenderComponents(){const t=[];return this._labelComponentMap.forEach((e,i)=>{const s=i.getProduct().getGroupGraphicItem();s&&t.push(s)}),t}}pc.type=U.label,pc.specKey="label",pc.transformerConstructor=O2;const tat=()=>{iO(),I2(),Ym(),L.registerComponent(pc.type,pc,!0)};class T_ extends n1{constructor(){super(...arguments),this.type=U.totalLabel,this.name=U.totalLabel,this.specKey="totalLabel",this.layoutZIndex=re.Label}static getSpecInfo(t,e){var i;const s=[];return(i=e==null?void 0:e.region)===null||i===void 0||i.forEach((r,a)=>{var o;(o=r.seriesIndexes)===null||o===void 0||o.forEach(l=>{const{spec:h}=e.series[l],d=h[this.specKey];d!=null&&d.visible&&s.push({spec:d,type:U.totalLabel,specPath:["series",l,this.specKey],specInfoPath:["component",this.specKey,l],regionIndexes:[a],seriesIndexes:[l]})})}),s}init(t){super.init(t),this._initTextMark(),this._initLabelComponent()}_initTextMark(){var t;const e=this._getSeries();if(!((t=e.getSpec().totalLabel)===null||t===void 0)&&t.visible){const i=e.getSeriesMark();if(i){const s=this._createMark({type:"label",name:`${i.name}-total-label`});this._baseMark=i,this._textMark=s,this._initTextMarkStyle()}}}_initTextMarkStyle(){var t;super.initMarkStyleWithSpec(this._textMark,this._spec),this.setMarkStyle(this._textMark,{text:i=>i[gO]},"normal",tt.Default);const e=this._getSeries();(t=e.initTotalLabelMarkStyle)===null||t===void 0||t.call(e,this._textMark)}_initLabelComponent(){const t=this._getSeries(),e=this._createMark({type:"component",name:`${t.name}-total-label-component`},{componentType:"label",noSeparateStyle:!0,support3d:this._spec.support3d});e&&this._marks.addMark(e)}afterCompile(){this._marks.forEach((t,e)=>{const i=t.getProduct();i&&i.addEventListener(ct.AFTER_ELEMENT_ENCODE,()=>{this._isLayout===!1&&this._delegateLabelEvent(i.getGroupGraphicItem())})})}updateLayoutAttribute(){super.updateLayoutAttribute();const t=this._getSeries();this._marks.forEach((e,i)=>{e.getProduct().target(this._baseMark.getProduct()).configure({interactive:!1}).labelStyle(()=>{var s,r;if(this._baseMark){const{offset:a,animation:o,overlap:l}=this._spec,h=this._interactiveConfig(this._spec);return vt({textStyle:{pickable:this._spec.interactive===!0},position:eat(t,this._baseMark.type),x:0,y:0},(r=(s=t.getTotalLabelComponentStyle)===null||s===void 0?void 0:s.call(t,{baseMark:this._baseMark,labelMark:this._textMark}))!==null&&r!==void 0?r:{},Object.assign({offset:a,animation:o,overlap:l,dataFilter:d=>d.filter(c=>c.data[Vc])},h))}}).encode(s=>ES({baseMark:this._baseMark,labelMark:this._textMark,series:t,labelSpec:t.getSpec().totalLabel},s,this._spec.formatMethod)).size(()=>this._regions[0].getLayoutRect())})}compileMarks(){this.getMarks().forEach(t=>{var e;const i=this._regions[0].getGroupMark().getProduct();t.compile({group:i}),(e=t.getProduct())===null||e===void 0||e.configure({context:{model:this}})})}getVRenderComponents(){const t=[];return this.getMarks().forEach(e=>{const i=e.getProduct().getGroupGraphicItem();i&&t.push(i)}),t}_getSeries(){return this._option.getSeriesInIndex([this.getSpecPath()[1]])[0]}}T_.type=U.totalLabel,T_.specKey="totalLabel";function eat(n,t){var e,i;let s;const{direction:r}=n,a={vertical:["top","bottom"],horizontal:["right","left"]},o=(r==="horizontal"?!((e=n.getXAxisHelper())===null||e===void 0)&&e.isInverse():!((i=n.getYAxisHelper())===null||i===void 0)&&i.isInverse())?1:0;switch(t){case"rect":case"symbol":s=a[r][o];break;default:s="top"}return s}const iat=()=>{iO(),I2(),Ym(),L.registerComponent(T_.type,T_,!0)};var vP=function(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(i=Object.getOwnPropertySymbols(n);s{this._markerLayout()}),this._markerData=a}}o0.specKey="markPoint";class M_ extends o0{constructor(){super(...arguments),this.type=U.markPoint,this.name=U.markPoint,this.coordinateType="cartesian"}_computePointsAttr(){var t;const e=this._spec,i=this._markerData,s=this._relativeSeries,r="x"in e&&"y"in e,a="coordinate"in e,o="position"in e,l=(t=e==null?void 0:e.autoRange)!==null&&t!==void 0&&t;let h;return r?h=m_(i,s,s,s,l)[0][0]:a?h=XS(i,s,l,e.coordinatesOffset)[0]:o&&(h=KS([e.position],s,e.regionRelative)[0]),{point:h}}_computeOptions(){const t=this._spec,{doXYProcess:e}=Yb(t),i=P(t.coordinate);let s;return e?s=[this._processSpecByDims([{dim:"x",specValue:t.x},{dim:"y",specValue:t.y}])]:i&&(s=this._processSpecCoo(t)),{options:s}}}M_.type=U.markPoint,M_.coordinateType="cartesian";const nat=()=>{L.registerComponent(M_.type,M_),Ux()};class w_ extends o0{constructor(){super(...arguments),this.type=U.polarMarkPoint,this.name=U.polarMarkPoint,this.coordinateType="polar"}_computePointsAttr(){var t,e;const i=this._markerData,s=this._relativeSeries,r=(e=(t=this._spec)===null||t===void 0?void 0:t.autoRange)!==null&&e!==void 0&&e,a=YS(i,s,s,s,r)[0][0],o={x:this._relativeSeries.getRegion().getLayoutStartPoint().x+this._relativeSeries.angleAxisHelper.center().x,y:this._relativeSeries.getRegion().getLayoutStartPoint().y+this._relativeSeries.angleAxisHelper.center().y};return{point:Ue(o,a.radius,a.angle)}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"radius",specValue:t.radius},{dim:"angle",specValue:t.angle}])]}}}w_.type=U.polarMarkPoint,w_.coordinateType="polar";const sat=()=>{L.registerComponent(w_.type,w_),Ux()};class C_ extends o0{constructor(){super(...arguments),this.type=U.geoMarkPoint,this.name=U.geoMarkPoint,this.coordinateType="geo"}_computePointsAttr(){const t=this._markerData,e=this._relativeSeries;return{point:Irt(t,e)[0][0]}}_computeOptions(){const t=this._spec;return{options:[this._processSpecByDims([{dim:"areaName",specValue:t.areaName}])]}}}C_.type=U.geoMarkPoint,C_.coordinateType="geo";const rat=()=>{L.registerComponent(C_.type,C_),Ux()};class P_ extends gn{constructor(){super(...arguments),this.layoutType="none",this.type=U.brush,this.name=U.brush,this.specKey="brush",this.layoutZIndex=re.Brush,this._linkedSeries=[],this._itemMap={},this._linkedItemMap={},this._inBrushElementsMap={},this._outOfBrushElementsMap={},this._linkedInBrushElementsMap={},this._linkedOutOfBrushElementsMap={},this._needInitOutState=!0,this._cacheInteractiveRangeAttrs=[],this._needDisablePickable=!1,this._releatedAxes=[],this._regionAxisMap={},this._axisDataZoomMap={},this._zoomRecord=[]}init(){const t=this._transformBrushedMarkAttr(this._spec.inBrush),e=this._transformBrushedMarkAttr(this._spec.outOfBrush);this._option.getAllSeries().forEach(i=>{i.getActiveMarks().forEach(s=>{s&&(i.setMarkStyle(s,Object.assign({},t),"inBrush",tt.Series),i.setMarkStyle(s,Object.assign({},e),"outOfBrush",tt.Series))})})}static getSpecInfo(t){const e=t[this.specKey];if(!C(e)&&e.visible!==!1)return[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.brush}]}created(){super.created(),this.initEvent(),this._bindRegions(),this._bindLinkedSeries(),this._initRegionAxisMap(),this._initAxisDataZoomMap(),this._initNeedOperatedItem()}_extendDataInBrush(t){const e=[];for(const i in t)for(const s in t[i])e.push(Object.assign({},t[i][s].data[0]));return e}_extendDatumOutOfBrush(t){var e;const i=[];for(const s in t)i.push((e=t[s].data)===null||e===void 0?void 0:e[0]);return i}_getBrushInteractiveAttr(t){const e=t.getLayoutStartPoint(),i=t.getLayoutRect(),s=e.x,r=s+i.width,a=e.y,o=a+i.height;return{interactiveRange:{minY:a,maxY:o,minX:s,maxX:r},xRange:[s,r],yRange:[a,o]}}_updateBrushComponent(t,e){const i=this._getBrushInteractiveAttr(t),s=this._brushComponents[e];s.setAttributes(i),this._initMarkBrushState(e,""),s.children[0].removeAllChild(),this._needInitOutState=!0}_createBrushComponent(t,e){var i,s;const r=this._getBrushInteractiveAttr(t),a=new xI(Object.assign(Object.assign(Object.assign({zIndex:this.layoutZIndex,brushStyle:St((i=this._spec)===null||i===void 0?void 0:i.style)},r),this._spec),{disableTriggerEvent:this._option.disableTriggerEvent}));a.id=(s=this._spec.id)!==null&&s!==void 0?s:`brush-${this.id}`,this.getContainer().add(a);const{brushMode:o="single"}=this._spec;this._brushComponents.push(a),this._cacheInteractiveRangeAttrs.push(r),a.addEventListener($i.drawStart,l=>{this._emitEvent(ft.brushStart,t)}),a.addEventListener($i.moveStart,l=>{this._emitEvent(ft.brushStart,t)}),a.addEventListener($i.drawing,l=>{this._needInitOutState&&o==="single"&&this._initMarkBrushState(e,"outOfBrush"),this._needInitOutState=!1,this._needDisablePickable=!0,this._handleBrushChange(ft.brushChange,t,l),this._emitEvent(ft.brushChange,t)}),a.addEventListener($i.moving,l=>{this._handleBrushChange(ft.brushChange,t,l),this._emitEvent(ft.brushChange,t)}),a.addEventListener($i.brushClear,l=>{this._initMarkBrushState(e,""),this._needInitOutState=!0,this._needDisablePickable=!1,this._handleBrushChange(ft.brushChange,t,l),this._handleBrushChange(ft.brushClear,t,l),this._emitEvent(ft.brushChange,t),this._emitEvent(ft.brushClear,t)}),a.addEventListener($i.drawEnd,l=>{this._needInitOutState=!0,this._needDisablePickable=!1;const{operateMask:h}=l.detail;this._handleBrushChange(ft.brushEnd,t,l),this._setAxisAndDataZoom(h,t),this._emitEvent(ft.brushEnd,t)}),a.addEventListener($i.moveEnd,l=>{const{operateMask:h}=l.detail;this._handleBrushChange(ft.brushEnd,t,l),this._setAxisAndDataZoom(h,t),this._emitEvent(ft.brushEnd,t)})}_handleBrushChange(t,e,i){const{operateMask:s}=i.detail;this._reconfigItem(s,e),this._reconfigLinkedItem(s,e)}_emitEvent(t,e){this.event.emit(t,{model:this,value:{operateType:t,operateRegion:e,inBrushData:this._extendDataInBrush(this._inBrushElementsMap),outOfBrushData:this._extendDatumOutOfBrush(this._outOfBrushElementsMap),linkInBrushData:this._extendDataInBrush(this._linkedInBrushElementsMap),linkOutOfBrushData:this._extendDatumOutOfBrush(this._linkedOutOfBrushElementsMap),inBrushElementsMap:this._inBrushElementsMap,outOfBrushElementsMap:this._outOfBrushElementsMap,linkedInBrushElementsMap:this._linkedInBrushElementsMap,linkedOutOfBrushElementsMap:this._linkedOutOfBrushElementsMap,zoomRecord:this._zoomRecord}})}_transformBrushedMarkAttr(t){const e={};return t!=null&&t.symbol&&(e.symbolType=t.symbol),t!=null&&t.symbolSize&&(e.size=t.symbolSize),t!=null&&t.color&&(e.fill=t.color),t!=null&&t.colorAlpha&&(e.fillOpacity=t.colorAlpha),Object.assign(Object.assign({},St(t)),e)}_reconfigItem(t,e){this._itemMap[e.id].forEach(i=>{const s=i.getProduct();!s||!s.elements||!s.elements.length||s.elements.forEach(r=>{var a,o,l;const h=r.getGraphicItem(),d=i.id+"_"+r.key;!((a=this._outOfBrushElementsMap)===null||a===void 0)&&a[d]&&this._isBrushContainItem(t,h)?(r.addState("inBrush"),this._inBrushElementsMap[t==null?void 0:t.name]||(this._inBrushElementsMap[t==null?void 0:t.name]={}),this._inBrushElementsMap[t==null?void 0:t.name][d]=r,delete this._outOfBrushElementsMap[d]):!((l=(o=this._inBrushElementsMap)===null||o===void 0?void 0:o[t==null?void 0:t.name])===null||l===void 0)&&l[d]&&!this._isBrushContainItem(t,h)&&(r.removeState("inBrush"),r.addState("outOfBrush"),this._outOfBrushElementsMap[d]=r,delete this._inBrushElementsMap[t.name][d]),h.setAttribute("pickable",!this._needDisablePickable)})})}_reconfigLinkedItem(t,e){const i=e.getLayoutStartPoint(),s=e.getSeries().map(r=>r.id);this._linkedSeries.forEach(r=>{if(!s.includes(r.id)){const a=r.getRegion().getLayoutStartPoint(),o=a.x-i.x,l=a.y-i.y;this._linkedItemMap[r.id].forEach(h=>{const d=h.getProduct();!d||!d.elements||!d.elements.length||d.elements.forEach(c=>{var u,p,g;const f=c.getGraphicItem(),_=h.id+"_"+c.key;!((u=this._linkedOutOfBrushElementsMap)===null||u===void 0)&&u[_]&&this._isBrushContainItem(t,f,{dx:o,dy:l})?(c.addState("inBrush"),this._linkedInBrushElementsMap[t==null?void 0:t.name]||(this._linkedInBrushElementsMap[t==null?void 0:t.name]={}),this._linkedInBrushElementsMap[t==null?void 0:t.name][_]=c,delete this._linkedOutOfBrushElementsMap[_]):!((g=(p=this._linkedInBrushElementsMap)===null||p===void 0?void 0:p[t==null?void 0:t.name])===null||g===void 0)&&g[_]&&!this._isBrushContainItem(t,f,{dx:o,dy:l})&&(c.removeState("inBrush"),c.addState("outOfBrush"),this._linkedOutOfBrushElementsMap[_]=c),f.setAttribute("pickable",!this._needDisablePickable)})})}})}_isBrushContainItem(t,e,i){var s,r,a;if(!(t!=null&&t.globalTransMatrix)||!(!((s=t==null?void 0:t.attribute)===null||s===void 0)&&s.points))return!1;const o=(a=(r=t==null?void 0:t.attribute)===null||r===void 0?void 0:r.points)!==null&&a!==void 0?a:[],{a:l,b:h,c:d,d:c,e:u,f:p}=t.globalTransMatrix,g=(i==null?void 0:i.dx)||0,f=(i==null?void 0:i.dy)||0,_=o.map(v=>({x:l*v.x+d*v.y+u+g,y:h*v.x+c*v.y+p+f}));t.globalAABBBounds.clone().set(t.globalAABBBounds.x1+g,t.globalAABBBounds.y1+f,t.globalAABBBounds.x2+g,t.globalAABBBounds.y2+f);const m=e.globalTransMatrix.e,y=e.globalTransMatrix.f;let b=[];if(e.type==="symbol"){const{size:v=0}=e==null?void 0:e.attribute,x=H(v)[0]/2;return b=[{x:m-x,y:y-x},{x:m+x,y:y-x},{x:m+x,y:y+x},{x:m-x,y:y+x}],m1(_,b)}if(e.type==="rect"){const{x1:v,x2:x,y1:S,y2:k}=e==null?void 0:e.AABBBounds,A=Math.abs(v-x),T=Math.abs(S-k);return b=[{x:m,y},{x:m+A,y},{x:m+A,y:y+T},{x:m,y:y+T}],m1(_,b)}return t.globalAABBBounds.intersects(e.globalAABBBounds)}_stateClamp(t){return Math.min(Math.max(0,t),1)}_setAxisAndDataZoom(t,e){var i;if(this._zoomRecord=[],this._spec.zoomAfterBrush){const s=t.AABBBounds;(i=this._regionAxisMap["region_"+e.id])===null||i===void 0||i.forEach(r=>{var a,o;const l=r.layoutOrient==="bottom"||r.layoutOrient==="top",h=(a=this._spec.axisRangeExpand)!==null&&a!==void 0?a:0,{x1:d,x2:c,y1:u,y2:p}=s,g=l?"x":"y",f=l?d:u,_=l?c:p;if(this._axisDataZoomMap[r.id]){const m=this._axisDataZoomMap[r.id],y=m.relatedAxisComponent,b=y.getScale().invert(f-e.getLayoutStartPoint()[g]),v=y.getScale().invert(_-e.getLayoutStartPoint()[g]),x=m.dataToStatePoint(b),S=m.dataToStatePoint(v),k=this._stateClamp(x-h),A=this._stateClamp(S+h);m.setStartAndEnd(k,A,["percent","percent"]),this._zoomRecord.push({operateComponent:m,start:k,end:A})}else{const m=r.getScale().range(),y=(o=r.getScale().rangeFactor())!==null&&o!==void 0?o:[0,1],b=f-e.getLayoutStartPoint()[g],v=_-e.getLayoutStartPoint()[g],x=(b-m[0])/(m[1]-m[0])*(y[1]-y[0])+y[0],S=(v-m[0])/(m[1]-m[0])*(y[1]-y[0])+y[0],k=this._stateClamp(x-h),A=this._stateClamp(S+h);r.getScale().rangeFactor([k,A]),r.effect.scaleUpdate(),this._zoomRecord.push({operateComponent:r,start:k,end:A})}})}}_bindRegions(){P(this._spec.regionId)&&P(this._spec.regionIndex)&&(this._relativeRegions=this._option.getAllRegions()),this._relativeRegions=this._option.getRegionsInUserIdOrIndex(H(this._spec.regionId),H(this._spec.regionIndex))}_bindLinkedSeries(){P(this._spec.brushLinkSeriesId)&&P(this._spec.brushLinkSeriesIndex)||(this._linkedSeries=this._option.getSeriesInUserIdOrIndex(H(this._spec.brushLinkSeriesId),H(this._spec.brushLinkSeriesIndex)))}_initRegionAxisMap(){P(this._spec.axisId)?H(this._spec.axisId).forEach(t=>{this._releatedAxes.push(this._option.getComponentByUserId(t))}):P(this._spec.axisIndex)?H(this._spec.axisIndex).forEach(t=>{this._releatedAxes.push(this._option.getComponentByIndex("axes",t))}):this._releatedAxes=this._option.getComponentsByKey("axes"),this._releatedAxes.forEach(t=>{t==null||t.getRegions().forEach(e=>{this._regionAxisMap["region_"+e.id]?this._regionAxisMap["region_"+e.id].push(t):this._regionAxisMap["region_"+e.id]=[t]})})}_initAxisDataZoomMap(){this._option.getComponentsByKey("dataZoom").forEach(t=>{t.relatedAxisComponent&&(this._axisDataZoomMap[t.relatedAxisComponent.id]=t)})}_initNeedOperatedItem(){const t=this._spec.seriesId,e=this._spec.seriesIndex;this._relativeRegions.forEach(i=>{const s=[];i.getSeries().forEach(r=>{(t&&H(t).includes(r.userId.toString())||e&&H(e).includes(r.getSpecIndex())||!e&&!t)&&s.push(...r.getMarksWithoutRoot()),this._itemMap[i.id]=s})}),this._linkedSeries.forEach(i=>{this._linkedItemMap[i.id]=i.getMarksWithoutRoot()})}_initMarkBrushState(t,e){this._brushComponents.forEach((i,s)=>{s!==t&&i.children[0].removeAllChild()}),this._inBrushElementsMap={},this._outOfBrushElementsMap={},this._linkedInBrushElementsMap={},this._linkedOutOfBrushElementsMap={},this._option.getAllSeries().forEach(i=>{i.getMarksWithoutRoot().forEach(s=>{const r=s.getProduct();!r||!r.elements||!r.elements.length||r.elements.forEach(a=>{const o=s.id+"_"+a.key;a.removeState("inBrush"),a.removeState("outOfBrush"),a.addState(e),this._outOfBrushElementsMap[o]=a,this._linkedOutOfBrushElementsMap[o]=a})})})}initEvent(){}onRender(t){}changeRegions(t){}_getNeedClearVRenderComponents(){return this._brushComponents}_compareSpec(t,e){this._brushComponents&&this._relativeRegions.forEach((s,r)=>{this._updateBrushComponent(s,r)});const i=super._compareSpec(t,e);return ue(e,t)||(i.reRender=!0,i.reMake=!0),i}onLayoutEnd(t){var e;super.onLayoutEnd(t),!this._option.disableTriggerEvent&&((e=this._spec.visible)===null||e===void 0||e)&&(this._brushComponents?this._relativeRegions.forEach((i,s)=>{this._updateBrushComponent(i,s)}):(this._brushComponents=[],this._relativeRegions.forEach((i,s)=>{this._createBrushComponent(i,s)})))}clearGraphic(){this._brushComponents&&this._brushComponents.forEach(t=>{t._container.incrementalClearChild()})}clear(){if(this._brushComponents){const t=this.getContainer();this._brushComponents.forEach(e=>{e.removeAllChild(),e.releaseBrushEvents(),t&&t.removeChild(e)}),this._brushComponents=null}}}P_.type=U.brush,P_.specKey="brush";const aat=()=>{L.registerComponent(P_.type,P_)};class E_ extends gn{constructor(){super(...arguments),this.type=U.customMark,this.specKey="customMark",this.layoutType="none",this.layoutZIndex=re.CustomMark,this.layoutLevel=xs.CustomMark}static getSpecInfo(t){const e=t[this.specKey];return e?V(e)?e.map((i,s)=>({spec:i,specPath:[this.specKey,s],specInfoPath:["component",this.specKey,s],type:U.customMark})):[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.customMark}]:null}created(){super.created(),this.initMarks(),this.initEvent()}getMarkAttributeContext(){return this._markAttributeContext}_buildMarkAttributeContext(){this._markAttributeContext={vchart:this._option.globalInstance,globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)}}}initMarks(){if(!this._spec)return;const t=this._option&&this._option.getAllSeries(),e=this._option.animation!==!1,i=[];t&&t.length&&t.forEach(s=>{const r=s&&s.getMarksWithoutRoot();r&&r.length&&r.forEach(a=>{i.push(a)})}),this._createExtensionMark(this._spec,null,`${yt}_series_${this.id}_extensionMark`,0,{depend:i,hasAnimation:e})}_createExtensionMark(t,e,i,s=0,r){var a;const o=this._createMark({type:t.type,name:`${i}_${s}`},{skipBeforeLayouted:!0,attributeContext:this._getMarkAttributeContext(),componentType:t.componentType,key:t.dataKey});if(o){if(r.hasAnimation&&t.animation){const l=zt({},Wt(t.type,t,this._markAttributeContext));o.setAnimationConfig(l)}if(r.depend&&r.depend.length&&o.setDepend(...r.depend),C(e)?this._marks.addMark(o):e&&e.addMark(o),this.initMarkStyleWithSpec(o,t),t.type==="group"&&(i=`${i}_${s}`,(a=t.children)===null||a===void 0||a.forEach((l,h)=>{this._createExtensionMark(l,o,i,h,r)})),P(t.dataId)||z(t.dataIndex)){const l=this.getChart().getSeriesData(t.dataId,t.dataIndex);l&&(l.target.addListener("change",()=>{o.getData().updateData()}),o.setDataView(l))}}}initEvent(){}_compareSpec(t,e){const i=super._compareSpec(t,e);return ue(e,t)||(i.reMake=!0),i.change=!0,i.reRender=!0,i}changeRegions(t){}_getNeedClearVRenderComponents(){return[]}onRender(t){}afterCompile(){this.getMarks().forEach(t=>{const e=t.getProduct();e&&e.addEventListener(ct.AFTER_ELEMENT_ENCODE,()=>{if(this._isLayout===!1){const i=e.getGroupGraphicItem();i.listenerCount("*")===0&&i.addEventListener("*",(s,r)=>this._delegateEvent(i,s,r))}})})}_getMarkAttributeContext(){return{vchart:this._option.globalInstance,chart:this.getChart(),globalScale:(t,e)=>{var i;return(i=this._option.globalScale.getScale(t))===null||i===void 0?void 0:i.scale(e)},getLayoutBounds:()=>{const{x:t,y:e}=this.getLayoutStartPoint(),{width:i,height:s}=this.getLayoutRect();return new di().set(t,e,t+i,e+s)}}}_getLayoutRect(){const t=new di;return this.getMarks().forEach(e=>{const i=e.getProduct();i&&t.union(i.getBounds())}),t.empty()?{width:0,height:0}:{width:t.width(),height:t.height()}}getBoundsInRect(t){this.setLayoutRect(t);const e=this._getLayoutRect(),{x:i,y:s}=this.getLayoutStartPoint();return{x1:i,y1:s,x2:i+e.width,y2:s+e.height}}}E_.type=U.customMark,E_.specKey="customMark";const oat=()=>{L.registerComponent(E_.type,E_)};function yP(n,t,e=0){return e>Math.max(t.x1-n.x2,n.x1-t.x2,t.y1-n.y2,n.y1-t.y2)}function lat(n){return{x1:n.x,x2:n.x+n.width,y1:n.y,y2:n.y+n.height}}function hat(n){return{x:n.x1,y:n.y1,width:n.x2-n.x1,height:n.y2-n.y1}}function L2(n){var t;if(!n||n.length===0)return[];if(n.length===1)return[n[0].rect];const e=n.map(s=>{var r;return Object.assign(Object.assign({},s),{bound:lat(s.rect),anchorCandidates:uat((r=s.anchors)!==null&&r!==void 0?r:[],s.point,s.rect,s.offset)})}),i=[];i.push(e[0].bound);for(let s=1;s<=e.length-1;s++){const r=e[s],a=r.bound;let o=i.some(l=>yP(l,a));if(r.anchorCandidates)if(o&&((t=r.anchorCandidates)===null||t===void 0?void 0:t.length)>0){for(let l=0;lyP(c,d))){i.push(d),o=!1;break}}o&&i.push(r.bound)}else i.push(r.bound)}return i.map(s=>hat(s))}function dat(n,t,e){const i=n.map(h=>h.pointCoord),{x1:s,x2:r,y1:a,y2:o}=RF(i),l=e([(s+r)/2,(a+o)/2]);return l?L2(n.map(h=>{const d=h.rect,c=D2(t,h.pointCoord)?e(cat(t,[h.pointCoord.x,h.pointCoord.y],bP(xP(h.point,l)))):h.point;c&&(d.x=c.x,d.y=c.y);const u=bP(xP(h.point,l));let p;const g=[];return u>=-45&&u<45?(p="top",g.push("left","right")):u>=45&&u<135?p="right":u>=-135&&u<-45?(p="left",g.push("left")):(p="bottom",g.push("left","right")),h.anchors=g,h.offset=20,h.rect=s1(h.rect,p,0),h})):[]}function bP(n){return n>180?n-360:n}function xP(n,t){return 180*Math.atan2(n.y-t.y,n.x-t.x)/Math.PI+90}function cat(n,t,e,i=200){const s=5621/i;let r=t;for(let a=1;a<=s;a++){const o=WF(r,i,e);if(!D2(n,o))return[o.x,o.y];r=[o.x,o.y]}return t}function D2(n,t){for(let e=0;e{const{x:a,y:o}=s1(Object.assign(Object.assign({},t),{width:e.width,height:e.height}),r,i);s.push({x:a,y:o})}),s}class R_ extends gn{constructor(){super(...arguments),this.type=U.mapLabel,this.name=U.mapLabel,this.specKey="mapLabel",this.layoutType="none",this.layoutZIndex=re.MarkPoint,this._activeDatum=[]}static getSpecInfo(t){const e=t[this.specKey];return e&&e.visible&&!P(e.series)?[{spec:e,specPath:[this.specKey],specInfoPath:["component",this.specKey,0],type:U.mapLabel}]:null}setAttrFromSpec(){var t,e,i,s;this.nameField=(t=this._spec.nameField)!==null&&t!==void 0?t:(e=this._series)===null||e===void 0?void 0:e.getDimensionField()[0],this.valueField=(i=this._spec.valueField)!==null&&i!==void 0?i:(s=this._series)===null||s===void 0?void 0:s.getMeasureField()[0]}created(){super.created(),this._spec.visible&&(this.initRelatedInfo(),this.initData(),this.initEvent())}initRelatedInfo(){var t,e,i,s,r,a,o,l;this._series=this._option.getSeriesInUserIdOrIndex([this._spec.seriesId])[0],this._spec.position==="outer"&&(this._map=(e=(t=this._regions[0].getSeriesInType("map")[0])===null||t===void 0?void 0:t.getMapViewData())===null||e===void 0?void 0:e.latestData,this._longitudeField=(r=(s=(i=this._regions[0]).getSpec)===null||s===void 0?void 0:s.call(i))===null||r===void 0?void 0:r.longitudeField,this._latitudeField=(l=(o=(a=this._regions[0]).getSpec)===null||o===void 0?void 0:o.call(a))===null||l===void 0?void 0:l.latitudeField)}initData(){const t=this._series;if(!t)return;const e=t.getViewData();if(e){const i=new Ut(this._option.dataSet,{name:`${this.name}_data`});i.parse([e],{type:"dataview"}),i.transform({type:"copyDataView",level:Ss.copyDataView},!1),this._data=new $s(this._option,i),i.target.addListener("change",()=>{this._spec.trigger!=="hover"&&this._spec.trigger!=="click"&&(this._activeDatum=this._data.getLatestData())})}}initEvent(){var t;this.event.on("zoom",{filter:s=>this._isRelativeModel(s.model)},s=>(this.handleZoom(s),!0)),this.event.on("panmove",{filter:s=>this._isRelativeModel(s.model)},s=>(this.handlePan(s),!0));const e=this._spec.trigger;if(e==="none")return;const i=(t=this.getCompiler())===null||t===void 0?void 0:t.getVGrammarView();i&&(e==="hover"?(i.addEventListener("element-highlight:start",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(s.elements[0].getDatum())}),i.addEventListener("element-highlight:reset",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(null)})):e==="click"&&(i.addEventListener("element-select:start",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum(s.elements[0].getDatum())}),i.addEventListener("elementSelectReset",s=>{this._isRelativeSeries(s.options.seriesId)&&this._updateDatum([])})))}handlePan(t){const{delta:e}=t;this._markerComponents.forEach(i=>{i.translate(e[0],e[1])})}handleZoom(t){this._updateMarkerLayoutAttribute()}_updateDatum(t){this._activeDatum=t,this._markerComponents.forEach((e,i)=>{var s;const r=(s=this._data)===null||s===void 0?void 0:s.getLatestData()[i];this._activeDatum.includes(r)?e.setAttribute("visible",!0):e.setAttribute("visible",!1)})}dataToPosition(t){return this._series.dataToPosition(t)}updateLayoutAttribute(){var t;const e=(t=this._data)===null||t===void 0?void 0:t.getLatestData();e&&e.length!==0&&(super.updateLayoutAttribute(),this._updateMarkerLayoutAttribute())}_updateMarkerLayoutAttribute(){var t;const e=[],i=[];this._markerComponents||(this._markerComponents=(t=this._data)===null||t===void 0?void 0:t.getLatestData().map((r,a)=>{var o;const l=new fa({position:void 0,animation:!1});return l&&(l.name=`${this.name}_marker_${a}`,l.id=(o=this._spec.id)!==null&&o!==void 0?o:`${this.name}_marker_${this.id}`,l.setAttribute("zIndex",this.layoutZIndex)),l})),this._markerComponents.forEach((r,a)=>{r.removeAllChild();const{pairInfo:o,contentMarks:l}=this._evaluateMarker(this._data.getLatestData()[a],a);o&&e.push(o),l&&i.push(l)});const s=this._layoutLabels(e);this._layoutMarkers(s,i),this._renderMarkers()}_evaluateMarker(t,e){var i,s,r,a,o,l,h,d,c,u,p,g;let f=0,_=0,m=0,y=0,b=0;const v=this._spec.position||"top",x=this._spec.offset,S=Pr((i=this._spec.background)===null||i===void 0?void 0:i.padding),k=this._spec.space||0;_+=((S==null?void 0:S.left)||0)+((S==null?void 0:S.right)||0),m+=((S==null?void 0:S.top)||0)+((S==null?void 0:S.bottom)||0);const A={},T=this.dataToPosition(t),M=xx({});if(M.name=`${this.name}_marker_itemContainer_${e}`,A.container=M,(s=this._spec.background)===null||s===void 0?void 0:s.visible){const B=wo(St(Object.assign({},this._spec.background.style)));B.setAttributes(T),A.labelBackground=B,M.appendChild(B)}if(!((r=this._spec.icon)===null||r===void 0)&&r.visible){const B=tm(St(Object.assign({},this._spec.icon.style)));B.setAttributes(T),B.setAttribute("symbolType",(a=this._spec.icon.style)===null||a===void 0?void 0:a.shape);const I=B.AABBBounds,D=(o=(I==null?void 0:I.y2)-(I==null?void 0:I.y1))!==null&&o!==void 0?o:0,F=(l=(I==null?void 0:I.x2)-(I==null?void 0:I.x1))!==null&&l!==void 0?l:0;A.icon=B,M.appendChild(B),b=D,y+=F,f++}if(!((h=this._spec.nameLabel)===null||h===void 0)&&h.visible){const B=ih(St(Object.assign({},this._spec.nameLabel.style)));B.setAttributes(T),B.setAttribute("text",t[this.nameField]);const I=B.AABBBounds,D=(d=(I==null?void 0:I.y2)-(I==null?void 0:I.y1))!==null&&d!==void 0?d:0,F=(c=(I==null?void 0:I.x2)-(I==null?void 0:I.x1))!==null&&c!==void 0?c:0;A.nameLabel=B,M.appendChild(B),b=Math.max(b,D),y+=F,f++}if(!((u=this._spec.valueLabel)===null||u===void 0)&&u.visible&&P(t[this.valueField])){const B=ih(St(Object.assign({},this._spec.valueLabel.style)));B.setAttributes(T),B.setAttribute("text",t[this.valueField]);const I=B.AABBBounds,D=(p=(I==null?void 0:I.y2)-(I==null?void 0:I.y1))!==null&&p!==void 0?p:0,F=(g=(I==null?void 0:I.x2)-(I==null?void 0:I.x1))!==null&&g!==void 0?g:0;A.valueLabel=B,M.appendChild(B),b=Math.max(b,D),y+=F,f++}const w=Object.values(A).find(B=>!!B&&B.type!=="group"),E={x:w==null?void 0:w.getComputedAttribute("x"),y:w==null?void 0:w.getComputedAttribute("y")},R={x:E.x,y:E.y,width:0,height:0};R.width=_+y+(f-1)*k,R.height=m+b;const O={rect:R,point:E,index:e};if(v!=="outer"){const B=["top","right","left","bottom"].filter(I=>I!==v);O.rect=s1(R,v,x),O.anchors=B,O.offset=x}else O.pointCoord={x:+(t==null?void 0:t[this._longitudeField]),y:+(t==null?void 0:t[this._latitudeField])};return{pairInfo:O,contentMarks:A}}_layoutMarkers(t,e){var i,s,r;for(let a=0;a{var k,A;if(x){const T=x.AABBBounds;let M=0;x.type==="symbol"&&(M+=((k=T.x2-T.x1)!==null&&k!==void 0?k:0)/2),x.setAttributes({x:_+M,y:f}),_+=(A=T.x2-T.x1)!==null&&A!==void 0?A:0,S!==2&&(_+=g)}}),d==null||d.setAttributes({x:0,y:0,width:u.width,height:u.height}),c==null||c.setAttributes({dx:-u.width/2,dy:-u.height/2});const m=this._data.getLatestData()[a],y=this.dataToPosition(m),b=this.getRegions()[0].getLayoutStartPoint(),v=!(!(!((s=this._spec.leader)===null||s===void 0)&&s.visible)||!(o||l||h));this._markerComponents[a].setAttributes({x:b.x,y:b.y,position:y,visible:this._activeDatum.includes(m),itemContent:{refX:0,type:"custom",renderCustomCallback:()=>c,autoRotate:!1,offsetX:u.x+u.width/2-y.x,offsetY:u.y+u.height/2-y.y},itemLine:{visible:v,type:"type-po",lineStyle:St(Object.assign({},(r=this._spec.leader)===null||r===void 0?void 0:r.style)),startSymbol:{visible:!1}}})}}_renderMarkers(){if(this._markerComponents&&this._markerComponents.length)for(let t=0;tthis._series.dataToPosition({[this._longitudeField]:e[0],[this._latitudeField]:e[1]})):L2(t)}_isRelativeModel(t){var e,i,s;const r=(i=(e=this._series.getXAxisHelper())===null||e===void 0?void 0:e.getAxisId())!==null&&i!==void 0?i:(s=this._series.getCoordinateHelper())===null||s===void 0?void 0:s.getCoordinateId();return(t==null?void 0:t.id)===r}_isRelativeSeries(t){return(t==null?void 0:t.id)===this._series.id}onRender(t){}changeRegions(){}_getNeedClearVRenderComponents(){return this._markerComponents}}R_.type=U.mapLabel,R_.specKey="mapLabel";const pat=()=>{L.registerComponent(R_.type,R_)};class Xb{constructor(t,e){this._chartLayoutRect={x:0,y:0,width:1,height:1},this._col=1,this._row=1,this._elementMap=new Map,this.standardizationSpec(t),this._gridInfo=t,this._col=t.col,this._row=t.row,this._colSize=new Array(this._col).fill(null),this._rowSize=new Array(this._row).fill(null),this._colElements=new Array(this._col).fill([]),this._rowElements=new Array(this._row).fill([]),this._onError=e==null?void 0:e.onError,this.initUserSetting()}standardizationSpec(t){var e,i,s;t.col=(e=t.col)!==null&&e!==void 0?e:1,t.row=(i=t.row)!==null&&i!==void 0?i:1,t.elements=(s=t.elements)!==null&&s!==void 0?s:[]}initUserSetting(){this._gridInfo.colWidth&&this.setSizeFromUserSetting(this._gridInfo.colWidth,this._colSize,this._col,this._chartLayoutRect.width),this._gridInfo.rowHeight&&this.setSizeFromUserSetting(this._gridInfo.rowHeight,this._rowSize,this._row,this._chartLayoutRect.height),this._colSize.forEach((t,e)=>{t||(this._colSize[e]={value:0,isUserSetting:!1,isLayoutSetting:!1})}),this._rowSize.forEach((t,e)=>{t||(this._rowSize[e]={value:0,isUserSetting:!1,isLayoutSetting:!1})})}setSizeFromUserSetting(t,e,i,s){t.forEach(r=>{r.index<0&&r.index>=i||(z(r.size)?e[r.index]={value:+r.size,isUserSetting:!0,isLayoutSetting:!1}:G(r.size)&&(e[r.index]={value:r.size(s),isUserSetting:!0,isLayoutSetting:!1}))})}clearLayoutSize(){this._colSize.forEach(t=>{t.isLayoutSetting=!1,t.isUserSetting||(t.value=0)}),this._rowSize.forEach(t=>{t.isLayoutSetting=!1,t.isUserSetting||(t.value=0)})}getItemGridInfo(t){var e;const i=this._elementMap.get(t);if(i)return i;let s;return s=(e=this._gridInfo.elements)===null||e===void 0?void 0:e.find(r=>{var a;if("modelId"in r&&P(r.modelId)){if(P(t.model.userId)&&t.model.userId===r.modelId)return!0}else if("modelKey"in r&&P(r.modelKey)&&"modelIndex"in r&&P(r.modelIndex)&&((a=t.model.specKey)!==null&&a!==void 0?a:t.model.type)===r.modelKey&&t.model.getSpecIndex()===r.modelIndex)return!0;return!1}),s||(s={col:0,colSpan:1,row:0,rowSpan:1}),this._elementMap.set(t,s),s}getSizeFromGrid(t,e){var i;const s=e==="col"?this._colSize:this._rowSize;let r=0;for(let a=t[e];a1||this._colSize[e.col].isUserSetting)return;this._colSize[e.col].value=Math.max(this._colSize[e.col].value,t.getLayoutRect().width+t.layoutPaddingLeft+t.layoutPaddingRight),this._colSize[e.col].isLayoutSetting=!0}else{if(e.rowSpan&&e.rowSpan>1||this._rowSize[e.row].isUserSetting)return;this._rowSize[e.row].value=Math.max(this._rowSize[e.row].value,t.getLayoutRect().height+t.layoutPaddingTop+t.layoutPaddingBottom),this._rowSize[e.row].isLayoutSetting=!0}}layoutGrid(t){const e=t==="col"?this._colSize:this._rowSize;let i=t==="col"?this._chartLayoutRect.width:this._chartLayoutRect.height;const s=[];e.forEach(r=>{r.isUserSetting||r.isLayoutSetting?i-=r.value:s.push(r)}),i<0&&console.warn(`layout content ${t} size bigger than chart`),s.forEach(r=>r.value=i/s.length)}getItemPosition(t){const e=this.getItemGridInfo(t),i={x:this._chartLayoutRect.x,y:this._chartLayoutRect.y};for(let s=0;su.layoutLevel-c.layoutLevel);const r=e.filter(c=>c.layoutType==="normal"&&c.getModelVisible()!==!1),a=r.filter(c=>ed(c)),o=r.filter(c=>!ed(c));r.forEach(c=>{this.layoutOneItem(c,"user",!1)});const l=e.filter(c=>c.layoutType==="region-relative"),h=l.filter(c=>ed(c)),d=l.filter(c=>!ed(c));h.forEach(c=>this.layoutOneItem(c,"user",!1)),this.layoutGrid("col"),o.forEach(c=>this.layoutOneItem(c,"colGrid",!1)),d.forEach(c=>{this.layoutOneItem(c,"colGrid",!1)}),this.layoutGrid("row"),d.forEach(c=>{this.layoutOneItem(c,"grid",!1)}),a.forEach(c=>this.layoutOneItem(c,"grid",!1)),h.forEach(c=>{this.layoutOneItem(c,"grid",!0)}),this.layoutGrid("col"),e.filter(c=>c.layoutType==="region").forEach(c=>this.layoutOneItem(c,"grid",!1)),this.layoutAbsoluteItems(e.filter(c=>c.layoutType==="absolute")),e.filter(c=>c.layoutType!=="absolute").forEach(c=>{c.setLayoutStartPosition(this.getItemPosition(c))})}layoutAbsoluteItems(t){t.forEach(e=>{e.absoluteLayoutInRect(this._chartLayoutRect)})}layoutOneItem(t,e,i){var s,r;const a=e==="rowGrid"||e==="grid"?this.getSizeFromGrid.bind(this):this.getSizeFromUser.bind(this),o=e==="colGrid"||e==="grid"?this.getSizeFromGrid.bind(this):this.getSizeFromUser.bind(this),l=this.getItemGridInfo(t),h={width:((s=o(l,"col"))!==null&&s!==void 0?s:this._chartLayoutRect.width)-t.layoutPaddingLeft-t.layoutPaddingRight,height:((r=a(l,"row"))!==null&&r!==void 0?r:this._chartLayoutRect.height)-t.layoutPaddingTop-t.layoutPaddingBottom},d=t.computeBoundsInRect(h);z(d.width)||(d.width=h.width),z(d.height)||(d.height=h.height),t.setLayoutRect(e!=="grid"?d:h),this.setItemLayoutSizeToGrid(t,l)}}function ed(n){return n.layoutOrient==="left"||n.layoutOrient==="right"}Xb.type="grid";const gat=()=>{L.registerLayout(Xb.type,Xb)};class Kb extends yS{layoutItems(t,e,i,s){this._layoutInit(t,e,i,s),this._layoutNormalItems(e);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},a=e.filter(m=>m.layoutType==="absolute"),o=a.filter(m=>m.layoutOrient==="z");let l={width:0,height:0};o.length&&(l=o[0].getLayoutRect()),this.leftCurrent+=l.width/8,this.rightCurrent-=l.width/8,this.topCurrent+=l.height/8,this.bottomCurrent-=l.height/8;const{regionItems:h,relativeItems:d,relativeOverlapItems:c,allRelatives:u,overlapItems:p}=this._groupItems(e);this.layoutRegionItems(h,d,c,p),this._processAutoIndent(h,d,c,p,u,r);const g=a.filter(m=>m.layoutOrient!=="z");this.layoutAbsoluteItems(g);const f=d.filter(m=>m.model.specKey==="axes"&&ke(m.layoutOrient))[0],_=d.filter(m=>m.model.specKey==="axes"&&Ds(m.layoutOrient))[0];if(f&&o.length){const m=f.getLayoutStartPoint(),y=f.getLayoutRect(),b={x:_.layoutOrient==="left"?m.x+y.width:m.x,y:m.y,width:this._chartLayoutRect.width,height:this._chartLayoutRect.height};o[0].model.directionStr=_.layoutOrient==="left"?"r2l":"l2r";const v=f.getLayoutRect(),x=_.getLayoutRect(),S={length:o[0].getLayoutRect().width,width:v.width,height:x.height};f.model.setLayout3dBox&&f.model.setLayout3dBox(S),_.model.setLayout3dBox&&_.model.setLayout3dBox(S),o[0].model.setLayout3dBox&&o[0].model.setLayout3dBox(S),this.layoutZAxisItems(o,b)}}layoutZAxisItems(t,e){t.forEach(i=>{i.absoluteLayoutInRect(e)})}getItemComputeLayoutRect(t,e){return e||(e={offsetLeft:0,offsetRight:0,offsetTop:0,offsetBottom:0}),{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight-(e.offsetLeft+e.offsetRight),height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom-(e.offsetTop+e.offsetBottom)}}_checkAutoIndent(t){const e={top:0,left:0,bottom:0,right:0},i=this._chartViewBox.x2-this._chartViewBox.x1-this.rightCurrent,s=this._chartViewBox.y2-this._chartViewBox.y1-this.bottomCurrent;return t.forEach(r=>{if(!r.getModelVisible()||!r.autoIndent)return;const a=r.layoutOrient==="left"||r.layoutOrient==="right",o=r.getLastComputeOutBounds();a?(e.top=Math.max(e.top,o.y1-this.topCurrent),e.bottom=Math.max(e.bottom,o.y2-s)):(e.left=Math.max(e.left,o.x1-this.leftCurrent),e.right=Math.max(e.right,o.x2-i))}),e}}Kb.type="layout3d";const fat=()=>{L.registerLayout(Kb.type,Kb)},_at=()=>{k$()};class gu extends Oi{constructor(){super(...arguments),this.type=gu.type}_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,lineWidth:0})}}gu.type="image";const mat=()=>{L.registerMark(gu.type,gu),R6()},vat=()=>{SL(),$m(),zr(),Lh(),wn(),Km(),jr(),CS(),Qo(),UD(),mat(),i2(),Ym(),kD(),MS(),$D()};hi.useRegisters([GQ,XQ,QQ,ltt,Mst,Cst,Pst,Ist,Tst,Dst,Fst,zst,Vst,Kst,qst,Lst,Nst,Gst,Jst,$st,Yst,Xst,Zst,Qst,Bst,trt,Est,ttt,wst,Ost,Wst,Ust,jst,Hst,Tn,Mn,DQ,FQ,zQ,Fu,Dh,rrt,prt,mrt,brt,krt,wrt,Crt,Ert,lD,Urt,Xrt,nat,$rt,Krt,sat,rat,Yrt,Qrt,tat,iat,aat,oat,pat,_at,gat,fat,vat,_Q,mQ,PJ,XX,QX,t7,e7,JX,ZX]);const yat={class:"whitespace-break-spaces p-4 space-y-2"},bat=ar("div",null," 「插件」栏目下均为第三方插件的演示页面,框架默认并不包含这些插件。如需使用,请先安装对应插件。 ",-1),xat=ar("div",null,"安装命令:",-1),Sat={class:"space-x-2"},Oat=j2({__name:"vchart",setup(n){const t=jh(!1),e=jh(),i=jh(),s=jh(),r=jh();let a,o,l,h;H2(()=>{d(),c(),u(),p()});function d(){const g={type:"bar",data:{values:[{type:"Nail polish",country:"Africa",value:4229},{type:"Nail polish",country:"EU",value:4376},{type:"Nail polish",country:"China",value:3054},{type:"Nail polish",country:"USA",value:12814},{type:"Eyebrow pencil",country:"Africa",value:3932},{type:"Eyebrow pencil",country:"EU",value:3987},{type:"Eyebrow pencil",country:"China",value:5067},{type:"Eyebrow pencil",country:"USA",value:13012},{type:"Rouge",country:"Africa",value:5221},{type:"Rouge",country:"EU",value:3574},{type:"Rouge",country:"China",value:7004},{type:"Rouge",country:"USA",value:11624},{type:"Lipstick",country:"Africa",value:9256},{type:"Lipstick",country:"EU",value:4376},{type:"Lipstick",country:"China",value:9054},{type:"Lipstick",country:"USA",value:8814},{type:"Eyeshadows",country:"Africa",value:3308},{type:"Eyeshadows",country:"EU",value:4572},{type:"Eyeshadows",country:"China",value:12043},{type:"Eyeshadows",country:"USA",value:12998}]},xField:["type","country"],yField:"value",seriesField:"country",legends:[{visible:!0,position:"middle",orient:"bottom"}],animationAppear:{duration:500,oneByOne:!0},axes:[{orient:"left",label:{formatMethod(f){return`${(f*100).toFixed(2)}%`}}}]};a=new hi(g,{dom:e.value}),a.renderSync()}function c(){const g={type:"line",data:{values:[{type:"Nail polish",country:"Africa",value:4229},{type:"Nail polish",country:"EU",value:4376},{type:"Nail polish",country:"China",value:3054},{type:"Nail polish",country:"USA",value:12814},{type:"Eyebrow pencil",country:"Africa",value:3932},{type:"Eyebrow pencil",country:"EU",value:3987},{type:"Eyebrow pencil",country:"China",value:5067},{type:"Eyebrow pencil",country:"USA",value:13012},{type:"Rouge",country:"Africa",value:5221},{type:"Rouge",country:"EU",value:3574},{type:"Rouge",country:"China",value:7004},{type:"Rouge",country:"USA",value:11624},{type:"Lipstick",country:"Africa",value:9256},{type:"Lipstick",country:"EU",value:4376},{type:"Lipstick",country:"China",value:9054},{type:"Lipstick",country:"USA",value:8814},{type:"Eyeshadows",country:"Africa",value:3308},{type:"Eyeshadows",country:"EU",value:4572},{type:"Eyeshadows",country:"China",value:12043},{type:"Eyeshadows",country:"USA",value:12998},{type:"Eyeliner",country:"Africa",value:5432},{type:"Eyeliner",country:"EU",value:3417},{type:"Eyeliner",country:"China",value:15067},{type:"Eyeliner",country:"USA",value:12321},{type:"Foundation",country:"Africa",value:13701},{type:"Foundation",country:"EU",value:5231},{type:"Foundation",country:"China",value:10119},{type:"Foundation",country:"USA",value:10342},{type:"Lip gloss",country:"Africa",value:4008},{type:"Lip gloss",country:"EU",value:4572},{type:"Lip gloss",country:"China",value:12043},{type:"Lip gloss",country:"USA",value:22998},{type:"Mascara",country:"Africa",value:18712},{type:"Mascara",country:"EU",value:6134},{type:"Mascara",country:"China",value:10419},{type:"Mascara",country:"USA",value:11261}]},percent:!0,xField:"type",yField:"value",seriesField:"country",animationAppear:{duration:1500,easing:"linear"},legends:[{visible:!0,position:"middle",orient:"bottom"}],axes:[{orient:"left",label:{formatMethod(f){return`${(f*100).toFixed(2)}%`}}}]};o=new hi(g,{dom:i.value}),o.renderSync()}function u(){const g={type:"common",padding:{top:10},layout:{type:"grid",col:3,row:2,elements:[{modelId:"legend",col:0,row:1,colSpan:3},{modelId:"DAU",col:0,row:0},{modelId:"新增",col:1,row:0},{modelId:"MAU",col:2,row:0}]},region:[{id:"DAU"},{id:"新增"},{id:"MAU"}],legends:{visible:!0,orient:"bottom",id:"legend",regionId:["DAU","新增","MAU","DAU/MAU"],item:{visible:!0,background:{style:{fill:"transparent"}}}},series:[{id:"DAUseries0",regionId:"DAU",type:"pie",valueField:"value",categoryField:"type",data:{id:"DAU",values:[{type:"首页",value:120},{type:"大屏",value:100},{type:"看板",value:200}]},seriesField:"type",label:{style:{visible:!1}}},{id:"新增series0",regionId:"新增",type:"pie",animationAppear:{preset:"fadeIn"},valueField:"value",categoryField:"type",data:{id:"新增",values:[{type:"首页",value:80},{type:"大屏",value:200},{type:"看板",value:400}]},seriesField:"type",label:{style:{visible:!1}}},{id:"MAUseries0",regionId:"MAU",type:"pie",valueField:"value",categoryField:"type",animationAppear:{preset:"growRadius"},data:{id:"MAU",values:[{type:"首页",value:123},{type:"大屏",value:245},{type:"看板",value:367}]},seriesField:"type",label:{style:{visible:!1}}}]};l=new hi(g,{dom:s.value}),l.renderSync()}function p(){const g={type:"radar",data:[{id:"radarData",values:[{key:"Strength",value:5},{key:"Speed",value:5},{key:"Shooting",value:3},{key:"Endurance",value:5},{key:"Precision",value:5},{key:"Growth",value:5}]}],categoryField:"key",valueField:"value",point:{visible:!1},area:{visible:!0,state:{hover:{fillOpacity:.5}}},line:{style:{lineWidth:4}},axes:[{orient:"radius",zIndex:100,min:0,max:8,domainLine:{visible:!1},label:{visible:!0,space:0,style:{textAlign:"center",stroke:"#fff",lineWidth:4}},grid:{smooth:!1,style:{lineDash:[0]}}},{orient:"angle",zIndex:50,tick:{visible:!1},domainLine:{visible:!1},label:{space:20},grid:{style:{lineDash:[0]}}}]};h=new hi(g,{dom:r.value}),h.renderSync()}return(g,f)=>{const _=$2,m=r1("van-tag"),y=r1("van-action-sheet"),b=z2,v=F2;return W2(),V2(v,{navbar:"","navbar-start-side":"back"},{"navbar-end":Vr(()=>[ar("div",{class:"h-full flex-center px-1",onClick:f[0]||(f[0]=x=>t.value=!0)},[Ua(_,{name:"i-mdi:information",class:"text-4"})]),Ua(y,{show:G2(t),"onUpdate:show":f[1]||(f[1]=x=>U2(t)?t.value=x:null),teleport:"body"},{default:Vr(()=>[ar("div",yat,[bat,xat,ar("div",Sat,[Ua(m,{type:"primary",plain:""},{default:Vr(()=>[N2(" pnpm add @visactor/vchart ")]),_:1})])])]),_:1},8,["show"])]),default:Vr(()=>[Ua(b,{title:"柱状图"},{default:Vr(()=>[ar("div",{ref_key:"chart1Ref",ref:e,class:"h-[400px] w-full"},null,512)]),_:1}),Ua(b,{title:"折线图"},{default:Vr(()=>[ar("div",{ref_key:"chart2Ref",ref:i,style:{width:"100%",height:"400px"}},null,512)]),_:1}),Ua(b,{title:"饼图"},{default:Vr(()=>[ar("div",{ref_key:"chart3Ref",ref:s,style:{width:"100%",height:"400px"}},null,512)]),_:1}),Ua(b,{title:"雷达图"},{default:Vr(()=>[ar("div",{ref_key:"chart4Ref",ref:r,style:{width:"100%",height:"400px"}},null,512)]),_:1})]),_:1})}}});export{Oat as default}; diff --git a/assets/vchart-C-lrzy8e.js.br b/assets/vchart-C-lrzy8e.js.br new file mode 100644 index 00000000..4da5840d Binary files /dev/null and b/assets/vchart-C-lrzy8e.js.br differ diff --git a/assets/vchart-C-lrzy8e.js.gz b/assets/vchart-C-lrzy8e.js.gz new file mode 100644 index 00000000..59c49b31 Binary files /dev/null and b/assets/vchart-C-lrzy8e.js.gz differ diff --git a/assets/watermark-CTGHlhS0.js b/assets/watermark-CTGHlhS0.js new file mode 100644 index 00000000..79da96de --- /dev/null +++ b/assets/watermark-CTGHlhS0.js @@ -0,0 +1 @@ +import{_ as b}from"./index-Cwg3TLNR.js";import{d as g,X as w,a4 as x,O as V,c as h,w as a,m as u,o as S,a as W,b as s,u as n,i as C,U as l,V as p,e as i,Q as Y}from"./index-DpnASd8N.js";const B={class:"flex flex-col items-center gap-4 p-4"},H=g({__name:"watermark",setup(D){const o=w(),r=x(),e=V({get(){return o.settings.app.enableWatermark},set(c){o.$patch(t=>{t.settings.app.enableWatermark=c})}});function _(){r.update({text:`${Y().format("YYYY-MM-DD HH:mm:ss")}`})}function d(){r.update()}return(c,t)=>{const f=u("van-switch"),m=u("van-button"),k=b;return S(),h(k,{navbar:"","navbar-start-side":"back"},{default:a(()=>[W("div",B,[s(f,{modelValue:n(e),"onUpdate:modelValue":t[0]||(t[0]=v=>C(e)?e.value=v:null)},null,8,["modelValue"]),l(s(m,{onClick:_},{default:a(()=>[i(" 更新水印 ")]),_:1},512),[[p,n(e)]]),l(s(m,{onClick:d},{default:a(()=>[i(" 重置水印 ")]),_:1},512),[[p,n(e)]])])]),_:1})}}});export{H as default}; diff --git a/assets/watermark-CTGHlhS0.js.br b/assets/watermark-CTGHlhS0.js.br new file mode 100644 index 00000000..7625d690 Binary files /dev/null and b/assets/watermark-CTGHlhS0.js.br differ diff --git a/assets/watermark-CTGHlhS0.js.gz b/assets/watermark-CTGHlhS0.js.gz new file mode 100644 index 00000000..4ca8436d Binary files /dev/null and b/assets/watermark-CTGHlhS0.js.gz differ diff --git a/assets/zoomable-DZwxrOOZ.js b/assets/zoomable-DZwxrOOZ.js new file mode 100644 index 00000000..8021b055 --- /dev/null +++ b/assets/zoomable-DZwxrOOZ.js @@ -0,0 +1 @@ +import{_ as s}from"./index-Cwg3TLNR.js";import{_ as c}from"./index.vue_vue_type_script_setup_true_lang-BPqlHTph.js";import{z as n,c as r,w as e,a5 as _,o as i,b as l,U as m,a as f}from"./index-DpnASd8N.js";const p={},u={class:"block h-20 w-20",src:"https://fantastic-mobile.hurui.me/logo.png"};function d(b,h){const o=c,a=s,t=_("zoomable");return i(),r(a,{navbar:"","navbar-start-side":"back"},{default:e(()=>[l(o,null,{default:e(()=>[m(f("img",u,null,512),[[t]])]),_:1})]),_:1})}const w=n(p,[["render",d]]);export{w as default}; diff --git a/assets/zoomable-DZwxrOOZ.js.br b/assets/zoomable-DZwxrOOZ.js.br new file mode 100644 index 00000000..1fa79611 Binary files /dev/null and b/assets/zoomable-DZwxrOOZ.js.br differ diff --git a/assets/zoomable-DZwxrOOZ.js.gz b/assets/zoomable-DZwxrOOZ.js.gz new file mode 100644 index 00000000..4755c1d6 Binary files /dev/null and b/assets/zoomable-DZwxrOOZ.js.gz differ diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 00000000..0778dfc7 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..a83c3970 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + + + + +
+ + diff --git a/index.html.br b/index.html.br new file mode 100644 index 00000000..f9f290f4 --- /dev/null +++ b/index.html.br @@ -0,0 +1 @@ + ne|lp^dH(y{!WfSESlHK|)vc 3k{ponTy+{()/`: SHQ𠔛6;h\~GY V"\ T$E}ug 1DC^D<| \|S>mݚ9T \ No newline at end of file diff --git a/index.html.gz b/index.html.gz new file mode 100644 index 00000000..34a9fe21 Binary files /dev/null and b/index.html.gz differ