diff --git a/docs/assets/AlibabaPuHuiTi-14435b65-balabala-1783244194656.woff2 b/docs/assets/AlibabaPuHuiTi-14435b65-balabala-1783264824576.woff2
similarity index 100%
rename from docs/assets/AlibabaPuHuiTi-14435b65-balabala-1783244194656.woff2
rename to docs/assets/AlibabaPuHuiTi-14435b65-balabala-1783264824576.woff2
diff --git a/docs/assets/AlimamaShuHeiTi-Bold-6401fd0d-balabala-1783244194656.ttf b/docs/assets/AlimamaShuHeiTi-Bold-6401fd0d-balabala-1783264824576.ttf
similarity index 100%
rename from docs/assets/AlimamaShuHeiTi-Bold-6401fd0d-balabala-1783244194656.ttf
rename to docs/assets/AlimamaShuHeiTi-Bold-6401fd0d-balabala-1783264824576.ttf
diff --git a/docs/assets/AlimamaShuHeiTi-Bold-a95023f2-balabala-1783244194656.woff b/docs/assets/AlimamaShuHeiTi-Bold-a95023f2-balabala-1783264824576.woff
similarity index 100%
rename from docs/assets/AlimamaShuHeiTi-Bold-a95023f2-balabala-1783244194656.woff
rename to docs/assets/AlimamaShuHeiTi-Bold-a95023f2-balabala-1783264824576.woff
diff --git a/docs/assets/AlimamaShuHeiTi-Bold-fa4a258d-balabala-1783244194656.woff2 b/docs/assets/AlimamaShuHeiTi-Bold-fa4a258d-balabala-1783264824576.woff2
similarity index 100%
rename from docs/assets/AlimamaShuHeiTi-Bold-fa4a258d-balabala-1783244194656.woff2
rename to docs/assets/AlimamaShuHeiTi-Bold-fa4a258d-balabala-1783264824576.woff2
diff --git a/docs/assets/SmartChartRenderer-8fd37aa6-balabala-1783244194656.css b/docs/assets/SmartChartRenderer-8fd37aa6-balabala-1783264824576.css
similarity index 100%
rename from docs/assets/SmartChartRenderer-8fd37aa6-balabala-1783244194656.css
rename to docs/assets/SmartChartRenderer-8fd37aa6-balabala-1783264824576.css
diff --git a/docs/assets/SmartChartRenderer-912fade1-1783244194656.js b/docs/assets/SmartChartRenderer-fe68a3bf-1783264824576.js
similarity index 97%
rename from docs/assets/SmartChartRenderer-912fade1-1783244194656.js
rename to docs/assets/SmartChartRenderer-fe68a3bf-1783264824576.js
index 69b5805..74daf53 100644
--- a/docs/assets/SmartChartRenderer-912fade1-1783244194656.js
+++ b/docs/assets/SmartChartRenderer-fe68a3bf-1783264824576.js
@@ -1,2 +1,2 @@
-var D=Object.defineProperty,W=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(r,o,n)=>o in r?D(r,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[o]=n,h=(r,o)=>{for(var n in o||(o={}))F.call(o,n)&&k(r,n,o[n]);if(z)for(var n of z(o))P.call(o,n)&&k(r,n,o[n]);return r},p=(r,o)=>W(r,H(o));import{e as g,j as R,k as V,L as y,o as x,c as S,a as f,t as d,g as _,b as j,u as q,n as G}from"./index-1783244194656.js";import{aS as M}from"./chartTheme-fbd5f176-1783244194656.js";const E={class:"smart-chart-header"},I={key:0},U={key:0,class:"smart-chart-source"},Q={__name:"SmartChartRenderer",props:{chart:{type:Object,required:!0}},emits:["ready"],setup(r,{emit:o}){const n=o,i=r,l=["#30dcff","#27f0c0","#ffd76c","#7aa7ff","#ff8f6b","#a6f06d"],N=g(()=>{const e=(i.chart.rows||[]).filter(t=>Number.isFinite(Number(t.value)));return i.chart.type==="pie"?w(e):i.chart.type==="line"?B(e):A(e)}),T=g(()=>{const e=i.chart.rows||[];return i.chart.type==="bar"&&L(e)}),v=g(()=>{const e=i.chart.source||{},t=$(e),a=m(e.period||e.dataPeriod||i.chart.period),b=m(e.generatedAt||e.updateTime||e.updatedAt,!0),u=[t,a,b].filter(Boolean);return u.length?`统计口径:${u.join(" / ")}`:"统计口径:业务统计库"});R(()=>{V(()=>{window.requestAnimationFrame(()=>n("ready"))})});function A(e){return L(e)?C(e):{animationDuration:700,grid:{left:52,right:26,top:28,bottom:54},tooltip:s(),xAxis:{type:"category",data:e.map(t=>t.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0,rotate:e.length>6?28:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"bar",barWidth:e.length>7?16:22,data:e.map((t,a)=>({value:t.value,name:t.name,itemStyle:{borderRadius:[8,8,0,0],color:new y(0,0,0,1,[{offset:0,color:l[a%l.length]},{offset:1,color:"rgba(48, 220, 255, 0.08)"}])}})),label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:t})=>c(t)}}]}}function C(e){return{animationDuration:700,grid:{left:78,right:72,top:22,bottom:20},tooltip:p(h({},s()),{trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},yAxis:{type:"category",inverse:!0,data:e.map(t=>t.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.22)"}},axisLabel:{color:"rgba(223, 250, 255, 0.82)",fontSize:12}},series:[{name:i.chart.title,type:"bar",barWidth:13,data:e.map((t,a)=>({value:t.value,name:t.name,itemStyle:{borderRadius:[0,8,8,0],color:new y(0,0,1,0,[{offset:0,color:"rgba(48, 220, 255, 0.16)"},{offset:1,color:l[a%l.length]}])}})),label:{show:!0,position:"right",color:"#ffffff",fontSize:11,formatter:({value:t})=>c(t)}}]}}function w(e){return{animationDuration:700,tooltip:s(),legend:{orient:"vertical",right:10,top:"middle",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(223, 250, 255, 0.78)",fontSize:11}},series:[{name:i.chart.title,type:"pie",radius:["48%","68%"],center:["35%","52%"],avoidLabelOverlap:!0,label:{color:"#fff",fontSize:11,formatter:`{b}
+var D=Object.defineProperty,W=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(r,o,n)=>o in r?D(r,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[o]=n,h=(r,o)=>{for(var n in o||(o={}))F.call(o,n)&&k(r,n,o[n]);if(z)for(var n of z(o))P.call(o,n)&&k(r,n,o[n]);return r},p=(r,o)=>W(r,H(o));import{e as g,j as R,k as V,L as y,o as x,c as S,a as f,t as d,g as _,b as j,u as q,n as G}from"./index-1783264824576.js";import{aS as M}from"./chartTheme-3259b6f8-1783264824576.js";const E={class:"smart-chart-header"},I={key:0},U={key:0,class:"smart-chart-source"},Q={__name:"SmartChartRenderer",props:{chart:{type:Object,required:!0}},emits:["ready"],setup(r,{emit:o}){const n=o,i=r,l=["#30dcff","#27f0c0","#ffd76c","#7aa7ff","#ff8f6b","#a6f06d"],N=g(()=>{const e=(i.chart.rows||[]).filter(t=>Number.isFinite(Number(t.value)));return i.chart.type==="pie"?w(e):i.chart.type==="line"?B(e):A(e)}),T=g(()=>{const e=i.chart.rows||[];return i.chart.type==="bar"&&L(e)}),v=g(()=>{const e=i.chart.source||{},t=$(e),a=m(e.period||e.dataPeriod||i.chart.period),b=m(e.generatedAt||e.updateTime||e.updatedAt,!0),u=[t,a,b].filter(Boolean);return u.length?`统计口径:${u.join(" / ")}`:"统计口径:业务统计库"});R(()=>{V(()=>{window.requestAnimationFrame(()=>n("ready"))})});function A(e){return L(e)?C(e):{animationDuration:700,grid:{left:52,right:26,top:28,bottom:54},tooltip:s(),xAxis:{type:"category",data:e.map(t=>t.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0,rotate:e.length>6?28:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"bar",barWidth:e.length>7?16:22,data:e.map((t,a)=>({value:t.value,name:t.name,itemStyle:{borderRadius:[8,8,0,0],color:new y(0,0,0,1,[{offset:0,color:l[a%l.length]},{offset:1,color:"rgba(48, 220, 255, 0.08)"}])}})),label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:t})=>c(t)}}]}}function C(e){return{animationDuration:700,grid:{left:78,right:72,top:22,bottom:20},tooltip:p(h({},s()),{trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},yAxis:{type:"category",inverse:!0,data:e.map(t=>t.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.22)"}},axisLabel:{color:"rgba(223, 250, 255, 0.82)",fontSize:12}},series:[{name:i.chart.title,type:"bar",barWidth:13,data:e.map((t,a)=>({value:t.value,name:t.name,itemStyle:{borderRadius:[0,8,8,0],color:new y(0,0,1,0,[{offset:0,color:"rgba(48, 220, 255, 0.16)"},{offset:1,color:l[a%l.length]}])}})),label:{show:!0,position:"right",color:"#ffffff",fontSize:11,formatter:({value:t})=>c(t)}}]}}function w(e){return{animationDuration:700,tooltip:s(),legend:{orient:"vertical",right:10,top:"middle",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(223, 250, 255, 0.78)",fontSize:11}},series:[{name:i.chart.title,type:"pie",radius:["48%","68%"],center:["35%","52%"],avoidLabelOverlap:!0,label:{color:"#fff",fontSize:11,formatter:`{b}
{d}%`},labelLine:{lineStyle:{color:"rgba(223, 250, 255, 0.42)"}},itemStyle:{borderColor:"rgba(3, 18, 31, 0.92)",borderWidth:3},data:e.map((t,a)=>({name:t.name,value:t.value,itemStyle:{color:l[a%l.length]}}))}]}}function B(e){return{animationDuration:760,grid:{left:52,right:28,top:30,bottom:48},tooltip:p(h({},s()),{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(255, 215, 108, 0.52)"}}}),xAxis:{type:"category",boundaryGap:!1,data:e.map(t=>t.name),axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(48, 220, 255, 0.28)"}},axisLabel:{color:"rgba(223, 250, 255, 0.76)",fontSize:11,interval:0}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},axisLabel:{color:"rgba(223, 250, 255, 0.58)",fontSize:11}},series:[{name:i.chart.title,type:"line",smooth:!0,symbol:"circle",symbolSize:8,lineStyle:{width:3,color:"#30dcff"},itemStyle:{color:"#ffd76c",borderColor:"#041522",borderWidth:2},areaStyle:{color:new y(0,0,0,1,[{offset:0,color:"rgba(48, 220, 255, 0.24)"},{offset:1,color:"rgba(48, 220, 255, 0.02)"}])},label:{show:!0,position:"top",color:"#ffffff",fontSize:11,formatter:({value:t})=>c(t)},data:e.map(t=>({value:t.value,name:t.name}))}]}}function s(){return{trigger:"item",backgroundColor:"rgba(2, 13, 22, 0.94)",borderColor:"rgba(48, 220, 255, 0.34)",borderWidth:1,textStyle:{color:"#fff",fontSize:12},formatter:e=>{const t=(i.chart.rows||[]).find(u=>u.name===e.name),a=(t==null?void 0:t.unit)||i.chart.unit||"",b=t!=null&&t.extra?`
${t.extra}`:"";return`${e.marker}${e.name}: ${c(e.value)}${a}${b}`}}}function L(e=[]){return e.length>6||e.some(t=>String(t.name||"").length>4)}function $(e={}){const t=m(e.sourceName||e.name||e.label);if(t)return t;const a=String(e.mode||"").trim();return/openapi|api|stat/i.test(a)?"业务统计库":/local|mock|fallback/i.test(a)?"本地统计":"业务统计库"}function m(e,t=!1){const a=String(e||"").trim();return a?t&&/^\d{4}-\d{2}-\d{2}/.test(a)?a.slice(0,10):O(a)?"":a:""}function O(e){return/^[a-zA-Z0-9_./:-]+$/.test(e)&&(e.includes("_")||e.length>24)}function c(e){const t=Number(e);return Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString("zh-CN"):t.toLocaleString("zh-CN",{maximumFractionDigits:2}):"--"}return(e,t)=>(x(),S("div",{class:G(["smart-chart-card",{"is-horizontal":T.value}])},[f("div",E,[f("div",null,[f("strong",null,d(r.chart.title),1),f("span",null,d(r.chart.subtitle),1)]),r.chart.unit?(x(),S("em",I,d(r.chart.unit),1)):_("",!0)]),j(q(M),{class:"smart-chart",option:N.value,autoresize:""},null,8,["option"]),v.value?(x(),S("div",U,d(v.value),1)):_("",!0)],2))}};export{Q as default};
diff --git a/docs/assets/area-1144cf4a-balabala-1783244194656.png b/docs/assets/area-1144cf4a-balabala-1783244194656.png
deleted file mode 100644
index 13e3852..0000000
Binary files a/docs/assets/area-1144cf4a-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/area-b57940eb-balabala-1783264824576.png b/docs/assets/area-b57940eb-balabala-1783264824576.png
new file mode 100644
index 0000000..6f57ed0
Binary files /dev/null and b/docs/assets/area-b57940eb-balabala-1783264824576.png differ
diff --git a/docs/assets/bg-3acb94e3-balabala-1783244194656.png b/docs/assets/bg-3acb94e3-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/bg-3acb94e3-balabala-1783244194656.png
rename to docs/assets/bg-3acb94e3-balabala-1783264824576.png
diff --git a/docs/assets/bottom-menu-arrow-big-180b7071-balabala-1783244194656.svg b/docs/assets/bottom-menu-arrow-big-180b7071-balabala-1783264824576.svg
similarity index 100%
rename from docs/assets/bottom-menu-arrow-big-180b7071-balabala-1783244194656.svg
rename to docs/assets/bottom-menu-arrow-big-180b7071-balabala-1783264824576.svg
diff --git a/docs/assets/bottom-menu-arrow-small-19304179-balabala-1783244194656.svg b/docs/assets/bottom-menu-arrow-small-19304179-balabala-1783264824576.svg
similarity index 100%
rename from docs/assets/bottom-menu-arrow-small-19304179-balabala-1783244194656.svg
rename to docs/assets/bottom-menu-arrow-small-19304179-balabala-1783264824576.svg
diff --git a/docs/assets/bottom-menu-bg-b465793d-balabala-1783244194656.png b/docs/assets/bottom-menu-bg-b465793d-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/bottom-menu-bg-b465793d-balabala-1783244194656.png
rename to docs/assets/bottom-menu-bg-b465793d-balabala-1783264824576.png
diff --git a/docs/assets/bottom-menu-btn-ee5c8064-balabala-1783244194656.png b/docs/assets/bottom-menu-btn-ee5c8064-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/bottom-menu-btn-ee5c8064-balabala-1783244194656.png
rename to docs/assets/bottom-menu-btn-ee5c8064-balabala-1783264824576.png
diff --git a/docs/assets/bottom-menu-btn-hover-df33e514-balabala-1783244194656.png b/docs/assets/bottom-menu-btn-hover-df33e514-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/bottom-menu-btn-hover-df33e514-balabala-1783244194656.png
rename to docs/assets/bottom-menu-btn-hover-df33e514-balabala-1783264824576.png
diff --git a/docs/assets/certificate-355c8c0e-balabala-1783244194656.png b/docs/assets/certificate-355c8c0e-balabala-1783244194656.png
deleted file mode 100644
index 226cab6..0000000
Binary files a/docs/assets/certificate-355c8c0e-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/chartTheme-fbd5f176-1783244194656.js b/docs/assets/chartTheme-3259b6f8-1783264824576.js
similarity index 99%
rename from docs/assets/chartTheme-fbd5f176-1783244194656.js
rename to docs/assets/chartTheme-3259b6f8-1783264824576.js
index 034a863..93d55c3 100644
--- a/docs/assets/chartTheme-fbd5f176-1783244194656.js
+++ b/docs/assets/chartTheme-3259b6f8-1783264824576.js
@@ -1,4 +1,4 @@
-var Fp=Object.defineProperty,Bp=Object.defineProperties;var zp=Object.getOwnPropertyDescriptors;var Vs=Object.getOwnPropertySymbols;var Yc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable;var Eo=Math.pow,qc=(r,t,e)=>t in r?Fp(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ae=(r,t)=>{for(var e in t||(t={}))Yc.call(t,e)&&qc(r,e,t[e]);if(Vs)for(var e of Vs(t))$c.call(t,e)&&qc(r,e,t[e]);return r},$r=(r,t)=>Bp(r,zp(t));var jc=(r,t)=>{var e={};for(var n in r)Yc.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&Vs)for(var n of Vs(r))t.indexOf(n)<0&&$c.call(r,n)&&(e[n]=r[n]);return e};var Zc=(r,t,e)=>new Promise((n,i)=>{var s=l=>{try{a(e.next(l))}catch(c){i(c)}},o=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((e=e.apply(r,t)).next())});import{N as kp,i as Hs,e as Xn,O as Cf,w as Gs,P as Kc,j as Pf,f as Vp,Q as Jc,s as Ws,R as Hp,S as Gp,k as Wp,T as Xp,u as qp,U as Yp,o as Ca,c as Pa,a as Bt,C as bo,t as $p,m as To,r as Lf,d as jp,_ as Zp,L as Df}from"./index-1783244194656.js";function Wn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function If(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}/*!
+var Fp=Object.defineProperty,Bp=Object.defineProperties;var zp=Object.getOwnPropertyDescriptors;var Vs=Object.getOwnPropertySymbols;var Yc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable;var Eo=Math.pow,qc=(r,t,e)=>t in r?Fp(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ae=(r,t)=>{for(var e in t||(t={}))Yc.call(t,e)&&qc(r,e,t[e]);if(Vs)for(var e of Vs(t))$c.call(t,e)&&qc(r,e,t[e]);return r},$r=(r,t)=>Bp(r,zp(t));var jc=(r,t)=>{var e={};for(var n in r)Yc.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&Vs)for(var n of Vs(r))t.indexOf(n)<0&&$c.call(r,n)&&(e[n]=r[n]);return e};var Zc=(r,t,e)=>new Promise((n,i)=>{var s=l=>{try{a(e.next(l))}catch(c){i(c)}},o=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((e=e.apply(r,t)).next())});import{N as kp,i as Hs,e as Xn,O as Cf,w as Gs,P as Kc,j as Pf,f as Vp,Q as Jc,s as Ws,R as Hp,S as Gp,k as Wp,U as Xp,u as qp,V as Yp,o as Ca,c as Pa,a as Bt,C as bo,t as $p,m as To,r as Lf,d as jp,_ as Zp,L as Df}from"./index-1783264824576.js";function Wn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function If(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}/*!
* GSAP 3.14.2
* https://gsap.com
*
@@ -28,7 +28,7 @@ var Fp=Object.defineProperty,Bp=Object.defineProperties;var zp=Object.getOwnProp
if (customElements.get(tag) == null) {
customElements.define(tag, EChartsElement);
}
-`)(Dd)}catch(r){return Zr=!1}return Zr=!0}(),L_="ecTheme",D_="ecInitOptions",I_="ecUpdateOptions",xh=/(^&?~?!?)native:/,lb=kp({name:"echarts",props:An(An({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},w_),C_),emits:{},inheritAttrs:!1,setup:function(r,t){var e=t.attrs,n=Ws(),i=Ws(),s=Ws(),o=Ws(),a=Hs(L_,null),l=Hs(D_,null),c=Hs(I_,null),h=Hp(r),u=h.autoresize,f=h.manualUpdate,d=h.loading,_=h.loadingOptions,g=Xn(function(){return o.value||r.option||null}),p=Xn(function(){return r.theme||Ys(a,{})}),m=Xn(function(){return r.initOptions||Ys(l,{})}),y=Xn(function(){return r.updateOptions||Ys(c,{})}),v=Xn(function(){return function(E){var k={};for(var W in E)gh(W)||(k[W]=E[W]);return k}(e)}),S={},A=Cf().proxy.$listeners,R={};function b(E){if(i.value){var k=s.value=Gp(i.value,p.value,m.value);r.group&&(k.group=r.group),Object.keys(R).forEach(function(I){var F=R[I];if(F){var O=I.toLowerCase();O.charAt(0)==="~"&&(O=O.substring(1),F.__once__=!0);var Y=k;if(O.indexOf("zr:")===0&&(Y=k.getZr(),O=O.substring(3)),F.__once__){delete F.__once__;var q=F;F=function(){for(var $=[],Z=0;Z{let o=t.width;return`M165 0.5
+`)(Dd)}catch(r){return Zr=!1}return Zr=!0}(),L_="ecTheme",D_="ecInitOptions",I_="ecUpdateOptions",xh=/(^&?~?!?)native:/,lb=kp({name:"echarts",props:An(An({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},w_),C_),emits:{},inheritAttrs:!1,setup:function(r,t){var e=t.attrs,n=Ws(),i=Ws(),s=Ws(),o=Ws(),a=Hs(L_,null),l=Hs(D_,null),c=Hs(I_,null),h=Hp(r),u=h.autoresize,f=h.manualUpdate,d=h.loading,_=h.loadingOptions,g=Xn(function(){return o.value||r.option||null}),p=Xn(function(){return r.theme||Ys(a,{})}),m=Xn(function(){return r.initOptions||Ys(l,{})}),y=Xn(function(){return r.updateOptions||Ys(c,{})}),v=Xn(function(){return function(E){var k={};for(var W in E)gh(W)||(k[W]=E[W]);return k}(e)}),S={},A=Cf().proxy.$listeners,R={};function b(E){if(i.value){var k=s.value=Gp(i.value,p.value,m.value);r.group&&(k.group=r.group),Object.keys(R).forEach(function(I){var F=R[I];if(F){var O=I.toLowerCase();O.charAt(0)==="~"&&(O=O.substring(1),F.__once__=!0);var Y=k;if(O.indexOf("zr:")===0&&(Y=k.getZr(),O=O.substring(3)),F.__once__){delete F.__once__;var q=F;F=function(){for(var $=[],Z=0;Z{let o=t.width;return`M165 0.5
L165.707 -0.207107
L165.414 -0.5
H165
@@ -3878,4 +3878,4 @@ void main() {
}
-}`;class TS{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,e,n){if(this.texture===null){const i=new Ie,s=t.properties.get(i);s.__webglTexture=e.texture,(e.depthNear!=n.depthNear||e.depthFar!=n.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=i}}render(t,e){if(this.texture!==null){if(this.mesh===null){const n=e.cameras[0].viewport,i=new Ei({extensions:{fragDepth:!0},vertexShader:ES,fragmentShader:bS,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new qe(new Os(20,20),i)}t.render(this.mesh,e)}}reset(){this.texture=null,this.mesh=null}}class wS extends Ki{constructor(t,e){super();const n=this;let i=null,s=1,o=null,a="local-floor",l=1,c=null,h=null,u=null,f=null,d=null,_=null;const g=new TS,p=e.getContextAttributes();let m=null,y=null;const v=[],S=[],A=new it;let R=null;const b=new Xe;b.layers.enable(1),b.viewport=new se;const U=new Xe;U.layers.enable(2),U.viewport=new se;const N=[b,U],x=new MS;x.layers.enable(1),x.layers.enable(2);let E=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getTargetRaySpace()},this.getControllerGrip=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getGripSpace()},this.getHand=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getHandSpace()};function W(V){const Q=S.indexOf(V.inputSource);if(Q===-1)return;const _t=v[Q];_t!==void 0&&(_t.update(V.inputSource,V.frame,c||o),_t.dispatchEvent({type:V.type,data:V.inputSource}))}function I(){i.removeEventListener("select",W),i.removeEventListener("selectstart",W),i.removeEventListener("selectend",W),i.removeEventListener("squeeze",W),i.removeEventListener("squeezestart",W),i.removeEventListener("squeezeend",W),i.removeEventListener("end",I),i.removeEventListener("inputsourceschange",F);for(let V=0;V=0&&(S[Mt]=null,v[Mt].disconnect(_t))}for(let Q=0;Q=S.length){S.push(_t),Mt=xt;break}else if(S[xt]===null){S[xt]=_t,Mt=xt;break}if(Mt===-1)break}const Tt=v[Mt];Tt&&Tt.connect(_t)}}const O=new D,Y=new D;function q(V,Q,_t){O.setFromMatrixPosition(Q.matrixWorld),Y.setFromMatrixPosition(_t.matrixWorld);const Mt=O.distanceTo(Y),Tt=Q.projectionMatrix.elements,xt=_t.projectionMatrix.elements,Ot=Tt[14]/(Tt[10]-1),At=Tt[14]/(Tt[10]+1),L=(Tt[9]+1)/Tt[5],ct=(Tt[9]-1)/Tt[5],j=(Tt[8]-1)/Tt[0],ot=(xt[8]+1)/xt[0],K=Ot*j,bt=Ot*ot,pt=Mt/(-j+ot),T=pt*-j;Q.matrixWorld.decompose(V.position,V.quaternion,V.scale),V.translateX(T),V.translateZ(pt),V.matrixWorld.compose(V.position,V.quaternion,V.scale),V.matrixWorldInverse.copy(V.matrixWorld).invert();const M=Ot+pt,B=At+pt,rt=K-T,et=bt+(Mt-T),tt=L*At/B*M,yt=ct*At/B*M;V.projectionMatrix.makePerspective(rt,et,tt,yt,M,B),V.projectionMatrixInverse.copy(V.projectionMatrix).invert()}function $(V,Q){Q===null?V.matrixWorld.copy(V.matrix):V.matrixWorld.multiplyMatrices(Q.matrixWorld,V.matrix),V.matrixWorldInverse.copy(V.matrixWorld).invert()}this.updateCamera=function(V){if(i===null)return;g.texture!==null&&(V.near=g.depthNear,V.far=g.depthFar),x.near=U.near=b.near=V.near,x.far=U.far=b.far=V.far,(E!==x.near||k!==x.far)&&(i.updateRenderState({depthNear:x.near,depthFar:x.far}),E=x.near,k=x.far,b.near=E,b.far=k,U.near=E,U.far=k,b.updateProjectionMatrix(),U.updateProjectionMatrix(),V.updateProjectionMatrix());const Q=V.parent,_t=x.cameras;$(x,Q);for(let Mt=0;Mt<_t.length;Mt++)$(_t[Mt],Q);_t.length===2?q(x,b,U):x.projectionMatrix.copy(b.projectionMatrix),Z(V,x,Q)};function Z(V,Q,_t){_t===null?V.matrix.copy(Q.matrixWorld):(V.matrix.copy(_t.matrixWorld),V.matrix.invert(),V.matrix.multiply(Q.matrixWorld)),V.matrix.decompose(V.position,V.quaternion,V.scale),V.updateMatrixWorld(!0),V.projectionMatrix.copy(Q.projectionMatrix),V.projectionMatrixInverse.copy(Q.projectionMatrixInverse),V.isPerspectiveCamera&&(V.fov=Vr*2*Math.atan(1/V.projectionMatrix.elements[5]),V.zoom=1)}this.getCamera=function(){return x},this.getFoveation=function(){if(!(f===null&&d===null))return l},this.setFoveation=function(V){l=V,f!==null&&(f.fixedFoveation=V),d!==null&&d.fixedFoveation!==void 0&&(d.fixedFoveation=V)},this.hasDepthSensing=function(){return g.texture!==null};let J=null;function ut(V,Q){if(h=Q.getViewerPose(c||o),_=Q,h!==null){const _t=h.views;d!==null&&(t.setRenderTargetFramebuffer(y,d.framebuffer),t.setRenderTarget(y));let Mt=!1;_t.length!==x.cameras.length&&(x.cameras.length=0,Mt=!0);for(let xt=0;xt<_t.length;xt++){const Ot=_t[xt];let At=null;if(d!==null)At=d.getViewport(Ot);else{const ct=u.getViewSubImage(f,Ot);At=ct.viewport,xt===0&&(t.setRenderTargetTextures(y,ct.colorTexture,f.ignoreDepthValues?void 0:ct.depthStencilTexture),t.setRenderTarget(y))}let L=N[xt];L===void 0&&(L=new Xe,L.layers.enable(xt),L.viewport=new se,N[xt]=L),L.matrix.fromArray(Ot.transform.matrix),L.matrix.decompose(L.position,L.quaternion,L.scale),L.projectionMatrix.fromArray(Ot.projectionMatrix),L.projectionMatrixInverse.copy(L.projectionMatrix).invert(),L.viewport.set(At.x,At.y,At.width,At.height),xt===0&&(x.matrix.copy(L.matrix),x.matrix.decompose(x.position,x.quaternion,x.scale)),Mt===!0&&x.cameras.push(L)}const Tt=i.enabledFeatures;if(Tt&&Tt.includes("depth-sensing")){const xt=u.getDepthInformation(_t[0]);xt&&xt.isValid&&xt.texture&&g.init(t,xt,i.renderState)}}for(let _t=0;_t0&&(p.alphaTest.value=m.alphaTest);const y=t.get(m).envMap;if(y&&(p.envMap.value=y,p.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap){p.lightMap.value=m.lightMap;const v=r._useLegacyLights===!0?Math.PI:1;p.lightMapIntensity.value=m.lightMapIntensity*v,e(m.lightMap,p.lightMapTransform)}m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity,e(m.aoMap,p.aoMapTransform))}function o(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,m.map&&(p.map.value=m.map,e(m.map,p.mapTransform))}function a(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function l(p,m,y,v){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*y,p.scale.value=v*.5,m.map&&(p.map.value=m.map,e(m.map,p.uvTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,e(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function c(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map,e(m.map,p.mapTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,e(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function h(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function u(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function f(p,m){p.metalness.value=m.metalness,m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap,e(m.metalnessMap,p.metalnessMapTransform)),p.roughness.value=m.roughness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap,e(m.roughnessMap,p.roughnessMapTransform)),t.get(m).envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function d(p,m,y){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap,e(m.sheenColorMap,p.sheenColorMapTransform)),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap,e(m.sheenRoughnessMap,p.sheenRoughnessMapTransform))),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap,e(m.clearcoatMap,p.clearcoatMapTransform)),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap,e(m.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),m.clearcoatNormalMap&&(p.clearcoatNormalMap.value=m.clearcoatNormalMap,e(m.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),m.side===Ke&&p.clearcoatNormalScale.value.negate())),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap,e(m.iridescenceMap,p.iridescenceMapTransform)),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap,e(m.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=y.texture,p.transmissionSamplerSize.value.set(y.width,y.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap,e(m.transmissionMap,p.transmissionMapTransform)),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap,e(m.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),m.anisotropy>0&&(p.anisotropyVector.value.set(m.anisotropy*Math.cos(m.anisotropyRotation),m.anisotropy*Math.sin(m.anisotropyRotation)),m.anisotropyMap&&(p.anisotropyMap.value=m.anisotropyMap,e(m.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap,e(m.specularColorMap,p.specularColorMapTransform)),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap,e(m.specularIntensityMap,p.specularIntensityMapTransform))}function _(p,m){m.matcap&&(p.matcap.value=m.matcap)}function g(p,m){const y=t.get(m).light;p.referencePosition.value.setFromMatrixPosition(y.matrixWorld),p.nearDistance.value=y.shadow.camera.near,p.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function RS(r,t,e,n){let i={},s={},o=[];const a=e.isWebGL2?r.getParameter(r.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;n.uniformBlockBinding(y,S)}function c(y,v){let S=i[y.id];S===void 0&&(_(y),S=h(y),i[y.id]=S,y.addEventListener("dispose",p));const A=v.program;n.updateUBOMapping(y,A);const R=t.render.frame;s[y.id]!==R&&(f(y),s[y.id]=R)}function h(y){const v=u();y.__bindingPointIndex=v;const S=r.createBuffer(),A=y.__size,R=y.usage;return r.bindBuffer(r.UNIFORM_BUFFER,S),r.bufferData(r.UNIFORM_BUFFER,A,R),r.bindBuffer(r.UNIFORM_BUFFER,null),r.bindBufferBase(r.UNIFORM_BUFFER,v,S),S}function u(){for(let y=0;y0&&(S+=A-R),y.__size=S,y.__cache={},this}function g(y){const v={boundary:0,storage:0};return typeof y=="number"||typeof y=="boolean"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function p(y){const v=y.target;v.removeEventListener("dispose",p);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),r.deleteBuffer(i[v.id]),delete i[v.id],delete s[v.id]}function m(){for(const y in i)r.deleteBuffer(i[y]);o=[],i={},s={}}return{bind:l,update:c,dispose:m}}class lp{constructor(t={}){const{canvas:e=M0(),context:n=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:u=!1}=t;this.isWebGLRenderer=!0;let f;n!==null?f=n.getContextAttributes().alpha:f=o;const d=new Uint32Array(4),_=new Int32Array(4);let g=null,p=null;const m=[],y=[];this.domElement=e,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Le,this._useLegacyLights=!1,this.toneMapping=mi,this.toneMappingExposure=1;const v=this;let S=!1,A=0,R=0,b=null,U=-1,N=null;const x=new se,E=new se;let k=null;const W=new Nt(0);let I=0,F=e.width,O=e.height,Y=1,q=null,$=null;const Z=new se(0,0,F,O),J=new se(0,0,F,O);let ut=!1;const Et=new Ac;let V=!1,Q=!1,_t=null;const Mt=new $t,Tt=new it,xt=new D,Ot={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function At(){return b===null?Y:1}let L=n;function ct(w,z){for(let G=0;G{function vt(){if(X.forEach(function(wt){pt.get(wt).currentProgram.isReady()&&X.delete(wt)}),X.size===0){H(w);return}setTimeout(vt,10)}j.get("KHR_parallel_shader_compile")!==null?vt():setTimeout(vt,10)})};let Yt=null;function ne(w){Yt&&Yt(w)}function Ce(){ve.stop()}function Jt(){ve.start()}const ve=new tp;ve.setAnimationLoop(ne),typeof self!="undefined"&&ve.setContext(self),this.setAnimationLoop=function(w){Yt=w,dt.setAnimationLoop(w),w===null?ve.stop():ve.start()},dt.addEventListener("sessionstart",Ce),dt.addEventListener("sessionend",Jt),this.render=function(w,z){if(z!==void 0&&z.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;w.matrixWorldAutoUpdate===!0&&w.updateMatrixWorld(),z.parent===null&&z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),dt.enabled===!0&&dt.isPresenting===!0&&(dt.cameraAutoUpdate===!0&&dt.updateCamera(z),z=dt.getCamera()),w.isScene===!0&&w.onBeforeRender(v,w,z,b),p=Pt.get(w,y.length),p.init(),y.push(p),Mt.multiplyMatrices(z.projectionMatrix,z.matrixWorldInverse),Et.setFromProjectionMatrix(Mt),Q=this.localClippingEnabled,V=Ft.init(this.clippingPlanes,Q),g=gt.get(w,m.length),g.init(),m.push(g),ke(w,z,0,v.sortObjects),g.finish(),v.sortObjects===!0&&g.sort(q,$),this.info.render.frame++,V===!0&&Ft.beginShadows();const G=p.state.shadowsArray;if(nt.render(G,w,z),V===!0&&Ft.endShadows(),this.info.autoReset===!0&&this.info.reset(),(dt.enabled===!1||dt.isPresenting===!1||dt.hasDepthSensing()===!1)&&Zt.render(g,w),p.setupLights(v._useLegacyLights),z.isArrayCamera){const X=z.cameras;for(let H=0,vt=X.length;H0?p=y[y.length-1]:p=null,m.pop(),m.length>0?g=m[m.length-1]:g=null};function ke(w,z,G,X){if(w.visible===!1)return;if(w.layers.test(z.layers)){if(w.isGroup)G=w.renderOrder;else if(w.isLOD)w.autoUpdate===!0&&w.update(z);else if(w.isLight)p.pushLight(w),w.castShadow&&p.pushShadow(w);else if(w.isSprite){if(!w.frustumCulled||Et.intersectsSprite(w)){X&&xt.setFromMatrixPosition(w.matrixWorld).applyMatrix4(Mt);const wt=tt.update(w),Dt=w.material;Dt.visible&&g.push(w,wt,Dt,G,xt.z,null)}}else if((w.isMesh||w.isLine||w.isPoints)&&(!w.frustumCulled||Et.intersectsObject(w))){const wt=tt.update(w),Dt=w.material;if(X&&(w.boundingSphere!==void 0?(w.boundingSphere===null&&w.computeBoundingSphere(),xt.copy(w.boundingSphere.center)):(wt.boundingSphere===null&&wt.computeBoundingSphere(),xt.copy(wt.boundingSphere.center)),xt.applyMatrix4(w.matrixWorld).applyMatrix4(Mt)),Array.isArray(Dt)){const Ut=wt.groups;for(let Wt=0,zt=Ut.length;Wt0&&Dp(H,vt,z,G),X&&K.viewport(x.copy(X)),H.length>0&&zs(H,z,G),vt.length>0&&zs(vt,z,G),wt.length>0&&zs(wt,z,G),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function Dp(w,z,G,X){if((G.isScene===!0?G.overrideMaterial:null)!==null)return;const vt=ot.isWebGL2;_t===null&&(_t=new $i(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")?As:_i,minFilter:zi,samples:vt?4:0})),v.getDrawingBufferSize(Tt),vt?_t.setSize(Tt.x,Tt.y):_t.setSize(Ja(Tt.x),Ja(Tt.y));const wt=v.getRenderTarget();v.setRenderTarget(_t),v.getClearColor(W),I=v.getClearAlpha(),I<1&&v.setClearColor(16777215,.5),v.clear();const Dt=v.toneMapping;v.toneMapping=mi,zs(w,G,X),T.updateMultisampleRenderTarget(_t),T.updateRenderTargetMipmap(_t);let Ut=!1;for(let Wt=0,zt=z.length;Wt0),Vt=!!G.morphAttributes.position,xe=!!G.morphAttributes.normal,Qe=!!G.morphAttributes.color;let we=mi;X.toneMapped&&(b===null||b.isXRRenderTarget===!0)&&(we=v.toneMapping);const On=G.morphAttributes.position||G.morphAttributes.normal||G.morphAttributes.color,ce=On!==void 0?On.length:0,Xt=pt.get(X),xo=p.state.lights;if(V===!0&&(Q===!0||w!==N)){const hn=w===N&&X.id===U;Ft.setState(X,w,hn)}let pe=!1;X.version===Xt.__version?(Xt.needsLights&&Xt.lightsStateVersion!==xo.state.version||Xt.outputColorSpace!==Dt||H.isBatchedMesh&&Xt.batching===!1||!H.isBatchedMesh&&Xt.batching===!0||H.isInstancedMesh&&Xt.instancing===!1||!H.isInstancedMesh&&Xt.instancing===!0||H.isSkinnedMesh&&Xt.skinning===!1||!H.isSkinnedMesh&&Xt.skinning===!0||H.isInstancedMesh&&Xt.instancingColor===!0&&H.instanceColor===null||H.isInstancedMesh&&Xt.instancingColor===!1&&H.instanceColor!==null||Xt.envMap!==Ut||X.fog===!0&&Xt.fog!==vt||Xt.numClippingPlanes!==void 0&&(Xt.numClippingPlanes!==Ft.numPlanes||Xt.numIntersection!==Ft.numIntersection)||Xt.vertexAlphas!==Wt||Xt.vertexTangents!==zt||Xt.morphTargets!==Vt||Xt.morphNormals!==xe||Xt.morphColors!==Qe||Xt.toneMapping!==we||ot.isWebGL2===!0&&Xt.morphTargetsCount!==ce)&&(pe=!0):(pe=!0,Xt.__version=X.version);let wi=Xt.currentProgram;pe===!0&&(wi=ks(X,z,H));let Wc=!1,Yr=!1,yo=!1;const Ne=wi.getUniforms(),Ai=Xt.uniforms;if(K.useProgram(wi.program)&&(Wc=!0,Yr=!0,yo=!0),X.id!==U&&(U=X.id,Yr=!0),Wc||N!==w){Ne.setValue(L,"projectionMatrix",w.projectionMatrix),Ne.setValue(L,"viewMatrix",w.matrixWorldInverse);const hn=Ne.map.cameraPosition;hn!==void 0&&hn.setValue(L,xt.setFromMatrixPosition(w.matrixWorld)),ot.logarithmicDepthBuffer&&Ne.setValue(L,"logDepthBufFC",2/(Math.log(w.far+1)/Math.LN2)),(X.isMeshPhongMaterial||X.isMeshToonMaterial||X.isMeshLambertMaterial||X.isMeshBasicMaterial||X.isMeshStandardMaterial||X.isShaderMaterial)&&Ne.setValue(L,"isOrthographic",w.isOrthographicCamera===!0),N!==w&&(N=w,Yr=!0,yo=!0)}if(H.isSkinnedMesh){Ne.setOptional(L,H,"bindMatrix"),Ne.setOptional(L,H,"bindMatrixInverse");const hn=H.skeleton;hn&&(ot.floatVertexTextures?(hn.boneTexture===null&&hn.computeBoneTexture(),Ne.setValue(L,"boneTexture",hn.boneTexture,T)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}H.isBatchedMesh&&(Ne.setOptional(L,H,"batchingTexture"),Ne.setValue(L,"batchingTexture",H._matricesTexture,T));const Mo=G.morphAttributes;if((Mo.position!==void 0||Mo.normal!==void 0||Mo.color!==void 0&&ot.isWebGL2===!0)&&Gt.update(H,G,wi),(Yr||Xt.receiveShadow!==H.receiveShadow)&&(Xt.receiveShadow=H.receiveShadow,Ne.setValue(L,"receiveShadow",H.receiveShadow)),X.isMeshGouraudMaterial&&X.envMap!==null&&(Ai.envMap.value=Ut,Ai.flipEnvMap.value=Ut.isCubeTexture&&Ut.isRenderTargetTexture===!1?-1:1),Yr&&(Ne.setValue(L,"toneMappingExposure",v.toneMappingExposure),Xt.needsLights&&Up(Ai,yo),vt&&X.fog===!0&&ft.refreshFogUniforms(Ai,vt),ft.refreshMaterialUniforms(Ai,X,Y,O,_t),Na.upload(L,Hc(Xt),Ai,T)),X.isShaderMaterial&&X.uniformsNeedUpdate===!0&&(Na.upload(L,Hc(Xt),Ai,T),X.uniformsNeedUpdate=!1),X.isSpriteMaterial&&Ne.setValue(L,"center",H.center),Ne.setValue(L,"modelViewMatrix",H.modelViewMatrix),Ne.setValue(L,"normalMatrix",H.normalMatrix),Ne.setValue(L,"modelMatrix",H.matrixWorld),X.isShaderMaterial||X.isRawShaderMaterial){const hn=X.uniformsGroups;for(let So=0,Op=hn.length;So0&&T.useMultisampledRTT(w)===!1?H=pt.get(w).__webglMultisampledFramebuffer:Array.isArray(zt)?H=zt[G]:H=zt,x.copy(w.viewport),E.copy(w.scissor),k=w.scissorTest}else x.copy(Z).multiplyScalar(Y).floor(),E.copy(J).multiplyScalar(Y).floor(),k=ut;if(K.bindFramebuffer(L.FRAMEBUFFER,H)&&ot.drawBuffers&&X&&K.drawBuffers(w,H),K.viewport(x),K.scissor(E),K.setScissorTest(k),vt){const Ut=pt.get(w.texture);L.framebufferTexture2D(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,L.TEXTURE_CUBE_MAP_POSITIVE_X+z,Ut.__webglTexture,G)}else if(wt){const Ut=pt.get(w.texture),Wt=z||0;L.framebufferTextureLayer(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,Ut.__webglTexture,G||0,Wt)}U=-1},this.readRenderTargetPixels=function(w,z,G,X,H,vt,wt){if(!(w&&w.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Dt=pt.get(w).__webglFramebuffer;if(w.isWebGLCubeRenderTarget&&wt!==void 0&&(Dt=Dt[wt]),Dt){K.bindFramebuffer(L.FRAMEBUFFER,Dt);try{const Ut=w.texture,Wt=Ut.format,zt=Ut.type;if(Wt!==dn&&mt.convert(Wt)!==L.getParameter(L.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Vt=zt===As&&(j.has("EXT_color_buffer_half_float")||ot.isWebGL2&&j.has("EXT_color_buffer_float"));if(zt!==_i&&mt.convert(zt)!==L.getParameter(L.IMPLEMENTATION_COLOR_READ_TYPE)&&!(zt===Ln&&(ot.isWebGL2||j.has("OES_texture_float")||j.has("WEBGL_color_buffer_float")))&&!Vt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}z>=0&&z<=w.width-X&&G>=0&&G<=w.height-H&&L.readPixels(z,G,X,H,mt.convert(Wt),mt.convert(zt),vt)}finally{const Ut=b!==null?pt.get(b).__webglFramebuffer:null;K.bindFramebuffer(L.FRAMEBUFFER,Ut)}}},this.copyFramebufferToTexture=function(w,z,G=0){const X=Math.pow(2,-G),H=Math.floor(z.image.width*X),vt=Math.floor(z.image.height*X);T.setTexture2D(z,0),L.copyTexSubImage2D(L.TEXTURE_2D,G,0,0,w.x,w.y,H,vt),K.unbindTexture()},this.copyTextureToTexture=function(w,z,G,X=0){const H=z.image.width,vt=z.image.height,wt=mt.convert(G.format),Dt=mt.convert(G.type);T.setTexture2D(G,0),L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,G.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,G.unpackAlignment),z.isDataTexture?L.texSubImage2D(L.TEXTURE_2D,X,w.x,w.y,H,vt,wt,Dt,z.image.data):z.isCompressedTexture?L.compressedTexSubImage2D(L.TEXTURE_2D,X,w.x,w.y,z.mipmaps[0].width,z.mipmaps[0].height,wt,z.mipmaps[0].data):L.texSubImage2D(L.TEXTURE_2D,X,w.x,w.y,wt,Dt,z.image),X===0&&G.generateMipmaps&&L.generateMipmap(L.TEXTURE_2D),K.unbindTexture()},this.copyTextureToTexture3D=function(w,z,G,X,H=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const vt=w.max.x-w.min.x+1,wt=w.max.y-w.min.y+1,Dt=w.max.z-w.min.z+1,Ut=mt.convert(X.format),Wt=mt.convert(X.type);let zt;if(X.isData3DTexture)T.setTexture3D(X,0),zt=L.TEXTURE_3D;else if(X.isDataArrayTexture||X.isCompressedArrayTexture)T.setTexture2DArray(X,0),zt=L.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,X.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,X.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,X.unpackAlignment);const Vt=L.getParameter(L.UNPACK_ROW_LENGTH),xe=L.getParameter(L.UNPACK_IMAGE_HEIGHT),Qe=L.getParameter(L.UNPACK_SKIP_PIXELS),we=L.getParameter(L.UNPACK_SKIP_ROWS),On=L.getParameter(L.UNPACK_SKIP_IMAGES),ce=G.isCompressedTexture?G.mipmaps[H]:G.image;L.pixelStorei(L.UNPACK_ROW_LENGTH,ce.width),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,ce.height),L.pixelStorei(L.UNPACK_SKIP_PIXELS,w.min.x),L.pixelStorei(L.UNPACK_SKIP_ROWS,w.min.y),L.pixelStorei(L.UNPACK_SKIP_IMAGES,w.min.z),G.isDataTexture||G.isData3DTexture?L.texSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,Wt,ce.data):G.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),L.compressedTexSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,ce.data)):L.texSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,Wt,ce),L.pixelStorei(L.UNPACK_ROW_LENGTH,Vt),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,xe),L.pixelStorei(L.UNPACK_SKIP_PIXELS,Qe),L.pixelStorei(L.UNPACK_SKIP_ROWS,we),L.pixelStorei(L.UNPACK_SKIP_IMAGES,On),H===0&&X.generateMipmaps&&L.generateMipmap(zt),K.unbindTexture()},this.initTexture=function(w){w.isCubeTexture?T.setTextureCube(w,0):w.isData3DTexture?T.setTexture3D(w,0):w.isDataArrayTexture||w.isCompressedArrayTexture?T.setTexture2DArray(w,0):T.setTexture2D(w,0),K.unbindTexture()},this.resetState=function(){A=0,R=0,b=null,K.reset(),kt.reset()},typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Yn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(t){this._outputColorSpace=t;const e=this.getContext();e.drawingBufferColorSpace=t===Ec?"display-p3":"srgb",e.unpackColorSpace=ee.workingColorSpace===oo?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Le?qi:Hd}set outputEncoding(t){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=t===qi?Le:Zn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(t){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=t}}class CS extends lp{}CS.prototype.isWebGL1Renderer=!0;class cp{constructor(t,e=1,n=1e3){this.isFog=!0,this.name="",this.color=new Nt(t),this.near=e,this.far=n}clone(){return new cp(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class PS extends _e{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return this.fog!==null&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(e.object.backgroundIntensity=this.backgroundIntensity),e}}class hp{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.usage=Gl,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=gn()}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return Yi("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,s=this.stride;it.far||e.push({distance:l,point:is.clone(),uv:wn.getInterpolation(is,ma,ss,_a,qu,fl,Yu,new it),face:null,object:this})}copy(t,e){return super.copy(t,e),t.center!==void 0&&this.center.copy(t.center),this.material=t.material,this}}function ga(r,t,e,n,i,s){yr.subVectors(r,e).addScalar(.5).multiply(n),i!==void 0?(rs.x=s*yr.x-i*yr.y,rs.y=i*yr.x+s*yr.y):rs.copy(yr),r.copy(t),r.x+=rs.x,r.y+=rs.y,r.applyMatrix4(up)}const $u=new D,ju=new se,Zu=new se,DS=new D,Ku=new $t,va=new D,dl=new Kn,Ju=new $t,pl=new Gr;class pb extends qe{constructor(t,e){super(t,e),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=Ah,this.bindMatrix=new $t,this.bindMatrixInverse=new $t,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const t=this.geometry;this.boundingBox===null&&(this.boundingBox=new Ti),this.boundingBox.makeEmpty();const e=t.getAttribute("position");for(let n=0;nl)continue;f.applyMatrix4(this.matrixWorld);const U=t.ray.origin.distanceTo(f);Ut.far||e.push({distance:U,point:u.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const m=Math.max(0,o.start),y=Math.min(p.count,o.start+o.count);for(let v=m,S=y-1;vl)continue;f.applyMatrix4(this.matrixWorld);const R=t.ray.origin.distanceTo(f);Rt.far||e.push({distance:R,point:u.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){const i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:t,face:null,object:o})}}class vb extends Ie{constructor(t,e,n,i,s,o,a,l,c){super(t,e,n,i,s,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Un{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),s=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),s+=n.distanceTo(i),e.push(s),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const s=n.length;let o;e?o=e:o=t*n[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===o)return i/(s-1);const h=n[i],f=n[i+1]-h,d=(o-h)/f;return(i+d)/(s-1)}getTangent(t,e){let i=t-1e-4,s=t+1e-4;i<0&&(i=0),s>1&&(s=1);const o=this.getPoint(i),a=this.getPoint(s),l=e||(o.isVector2?new it:new D);return l.copy(a).sub(o).normalize(),l}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new D,i=[],s=[],o=[],a=new D,l=new $t;for(let d=0;d<=t;d++){const _=d/t;i[d]=this.getTangentAt(_,new D)}s[0]=new D,o[0]=new D;let c=Number.MAX_VALUE;const h=Math.abs(i[0].x),u=Math.abs(i[0].y),f=Math.abs(i[0].z);h<=c&&(c=h,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),f<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),s[0].crossVectors(i[0],a),o[0].crossVectors(i[0],s[0]);for(let d=1;d<=t;d++){if(s[d]=s[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const _=Math.acos(Ee(i[d-1].dot(i[d]),-1,1));s[d].applyMatrix4(l.makeRotationAxis(a,_))}o[d].crossVectors(i[d],s[d])}if(e===!0){let d=Math.acos(Ee(s[0].dot(s[t]),-1,1));d/=t,i[0].dot(a.crossVectors(s[0],s[t]))>0&&(d=-d);for(let _=1;_<=t;_++)s[_].applyMatrix4(l.makeRotationAxis(i[_],d*_)),o[_].crossVectors(i[_],s[_])}return{tangents:i,normals:s,binormals:o}}clone(){return new this.constructor().copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Pc extends Un{constructor(t=0,e=0,n=1,i=1,s=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(t,e){const n=e||new it,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const o=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,h;this.closed||a>0?c=i[(a-1)%s]:(Ea.subVectors(i[0],i[1]).add(i[0]),c=Ea);const u=i[a%s],f=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(uf(a,l.x,c.x,h.x,u.x),uf(a,l.y,c.y,h.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e=n){const o=i[s]-n,a=this.curves[s],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,e)}s++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e0){const u=c.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(c);const h=c.getPoint(1);return this.currentPoint.copy(h),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class xs extends ff{constructor(t){super(t),this.uuid=gn(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,i=this.holes.length;n80*e){a=c=r[0],l=h=r[1];for(let _=e;_c&&(c=u),f>h&&(h=f);d=Math.max(c-a,h-l),d=d!==0?32767/d:0}return Cs(s,o,e,a,l,d,0),o}};function yp(r,t,e,n,i){let s,o;if(i===fE(r,t,e,n)>0)for(s=t;s=t;s-=n)o=df(s,r[s],r[s+1],o);return o&&ho(o,o.next)&&(Ls(o),o=o.next),o}function ji(r,t){if(!r)return r;t||(t=r);let e=r,n;do if(n=!1,!e.steiner&&(ho(e,e.next)||de(e.prev,e,e.next)===0)){if(Ls(e),e=t=e.prev,e===e.next)break;n=!0}else e=e.next;while(n||e!==t);return t}function Cs(r,t,e,n,i,s,o){if(!r)return;!o&&s&&aE(r,n,i,s);let a=r,l,c;for(;r.prev!==r.next;){if(l=r.prev,c=r.next,s?JS(r,n,i,s):KS(r)){t.push(l.i/e|0),t.push(r.i/e|0),t.push(c.i/e|0),Ls(r),r=c.next,a=c.next;continue}if(r=c,r===a){o?o===1?(r=QS(ji(r),t,e),Cs(r,t,e,n,i,s,2)):o===2&&tE(r,t,e,n,i,s):Cs(ji(r),t,e,n,i,s,1);break}}}function KS(r){const t=r.prev,e=r,n=r.next;if(de(t,e,n)>=0)return!1;const i=t.x,s=e.x,o=n.x,a=t.y,l=e.y,c=n.y,h=is?i>o?i:o:s>o?s:o,d=a>l?a>c?a:c:l>c?l:c;let _=n.next;for(;_!==t;){if(_.x>=h&&_.x<=f&&_.y>=u&&_.y<=d&&wr(i,a,s,l,o,c,_.x,_.y)&&de(_.prev,_,_.next)>=0)return!1;_=_.next}return!0}function JS(r,t,e,n){const i=r.prev,s=r,o=r.next;if(de(i,s,o)>=0)return!1;const a=i.x,l=s.x,c=o.x,h=i.y,u=s.y,f=o.y,d=al?a>c?a:c:l>c?l:c,p=h>u?h>f?h:f:u>f?u:f,m=$l(d,_,t,e,n),y=$l(g,p,t,e,n);let v=r.prevZ,S=r.nextZ;for(;v&&v.z>=m&&S&&S.z<=y;){if(v.x>=d&&v.x<=g&&v.y>=_&&v.y<=p&&v!==i&&v!==o&&wr(a,h,l,u,c,f,v.x,v.y)&&de(v.prev,v,v.next)>=0||(v=v.prevZ,S.x>=d&&S.x<=g&&S.y>=_&&S.y<=p&&S!==i&&S!==o&&wr(a,h,l,u,c,f,S.x,S.y)&&de(S.prev,S,S.next)>=0))return!1;S=S.nextZ}for(;v&&v.z>=m;){if(v.x>=d&&v.x<=g&&v.y>=_&&v.y<=p&&v!==i&&v!==o&&wr(a,h,l,u,c,f,v.x,v.y)&&de(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;S&&S.z<=y;){if(S.x>=d&&S.x<=g&&S.y>=_&&S.y<=p&&S!==i&&S!==o&&wr(a,h,l,u,c,f,S.x,S.y)&&de(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function QS(r,t,e){let n=r;do{const i=n.prev,s=n.next.next;!ho(i,s)&&Mp(i,n,n.next,s)&&Ps(i,s)&&Ps(s,i)&&(t.push(i.i/e|0),t.push(n.i/e|0),t.push(s.i/e|0),Ls(n),Ls(n.next),n=r=s),n=n.next}while(n!==r);return ji(n)}function tE(r,t,e,n,i,s){let o=r;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&cE(o,a)){let l=Sp(o,a);o=ji(o,o.next),l=ji(l,l.next),Cs(o,t,e,n,i,s,0),Cs(l,t,e,n,i,s,0);return}a=a.next}o=o.next}while(o!==r)}function eE(r,t,e,n){const i=[];let s,o,a,l,c;for(s=0,o=t.length;s=e.next.y&&e.next.y!==e.y){const f=e.x+(o-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(f<=s&&f>n&&(n=f,i=e.x=e.x&&e.x>=l&&s!==e.x&&wr(oi.x||e.x===i.x&&sE(i,e)))&&(i=e,h=u)),e=e.next;while(e!==a);return i}function sE(r,t){return de(r.prev,r,t.prev)<0&&de(t.next,r,r.next)<0}function aE(r,t,e,n){let i=r;do i.z===0&&(i.z=$l(i.x,i.y,t,e,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==r);i.prevZ.nextZ=null,i.prevZ=null,oE(i)}function oE(r){let t,e,n,i,s,o,a,l,c=1;do{for(e=r,r=null,s=null,o=0;e;){for(o++,n=e,a=0,t=0;t0||l>0&&n;)a!==0&&(l===0||!n||e.z<=n.z)?(i=e,e=e.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:r=i,i.prevZ=s,s=i;e=n}s.nextZ=null,c*=2}while(o>1);return r}function $l(r,t,e,n,i){return r=(r-e)*i|0,t=(t-n)*i|0,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,r|t<<1}function lE(r){let t=r,e=r;do(t.x=(r-o)*(s-a)&&(r-o)*(n-a)>=(e-o)*(t-a)&&(e-o)*(s-a)>=(i-o)*(n-a)}function cE(r,t){return r.next.i!==t.i&&r.prev.i!==t.i&&!hE(r,t)&&(Ps(r,t)&&Ps(t,r)&&uE(r,t)&&(de(r.prev,r,t.prev)||de(r,t.prev,t))||ho(r,t)&&de(r.prev,r,r.next)>0&&de(t.prev,t,t.next)>0)}function de(r,t,e){return(t.y-r.y)*(e.x-t.x)-(t.x-r.x)*(e.y-t.y)}function ho(r,t){return r.x===t.x&&r.y===t.y}function Mp(r,t,e,n){const i=Ta(de(r,t,e)),s=Ta(de(r,t,n)),o=Ta(de(e,n,r)),a=Ta(de(e,n,t));return!!(i!==s&&o!==a||i===0&&ba(r,e,t)||s===0&&ba(r,n,t)||o===0&&ba(e,r,n)||a===0&&ba(e,t,n))}function ba(r,t,e){return t.x<=Math.max(r.x,e.x)&&t.x>=Math.min(r.x,e.x)&&t.y<=Math.max(r.y,e.y)&&t.y>=Math.min(r.y,e.y)}function Ta(r){return r>0?1:r<0?-1:0}function hE(r,t){let e=r;do{if(e.i!==r.i&&e.next.i!==r.i&&e.i!==t.i&&e.next.i!==t.i&&Mp(e,e.next,r,t))return!0;e=e.next}while(e!==r);return!1}function Ps(r,t){return de(r.prev,r,r.next)<0?de(r,t,r.next)>=0&&de(r,r.prev,t)>=0:de(r,t,r.prev)<0||de(r,r.next,t)<0}function uE(r,t){let e=r,n=!1;const i=(r.x+t.x)/2,s=(r.y+t.y)/2;do e.y>s!=e.next.y>s&&e.next.y!==e.y&&i<(e.next.x-e.x)*(s-e.y)/(e.next.y-e.y)+e.x&&(n=!n),e=e.next;while(e!==r);return n}function Sp(r,t){const e=new jl(r.i,r.x,r.y),n=new jl(t.i,t.x,t.y),i=r.next,s=t.prev;return r.next=t,t.prev=r,e.next=i,i.prev=e,n.next=e,e.prev=n,s.next=n,n.prev=s,n}function df(r,t,e,n){const i=new jl(r,t,e);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ls(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function jl(r,t,e){this.i=r,this.x=t,this.y=e,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function fE(r,t,e,n){let i=0;for(let s=t,o=e-n;s2&&r[t-1].equals(r[0])&&r.pop()}function mf(r,t){for(let e=0;eNumber.EPSILON){const tt=Math.sqrt(rt),yt=Math.sqrt(M*M+B*B),ft=ct.x-T/tt,gt=ct.y+pt/tt,Pt=j.x-B/yt,Ft=j.y+M/yt,nt=((Pt-ft)*B-(Ft-gt)*M)/(pt*B-T*M);ot=ft+pt*nt-L.x,K=gt+T*nt-L.y;const Zt=ot*ot+K*K;if(Zt<=2)return new it(ot,K);bt=Math.sqrt(Zt/2)}else{let tt=!1;pt>Number.EPSILON?M>Number.EPSILON&&(tt=!0):pt<-Number.EPSILON?M<-Number.EPSILON&&(tt=!0):Math.sign(T)===Math.sign(B)&&(tt=!0),tt?(ot=-T,K=pt,bt=Math.sqrt(rt)):(ot=pt,K=T,bt=Math.sqrt(rt/2))}return new it(ot/bt,K/bt)}const $=[];for(let L=0,ct=I.length,j=ct-1,ot=L+1;L=0;L--){const ct=L/p,j=d*Math.cos(ct*Math.PI/2),ot=_*Math.sin(ct*Math.PI/2)+g;for(let K=0,bt=I.length;K=0;){const ot=j;let K=j-1;K<0&&(K=L.length-1);for(let bt=0,pt=h+p*2;bt0!=t>0&&this.version++,this._anisotropy=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get sheen(){return this._sheen}set sheen(t){this._sheen>0!=t>0&&this.version++,this._sheen=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=t.anisotropy,this.anisotropyRotation=t.anisotropyRotation,this.anisotropyMap=t.anisotropyMap,this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}class gE extends Jn{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Nt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Sc,this.normalScale=new it(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=yc,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}function wa(r,t,e){return!r||!e&&r.constructor===t?r:typeof t.BYTES_PER_ELEMENT=="number"?new t(r):Array.prototype.slice.call(r)}function vE(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function xE(r){function t(i,s){return r[i]-r[s]}const e=r.length,n=new Array(e);for(let i=0;i!==e;++i)n[i]=i;return n.sort(t),n}function gf(r,t,e){const n=r.length,i=new r.constructor(n);for(let s=0,o=0;o!==n;++s){const a=e[s]*t;for(let l=0;l!==t;++l)i[o++]=r[a+l]}return i}function Tp(r,t,e,n){let i=1,s=r[0];for(;s!==void 0&&s[n]===void 0;)s=r[i++];if(s===void 0)return;let o=s[n];if(o!==void 0)if(Array.isArray(o))do o=s[n],o!==void 0&&(t.push(s.time),e.push.apply(e,o)),s=r[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[n],o!==void 0&&(t.push(s.time),o.toArray(e,e.length)),s=r[i++];while(s!==void 0);else do o=s[n],o!==void 0&&(t.push(s.time),e.push(o)),s=r[i++];while(s!==void 0)}class uo{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],s=e[n-1];n:{t:{let o;e:{i:if(!(t=s)){const a=e[1];t=s)break t}o=n,n=0;break e}break n}for(;n>>1;te;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=n.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let a=0;a!==s;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),t=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),t=!1;break}o=l}if(i!==void 0&&vE(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),t=!1;break}}return t}optimize(){const t=this.times.slice(),e=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===Ho,s=t.length-1;let o=1;for(let a=1;a0){t[o]=t[s];for(let a=s*n,l=o*n,c=0;c!==n;++c)e[l+c]=e[a+c];++o}return o!==t.length?(this.times=t.slice(0,o),this.values=e.slice(0,o*n)):(this.times=t,this.values=e),this}clone(){const t=this.times.slice(),e=this.values.slice(),n=this.constructor,i=new n(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}Nn.prototype.TimeBufferType=Float32Array;Nn.prototype.ValueBufferType=Float32Array;Nn.prototype.DefaultInterpolation=Ya;class Xr extends Nn{}Xr.prototype.ValueTypeName="bool";Xr.prototype.ValueBufferType=Array;Xr.prototype.DefaultInterpolation=qa;Xr.prototype.InterpolantFactoryMethodLinear=void 0;Xr.prototype.InterpolantFactoryMethodSmooth=void 0;class wp extends Nn{}wp.prototype.ValueTypeName="color";class eo extends Nn{}eo.prototype.ValueTypeName="number";class EE extends uo{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(n-e)/(i-e);let c=t*a;for(let h=c+a;c!==h;c+=4)Si.slerpFlat(s,0,o,c-a,o,c,l);return s}}class Fs extends Nn{InterpolantFactoryMethodLinear(t){return new EE(this.times,this.values,this.getValueSize(),t)}}Fs.prototype.ValueTypeName="quaternion";Fs.prototype.DefaultInterpolation=Ya;Fs.prototype.InterpolantFactoryMethodSmooth=void 0;class qr extends Nn{}qr.prototype.ValueTypeName="string";qr.prototype.ValueBufferType=Array;qr.prototype.DefaultInterpolation=qa;qr.prototype.InterpolantFactoryMethodLinear=void 0;qr.prototype.InterpolantFactoryMethodSmooth=void 0;class no extends Nn{}no.prototype.ValueTypeName="vector";class Mb{constructor(t,e=-1,n,i=jg){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=gn(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let o=0,a=n.length;o!==a;++o)e.push(TE(n[o]).scale(i));const s=new this(t.name,t.duration,e,t.blendMode);return s.uuid=t.uuid,s}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let s=0,o=n.length;s!==o;++s)e.push(Nn.toJSON(n[s]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const s=e.length,o=[];for(let a=0;a1){const u=h[1];let f=i[u];f||(i[u]=f=[]),f.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(u,f,d,_,g){if(d.length!==0){const p=[],m=[];Tp(d,p,m,_),p.length!==0&&g.push(new u(f,p,m))}},i=[],s=t.name||"default",o=t.fps||30,a=t.blendMode;let l=t.length||-1;const c=t.hierarchy||[];for(let u=0;u{e&&e(s),this.manager.itemEnd(t)},0),s;if(Hn[t]!==void 0){Hn[t].push({onLoad:e,onProgress:n,onError:i});return}Hn[t]=[],Hn[t].push({onLoad:e,onProgress:n,onError:i});const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream=="undefined"||c.body===void 0||c.body.getReader===void 0)return c;const h=Hn[t],u=c.body.getReader(),f=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),d=f?parseInt(f):0,_=d!==0;let g=0;const p=new ReadableStream({start(m){y();function y(){u.read().then(({done:v,value:S})=>{if(v)m.close();else{g+=S.byteLength;const A=new ProgressEvent("progress",{lengthComputable:_,loaded:g,total:d});for(let R=0,b=h.length;R{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(h=>new DOMParser().parseFromString(h,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),f=u&&u[1]?u[1].toLowerCase():void 0,d=new TextDecoder(f);return c.arrayBuffer().then(_=>d.decode(_))}}}).then(c=>{ui.add(t,c);const h=Hn[t];delete Hn[t];for(let u=0,f=h.length;u{const h=Hn[t];if(h===void 0)throw this.manager.itemError(t),c;delete Hn[t];for(let u=0,f=h.length;u{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class CE extends Bs{constructor(t){super(t)}load(t,e,n,i){this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);const s=this,o=ui.get(t);if(o!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(o),s.manager.itemEnd(t)},0),o;const a=Rs("img");function l(){h(),ui.add(t,this),e&&e(this),s.manager.itemEnd(t)}function c(u){h(),i&&i(u),s.manager.itemError(t),s.manager.itemEnd(t)}function h(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),t.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(t),a.src=t,a}}class PE extends Bs{constructor(t){super(t)}load(t,e,n,i){const s=new Ie,o=new CE(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,function(a){s.image=a,s.needsUpdate=!0,e!==void 0&&e(s)},n,i),s}}class fo extends _e{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Nt(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,this.groundColor!==void 0&&(e.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(e.object.distance=this.distance),this.angle!==void 0&&(e.object.angle=this.angle),this.decay!==void 0&&(e.object.decay=this.decay),this.penumbra!==void 0&&(e.object.penumbra=this.penumbra),this.shadow!==void 0&&(e.object.shadow=this.shadow.toJSON()),e}}const xl=new $t,vf=new D,xf=new D;class Ic{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new it(512,512),this.map=null,this.mapPass=null,this.matrix=new $t,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ac,this._frameExtents=new it(1,1),this._viewportCount=1,this._viewports=[new se(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;vf.setFromMatrixPosition(t.matrixWorld),e.position.copy(vf),xf.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(xf),e.updateMatrixWorld(),xl.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(xl),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(xl)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return this.bias!==0&&(t.bias=this.bias),this.normalBias!==0&&(t.normalBias=this.normalBias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class LE extends Ic{constructor(){super(new Xe(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,n=Vr*2*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,s=t.distance||e.far;(n!==e.fov||i!==e.aspect||s!==e.far)&&(e.fov=n,e.aspect=i,e.far=s,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class Eb extends fo{constructor(t,e,n=0,i=Math.PI/3,s=0,o=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(_e.DEFAULT_UP),this.updateMatrix(),this.target=new _e,this.distance=n,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new LE}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const yf=new $t,ls=new D,yl=new D;class DE extends Ic{constructor(){super(new Xe(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new it(4,2),this._viewportCount=6,this._viewports=[new se(2,1,1,1),new se(0,1,1,1),new se(3,1,1,1),new se(1,1,1,1),new se(3,0,1,1),new se(1,0,1,1)],this._cubeDirections=[new D(1,0,0),new D(-1,0,0),new D(0,0,1),new D(0,0,-1),new D(0,1,0),new D(0,-1,0)],this._cubeUps=[new D(0,1,0),new D(0,1,0),new D(0,1,0),new D(0,1,0),new D(0,0,1),new D(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,s=t.distance||n.far;s!==n.far&&(n.far=s,n.updateProjectionMatrix()),ls.setFromMatrixPosition(t.matrixWorld),n.position.copy(ls),yl.copy(n.position),yl.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(yl),n.updateMatrixWorld(),i.makeTranslation(-ls.x,-ls.y,-ls.z),yf.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(yf)}}class bb extends fo{constructor(t,e,n=0,i=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new DE}get power(){return this.intensity*4*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class IE extends Ic{constructor(){super(new ep(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class Mf extends fo{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(_e.DEFAULT_UP),this.updateMatrix(),this.target=new _e,this.shadow=new IE}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class UE extends fo{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class Tb{static decodeText(t){if(typeof TextDecoder!="undefined")return new TextDecoder().decode(t);let e="";for(let n=0,i=t.length;n{e&&e(c),s.manager.itemEnd(t)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){e&&e(o),s.manager.itemEnd(t)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(t,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(c){return ui.add(t,c),e&&e(c),s.manager.itemEnd(t),c}).catch(function(c){i&&i(c),ui.remove(t),s.manager.itemError(t),s.manager.itemEnd(t)});ui.add(t,l),s.manager.itemStart(t)}}class Rb{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Sf(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Sf();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Sf(){return(typeof performance=="undefined"?Date:performance).now()}const Uc="\\[\\]\\.:\\/",NE=new RegExp("["+Uc+"]","g"),Nc="[^"+Uc+"]",OE="[^"+Uc.replace("\\.","")+"]",FE=/((?:WC+[\/:])*)/.source.replace("WC",Nc),BE=/(WCOD+)?/.source.replace("WCOD",OE),zE=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Nc),kE=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Nc),VE=new RegExp("^"+FE+BE+zE+kE+"$"),HE=["material","materials","bones","map"];class GE{constructor(t,e,n){const i=n||te.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=n.length;i!==s;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}class te{constructor(t,e,n){this.path=e,this.parsedPath=n||te.parseTrackName(e),this.node=te.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new te.Composite(t,e,n):new te(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(NE,"")}static parseTrackName(t){const e=VE.exec(t);if(e===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=n.nodeName.substring(i+1);HE.indexOf(s)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=s)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(e===void 0||e===""||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(n!==void 0)return n}if(t.children){const n=function(s){for(let o=0;o{r instanceof Array?r.forEach(Ap):(r.map&&r.map.dispose(),r.dispose())},Rp=r=>{r.geometry&&r.geometry.dispose(),r.material&&Ap(r.material),r.texture&&r.texture.dispose(),r.children&&r.children.forEach(Rp)},XE=r=>{if(r&&r.children)for(;r.children.length;){const t=r.children[0];r.remove(t),Rp(t)}};var Oc={exports:{}},qE=function(t,e,n,i){var s=t[0],o=t[1],a=!1;n===void 0&&(n=0),i===void 0&&(i=e.length);for(var l=(i-n)/2,c=0,h=l-1;co!=_>o&&s<(d-u)*(o-f)/(_-f)+u;g&&(a=!a)}return a},YE=function(t,e,n,i){var s=t[0],o=t[1],a=!1;n===void 0&&(n=0),i===void 0&&(i=e.length);for(var l=i-n,c=0,h=l-1;co!=_>o&&s<(d-u)*(o-f)/(_-f)+u;g&&(a=!a)}return a},Cp=qE,Pp=YE;Oc.exports=function(t,e,n,i){return e.length>0&&Array.isArray(e[0])?Pp(t,e,n,i):Cp(t,e,n,i)};Oc.exports.nested=Pp;Oc.exports.flat=Cp;const wf={type:"change"},Ml={type:"start"},Af={type:"end"},Ra=new Gr,Rf=new ai,$E=Math.cos(70*y0.DEG2RAD);class jE extends Ki{constructor(t,e){super(),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new D,this.cursor=new D,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Qi.ROTATE,MIDDLE:Qi.DOLLY,RIGHT:Qi.PAN},this.touches={ONE:tr.ROTATE,TWO:tr.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(P){P.addEventListener("keydown",Pt),this._domElementKeyEvents=P},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",Pt),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(wf),n.update(),s=i.NONE},this.update=function(){const P=new D,lt=new Si().setFromUnitVectors(t.up,new D(0,1,0)),dt=lt.clone().invert(),Ct=new D,C=new Si,at=new D,st=2*Math.PI;return function(Lt=null){const Kt=n.object.position;P.copy(Kt).sub(n.target),P.applyQuaternion(lt),a.setFromVector3(P),n.autoRotate&&s===i.NONE&&k(x(Lt)),n.enableDamping?(a.theta+=l.theta*n.dampingFactor,a.phi+=l.phi*n.dampingFactor):(a.theta+=l.theta,a.phi+=l.phi);let Yt=n.minAzimuthAngle,ne=n.maxAzimuthAngle;isFinite(Yt)&&isFinite(ne)&&(Yt<-Math.PI?Yt+=st:Yt>Math.PI&&(Yt-=st),ne<-Math.PI?ne+=st:ne>Math.PI&&(ne-=st),Yt<=ne?a.theta=Math.max(Yt,Math.min(ne,a.theta)):a.theta=a.theta>(Yt+ne)/2?Math.max(Yt,a.theta):Math.min(ne,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),n.enableDamping===!0?n.target.addScaledVector(h,n.dampingFactor):n.target.add(h),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor),n.zoomToCursor&&R||n.object.isOrthographicCamera?a.radius=Z(a.radius):a.radius=Z(a.radius*c),P.setFromSpherical(a),P.applyQuaternion(dt),Kt.copy(n.target).add(P),n.object.lookAt(n.target),n.enableDamping===!0?(l.theta*=1-n.dampingFactor,l.phi*=1-n.dampingFactor,h.multiplyScalar(1-n.dampingFactor)):(l.set(0,0,0),h.set(0,0,0));let Ce=!1;if(n.zoomToCursor&&R){let Jt=null;if(n.object.isPerspectiveCamera){const ve=P.length();Jt=Z(ve*c);const ke=ve-Jt;n.object.position.addScaledVector(S,ke),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){const ve=new D(A.x,A.y,0);ve.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix(),Ce=!0;const ke=new D(A.x,A.y,0);ke.unproject(n.object),n.object.position.sub(ke).add(ve),n.object.updateMatrixWorld(),Jt=P.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;Jt!==null&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(Jt).add(n.object.position):(Ra.origin.copy(n.object.position),Ra.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(Ra.direction))<$E?t.lookAt(n.target):(Rf.setFromNormalAndCoplanarPoint(n.object.up,n.target),Ra.intersectPlane(Rf,n.target))))}else n.object.isOrthographicCamera&&(Ce=c!==1,Ce&&(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix()));return c=1,R=!1,Ce||Ct.distanceToSquared(n.object.position)>o||8*(1-C.dot(n.object.quaternion))>o||at.distanceToSquared(n.target)>0?(n.dispatchEvent(wf),Ct.copy(n.object.position),C.copy(n.object.quaternion),at.copy(n.target),!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Zt),n.domElement.removeEventListener("pointerdown",T),n.domElement.removeEventListener("pointercancel",B),n.domElement.removeEventListener("wheel",tt),n.domElement.removeEventListener("pointermove",M),n.domElement.removeEventListener("pointerup",B),n._domElementKeyEvents!==null&&(n._domElementKeyEvents.removeEventListener("keydown",Pt),n._domElementKeyEvents=null)};const n=this,i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let s=i.NONE;const o=1e-6,a=new bf,l=new bf;let c=1;const h=new D,u=new it,f=new it,d=new it,_=new it,g=new it,p=new it,m=new it,y=new it,v=new it,S=new D,A=new it;let R=!1;const b=[],U={};let N=!1;function x(P){return P!==null?2*Math.PI/60*n.autoRotateSpeed*P:2*Math.PI/60/60*n.autoRotateSpeed}function E(P){const lt=Math.abs(P*.01);return Math.pow(.95,n.zoomSpeed*lt)}function k(P){l.theta-=P}function W(P){l.phi-=P}const I=function(){const P=new D;return function(dt,Ct){P.setFromMatrixColumn(Ct,0),P.multiplyScalar(-dt),h.add(P)}}(),F=function(){const P=new D;return function(dt,Ct){n.screenSpacePanning===!0?P.setFromMatrixColumn(Ct,1):(P.setFromMatrixColumn(Ct,0),P.crossVectors(n.object.up,P)),P.multiplyScalar(dt),h.add(P)}}(),O=function(){const P=new D;return function(dt,Ct){const C=n.domElement;if(n.object.isPerspectiveCamera){const at=n.object.position;P.copy(at).sub(n.target);let st=P.length();st*=Math.tan(n.object.fov/2*Math.PI/180),I(2*dt*st/C.clientHeight,n.object.matrix),F(2*Ct*st/C.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(I(dt*(n.object.right-n.object.left)/n.object.zoom/C.clientWidth,n.object.matrix),F(Ct*(n.object.top-n.object.bottom)/n.object.zoom/C.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function Y(P){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c/=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function q(P){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c*=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function $(P,lt){if(!n.zoomToCursor)return;R=!0;const dt=n.domElement.getBoundingClientRect(),Ct=P-dt.left,C=lt-dt.top,at=dt.width,st=dt.height;A.x=Ct/at*2-1,A.y=-(C/st)*2+1,S.set(A.x,A.y,1).unproject(n.object).sub(n.object.position).normalize()}function Z(P){return Math.max(n.minDistance,Math.min(n.maxDistance,P))}function J(P){u.set(P.clientX,P.clientY)}function ut(P){$(P.clientX,P.clientX),m.set(P.clientX,P.clientY)}function Et(P){_.set(P.clientX,P.clientY)}function V(P){f.set(P.clientX,P.clientY),d.subVectors(f,u).multiplyScalar(n.rotateSpeed);const lt=n.domElement;k(2*Math.PI*d.x/lt.clientHeight),W(2*Math.PI*d.y/lt.clientHeight),u.copy(f),n.update()}function Q(P){y.set(P.clientX,P.clientY),v.subVectors(y,m),v.y>0?Y(E(v.y)):v.y<0&&q(E(v.y)),m.copy(y),n.update()}function _t(P){g.set(P.clientX,P.clientY),p.subVectors(g,_).multiplyScalar(n.panSpeed),O(p.x,p.y),_.copy(g),n.update()}function Mt(P){$(P.clientX,P.clientY),P.deltaY<0?q(E(P.deltaY)):P.deltaY>0&&Y(E(P.deltaY)),n.update()}function Tt(P){let lt=!1;switch(P.code){case n.keys.UP:P.ctrlKey||P.metaKey||P.shiftKey?W(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,n.keyPanSpeed),lt=!0;break;case n.keys.BOTTOM:P.ctrlKey||P.metaKey||P.shiftKey?W(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,-n.keyPanSpeed),lt=!0;break;case n.keys.LEFT:P.ctrlKey||P.metaKey||P.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(n.keyPanSpeed,0),lt=!0;break;case n.keys.RIGHT:P.ctrlKey||P.metaKey||P.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(-n.keyPanSpeed,0),lt=!0;break}lt&&(P.preventDefault(),n.update())}function xt(P){if(b.length===1)u.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);u.set(dt,Ct)}}function Ot(P){if(b.length===1)_.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);_.set(dt,Ct)}}function At(P){const lt=mt(P),dt=P.pageX-lt.x,Ct=P.pageY-lt.y,C=Math.sqrt(dt*dt+Ct*Ct);m.set(0,C)}function L(P){n.enableZoom&&At(P),n.enablePan&&Ot(P)}function ct(P){n.enableZoom&&At(P),n.enableRotate&&xt(P)}function j(P){if(b.length==1)f.set(P.pageX,P.pageY);else{const dt=mt(P),Ct=.5*(P.pageX+dt.x),C=.5*(P.pageY+dt.y);f.set(Ct,C)}d.subVectors(f,u).multiplyScalar(n.rotateSpeed);const lt=n.domElement;k(2*Math.PI*d.x/lt.clientHeight),W(2*Math.PI*d.y/lt.clientHeight),u.copy(f)}function ot(P){if(b.length===1)g.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);g.set(dt,Ct)}p.subVectors(g,_).multiplyScalar(n.panSpeed),O(p.x,p.y),_.copy(g)}function K(P){const lt=mt(P),dt=P.pageX-lt.x,Ct=P.pageY-lt.y,C=Math.sqrt(dt*dt+Ct*Ct);y.set(0,C),v.set(0,Math.pow(y.y/m.y,n.zoomSpeed)),Y(v.y),m.copy(y);const at=(P.pageX+lt.x)*.5,st=(P.pageY+lt.y)*.5;$(at,st)}function bt(P){n.enableZoom&&K(P),n.enablePan&&ot(P)}function pt(P){n.enableZoom&&K(P),n.enableRotate&&j(P)}function T(P){n.enabled!==!1&&(b.length===0&&(n.domElement.setPointerCapture(P.pointerId),n.domElement.addEventListener("pointermove",M),n.domElement.addEventListener("pointerup",B)),Gt(P),P.pointerType==="touch"?Ft(P):rt(P))}function M(P){n.enabled!==!1&&(P.pointerType==="touch"?nt(P):et(P))}function B(P){switch(It(P),b.length){case 0:n.domElement.releasePointerCapture(P.pointerId),n.domElement.removeEventListener("pointermove",M),n.domElement.removeEventListener("pointerup",B),n.dispatchEvent(Af),s=i.NONE;break;case 1:const lt=b[0],dt=U[lt];Ft({pointerId:lt,pageX:dt.x,pageY:dt.y});break}}function rt(P){let lt;switch(P.button){case 0:lt=n.mouseButtons.LEFT;break;case 1:lt=n.mouseButtons.MIDDLE;break;case 2:lt=n.mouseButtons.RIGHT;break;default:lt=-1}switch(lt){case Qi.DOLLY:if(n.enableZoom===!1)return;ut(P),s=i.DOLLY;break;case Qi.ROTATE:if(P.ctrlKey||P.metaKey||P.shiftKey){if(n.enablePan===!1)return;Et(P),s=i.PAN}else{if(n.enableRotate===!1)return;J(P),s=i.ROTATE}break;case Qi.PAN:if(P.ctrlKey||P.metaKey||P.shiftKey){if(n.enableRotate===!1)return;J(P),s=i.ROTATE}else{if(n.enablePan===!1)return;Et(P),s=i.PAN}break;default:s=i.NONE}s!==i.NONE&&n.dispatchEvent(Ml)}function et(P){switch(s){case i.ROTATE:if(n.enableRotate===!1)return;V(P);break;case i.DOLLY:if(n.enableZoom===!1)return;Q(P);break;case i.PAN:if(n.enablePan===!1)return;_t(P);break}}function tt(P){n.enabled===!1||n.enableZoom===!1||s!==i.NONE||(P.preventDefault(),n.dispatchEvent(Ml),Mt(yt(P)),n.dispatchEvent(Af))}function yt(P){const lt=P.deltaMode,dt={clientX:P.clientX,clientY:P.clientY,deltaY:P.deltaY};switch(lt){case 1:dt.deltaY*=16;break;case 2:dt.deltaY*=100;break}return P.ctrlKey&&!N&&(dt.deltaY*=10),dt}function ft(P){P.key==="Control"&&(N=!0,n.domElement.getRootNode().addEventListener("keyup",gt,{passive:!0,capture:!0}))}function gt(P){P.key==="Control"&&(N=!1,n.domElement.getRootNode().removeEventListener("keyup",gt,{passive:!0,capture:!0}))}function Pt(P){n.enabled===!1||n.enablePan===!1||Tt(P)}function Ft(P){switch(Rt(P),b.length){case 1:switch(n.touches.ONE){case tr.ROTATE:if(n.enableRotate===!1)return;xt(P),s=i.TOUCH_ROTATE;break;case tr.PAN:if(n.enablePan===!1)return;Ot(P),s=i.TOUCH_PAN;break;default:s=i.NONE}break;case 2:switch(n.touches.TWO){case tr.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;L(P),s=i.TOUCH_DOLLY_PAN;break;case tr.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;ct(P),s=i.TOUCH_DOLLY_ROTATE;break;default:s=i.NONE}break;default:s=i.NONE}s!==i.NONE&&n.dispatchEvent(Ml)}function nt(P){switch(Rt(P),s){case i.TOUCH_ROTATE:if(n.enableRotate===!1)return;j(P),n.update();break;case i.TOUCH_PAN:if(n.enablePan===!1)return;ot(P),n.update();break;case i.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;bt(P),n.update();break;case i.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;pt(P),n.update();break;default:s=i.NONE}}function Zt(P){n.enabled!==!1&&P.preventDefault()}function Gt(P){b.push(P.pointerId)}function It(P){delete U[P.pointerId];for(let lt=0;lt[]},colors:{type:Array,default:()=>[2161326,15380744,3122407,65535,16536624]},opacity:{type:Number,default:.5},delay:{type:Number,default:5e3},loopComplete:{type:Function,default:()=>{}}},computed:{currentData(){return $r(ae({},this.data[this.activeIndex]),{count:this.count})}},data(){return this.scene=null,this.camera=null,this.renderer=null,this.controls=null,this.axes=null,this.pieGroup=new us,this.planeTweens=[],this.resizeHandler=null,this.visibilityObserver=null,this.isVisible=!0,this.isDestroyed=!1,this.isLooping=!1,{width:300,height:200,activeIndex:0,count:0,timer:null}},mounted(){this.isVisible=this.isElementVisible(this.$el),this.updateSize(),this.count=this.data.map(r=>Number(r.value)||0).reduce((r,t)=>r+t,0),this.init(),this.setupVisibilityObserver(),this.resizeHandler=()=>this.resize(),window.addEventListener("resize",this.resizeHandler)},beforeUnmount(){this.destroy()},methods:{init(){this.scene=new PS,this.initCamera(),this.initRenderer(),this.initLight(),this.initAxes(),this.initControls(),this.createPlane({url:ZE,width:5,position:new D(0,0,-.01),color:"#00ffff"}),this.createPlane({url:KE,width:6.5,position:new D(0,0,-.02),color:"#00ffff"}),this.createPlane({url:JE,width:5.5,position:new D(0,0,-.03),animate:!0,color:"#00ffff"}),this.createPie(),this.isVisible&&this.start()},createPlane(r){let t={url:"texture/ring1.png",width:5.5,z:0,position:new D(0,0,0),animate:!1,color:null},e=Object.assign(t,r);const n=new Os(e.width,e.width),i=new wc({map:this.getTexture(e.url),transparent:!0,side:En,depthTest:!1});e.color&&(i.color=new Nt(e.color));const s=new qe(n,i);if(s.position.copy(e.position),s.rotation.x=-1*Math.PI/2,e.animate){const o=si.to(s.rotation,{z:2*Math.PI,repeat:-1,ease:"none",duration:3});this.planeTweens.push(o)}this.scene.add(s)},getTexture(r){const t=new PE().load(r);return t.wrapS=t.wrapT=Xa,t},createPie(){if(!this.data.length||this.count<=0)return;let r=0,t=0;for(var e=0;e=this.data.length&&(r=0,this.loopComplete&&this.loopComplete()),this.chooseRing(r)},chooseRing(r=0,t=!1){if(!this.pieGroup.children.length)return;let e=r-1<0?this.data.length-1:r-1,n=this.pieGroup.children[e];this.prevMesh=n,this.activeIndex=r;let i=this.pieGroup.children[r];i&&(t||n&&(si.to(n.scale,{z:1}),si.to(n.material,{opacity:this.opacity})),si.to(i.scale,{z:2}),si.to(i.material,{opacity:.8}))},addRing(r={}){let t={innerRadius:1.5,outerRadius:2,thickness:.5,startAngle:0,endAngle:Math.PI/2,color:65535,segments:120},e=Object.assign(t,r),n=new xs;n.arc(0,0,e.outerRadius,e.startAngle,e.endAngle);let i=n.getPoints(e.segments),s=new xs;s.arc(0,0,e.innerRadius,e.endAngle,e.startAngle,!0);let o=s.getPoints(e.segments),a=new xs(i.concat(o));const l={steps:1,depth:e.thickness,bevelEnabled:!0,bevelThickness:0,bevelSize:0,bevelOffset:0,bevelSegments:0},c=new Dc(a,l);let h=new gE({color:e.color,transparent:!0,opacity:this.opacity,side:En});const u=new qe(c,h.clone());return u.renderOrder=10,u.rotation.x=-1*Math.PI/2,u},initCamera(){var r=this.width/this.height;this.camera=new Xe(30,r,.1,1500),this.camera.position.set(6.023813305272227,4.838542633695233,6.111272698256137),this.camera.lookAt(0,0,0)},initRenderer(){this.renderer=new lp({antialias:!0,alpha:!0}),this.renderer.setPixelRatio(this.getPixelRatio()),this.renderer.setSize(this.width,this.height),this.$refs.pieDom.appendChild(this.renderer.domElement)},initLight(){let r=new Mf(16777215,2);r.position.set(200,300,200);let t=new Mf(16777215,2);t.position.set(-200,-300,-200);let e=new UE(16777215,2);this.scene.add(r),this.scene.add(t),this.scene.add(e)},initAxes(){this.axes=new WE(0),this.scene.add(this.axes)},initControls(){this.controls=new jE(this.camera,this.renderer.domElement),this.controls.maxPolarAngle=Math.PI,this.controls.autoRotate=!1,this.controls.enableDamping=!0,this.controls.enabled=!1},loop(){!this.renderer||this.isLooping||(this.isLooping=!0,this.renderer.setAnimationLoop(()=>{this.renderer.render(this.scene,this.camera),this.controls&&this.controls.update()}))},start(){this.isDestroyed||!this.renderer||!this.data.length||(this.isVisible=!0,this.loop(),this.planeTweens.forEach(r=>{var t;return(t=r==null?void 0:r.resume)==null?void 0:t.call(r)}),this.controls&&(this.controls.enabled=!0),this.startTimer())},startTimer(){this.stopTimer(),!(this.data.length<2)&&(this.timer=window.setInterval(()=>{this.loopChange()},this.delay))},stop(){this.stopTimer(),this.controls&&(this.controls.enabled=!1),this.renderer&&this.renderer.setAnimationLoop(null),this.planeTweens.forEach(r=>{var t;return(t=r==null?void 0:r.pause)==null?void 0:t.call(r)}),this.isLooping=!1},stopTimer(){this.timer&&(window.clearInterval(this.timer),this.timer=null)},setupVisibilityObserver(){const r=this.$el;!r||typeof window.IntersectionObserver!="function"||(this.visibilityObserver=new IntersectionObserver(t=>{const e=t[0],n=!!(e!=null&&e.isIntersecting)&&this.isElementVisible(r);n!==this.isVisible&&(this.isVisible=n,n?(this.resize(),this.start()):this.stop())}),this.visibilityObserver.observe(r),this.isVisible=this.isElementVisible(r),this.isVisible||this.stop())},isElementVisible(r){if(!r||typeof window.getComputedStyle!="function")return!0;let t=r;for(;t&&t!==document.body;){const n=window.getComputedStyle(t);if(n.display==="none"||n.visibility==="hidden"||Number(n.opacity)===0)return!1;t=t.parentElement}const e=r.getBoundingClientRect();return e.width>0&&e.height>0},getPixelRatio(){return Math.min(window.devicePixelRatio||1,1.5)},updateSize(){var t,e;const r=this.$refs.pieDom;this.width=(r==null?void 0:r.offsetWidth)||((t=this.$el)==null?void 0:t.offsetWidth)||300,this.height=(r==null?void 0:r.offsetHeight)||((e=this.$el)==null?void 0:e.offsetHeight)||200},getScene(){return this.scene},getRender(){return this.renderer},resize(){if(!this.camera||!this.renderer)return;this.updateSize();let r=this.width/this.height;this.camera.aspect=r,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.renderer.setPixelRatio(this.getPixelRatio())},destroy(){var r,t,e,n;this.isDestroyed=!0,this.prevMesh&&(si.set(this.prevMesh.scale,{z:1}),si.set(this.prevMesh.material,{opacity:this.opacity})),this.stop(),(t=(r=this.visibilityObserver)==null?void 0:r.disconnect)==null||t.call(r),this.visibilityObserver=null,this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.renderer&&(this.planeTweens.forEach(i=>{var s;return(s=i==null?void 0:i.kill)==null?void 0:s.call(i)}),this.planeTweens=[],XE(this.pieGroup),this.renderer.dispose(),this.renderer.forceContextLoss(),(n=(e=this.controls)==null?void 0:e.dispose)==null||n.call(e),this.$refs.pieDom&&(this.$refs.pieDom.innerHTML=""),this.scene=null,this.camera=null,this.renderer=null,this.controls=null,this.axes=null)}}},tb={class:"three-pie-wrap"},eb={class:"three-pie",ref:"pieDom"},nb={class:"three-pie-slot"};function ib(r,t,e,n,i,s){return Ca(),Pa("div",tb,[Bt("div",eb,null,512),Bt("div",nb,[Lf(r.$slots,"default",{data:s.currentData})])])}const Ib=Zp(QE,[["render",ib]]),po="AlibabaPuHuiTi, Microsoft YaHei, Arial, sans-serif",xn=["#24f6c4","#32dcff","#ffe06b","#7ee269","#ff9a62","#9ea7ff"],Fc={color:"rgba(225, 249, 255, 0.78)",fontFamily:po,fontSize:10};function mo(r,t={}){return ae({trigger:"item",appendToBody:!0,confine:!1,backgroundColor:"rgba(5, 31, 51, 0.96)",borderColor:"rgba(0, 210, 255, 0.54)",borderWidth:1,padding:[7,10],textStyle:{color:"#e7fbff",fontFamily:po,fontSize:12,lineHeight:18},extraCssText:"box-shadow:0 0 18px rgba(0,210,255,.2);z-index:2147483647!important;pointer-events:none;",formatter:r},t)}function Bc(r={}){return ae({itemWidth:10,itemHeight:7,itemGap:8,textStyle:$r(ae({},Fc),{color:"rgba(222, 250, 255, 0.78)",fontSize:10})},r)}function Ds(r=[],t={}){return ae({type:"category",data:r,axisLabel:ae($r(ae({},Fc),{color:"rgba(223, 250, 255, 0.68)",interval:0,hideOverlap:!0,margin:8}),t.axisLabel||{}),axisLine:ae({lineStyle:{color:"rgba(48, 220, 255, 0.26)"}},t.axisLine||{}),axisTick:ae({show:!1},t.axisTick||{}),splitLine:ae({show:!1},t.splitLine||{})},Lp(t))}function Is(r={}){return ae({type:"value",axisLabel:ae($r(ae({},Fc),{color:"rgba(223, 250, 255, 0.56)"}),r.axisLabel||{}),axisLine:ae({show:!1},r.axisLine||{}),axisTick:ae({show:!1},r.axisTick||{}),splitLine:ae({lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},r.splitLine||{})},Lp(r))}function _o(r={}){return ae({left:42,right:28,top:30,bottom:24,containLabel:!1},r)}function go(r,t=`${r}12`){return new Df(0,0,0,1,[{offset:0,color:r},{offset:1,color:t}])}function rb(r,t=`${r}20`,e="#ffffff"){return new Df(0,0,1,0,[{offset:0,color:t},{offset:.68,color:r},{offset:1,color:e}])}function vo(r={}){var e,n,i;const t=ae({textStyle:ae({fontFamily:po,color:"rgba(225, 249, 255, 0.78)"},r.textStyle||{}),animation:(e=r.animation)!=null?e:!0,animationDuration:(n=r.animationDuration)!=null?n:900,animationDurationUpdate:(i=r.animationDurationUpdate)!=null?i:700,animationEasing:r.animationEasing||"cubicOut"},r);return Jl(t),t}function Ub({categories:r=[],rows:t=[],unit:e="",name:n="指标",orientation:i="vertical",colorIndex:s=0,grid:o={},showLabel:a=!0}={}){const l=xn[s%xn.length],c=i==="horizontal",h=t.map((u,f)=>({name:u.name||r[f],value:Number(u.value)||0,itemStyle:{borderRadius:c?[0,8,8,0]:[8,8,0,0],color:c?rb(u.color||l,"rgba(48, 220, 255, 0.14)",u.color||l):go(u.color||l)}}));return vo({color:xn,grid:_o(ae(c?{left:72,right:a?58:26,top:24,bottom:22}:{left:46,right:24,top:28,bottom:42},o)),tooltip:mo(u=>`${u.marker}${u.name}:${Kl(u.value)}${e}`),xAxis:c?Is():Ds(r,{axisLabel:{rotate:r.length>6?24:0}}),yAxis:c?Ds(r,{inverse:!0,axisLabel:{color:"rgba(225, 249, 255, 0.82)"}}):Is(),series:[{name:n,type:"bar",barWidth:c?12:r.length>7?14:20,data:h,label:{show:a,position:c?"right":"top",color:"#f7feff",fontSize:10,formatter:({value:u})=>Kl(u)}}]})}function Nb({categories:r=[],series:t=[],unit:e="",grid:n={}}={}){return vo({color:xn,grid:_o(ae({left:46,right:20,top:42,bottom:42},n)),tooltip:mo(i=>zc(i,e),{trigger:"axis",axisPointer:{type:"shadow"}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((i,s)=>({name:i.name,type:"bar",barWidth:10,data:i.values||[],itemStyle:{borderRadius:[6,6,0,0],color:go(xn[s%xn.length])}}))})}function Ob({categories:r=[],series:t=[],unit:e="",grid:n={}}={}){return vo({color:xn,grid:_o(ae({left:48,right:22,top:42,bottom:42},n)),tooltip:mo(i=>zc(i,e),{trigger:"axis",axisPointer:{type:"shadow"}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((i,s)=>({name:i.name,type:"bar",stack:"total",barWidth:18,data:i.values||[],itemStyle:{color:go(xn[s%xn.length])}}))})}function Fb({categories:r=[],series:t=[],unit:e="",area:n=!1,grid:i={}}={}){return vo({color:xn,grid:_o(ae({left:46,right:24,top:42,bottom:38},i)),tooltip:mo(s=>zc(s,e),{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(255, 224, 107, 0.54)"}}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((s,o)=>{const a=s.color||xn[o%xn.length];return{name:s.name,type:"line",smooth:!0,symbol:"circle",symbolSize:7,data:s.values||[],lineStyle:{width:3,color:a,shadowColor:`${a}55`,shadowBlur:10},itemStyle:{color:"#041522",borderColor:a,borderWidth:2},areaStyle:n?{color:go(a,`${a}08`)}:void 0}})})}function Kl(r){const t=Number(r);return Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString("zh-CN"):t.toLocaleString("zh-CN",{maximumFractionDigits:2}):"--"}function Lp(r={}){const o=r,{axisLabel:t,axisLine:e,axisTick:n,splitLine:i}=o;return jc(o,["axisLabel","axisLine","axisTick","splitLine"])}function zc(r,t=""){var s,o;const e=Array.isArray(r)?r:[r],n=((s=e[0])==null?void 0:s.axisValueLabel)||((o=e[0])==null?void 0:o.name)||"",i=e.map(a=>`${a.marker}${a.seriesName||a.name}:${Kl(a.value)}${t}`).join("
");return`${n}
${i}`}function Jl(r){if(!r||typeof r!="object")return;["textStyle","axisLabel","nameTextStyle","label","axisName"].forEach(e=>{!r[e]||typeof r[e]!="object"||(r[e]=sb(r[e]))}),Object.keys(r).forEach(e=>{const n=r[e];if(!(!n||typeof n!="object")&&!(e==="color"||e==="itemStyle"||e==="areaStyle"||e==="lineStyle")){if(Array.isArray(n)){n.forEach(Jl);return}Jl(n)}})}function sb(r){const t=ae({fontFamily:r.fontFamily||po},r);return typeof t.fontSize=="number"&&t.fontSize<10&&(t.fontSize=10),t}export{Oo as $,_b as A,Ue as B,Rb as C,Mf as D,gb as E,Sb as F,us as G,Xe as H,mb as I,y0 as J,ep as K,Bs as L,wc as M,fp as N,_e as O,bb as P,Mb as Q,Xa as R,Eb as S,hb as T,IS as U,it as V,Ya as W,ee as X,Si as Y,Pe as Z,Rh as _,fb as a,Is as a$,Jr as a0,bn as a1,Hl as a2,qa as a3,Mi as a4,Qa as a5,Ie as a6,no as a7,eo as a8,Fs as a9,zS as aA,bp as aB,Pb as aC,cp as aD,si as aE,UE as aF,gE as aG,db as aH,LS as aI,Ns as aJ,cg as aK,Oi as aL,vg as aM,dg as aN,Ib as aO,vo as aP,mo as aQ,cb as aR,lb as aS,Ub as aT,Nb as aU,Ob as aV,Fb as aW,xn as aX,Bc as aY,_o as aZ,Ds as a_,Ti as aa,Kn as ab,uo as ac,wE as ad,lp as ae,jE as af,PS as ag,WE as ah,Pr as ai,Db as aj,xs as ak,Ep as al,Os as am,Sh as an,vb as ao,Dc as ap,wb as aq,ge as ar,Cb as as,xb as at,Cn as au,z0 as av,ht as aw,Ei as ax,se as ay,Lb as az,ub as b,Kl as b0,go as b1,vn as c,Tb as d,Nt as e,Zn as f,Le as g,yb as h,$t as i,D as j,tf as k,PE as l,Ab as m,hp as n,We as o,zi as p,FS as q,Jn as r,Cc as s,_E as t,En as u,te as v,pb as w,qe as x,pp as y,dp as z};
+}`;class TS{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,e,n){if(this.texture===null){const i=new Ie,s=t.properties.get(i);s.__webglTexture=e.texture,(e.depthNear!=n.depthNear||e.depthFar!=n.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=i}}render(t,e){if(this.texture!==null){if(this.mesh===null){const n=e.cameras[0].viewport,i=new Ei({extensions:{fragDepth:!0},vertexShader:ES,fragmentShader:bS,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new qe(new Os(20,20),i)}t.render(this.mesh,e)}}reset(){this.texture=null,this.mesh=null}}class wS extends Ki{constructor(t,e){super();const n=this;let i=null,s=1,o=null,a="local-floor",l=1,c=null,h=null,u=null,f=null,d=null,_=null;const g=new TS,p=e.getContextAttributes();let m=null,y=null;const v=[],S=[],A=new it;let R=null;const b=new Xe;b.layers.enable(1),b.viewport=new se;const U=new Xe;U.layers.enable(2),U.viewport=new se;const N=[b,U],x=new MS;x.layers.enable(1),x.layers.enable(2);let E=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getTargetRaySpace()},this.getControllerGrip=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getGripSpace()},this.getHand=function(V){let Q=v[V];return Q===void 0&&(Q=new ul,v[V]=Q),Q.getHandSpace()};function W(V){const Q=S.indexOf(V.inputSource);if(Q===-1)return;const _t=v[Q];_t!==void 0&&(_t.update(V.inputSource,V.frame,c||o),_t.dispatchEvent({type:V.type,data:V.inputSource}))}function I(){i.removeEventListener("select",W),i.removeEventListener("selectstart",W),i.removeEventListener("selectend",W),i.removeEventListener("squeeze",W),i.removeEventListener("squeezestart",W),i.removeEventListener("squeezeend",W),i.removeEventListener("end",I),i.removeEventListener("inputsourceschange",F);for(let V=0;V=0&&(S[Mt]=null,v[Mt].disconnect(_t))}for(let Q=0;Q=S.length){S.push(_t),Mt=xt;break}else if(S[xt]===null){S[xt]=_t,Mt=xt;break}if(Mt===-1)break}const Tt=v[Mt];Tt&&Tt.connect(_t)}}const O=new D,Y=new D;function q(V,Q,_t){O.setFromMatrixPosition(Q.matrixWorld),Y.setFromMatrixPosition(_t.matrixWorld);const Mt=O.distanceTo(Y),Tt=Q.projectionMatrix.elements,xt=_t.projectionMatrix.elements,Ot=Tt[14]/(Tt[10]-1),At=Tt[14]/(Tt[10]+1),L=(Tt[9]+1)/Tt[5],ct=(Tt[9]-1)/Tt[5],j=(Tt[8]-1)/Tt[0],ot=(xt[8]+1)/xt[0],K=Ot*j,bt=Ot*ot,pt=Mt/(-j+ot),T=pt*-j;Q.matrixWorld.decompose(V.position,V.quaternion,V.scale),V.translateX(T),V.translateZ(pt),V.matrixWorld.compose(V.position,V.quaternion,V.scale),V.matrixWorldInverse.copy(V.matrixWorld).invert();const M=Ot+pt,B=At+pt,rt=K-T,et=bt+(Mt-T),tt=L*At/B*M,yt=ct*At/B*M;V.projectionMatrix.makePerspective(rt,et,tt,yt,M,B),V.projectionMatrixInverse.copy(V.projectionMatrix).invert()}function $(V,Q){Q===null?V.matrixWorld.copy(V.matrix):V.matrixWorld.multiplyMatrices(Q.matrixWorld,V.matrix),V.matrixWorldInverse.copy(V.matrixWorld).invert()}this.updateCamera=function(V){if(i===null)return;g.texture!==null&&(V.near=g.depthNear,V.far=g.depthFar),x.near=U.near=b.near=V.near,x.far=U.far=b.far=V.far,(E!==x.near||k!==x.far)&&(i.updateRenderState({depthNear:x.near,depthFar:x.far}),E=x.near,k=x.far,b.near=E,b.far=k,U.near=E,U.far=k,b.updateProjectionMatrix(),U.updateProjectionMatrix(),V.updateProjectionMatrix());const Q=V.parent,_t=x.cameras;$(x,Q);for(let Mt=0;Mt<_t.length;Mt++)$(_t[Mt],Q);_t.length===2?q(x,b,U):x.projectionMatrix.copy(b.projectionMatrix),Z(V,x,Q)};function Z(V,Q,_t){_t===null?V.matrix.copy(Q.matrixWorld):(V.matrix.copy(_t.matrixWorld),V.matrix.invert(),V.matrix.multiply(Q.matrixWorld)),V.matrix.decompose(V.position,V.quaternion,V.scale),V.updateMatrixWorld(!0),V.projectionMatrix.copy(Q.projectionMatrix),V.projectionMatrixInverse.copy(Q.projectionMatrixInverse),V.isPerspectiveCamera&&(V.fov=Vr*2*Math.atan(1/V.projectionMatrix.elements[5]),V.zoom=1)}this.getCamera=function(){return x},this.getFoveation=function(){if(!(f===null&&d===null))return l},this.setFoveation=function(V){l=V,f!==null&&(f.fixedFoveation=V),d!==null&&d.fixedFoveation!==void 0&&(d.fixedFoveation=V)},this.hasDepthSensing=function(){return g.texture!==null};let J=null;function ut(V,Q){if(h=Q.getViewerPose(c||o),_=Q,h!==null){const _t=h.views;d!==null&&(t.setRenderTargetFramebuffer(y,d.framebuffer),t.setRenderTarget(y));let Mt=!1;_t.length!==x.cameras.length&&(x.cameras.length=0,Mt=!0);for(let xt=0;xt<_t.length;xt++){const Ot=_t[xt];let At=null;if(d!==null)At=d.getViewport(Ot);else{const ct=u.getViewSubImage(f,Ot);At=ct.viewport,xt===0&&(t.setRenderTargetTextures(y,ct.colorTexture,f.ignoreDepthValues?void 0:ct.depthStencilTexture),t.setRenderTarget(y))}let L=N[xt];L===void 0&&(L=new Xe,L.layers.enable(xt),L.viewport=new se,N[xt]=L),L.matrix.fromArray(Ot.transform.matrix),L.matrix.decompose(L.position,L.quaternion,L.scale),L.projectionMatrix.fromArray(Ot.projectionMatrix),L.projectionMatrixInverse.copy(L.projectionMatrix).invert(),L.viewport.set(At.x,At.y,At.width,At.height),xt===0&&(x.matrix.copy(L.matrix),x.matrix.decompose(x.position,x.quaternion,x.scale)),Mt===!0&&x.cameras.push(L)}const Tt=i.enabledFeatures;if(Tt&&Tt.includes("depth-sensing")){const xt=u.getDepthInformation(_t[0]);xt&&xt.isValid&&xt.texture&&g.init(t,xt,i.renderState)}}for(let _t=0;_t0&&(p.alphaTest.value=m.alphaTest);const y=t.get(m).envMap;if(y&&(p.envMap.value=y,p.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap){p.lightMap.value=m.lightMap;const v=r._useLegacyLights===!0?Math.PI:1;p.lightMapIntensity.value=m.lightMapIntensity*v,e(m.lightMap,p.lightMapTransform)}m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity,e(m.aoMap,p.aoMapTransform))}function o(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,m.map&&(p.map.value=m.map,e(m.map,p.mapTransform))}function a(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function l(p,m,y,v){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*y,p.scale.value=v*.5,m.map&&(p.map.value=m.map,e(m.map,p.uvTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,e(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function c(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map,e(m.map,p.mapTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,e(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function h(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function u(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function f(p,m){p.metalness.value=m.metalness,m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap,e(m.metalnessMap,p.metalnessMapTransform)),p.roughness.value=m.roughness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap,e(m.roughnessMap,p.roughnessMapTransform)),t.get(m).envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function d(p,m,y){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap,e(m.sheenColorMap,p.sheenColorMapTransform)),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap,e(m.sheenRoughnessMap,p.sheenRoughnessMapTransform))),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap,e(m.clearcoatMap,p.clearcoatMapTransform)),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap,e(m.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),m.clearcoatNormalMap&&(p.clearcoatNormalMap.value=m.clearcoatNormalMap,e(m.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),m.side===Ke&&p.clearcoatNormalScale.value.negate())),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap,e(m.iridescenceMap,p.iridescenceMapTransform)),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap,e(m.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=y.texture,p.transmissionSamplerSize.value.set(y.width,y.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap,e(m.transmissionMap,p.transmissionMapTransform)),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap,e(m.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),m.anisotropy>0&&(p.anisotropyVector.value.set(m.anisotropy*Math.cos(m.anisotropyRotation),m.anisotropy*Math.sin(m.anisotropyRotation)),m.anisotropyMap&&(p.anisotropyMap.value=m.anisotropyMap,e(m.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap,e(m.specularColorMap,p.specularColorMapTransform)),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap,e(m.specularIntensityMap,p.specularIntensityMapTransform))}function _(p,m){m.matcap&&(p.matcap.value=m.matcap)}function g(p,m){const y=t.get(m).light;p.referencePosition.value.setFromMatrixPosition(y.matrixWorld),p.nearDistance.value=y.shadow.camera.near,p.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function RS(r,t,e,n){let i={},s={},o=[];const a=e.isWebGL2?r.getParameter(r.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;n.uniformBlockBinding(y,S)}function c(y,v){let S=i[y.id];S===void 0&&(_(y),S=h(y),i[y.id]=S,y.addEventListener("dispose",p));const A=v.program;n.updateUBOMapping(y,A);const R=t.render.frame;s[y.id]!==R&&(f(y),s[y.id]=R)}function h(y){const v=u();y.__bindingPointIndex=v;const S=r.createBuffer(),A=y.__size,R=y.usage;return r.bindBuffer(r.UNIFORM_BUFFER,S),r.bufferData(r.UNIFORM_BUFFER,A,R),r.bindBuffer(r.UNIFORM_BUFFER,null),r.bindBufferBase(r.UNIFORM_BUFFER,v,S),S}function u(){for(let y=0;y0&&(S+=A-R),y.__size=S,y.__cache={},this}function g(y){const v={boundary:0,storage:0};return typeof y=="number"||typeof y=="boolean"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function p(y){const v=y.target;v.removeEventListener("dispose",p);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),r.deleteBuffer(i[v.id]),delete i[v.id],delete s[v.id]}function m(){for(const y in i)r.deleteBuffer(i[y]);o=[],i={},s={}}return{bind:l,update:c,dispose:m}}class lp{constructor(t={}){const{canvas:e=M0(),context:n=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:u=!1}=t;this.isWebGLRenderer=!0;let f;n!==null?f=n.getContextAttributes().alpha:f=o;const d=new Uint32Array(4),_=new Int32Array(4);let g=null,p=null;const m=[],y=[];this.domElement=e,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Le,this._useLegacyLights=!1,this.toneMapping=mi,this.toneMappingExposure=1;const v=this;let S=!1,A=0,R=0,b=null,U=-1,N=null;const x=new se,E=new se;let k=null;const W=new Nt(0);let I=0,F=e.width,O=e.height,Y=1,q=null,$=null;const Z=new se(0,0,F,O),J=new se(0,0,F,O);let ut=!1;const Et=new Ac;let V=!1,Q=!1,_t=null;const Mt=new $t,Tt=new it,xt=new D,Ot={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function At(){return b===null?Y:1}let L=n;function ct(w,z){for(let G=0;G{function vt(){if(X.forEach(function(wt){pt.get(wt).currentProgram.isReady()&&X.delete(wt)}),X.size===0){H(w);return}setTimeout(vt,10)}j.get("KHR_parallel_shader_compile")!==null?vt():setTimeout(vt,10)})};let Yt=null;function ne(w){Yt&&Yt(w)}function Ce(){ve.stop()}function Jt(){ve.start()}const ve=new tp;ve.setAnimationLoop(ne),typeof self!="undefined"&&ve.setContext(self),this.setAnimationLoop=function(w){Yt=w,dt.setAnimationLoop(w),w===null?ve.stop():ve.start()},dt.addEventListener("sessionstart",Ce),dt.addEventListener("sessionend",Jt),this.render=function(w,z){if(z!==void 0&&z.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;w.matrixWorldAutoUpdate===!0&&w.updateMatrixWorld(),z.parent===null&&z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),dt.enabled===!0&&dt.isPresenting===!0&&(dt.cameraAutoUpdate===!0&&dt.updateCamera(z),z=dt.getCamera()),w.isScene===!0&&w.onBeforeRender(v,w,z,b),p=Pt.get(w,y.length),p.init(),y.push(p),Mt.multiplyMatrices(z.projectionMatrix,z.matrixWorldInverse),Et.setFromProjectionMatrix(Mt),Q=this.localClippingEnabled,V=Ft.init(this.clippingPlanes,Q),g=gt.get(w,m.length),g.init(),m.push(g),ke(w,z,0,v.sortObjects),g.finish(),v.sortObjects===!0&&g.sort(q,$),this.info.render.frame++,V===!0&&Ft.beginShadows();const G=p.state.shadowsArray;if(nt.render(G,w,z),V===!0&&Ft.endShadows(),this.info.autoReset===!0&&this.info.reset(),(dt.enabled===!1||dt.isPresenting===!1||dt.hasDepthSensing()===!1)&&Zt.render(g,w),p.setupLights(v._useLegacyLights),z.isArrayCamera){const X=z.cameras;for(let H=0,vt=X.length;H0?p=y[y.length-1]:p=null,m.pop(),m.length>0?g=m[m.length-1]:g=null};function ke(w,z,G,X){if(w.visible===!1)return;if(w.layers.test(z.layers)){if(w.isGroup)G=w.renderOrder;else if(w.isLOD)w.autoUpdate===!0&&w.update(z);else if(w.isLight)p.pushLight(w),w.castShadow&&p.pushShadow(w);else if(w.isSprite){if(!w.frustumCulled||Et.intersectsSprite(w)){X&&xt.setFromMatrixPosition(w.matrixWorld).applyMatrix4(Mt);const wt=tt.update(w),Dt=w.material;Dt.visible&&g.push(w,wt,Dt,G,xt.z,null)}}else if((w.isMesh||w.isLine||w.isPoints)&&(!w.frustumCulled||Et.intersectsObject(w))){const wt=tt.update(w),Dt=w.material;if(X&&(w.boundingSphere!==void 0?(w.boundingSphere===null&&w.computeBoundingSphere(),xt.copy(w.boundingSphere.center)):(wt.boundingSphere===null&&wt.computeBoundingSphere(),xt.copy(wt.boundingSphere.center)),xt.applyMatrix4(w.matrixWorld).applyMatrix4(Mt)),Array.isArray(Dt)){const Ut=wt.groups;for(let Wt=0,zt=Ut.length;Wt0&&Dp(H,vt,z,G),X&&K.viewport(x.copy(X)),H.length>0&&zs(H,z,G),vt.length>0&&zs(vt,z,G),wt.length>0&&zs(wt,z,G),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function Dp(w,z,G,X){if((G.isScene===!0?G.overrideMaterial:null)!==null)return;const vt=ot.isWebGL2;_t===null&&(_t=new $i(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")?As:_i,minFilter:zi,samples:vt?4:0})),v.getDrawingBufferSize(Tt),vt?_t.setSize(Tt.x,Tt.y):_t.setSize(Ja(Tt.x),Ja(Tt.y));const wt=v.getRenderTarget();v.setRenderTarget(_t),v.getClearColor(W),I=v.getClearAlpha(),I<1&&v.setClearColor(16777215,.5),v.clear();const Dt=v.toneMapping;v.toneMapping=mi,zs(w,G,X),T.updateMultisampleRenderTarget(_t),T.updateRenderTargetMipmap(_t);let Ut=!1;for(let Wt=0,zt=z.length;Wt0),Vt=!!G.morphAttributes.position,xe=!!G.morphAttributes.normal,Qe=!!G.morphAttributes.color;let we=mi;X.toneMapped&&(b===null||b.isXRRenderTarget===!0)&&(we=v.toneMapping);const On=G.morphAttributes.position||G.morphAttributes.normal||G.morphAttributes.color,ce=On!==void 0?On.length:0,Xt=pt.get(X),xo=p.state.lights;if(V===!0&&(Q===!0||w!==N)){const hn=w===N&&X.id===U;Ft.setState(X,w,hn)}let pe=!1;X.version===Xt.__version?(Xt.needsLights&&Xt.lightsStateVersion!==xo.state.version||Xt.outputColorSpace!==Dt||H.isBatchedMesh&&Xt.batching===!1||!H.isBatchedMesh&&Xt.batching===!0||H.isInstancedMesh&&Xt.instancing===!1||!H.isInstancedMesh&&Xt.instancing===!0||H.isSkinnedMesh&&Xt.skinning===!1||!H.isSkinnedMesh&&Xt.skinning===!0||H.isInstancedMesh&&Xt.instancingColor===!0&&H.instanceColor===null||H.isInstancedMesh&&Xt.instancingColor===!1&&H.instanceColor!==null||Xt.envMap!==Ut||X.fog===!0&&Xt.fog!==vt||Xt.numClippingPlanes!==void 0&&(Xt.numClippingPlanes!==Ft.numPlanes||Xt.numIntersection!==Ft.numIntersection)||Xt.vertexAlphas!==Wt||Xt.vertexTangents!==zt||Xt.morphTargets!==Vt||Xt.morphNormals!==xe||Xt.morphColors!==Qe||Xt.toneMapping!==we||ot.isWebGL2===!0&&Xt.morphTargetsCount!==ce)&&(pe=!0):(pe=!0,Xt.__version=X.version);let wi=Xt.currentProgram;pe===!0&&(wi=ks(X,z,H));let Wc=!1,Yr=!1,yo=!1;const Ne=wi.getUniforms(),Ai=Xt.uniforms;if(K.useProgram(wi.program)&&(Wc=!0,Yr=!0,yo=!0),X.id!==U&&(U=X.id,Yr=!0),Wc||N!==w){Ne.setValue(L,"projectionMatrix",w.projectionMatrix),Ne.setValue(L,"viewMatrix",w.matrixWorldInverse);const hn=Ne.map.cameraPosition;hn!==void 0&&hn.setValue(L,xt.setFromMatrixPosition(w.matrixWorld)),ot.logarithmicDepthBuffer&&Ne.setValue(L,"logDepthBufFC",2/(Math.log(w.far+1)/Math.LN2)),(X.isMeshPhongMaterial||X.isMeshToonMaterial||X.isMeshLambertMaterial||X.isMeshBasicMaterial||X.isMeshStandardMaterial||X.isShaderMaterial)&&Ne.setValue(L,"isOrthographic",w.isOrthographicCamera===!0),N!==w&&(N=w,Yr=!0,yo=!0)}if(H.isSkinnedMesh){Ne.setOptional(L,H,"bindMatrix"),Ne.setOptional(L,H,"bindMatrixInverse");const hn=H.skeleton;hn&&(ot.floatVertexTextures?(hn.boneTexture===null&&hn.computeBoneTexture(),Ne.setValue(L,"boneTexture",hn.boneTexture,T)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}H.isBatchedMesh&&(Ne.setOptional(L,H,"batchingTexture"),Ne.setValue(L,"batchingTexture",H._matricesTexture,T));const Mo=G.morphAttributes;if((Mo.position!==void 0||Mo.normal!==void 0||Mo.color!==void 0&&ot.isWebGL2===!0)&&Gt.update(H,G,wi),(Yr||Xt.receiveShadow!==H.receiveShadow)&&(Xt.receiveShadow=H.receiveShadow,Ne.setValue(L,"receiveShadow",H.receiveShadow)),X.isMeshGouraudMaterial&&X.envMap!==null&&(Ai.envMap.value=Ut,Ai.flipEnvMap.value=Ut.isCubeTexture&&Ut.isRenderTargetTexture===!1?-1:1),Yr&&(Ne.setValue(L,"toneMappingExposure",v.toneMappingExposure),Xt.needsLights&&Up(Ai,yo),vt&&X.fog===!0&&ft.refreshFogUniforms(Ai,vt),ft.refreshMaterialUniforms(Ai,X,Y,O,_t),Na.upload(L,Hc(Xt),Ai,T)),X.isShaderMaterial&&X.uniformsNeedUpdate===!0&&(Na.upload(L,Hc(Xt),Ai,T),X.uniformsNeedUpdate=!1),X.isSpriteMaterial&&Ne.setValue(L,"center",H.center),Ne.setValue(L,"modelViewMatrix",H.modelViewMatrix),Ne.setValue(L,"normalMatrix",H.normalMatrix),Ne.setValue(L,"modelMatrix",H.matrixWorld),X.isShaderMaterial||X.isRawShaderMaterial){const hn=X.uniformsGroups;for(let So=0,Op=hn.length;So0&&T.useMultisampledRTT(w)===!1?H=pt.get(w).__webglMultisampledFramebuffer:Array.isArray(zt)?H=zt[G]:H=zt,x.copy(w.viewport),E.copy(w.scissor),k=w.scissorTest}else x.copy(Z).multiplyScalar(Y).floor(),E.copy(J).multiplyScalar(Y).floor(),k=ut;if(K.bindFramebuffer(L.FRAMEBUFFER,H)&&ot.drawBuffers&&X&&K.drawBuffers(w,H),K.viewport(x),K.scissor(E),K.setScissorTest(k),vt){const Ut=pt.get(w.texture);L.framebufferTexture2D(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,L.TEXTURE_CUBE_MAP_POSITIVE_X+z,Ut.__webglTexture,G)}else if(wt){const Ut=pt.get(w.texture),Wt=z||0;L.framebufferTextureLayer(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,Ut.__webglTexture,G||0,Wt)}U=-1},this.readRenderTargetPixels=function(w,z,G,X,H,vt,wt){if(!(w&&w.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Dt=pt.get(w).__webglFramebuffer;if(w.isWebGLCubeRenderTarget&&wt!==void 0&&(Dt=Dt[wt]),Dt){K.bindFramebuffer(L.FRAMEBUFFER,Dt);try{const Ut=w.texture,Wt=Ut.format,zt=Ut.type;if(Wt!==dn&&mt.convert(Wt)!==L.getParameter(L.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Vt=zt===As&&(j.has("EXT_color_buffer_half_float")||ot.isWebGL2&&j.has("EXT_color_buffer_float"));if(zt!==_i&&mt.convert(zt)!==L.getParameter(L.IMPLEMENTATION_COLOR_READ_TYPE)&&!(zt===Ln&&(ot.isWebGL2||j.has("OES_texture_float")||j.has("WEBGL_color_buffer_float")))&&!Vt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}z>=0&&z<=w.width-X&&G>=0&&G<=w.height-H&&L.readPixels(z,G,X,H,mt.convert(Wt),mt.convert(zt),vt)}finally{const Ut=b!==null?pt.get(b).__webglFramebuffer:null;K.bindFramebuffer(L.FRAMEBUFFER,Ut)}}},this.copyFramebufferToTexture=function(w,z,G=0){const X=Math.pow(2,-G),H=Math.floor(z.image.width*X),vt=Math.floor(z.image.height*X);T.setTexture2D(z,0),L.copyTexSubImage2D(L.TEXTURE_2D,G,0,0,w.x,w.y,H,vt),K.unbindTexture()},this.copyTextureToTexture=function(w,z,G,X=0){const H=z.image.width,vt=z.image.height,wt=mt.convert(G.format),Dt=mt.convert(G.type);T.setTexture2D(G,0),L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,G.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,G.unpackAlignment),z.isDataTexture?L.texSubImage2D(L.TEXTURE_2D,X,w.x,w.y,H,vt,wt,Dt,z.image.data):z.isCompressedTexture?L.compressedTexSubImage2D(L.TEXTURE_2D,X,w.x,w.y,z.mipmaps[0].width,z.mipmaps[0].height,wt,z.mipmaps[0].data):L.texSubImage2D(L.TEXTURE_2D,X,w.x,w.y,wt,Dt,z.image),X===0&&G.generateMipmaps&&L.generateMipmap(L.TEXTURE_2D),K.unbindTexture()},this.copyTextureToTexture3D=function(w,z,G,X,H=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const vt=w.max.x-w.min.x+1,wt=w.max.y-w.min.y+1,Dt=w.max.z-w.min.z+1,Ut=mt.convert(X.format),Wt=mt.convert(X.type);let zt;if(X.isData3DTexture)T.setTexture3D(X,0),zt=L.TEXTURE_3D;else if(X.isDataArrayTexture||X.isCompressedArrayTexture)T.setTexture2DArray(X,0),zt=L.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,X.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,X.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,X.unpackAlignment);const Vt=L.getParameter(L.UNPACK_ROW_LENGTH),xe=L.getParameter(L.UNPACK_IMAGE_HEIGHT),Qe=L.getParameter(L.UNPACK_SKIP_PIXELS),we=L.getParameter(L.UNPACK_SKIP_ROWS),On=L.getParameter(L.UNPACK_SKIP_IMAGES),ce=G.isCompressedTexture?G.mipmaps[H]:G.image;L.pixelStorei(L.UNPACK_ROW_LENGTH,ce.width),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,ce.height),L.pixelStorei(L.UNPACK_SKIP_PIXELS,w.min.x),L.pixelStorei(L.UNPACK_SKIP_ROWS,w.min.y),L.pixelStorei(L.UNPACK_SKIP_IMAGES,w.min.z),G.isDataTexture||G.isData3DTexture?L.texSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,Wt,ce.data):G.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),L.compressedTexSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,ce.data)):L.texSubImage3D(zt,H,z.x,z.y,z.z,vt,wt,Dt,Ut,Wt,ce),L.pixelStorei(L.UNPACK_ROW_LENGTH,Vt),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,xe),L.pixelStorei(L.UNPACK_SKIP_PIXELS,Qe),L.pixelStorei(L.UNPACK_SKIP_ROWS,we),L.pixelStorei(L.UNPACK_SKIP_IMAGES,On),H===0&&X.generateMipmaps&&L.generateMipmap(zt),K.unbindTexture()},this.initTexture=function(w){w.isCubeTexture?T.setTextureCube(w,0):w.isData3DTexture?T.setTexture3D(w,0):w.isDataArrayTexture||w.isCompressedArrayTexture?T.setTexture2DArray(w,0):T.setTexture2D(w,0),K.unbindTexture()},this.resetState=function(){A=0,R=0,b=null,K.reset(),kt.reset()},typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Yn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(t){this._outputColorSpace=t;const e=this.getContext();e.drawingBufferColorSpace=t===Ec?"display-p3":"srgb",e.unpackColorSpace=ee.workingColorSpace===oo?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Le?qi:Hd}set outputEncoding(t){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=t===qi?Le:Zn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(t){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=t}}class CS extends lp{}CS.prototype.isWebGL1Renderer=!0;class cp{constructor(t,e=1,n=1e3){this.isFog=!0,this.name="",this.color=new Nt(t),this.near=e,this.far=n}clone(){return new cp(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class PS extends _e{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return this.fog!==null&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(e.object.backgroundIntensity=this.backgroundIntensity),e}}class hp{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.usage=Gl,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=gn()}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return Yi("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,s=this.stride;it.far||e.push({distance:l,point:is.clone(),uv:wn.getInterpolation(is,ma,ss,_a,qu,fl,Yu,new it),face:null,object:this})}copy(t,e){return super.copy(t,e),t.center!==void 0&&this.center.copy(t.center),this.material=t.material,this}}function ga(r,t,e,n,i,s){yr.subVectors(r,e).addScalar(.5).multiply(n),i!==void 0?(rs.x=s*yr.x-i*yr.y,rs.y=i*yr.x+s*yr.y):rs.copy(yr),r.copy(t),r.x+=rs.x,r.y+=rs.y,r.applyMatrix4(up)}const $u=new D,ju=new se,Zu=new se,DS=new D,Ku=new $t,va=new D,dl=new Kn,Ju=new $t,pl=new Gr;class pb extends qe{constructor(t,e){super(t,e),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=Ah,this.bindMatrix=new $t,this.bindMatrixInverse=new $t,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const t=this.geometry;this.boundingBox===null&&(this.boundingBox=new Ti),this.boundingBox.makeEmpty();const e=t.getAttribute("position");for(let n=0;nl)continue;f.applyMatrix4(this.matrixWorld);const U=t.ray.origin.distanceTo(f);Ut.far||e.push({distance:U,point:u.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const m=Math.max(0,o.start),y=Math.min(p.count,o.start+o.count);for(let v=m,S=y-1;vl)continue;f.applyMatrix4(this.matrixWorld);const R=t.ray.origin.distanceTo(f);Rt.far||e.push({distance:R,point:u.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,n=Object.keys(e);if(n.length>0){const i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=e[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:t,face:null,object:o})}}class vb extends Ie{constructor(t,e,n,i,s,o,a,l,c){super(t,e,n,i,s,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Un{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),s=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),s+=n.distanceTo(i),e.push(s),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const s=n.length;let o;e?o=e:o=t*n[s-1];let a=0,l=s-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===o)return i/(s-1);const h=n[i],f=n[i+1]-h,d=(o-h)/f;return(i+d)/(s-1)}getTangent(t,e){let i=t-1e-4,s=t+1e-4;i<0&&(i=0),s>1&&(s=1);const o=this.getPoint(i),a=this.getPoint(s),l=e||(o.isVector2?new it:new D);return l.copy(a).sub(o).normalize(),l}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new D,i=[],s=[],o=[],a=new D,l=new $t;for(let d=0;d<=t;d++){const _=d/t;i[d]=this.getTangentAt(_,new D)}s[0]=new D,o[0]=new D;let c=Number.MAX_VALUE;const h=Math.abs(i[0].x),u=Math.abs(i[0].y),f=Math.abs(i[0].z);h<=c&&(c=h,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),f<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),s[0].crossVectors(i[0],a),o[0].crossVectors(i[0],s[0]);for(let d=1;d<=t;d++){if(s[d]=s[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const _=Math.acos(Ee(i[d-1].dot(i[d]),-1,1));s[d].applyMatrix4(l.makeRotationAxis(a,_))}o[d].crossVectors(i[d],s[d])}if(e===!0){let d=Math.acos(Ee(s[0].dot(s[t]),-1,1));d/=t,i[0].dot(a.crossVectors(s[0],s[t]))>0&&(d=-d);for(let _=1;_<=t;_++)s[_].applyMatrix4(l.makeRotationAxis(i[_],d*_)),o[_].crossVectors(i[_],s[_])}return{tangents:i,normals:s,binormals:o}}clone(){return new this.constructor().copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Pc extends Un{constructor(t=0,e=0,n=1,i=1,s=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(t,e){const n=e||new it,i=Math.PI*2;let s=this.aEndAngle-this.aStartAngle;const o=Math.abs(s)i;)s-=i;s0?0:(Math.floor(Math.abs(a)/s)+1)*s:l===0&&a===s-1&&(a=s-2,l=1);let c,h;this.closed||a>0?c=i[(a-1)%s]:(Ea.subVectors(i[0],i[1]).add(i[0]),c=Ea);const u=i[a%s],f=i[(a+1)%s];if(this.closed||a+2i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(uf(a,l.x,c.x,h.x,u.x),uf(a,l.y,c.y,h.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e=n){const o=i[s]-n,a=this.curves[s],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,e)}s++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e0){const u=c.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(c);const h=c.getPoint(1);return this.currentPoint.copy(h),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class xs extends ff{constructor(t){super(t),this.uuid=gn(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,i=this.holes.length;n80*e){a=c=r[0],l=h=r[1];for(let _=e;_c&&(c=u),f>h&&(h=f);d=Math.max(c-a,h-l),d=d!==0?32767/d:0}return Cs(s,o,e,a,l,d,0),o}};function yp(r,t,e,n,i){let s,o;if(i===fE(r,t,e,n)>0)for(s=t;s=t;s-=n)o=df(s,r[s],r[s+1],o);return o&&ho(o,o.next)&&(Ls(o),o=o.next),o}function ji(r,t){if(!r)return r;t||(t=r);let e=r,n;do if(n=!1,!e.steiner&&(ho(e,e.next)||de(e.prev,e,e.next)===0)){if(Ls(e),e=t=e.prev,e===e.next)break;n=!0}else e=e.next;while(n||e!==t);return t}function Cs(r,t,e,n,i,s,o){if(!r)return;!o&&s&&aE(r,n,i,s);let a=r,l,c;for(;r.prev!==r.next;){if(l=r.prev,c=r.next,s?JS(r,n,i,s):KS(r)){t.push(l.i/e|0),t.push(r.i/e|0),t.push(c.i/e|0),Ls(r),r=c.next,a=c.next;continue}if(r=c,r===a){o?o===1?(r=QS(ji(r),t,e),Cs(r,t,e,n,i,s,2)):o===2&&tE(r,t,e,n,i,s):Cs(ji(r),t,e,n,i,s,1);break}}}function KS(r){const t=r.prev,e=r,n=r.next;if(de(t,e,n)>=0)return!1;const i=t.x,s=e.x,o=n.x,a=t.y,l=e.y,c=n.y,h=is?i>o?i:o:s>o?s:o,d=a>l?a>c?a:c:l>c?l:c;let _=n.next;for(;_!==t;){if(_.x>=h&&_.x<=f&&_.y>=u&&_.y<=d&&wr(i,a,s,l,o,c,_.x,_.y)&&de(_.prev,_,_.next)>=0)return!1;_=_.next}return!0}function JS(r,t,e,n){const i=r.prev,s=r,o=r.next;if(de(i,s,o)>=0)return!1;const a=i.x,l=s.x,c=o.x,h=i.y,u=s.y,f=o.y,d=al?a>c?a:c:l>c?l:c,p=h>u?h>f?h:f:u>f?u:f,m=$l(d,_,t,e,n),y=$l(g,p,t,e,n);let v=r.prevZ,S=r.nextZ;for(;v&&v.z>=m&&S&&S.z<=y;){if(v.x>=d&&v.x<=g&&v.y>=_&&v.y<=p&&v!==i&&v!==o&&wr(a,h,l,u,c,f,v.x,v.y)&&de(v.prev,v,v.next)>=0||(v=v.prevZ,S.x>=d&&S.x<=g&&S.y>=_&&S.y<=p&&S!==i&&S!==o&&wr(a,h,l,u,c,f,S.x,S.y)&&de(S.prev,S,S.next)>=0))return!1;S=S.nextZ}for(;v&&v.z>=m;){if(v.x>=d&&v.x<=g&&v.y>=_&&v.y<=p&&v!==i&&v!==o&&wr(a,h,l,u,c,f,v.x,v.y)&&de(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;S&&S.z<=y;){if(S.x>=d&&S.x<=g&&S.y>=_&&S.y<=p&&S!==i&&S!==o&&wr(a,h,l,u,c,f,S.x,S.y)&&de(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function QS(r,t,e){let n=r;do{const i=n.prev,s=n.next.next;!ho(i,s)&&Mp(i,n,n.next,s)&&Ps(i,s)&&Ps(s,i)&&(t.push(i.i/e|0),t.push(n.i/e|0),t.push(s.i/e|0),Ls(n),Ls(n.next),n=r=s),n=n.next}while(n!==r);return ji(n)}function tE(r,t,e,n,i,s){let o=r;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&cE(o,a)){let l=Sp(o,a);o=ji(o,o.next),l=ji(l,l.next),Cs(o,t,e,n,i,s,0),Cs(l,t,e,n,i,s,0);return}a=a.next}o=o.next}while(o!==r)}function eE(r,t,e,n){const i=[];let s,o,a,l,c;for(s=0,o=t.length;s=e.next.y&&e.next.y!==e.y){const f=e.x+(o-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(f<=s&&f>n&&(n=f,i=e.x=e.x&&e.x>=l&&s!==e.x&&wr(oi.x||e.x===i.x&&sE(i,e)))&&(i=e,h=u)),e=e.next;while(e!==a);return i}function sE(r,t){return de(r.prev,r,t.prev)<0&&de(t.next,r,r.next)<0}function aE(r,t,e,n){let i=r;do i.z===0&&(i.z=$l(i.x,i.y,t,e,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==r);i.prevZ.nextZ=null,i.prevZ=null,oE(i)}function oE(r){let t,e,n,i,s,o,a,l,c=1;do{for(e=r,r=null,s=null,o=0;e;){for(o++,n=e,a=0,t=0;t0||l>0&&n;)a!==0&&(l===0||!n||e.z<=n.z)?(i=e,e=e.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:r=i,i.prevZ=s,s=i;e=n}s.nextZ=null,c*=2}while(o>1);return r}function $l(r,t,e,n,i){return r=(r-e)*i|0,t=(t-n)*i|0,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,r|t<<1}function lE(r){let t=r,e=r;do(t.x=(r-o)*(s-a)&&(r-o)*(n-a)>=(e-o)*(t-a)&&(e-o)*(s-a)>=(i-o)*(n-a)}function cE(r,t){return r.next.i!==t.i&&r.prev.i!==t.i&&!hE(r,t)&&(Ps(r,t)&&Ps(t,r)&&uE(r,t)&&(de(r.prev,r,t.prev)||de(r,t.prev,t))||ho(r,t)&&de(r.prev,r,r.next)>0&&de(t.prev,t,t.next)>0)}function de(r,t,e){return(t.y-r.y)*(e.x-t.x)-(t.x-r.x)*(e.y-t.y)}function ho(r,t){return r.x===t.x&&r.y===t.y}function Mp(r,t,e,n){const i=Ta(de(r,t,e)),s=Ta(de(r,t,n)),o=Ta(de(e,n,r)),a=Ta(de(e,n,t));return!!(i!==s&&o!==a||i===0&&ba(r,e,t)||s===0&&ba(r,n,t)||o===0&&ba(e,r,n)||a===0&&ba(e,t,n))}function ba(r,t,e){return t.x<=Math.max(r.x,e.x)&&t.x>=Math.min(r.x,e.x)&&t.y<=Math.max(r.y,e.y)&&t.y>=Math.min(r.y,e.y)}function Ta(r){return r>0?1:r<0?-1:0}function hE(r,t){let e=r;do{if(e.i!==r.i&&e.next.i!==r.i&&e.i!==t.i&&e.next.i!==t.i&&Mp(e,e.next,r,t))return!0;e=e.next}while(e!==r);return!1}function Ps(r,t){return de(r.prev,r,r.next)<0?de(r,t,r.next)>=0&&de(r,r.prev,t)>=0:de(r,t,r.prev)<0||de(r,r.next,t)<0}function uE(r,t){let e=r,n=!1;const i=(r.x+t.x)/2,s=(r.y+t.y)/2;do e.y>s!=e.next.y>s&&e.next.y!==e.y&&i<(e.next.x-e.x)*(s-e.y)/(e.next.y-e.y)+e.x&&(n=!n),e=e.next;while(e!==r);return n}function Sp(r,t){const e=new jl(r.i,r.x,r.y),n=new jl(t.i,t.x,t.y),i=r.next,s=t.prev;return r.next=t,t.prev=r,e.next=i,i.prev=e,n.next=e,e.prev=n,s.next=n,n.prev=s,n}function df(r,t,e,n){const i=new jl(r,t,e);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ls(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function jl(r,t,e){this.i=r,this.x=t,this.y=e,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function fE(r,t,e,n){let i=0;for(let s=t,o=e-n;s2&&r[t-1].equals(r[0])&&r.pop()}function mf(r,t){for(let e=0;eNumber.EPSILON){const tt=Math.sqrt(rt),yt=Math.sqrt(M*M+B*B),ft=ct.x-T/tt,gt=ct.y+pt/tt,Pt=j.x-B/yt,Ft=j.y+M/yt,nt=((Pt-ft)*B-(Ft-gt)*M)/(pt*B-T*M);ot=ft+pt*nt-L.x,K=gt+T*nt-L.y;const Zt=ot*ot+K*K;if(Zt<=2)return new it(ot,K);bt=Math.sqrt(Zt/2)}else{let tt=!1;pt>Number.EPSILON?M>Number.EPSILON&&(tt=!0):pt<-Number.EPSILON?M<-Number.EPSILON&&(tt=!0):Math.sign(T)===Math.sign(B)&&(tt=!0),tt?(ot=-T,K=pt,bt=Math.sqrt(rt)):(ot=pt,K=T,bt=Math.sqrt(rt/2))}return new it(ot/bt,K/bt)}const $=[];for(let L=0,ct=I.length,j=ct-1,ot=L+1;L=0;L--){const ct=L/p,j=d*Math.cos(ct*Math.PI/2),ot=_*Math.sin(ct*Math.PI/2)+g;for(let K=0,bt=I.length;K=0;){const ot=j;let K=j-1;K<0&&(K=L.length-1);for(let bt=0,pt=h+p*2;bt0!=t>0&&this.version++,this._anisotropy=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get sheen(){return this._sheen}set sheen(t){this._sheen>0!=t>0&&this.version++,this._sheen=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=t.anisotropy,this.anisotropyRotation=t.anisotropyRotation,this.anisotropyMap=t.anisotropyMap,this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}class gE extends Jn{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Nt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Sc,this.normalScale=new it(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=yc,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}function wa(r,t,e){return!r||!e&&r.constructor===t?r:typeof t.BYTES_PER_ELEMENT=="number"?new t(r):Array.prototype.slice.call(r)}function vE(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function xE(r){function t(i,s){return r[i]-r[s]}const e=r.length,n=new Array(e);for(let i=0;i!==e;++i)n[i]=i;return n.sort(t),n}function gf(r,t,e){const n=r.length,i=new r.constructor(n);for(let s=0,o=0;o!==n;++s){const a=e[s]*t;for(let l=0;l!==t;++l)i[o++]=r[a+l]}return i}function Tp(r,t,e,n){let i=1,s=r[0];for(;s!==void 0&&s[n]===void 0;)s=r[i++];if(s===void 0)return;let o=s[n];if(o!==void 0)if(Array.isArray(o))do o=s[n],o!==void 0&&(t.push(s.time),e.push.apply(e,o)),s=r[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[n],o!==void 0&&(t.push(s.time),o.toArray(e,e.length)),s=r[i++];while(s!==void 0);else do o=s[n],o!==void 0&&(t.push(s.time),e.push(o)),s=r[i++];while(s!==void 0)}class uo{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],s=e[n-1];n:{t:{let o;e:{i:if(!(t=s)){const a=e[1];t=s)break t}o=n,n=0;break e}break n}for(;n>>1;te;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=n.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let a=0;a!==s;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),t=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),t=!1;break}o=l}if(i!==void 0&&vE(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),t=!1;break}}return t}optimize(){const t=this.times.slice(),e=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===Ho,s=t.length-1;let o=1;for(let a=1;a0){t[o]=t[s];for(let a=s*n,l=o*n,c=0;c!==n;++c)e[l+c]=e[a+c];++o}return o!==t.length?(this.times=t.slice(0,o),this.values=e.slice(0,o*n)):(this.times=t,this.values=e),this}clone(){const t=this.times.slice(),e=this.values.slice(),n=this.constructor,i=new n(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}Nn.prototype.TimeBufferType=Float32Array;Nn.prototype.ValueBufferType=Float32Array;Nn.prototype.DefaultInterpolation=Ya;class Xr extends Nn{}Xr.prototype.ValueTypeName="bool";Xr.prototype.ValueBufferType=Array;Xr.prototype.DefaultInterpolation=qa;Xr.prototype.InterpolantFactoryMethodLinear=void 0;Xr.prototype.InterpolantFactoryMethodSmooth=void 0;class wp extends Nn{}wp.prototype.ValueTypeName="color";class eo extends Nn{}eo.prototype.ValueTypeName="number";class EE extends uo{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(n-e)/(i-e);let c=t*a;for(let h=c+a;c!==h;c+=4)Si.slerpFlat(s,0,o,c-a,o,c,l);return s}}class Fs extends Nn{InterpolantFactoryMethodLinear(t){return new EE(this.times,this.values,this.getValueSize(),t)}}Fs.prototype.ValueTypeName="quaternion";Fs.prototype.DefaultInterpolation=Ya;Fs.prototype.InterpolantFactoryMethodSmooth=void 0;class qr extends Nn{}qr.prototype.ValueTypeName="string";qr.prototype.ValueBufferType=Array;qr.prototype.DefaultInterpolation=qa;qr.prototype.InterpolantFactoryMethodLinear=void 0;qr.prototype.InterpolantFactoryMethodSmooth=void 0;class no extends Nn{}no.prototype.ValueTypeName="vector";class Mb{constructor(t,e=-1,n,i=jg){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=gn(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let o=0,a=n.length;o!==a;++o)e.push(TE(n[o]).scale(i));const s=new this(t.name,t.duration,e,t.blendMode);return s.uuid=t.uuid,s}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let s=0,o=n.length;s!==o;++s)e.push(Nn.toJSON(n[s]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const s=e.length,o=[];for(let a=0;a1){const u=h[1];let f=i[u];f||(i[u]=f=[]),f.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(u,f,d,_,g){if(d.length!==0){const p=[],m=[];Tp(d,p,m,_),p.length!==0&&g.push(new u(f,p,m))}},i=[],s=t.name||"default",o=t.fps||30,a=t.blendMode;let l=t.length||-1;const c=t.hierarchy||[];for(let u=0;u{e&&e(s),this.manager.itemEnd(t)},0),s;if(Hn[t]!==void 0){Hn[t].push({onLoad:e,onProgress:n,onError:i});return}Hn[t]=[],Hn[t].push({onLoad:e,onProgress:n,onError:i});const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream=="undefined"||c.body===void 0||c.body.getReader===void 0)return c;const h=Hn[t],u=c.body.getReader(),f=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),d=f?parseInt(f):0,_=d!==0;let g=0;const p=new ReadableStream({start(m){y();function y(){u.read().then(({done:v,value:S})=>{if(v)m.close();else{g+=S.byteLength;const A=new ProgressEvent("progress",{lengthComputable:_,loaded:g,total:d});for(let R=0,b=h.length;R{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(h=>new DOMParser().parseFromString(h,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),f=u&&u[1]?u[1].toLowerCase():void 0,d=new TextDecoder(f);return c.arrayBuffer().then(_=>d.decode(_))}}}).then(c=>{ui.add(t,c);const h=Hn[t];delete Hn[t];for(let u=0,f=h.length;u{const h=Hn[t];if(h===void 0)throw this.manager.itemError(t),c;delete Hn[t];for(let u=0,f=h.length;u{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class CE extends Bs{constructor(t){super(t)}load(t,e,n,i){this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);const s=this,o=ui.get(t);if(o!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(o),s.manager.itemEnd(t)},0),o;const a=Rs("img");function l(){h(),ui.add(t,this),e&&e(this),s.manager.itemEnd(t)}function c(u){h(),i&&i(u),s.manager.itemError(t),s.manager.itemEnd(t)}function h(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),t.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(t),a.src=t,a}}class PE extends Bs{constructor(t){super(t)}load(t,e,n,i){const s=new Ie,o=new CE(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,function(a){s.image=a,s.needsUpdate=!0,e!==void 0&&e(s)},n,i),s}}class fo extends _e{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Nt(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,this.groundColor!==void 0&&(e.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(e.object.distance=this.distance),this.angle!==void 0&&(e.object.angle=this.angle),this.decay!==void 0&&(e.object.decay=this.decay),this.penumbra!==void 0&&(e.object.penumbra=this.penumbra),this.shadow!==void 0&&(e.object.shadow=this.shadow.toJSON()),e}}const xl=new $t,vf=new D,xf=new D;class Ic{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new it(512,512),this.map=null,this.mapPass=null,this.matrix=new $t,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ac,this._frameExtents=new it(1,1),this._viewportCount=1,this._viewports=[new se(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;vf.setFromMatrixPosition(t.matrixWorld),e.position.copy(vf),xf.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(xf),e.updateMatrixWorld(),xl.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(xl),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(xl)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return this.bias!==0&&(t.bias=this.bias),this.normalBias!==0&&(t.normalBias=this.normalBias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class LE extends Ic{constructor(){super(new Xe(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,n=Vr*2*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,s=t.distance||e.far;(n!==e.fov||i!==e.aspect||s!==e.far)&&(e.fov=n,e.aspect=i,e.far=s,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class Eb extends fo{constructor(t,e,n=0,i=Math.PI/3,s=0,o=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(_e.DEFAULT_UP),this.updateMatrix(),this.target=new _e,this.distance=n,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new LE}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const yf=new $t,ls=new D,yl=new D;class DE extends Ic{constructor(){super(new Xe(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new it(4,2),this._viewportCount=6,this._viewports=[new se(2,1,1,1),new se(0,1,1,1),new se(3,1,1,1),new se(1,1,1,1),new se(3,0,1,1),new se(1,0,1,1)],this._cubeDirections=[new D(1,0,0),new D(-1,0,0),new D(0,0,1),new D(0,0,-1),new D(0,1,0),new D(0,-1,0)],this._cubeUps=[new D(0,1,0),new D(0,1,0),new D(0,1,0),new D(0,1,0),new D(0,0,1),new D(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,s=t.distance||n.far;s!==n.far&&(n.far=s,n.updateProjectionMatrix()),ls.setFromMatrixPosition(t.matrixWorld),n.position.copy(ls),yl.copy(n.position),yl.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(yl),n.updateMatrixWorld(),i.makeTranslation(-ls.x,-ls.y,-ls.z),yf.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(yf)}}class bb extends fo{constructor(t,e,n=0,i=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new DE}get power(){return this.intensity*4*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class IE extends Ic{constructor(){super(new ep(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class Mf extends fo{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(_e.DEFAULT_UP),this.updateMatrix(),this.target=new _e,this.shadow=new IE}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class UE extends fo{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class Tb{static decodeText(t){if(typeof TextDecoder!="undefined")return new TextDecoder().decode(t);let e="";for(let n=0,i=t.length;n{e&&e(c),s.manager.itemEnd(t)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){e&&e(o),s.manager.itemEnd(t)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(t,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(c){return ui.add(t,c),e&&e(c),s.manager.itemEnd(t),c}).catch(function(c){i&&i(c),ui.remove(t),s.manager.itemError(t),s.manager.itemEnd(t)});ui.add(t,l),s.manager.itemStart(t)}}class Rb{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Sf(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Sf();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Sf(){return(typeof performance=="undefined"?Date:performance).now()}const Uc="\\[\\]\\.:\\/",NE=new RegExp("["+Uc+"]","g"),Nc="[^"+Uc+"]",OE="[^"+Uc.replace("\\.","")+"]",FE=/((?:WC+[\/:])*)/.source.replace("WC",Nc),BE=/(WCOD+)?/.source.replace("WCOD",OE),zE=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Nc),kE=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Nc),VE=new RegExp("^"+FE+BE+zE+kE+"$"),HE=["material","materials","bones","map"];class GE{constructor(t,e,n){const i=n||te.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=n.length;i!==s;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}class te{constructor(t,e,n){this.path=e,this.parsedPath=n||te.parseTrackName(e),this.node=te.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new te.Composite(t,e,n):new te(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(NE,"")}static parseTrackName(t){const e=VE.exec(t);if(e===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=n.nodeName.substring(i+1);HE.indexOf(s)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=s)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(e===void 0||e===""||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(n!==void 0)return n}if(t.children){const n=function(s){for(let o=0;o{r instanceof Array?r.forEach(Ap):(r.map&&r.map.dispose(),r.dispose())},Rp=r=>{r.geometry&&r.geometry.dispose(),r.material&&Ap(r.material),r.texture&&r.texture.dispose(),r.children&&r.children.forEach(Rp)},XE=r=>{if(r&&r.children)for(;r.children.length;){const t=r.children[0];r.remove(t),Rp(t)}};var Oc={exports:{}},qE=function(t,e,n,i){var s=t[0],o=t[1],a=!1;n===void 0&&(n=0),i===void 0&&(i=e.length);for(var l=(i-n)/2,c=0,h=l-1;co!=_>o&&s<(d-u)*(o-f)/(_-f)+u;g&&(a=!a)}return a},YE=function(t,e,n,i){var s=t[0],o=t[1],a=!1;n===void 0&&(n=0),i===void 0&&(i=e.length);for(var l=i-n,c=0,h=l-1;co!=_>o&&s<(d-u)*(o-f)/(_-f)+u;g&&(a=!a)}return a},Cp=qE,Pp=YE;Oc.exports=function(t,e,n,i){return e.length>0&&Array.isArray(e[0])?Pp(t,e,n,i):Cp(t,e,n,i)};Oc.exports.nested=Pp;Oc.exports.flat=Cp;const wf={type:"change"},Ml={type:"start"},Af={type:"end"},Ra=new Gr,Rf=new ai,$E=Math.cos(70*y0.DEG2RAD);class jE extends Ki{constructor(t,e){super(),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new D,this.cursor=new D,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Qi.ROTATE,MIDDLE:Qi.DOLLY,RIGHT:Qi.PAN},this.touches={ONE:tr.ROTATE,TWO:tr.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(P){P.addEventListener("keydown",Pt),this._domElementKeyEvents=P},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",Pt),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(wf),n.update(),s=i.NONE},this.update=function(){const P=new D,lt=new Si().setFromUnitVectors(t.up,new D(0,1,0)),dt=lt.clone().invert(),Ct=new D,C=new Si,at=new D,st=2*Math.PI;return function(Lt=null){const Kt=n.object.position;P.copy(Kt).sub(n.target),P.applyQuaternion(lt),a.setFromVector3(P),n.autoRotate&&s===i.NONE&&k(x(Lt)),n.enableDamping?(a.theta+=l.theta*n.dampingFactor,a.phi+=l.phi*n.dampingFactor):(a.theta+=l.theta,a.phi+=l.phi);let Yt=n.minAzimuthAngle,ne=n.maxAzimuthAngle;isFinite(Yt)&&isFinite(ne)&&(Yt<-Math.PI?Yt+=st:Yt>Math.PI&&(Yt-=st),ne<-Math.PI?ne+=st:ne>Math.PI&&(ne-=st),Yt<=ne?a.theta=Math.max(Yt,Math.min(ne,a.theta)):a.theta=a.theta>(Yt+ne)/2?Math.max(Yt,a.theta):Math.min(ne,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),n.enableDamping===!0?n.target.addScaledVector(h,n.dampingFactor):n.target.add(h),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor),n.zoomToCursor&&R||n.object.isOrthographicCamera?a.radius=Z(a.radius):a.radius=Z(a.radius*c),P.setFromSpherical(a),P.applyQuaternion(dt),Kt.copy(n.target).add(P),n.object.lookAt(n.target),n.enableDamping===!0?(l.theta*=1-n.dampingFactor,l.phi*=1-n.dampingFactor,h.multiplyScalar(1-n.dampingFactor)):(l.set(0,0,0),h.set(0,0,0));let Ce=!1;if(n.zoomToCursor&&R){let Jt=null;if(n.object.isPerspectiveCamera){const ve=P.length();Jt=Z(ve*c);const ke=ve-Jt;n.object.position.addScaledVector(S,ke),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){const ve=new D(A.x,A.y,0);ve.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix(),Ce=!0;const ke=new D(A.x,A.y,0);ke.unproject(n.object),n.object.position.sub(ke).add(ve),n.object.updateMatrixWorld(),Jt=P.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;Jt!==null&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(Jt).add(n.object.position):(Ra.origin.copy(n.object.position),Ra.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(Ra.direction))<$E?t.lookAt(n.target):(Rf.setFromNormalAndCoplanarPoint(n.object.up,n.target),Ra.intersectPlane(Rf,n.target))))}else n.object.isOrthographicCamera&&(Ce=c!==1,Ce&&(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix()));return c=1,R=!1,Ce||Ct.distanceToSquared(n.object.position)>o||8*(1-C.dot(n.object.quaternion))>o||at.distanceToSquared(n.target)>0?(n.dispatchEvent(wf),Ct.copy(n.object.position),C.copy(n.object.quaternion),at.copy(n.target),!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Zt),n.domElement.removeEventListener("pointerdown",T),n.domElement.removeEventListener("pointercancel",B),n.domElement.removeEventListener("wheel",tt),n.domElement.removeEventListener("pointermove",M),n.domElement.removeEventListener("pointerup",B),n._domElementKeyEvents!==null&&(n._domElementKeyEvents.removeEventListener("keydown",Pt),n._domElementKeyEvents=null)};const n=this,i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let s=i.NONE;const o=1e-6,a=new bf,l=new bf;let c=1;const h=new D,u=new it,f=new it,d=new it,_=new it,g=new it,p=new it,m=new it,y=new it,v=new it,S=new D,A=new it;let R=!1;const b=[],U={};let N=!1;function x(P){return P!==null?2*Math.PI/60*n.autoRotateSpeed*P:2*Math.PI/60/60*n.autoRotateSpeed}function E(P){const lt=Math.abs(P*.01);return Math.pow(.95,n.zoomSpeed*lt)}function k(P){l.theta-=P}function W(P){l.phi-=P}const I=function(){const P=new D;return function(dt,Ct){P.setFromMatrixColumn(Ct,0),P.multiplyScalar(-dt),h.add(P)}}(),F=function(){const P=new D;return function(dt,Ct){n.screenSpacePanning===!0?P.setFromMatrixColumn(Ct,1):(P.setFromMatrixColumn(Ct,0),P.crossVectors(n.object.up,P)),P.multiplyScalar(dt),h.add(P)}}(),O=function(){const P=new D;return function(dt,Ct){const C=n.domElement;if(n.object.isPerspectiveCamera){const at=n.object.position;P.copy(at).sub(n.target);let st=P.length();st*=Math.tan(n.object.fov/2*Math.PI/180),I(2*dt*st/C.clientHeight,n.object.matrix),F(2*Ct*st/C.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(I(dt*(n.object.right-n.object.left)/n.object.zoom/C.clientWidth,n.object.matrix),F(Ct*(n.object.top-n.object.bottom)/n.object.zoom/C.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function Y(P){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c/=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function q(P){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c*=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function $(P,lt){if(!n.zoomToCursor)return;R=!0;const dt=n.domElement.getBoundingClientRect(),Ct=P-dt.left,C=lt-dt.top,at=dt.width,st=dt.height;A.x=Ct/at*2-1,A.y=-(C/st)*2+1,S.set(A.x,A.y,1).unproject(n.object).sub(n.object.position).normalize()}function Z(P){return Math.max(n.minDistance,Math.min(n.maxDistance,P))}function J(P){u.set(P.clientX,P.clientY)}function ut(P){$(P.clientX,P.clientX),m.set(P.clientX,P.clientY)}function Et(P){_.set(P.clientX,P.clientY)}function V(P){f.set(P.clientX,P.clientY),d.subVectors(f,u).multiplyScalar(n.rotateSpeed);const lt=n.domElement;k(2*Math.PI*d.x/lt.clientHeight),W(2*Math.PI*d.y/lt.clientHeight),u.copy(f),n.update()}function Q(P){y.set(P.clientX,P.clientY),v.subVectors(y,m),v.y>0?Y(E(v.y)):v.y<0&&q(E(v.y)),m.copy(y),n.update()}function _t(P){g.set(P.clientX,P.clientY),p.subVectors(g,_).multiplyScalar(n.panSpeed),O(p.x,p.y),_.copy(g),n.update()}function Mt(P){$(P.clientX,P.clientY),P.deltaY<0?q(E(P.deltaY)):P.deltaY>0&&Y(E(P.deltaY)),n.update()}function Tt(P){let lt=!1;switch(P.code){case n.keys.UP:P.ctrlKey||P.metaKey||P.shiftKey?W(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,n.keyPanSpeed),lt=!0;break;case n.keys.BOTTOM:P.ctrlKey||P.metaKey||P.shiftKey?W(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,-n.keyPanSpeed),lt=!0;break;case n.keys.LEFT:P.ctrlKey||P.metaKey||P.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(n.keyPanSpeed,0),lt=!0;break;case n.keys.RIGHT:P.ctrlKey||P.metaKey||P.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(-n.keyPanSpeed,0),lt=!0;break}lt&&(P.preventDefault(),n.update())}function xt(P){if(b.length===1)u.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);u.set(dt,Ct)}}function Ot(P){if(b.length===1)_.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);_.set(dt,Ct)}}function At(P){const lt=mt(P),dt=P.pageX-lt.x,Ct=P.pageY-lt.y,C=Math.sqrt(dt*dt+Ct*Ct);m.set(0,C)}function L(P){n.enableZoom&&At(P),n.enablePan&&Ot(P)}function ct(P){n.enableZoom&&At(P),n.enableRotate&&xt(P)}function j(P){if(b.length==1)f.set(P.pageX,P.pageY);else{const dt=mt(P),Ct=.5*(P.pageX+dt.x),C=.5*(P.pageY+dt.y);f.set(Ct,C)}d.subVectors(f,u).multiplyScalar(n.rotateSpeed);const lt=n.domElement;k(2*Math.PI*d.x/lt.clientHeight),W(2*Math.PI*d.y/lt.clientHeight),u.copy(f)}function ot(P){if(b.length===1)g.set(P.pageX,P.pageY);else{const lt=mt(P),dt=.5*(P.pageX+lt.x),Ct=.5*(P.pageY+lt.y);g.set(dt,Ct)}p.subVectors(g,_).multiplyScalar(n.panSpeed),O(p.x,p.y),_.copy(g)}function K(P){const lt=mt(P),dt=P.pageX-lt.x,Ct=P.pageY-lt.y,C=Math.sqrt(dt*dt+Ct*Ct);y.set(0,C),v.set(0,Math.pow(y.y/m.y,n.zoomSpeed)),Y(v.y),m.copy(y);const at=(P.pageX+lt.x)*.5,st=(P.pageY+lt.y)*.5;$(at,st)}function bt(P){n.enableZoom&&K(P),n.enablePan&&ot(P)}function pt(P){n.enableZoom&&K(P),n.enableRotate&&j(P)}function T(P){n.enabled!==!1&&(b.length===0&&(n.domElement.setPointerCapture(P.pointerId),n.domElement.addEventListener("pointermove",M),n.domElement.addEventListener("pointerup",B)),Gt(P),P.pointerType==="touch"?Ft(P):rt(P))}function M(P){n.enabled!==!1&&(P.pointerType==="touch"?nt(P):et(P))}function B(P){switch(It(P),b.length){case 0:n.domElement.releasePointerCapture(P.pointerId),n.domElement.removeEventListener("pointermove",M),n.domElement.removeEventListener("pointerup",B),n.dispatchEvent(Af),s=i.NONE;break;case 1:const lt=b[0],dt=U[lt];Ft({pointerId:lt,pageX:dt.x,pageY:dt.y});break}}function rt(P){let lt;switch(P.button){case 0:lt=n.mouseButtons.LEFT;break;case 1:lt=n.mouseButtons.MIDDLE;break;case 2:lt=n.mouseButtons.RIGHT;break;default:lt=-1}switch(lt){case Qi.DOLLY:if(n.enableZoom===!1)return;ut(P),s=i.DOLLY;break;case Qi.ROTATE:if(P.ctrlKey||P.metaKey||P.shiftKey){if(n.enablePan===!1)return;Et(P),s=i.PAN}else{if(n.enableRotate===!1)return;J(P),s=i.ROTATE}break;case Qi.PAN:if(P.ctrlKey||P.metaKey||P.shiftKey){if(n.enableRotate===!1)return;J(P),s=i.ROTATE}else{if(n.enablePan===!1)return;Et(P),s=i.PAN}break;default:s=i.NONE}s!==i.NONE&&n.dispatchEvent(Ml)}function et(P){switch(s){case i.ROTATE:if(n.enableRotate===!1)return;V(P);break;case i.DOLLY:if(n.enableZoom===!1)return;Q(P);break;case i.PAN:if(n.enablePan===!1)return;_t(P);break}}function tt(P){n.enabled===!1||n.enableZoom===!1||s!==i.NONE||(P.preventDefault(),n.dispatchEvent(Ml),Mt(yt(P)),n.dispatchEvent(Af))}function yt(P){const lt=P.deltaMode,dt={clientX:P.clientX,clientY:P.clientY,deltaY:P.deltaY};switch(lt){case 1:dt.deltaY*=16;break;case 2:dt.deltaY*=100;break}return P.ctrlKey&&!N&&(dt.deltaY*=10),dt}function ft(P){P.key==="Control"&&(N=!0,n.domElement.getRootNode().addEventListener("keyup",gt,{passive:!0,capture:!0}))}function gt(P){P.key==="Control"&&(N=!1,n.domElement.getRootNode().removeEventListener("keyup",gt,{passive:!0,capture:!0}))}function Pt(P){n.enabled===!1||n.enablePan===!1||Tt(P)}function Ft(P){switch(Rt(P),b.length){case 1:switch(n.touches.ONE){case tr.ROTATE:if(n.enableRotate===!1)return;xt(P),s=i.TOUCH_ROTATE;break;case tr.PAN:if(n.enablePan===!1)return;Ot(P),s=i.TOUCH_PAN;break;default:s=i.NONE}break;case 2:switch(n.touches.TWO){case tr.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;L(P),s=i.TOUCH_DOLLY_PAN;break;case tr.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;ct(P),s=i.TOUCH_DOLLY_ROTATE;break;default:s=i.NONE}break;default:s=i.NONE}s!==i.NONE&&n.dispatchEvent(Ml)}function nt(P){switch(Rt(P),s){case i.TOUCH_ROTATE:if(n.enableRotate===!1)return;j(P),n.update();break;case i.TOUCH_PAN:if(n.enablePan===!1)return;ot(P),n.update();break;case i.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;bt(P),n.update();break;case i.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;pt(P),n.update();break;default:s=i.NONE}}function Zt(P){n.enabled!==!1&&P.preventDefault()}function Gt(P){b.push(P.pointerId)}function It(P){delete U[P.pointerId];for(let lt=0;lt[]},colors:{type:Array,default:()=>[2161326,15380744,3122407,65535,16536624]},opacity:{type:Number,default:.5},delay:{type:Number,default:5e3},loopComplete:{type:Function,default:()=>{}}},computed:{currentData(){return $r(ae({},this.data[this.activeIndex]),{count:this.count})}},data(){return this.scene=null,this.camera=null,this.renderer=null,this.controls=null,this.axes=null,this.pieGroup=new us,this.planeTweens=[],this.resizeHandler=null,this.visibilityObserver=null,this.isVisible=!0,this.isDestroyed=!1,this.isLooping=!1,{width:300,height:200,activeIndex:0,count:0,timer:null}},mounted(){this.isVisible=this.isElementVisible(this.$el),this.updateSize(),this.count=this.data.map(r=>Number(r.value)||0).reduce((r,t)=>r+t,0),this.init(),this.setupVisibilityObserver(),this.resizeHandler=()=>this.resize(),window.addEventListener("resize",this.resizeHandler)},beforeUnmount(){this.destroy()},methods:{init(){this.scene=new PS,this.initCamera(),this.initRenderer(),this.initLight(),this.initAxes(),this.initControls(),this.createPlane({url:ZE,width:5,position:new D(0,0,-.01),color:"#00ffff"}),this.createPlane({url:KE,width:6.5,position:new D(0,0,-.02),color:"#00ffff"}),this.createPlane({url:JE,width:5.5,position:new D(0,0,-.03),animate:!0,color:"#00ffff"}),this.createPie(),this.isVisible&&this.start()},createPlane(r){let t={url:"texture/ring1.png",width:5.5,z:0,position:new D(0,0,0),animate:!1,color:null},e=Object.assign(t,r);const n=new Os(e.width,e.width),i=new wc({map:this.getTexture(e.url),transparent:!0,side:En,depthTest:!1});e.color&&(i.color=new Nt(e.color));const s=new qe(n,i);if(s.position.copy(e.position),s.rotation.x=-1*Math.PI/2,e.animate){const o=si.to(s.rotation,{z:2*Math.PI,repeat:-1,ease:"none",duration:3});this.planeTweens.push(o)}this.scene.add(s)},getTexture(r){const t=new PE().load(r);return t.wrapS=t.wrapT=Xa,t},createPie(){if(!this.data.length||this.count<=0)return;let r=0,t=0;for(var e=0;e=this.data.length&&(r=0,this.loopComplete&&this.loopComplete()),this.chooseRing(r)},chooseRing(r=0,t=!1){if(!this.pieGroup.children.length)return;let e=r-1<0?this.data.length-1:r-1,n=this.pieGroup.children[e];this.prevMesh=n,this.activeIndex=r;let i=this.pieGroup.children[r];i&&(t||n&&(si.to(n.scale,{z:1}),si.to(n.material,{opacity:this.opacity})),si.to(i.scale,{z:2}),si.to(i.material,{opacity:.8}))},addRing(r={}){let t={innerRadius:1.5,outerRadius:2,thickness:.5,startAngle:0,endAngle:Math.PI/2,color:65535,segments:120},e=Object.assign(t,r),n=new xs;n.arc(0,0,e.outerRadius,e.startAngle,e.endAngle);let i=n.getPoints(e.segments),s=new xs;s.arc(0,0,e.innerRadius,e.endAngle,e.startAngle,!0);let o=s.getPoints(e.segments),a=new xs(i.concat(o));const l={steps:1,depth:e.thickness,bevelEnabled:!0,bevelThickness:0,bevelSize:0,bevelOffset:0,bevelSegments:0},c=new Dc(a,l);let h=new gE({color:e.color,transparent:!0,opacity:this.opacity,side:En});const u=new qe(c,h.clone());return u.renderOrder=10,u.rotation.x=-1*Math.PI/2,u},initCamera(){var r=this.width/this.height;this.camera=new Xe(30,r,.1,1500),this.camera.position.set(6.023813305272227,4.838542633695233,6.111272698256137),this.camera.lookAt(0,0,0)},initRenderer(){this.renderer=new lp({antialias:!0,alpha:!0}),this.renderer.setPixelRatio(this.getPixelRatio()),this.renderer.setSize(this.width,this.height),this.$refs.pieDom.appendChild(this.renderer.domElement)},initLight(){let r=new Mf(16777215,2);r.position.set(200,300,200);let t=new Mf(16777215,2);t.position.set(-200,-300,-200);let e=new UE(16777215,2);this.scene.add(r),this.scene.add(t),this.scene.add(e)},initAxes(){this.axes=new WE(0),this.scene.add(this.axes)},initControls(){this.controls=new jE(this.camera,this.renderer.domElement),this.controls.maxPolarAngle=Math.PI,this.controls.autoRotate=!1,this.controls.enableDamping=!0,this.controls.enabled=!1},loop(){!this.renderer||this.isLooping||(this.isLooping=!0,this.renderer.setAnimationLoop(()=>{this.renderer.render(this.scene,this.camera),this.controls&&this.controls.update()}))},start(){this.isDestroyed||!this.renderer||!this.data.length||(this.isVisible=!0,this.loop(),this.planeTweens.forEach(r=>{var t;return(t=r==null?void 0:r.resume)==null?void 0:t.call(r)}),this.controls&&(this.controls.enabled=!0),this.startTimer())},startTimer(){this.stopTimer(),!(this.data.length<2)&&(this.timer=window.setInterval(()=>{this.loopChange()},this.delay))},stop(){this.stopTimer(),this.controls&&(this.controls.enabled=!1),this.renderer&&this.renderer.setAnimationLoop(null),this.planeTweens.forEach(r=>{var t;return(t=r==null?void 0:r.pause)==null?void 0:t.call(r)}),this.isLooping=!1},stopTimer(){this.timer&&(window.clearInterval(this.timer),this.timer=null)},setupVisibilityObserver(){const r=this.$el;!r||typeof window.IntersectionObserver!="function"||(this.visibilityObserver=new IntersectionObserver(t=>{const e=t[0],n=!!(e!=null&&e.isIntersecting)&&this.isElementVisible(r);n!==this.isVisible&&(this.isVisible=n,n?(this.resize(),this.start()):this.stop())}),this.visibilityObserver.observe(r),this.isVisible=this.isElementVisible(r),this.isVisible||this.stop())},isElementVisible(r){if(!r||typeof window.getComputedStyle!="function")return!0;let t=r;for(;t&&t!==document.body;){const n=window.getComputedStyle(t);if(n.display==="none"||n.visibility==="hidden"||Number(n.opacity)===0)return!1;t=t.parentElement}const e=r.getBoundingClientRect();return e.width>0&&e.height>0},getPixelRatio(){return Math.min(window.devicePixelRatio||1,1.5)},updateSize(){var t,e;const r=this.$refs.pieDom;this.width=(r==null?void 0:r.offsetWidth)||((t=this.$el)==null?void 0:t.offsetWidth)||300,this.height=(r==null?void 0:r.offsetHeight)||((e=this.$el)==null?void 0:e.offsetHeight)||200},getScene(){return this.scene},getRender(){return this.renderer},resize(){if(!this.camera||!this.renderer)return;this.updateSize();let r=this.width/this.height;this.camera.aspect=r,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.renderer.setPixelRatio(this.getPixelRatio())},destroy(){var r,t,e,n;this.isDestroyed=!0,this.prevMesh&&(si.set(this.prevMesh.scale,{z:1}),si.set(this.prevMesh.material,{opacity:this.opacity})),this.stop(),(t=(r=this.visibilityObserver)==null?void 0:r.disconnect)==null||t.call(r),this.visibilityObserver=null,this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.renderer&&(this.planeTweens.forEach(i=>{var s;return(s=i==null?void 0:i.kill)==null?void 0:s.call(i)}),this.planeTweens=[],XE(this.pieGroup),this.renderer.dispose(),this.renderer.forceContextLoss(),(n=(e=this.controls)==null?void 0:e.dispose)==null||n.call(e),this.$refs.pieDom&&(this.$refs.pieDom.innerHTML=""),this.scene=null,this.camera=null,this.renderer=null,this.controls=null,this.axes=null)}}},tb={class:"three-pie-wrap"},eb={class:"three-pie",ref:"pieDom"},nb={class:"three-pie-slot"};function ib(r,t,e,n,i,s){return Ca(),Pa("div",tb,[Bt("div",eb,null,512),Bt("div",nb,[Lf(r.$slots,"default",{data:s.currentData})])])}const Ib=Zp(QE,[["render",ib]]),po="AlibabaPuHuiTi, Microsoft YaHei, Arial, sans-serif",xn=["#24f6c4","#32dcff","#ffe06b","#7ee269","#ff9a62","#9ea7ff"],Fc={color:"rgba(225, 249, 255, 0.78)",fontFamily:po,fontSize:10};function mo(r,t={}){return ae({trigger:"item",appendToBody:!0,confine:!1,backgroundColor:"rgba(5, 31, 51, 0.96)",borderColor:"rgba(0, 210, 255, 0.54)",borderWidth:1,padding:[7,10],textStyle:{color:"#e7fbff",fontFamily:po,fontSize:12,lineHeight:18},extraCssText:"box-shadow:0 0 18px rgba(0,210,255,.2);z-index:2147483647!important;pointer-events:none;",formatter:r},t)}function Bc(r={}){return ae({itemWidth:10,itemHeight:7,itemGap:8,textStyle:$r(ae({},Fc),{color:"rgba(222, 250, 255, 0.78)",fontSize:10})},r)}function Ds(r=[],t={}){return ae({type:"category",data:r,axisLabel:ae($r(ae({},Fc),{color:"rgba(223, 250, 255, 0.68)",interval:0,hideOverlap:!0,margin:8}),t.axisLabel||{}),axisLine:ae({lineStyle:{color:"rgba(48, 220, 255, 0.26)"}},t.axisLine||{}),axisTick:ae({show:!1},t.axisTick||{}),splitLine:ae({show:!1},t.splitLine||{})},Lp(t))}function Is(r={}){return ae({type:"value",axisLabel:ae($r(ae({},Fc),{color:"rgba(223, 250, 255, 0.56)"}),r.axisLabel||{}),axisLine:ae({show:!1},r.axisLine||{}),axisTick:ae({show:!1},r.axisTick||{}),splitLine:ae({lineStyle:{color:"rgba(48, 220, 255, 0.1)",type:"dashed"}},r.splitLine||{})},Lp(r))}function _o(r={}){return ae({left:42,right:28,top:30,bottom:24,containLabel:!1},r)}function go(r,t=`${r}12`){return new Df(0,0,0,1,[{offset:0,color:r},{offset:1,color:t}])}function rb(r,t=`${r}20`,e="#ffffff"){return new Df(0,0,1,0,[{offset:0,color:t},{offset:.68,color:r},{offset:1,color:e}])}function vo(r={}){var e,n,i;const t=ae({textStyle:ae({fontFamily:po,color:"rgba(225, 249, 255, 0.78)"},r.textStyle||{}),animation:(e=r.animation)!=null?e:!0,animationDuration:(n=r.animationDuration)!=null?n:900,animationDurationUpdate:(i=r.animationDurationUpdate)!=null?i:700,animationEasing:r.animationEasing||"cubicOut"},r);return Jl(t),t}function Ub({categories:r=[],rows:t=[],unit:e="",name:n="指标",orientation:i="vertical",colorIndex:s=0,grid:o={},showLabel:a=!0}={}){const l=xn[s%xn.length],c=i==="horizontal",h=t.map((u,f)=>({name:u.name||r[f],value:Number(u.value)||0,itemStyle:{borderRadius:c?[0,8,8,0]:[8,8,0,0],color:c?rb(u.color||l,"rgba(48, 220, 255, 0.14)",u.color||l):go(u.color||l)}}));return vo({color:xn,grid:_o(ae(c?{left:72,right:a?58:26,top:24,bottom:22}:{left:46,right:24,top:28,bottom:42},o)),tooltip:mo(u=>`${u.marker}${u.name}:${Kl(u.value)}${e}`),xAxis:c?Is():Ds(r,{axisLabel:{rotate:r.length>6?24:0}}),yAxis:c?Ds(r,{inverse:!0,axisLabel:{color:"rgba(225, 249, 255, 0.82)"}}):Is(),series:[{name:n,type:"bar",barWidth:c?12:r.length>7?14:20,data:h,label:{show:a,position:c?"right":"top",color:"#f7feff",fontSize:10,formatter:({value:u})=>Kl(u)}}]})}function Nb({categories:r=[],series:t=[],unit:e="",grid:n={}}={}){return vo({color:xn,grid:_o(ae({left:46,right:20,top:42,bottom:42},n)),tooltip:mo(i=>zc(i,e),{trigger:"axis",axisPointer:{type:"shadow"}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((i,s)=>({name:i.name,type:"bar",barWidth:10,data:i.values||[],itemStyle:{borderRadius:[6,6,0,0],color:go(xn[s%xn.length])}}))})}function Ob({categories:r=[],series:t=[],unit:e="",grid:n={}}={}){return vo({color:xn,grid:_o(ae({left:48,right:22,top:42,bottom:42},n)),tooltip:mo(i=>zc(i,e),{trigger:"axis",axisPointer:{type:"shadow"}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((i,s)=>({name:i.name,type:"bar",stack:"total",barWidth:18,data:i.values||[],itemStyle:{color:go(xn[s%xn.length])}}))})}function Fb({categories:r=[],series:t=[],unit:e="",area:n=!1,grid:i={}}={}){return vo({color:xn,grid:_o(ae({left:46,right:24,top:42,bottom:38},i)),tooltip:mo(s=>zc(s,e),{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(255, 224, 107, 0.54)"}}}),legend:Bc({top:0,right:4}),xAxis:Ds(r),yAxis:Is(),series:t.map((s,o)=>{const a=s.color||xn[o%xn.length];return{name:s.name,type:"line",smooth:!0,symbol:"circle",symbolSize:7,data:s.values||[],lineStyle:{width:3,color:a,shadowColor:`${a}55`,shadowBlur:10},itemStyle:{color:"#041522",borderColor:a,borderWidth:2},areaStyle:n?{color:go(a,`${a}08`)}:void 0}})})}function Kl(r){const t=Number(r);return Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString("zh-CN"):t.toLocaleString("zh-CN",{maximumFractionDigits:2}):"--"}function Lp(r={}){const o=r,{axisLabel:t,axisLine:e,axisTick:n,splitLine:i}=o;return jc(o,["axisLabel","axisLine","axisTick","splitLine"])}function zc(r,t=""){var s,o;const e=Array.isArray(r)?r:[r],n=((s=e[0])==null?void 0:s.axisValueLabel)||((o=e[0])==null?void 0:o.name)||"",i=e.map(a=>`${a.marker}${a.seriesName||a.name}:${Kl(a.value)}${t}`).join("
");return`${n}
${i}`}function Jl(r){if(!r||typeof r!="object")return;["textStyle","axisLabel","nameTextStyle","label","axisName"].forEach(e=>{!r[e]||typeof r[e]!="object"||(r[e]=sb(r[e]))}),Object.keys(r).forEach(e=>{const n=r[e];if(!(!n||typeof n!="object")&&!(e==="color"||e==="itemStyle"||e==="areaStyle"||e==="lineStyle")){if(Array.isArray(n)){n.forEach(Jl);return}Jl(n)}})}function sb(r){const t=ae({fontFamily:r.fontFamily||po},r);return typeof t.fontSize=="number"&&t.fontSize<10&&(t.fontSize=10),t}export{Oo as $,_b as A,Ue as B,Rb as C,Mf as D,gb as E,Sb as F,us as G,Xe as H,mb as I,y0 as J,ep as K,Bs as L,wc as M,fp as N,_e as O,bb as P,Mb as Q,Xa as R,Eb as S,hb as T,IS as U,it as V,Ya as W,ee as X,Si as Y,Pe as Z,Rh as _,fb as a,Is as a$,Jr as a0,bn as a1,Hl as a2,qa as a3,Mi as a4,Qa as a5,Ie as a6,no as a7,eo as a8,Fs as a9,zS as aA,bp as aB,Pb as aC,cp as aD,si as aE,UE as aF,gE as aG,db as aH,LS as aI,Ns as aJ,cg as aK,Oi as aL,vg as aM,dg as aN,Ib as aO,cb as aP,vo as aQ,mo as aR,lb as aS,Ub as aT,Nb as aU,Ob as aV,Fb as aW,xn as aX,Bc as aY,_o as aZ,Ds as a_,Ti as aa,Kn as ab,uo as ac,wE as ad,lp as ae,jE as af,PS as ag,WE as ah,Pr as ai,Db as aj,xs as ak,Ep as al,Os as am,Sh as an,vb as ao,Dc as ap,wb as aq,ge as ar,Cb as as,xb as at,Cn as au,z0 as av,ht as aw,Ei as ax,se as ay,Lb as az,ub as b,Kl as b0,go as b1,vn as c,Tb as d,Nt as e,Zn as f,Le as g,yb as h,$t as i,D as j,tf as k,PE as l,Ab as m,hp as n,We as o,zi as p,FS as q,Jn as r,Cc as s,_E as t,En as u,te as v,pb as w,qe as x,pp as y,dp as z};
diff --git a/docs/assets/chartTheme-812dab15-balabala-1783244194656.css b/docs/assets/chartTheme-812dab15-balabala-1783264824576.css
similarity index 100%
rename from docs/assets/chartTheme-812dab15-balabala-1783244194656.css
rename to docs/assets/chartTheme-812dab15-balabala-1783264824576.css
diff --git a/docs/assets/chinaBlurLine-1a2cbc0f-balabala-1783244194656.png b/docs/assets/chinaBlurLine-1a2cbc0f-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/chinaBlurLine-1a2cbc0f-balabala-1783244194656.png
rename to docs/assets/chinaBlurLine-1a2cbc0f-balabala-1783264824576.png
diff --git a/docs/assets/content-bottom-left-arrow-3a8a61f3-balabala-1783244194656.svg b/docs/assets/content-bottom-left-arrow-3a8a61f3-balabala-1783264824576.svg
similarity index 100%
rename from docs/assets/content-bottom-left-arrow-3a8a61f3-balabala-1783244194656.svg
rename to docs/assets/content-bottom-left-arrow-3a8a61f3-balabala-1783264824576.svg
diff --git a/docs/assets/content-bottom-right-arrow-a3c5270d-balabala-1783244194656.svg b/docs/assets/content-bottom-right-arrow-a3c5270d-balabala-1783264824576.svg
similarity index 100%
rename from docs/assets/content-bottom-right-arrow-a3c5270d-balabala-1783244194656.svg
rename to docs/assets/content-bottom-right-arrow-a3c5270d-balabala-1783264824576.svg
diff --git a/docs/assets/content-middle-line-162bc0d5-balabala-1783244194656.svg b/docs/assets/content-middle-line-162bc0d5-balabala-1783264824576.svg
similarity index 100%
rename from docs/assets/content-middle-line-162bc0d5-balabala-1783244194656.svg
rename to docs/assets/content-middle-line-162bc0d5-balabala-1783264824576.svg
diff --git a/docs/assets/device-74309daf-balabala-1783244194656.png b/docs/assets/device-74309daf-balabala-1783244194656.png
deleted file mode 100644
index e0d62ee..0000000
Binary files a/docs/assets/device-74309daf-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/focus_bg-b6803e2d-balabala-1783244194656.png b/docs/assets/focus_bg-b6803e2d-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/focus_bg-b6803e2d-balabala-1783244194656.png
rename to docs/assets/focus_bg-b6803e2d-balabala-1783264824576.png
diff --git a/docs/assets/focus_move_bg-cf41417a-balabala-1783244194656.png b/docs/assets/focus_move_bg-cf41417a-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/focus_move_bg-cf41417a-balabala-1783244194656.png
rename to docs/assets/focus_move_bg-cf41417a-balabala-1783264824576.png
diff --git a/docs/assets/forest-a956b24c-balabala-1783244194656.png b/docs/assets/forest-a956b24c-balabala-1783244194656.png
deleted file mode 100644
index 87b1593..0000000
Binary files a/docs/assets/forest-a956b24c-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/grass-basic-b26948b5-balabala-1783244194656.png b/docs/assets/grass-basic-b26948b5-balabala-1783244194656.png
deleted file mode 100644
index 007a88d..0000000
Binary files a/docs/assets/grass-basic-b26948b5-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/grass-general-9f6c02e6-balabala-1783244194656.png b/docs/assets/grass-general-9f6c02e6-balabala-1783244194656.png
deleted file mode 100644
index b4c0807..0000000
Binary files a/docs/assets/grass-general-9f6c02e6-balabala-1783244194656.png and /dev/null differ
diff --git a/docs/assets/header-bg-65b38012-balabala-1783244194656.png b/docs/assets/header-bg-65b38012-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/header-bg-65b38012-balabala-1783244194656.png
rename to docs/assets/header-bg-65b38012-balabala-1783264824576.png
diff --git a/docs/assets/huiguang-3c5dfda5-balabala-1783244194656.png b/docs/assets/huiguang-3c5dfda5-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/huiguang-3c5dfda5-balabala-1783244194656.png
rename to docs/assets/huiguang-3c5dfda5-balabala-1783264824576.png
diff --git a/docs/assets/icon1-6f7c222f-balabala-1783244194656.png b/docs/assets/icon1-6f7c222f-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/icon1-6f7c222f-balabala-1783244194656.png
rename to docs/assets/icon1-6f7c222f-balabala-1783264824576.png
diff --git a/docs/assets/icon2-4f77ccec-balabala-1783244194656.png b/docs/assets/icon2-4f77ccec-balabala-1783264824576.png
similarity index 100%
rename from docs/assets/icon2-4f77ccec-balabala-1783244194656.png
rename to docs/assets/icon2-4f77ccec-balabala-1783264824576.png
diff --git a/docs/assets/index-1783244194656.js b/docs/assets/index-1783264824576.js
similarity index 66%
rename from docs/assets/index-1783244194656.js
rename to docs/assets/index-1783264824576.js
index cabaaa2..5a9fb06 100644
--- a/docs/assets/index-1783244194656.js
+++ b/docs/assets/index-1783264824576.js
@@ -1,28 +1,28 @@
-var GO=Object.defineProperty,FO=Object.defineProperties;var HO=Object.getOwnPropertyDescriptors;var rS=Object.getOwnPropertySymbols;var WO=Object.prototype.hasOwnProperty,$O=Object.prototype.propertyIsEnumerable;var nS=(r,t,e)=>t in r?GO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,iS=(r,t)=>{for(var e in t||(t={}))WO.call(t,e)&&nS(r,e,t[e]);if(rS)for(var e of rS(t))$O.call(t,e)&&nS(r,e,t[e]);return r},aS=(r,t)=>FO(r,HO(t));var vl=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(u){i(u)}},o=l=>{try{s(e.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=e(i);fetch(i.href,a)}})();/**
+var qO=Object.defineProperty,KO=Object.defineProperties;var jO=Object.getOwnPropertyDescriptors;var lS=Object.getOwnPropertySymbols;var JO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable;var uS=(r,t,e)=>t in r?qO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,fS=(r,t)=>{for(var e in t||(t={}))JO.call(t,e)&&uS(r,e,t[e]);if(lS)for(var e of lS(t))QO.call(t,e)&&uS(r,e,t[e]);return r},cS=(r,t)=>KO(r,jO(t));var vl=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(u){i(u)}},o=l=>{try{s(e.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function e(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=e(i);fetch(i.href,a)}})();/**
* @vue/shared v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/function p0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ie={},bs=[],sn=()=>{},vD=()=>!1,Tv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Av=r=>r.startsWith("onUpdate:"),Me=Object.assign,g0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},UO=Object.prototype.hasOwnProperty,jt=(r,t)=>UO.call(r,t),It=Array.isArray,ws=r=>hf(r)==="[object Map]",Cv=r=>hf(r)==="[object Set]",oS=r=>hf(r)==="[object Date]",Ot=r=>typeof r=="function",xe=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",dD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),pD=Object.prototype.toString,hf=r=>pD.call(r),YO=r=>hf(r).slice(8,-1),gD=r=>hf(r)==="[object Object]",Mv=r=>xe(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,ou=p0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},ZO=/-\w/g,ir=Dv(r=>r.replace(ZO,t=>t.slice(1).toUpperCase())),XO=/\B([A-Z])/g,va=Dv(r=>r.replace(XO,"-$1").toLowerCase()),Iv=Dv(r=>r.charAt(0).toUpperCase()+r.slice(1)),Md=Dv(r=>r?`on${Iv(r)}`:""),Pn=(r,t)=>!Object.is(r,t),Wc=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Lv=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let sS;const Pv=()=>sS||(sS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function y0(r){if(It(r)){const t={};for(let e=0;e{if(e){const n=e.split(KO);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function m0(r){let t="";if(xe(r))t=r;else if(It(r))for(let e=0;evf(e,t))}const _D=r=>!!(r&&r.__v_isRef===!0),nN=r=>xe(r)?r:r==null?"":It(r)||re(r)&&(r.toString===pD||!Ot(r.toString))?_D(r)?nN(r.value):JSON.stringify(r,SD,2):String(r),SD=(r,t)=>_D(t)?SD(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[Dd(n,a)+" =>"]=i,e),{})}:Cv(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Dd(e))}:Ir(t)?Dd(t):re(t)&&!It(t)&&!gD(t)?String(t):t,Dd=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
+**/function S0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const ie={},bs=[],sn=()=>{},xD=()=>!1,Mv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Dv=r=>r.startsWith("onUpdate:"),Me=Object.assign,x0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},tN=Object.prototype.hasOwnProperty,jt=(r,t)=>tN.call(r,t),It=Array.isArray,ws=r=>vf(r)==="[object Map]",Iv=r=>vf(r)==="[object Set]",hS=r=>vf(r)==="[object Date]",Ot=r=>typeof r=="function",ye=r=>typeof r=="string",Ir=r=>typeof r=="symbol",re=r=>r!==null&&typeof r=="object",bD=r=>(re(r)||Ot(r))&&Ot(r.then)&&Ot(r.catch),wD=Object.prototype.toString,vf=r=>wD.call(r),eN=r=>vf(r).slice(8,-1),TD=r=>vf(r)==="[object Object]",Lv=r=>ye(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,ou=S0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},rN=/-\w/g,ar=Pv(r=>r.replace(rN,t=>t.slice(1).toUpperCase())),nN=/\B([A-Z])/g,va=Pv(r=>r.replace(nN,"-$1").toLowerCase()),Rv=Pv(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ld=Pv(r=>r?`on${Rv(r)}`:""),Pn=(r,t)=>!Object.is(r,t),Uc=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Ev=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let vS;const kv=()=>vS||(vS=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function b0(r){if(It(r)){const t={};for(let e=0;e{if(e){const n=e.split(aN);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function w0(r){let t="";if(ye(r))t=r;else if(It(r))for(let e=0;edf(e,t))}const MD=r=>!!(r&&r.__v_isRef===!0),hN=r=>ye(r)?r:r==null?"":It(r)||re(r)&&(r.toString===wD||!Ot(r.toString))?MD(r)?hN(r.value):JSON.stringify(r,DD,2):String(r),DD=(r,t)=>MD(t)?DD(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],a)=>(e[Pd(n,a)+" =>"]=i,e),{})}:Iv(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Pd(e))}:Ir(t)?Pd(t):re(t)&&!It(t)&&!TD(t)?String(t):t,Pd=(r,t="")=>{var e;return Ir(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
* @vue/reactivity v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let cr;class iN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0&&--this._on===0&&(cr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e0)return;if(lu){let t=lu;for(lu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;su;){let t=su;for(su=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function TD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function AD(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),x0(n),oN(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function cy(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(CD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function CD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Lu)||(r.globalVersion=Lu,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!cy(r))))return;r.flags|=2;const t=r.dep,e=se,n=ln;se=r,ln=!0;try{TD(r);const i=r.fn(r._value);(t.version===0||Pn(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,ln=n,AD(r),r.flags&=-3}}function x0(r,t=!1){const{dep:e,prevSub:n,nextSub:i}=r;if(n&&(n.nextSub=i,r.prevSub=void 0),i&&(i.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)x0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function oN(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let ln=!0;const MD=[];function hi(){MD.push(ln),ln=!1}function vi(){const r=MD.pop();ln=r===void 0?!0:r}function lS(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Lu=0;class sN{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class b0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!ln||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new sN(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,DD(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,Lu++,this.notify(t)}notify(t){_0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{S0()}}}function DD(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)DD(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const yh=new WeakMap,co=Symbol(""),hy=Symbol(""),Pu=Symbol("");function Ze(r,t,e){if(ln&&se){let n=yh.get(r);n||yh.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new b0),i.map=n,i.key=e),i.track()}}function ni(r,t,e,n,i,a){const o=yh.get(r);if(!o){Lu++;return}const s=l=>{l&&l.trigger()};if(_0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Mv(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Pu||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Pu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(co)),ws(r)&&s(o.get(hy)));break;case"delete":l||(s(o.get(co)),ws(r)&&s(o.get(hy)));break;case"set":ws(r)&&s(o.get(co));break}}S0()}function lN(r,t){const e=yh.get(r);return e&&e.get(t)}function Ho(r){const t=Xt(r);return t===r?t:(Ze(t,"iterate",Pu),Ar(r)?t:t.map(hn))}function Rv(r){return Ze(r=Xt(r),"iterate",Pu),r}function In(r,t){return di(r)?ks(ho(r)?hn(t):t):hn(t)}const uN={__proto__:null,[Symbol.iterator](){return Ld(this,Symbol.iterator,r=>In(this,r))},concat(...r){return Ho(this).concat(...r.map(t=>It(t)?Ho(t):t))},entries(){return Ld(this,"entries",r=>(r[1]=In(this,r[1]),r))},every(r,t){return Xn(this,"every",r,t,void 0,arguments)},filter(r,t){return Xn(this,"filter",r,t,e=>e.map(n=>In(this,n)),arguments)},find(r,t){return Xn(this,"find",r,t,e=>In(this,e),arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,e=>In(this,e),arguments)},findLastIndex(r,t){return Xn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Xn(this,"forEach",r,t,void 0,arguments)},includes(...r){return Pd(this,"includes",r)},indexOf(...r){return Pd(this,"indexOf",r)},join(r){return Ho(this).join(r)},lastIndexOf(...r){return Pd(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return dl(this,"pop")},push(...r){return dl(this,"push",r)},reduce(r,...t){return uS(this,"reduce",r,t)},reduceRight(r,...t){return uS(this,"reduceRight",r,t)},shift(){return dl(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return dl(this,"splice",r)},toReversed(){return Ho(this).toReversed()},toSorted(r){return Ho(this).toSorted(r)},toSpliced(...r){return Ho(this).toSpliced(...r)},unshift(...r){return dl(this,"unshift",r)},values(){return Ld(this,"values",r=>In(this,r))}};function Ld(r,t,e){const n=Rv(r),i=n[t]();return n!==r&&!Ar(r)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=e(a.value)),a}),i}const fN=Array.prototype;function Xn(r,t,e,n,i,a){const o=Rv(r),s=o!==r&&!Ar(r),l=o[t];if(l!==fN[t]){const c=l.apply(r,a);return s?hn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,In(r,c),h,r)}:e.length>2&&(u=function(c,h){return e.call(this,c,h,r)}));const f=l.call(o,u,n);return s&&i?i(f):f}function uS(r,t,e,n){const i=Rv(r),a=i!==r&&!Ar(r);let o=e,s=!1;i!==r&&(a?(s=n.length===0,o=function(u,f,c){return s&&(s=!1,u=In(r,u)),e.call(this,u,In(r,f),c,r)}):e.length>3&&(o=function(u,f,c){return e.call(this,u,f,c,r)}));const l=i[t](o,...n);return s?In(r,l):l}function Pd(r,t,e){const n=Xt(r);Ze(n,"iterate",Pu);const i=n[t](...e);return(i===-1||i===!1)&&kv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function dl(r,t,e=[]){hi(),_0();const n=Xt(r)[t].apply(r,e);return S0(),vi(),n}const cN=p0("__proto__,__v_isRef,__isVue"),ID=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function hN(r){Ir(r)||(r=String(r));const t=Xt(this);return Ze(t,"has",r),t.hasOwnProperty(r)}class LD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if(e==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(i?a?bN:kD:a?ED:RD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=uN[e]))return l;if(e==="hasOwnProperty")return hN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?ID.has(e):cN(e))||(i||Ze(t,"get",e),a))return s;if(ke(s)){const l=o&&Mv(e)?s:s.value;return i&&re(l)?dy(l):l}return re(s)?i?dy(s):Ev(s):s}}class PD extends LD{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Mv(e);if(!this._isShallow){const u=di(a);if(!Ar(n)&&!di(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)r,Vf=r=>Reflect.getPrototypeOf(r);function yN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=ws(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?vy:t?ks:hn;return!t&&Ze(a,"iterate",l?hy:co),Me(Object.create(u),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}}})}}function Bf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function mN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(Pn(i,s)&&Ze(o,"get",i),Ze(o,"get",s));const{has:l}=Vf(o),u=t?vy:r?ks:hn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!r&&Ze(Xt(i),"iterate",co),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(Pn(i,s)&&Ze(o,"has",i),Ze(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Xt(s),u=t?vy:r?ks:hn;return!r&&Ze(l,"iterate",co),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:Bf("add"),set:Bf("set"),delete:Bf("delete"),clear:Bf("clear")}:{add(i){const a=Xt(this),o=Vf(a),s=Xt(i),l=!t&&!Ar(i)&&!di(i)?s:i;return o.has.call(a,l)||Pn(i,l)&&o.has.call(a,i)||Pn(s,l)&&o.has.call(a,s)||(a.add(l),ni(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!di(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=Vf(o);let u=s.call(o,i);u||(i=Xt(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Pn(a,f)&&ni(o,"set",i,a):ni(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=Vf(a);let l=o.call(a,i);l||(i=Xt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ni(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&ni(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=yN(i,r,t)}),e}function w0(r,t){const e=mN(r,t);return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(jt(e,i)&&i in n?e:n,i,a)}const _N={get:w0(!1,!1)},SN={get:w0(!1,!0)},xN={get:w0(!0,!1)};const RD=new WeakMap,ED=new WeakMap,kD=new WeakMap,bN=new WeakMap;function wN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function TN(r){return r.__v_skip||!Object.isExtensible(r)?0:wN(YO(r))}function Ev(r){return di(r)?r:T0(r,!1,dN,_N,RD)}function OD(r){return T0(r,!1,gN,SN,ED)}function dy(r){return T0(r,!0,pN,xN,kD)}function T0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const a=TN(r);if(a===0)return r;const o=i.get(r);if(o)return o;const s=new Proxy(r,a===2?n:e);return i.set(r,s),s}function ho(r){return di(r)?ho(r.__v_raw):!!(r&&r.__v_isReactive)}function di(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function kv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function AN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&yD(r,"__v_skip",!0),r}const hn=r=>re(r)?Ev(r):r,ks=r=>re(r)?dy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function $c(r){return ND(r,!1)}function CN(r){return ND(r,!0)}function ND(r,t){return ke(r)?r:new MN(r,t)}class MN{constructor(t,e){this.dep=new b0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:hn(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Ar(t)||di(t);t=n?t:Xt(t),Pn(t,e)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function vo(r){return ke(r)?r.value:r}const DN={get:(r,t,e)=>t==="__v_raw"?r:vo(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const i=r[t];return ke(i)&&!ke(e)?(i.value=e,!0):Reflect.set(r,t,e,n)}};function VD(r){return ho(r)?r:new Proxy(r,DN)}function xit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=LN(r,e);return t}class IN{constructor(t,e,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ir(e)?e:String(e),this._raw=Xt(t);let i=!0,a=t;if(!It(t)||Ir(this._key)||!Mv(this._key))do i=!kv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=vo(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ke(this._raw[this._key])){const e=this._object[this._key];if(ke(e)){e.value=t;return}}this._object[this._key]=t}get dep(){return lN(this._raw,this._key)}}function LN(r,t,e){return new IN(r,t,e)}class PN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new b0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return wD(this,!0),!0}get value(){const t=this.dep.track();return CD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function RN(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new PN(n,i,e)}const zf={},mh=new WeakMap;let Wa;function EN(r,t=!1,e=Wa){if(e){let n=mh.get(e);n||mh.set(e,n=[]),n.push(r)}}function kN(r,t,e=ie){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?ii(S,1):ii(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):ho(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>ho(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(ho(S))return u(S);if(Ot(S))return l?l(S,2):S()})):Ot(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){hi();try{h()}finally{vi()}}const S=Wa;Wa=f;try{return l?l(r,3,[v]):r(v)}finally{Wa=S}}:c=sn,t&&i){const S=c,x=i===!0?1/0:i;c=()=>ii(S(),x)}const g=aN(),y=()=>{f.stop(),g&&g.active&&g0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{S(...x),y()}}let m=p?new Array(r.length).fill(zf):zf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(i||d||(p?x.some((b,w)=>Pn(b,m[w])):Pn(x,m))){h&&h();const b=Wa;Wa=f;try{const w=[x,m===zf?void 0:p&&m[0]===zf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{Wa=b}}}else f.run()};return s&&s(_),f=new xD(c),f.scheduler=o?()=>o(_,!1):_,v=S=>EN(S,!1,f),h=f.onStop=()=>{const S=mh.get(f);if(S){if(l)l(S,4);else for(const x of S)x();mh.delete(f)}},t?n?_(!0):m=f.run():o?o(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function ii(r,t=1/0,e){if(t<=0||!re(r)||r.__v_skip||(e=e||new Map,(e.get(r)||0)>=t))return r;if(e.set(r,t),t--,ke(r))ii(r.value,t,e);else if(It(r))for(let n=0;n{ii(n,t,e)});else if(gD(r)){for(const n in r)ii(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&ii(r[n],t,e)}return r}/**
+**/let cr;class vN{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=cr,!t&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0&&--this._on===0&&(cr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e0)return;if(lu){let t=lu;for(lu=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;su;){let t=su;for(su=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function RD(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ED(r){let t,e=r.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),C0(n),pN(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}r.deps=t,r.depsTail=e}function dy(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function kD(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Pu)||(r.globalVersion=Pu,!r.isSSR&&r.flags&128&&(!r.deps&&!r._dirty||!dy(r))))return;r.flags|=2;const t=r.dep,e=se,n=ln;se=r,ln=!0;try{RD(r);const i=r.fn(r._value);(t.version===0||Pn(i,r._value))&&(r.flags|=128,r._value=i,t.version++)}catch(i){throw t.version++,i}finally{se=e,ln=n,ED(r),r.flags&=-3}}function C0(r,t=!1){const{dep:e,prevSub:n,nextSub:i}=r;if(n&&(n.nextSub=i,r.prevSub=void 0),i&&(i.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)C0(a,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function pN(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let ln=!0;const OD=[];function hi(){OD.push(ln),ln=!1}function vi(){const r=OD.pop();ln=r===void 0?!0:r}function dS(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=se;se=void 0;try{t()}finally{se=e}}}let Pu=0;class gN{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class M0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!ln||se===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==se)e=this.activeLink=new gN(se,this),se.deps?(e.prevDep=se.depsTail,se.depsTail.nextDep=e,se.depsTail=e):se.deps=se.depsTail=e,ND(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=se.depsTail,e.nextDep=void 0,se.depsTail.nextDep=e,se.depsTail=e,se.deps===e&&(se.deps=n)}return e}trigger(t){this.version++,Pu++,this.notify(t)}notify(t){T0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{A0()}}}function ND(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ND(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Sh=new WeakMap,co=Symbol(""),py=Symbol(""),Ru=Symbol("");function Xe(r,t,e){if(ln&&se){let n=Sh.get(r);n||Sh.set(r,n=new Map);let i=n.get(e);i||(n.set(e,i=new M0),i.map=n,i.key=e),i.track()}}function ni(r,t,e,n,i,a){const o=Sh.get(r);if(!o){Pu++;return}const s=l=>{l&&l.trigger()};if(T0(),t==="clear")o.forEach(s);else{const l=It(r),u=l&&Lv(e);if(l&&e==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Ru||!Ir(h)&&h>=f)&&s(c)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Ru)),t){case"add":l?u&&s(o.get("length")):(s(o.get(co)),ws(r)&&s(o.get(py)));break;case"delete":l||(s(o.get(co)),ws(r)&&s(o.get(py)));break;case"set":ws(r)&&s(o.get(co));break}}A0()}function yN(r,t){const e=Sh.get(r);return e&&e.get(t)}function Ho(r){const t=Xt(r);return t===r?t:(Xe(t,"iterate",Ru),Ar(r)?t:t.map(hn))}function Ov(r){return Xe(r=Xt(r),"iterate",Ru),r}function In(r,t){return di(r)?ks(ho(r)?hn(t):t):hn(t)}const mN={__proto__:null,[Symbol.iterator](){return Ed(this,Symbol.iterator,r=>In(this,r))},concat(...r){return Ho(this).concat(...r.map(t=>It(t)?Ho(t):t))},entries(){return Ed(this,"entries",r=>(r[1]=In(this,r[1]),r))},every(r,t){return Xn(this,"every",r,t,void 0,arguments)},filter(r,t){return Xn(this,"filter",r,t,e=>e.map(n=>In(this,n)),arguments)},find(r,t){return Xn(this,"find",r,t,e=>In(this,e),arguments)},findIndex(r,t){return Xn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Xn(this,"findLast",r,t,e=>In(this,e),arguments)},findLastIndex(r,t){return Xn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Xn(this,"forEach",r,t,void 0,arguments)},includes(...r){return kd(this,"includes",r)},indexOf(...r){return kd(this,"indexOf",r)},join(r){return Ho(this).join(r)},lastIndexOf(...r){return kd(this,"lastIndexOf",r)},map(r,t){return Xn(this,"map",r,t,void 0,arguments)},pop(){return dl(this,"pop")},push(...r){return dl(this,"push",r)},reduce(r,...t){return pS(this,"reduce",r,t)},reduceRight(r,...t){return pS(this,"reduceRight",r,t)},shift(){return dl(this,"shift")},some(r,t){return Xn(this,"some",r,t,void 0,arguments)},splice(...r){return dl(this,"splice",r)},toReversed(){return Ho(this).toReversed()},toSorted(r){return Ho(this).toSorted(r)},toSpliced(...r){return Ho(this).toSpliced(...r)},unshift(...r){return dl(this,"unshift",r)},values(){return Ed(this,"values",r=>In(this,r))}};function Ed(r,t,e){const n=Ov(r),i=n[t]();return n!==r&&!Ar(r)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=e(a.value)),a}),i}const _N=Array.prototype;function Xn(r,t,e,n,i,a){const o=Ov(r),s=o!==r&&!Ar(r),l=o[t];if(l!==_N[t]){const c=l.apply(r,a);return s?hn(c):c}let u=e;o!==r&&(s?u=function(c,h){return e.call(this,In(r,c),h,r)}:e.length>2&&(u=function(c,h){return e.call(this,c,h,r)}));const f=l.call(o,u,n);return s&&i?i(f):f}function pS(r,t,e,n){const i=Ov(r),a=i!==r&&!Ar(r);let o=e,s=!1;i!==r&&(a?(s=n.length===0,o=function(u,f,c){return s&&(s=!1,u=In(r,u)),e.call(this,u,In(r,f),c,r)}):e.length>3&&(o=function(u,f,c){return e.call(this,u,f,c,r)}));const l=i[t](o,...n);return s?In(r,l):l}function kd(r,t,e){const n=Xt(r);Xe(n,"iterate",Ru);const i=n[t](...e);return(i===-1||i===!1)&&Vv(e[0])?(e[0]=Xt(e[0]),n[t](...e)):i}function dl(r,t,e=[]){hi(),T0();const n=Xt(r)[t].apply(r,e);return A0(),vi(),n}const SN=S0("__proto__,__v_isRef,__isVue"),VD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function xN(r){Ir(r)||(r=String(r));const t=Xt(this);return Xe(t,"has",r),t.hasOwnProperty(r)}class BD{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if(e==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(i?a?PN:HD:a?FD:GD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=mN[e]))return l;if(e==="hasOwnProperty")return xN}const s=Reflect.get(t,e,ke(t)?t:n);if((Ir(e)?VD.has(e):SN(e))||(i||Xe(t,"get",e),a))return s;if(ke(s)){const l=o&&Lv(e)?s:s.value;return i&&re(l)?yy(l):l}return re(s)?i?yy(s):Nv(s):s}}class zD extends BD{constructor(t=!1){super(!1,t)}set(t,e,n,i){let a=t[e];const o=It(t)&&Lv(e);if(!this._isShallow){const u=di(a);if(!Ar(n)&&!di(n)&&(a=Xt(a),n=Xt(n)),!o&&ke(a)&&!ke(n))return u||(a.value=n),!0}const s=o?Number(e)r,Bf=r=>Reflect.getPrototypeOf(r);function CN(r,t,e){return function(...n){const i=this.__v_raw,a=Xt(i),o=ws(a),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=i[r](...n),f=e?gy:t?ks:hn;return!t&&Xe(a,"iterate",l?py:co),Me(Object.create(u),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}}})}}function zf(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function MN(r,t){const e={get(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);r||(Pn(i,s)&&Xe(o,"get",i),Xe(o,"get",s));const{has:l}=Bf(o),u=t?gy:r?ks:hn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!r&&Xe(Xt(i),"iterate",co),i.size},has(i){const a=this.__v_raw,o=Xt(a),s=Xt(i);return r||(Pn(i,s)&&Xe(o,"has",i),Xe(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Xt(s),u=t?gy:r?ks:hn;return!r&&Xe(l,"iterate",co),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Me(e,r?{add:zf("add"),set:zf("set"),delete:zf("delete"),clear:zf("clear")}:{add(i){const a=Xt(this),o=Bf(a),s=Xt(i),l=!t&&!Ar(i)&&!di(i)?s:i;return o.has.call(a,l)||Pn(i,l)&&o.has.call(a,i)||Pn(s,l)&&o.has.call(a,s)||(a.add(l),ni(a,"add",l,l)),this},set(i,a){!t&&!Ar(a)&&!di(a)&&(a=Xt(a));const o=Xt(this),{has:s,get:l}=Bf(o);let u=s.call(o,i);u||(i=Xt(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?Pn(a,f)&&ni(o,"set",i,a):ni(o,"add",i,a),this},delete(i){const a=Xt(this),{has:o,get:s}=Bf(a);let l=o.call(a,i);l||(i=Xt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ni(a,"delete",i,void 0),u},clear(){const i=Xt(this),a=i.size!==0,o=i.clear();return a&&ni(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=CN(i,r,t)}),e}function D0(r,t){const e=MN(r,t);return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(jt(e,i)&&i in n?e:n,i,a)}const DN={get:D0(!1,!1)},IN={get:D0(!1,!0)},LN={get:D0(!0,!1)};const GD=new WeakMap,FD=new WeakMap,HD=new WeakMap,PN=new WeakMap;function RN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EN(r){return r.__v_skip||!Object.isExtensible(r)?0:RN(eN(r))}function Nv(r){return di(r)?r:I0(r,!1,wN,DN,GD)}function WD(r){return I0(r,!1,AN,IN,FD)}function yy(r){return I0(r,!0,TN,LN,HD)}function I0(r,t,e,n,i){if(!re(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const a=EN(r);if(a===0)return r;const o=i.get(r);if(o)return o;const s=new Proxy(r,a===2?n:e);return i.set(r,s),s}function ho(r){return di(r)?ho(r.__v_raw):!!(r&&r.__v_isReactive)}function di(r){return!!(r&&r.__v_isReadonly)}function Ar(r){return!!(r&&r.__v_isShallow)}function Vv(r){return r?!!r.__v_raw:!1}function Xt(r){const t=r&&r.__v_raw;return t?Xt(t):r}function kN(r){return!jt(r,"__v_skip")&&Object.isExtensible(r)&&AD(r,"__v_skip",!0),r}const hn=r=>re(r)?Nv(r):r,ks=r=>re(r)?yy(r):r;function ke(r){return r?r.__v_isRef===!0:!1}function Yc(r){return $D(r,!1)}function ON(r){return $D(r,!0)}function $D(r,t){return ke(r)?r:new NN(r,t)}class NN{constructor(t,e){this.dep=new M0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Xt(t),this._value=e?t:hn(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||Ar(t)||di(t);t=n?t:Xt(t),Pn(t,e)&&(this._rawValue=t,this._value=n?t:hn(t),this.dep.trigger())}}function vo(r){return ke(r)?r.value:r}const VN={get:(r,t,e)=>t==="__v_raw"?r:vo(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const i=r[t];return ke(i)&&!ke(e)?(i.value=e,!0):Reflect.set(r,t,e,n)}};function UD(r){return ho(r)?r:new Proxy(r,VN)}function Pit(r){const t=It(r)?new Array(r.length):{};for(const e in r)t[e]=zN(r,e);return t}class BN{constructor(t,e,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Ir(e)?e:String(e),this._raw=Xt(t);let i=!0,a=t;if(!It(t)||Ir(this._key)||!Lv(this._key))do i=!Vv(a)||Ar(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=vo(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ke(this._raw[this._key])){const e=this._object[this._key];if(ke(e)){e.value=t;return}}this._object[this._key]=t}get dep(){return yN(this._raw,this._key)}}function zN(r,t,e){return new BN(r,t,e)}class GN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new M0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return PD(this,!0),!0}get value(){const t=this.dep.track();return kD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FN(r,t,e=!1){let n,i;return Ot(r)?n=r:(n=r.get,i=r.set),new GN(n,i,e)}const Gf={},xh=new WeakMap;let Wa;function HN(r,t=!1,e=Wa){if(e){let n=xh.get(e);n||xh.set(e,n=[]),n.push(r)}}function WN(r,t,e=ie){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=e,u=S=>i?S:Ar(S)||i===!1||i===0?ii(S,1):ii(S);let f,c,h,v,d=!1,p=!1;if(ke(r)?(c=()=>r.value,d=Ar(r)):ho(r)?(c=()=>u(r),d=!0):It(r)?(p=!0,d=r.some(S=>ho(S)||Ar(S)),c=()=>r.map(S=>{if(ke(S))return S.value;if(ho(S))return u(S);if(Ot(S))return l?l(S,2):S()})):Ot(r)?t?c=l?()=>l(r,2):r:c=()=>{if(h){hi();try{h()}finally{vi()}}const S=Wa;Wa=f;try{return l?l(r,3,[v]):r(v)}finally{Wa=S}}:c=sn,t&&i){const S=c,x=i===!0?1/0:i;c=()=>ii(S(),x)}const g=dN(),y=()=>{f.stop(),g&&g.active&&x0(g.effects,f)};if(a&&t){const S=t;t=(...x)=>{S(...x),y()}}let m=p?new Array(r.length).fill(Gf):Gf;const _=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(t){const x=f.run();if(i||d||(p?x.some((b,w)=>Pn(b,m[w])):Pn(x,m))){h&&h();const b=Wa;Wa=f;try{const w=[x,m===Gf?void 0:p&&m[0]===Gf?[]:m,v];m=x,l?l(t,3,w):t(...w)}finally{Wa=b}}}else f.run()};return s&&s(_),f=new ID(c),f.scheduler=o?()=>o(_,!1):_,v=S=>HN(S,!1,f),h=f.onStop=()=>{const S=xh.get(f);if(S){if(l)l(S,4);else for(const x of S)x();xh.delete(f)}},t?n?_(!0):m=f.run():o?o(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function ii(r,t=1/0,e){if(t<=0||!re(r)||r.__v_skip||(e=e||new Map,(e.get(r)||0)>=t))return r;if(e.set(r,t),t--,ke(r))ii(r.value,t,e);else if(It(r))for(let n=0;n{ii(n,t,e)});else if(TD(r)){for(const n in r)ii(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&ii(r[n],t,e)}return r}/**
* @vue/runtime-core v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/function df(r,t,e,n){try{return n?r(...n):r()}catch(i){pf(i,t,e)}}function Gn(r,t,e,n){if(Ot(r)){const i=df(r,t,e,n);return i&&dD(i)&&i.catch(a=>{pf(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a>>1,i=nr[n],a=Ru(i);a=Ru(e)?nr.push(r):nr.splice(NN(t),0,r),r.flags|=1,zD()}}function zD(){_h||(_h=BD.then(FD))}function VN(r){It(r)?Ts.push(...r):Gi&&r.id===-1?Gi.splice(cs+1,0,r):r.flags&1||(Ts.push(r),r.flags|=1),zD()}function fS(r,t,e=Mn+1){for(;eRu(e)-Ru(n));if(Ts.length=0,Gi){Gi.push(...t);return}for(Gi=t,cs=0;csr.id==null?r.flags&2?-1:1/0:r.id;function FD(r){const t=sn;try{for(Mn=0;Mn{n._d&&Th(-1);const a=Sh(t);let o;try{o=r(...i)}finally{Sh(a),n._d&&Th(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function bit(r,t){if(Ve===null)return r;const e=Bv(Ve),n=r.dirs||(r.dirs=[]);for(let i=0;i1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const zN=Symbol.for("v-scx"),GN=()=>un(zN);function wit(r,t){return M0(r,null,t)}function Yc(r,t,e){return M0(r,t,e)}function M0(r,t,e=ie){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Ns){if(a==="sync"){const v=GN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=sn,v.resume=sn,v.pause=sn,v}}const f=Ne;s.call=(v,d,p)=>Gn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{fr(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():C0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=kN(r,t,s);return Ns&&(u?u.push(h):l&&h()),h}function FN(r,t,e){const n=this.proxy,i=xe(r)?r.includes(".")?WD(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=gf(this),s=M0(i,a.bind(n),e);return o(),s}function WD(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;ir.__isTeleport,$N=Symbol("_leaveCb");function D0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,D0(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function I0(r,t){return Ot(r)?(()=>Me({name:r.name},t,{setup:r}))():r}function L0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function cS(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const xh=new WeakMap;function uu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>uu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(As(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&uu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?Bv(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ie?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ie?vD:p=>cS(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&cS(f,g));if(u!=null&&u!==l){if(hS(t),xe(u))f[u]=null,v(u)&&(c[u]=null);else if(ke(u)){const p=t;d(u,p.k)&&(u.value=null),p.k&&(f[p.k]=null)}}if(Ot(l))df(l,s,12,[o,f]);else{const p=xe(l),g=ke(l);if(p||g){const y=()=>{if(r.f){const m=p?v(l)?c[l]:f[l]:d()||!r.k?l.value:f[r.k];if(i)It(m)&&g0(m,a);else if(It(m))m.includes(a)||m.push(a);else if(p)f[l]=[a],v(l)&&(c[l]=f[l]);else{const _=[a];d(l,r.k)&&(l.value=_),r.k&&(f[r.k]=_)}}else p?(f[l]=o,v(l)&&(c[l]=o)):g&&(d(l,r.k)&&(l.value=o),r.k&&(f[r.k]=o))};if(o){const m=()=>{y(),xh.delete(r)};m.id=-1,xh.set(r,m),fr(m,e)}else hS(r),y()}}}function hS(r){const t=xh.get(r);t&&(t.flags|=8,xh.delete(r))}const vS=r=>r.nodeType===8;Pv().requestIdleCallback;Pv().cancelIdleCallback;function UN(r,t){if(vS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(vS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const As=r=>!!r.type.__asyncLoader;function Tit(r){Ot(r)&&(r={loader:r});const{loader:t,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=r;let u=null,f,c=0;const h=()=>(c++,u=null,v()),v=()=>{let d;return u||(d=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,y)=>{l(p,()=>g(h()),()=>y(p),c+1)});throw p}).then(p=>d!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return I0({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(d,p,g){let y=!1;(p.bu||(p.bu=[])).push(()=>y=!0);const m=()=>{y||g()},_=a?()=>{const S=a(m,x=>UN(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ne;if(L0(d),f)return()=>Gf(f,d);const p=_=>{u=null,pf(_,d,13,!n)};if(s&&d.suspense||Ns)return v().then(_=>()=>Gf(_,d)).catch(_=>(p(_),()=>n?Pe(n,{error:_}):null));const g=$c(!1),y=$c(),m=$c(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!y.value){const _=new Error(`Async component timed out after ${o}ms.`);p(_),y.value=_}},o),v().then(()=>{g.value=!0,d.parent&&P0(d.parent.vnode)&&d.parent.update()}).catch(_=>{p(_),y.value=_}),()=>{if(g.value&&f)return Gf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Gf(e,d)}}})}function Gf(r,t){const{ref:e,props:n,children:i,ce:a}=t.vnode,o=Pe(r,n,i);return o.ref=e,o.ce=a,delete t.vnode.ce,o}const P0=r=>r.type.__isKeepAlive;function YN(r,t){$D(r,"a",t)}function ZN(r,t){$D(r,"da",t)}function $D(r,t,e=Ne){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Ov(t,n,e),e){let i=e.parent;for(;i&&i.parent;)P0(i.parent.vnode)&&XN(n,t,e,i),i=i.parent}}function XN(r,t,e,n){const i=Ov(t,r,n,!0);UD(()=>{g0(n[t],i)},e)}function Ov(r,t,e=Ne,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{hi();const s=gf(e),l=Gn(t,e,r,o);return s(),vi(),l});return n?i.unshift(a):i.push(a),a}}const wi=r=>(t,e=Ne)=>{(!Ns||r==="sp")&&Ov(r,(...n)=>t(...n),e)},qN=wi("bm"),KN=wi("m"),jN=wi("bu"),JN=wi("u"),QN=wi("bum"),UD=wi("um"),tV=wi("sp"),eV=wi("rtg"),rV=wi("rtc");function nV(r,t=Ne){Ov("ec",r,t)}const YD="components";function iV(r,t){return oV(YD,r,!0,t)||r}const aV=Symbol.for("v-ndc");function oV(r,t,e=!0,n=!1){const i=Ve||Ne;if(i){const a=i.type;if(r===YD){const s=YV(a,!1);if(s&&(s===t||s===ir(t)||s===Iv(ir(t))))return a}const o=dS(i[r]||a[r],t)||dS(i.appContext[r],t);return!o&&n?a:o}}function dS(r,t){return r&&(r[t]||r[ir(t)]||r[Iv(ir(t))])}function Ait(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||xe(r)){const s=o&&ho(r);let l=!1,u=!1;s&&(l=!Ar(r),u=di(r),r=Rv(r)),i=new Array(r.length);for(let f=0,c=r.length;ft(s,l,void 0,a&&a[l]));else{const s=Object.keys(r);i=new Array(s.length);for(let l=0,u=s.length;l0;return t!=="default"&&(e.name=t),wh(),Ah(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),wh();const o=a&&ZD(a(e)),s=e.key||o&&o.key,l=Ah(zr,{key:(s&&!Ir(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function ZD(r){return r.some(t=>ku(t)?!(t.type===pi||t.type===zr&&!ZD(t.children)):!0)?r:null}const py=r=>r?vI(r)?Bv(r):py(r.parent):null,fu=Me(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>py(r.parent),$root:r=>py(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>R0(r),$forceUpdate:r=>r.f||(r.f=()=>{C0(r.update)}),$nextTick:r=>r.n||(r.n=A0.bind(r.proxy)),$watch:r=>FN.bind(r)}),Rd=(r,t)=>r!==ie&&!r.__isScriptSetup&&jt(r,t),sV={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=r;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return a[t]}else{if(Rd(n,t))return o[t]=1,n[t];if(i!==ie&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ie&&jt(e,t))return o[t]=4,e[t];gy&&(o[t]=0)}}const u=fu[t];let f,c;if(u)return t==="$attrs"&&Ze(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ie&&jt(e,t))return o[t]=4,e[t];if(c=l.config.globalProperties,jt(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:i,ctx:a}=r;return Rd(i,t)?(i[t]=e,!0):n!==ie&&jt(n,t)?(n[t]=e,!0):jt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(a[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(e[s]||r!==ie&&s[0]!=="$"&&jt(r,s)||Rd(t,s)||jt(a,s)||jt(n,s)||jt(fu,s)||jt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:jt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function pS(r){return It(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let gy=!0;function lV(r){const t=R0(r),e=r.proxy,n=r.ctx;gy=!1,t.beforeCreate&&gS(t.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:x,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:I,directives:L,filters:P}=t;if(u&&uV(u,n,null),o)for(const V in o){const N=o[V];Ot(N)&&(n[V]=N.bind(e))}if(i){const V=i.call(e,e);re(V)&&(r.data=Ev(V))}if(gy=!0,a)for(const V in a){const N=a[V],z=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):sn,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):sn,q=nn({get:z,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)XD(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{Uc(N,V[N])})}f&&gS(f,r,"c");function O(V,N){It(N)?N.forEach(z=>V(z.bind(e))):N&&V(N.bind(e))}if(O(qN,c),O(KN,h),O(jN,v),O(JN,d),O(YN,p),O(ZN,g),O(nV,T),O(rV,b),O(eV,w),O(QN,m),O(UD,S),O(tV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:z=>e[N]=z,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===sn&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&L0(r)}function uV(r,t,e=sn){It(r)&&(r=yy(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=un(i.from||n,i.default,!0):a=un(i.from||n):a=un(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function gS(r,t,e){Gn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function XD(r,t,e,n){let i=n.includes(".")?WD(e,n):()=>e[n];if(xe(r)){const a=t[r];Ot(a)&&Yc(i,a)}else if(Ot(r))Yc(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>XD(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&Yc(i,a,r)}}function R0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(u=>bh(l,u,o,!0)),bh(l,t,o)),re(t)&&a.set(t,l),l}function bh(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&bh(r,a,e,!0),i&&i.forEach(o=>bh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=fV[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const fV={data:yS,props:mS,emits:mS,methods:Zl,computed:Zl,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Zl,directives:Zl,watch:hV,provide:yS,inject:cV};function yS(r,t){return t?r?function(){return Me(Ot(r)?r.call(this,this):r,Ot(t)?t.call(this,this):t)}:t:r}function cV(r,t){return Zl(yy(r),yy(t))}function yy(r){if(It(r)){const t={};for(let e=0;et==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${ir(t)}Modifiers`]||r[`${va(t)}Modifiers`];function gV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ie;let i=e;const a=t.startsWith("update:"),o=a&&pV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>xe(f)?f.trim():f)),o.number&&(i=e.map(Lv)));let s,l=n[s=Md(t)]||n[s=Md(ir(t))];!l&&a&&(l=n[s=Md(va(t))]),l&&Gn(l,r,6,i);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Gn(u,r,6,i)}}const yV=new WeakMap;function KD(r,t,e=!1){const n=e?yV:t.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!Ot(r)){const l=u=>{const f=KD(u,t,!0);f&&(s=!0,Me(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!a&&!s?(re(r)&&n.set(r,null),null):(It(a)?a.forEach(l=>o[l]=null):Me(o,a),re(r)&&n.set(r,o),o)}function Nv(r,t){return!r||!Tv(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,va(t))||jt(r,t))}function Ed(r){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:p}=r,g=Sh(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Ln(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Ln(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:mV(s)}}catch(S){cu.length=0,pf(S,r,1),y=Pe(pi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Av)&&(m=_V(m,a)),_=Os(_,m,!1,!0))}return e.dirs&&(_=Os(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&D0(_,e.transition),y=_,Sh(g),y}const mV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Tv(e))&&((t||(t={}))[e]=r[e]);return t},_V=(r,t)=>{const e={};for(const n in r)(!Av(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function SV(r,t,e){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?_S(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cObject.create(JD),tI=r=>Object.getPrototypeOf(r)===JD;function bV(r,t,e,n=!1){const i={},a=QD();r.propsDefaults=Object.create(null),eI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:OD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function wV(r,t,e,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=Xt(i),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=rI(c,t,!0);Me(o,h),v&&s.push(...v)};!e&&t.mixins.length&&t.mixins.forEach(f),r.extends&&f(r.extends),r.mixins&&r.mixins.forEach(f)}if(!a&&!l)return re(r)&&n.set(r,bs),bs;if(It(a))for(let f=0;fr==="_"||r==="_ctx"||r==="$stable",k0=r=>It(r)?r.map(Ln):[Ln(r)],AV=(r,t,e)=>{if(t._n)return t;const n=BN((...i)=>k0(t(...i)),e);return n._c=!1,n},nI=(r,t,e)=>{const n=r._ctx;for(const i in r){if(E0(i))continue;const a=r[i];if(Ot(a))t[i]=AV(i,a,n);else if(a!=null){const o=k0(a);t[i]=()=>o}}},iI=(r,t)=>{const e=k0(t);r.slots.default=()=>e},aI=(r,t,e)=>{for(const n in t)(e||!E0(n))&&(r[n]=t[n])},CV=(r,t,e)=>{const n=r.slots=QD();if(r.vnode.shapeFlag&32){const i=t._;i?(aI(n,t,e),e&&yD(n,"_",i,!0)):nI(t,n)}else t&&iI(r,t)},MV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ie;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:aI(i,t,e):(a=!t.$stable,nI(t,i)),o=t}else t&&(iI(r,t),o={default:1});if(a)for(const s in i)!E0(s)&&o[s]==null&&delete i[s]},fr=RV;function DV(r){return IV(r)}function IV(r,t){const e=Pv();e.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=sn,insertStaticContent:d}=r,p=(R,k,G,X=null,W=null,J=null,ot=void 0,ut=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!pl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:dt}=k;switch(rt){case Vv:g(R,k,G,X);break;case pi:y(R,k,G,X);break;case Zc:R==null&&m(k,G,X,ot);break;case zr:I(R,k,G,X,W,J,ot,ut,it);break;default:dt&1?x(R,k,G,X,W,J,ot,ut,it):dt&6?L(R,k,G,X,W,J,ot,ut,it):(dt&64||dt&128)&&rt.process(R,k,G,X,W,J,ot,ut,it,tt)}At!=null&&W?uu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&uu(R.ref,null,J,R,!0)},g=(R,k,G,X)=>{if(R==null)n(k.el=s(k.children),G,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,G,X)=>{R==null?n(k.el=l(k.children||""),G,X):k.el=R.el},m=(R,k,G,X)=>{[R.el,R.anchor]=d(R.children,k,G,X,R.el,R.anchor)},_=({el:R,anchor:k},G,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,G,X),R=W;n(k,G,X)},S=({el:R,anchor:k})=>{let G;for(;R&&R!==k;)G=h(R),i(R),R=G;i(k)},x=(R,k,G,X,W,J,ot,ut,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,G,X,W,J,ot,ut,it);else{const rt=R.el&&R.el._isVueCE?R.el:null;try{rt&&rt._beginPatch(),A(R,k,W,J,ot,ut,it)}finally{rt&&rt._endPatch()}}},b=(R,k,G,X,W,J,ot,ut)=>{let it,rt;const{props:At,shapeFlag:dt,transition:wt,dirs:Rt}=R;if(it=R.el=o(R.type,J,At&&At.is,At),dt&8?f(it,R.children):dt&16&&T(R.children,it,null,X,W,kd(R,J),ot,ut),Rt&&ya(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ne in At)ne!=="value"&&!ou(ne)&&a(it,ne,null,At[ne],J,X);"value"in At&&a(it,"value",null,At.value,J),(rt=At.onVnodeBeforeMount)&&_n(rt,X,R)}Rt&&ya(R,null,X,"beforeMount");const Yt=LV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,G),((rt=At&&At.onVnodeMounted)||Yt||Rt)&&fr(()=>{try{rt&&_n(rt,X,R),Yt&&wt.enter(it),Rt&&ya(R,null,X,"mounted")}finally{}},W)},w=(R,k,G,X,W)=>{if(G&&v(R,G),X)for(let J=0;J{for(let rt=it;rt{const ut=k.el=R.el;let{patchFlag:it,dynamicChildren:rt,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ie,wt=k.props||ie;let Rt;if(G&&ma(G,!1),(Rt=wt.onVnodeBeforeUpdate)&&_n(Rt,G,k,R),At&&ya(k,R,G,"beforeUpdate"),G&&ma(G,!0),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(ut,""),rt?C(R.dynamicChildren,rt,ut,G,X,kd(k,W),J):ot||N(R,k,ut,null,G,X,kd(k,W),J,!1),it>0){if(it&16)D(ut,dt,wt,G,W);else if(it&2&&dt.class!==wt.class&&a(ut,"class",null,wt.class,W),it&4&&a(ut,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ne=0;ne{Rt&&_n(Rt,G,k,R),At&&ya(k,R,G,"updated")},X)},C=(R,k,G,X,W,J,ot)=>{for(let ut=0;ut{if(k!==G){if(k!==ie)for(const J in k)!ou(J)&&!(J in G)&&a(R,J,k[J],null,W,X);for(const J in G){if(ou(J))continue;const ot=G[J],ut=k[J];ot!==ut&&J!=="value"&&a(R,J,ut,ot,W,X)}"value"in G&&a(R,"value",k.value,G.value,W)}},I=(R,k,G,X,W,J,ot,ut,it)=>{const rt=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(ut=ut?ut.concat(Rt):Rt),R==null?(n(rt,G,X),n(At,G,X),T(k.children||[],G,At,W,J,ot,ut,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,G,W,J,ot,ut),(k.key!=null||W&&k===W.subTree)&&oI(R,k,!0)):N(R,k,G,At,W,J,ot,ut,it)},L=(R,k,G,X,W,J,ot,ut,it)=>{k.slotScopeIds=ut,R==null?k.shapeFlag&512?W.ctx.activate(k,G,X,ot,it):P(k,G,X,W,J,ot,it):E(R,k,it)},P=(R,k,G,X,W,J,ot)=>{const ut=R.component=GV(R,X,W);if(P0(R)&&(ut.ctx.renderer=tt),HV(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,O,ot),!R.el){const it=ut.subTree=Pe(pi);y(null,it,k,G),R.placeholder=it.el}}else O(ut,R,k,G,W,J,ot)},E=(R,k,G)=>{const X=k.component=R.component;if(SV(R,k,G))if(X.asyncDep&&!X.asyncResolved){V(X,k,G);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,G,X,W,J,ot)=>{const ut=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ne}=R;{const _r=sI(R);if(_r){dt&&(dt.el=ne.el,V(R,dt,ot)),_r.asyncDep.then(()=>{fr(()=>{R.isUnmounted||rt()},W)});return}}let oe=dt,_e;ma(R,!1),dt?(dt.el=ne.el,V(R,dt,ot)):dt=ne,wt&&Wc(wt),(_e=dt.props&&dt.props.onVnodeBeforeUpdate)&&_n(_e,Yt,dt,ne),ma(R,!0);const we=Ed(R),Kr=R.subTree;R.subTree=we,p(Kr,we,c(Kr.el),U(Kr),R,W,J),dt.el=we.el,oe===null&&xV(R,we.el),Rt&&fr(Rt,W),(_e=dt.props&&dt.props.onVnodeUpdated)&&fr(()=>_n(_e,Yt,dt,ne),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ne,parent:oe,root:_e,type:we}=R,Kr=As(k);if(ma(R,!1),Yt&&Wc(Yt),!Kr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&_n(dt,oe,k),ma(R,!0),wt&<){const _r=()=>{R.subTree=Ed(R),lt(wt,R.subTree,R,W,null)};Kr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{_e.ce&&_e.ce._hasShadowRoot()&&_e.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=Ed(R);p(null,_r,G,X,R,W,J),k.el=_r.el}if(ne&&fr(ne,W),!Kr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;fr(()=>_n(dt,oe,_r),W)}(k.shapeFlag&256||oe&&As(oe.vnode)&&oe.vnode.shapeFlag&256)&&R.a&&fr(R.a,W),R.isMounted=!0,k=G=X=null}};R.scope.on();const it=R.effect=new xD(ut);R.scope.off();const rt=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>C0(At),ma(R,!0),rt()},V=(R,k,G)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,wV(R,k.props,X,G),MV(R,k.children,G),hi(),fS(R),vi()},N=(R,k,G,X,W,J,ot,ut,it=!1)=>{const rt=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(rt,dt,G,X,W,J,ot,ut,it);return}else if(wt&256){z(rt,dt,G,X,W,J,ot,ut,it);return}}Rt&8?(At&16&&Et(rt,W,J),dt!==rt&&f(G,dt)):At&16?Rt&16?$(rt,dt,G,X,W,J,ot,ut,it):Et(rt,W,J,!0):(At&8&&f(G,""),Rt&16&&T(dt,G,X,W,J,ot,ut,it))},z=(R,k,G,X,W,J,ot,ut,it)=>{R=R||bs,k=k||bs;const rt=R.length,At=k.length,dt=Math.min(rt,At);let wt;for(wt=0;wtAt?Et(R,W,J,!0,!1,dt):T(k,G,X,W,J,ot,ut,it,dt)},$=(R,k,G,X,W,J,ot,ut,it)=>{let rt=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;rt<=dt&&rt<=wt;){const Rt=R[rt],Yt=k[rt]=it?ri(k[rt]):Ln(k[rt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;rt++}for(;rt<=dt&&rt<=wt;){const Rt=R[dt],Yt=k[wt]=it?ri(k[wt]):Ln(k[wt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;dt--,wt--}if(rt>dt){if(rt<=wt){const Rt=wt+1,Yt=Rtwt)for(;rt<=dt;)Q(R[rt],W,J,!0),rt++;else{const Rt=rt,Yt=rt,ne=new Map;for(rt=Yt;rt<=wt;rt++){const Sr=k[rt]=it?ri(k[rt]):Ln(k[rt]);Sr.key!=null&&ne.set(Sr.key,rt)}let oe,_e=0;const we=wt-Yt+1;let Kr=!1,_r=0;const hl=new Array(we);for(rt=0;rt=we){Q(Sr,W,J,!0);continue}let mn;if(Sr.key!=null)mn=ne.get(Sr.key);else for(oe=Yt;oe<=wt;oe++)if(hl[oe-Yt]===0&&pl(Sr,k[oe])){mn=oe;break}mn===void 0?Q(Sr,W,J,!0):(hl[mn-Yt]=rt+1,mn>=_r?_r=mn:Kr=!0,p(Sr,k[mn],G,null,W,J,ot,ut,it),_e++)}const Q1=Kr?PV(hl):bs;for(oe=Q1.length-1,rt=we-1;rt>=0;rt--){const Sr=Yt+rt,mn=k[Sr],tS=k[Sr+1],eS=Sr+1{const{el:J,type:ot,transition:ut,children:it,shapeFlag:rt}=R;if(rt&6){q(R.component.subTree,k,G,X);return}if(rt&128){R.suspense.move(k,G,X);return}if(rt&64){ot.move(R,k,G,tt);return}if(ot===zr){n(J,k,G);for(let dt=0;dtut.enter(J),W);else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=ut,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,G)},ne=()=>{J._isLeaving&&J[$N](!0),dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ne):ne()}else n(J,k,G)},Q=(R,k,G,X=!1,W=!1)=>{const{type:J,props:ot,ref:ut,children:it,dynamicChildren:rt,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),ut!=null&&(hi(),uu(ut,null,G,R,!0),vi()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ne=At&1&&wt,oe=!As(R);let _e;if(oe&&(_e=ot&&ot.onVnodeBeforeUnmount)&&_n(_e,k,R),At&6)gt(R.component,G,X);else{if(At&128){R.suspense.unmount(G,X);return}ne&&ya(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,G,tt,X):rt&&!rt.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(rt,k,G,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,G),X&&ct(R)}const we=Yt!=null&&Rt==null;(oe&&(_e=ot&&ot.onVnodeUnmounted)||ne||we)&&fr(()=>{_e&&_n(_e,k,R),ne&&ya(R,null,k,"unmounted"),we&&(R.el=null)},G)},ct=R=>{const{type:k,el:G,anchor:X,transition:W}=R;if(k===zr){ht(G,X);return}if(k===Zc){S(R);return}const J=()=>{i(G),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,it=()=>ot(G,J);ut?ut(R.el,J,it):it()}else J()},ht=(R,k)=>{let G;for(;R!==k;)G=h(R),i(R),R=G;i(k)},gt=(R,k,G)=>{const{bum:X,scope:W,job:J,subTree:ot,um:ut,m:it,a:rt}=R;xS(it),xS(rt),X&&Wc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,G)),ut&&fr(ut,k),fr(()=>{R.isUnmounted=!0},k)},Et=(R,k,G,X=!1,W=!1,J=0)=>{for(let ot=J;ot{if(R.shapeFlag&6)return U(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const k=h(R.anchor||R.el),G=k&&k[HN];return G?h(G):k};let K=!1;const H=(R,k,G)=>{let X;R==null?k._vnode&&(Q(k._vnode,null,null,!0),X=k._vnode.component):p(k._vnode||null,R,k,null,null,null,G),k._vnode=R,K||(K=!0,fS(X),GD(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,lt;return t&&([j,lt]=t(tt)),{render:H,hydrate:j,createApp:dV(H,j)}}function kd({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function ma({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function LV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function oI(r,t,e=!1){const n=r.children,i=t.children;if(It(n)&&It(i))for(let a=0;a>1,r[e[s]]0&&(t[n]=e[a-1]),e[a]=n)}}for(a=e.length,o=e[a-1];a-- >0;)e[a]=o,o=t[o];return e}function sI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sI(t)}function xS(r){if(r)for(let t=0;tr.__isSuspense;function RV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):VN(r)}const zr=Symbol.for("v-fgt"),Vv=Symbol.for("v-txt"),pi=Symbol.for("v-cmt"),Zc=Symbol.for("v-stc"),cu=[];let wr=null;function wh(r=!1){cu.push(wr=r?null:[])}function EV(){cu.pop(),wr=cu[cu.length-1]||null}let Eu=1;function Th(r,t=!1){Eu+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function fI(r){return r.dynamicChildren=Eu>0?wr||bs:null,EV(),Eu>0&&wr&&wr.push(r),r}function Mit(r,t,e,n,i,a){return fI(hI(r,t,e,n,i,a,!0))}function Ah(r,t,e,n,i){return fI(Pe(r,t,e,n,i,!0))}function ku(r){return r?r.__v_isVNode===!0:!1}function pl(r,t){return r.type===t.type&&r.key===t.key}const cI=({key:r})=>r!=null?r:null,Xc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?xe(r)||ke(r)||Ot(r)?{i:Ve,r,k:t,f:!!e}:r:null);function hI(r,t=null,e=null,n=0,i=null,a=r===zr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&cI(t),ref:t&&Xc(t),scopeId:HD,slotScopeIds:null,children:e,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:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(O0(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=xe(e)?8:16),Eu>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=kV;function kV(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===aV)&&(r=pi),ku(r)){const s=Os(r,t,!0);return e&&O0(s,e),Eu>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(ZV(r)&&(r=r.__vccOpts),t){t=OV(t);let{class:s,style:l}=t;s&&!xe(s)&&(t.class=m0(s)),re(l)&&(kv(l)&&!It(l)&&(l=Me({},l)),t.style=y0(l))}const o=xe(r)?1:uI(r)?128:WN(r)?64:re(r)?4:Ot(r)?2:0;return hI(r,t,e,n,i,o,a,!0)}function OV(r){return r?kv(r)||tI(r)?Me({},r):r:null}function Os(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?VV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&cI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(Xc(t)):[a,Xc(t)]:Xc(t):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==zr?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Os(r.ssContent),ssFallback:r.ssFallback&&Os(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&D0(f,l.clone(f)),f}function NV(r=" ",t=0){return Pe(Vv,null,r,t)}function Dit(r,t){const e=Pe(Zc,null,r);return e.staticCount=t,e}function Iit(r="",t=!1){return t?(wh(),Ah(pi,null,r)):Pe(pi,null,r)}function Ln(r){return r==null||typeof r=="boolean"?Pe(pi):It(r)?Pe(zr,null,r.slice()):ku(r)?ri(r):Pe(Vv,null,String(r))}function ri(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Os(r)}function O0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(It(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),O0(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!tI(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:Ve},e=32):(t=String(t),n&64?(e=16,t=[NV(t)]):e=8);r.children=t,r.shapeFlag|=e}function VV(...r){const t={};for(let e=0;eNe||Ve;let Ch,_y;{const r=Pv(),t=(e,n)=>{let i;return(i=r[e])||(i=r[e]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Ch=t("__VUE_INSTANCE_SETTERS__",e=>Ne=e),_y=t("__VUE_SSR_SETTERS__",e=>Ns=e)}const gf=r=>{const t=Ne;return Ch(r),r.scope.on(),()=>{r.scope.off(),Ch(t)}},bS=()=>{Ne&&Ne.scope.off(),Ch(null)};function vI(r){return r.vnode.shapeFlag&4}let Ns=!1;function HV(r,t=!1,e=!1){t&&_y(t);const{props:n,children:i}=r.vnode,a=vI(r);bV(r,n,a,t),CV(r,i,e||t);const o=a?WV(r,t):void 0;return t&&_y(!1),o}function WV(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,sV);const{setup:n}=e;if(n){hi();const i=r.setupContext=n.length>1?UV(r):null,a=gf(r),o=df(n,r,0,[r.props,i]),s=dD(o);if(vi(),a(),(s||r.sp)&&!As(r)&&L0(r),s){if(o.then(bS,bS),t)return o.then(l=>{wS(r,l,t)}).catch(l=>{pf(l,r,0)});r.asyncDep=o}else wS(r,o,t)}else dI(r,t)}function wS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=VD(t)),dI(r,e)}let TS;function dI(r,t,e){const n=r.type;if(!r.render){if(!t&&TS&&!n.render){const i=n.template||R0(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Me(Me({isCustomElement:a,delimiters:s},o),l);n.render=TS(i,u)}}r.render=n.render||sn}{const i=gf(r);hi();try{lV(r)}finally{vi(),i()}}}const $V={get(r,t){return Ze(r,"get",""),r[t]}};function UV(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,$V),slots:r.slots,emit:r.emit,expose:t}}function Bv(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(VD(AN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in fu)return fu[e](r)},has(t,e){return e in t||e in fu}})):r.proxy}function YV(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function ZV(r){return Ot(r)&&"__vccOpts"in r}const nn=(r,t)=>RN(r,t,Ns);function pI(r,t,e){try{Th(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?ku(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ku(e)&&(e=[e]),Pe(r,t,e))}finally{Th(1)}}const XV="3.5.31";/**
+**/function pf(r,t,e,n){try{return n?r(...n):r()}catch(i){gf(i,t,e)}}function Gn(r,t,e,n){if(Ot(r)){const i=pf(r,t,e,n);return i&&bD(i)&&i.catch(a=>{gf(a,t,e)}),i}if(It(r)){const i=[];for(let a=0;a>>1,i=ir[n],a=Eu(i);a=Eu(e)?ir.push(r):ir.splice(UN(t),0,r),r.flags|=1,ZD()}}function ZD(){bh||(bh=YD.then(qD))}function YN(r){It(r)?Ts.push(...r):Gi&&r.id===-1?Gi.splice(cs+1,0,r):r.flags&1||(Ts.push(r),r.flags|=1),ZD()}function gS(r,t,e=Mn+1){for(;eEu(e)-Eu(n));if(Ts.length=0,Gi){Gi.push(...t);return}for(Gi=t,cs=0;csr.id==null?r.flags&2?-1:1/0:r.id;function qD(r){const t=sn;try{for(Mn=0;Mn{n._d&&Mh(-1);const a=wh(t);let o;try{o=r(...i)}finally{wh(a),n._d&&Mh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Rit(r,t){if(Ve===null)return r;const e=Fv(Ve),n=r.dirs||(r.dirs=[]);for(let i=0;i1)return e&&Ot(t)?t.call(n&&n.proxy):t}}const XN=Symbol.for("v-scx"),qN=()=>un(XN);function Eit(r,t){return R0(r,null,t)}function Xc(r,t,e){return R0(r,t,e)}function R0(r,t,e=ie){const{immediate:n,deep:i,flush:a,once:o}=e,s=Me({},e),l=t&&n||!t&&a!=="post";let u;if(Ns){if(a==="sync"){const v=qN();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=sn,v.resume=sn,v.pause=sn,v}}const f=Ne;s.call=(v,d,p)=>Gn(v,f,d,p);let c=!1;a==="post"?s.scheduler=v=>{Ye(v,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(v,d)=>{d?v():P0(v)}),s.augmentJob=v=>{t&&(v.flags|=4),c&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const h=WN(r,t,s);return Ns&&(u?u.push(h):l&&h()),h}function KN(r,t,e){const n=this.proxy,i=ye(r)?r.includes(".")?jD(n,r):()=>n[r]:r.bind(n,n);let a;Ot(t)?a=t:(a=t.handler,e=t);const o=yf(this),s=R0(i,a.bind(n),e);return o(),s}function jD(r,t){const e=t.split(".");return()=>{let n=r;for(let i=0;ir.__isTeleport,uu=r=>r&&(r.disabled||r.disabled===""),JN=r=>r&&(r.defer||r.defer===""),yS=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,mS=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,my=(r,t)=>{const e=r&&r.to;return ye(e)?t?t(e):null:e},QD={name:"Teleport",__isTeleport:!0,process(r,t,e,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:v,querySelector:d,createText:p,createComment:g}}=u,y=uu(t.props);let{shapeFlag:m,children:_,dynamicChildren:S}=t;if(r==null){const x=t.el=p(""),b=t.anchor=p("");v(x,e,n),v(b,e,n);const w=(A,C)=>{m&16&&f(_,A,C,i,a,o,s,l)},T=()=>{const A=t.target=my(t.props,d),C=_y(A,t,p,v);A&&(o!=="svg"&&yS(A)?o="svg":o!=="mathml"&&mS(A)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),y||(w(A,C),qc(t,!1)))};y&&(w(e,b),qc(t,!0)),JN(t.props)||a&&a.pendingBranch?(t.el.__isMounted=!1,Ye(()=>{t.el.__isMounted===!1&&(T(),delete t.el.__isMounted)},a)):T()}else{t.el=r.el,t.targetStart=r.targetStart;const x=t.anchor=r.anchor,b=t.target=r.target,w=t.targetAnchor=r.targetAnchor;if(r.el.__isMounted===!1){Ye(()=>{QD.process(r,t,e,n,i,a,o,s,l,u)},a);return}const T=uu(r.props),A=T?e:b,C=T?x:w;if(o==="svg"||yS(b)?o="svg":(o==="mathml"||mS(b))&&(o="mathml"),S?(h(r.dynamicChildren,S,A,i,a,o,s),G0(r,t,!0)):l||c(r,t,A,C,i,a,o,s,!1),y)T?t.props&&r.props&&t.props.to!==r.props.to&&(t.props.to=r.props.to):Ff(t,e,x,u,1);else if((t.props&&t.props.to)!==(r.props&&r.props.to)){const D=t.target=my(t.props,d);D&&Ff(t,D,null,u,0)}else T&&Ff(t,b,w,u,1);qc(t,y)}},remove(r,t,e,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=r;if(c&&(i(u),i(f)),a&&i(l),o&16){const v=a||!uu(h);for(let d=0;dMe({name:r.name},t,{setup:r}))():r}function O0(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function _S(r,t){let e;return!!((e=Object.getOwnPropertyDescriptor(r,t))&&!e.configurable)}const Th=new WeakMap;function fu(r,t,e,n,i=!1){if(It(r)){r.forEach((p,g)=>fu(p,t&&(It(t)?t[g]:t),e,n,i));return}if(As(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fu(r,t,e,n.component.subTree);return}const a=n.shapeFlag&4?Fv(n.component):n.el,o=i?null:a,{i:s,r:l}=r,u=t&&t.r,f=s.refs===ie?s.refs={}:s.refs,c=s.setupState,h=Xt(c),v=c===ie?xD:p=>_S(f,p)?!1:jt(h,p),d=(p,g)=>!(g&&_S(f,g));if(u!=null&&u!==l){if(SS(t),ye(u))f[u]=null,v(u)&&(c[u]=null);else if(ke(u)){const p=t;d(u,p.k)&&(u.value=null),p.k&&(f[p.k]=null)}}if(Ot(l))pf(l,s,12,[o,f]);else{const p=ye(l),g=ke(l);if(p||g){const y=()=>{if(r.f){const m=p?v(l)?c[l]:f[l]:d()||!r.k?l.value:f[r.k];if(i)It(m)&&x0(m,a);else if(It(m))m.includes(a)||m.push(a);else if(p)f[l]=[a],v(l)&&(c[l]=f[l]);else{const _=[a];d(l,r.k)&&(l.value=_),r.k&&(f[r.k]=_)}}else p?(f[l]=o,v(l)&&(c[l]=o)):g&&(d(l,r.k)&&(l.value=o),r.k&&(f[r.k]=o))};if(o){const m=()=>{y(),Th.delete(r)};m.id=-1,Th.set(r,m),Ye(m,e)}else SS(r),y()}}}function SS(r){const t=Th.get(r);t&&(t.flags|=8,Th.delete(r))}const xS=r=>r.nodeType===8;kv().requestIdleCallback;kv().cancelIdleCallback;function eV(r,t){if(xS(r)&&r.data==="["){let e=1,n=r.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(xS(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else t(r)}const As=r=>!!r.type.__asyncLoader;function Oit(r){Ot(r)&&(r={loader:r});const{loader:t,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=r;let u=null,f,c=0;const h=()=>(c++,u=null,v()),v=()=>{let d;return u||(d=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,y)=>{l(p,()=>g(h()),()=>y(p),c+1)});throw p}).then(p=>d!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return k0({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(d,p,g){let y=!1;(p.bu||(p.bu=[])).push(()=>y=!0);const m=()=>{y||g()},_=a?()=>{const S=a(m,x=>eV(d,x));S&&(p.bum||(p.bum=[])).push(S)}:m;f?_():v().then(()=>!p.isUnmounted&&_())},get __asyncResolved(){return f},setup(){const d=Ne;if(O0(d),f)return()=>Hf(f,d);const p=_=>{u=null,gf(_,d,13,!n)};if(s&&d.suspense||Ns)return v().then(_=>()=>Hf(_,d)).catch(_=>(p(_),()=>n?Pe(n,{error:_}):null));const g=Yc(!1),y=Yc(),m=Yc(!!i);return i&&setTimeout(()=>{m.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!y.value){const _=new Error(`Async component timed out after ${o}ms.`);p(_),y.value=_}},o),v().then(()=>{g.value=!0,d.parent&&N0(d.parent.vnode)&&d.parent.update()}).catch(_=>{p(_),y.value=_}),()=>{if(g.value&&f)return Hf(f,d);if(y.value&&n)return Pe(n,{error:y.value});if(e&&!m.value)return Hf(e,d)}}})}function Hf(r,t){const{ref:e,props:n,children:i,ce:a}=t.vnode,o=Pe(r,n,i);return o.ref=e,o.ce=a,delete t.vnode.ce,o}const N0=r=>r.type.__isKeepAlive;function rV(r,t){tI(r,"a",t)}function nV(r,t){tI(r,"da",t)}function tI(r,t,e=Ne){const n=r.__wdc||(r.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Bv(t,n,e),e){let i=e.parent;for(;i&&i.parent;)N0(i.parent.vnode)&&iV(n,t,e,i),i=i.parent}}function iV(r,t,e,n){const i=Bv(t,r,n,!0);eI(()=>{x0(n[t],i)},e)}function Bv(r,t,e=Ne,n=!1){if(e){const i=e[r]||(e[r]=[]),a=t.__weh||(t.__weh=(...o)=>{hi();const s=yf(e),l=Gn(t,e,r,o);return s(),vi(),l});return n?i.unshift(a):i.push(a),a}}const wi=r=>(t,e=Ne)=>{(!Ns||r==="sp")&&Bv(r,(...n)=>t(...n),e)},aV=wi("bm"),oV=wi("m"),sV=wi("bu"),lV=wi("u"),uV=wi("bum"),eI=wi("um"),fV=wi("sp"),cV=wi("rtg"),hV=wi("rtc");function vV(r,t=Ne){Bv("ec",r,t)}const rI="components";function dV(r,t){return gV(rI,r,!0,t)||r}const pV=Symbol.for("v-ndc");function gV(r,t,e=!0,n=!1){const i=Ve||Ne;if(i){const a=i.type;if(r===rI){const s=rB(a,!1);if(s&&(s===t||s===ar(t)||s===Rv(ar(t))))return a}const o=bS(i[r]||a[r],t)||bS(i.appContext[r],t);return!o&&n?a:o}}function bS(r,t){return r&&(r[t]||r[ar(t)]||r[Rv(ar(t))])}function Nit(r,t,e,n){let i;const a=e&&e[n],o=It(r);if(o||ye(r)){const s=o&&ho(r);let l=!1,u=!1;s&&(l=!Ar(r),u=di(r),r=Ov(r)),i=new Array(r.length);for(let f=0,c=r.length;ft(s,l,void 0,a&&a[l]));else{const s=Object.keys(r);i=new Array(s.length);for(let l=0,u=s.length;l0;return t!=="default"&&(e.name=t),Ch(),Dh(zr,null,[Pe("slot",e,n&&n())],u?-2:64)}let a=r[t];a&&a._c&&(a._d=!1),Ch();const o=a&&nI(a(e)),s=e.key||o&&o.key,l=Dh(zr,{key:(s&&!Ir(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function nI(r){return r.some(t=>Ou(t)?!(t.type===pi||t.type===zr&&!nI(t.children)):!0)?r:null}const Sy=r=>r?bI(r)?Fv(r):Sy(r.parent):null,cu=Me(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Sy(r.parent),$root:r=>Sy(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>V0(r),$forceUpdate:r=>r.f||(r.f=()=>{P0(r.update)}),$nextTick:r=>r.n||(r.n=L0.bind(r.proxy)),$watch:r=>KN.bind(r)}),Od=(r,t)=>r!==ie&&!r.__isScriptSetup&&jt(r,t),yV={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=r;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return a[t]}else{if(Od(n,t))return o[t]=1,n[t];if(i!==ie&&jt(i,t))return o[t]=2,i[t];if(jt(a,t))return o[t]=3,a[t];if(e!==ie&&jt(e,t))return o[t]=4,e[t];xy&&(o[t]=0)}}const u=cu[t];let f,c;if(u)return t==="$attrs"&&Xe(r.attrs,"get",""),u(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==ie&&jt(e,t))return o[t]=4,e[t];if(c=l.config.globalProperties,jt(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:i,ctx:a}=r;return Od(i,t)?(i[t]=e,!0):n!==ie&&jt(n,t)?(n[t]=e,!0):jt(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(a[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(e[s]||r!==ie&&s[0]!=="$"&&jt(r,s)||Od(t,s)||jt(a,s)||jt(n,s)||jt(cu,s)||jt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:jt(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function wS(r){return It(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let xy=!0;function mV(r){const t=V0(r),e=r.proxy,n=r.ctx;xy=!1,t.beforeCreate&&TS(t.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:_,unmounted:S,render:x,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:A,expose:C,inheritAttrs:D,components:I,directives:L,filters:P}=t;if(u&&_V(u,n,null),o)for(const V in o){const N=o[V];Ot(N)&&(n[V]=N.bind(e))}if(i){const V=i.call(e,e);re(V)&&(r.data=Nv(V))}if(xy=!0,a)for(const V in a){const N=a[V],z=Ot(N)?N.bind(e,e):Ot(N.get)?N.get.bind(e,e):sn,$=!Ot(N)&&Ot(N.set)?N.set.bind(e):sn,q=nn({get:z,set:$});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const V in s)iI(s[V],n,e,V);if(l){const V=Ot(l)?l.call(e):l;Reflect.ownKeys(V).forEach(N=>{Zc(N,V[N])})}f&&TS(f,r,"c");function O(V,N){It(N)?N.forEach(z=>V(z.bind(e))):N&&V(N.bind(e))}if(O(aV,c),O(oV,h),O(sV,v),O(lV,d),O(rV,p),O(nV,g),O(vV,T),O(hV,b),O(cV,w),O(uV,m),O(eI,S),O(fV,A),It(C))if(C.length){const V=r.exposed||(r.exposed={});C.forEach(N=>{Object.defineProperty(V,N,{get:()=>e[N],set:z=>e[N]=z,enumerable:!0})})}else r.exposed||(r.exposed={});x&&r.render===sn&&(r.render=x),D!=null&&(r.inheritAttrs=D),I&&(r.components=I),L&&(r.directives=L),A&&O0(r)}function _V(r,t,e=sn){It(r)&&(r=by(r));for(const n in r){const i=r[n];let a;re(i)?"default"in i?a=un(i.from||n,i.default,!0):a=un(i.from||n):a=un(i),ke(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function TS(r,t,e){Gn(It(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function iI(r,t,e,n){let i=n.includes(".")?jD(e,n):()=>e[n];if(ye(r)){const a=t[r];Ot(a)&&Xc(i,a)}else if(Ot(r))Xc(i,r.bind(e));else if(re(r))if(It(r))r.forEach(a=>iI(a,t,e,n));else{const a=Ot(r.handler)?r.handler.bind(e):t[r.handler];Ot(a)&&Xc(i,a,r)}}function V0(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(u=>Ah(l,u,o,!0)),Ah(l,t,o)),re(t)&&a.set(t,l),l}function Ah(r,t,e,n=!1){const{mixins:i,extends:a}=t;a&&Ah(r,a,e,!0),i&&i.forEach(o=>Ah(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=SV[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const SV={data:AS,props:CS,emits:CS,methods:Zl,computed:Zl,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Zl,directives:Zl,watch:bV,provide:AS,inject:xV};function AS(r,t){return t?r?function(){return Me(Ot(r)?r.call(this,this):r,Ot(t)?t.call(this,this):t)}:t:r}function xV(r,t){return Zl(by(r),by(t))}function by(r){if(It(r)){const t={};for(let e=0;et==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${ar(t)}Modifiers`]||r[`${va(t)}Modifiers`];function CV(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||ie;let i=e;const a=t.startsWith("update:"),o=a&&AV(n,t.slice(7));o&&(o.trim&&(i=e.map(f=>ye(f)?f.trim():f)),o.number&&(i=e.map(Ev)));let s,l=n[s=Ld(t)]||n[s=Ld(ar(t))];!l&&a&&(l=n[s=Ld(va(t))]),l&&Gn(l,r,6,i);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Gn(u,r,6,i)}}const MV=new WeakMap;function oI(r,t,e=!1){const n=e?MV:t.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!Ot(r)){const l=u=>{const f=oI(u,t,!0);f&&(s=!0,Me(o,f))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!a&&!s?(re(r)&&n.set(r,null),null):(It(a)?a.forEach(l=>o[l]=null):Me(o,a),re(r)&&n.set(r,o),o)}function zv(r,t){return!r||!Mv(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(r,t[0].toLowerCase()+t.slice(1))||jt(r,va(t))||jt(r,t))}function Nd(r){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:v,ctx:d,inheritAttrs:p}=r,g=wh(r);let y,m;try{if(e.shapeFlag&4){const S=i||n,x=S;y=Ln(u.call(x,S,f,c,v,h,d)),m=s}else{const S=t;y=Ln(S.length>1?S(c,{attrs:s,slots:o,emit:l}):S(c,null)),m=t.props?s:DV(s)}}catch(S){hu.length=0,gf(S,r,1),y=Pe(pi)}let _=y;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(a&&S.some(Dv)&&(m=IV(m,a)),_=Os(_,m,!1,!0))}return e.dirs&&(_=Os(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&E0(_,e.transition),y=_,wh(g),y}const DV=r=>{let t;for(const e in r)(e==="class"||e==="style"||Mv(e))&&((t||(t={}))[e]=r[e]);return t},IV=(r,t)=>{const e={};for(const n in r)(!Dv(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function LV(r,t,e){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?MS(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;cObject.create(lI),fI=r=>Object.getPrototypeOf(r)===lI;function RV(r,t,e,n=!1){const i={},a=uI();r.propsDefaults=Object.create(null),cI(r,t,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);e?r.props=n?i:WD(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function EV(r,t,e,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=Xt(i),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c{l=!0;const[h,v]=hI(c,t,!0);Me(o,h),v&&s.push(...v)};!e&&t.mixins.length&&t.mixins.forEach(f),r.extends&&f(r.extends),r.mixins&&r.mixins.forEach(f)}if(!a&&!l)return re(r)&&n.set(r,bs),bs;if(It(a))for(let f=0;fr==="_"||r==="_ctx"||r==="$stable",z0=r=>It(r)?r.map(Ln):[Ln(r)],OV=(r,t,e)=>{if(t._n)return t;const n=ZN((...i)=>z0(t(...i)),e);return n._c=!1,n},vI=(r,t,e)=>{const n=r._ctx;for(const i in r){if(B0(i))continue;const a=r[i];if(Ot(a))t[i]=OV(i,a,n);else if(a!=null){const o=z0(a);t[i]=()=>o}}},dI=(r,t)=>{const e=z0(t);r.slots.default=()=>e},pI=(r,t,e)=>{for(const n in t)(e||!B0(n))&&(r[n]=t[n])},NV=(r,t,e)=>{const n=r.slots=uI();if(r.vnode.shapeFlag&32){const i=t._;i?(pI(n,t,e),e&&AD(n,"_",i,!0)):vI(t,n)}else t&&dI(r,t)},VV=(r,t,e)=>{const{vnode:n,slots:i}=r;let a=!0,o=ie;if(n.shapeFlag&32){const s=t._;s?e&&s===1?a=!1:pI(i,t,e):(a=!t.$stable,vI(t,i)),o=t}else t&&(dI(r,t),o={default:1});if(a)for(const s in i)!B0(s)&&o[s]==null&&delete i[s]},Ye=HV;function BV(r){return zV(r)}function zV(r,t){const e=kv();e.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=sn,insertStaticContent:d}=r,p=(R,k,G,X=null,W=null,J=null,ot=void 0,ut=null,it=!!k.dynamicChildren)=>{if(R===k)return;R&&!pl(R,k)&&(X=U(R),Q(R,W,J,!0),R=null),k.patchFlag===-2&&(it=!1,k.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:dt}=k;switch(rt){case Gv:g(R,k,G,X);break;case pi:y(R,k,G,X);break;case Kc:R==null&&m(k,G,X,ot);break;case zr:I(R,k,G,X,W,J,ot,ut,it);break;default:dt&1?x(R,k,G,X,W,J,ot,ut,it):dt&6?L(R,k,G,X,W,J,ot,ut,it):(dt&64||dt&128)&&rt.process(R,k,G,X,W,J,ot,ut,it,tt)}At!=null&&W?fu(At,R&&R.ref,J,k||R,!k):At==null&&R&&R.ref!=null&&fu(R.ref,null,J,R,!0)},g=(R,k,G,X)=>{if(R==null)n(k.el=s(k.children),G,X);else{const W=k.el=R.el;k.children!==R.children&&u(W,k.children)}},y=(R,k,G,X)=>{R==null?n(k.el=l(k.children||""),G,X):k.el=R.el},m=(R,k,G,X)=>{[R.el,R.anchor]=d(R.children,k,G,X,R.el,R.anchor)},_=({el:R,anchor:k},G,X)=>{let W;for(;R&&R!==k;)W=h(R),n(R,G,X),R=W;n(k,G,X)},S=({el:R,anchor:k})=>{let G;for(;R&&R!==k;)G=h(R),i(R),R=G;i(k)},x=(R,k,G,X,W,J,ot,ut,it)=>{if(k.type==="svg"?ot="svg":k.type==="math"&&(ot="mathml"),R==null)b(k,G,X,W,J,ot,ut,it);else{const rt=R.el&&R.el._isVueCE?R.el:null;try{rt&&rt._beginPatch(),A(R,k,W,J,ot,ut,it)}finally{rt&&rt._endPatch()}}},b=(R,k,G,X,W,J,ot,ut)=>{let it,rt;const{props:At,shapeFlag:dt,transition:wt,dirs:Rt}=R;if(it=R.el=o(R.type,J,At&&At.is,At),dt&8?f(it,R.children):dt&16&&T(R.children,it,null,X,W,Vd(R,J),ot,ut),Rt&&ya(R,null,X,"created"),w(it,R,R.scopeId,ot,X),At){for(const ne in At)ne!=="value"&&!ou(ne)&&a(it,ne,null,At[ne],J,X);"value"in At&&a(it,"value",null,At.value,J),(rt=At.onVnodeBeforeMount)&&_n(rt,X,R)}Rt&&ya(R,null,X,"beforeMount");const Yt=GV(W,wt);Yt&&wt.beforeEnter(it),n(it,k,G),((rt=At&&At.onVnodeMounted)||Yt||Rt)&&Ye(()=>{try{rt&&_n(rt,X,R),Yt&&wt.enter(it),Rt&&ya(R,null,X,"mounted")}finally{}},W)},w=(R,k,G,X,W)=>{if(G&&v(R,G),X)for(let J=0;J{for(let rt=it;rt{const ut=k.el=R.el;let{patchFlag:it,dynamicChildren:rt,dirs:At}=k;it|=R.patchFlag&16;const dt=R.props||ie,wt=k.props||ie;let Rt;if(G&&ma(G,!1),(Rt=wt.onVnodeBeforeUpdate)&&_n(Rt,G,k,R),At&&ya(k,R,G,"beforeUpdate"),G&&ma(G,!0),(dt.innerHTML&&wt.innerHTML==null||dt.textContent&&wt.textContent==null)&&f(ut,""),rt?C(R.dynamicChildren,rt,ut,G,X,Vd(k,W),J):ot||N(R,k,ut,null,G,X,Vd(k,W),J,!1),it>0){if(it&16)D(ut,dt,wt,G,W);else if(it&2&&dt.class!==wt.class&&a(ut,"class",null,wt.class,W),it&4&&a(ut,"style",dt.style,wt.style,W),it&8){const Yt=k.dynamicProps;for(let ne=0;ne{Rt&&_n(Rt,G,k,R),At&&ya(k,R,G,"updated")},X)},C=(R,k,G,X,W,J,ot)=>{for(let ut=0;ut{if(k!==G){if(k!==ie)for(const J in k)!ou(J)&&!(J in G)&&a(R,J,k[J],null,W,X);for(const J in G){if(ou(J))continue;const ot=G[J],ut=k[J];ot!==ut&&J!=="value"&&a(R,J,ut,ot,W,X)}"value"in G&&a(R,"value",k.value,G.value,W)}},I=(R,k,G,X,W,J,ot,ut,it)=>{const rt=k.el=R?R.el:s(""),At=k.anchor=R?R.anchor:s("");let{patchFlag:dt,dynamicChildren:wt,slotScopeIds:Rt}=k;Rt&&(ut=ut?ut.concat(Rt):Rt),R==null?(n(rt,G,X),n(At,G,X),T(k.children||[],G,At,W,J,ot,ut,it)):dt>0&&dt&64&&wt&&R.dynamicChildren&&R.dynamicChildren.length===wt.length?(C(R.dynamicChildren,wt,G,W,J,ot,ut),(k.key!=null||W&&k===W.subTree)&&G0(R,k,!0)):N(R,k,G,At,W,J,ot,ut,it)},L=(R,k,G,X,W,J,ot,ut,it)=>{k.slotScopeIds=ut,R==null?k.shapeFlag&512?W.ctx.activate(k,G,X,ot,it):P(k,G,X,W,J,ot,it):E(R,k,it)},P=(R,k,G,X,W,J,ot)=>{const ut=R.component=KV(R,X,W);if(N0(R)&&(ut.ctx.renderer=tt),JV(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,O,ot),!R.el){const it=ut.subTree=Pe(pi);y(null,it,k,G),R.placeholder=it.el}}else O(ut,R,k,G,W,J,ot)},E=(R,k,G)=>{const X=k.component=R.component;if(LV(R,k,G))if(X.asyncDep&&!X.asyncResolved){V(X,k,G);return}else X.next=k,X.update();else k.el=R.el,X.vnode=k},O=(R,k,G,X,W,J,ot)=>{const ut=()=>{if(R.isMounted){let{next:dt,bu:wt,u:Rt,parent:Yt,vnode:ne}=R;{const _r=gI(R);if(_r){dt&&(dt.el=ne.el,V(R,dt,ot)),_r.asyncDep.then(()=>{Ye(()=>{R.isUnmounted||rt()},W)});return}}let oe=dt,Se;ma(R,!1),dt?(dt.el=ne.el,V(R,dt,ot)):dt=ne,wt&&Uc(wt),(Se=dt.props&&dt.props.onVnodeBeforeUpdate)&&_n(Se,Yt,dt,ne),ma(R,!0);const we=Nd(R),Kr=R.subTree;R.subTree=we,p(Kr,we,c(Kr.el),U(Kr),R,W,J),dt.el=we.el,oe===null&&PV(R,we.el),Rt&&Ye(Rt,W),(Se=dt.props&&dt.props.onVnodeUpdated)&&Ye(()=>_n(Se,Yt,dt,ne),W)}else{let dt;const{el:wt,props:Rt}=k,{bm:Yt,m:ne,parent:oe,root:Se,type:we}=R,Kr=As(k);if(ma(R,!1),Yt&&Uc(Yt),!Kr&&(dt=Rt&&Rt.onVnodeBeforeMount)&&_n(dt,oe,k),ma(R,!0),wt&<){const _r=()=>{R.subTree=Nd(R),lt(wt,R.subTree,R,W,null)};Kr&&we.__asyncHydrate?we.__asyncHydrate(wt,R,_r):_r()}else{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(we,R.parent?R.parent.type:void 0);const _r=R.subTree=Nd(R);p(null,_r,G,X,R,W,J),k.el=_r.el}if(ne&&Ye(ne,W),!Kr&&(dt=Rt&&Rt.onVnodeMounted)){const _r=k;Ye(()=>_n(dt,oe,_r),W)}(k.shapeFlag&256||oe&&As(oe.vnode)&&oe.vnode.shapeFlag&256)&&R.a&&Ye(R.a,W),R.isMounted=!0,k=G=X=null}};R.scope.on();const it=R.effect=new ID(ut);R.scope.off();const rt=R.update=it.run.bind(it),At=R.job=it.runIfDirty.bind(it);At.i=R,At.id=R.uid,it.scheduler=()=>P0(At),ma(R,!0),rt()},V=(R,k,G)=>{k.component=R;const X=R.vnode.props;R.vnode=k,R.next=null,EV(R,k.props,X,G),VV(R,k.children,G),hi(),gS(R),vi()},N=(R,k,G,X,W,J,ot,ut,it=!1)=>{const rt=R&&R.children,At=R?R.shapeFlag:0,dt=k.children,{patchFlag:wt,shapeFlag:Rt}=k;if(wt>0){if(wt&128){$(rt,dt,G,X,W,J,ot,ut,it);return}else if(wt&256){z(rt,dt,G,X,W,J,ot,ut,it);return}}Rt&8?(At&16&&Et(rt,W,J),dt!==rt&&f(G,dt)):At&16?Rt&16?$(rt,dt,G,X,W,J,ot,ut,it):Et(rt,W,J,!0):(At&8&&f(G,""),Rt&16&&T(dt,G,X,W,J,ot,ut,it))},z=(R,k,G,X,W,J,ot,ut,it)=>{R=R||bs,k=k||bs;const rt=R.length,At=k.length,dt=Math.min(rt,At);let wt;for(wt=0;wtAt?Et(R,W,J,!0,!1,dt):T(k,G,X,W,J,ot,ut,it,dt)},$=(R,k,G,X,W,J,ot,ut,it)=>{let rt=0;const At=k.length;let dt=R.length-1,wt=At-1;for(;rt<=dt&&rt<=wt;){const Rt=R[rt],Yt=k[rt]=it?ri(k[rt]):Ln(k[rt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;rt++}for(;rt<=dt&&rt<=wt;){const Rt=R[dt],Yt=k[wt]=it?ri(k[wt]):Ln(k[wt]);if(pl(Rt,Yt))p(Rt,Yt,G,null,W,J,ot,ut,it);else break;dt--,wt--}if(rt>dt){if(rt<=wt){const Rt=wt+1,Yt=Rtwt)for(;rt<=dt;)Q(R[rt],W,J,!0),rt++;else{const Rt=rt,Yt=rt,ne=new Map;for(rt=Yt;rt<=wt;rt++){const Sr=k[rt]=it?ri(k[rt]):Ln(k[rt]);Sr.key!=null&&ne.set(Sr.key,rt)}let oe,Se=0;const we=wt-Yt+1;let Kr=!1,_r=0;const hl=new Array(we);for(rt=0;rt=we){Q(Sr,W,J,!0);continue}let mn;if(Sr.key!=null)mn=ne.get(Sr.key);else for(oe=Yt;oe<=wt;oe++)if(hl[oe-Yt]===0&&pl(Sr,k[oe])){mn=oe;break}mn===void 0?Q(Sr,W,J,!0):(hl[mn-Yt]=rt+1,mn>=_r?_r=mn:Kr=!0,p(Sr,k[mn],G,null,W,J,ot,ut,it),Se++)}const aS=Kr?FV(hl):bs;for(oe=aS.length-1,rt=we-1;rt>=0;rt--){const Sr=Yt+rt,mn=k[Sr],oS=k[Sr+1],sS=Sr+1{const{el:J,type:ot,transition:ut,children:it,shapeFlag:rt}=R;if(rt&6){q(R.component.subTree,k,G,X);return}if(rt&128){R.suspense.move(k,G,X);return}if(rt&64){ot.move(R,k,G,tt);return}if(ot===zr){n(J,k,G);for(let dt=0;dtut.enter(J),W);else{const{leave:dt,delayLeave:wt,afterLeave:Rt}=ut,Yt=()=>{R.ctx.isUnmounted?i(J):n(J,k,G)},ne=()=>{J._isLeaving&&J[tV](!0),dt(J,()=>{Yt(),Rt&&Rt()})};wt?wt(J,Yt,ne):ne()}else n(J,k,G)},Q=(R,k,G,X=!1,W=!1)=>{const{type:J,props:ot,ref:ut,children:it,dynamicChildren:rt,shapeFlag:At,patchFlag:dt,dirs:wt,cacheIndex:Rt,memo:Yt}=R;if(dt===-2&&(W=!1),ut!=null&&(hi(),fu(ut,null,G,R,!0),vi()),Rt!=null&&(k.renderCache[Rt]=void 0),At&256){k.ctx.deactivate(R);return}const ne=At&1&&wt,oe=!As(R);let Se;if(oe&&(Se=ot&&ot.onVnodeBeforeUnmount)&&_n(Se,k,R),At&6)gt(R.component,G,X);else{if(At&128){R.suspense.unmount(G,X);return}ne&&ya(R,null,k,"beforeUnmount"),At&64?R.type.remove(R,k,G,tt,X):rt&&!rt.hasOnce&&(J!==zr||dt>0&&dt&64)?Et(rt,k,G,!1,!0):(J===zr&&dt&384||!W&&At&16)&&Et(it,k,G),X&&ct(R)}const we=Yt!=null&&Rt==null;(oe&&(Se=ot&&ot.onVnodeUnmounted)||ne||we)&&Ye(()=>{Se&&_n(Se,k,R),ne&&ya(R,null,k,"unmounted"),we&&(R.el=null)},G)},ct=R=>{const{type:k,el:G,anchor:X,transition:W}=R;if(k===zr){ht(G,X);return}if(k===Kc){S(R);return}const J=()=>{i(G),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(R.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,it=()=>ot(G,J);ut?ut(R.el,J,it):it()}else J()},ht=(R,k)=>{let G;for(;R!==k;)G=h(R),i(R),R=G;i(k)},gt=(R,k,G)=>{const{bum:X,scope:W,job:J,subTree:ot,um:ut,m:it,a:rt}=R;IS(it),IS(rt),X&&Uc(X),W.stop(),J&&(J.flags|=8,Q(ot,R,k,G)),ut&&Ye(ut,k),Ye(()=>{R.isUnmounted=!0},k)},Et=(R,k,G,X=!1,W=!1,J=0)=>{for(let ot=J;ot{if(R.shapeFlag&6)return U(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const k=h(R.anchor||R.el),G=k&&k[JD];return G?h(G):k};let K=!1;const H=(R,k,G)=>{let X;R==null?k._vnode&&(Q(k._vnode,null,null,!0),X=k._vnode.component):p(k._vnode||null,R,k,null,null,null,G),k._vnode=R,K||(K=!0,gS(X),XD(),K=!1)},tt={p,um:Q,m:q,r:ct,mt:P,mc:T,pc:N,pbc:C,n:U,o:r};let j,lt;return t&&([j,lt]=t(tt)),{render:H,hydrate:j,createApp:TV(H,j)}}function Vd({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function ma({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function GV(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function G0(r,t,e=!1){const n=r.children,i=t.children;if(It(n)&&It(i))for(let a=0;a>1,r[e[s]]0&&(t[n]=e[a-1]),e[a]=n)}}for(a=e.length,o=e[a-1];a-- >0;)e[a]=o,o=t[o];return e}function gI(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gI(t)}function IS(r){if(r)for(let t=0;tr.__isSuspense;function HV(r,t){t&&t.pendingBranch?It(r)?t.effects.push(...r):t.effects.push(r):YN(r)}const zr=Symbol.for("v-fgt"),Gv=Symbol.for("v-txt"),pi=Symbol.for("v-cmt"),Kc=Symbol.for("v-stc"),hu=[];let wr=null;function Ch(r=!1){hu.push(wr=r?null:[])}function WV(){hu.pop(),wr=hu[hu.length-1]||null}let ku=1;function Mh(r,t=!1){ku+=r,r<0&&wr&&t&&(wr.hasOnce=!0)}function _I(r){return r.dynamicChildren=ku>0?wr||bs:null,WV(),ku>0&&wr&&wr.push(r),r}function Bit(r,t,e,n,i,a){return _I(xI(r,t,e,n,i,a,!0))}function Dh(r,t,e,n,i){return _I(Pe(r,t,e,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function pl(r,t){return r.type===t.type&&r.key===t.key}const SI=({key:r})=>r!=null?r:null,jc=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?ye(r)||ke(r)||Ot(r)?{i:Ve,r,k:t,f:!!e}:r:null);function xI(r,t=null,e=null,n=0,i=null,a=r===zr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&SI(t),ref:t&&jc(t),scopeId:KD,slotScopeIds:null,children:e,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:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(F0(l,e),a&128&&r.normalize(l)):e&&(l.shapeFlag|=ye(e)?8:16),ku>0&&!o&&wr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wr.push(l),l}const Pe=$V;function $V(r,t=null,e=null,n=0,i=null,a=!1){if((!r||r===pV)&&(r=pi),Ou(r)){const s=Os(r,t,!0);return e&&F0(s,e),ku>0&&!a&&wr&&(s.shapeFlag&6?wr[wr.indexOf(r)]=s:wr.push(s)),s.patchFlag=-2,s}if(nB(r)&&(r=r.__vccOpts),t){t=UV(t);let{class:s,style:l}=t;s&&!ye(s)&&(t.class=w0(s)),re(l)&&(Vv(l)&&!It(l)&&(l=Me({},l)),t.style=b0(l))}const o=ye(r)?1:mI(r)?128:jN(r)?64:re(r)?4:Ot(r)?2:0;return xI(r,t,e,n,i,o,a,!0)}function UV(r){return r?Vv(r)||fI(r)?Me({},r):r:null}function Os(r,t,e=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=r,u=t?ZV(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&SI(u),ref:t&&t.ref?e&&a?It(a)?a.concat(jc(t)):[a,jc(t)]:jc(t):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==zr?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Os(r.ssContent),ssFallback:r.ssFallback&&Os(r.ssFallback),placeholder:r.placeholder,el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&n&&E0(f,l.clone(f)),f}function YV(r=" ",t=0){return Pe(Gv,null,r,t)}function zit(r,t){const e=Pe(Kc,null,r);return e.staticCount=t,e}function Git(r="",t=!1){return t?(Ch(),Dh(pi,null,r)):Pe(pi,null,r)}function Ln(r){return r==null||typeof r=="boolean"?Pe(pi):It(r)?Pe(zr,null,r.slice()):Ou(r)?ri(r):Pe(Gv,null,String(r))}function ri(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Os(r)}function F0(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(It(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),F0(r,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!fI(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:Ve},e=32):(t=String(t),n&64?(e=16,t=[YV(t)]):e=8);r.children=t,r.shapeFlag|=e}function ZV(...r){const t={};for(let e=0;eNe||Ve;let Ih,Ty;{const r=kv(),t=(e,n)=>{let i;return(i=r[e])||(i=r[e]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Ih=t("__VUE_INSTANCE_SETTERS__",e=>Ne=e),Ty=t("__VUE_SSR_SETTERS__",e=>Ns=e)}const yf=r=>{const t=Ne;return Ih(r),r.scope.on(),()=>{r.scope.off(),Ih(t)}},LS=()=>{Ne&&Ne.scope.off(),Ih(null)};function bI(r){return r.vnode.shapeFlag&4}let Ns=!1;function JV(r,t=!1,e=!1){t&&Ty(t);const{props:n,children:i}=r.vnode,a=bI(r);RV(r,n,a,t),NV(r,i,e||t);const o=a?QV(r,t):void 0;return t&&Ty(!1),o}function QV(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,yV);const{setup:n}=e;if(n){hi();const i=r.setupContext=n.length>1?eB(r):null,a=yf(r),o=pf(n,r,0,[r.props,i]),s=bD(o);if(vi(),a(),(s||r.sp)&&!As(r)&&O0(r),s){if(o.then(LS,LS),t)return o.then(l=>{PS(r,l,t)}).catch(l=>{gf(l,r,0)});r.asyncDep=o}else PS(r,o,t)}else wI(r,t)}function PS(r,t,e){Ot(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:re(t)&&(r.setupState=UD(t)),wI(r,e)}let RS;function wI(r,t,e){const n=r.type;if(!r.render){if(!t&&RS&&!n.render){const i=n.template||V0(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Me(Me({isCustomElement:a,delimiters:s},o),l);n.render=RS(i,u)}}r.render=n.render||sn}{const i=yf(r);hi();try{mV(r)}finally{vi(),i()}}}const tB={get(r,t){return Xe(r,"get",""),r[t]}};function eB(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,tB),slots:r.slots,emit:r.emit,expose:t}}function Fv(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(UD(kN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in cu)return cu[e](r)},has(t,e){return e in t||e in cu}})):r.proxy}function rB(r,t=!0){return Ot(r)?r.displayName||r.name:r.name||t&&r.__name}function nB(r){return Ot(r)&&"__vccOpts"in r}const nn=(r,t)=>FN(r,t,Ns);function TI(r,t,e){try{Mh(-1);const n=arguments.length;return n===2?re(t)&&!It(t)?Ou(t)?Pe(r,null,[t]):Pe(r,t):Pe(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Ou(e)&&(e=[e]),Pe(r,t,e))}finally{Mh(1)}}const iB="3.5.31";/**
* @vue/runtime-dom v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let Sy;const AS=typeof window!="undefined"&&window.trustedTypes;if(AS)try{Sy=AS.createPolicy("vue",{createHTML:r=>r})}catch(r){}const gI=Sy?r=>Sy.createHTML(r):r=>r,qV="http://www.w3.org/2000/svg",KV="http://www.w3.org/1998/Math/MathML",Qn=typeof document!="undefined"?document:null,CS=Qn&&Qn.createElement("template"),jV={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const i=t==="svg"?Qn.createElementNS(qV,r):t==="mathml"?Qn.createElementNS(KV,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Qn.createTextNode(r),createComment:r=>Qn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,i,a){const o=e?e.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===a||!(i=i.nextSibling)););else{CS.innerHTML=gI(n==="svg"?``:n==="mathml"?``:r);const s=CS.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},JV=Symbol("_vtc");function QV(r,t,e){const n=r[JV];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Mh=Symbol("_vod"),yI=Symbol("_vsh"),Lit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Mh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):gl(r,t)},mounted(r,{value:t},{transition:e}){e&&t&&e.enter(r)},updated(r,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(r),gl(r,!0),n.enter(r)):n.leave(r,()=>{gl(r,!1)}):gl(r,t))},beforeUnmount(r,{value:t}){gl(r,t)}};function gl(r,t){r.style.display=t?r[Mh]:"none",r[yI]=!t}const tB=Symbol(""),eB=/(?:^|;)\s*display\s*:/;function rB(r,t,e){const n=r.style,i=xe(e);let a=!1;if(e&&!i){if(t)if(xe(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&qc(n,s,"")}else for(const o in t)e[o]==null&&qc(n,o,"");for(const o in e)o==="display"&&(a=!0),qc(n,o,e[o])}else if(i){if(t!==e){const o=n[tB];o&&(e+=";"+o),n.cssText=e,a=eB.test(e)}}else t&&r.removeAttribute("style");Mh in r&&(r[Mh]=a?n.display:"",r[yI]&&(n.display="none"))}const MS=/\s*!important$/;function qc(r,t,e){if(It(e))e.forEach(n=>qc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=nB(r,t);MS.test(e)?r.setProperty(va(n),e.replace(MS,""),"important"):r[n]=e}}const DS=["Webkit","Moz","ms"],Od={};function nB(r,t){const e=Od[t];if(e)return e;let n=ir(t);if(n!=="filter"&&n in r)return Od[t]=n;n=Iv(n);for(let i=0;iNd||(sB.then(()=>Nd=0),Nd=Date.now());function uB(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gn(fB(n,e.value),t,5,[n])};return e.value=r,e.attached=lB(),e}function fB(r,t){if(It(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const kS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,cB=(r,t,e,n,i,a)=>{const o=i==="svg";t==="class"?QV(r,n,o):t==="style"?rB(r,e,n):Tv(t)?Av(t)||aB(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hB(r,t,n,o))?(PS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&LS(r,t,n,o,a,t!=="value")):r._isVueCE&&(vB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!xe(n)))?PS(r,ir(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),LS(r,t,n,o))};function hB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&kS(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&r.tagName==="IFRAME"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=r.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return kS(t)&&xe(e)?!1:t in r}function vB(r,t){const e=r._def.props;if(!e)return!1;const n=ir(t);return Array.isArray(e)?e.some(i=>ir(i)===n):Object.keys(e).some(i=>ir(i)===n)}const Dh=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Wc(t,e):t};function dB(r){r.target.composing=!0}function OS(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign");function NS(r,t,e){return t&&(r=r.trim()),e&&(r=Lv(r)),r}const Pit={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Ms]=Dh(i);const a=n||i.props&&i.props.type==="number";Ka(r,t?"change":"input",o=>{o.target.composing||r[Ms](NS(r.value,e,a))}),(e||a)&&Ka(r,"change",()=>{r.value=NS(r.value,e,a)}),t||(Ka(r,"compositionstart",dB),Ka(r,"compositionend",OS),Ka(r,"change",OS))},mounted(r,{value:t}){r.value=t==null?"":t},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:n,trim:i,number:a}},o){if(r[Ms]=Dh(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Lv(r.value):r.value,l=t==null?"":t;if(s===l)return;const u=r.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===r&&r.type!=="range"&&(n&&t===e||i&&r.value.trim()===l)||(r.value=l)}},Rit={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=Cv(t);Ka(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Lv(Ih(o)):Ih(o));r[Ms](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,A0(()=>{r._assigning=!1})}),r[Ms]=Dh(n)},mounted(r,{value:t}){VS(r,t)},beforeUpdate(r,t,e){r[Ms]=Dh(e)},updated(r,{value:t}){r._assigning||VS(r,t)}};function VS(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!Cv(t))){for(let i=0,a=r.options.length;iString(u)===String(s)):o.selected=rN(t,s)>-1}else o.selected=t.has(s);else if(vf(Ih(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Ih(r){return"_value"in r?r._value:r.value}const pB=["ctrl","shift","alt","meta"],gB={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>pB.some(e=>r[`${e}Key`]&&!t.includes(e))},Eit=(r,t)=>{if(!r)return r;const e=r._withMods||(r._withMods={}),n=t.join(".");return e[n]||(e[n]=(i,...a)=>{for(let o=0;o{const e=r._withKeys||(r._withKeys={}),n=t.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const a=va(i.key);if(t.some(o=>o===a||yB[o]===a))return r(i)})},mB=Me({patchProp:cB},jV);let BS;function _B(){return BS||(BS=DV(mB))}const SB=(...r)=>{const t=_B().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=bB(n);if(!i)return;const a=t._component;!Ot(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=e(i,!1,xB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function xB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function bB(r){return xe(r)?document.querySelector(r):r}const wB="modulepreload",TB=function(r,t){return new URL(r,t).href},zS={},N0=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=TB(a,n),a in zS)return;zS[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":wB,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*!
+**/let Ay;const ES=typeof window!="undefined"&&window.trustedTypes;if(ES)try{Ay=ES.createPolicy("vue",{createHTML:r=>r})}catch(r){}const AI=Ay?r=>Ay.createHTML(r):r=>r,aB="http://www.w3.org/2000/svg",oB="http://www.w3.org/1998/Math/MathML",Qn=typeof document!="undefined"?document:null,kS=Qn&&Qn.createElement("template"),sB={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const i=t==="svg"?Qn.createElementNS(aB,r):t==="mathml"?Qn.createElementNS(oB,r):e?Qn.createElement(r,{is:e}):Qn.createElement(r);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Qn.createTextNode(r),createComment:r=>Qn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,i,a){const o=e?e.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===a||!(i=i.nextSibling)););else{kS.innerHTML=AI(n==="svg"?``:n==="mathml"?``:r);const s=kS.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},lB=Symbol("_vtc");function uB(r,t,e){const n=r[lB];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const Lh=Symbol("_vod"),CI=Symbol("_vsh"),Fit={name:"show",beforeMount(r,{value:t},{transition:e}){r[Lh]=r.style.display==="none"?"":r.style.display,e&&t?e.beforeEnter(r):gl(r,t)},mounted(r,{value:t},{transition:e}){e&&t&&e.enter(r)},updated(r,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(r),gl(r,!0),n.enter(r)):n.leave(r,()=>{gl(r,!1)}):gl(r,t))},beforeUnmount(r,{value:t}){gl(r,t)}};function gl(r,t){r.style.display=t?r[Lh]:"none",r[CI]=!t}const fB=Symbol(""),cB=/(?:^|;)\s*display\s*:/;function hB(r,t,e){const n=r.style,i=ye(e);let a=!1;if(e&&!i){if(t)if(ye(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&Jc(n,s,"")}else for(const o in t)e[o]==null&&Jc(n,o,"");for(const o in e)o==="display"&&(a=!0),Jc(n,o,e[o])}else if(i){if(t!==e){const o=n[fB];o&&(e+=";"+o),n.cssText=e,a=cB.test(e)}}else t&&r.removeAttribute("style");Lh in r&&(r[Lh]=a?n.display:"",r[CI]&&(n.display="none"))}const OS=/\s*!important$/;function Jc(r,t,e){if(It(e))e.forEach(n=>Jc(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=vB(r,t);OS.test(e)?r.setProperty(va(n),e.replace(OS,""),"important"):r[n]=e}}const NS=["Webkit","Moz","ms"],Bd={};function vB(r,t){const e=Bd[t];if(e)return e;let n=ar(t);if(n!=="filter"&&n in r)return Bd[t]=n;n=Rv(n);for(let i=0;izd||(yB.then(()=>zd=0),zd=Date.now());function _B(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Gn(SB(n,e.value),t,5,[n])};return e.value=r,e.attached=mB(),e}function SB(r,t){if(It(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const HS=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,xB=(r,t,e,n,i,a)=>{const o=i==="svg";t==="class"?uB(r,n,o):t==="style"?hB(r,e,n):Mv(t)?Dv(t)||pB(r,t,e,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bB(r,t,n,o))?(zS(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&BS(r,t,n,o,a,t!=="value")):r._isVueCE&&(wB(r,t)||r._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(n)))?zS(r,ar(t),n,a,t):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),BS(r,t,n,o))};function bB(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&HS(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&r.tagName==="IFRAME"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=r.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return HS(t)&&ye(e)?!1:t in r}function wB(r,t){const e=r._def.props;if(!e)return!1;const n=ar(t);return Array.isArray(e)?e.some(i=>ar(i)===n):Object.keys(e).some(i=>ar(i)===n)}const Ph=r=>{const t=r.props["onUpdate:modelValue"]||!1;return It(t)?e=>Uc(t,e):t};function TB(r){r.target.composing=!0}function WS(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign");function $S(r,t,e){return t&&(r=r.trim()),e&&(r=Ev(r)),r}const Hit={created(r,{modifiers:{lazy:t,trim:e,number:n}},i){r[Ms]=Ph(i);const a=n||i.props&&i.props.type==="number";Ka(r,t?"change":"input",o=>{o.target.composing||r[Ms]($S(r.value,e,a))}),(e||a)&&Ka(r,"change",()=>{r.value=$S(r.value,e,a)}),t||(Ka(r,"compositionstart",TB),Ka(r,"compositionend",WS),Ka(r,"change",WS))},mounted(r,{value:t}){r.value=t==null?"":t},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:n,trim:i,number:a}},o){if(r[Ms]=Ph(o),r.composing)return;const s=(a||r.type==="number")&&!/^0\d/.test(r.value)?Ev(r.value):r.value,l=t==null?"":t;if(s===l)return;const u=r.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===r&&r.type!=="range"&&(n&&t===e||i&&r.value.trim()===l)||(r.value=l)}},Wit={deep:!0,created(r,{value:t,modifiers:{number:e}},n){const i=Iv(t);Ka(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Ev(Rh(o)):Rh(o));r[Ms](r.multiple?i?new Set(a):a:a[0]),r._assigning=!0,L0(()=>{r._assigning=!1})}),r[Ms]=Ph(n)},mounted(r,{value:t}){US(r,t)},beforeUpdate(r,t,e){r[Ms]=Ph(e)},updated(r,{value:t}){r._assigning||US(r,t)}};function US(r,t){const e=r.multiple,n=It(t);if(!(e&&!n&&!Iv(t))){for(let i=0,a=r.options.length;iString(u)===String(s)):o.selected=cN(t,s)>-1}else o.selected=t.has(s);else if(df(Rh(o),t)){r.selectedIndex!==i&&(r.selectedIndex=i);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Rh(r){return"_value"in r?r._value:r.value}const AB=["ctrl","shift","alt","meta"],CB={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>AB.some(e=>r[`${e}Key`]&&!t.includes(e))},$it=(r,t)=>{if(!r)return r;const e=r._withMods||(r._withMods={}),n=t.join(".");return e[n]||(e[n]=(i,...a)=>{for(let o=0;o{const e=r._withKeys||(r._withKeys={}),n=t.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const a=va(i.key);if(t.some(o=>o===a||MB[o]===a))return r(i)})},DB=Me({patchProp:xB},sB);let YS;function IB(){return YS||(YS=BV(DB))}const LB=(...r)=>{const t=IB().createApp(...r),{mount:e}=t;return t.mount=n=>{const i=RB(n);if(!i)return;const a=t._component;!Ot(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=e(i,!1,PB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function PB(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function RB(r){return ye(r)?document.querySelector(r):r}const EB="modulepreload",kB=function(r,t){return new URL(r,t).href},ZS={},H0=function(t,e,n){if(!e||e.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(e.map(a=>{if(a=kB(a,n),a in ZS)return;ZS[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const c=i[f];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":EB,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
- */const hs=typeof document!="undefined";function mI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function AB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&mI(r.default)}const Kt=Object.assign;function Vd(r,t){const e={};for(const n in t){const i=t[n];e[n]=vn(i)?i.map(r):r(i)}return e}const hu=()=>{},vn=Array.isArray;function GS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const _I=/#/g,CB=/&/g,MB=/\//g,DB=/=/g,IB=/\?/g,SI=/\+/g,LB=/%5B/g,PB=/%5D/g,xI=/%5E/g,RB=/%60/g,bI=/%7B/g,EB=/%7C/g,wI=/%7D/g,kB=/%20/g;function V0(r){return r==null?"":encodeURI(""+r).replace(EB,"|").replace(LB,"[").replace(PB,"]")}function OB(r){return V0(r).replace(bI,"{").replace(wI,"}").replace(xI,"^")}function xy(r){return V0(r).replace(SI,"%2B").replace(kB,"+").replace(_I,"%23").replace(CB,"%26").replace(RB,"`").replace(bI,"{").replace(wI,"}").replace(xI,"^")}function NB(r){return xy(r).replace(DB,"%3D")}function VB(r){return V0(r).replace(_I,"%23").replace(IB,"%3F")}function BB(r){return VB(r).replace(MB,"%2F")}function Ou(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const zB=/\/$/,GB=r=>r.replace(zB,"");function Bd(r,t,e="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=r(a.slice(1))),s>=0&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=$B(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:Ou(o)}}function FB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function FS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function HB(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Vs(t.matched[n],e.matched[i])&&TI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Vs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function TI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!WB(r[e],t[e]))return!1;return!0}function WB(r,t){return vn(r)?HS(r,t):vn(t)?HS(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function HS(r,t){return vn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function $B(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=e.length-1,o,s;for(o=0;o1&&a--;else break;return e.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let by=function(r){return r.pop="pop",r.push="push",r}({}),zd=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function UB(r){if(!r)if(hs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),GB(r)}const YB=/^[^#]+#/;function ZB(r,t){return r.replace(YB,"#")+t}function XB(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const zv=()=>({left:window.scrollX,top:window.scrollY});function qB(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;t=XB(i,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function WS(r,t){return(history.state?history.state.position-t:-1)+r}const wy=new Map;function KB(r,t){wy.set(r,t)}function jB(r){const t=wy.get(r);return wy.delete(r),t}function JB(r){return typeof r=="string"||r&&typeof r=="object"}function AI(r){return typeof r=="string"||typeof r=="symbol"}let he=function(r){return r[r.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",r[r.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",r[r.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",r[r.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",r[r.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",r}({});const CI=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function Bs(r,t){return Kt(new Error,{type:r,[CI]:!0},t)}function qn(r,t){return r instanceof Error&&CI in r&&(t==null||!!(r.type&t))}const QB=["params","query","hash"];function tz(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of QB)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function ez(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ni&&xy(i)):[n&&xy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function rz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=vn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const nz=Symbol(""),US=Symbol(""),Gv=Symbol(""),B0=Symbol(""),Ty=Symbol("");function yl(){let r=[];function t(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Fi(r,t,e,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Bs(he.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):JB(h)?l(Bs(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},f=a(()=>r.call(n&&n.instances[i],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function Gd(r,t,e,n,i=a=>a()){const a=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(mI(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Fi(u,e,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=AB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&Fi(h,e,n,o,s,i)()}))}}return a}function iz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;oVs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Vs(u,l))||i.push(l))}return[e,n,i]}/*!
+ */const hs=typeof document!="undefined";function MI(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function OB(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&MI(r.default)}const Kt=Object.assign;function Gd(r,t){const e={};for(const n in t){const i=t[n];e[n]=vn(i)?i.map(r):r(i)}return e}const vu=()=>{},vn=Array.isArray;function XS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}const DI=/#/g,NB=/&/g,VB=/\//g,BB=/=/g,zB=/\?/g,II=/\+/g,GB=/%5B/g,FB=/%5D/g,LI=/%5E/g,HB=/%60/g,PI=/%7B/g,WB=/%7C/g,RI=/%7D/g,$B=/%20/g;function W0(r){return r==null?"":encodeURI(""+r).replace(WB,"|").replace(GB,"[").replace(FB,"]")}function UB(r){return W0(r).replace(PI,"{").replace(RI,"}").replace(LI,"^")}function Cy(r){return W0(r).replace(II,"%2B").replace($B,"+").replace(DI,"%23").replace(NB,"%26").replace(HB,"`").replace(PI,"{").replace(RI,"}").replace(LI,"^")}function YB(r){return Cy(r).replace(BB,"%3D")}function ZB(r){return W0(r).replace(DI,"%23").replace(zB,"%3F")}function XB(r){return ZB(r).replace(VB,"%2F")}function Nu(r){if(r==null)return null;try{return decodeURIComponent(""+r)}catch(t){}return""+r}const qB=/\/$/,KB=r=>r.replace(qB,"");function Fd(r,t,e="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=r(a.slice(1))),s>=0&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=tz(n!=null?n:t,e),{fullPath:n+a+o,path:n,query:i,hash:Nu(o)}}function jB(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function qS(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function JB(r,t,e){const n=t.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&Vs(t.matched[n],e.matched[i])&&EI(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Vs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function EI(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(var e in r)if(!QB(r[e],t[e]))return!1;return!0}function QB(r,t){return vn(r)?KS(r,t):vn(t)?KS(t,r):(r==null?void 0:r.valueOf())===(t==null?void 0:t.valueOf())}function KS(r,t){return vn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function tz(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=e.length-1,o,s;for(o=0;o1&&a--;else break;return e.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let My=function(r){return r.pop="pop",r.push="push",r}({}),Hd=function(r){return r.back="back",r.forward="forward",r.unknown="",r}({});function ez(r){if(!r)if(hs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),KB(r)}const rz=/^[^#]+#/;function nz(r,t){return r.replace(rz,"#")+t}function iz(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Hv=()=>({left:window.scrollX,top:window.scrollY});function az(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;t=iz(i,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function jS(r,t){return(history.state?history.state.position-t:-1)+r}const Dy=new Map;function oz(r,t){Dy.set(r,t)}function sz(r){const t=Dy.get(r);return Dy.delete(r),t}function lz(r){return typeof r=="string"||r&&typeof r=="object"}function kI(r){return typeof r=="string"||typeof r=="symbol"}let he=function(r){return r[r.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",r[r.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",r[r.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",r[r.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",r[r.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",r}({});const OI=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function Bs(r,t){return Kt(new Error,{type:r,[OI]:!0},t)}function qn(r,t){return r instanceof Error&&OI in r&&(t==null||!!(r.type&t))}const uz=["params","query","hash"];function fz(r){if(typeof r=="string")return r;if(r.path!=null)return r.path;const t={};for(const e of uz)e in r&&(t[e]=r[e]);return JSON.stringify(t,null,2)}function cz(r){const t={};if(r===""||r==="?")return t;const e=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ni&&Cy(i)):[n&&Cy(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function hz(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=vn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const vz=Symbol(""),QS=Symbol(""),Wv=Symbol(""),$0=Symbol(""),Iy=Symbol("");function yl(){let r=[];function t(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function Fi(r,t,e,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Bs(he.NAVIGATION_ABORTED,{from:e,to:t})):h instanceof Error?l(h):lz(h)?l(Bs(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},f=a(()=>r.call(n&&n.instances[i],t,e,u));let c=Promise.resolve(f);r.length<3&&(c=c.then(u)),c.catch(h=>l(h))})}function Wd(r,t,e,n,i=a=>a()){const a=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(MI(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Fi(u,e,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=OB(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&Fi(h,e,n,o,s,i)()}))}}return a}function dz(r,t){const e=[],n=[],i=[],a=Math.max(t.matched.length,r.matched.length);for(let o=0;oVs(u,s))?n.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Vs(u,l))||i.push(l))}return[e,n,i]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
- */let az=()=>location.protocol+"//"+location.host;function MI(r,t){const{pathname:e,search:n,hash:i}=t,a=r.indexOf("#");if(a>-1){let o=i.includes(r.slice(a))?r.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),FS(s,"")}return FS(e,r)+n+i}function oz(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=MI(r,location),d=e.value,p=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===d){o=null;return}g=p?h.position-p.position:0}else n(v);i.forEach(y=>{y(e.value,d,{delta:g,type:by.pop,direction:g?g>0?zd.forward:zd.back:zd.unknown})})};function l(){o=e.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Kt({},h.state,{scroll:zv()}),"")}}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function YS(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?zv():null}}function sz(r){const{history:t,location:e}=window,n={value:MI(r,e)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:az()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){a(l,Kt({},t.state,YS(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Kt({},i.value,t.state,{forward:l,scroll:zv()});a(f.current,f,!0),a(l,Kt({},YS(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lz(r){r=UB(r);const t=sz(r),e=oz(r,t.state,t.location,t.replace);function n(a,o=!0){o||e.pauseListeners(),history.go(a)}const i=Kt({location:"",base:r,go:n,createHref:ZB.bind(null,r)},t,e);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function uz(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),lz(r)}let eo=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.Group=2]="Group",r}({});var Te=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.ParamRegExp=2]="ParamRegExp",r[r.ParamRegExpEnd=3]="ParamRegExpEnd",r[r.EscapeNext=4]="EscapeNext",r}(Te||{});const fz={type:eo.Static,value:""},cz=/[a-zA-Z0-9_]/;function hz(r){if(!r)return[[]];if(r==="/")return[[fz]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=Te.Static,n=e;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(e===Te.Static?a.push({type:eo.Static,value:u}):e===Te.Param||e===Te.ParamRegExp||e===Te.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:eo.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;st.length?t.length===1&&t[0]===Qe.Static+Qe.Segment?1:-1:0}function DI(r,t){let e=0;const n=r.score,i=t.score;for(;e0&&t[t.length-1]<0}const yz={strict:!1,end:!0,sensitive:!1};function mz(r,t,e){const n=pz(hz(r.path),e),i=Kt(n,{record:r,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function _z(r,t){const e=[],n=new Map;t=GS(yz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=KS(c);p.aliasOf=v&&v.record;const g=GS(t,c),y=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of S)y.push(KS(Kt({},p,{components:v?v.record.components:p.components,path:x,aliasOf:v?v.record:p})))}let m,_;for(const S of y){const{path:x}=S;if(h&&x[0]!=="/"){const b=h.record.path,w=b[b.length-1]==="/"?"":"/";S.path=h.record.path+(x&&w+x)}if(m=mz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!jS(m)&&o(c.name)),II(m)&&l(m),p.children){const b=p.children;for(let w=0;w{o(_)}:hu}function o(c){if(AI(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=bz(c,e);e.splice(h,0,c),c.record.name&&!jS(c)&&n.set(c.record.name,c)}function u(c,h){let v,d={},p,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(qS(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&qS(c.params,v.keys.map(_=>_.name))),p=v.stringify(d)}else if(c.path!=null)p=c.path,v=e.find(_=>_.re.test(p)),v&&(d=v.parse(p),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c,currentLocation:h});g=v.record.name,d=Kt({},h.params,c.params),p=v.stringify(d)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:p,params:d,matched:y,meta:xz(y)}}r.forEach(c=>a(c));function f(){e.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function qS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function KS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:Sz(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sz(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function jS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function xz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function bz(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;DI(r,t[a])<0?n=a:e=a+1}const i=wz(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function wz(r){let t=r;for(;t=t.parent;)if(II(t)&&DI(r,t)===0)return t}function II({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function JS(r){const t=un(Gv),e=un(B0),n=nn(()=>{const l=vo(r.to);return t.resolve(l)}),i=nn(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Vs.bind(null,f));if(h>-1)return h;const v=QS(l[u-2]);return u>1&&QS(f)===v&&c[c.length-1].path!==v?c.findIndex(Vs.bind(null,l[u-2])):h}),a=nn(()=>i.value>-1&&Dz(e.params,n.value.params)),o=nn(()=>i.value>-1&&i.value===e.matched.length-1&&TI(e.params,n.value.params));function s(l={}){if(Mz(l)){const u=t[vo(r.replace)?"replace":"push"](vo(r.to)).catch(hu);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:nn(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function Tz(r){return r.length===1?r[0]:r}const Az=I0({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"},viewTransition:Boolean},useLink:JS,setup(r,{slots:t}){const e=Ev(JS(r)),{options:n}=un(Gv),i=nn(()=>({[tx(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[tx(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&Tz(t.default(e));return r.custom?a:pI("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},a)}}}),Cz=Az;function Mz(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function Dz(r,t){for(const e in t){const n=t[e],i=r[e];if(typeof n=="string"){if(n!==i)return!1}else if(!vn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function QS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const tx=(r,t,e)=>r!=null?r:t!=null?t:e,Iz=I0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=un(Ty),i=nn(()=>r.route||n.value),a=un(US,0),o=nn(()=>{let u=vo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=nn(()=>i.value.matched[o.value]);Uc(US,nn(()=>o.value+1)),Uc(nz,s),Uc(Ty,i);const l=$c();return Yc(()=>[l.value,s.value,r.name],([u,f,c],[h,v,d])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Vs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return ex(e.default,{Component:h,route:u});const v=c.props[f],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=pI(h,Kt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return ex(e.default,{Component:g,route:u})||g}}});function ex(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const Lz=Iz;function Pz(r){const t=_z(r.routes,r),e=r.parseQuery||ez,n=r.stringifyQuery||$S,i=r.history,a=yl(),o=yl(),s=yl(),l=CN(Mi);let u=Mi;hs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Vd.bind(null,U=>""+U),c=Vd.bind(null,BB),h=Vd.bind(null,Ou);function v(U,K){let H,tt;return AI(U)?(H=t.getRecordMatcher(U),tt=K):tt=U,t.addRoute(tt,H)}function d(U){const K=t.getRecordMatcher(U);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,K){if(K=Kt({},K||l.value),typeof U=="string"){const k=Bd(e,U,K.path),G=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,G,{params:h(G.params),hash:Ou(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:Bd(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const G in k)k[G]==null&&delete k[G];H=Kt({},U,{params:c(k)}),K.params=c(K.params)}const tt=t.resolve(H,K),j=U.hash||"";tt.params=f(h(tt.params));const lt=FB(n,Kt({},U,{hash:OB(j),path:tt.path})),R=i.createHref(lt);return Kt({fullPath:lt,hash:j,query:n===$S?rz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?Bd(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Bs(he.NAVIGATION_CANCELLED,{from:K,to:U})}function S(U){return w(U)}function x(U){return S(Kt(m(U),{replace:!0}))}function b(U,K){const H=U.matched[U.matched.length-1];if(H&&H.redirect){const{redirect:tt}=H;let j=typeof tt=="function"?tt(U,K):tt;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),Kt({query:U.query,hash:U.hash,params:j.path!=null?{}:U.params},j)}}function w(U,K){const H=u=y(U),tt=l.value,j=U.state,lt=U.force,R=U.replace===!0,k=b(H,tt);if(k)return w(Kt(m(k),{state:typeof k=="object"?Kt({},j,k.state):j,force:lt,replace:R}),K||H);const G=H;G.redirectedFrom=K;let X;return!lt&&HB(n,tt,H)&&(X=Bs(he.NAVIGATION_DUPLICATED,{to:G,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(G,tt)).catch(W=>qn(W)?qn(W,he.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,G,tt)).then(W=>{if(W){if(qn(W,he.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:lt}),K||G)}else W=I(G,tt,!0,R,j);return D(G,tt,W),W})}function T(U,K){const H=_(U,K);return H?Promise.reject(H):Promise.resolve()}function A(U){const K=ht.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(U):U()}function C(U,K){let H;const[tt,j,lt]=iz(U,K);H=Gd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(G=>{H.push(Fi(G,U,K))});const R=T.bind(null,U,K);return H.push(R),Et(H).then(()=>{H=[];for(const k of a.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Gd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(G=>{H.push(Fi(G,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of lt)if(k.beforeEnter)if(vn(k.beforeEnter))for(const G of k.beforeEnter)H.push(Fi(G,U,K));else H.push(Fi(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Gd(lt,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).catch(k=>qn(k,he.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function D(U,K,H){s.list().forEach(tt=>A(()=>tt(U,K,H)))}function I(U,K,H,tt,j){const lt=_(U,K);if(lt)return lt;const R=K===Mi,k=hs?history.state:{};H&&(tt||R?i.replace(U.fullPath,Kt({scroll:R&&k&&k.scroll},j)):i.push(U.fullPath,j)),l.value=U,q(U,K,H,R),$()}let L;function P(){L||(L=i.listen((U,K,H)=>{if(!gt.listening)return;const tt=y(U),j=b(tt,gt.currentRoute.value);if(j){w(Kt(j,{replace:!0,force:!0}),tt).catch(hu);return}u=tt;const lt=l.value;hs&&KB(WS(lt.fullPath,H.delta),zv()),C(tt,lt).catch(R=>qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?R:qn(R,he.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{qn(k,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===by.pop&&i.go(-1,!1)}).catch(hu),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,lt))).then(R=>{R=R||I(tt,lt,!1),R&&(H.delta&&!qn(R,he.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===by.pop&&qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,lt,R)}).catch(hu)}))}let E=yl(),O=yl(),V;function N(U,K,H){$(U);const tt=O.list();return tt.length?tt.forEach(j=>j(U,K,H)):console.error(U),Promise.reject(U)}function z(){return V&&l.value!==Mi?Promise.resolve():new Promise((U,K)=>{E.add([U,K])})}function $(U){return V||(V=!U,P(),E.list().forEach(([K,H])=>U?H(U):K()),E.reset()),U}function q(U,K,H,tt){const{scrollBehavior:j}=r;if(!hs||!j)return Promise.resolve();const lt=!H&&jB(WS(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return A0().then(()=>j(U,K,lt)).then(R=>R&&qB(R)).catch(R=>N(R,U,K))}const Q=U=>i.go(U);let ct;const ht=new Set,gt={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:y,options:r,push:S,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:z,install(U){U.component("RouterLink",Cz),U.component("RouterView",Lz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(l)}),hs&&!ct&&l.value===Mi&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Mi)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Gv,gt),U.provide(B0,OD(K)),U.provide(Ty,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Mi,L&&L(),L=null,l.value=Mi,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function Oit(){return un(Gv)}function Nit(r){return un(B0)}const ro="Authorization",Rz=["/","/screen2","/screen2/"];function Ez(r){return encodeURIComponent(r||"/platform")}function rx(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${ro}=`));return r?decodeURIComponent(r.slice(ro.length+1)):""}function LI(){const r=window.location.hostname;Rz.forEach(t=>{document.cookie=`${ro}=; Max-Age=0; path=${t}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r&&(document.cookie=`${ro}=; Max-Age=0; path=${t}; domain=${r}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${r}`)})}function Ay(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Ez(r)}`}function kz(r){LI();const t=Ay(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function Vit(r,t){return vl(this,null,function*(){var i;LI();const e=yield fetch("/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","Content-Language":"zh_CN"},body:JSON.stringify({username:r,password:t})}),n=yield e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.code)!==200){const a=new Error((n==null?void 0:n.msg)||"登录失败,请检查用户名或密码。");throw a.status=e.status,a.code=n==null?void 0:n.code,a}return(i=n==null?void 0:n.data)!=null&&i.token&&(document.cookie=`${ro}=${encodeURIComponent(n.data.token)}; path=/`),n})}function Bit(){return vl(this,null,function*(){yield fetch("/logout",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","Content-Language":"zh_CN"},body:"{}"}).catch(()=>null),kz("/platform")})}function Oz(){return vl(this,null,function*(){const r=yield fetch("/getInfo",{credentials:"include",headers:{Accept:"application/json","Content-Language":"zh_CN"}}),t=yield r.json().catch(()=>({}));if(!r.ok||(t==null?void 0:t.code)!==200){const e=new Error((t==null?void 0:t.msg)||"用户未登录或授权已过期。");throw e.status=r.status||401,e.code=(t==null?void 0:t.code)||401,e}return t.data})}const nx=()=>N0(()=>import("./index-5a21d3d3-1783244194656.js"),["./index-5a21d3d3-1783244194656.js","./chartTheme-fbd5f176-1783244194656.js","./chartTheme-812dab15-balabala-1783244194656.css","./index-7323850c-balabala-1783244194656.css"],import.meta.url),Nz=()=>N0(()=>import("./index-59342d7f-1783244194656.js"),["./index-59342d7f-1783244194656.js","./index-e914e8dc-balabala-1783244194656.css"],import.meta.url),Vz=()=>N0(()=>import("./index-81c84a41-1783244194656.js"),["./index-81c84a41-1783244194656.js","./chartTheme-fbd5f176-1783244194656.js","./chartTheme-812dab15-balabala-1783244194656.css","./index-8d752fbe-balabala-1783244194656.css"],import.meta.url),PI=Pz({history:uz(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:Nz,meta:{public:!0}},{path:"/platform",component:nx},{path:"/forest-grass-wet",component:nx},{path:"/chart-style-guide",component:Vz},{path:"/:pathMatch(.*)",redirect:"/"}]});let vu=null;PI.beforeEach(r=>vl(void 0,null,function*(){if(r.meta.public){if(rx())try{return yield ix(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){vu=null}return!0}if(!rx())return Ay(r.fullPath);try{return yield ix(),!0}catch(t){return vu=null,Ay(r.fullPath)}}));function ix(){return vu||(vu=Oz()),vu}const Bz=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},zz={};function Gz(r,t){const e=iV("router-view");return wh(),Ah(e)}const Fz=Bz(zz,[["render",Gz]]);/*! *****************************************************************************
+ */let pz=()=>location.protocol+"//"+location.host;function NI(r,t){const{pathname:e,search:n,hash:i}=t,a=r.indexOf("#");if(a>-1){let o=i.includes(r.slice(a))?r.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),qS(s,"")}return qS(e,r)+n+i}function gz(r,t,e,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=NI(r,location),d=e.value,p=t.value;let g=0;if(h){if(e.value=v,t.value=h,o&&o===d){o=null;return}g=p?h.position-p.position:0}else n(v);i.forEach(y=>{y(e.value,d,{delta:g,type:My.pop,direction:g?g>0?Hd.forward:Hd.back:Hd.unknown})})};function l(){o=e.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Kt({},h.state,{scroll:Hv()}),"")}}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function tx(r,t,e,n=!1,i=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:i?Hv():null}}function yz(r){const{history:t,location:e}=window,n={value:NI(r,e)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=r.indexOf("#"),h=c>-1?(e.host&&document.querySelector("base")?r:r.slice(c))+l:pz()+r+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),e[f?"replace":"assign"](h)}}function o(l,u){a(l,Kt({},t.state,tx(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Kt({},i.value,t.state,{forward:l,scroll:Hv()});a(f.current,f,!0),a(l,Kt({},tx(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function mz(r){r=ez(r);const t=yz(r),e=gz(r,t.state,t.location,t.replace);function n(a,o=!0){o||e.pauseListeners(),history.go(a)}const i=Kt({location:"",base:r,go:n,createHref:nz.bind(null,r)},t,e);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function _z(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),mz(r)}let eo=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.Group=2]="Group",r}({});var Te=function(r){return r[r.Static=0]="Static",r[r.Param=1]="Param",r[r.ParamRegExp=2]="ParamRegExp",r[r.ParamRegExpEnd=3]="ParamRegExpEnd",r[r.EscapeNext=4]="EscapeNext",r}(Te||{});const Sz={type:eo.Static,value:""},xz=/[a-zA-Z0-9_]/;function bz(r){if(!r)return[[]];if(r==="/")return[[Sz]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(v){throw new Error(`ERR (${e})/"${u}": ${v}`)}let e=Te.Static,n=e;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(e===Te.Static?a.push({type:eo.Static,value:u}):e===Te.Param||e===Te.ParamRegExp||e===Te.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:eo.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;st.length?t.length===1&&t[0]===tr.Static+tr.Segment?1:-1:0}function VI(r,t){let e=0;const n=r.score,i=t.score;for(;e0&&t[t.length-1]<0}const Mz={strict:!1,end:!0,sensitive:!1};function Dz(r,t,e){const n=Az(bz(r.path),e),i=Kt(n,{record:r,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Iz(r,t){const e=[],n=new Map;t=XS(Mz,t);function i(c){return n.get(c)}function a(c,h,v){const d=!v,p=ix(c);p.aliasOf=v&&v.record;const g=XS(t,c),y=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const x of S)y.push(ix(Kt({},p,{components:v?v.record.components:p.components,path:x,aliasOf:v?v.record:p})))}let m,_;for(const S of y){const{path:x}=S;if(h&&x[0]!=="/"){const b=h.record.path,w=b[b.length-1]==="/"?"":"/";S.path=h.record.path+(x&&w+x)}if(m=Dz(S,h,g),v?v.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),d&&c.name&&!ax(m)&&o(c.name)),BI(m)&&l(m),p.children){const b=p.children;for(let w=0;w{o(_)}:vu}function o(c){if(kI(c)){const h=n.get(c);h&&(n.delete(c),e.splice(e.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=e.indexOf(c);h>-1&&(e.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return e}function l(c){const h=Rz(c,e);e.splice(h,0,c),c.record.name&&!ax(c)&&n.set(c.record.name,c)}function u(c,h){let v,d={},p,g;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c});g=v.record.name,d=Kt(nx(h.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&nx(c.params,v.keys.map(_=>_.name))),p=v.stringify(d)}else if(c.path!=null)p=c.path,v=e.find(_=>_.re.test(p)),v&&(d=v.parse(p),g=v.record.name);else{if(v=h.name?n.get(h.name):e.find(_=>_.re.test(h.path)),!v)throw Bs(he.MATCHER_NOT_FOUND,{location:c,currentLocation:h});g=v.record.name,d=Kt({},h.params,c.params),p=v.stringify(d)}const y=[];let m=v;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:p,params:d,matched:y,meta:Pz(y)}}r.forEach(c=>a(c));function f(){e.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function nx(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function ix(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:Lz(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Lz(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function ax(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Pz(r){return r.reduce((t,e)=>Kt(t,e.meta),{})}function Rz(r,t){let e=0,n=t.length;for(;e!==n;){const a=e+n>>1;VI(r,t[a])<0?n=a:e=a+1}const i=Ez(r);return i&&(n=t.lastIndexOf(i,n-1)),n}function Ez(r){let t=r;for(;t=t.parent;)if(BI(t)&&VI(r,t)===0)return t}function BI({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ox(r){const t=un(Wv),e=un($0),n=nn(()=>{const l=vo(r.to);return t.resolve(l)}),i=nn(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=e.matched;if(!f||!c.length)return-1;const h=c.findIndex(Vs.bind(null,f));if(h>-1)return h;const v=sx(l[u-2]);return u>1&&sx(f)===v&&c[c.length-1].path!==v?c.findIndex(Vs.bind(null,l[u-2])):h}),a=nn(()=>i.value>-1&&Bz(e.params,n.value.params)),o=nn(()=>i.value>-1&&i.value===e.matched.length-1&&EI(e.params,n.value.params));function s(l={}){if(Vz(l)){const u=t[vo(r.replace)?"replace":"push"](vo(r.to)).catch(vu);return r.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:nn(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function kz(r){return r.length===1?r[0]:r}const Oz=k0({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"},viewTransition:Boolean},useLink:ox,setup(r,{slots:t}){const e=Nv(ox(r)),{options:n}=un(Wv),i=nn(()=>({[lx(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[lx(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const a=t.default&&kz(t.default(e));return r.custom?a:TI("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},a)}}}),Nz=Oz;function Vz(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function Bz(r,t){for(const e in t){const n=t[e],i=r[e];if(typeof n=="string"){if(n!==i)return!1}else if(!vn(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function sx(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const lx=(r,t,e)=>r!=null?r:t!=null?t:e,zz=k0({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=un(Iy),i=nn(()=>r.route||n.value),a=un(QS,0),o=nn(()=>{let u=vo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=nn(()=>i.value.matched[o.value]);Zc(QS,nn(()=>o.value+1)),Zc(vz,s),Zc(Iy,i);const l=Yc();return Xc(()=>[l.value,s.value,r.name],([u,f,c],[h,v,d])=>{f&&(f.instances[c]=u,v&&v!==f&&u&&u===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),u&&f&&(!v||!Vs(f,v)||!h)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=r.name,c=s.value,h=c&&c.components[f];if(!h)return ux(e.default,{Component:h,route:u});const v=c.props[f],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,g=TI(h,Kt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return ux(e.default,{Component:g,route:u})||g}}});function ux(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const Gz=zz;function Fz(r){const t=Iz(r.routes,r),e=r.parseQuery||cz,n=r.stringifyQuery||JS,i=r.history,a=yl(),o=yl(),s=yl(),l=ON(Mi);let u=Mi;hs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Gd.bind(null,U=>""+U),c=Gd.bind(null,XB),h=Gd.bind(null,Nu);function v(U,K){let H,tt;return kI(U)?(H=t.getRecordMatcher(U),tt=K):tt=U,t.addRoute(tt,H)}function d(U){const K=t.getRecordMatcher(U);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,K){if(K=Kt({},K||l.value),typeof U=="string"){const k=Fd(e,U,K.path),G=t.resolve({path:k.path},K),X=i.createHref(k.fullPath);return Kt(k,G,{params:h(G.params),hash:Nu(k.hash),redirectedFrom:void 0,href:X})}let H;if(U.path!=null)H=Kt({},U,{path:Fd(e,U.path,K.path).path});else{const k=Kt({},U.params);for(const G in k)k[G]==null&&delete k[G];H=Kt({},U,{params:c(k)}),K.params=c(K.params)}const tt=t.resolve(H,K),j=U.hash||"";tt.params=f(h(tt.params));const lt=jB(n,Kt({},U,{hash:UB(j),path:tt.path})),R=i.createHref(lt);return Kt({fullPath:lt,hash:j,query:n===JS?hz(U.query):U.query||{}},tt,{redirectedFrom:void 0,href:R})}function m(U){return typeof U=="string"?Fd(e,U,l.value.path):Kt({},U)}function _(U,K){if(u!==U)return Bs(he.NAVIGATION_CANCELLED,{from:K,to:U})}function S(U){return w(U)}function x(U){return S(Kt(m(U),{replace:!0}))}function b(U,K){const H=U.matched[U.matched.length-1];if(H&&H.redirect){const{redirect:tt}=H;let j=typeof tt=="function"?tt(U,K):tt;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=m(j):{path:j},j.params={}),Kt({query:U.query,hash:U.hash,params:j.path!=null?{}:U.params},j)}}function w(U,K){const H=u=y(U),tt=l.value,j=U.state,lt=U.force,R=U.replace===!0,k=b(H,tt);if(k)return w(Kt(m(k),{state:typeof k=="object"?Kt({},j,k.state):j,force:lt,replace:R}),K||H);const G=H;G.redirectedFrom=K;let X;return!lt&&JB(n,tt,H)&&(X=Bs(he.NAVIGATION_DUPLICATED,{to:G,from:tt}),q(tt,tt,!0,!1)),(X?Promise.resolve(X):C(G,tt)).catch(W=>qn(W)?qn(W,he.NAVIGATION_GUARD_REDIRECT)?W:$(W):N(W,G,tt)).then(W=>{if(W){if(qn(W,he.NAVIGATION_GUARD_REDIRECT))return w(Kt({replace:R},m(W.to),{state:typeof W.to=="object"?Kt({},j,W.to.state):j,force:lt}),K||G)}else W=I(G,tt,!0,R,j);return D(G,tt,W),W})}function T(U,K){const H=_(U,K);return H?Promise.reject(H):Promise.resolve()}function A(U){const K=ht.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(U):U()}function C(U,K){let H;const[tt,j,lt]=dz(U,K);H=Wd(tt.reverse(),"beforeRouteLeave",U,K);for(const k of tt)k.leaveGuards.forEach(G=>{H.push(Fi(G,U,K))});const R=T.bind(null,U,K);return H.push(R),Et(H).then(()=>{H=[];for(const k of a.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).then(()=>{H=Wd(j,"beforeRouteUpdate",U,K);for(const k of j)k.updateGuards.forEach(G=>{H.push(Fi(G,U,K))});return H.push(R),Et(H)}).then(()=>{H=[];for(const k of lt)if(k.beforeEnter)if(vn(k.beforeEnter))for(const G of k.beforeEnter)H.push(Fi(G,U,K));else H.push(Fi(k.beforeEnter,U,K));return H.push(R),Et(H)}).then(()=>(U.matched.forEach(k=>k.enterCallbacks={}),H=Wd(lt,"beforeRouteEnter",U,K,A),H.push(R),Et(H))).then(()=>{H=[];for(const k of o.list())H.push(Fi(k,U,K));return H.push(R),Et(H)}).catch(k=>qn(k,he.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function D(U,K,H){s.list().forEach(tt=>A(()=>tt(U,K,H)))}function I(U,K,H,tt,j){const lt=_(U,K);if(lt)return lt;const R=K===Mi,k=hs?history.state:{};H&&(tt||R?i.replace(U.fullPath,Kt({scroll:R&&k&&k.scroll},j)):i.push(U.fullPath,j)),l.value=U,q(U,K,H,R),$()}let L;function P(){L||(L=i.listen((U,K,H)=>{if(!gt.listening)return;const tt=y(U),j=b(tt,gt.currentRoute.value);if(j){w(Kt(j,{replace:!0,force:!0}),tt).catch(vu);return}u=tt;const lt=l.value;hs&&oz(jS(lt.fullPath,H.delta),Hv()),C(tt,lt).catch(R=>qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?R:qn(R,he.NAVIGATION_GUARD_REDIRECT)?(w(Kt(m(R.to),{force:!0}),tt).then(k=>{qn(k,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===My.pop&&i.go(-1,!1)}).catch(vu),Promise.reject()):(H.delta&&i.go(-H.delta,!1),N(R,tt,lt))).then(R=>{R=R||I(tt,lt,!1),R&&(H.delta&&!qn(R,he.NAVIGATION_CANCELLED)?i.go(-H.delta,!1):H.type===My.pop&&qn(R,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(tt,lt,R)}).catch(vu)}))}let E=yl(),O=yl(),V;function N(U,K,H){$(U);const tt=O.list();return tt.length?tt.forEach(j=>j(U,K,H)):console.error(U),Promise.reject(U)}function z(){return V&&l.value!==Mi?Promise.resolve():new Promise((U,K)=>{E.add([U,K])})}function $(U){return V||(V=!U,P(),E.list().forEach(([K,H])=>U?H(U):K()),E.reset()),U}function q(U,K,H,tt){const{scrollBehavior:j}=r;if(!hs||!j)return Promise.resolve();const lt=!H&&sz(jS(U.fullPath,0))||(tt||!H)&&history.state&&history.state.scroll||null;return L0().then(()=>j(U,K,lt)).then(R=>R&&az(R)).catch(R=>N(R,U,K))}const Q=U=>i.go(U);let ct;const ht=new Set,gt={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:y,options:r,push:S,replace:x,go:Q,back:()=>Q(-1),forward:()=>Q(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:z,install(U){U.component("RouterLink",Nz),U.component("RouterView",Gz),U.config.globalProperties.$router=gt,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(l)}),hs&&!ct&&l.value===Mi&&(ct=!0,S(i.location).catch(tt=>{}));const K={};for(const tt in Mi)Object.defineProperty(K,tt,{get:()=>l.value[tt],enumerable:!0});U.provide(Wv,gt),U.provide($0,WD(K)),U.provide(Iy,l);const H=U.unmount;ht.add(U),U.unmount=function(){ht.delete(U),ht.size<1&&(u=Mi,L&&L(),L=null,l.value=Mi,ct=!1,V=!1),H()}}};function Et(U){return U.reduce((K,H)=>K.then(()=>A(H)),Promise.resolve())}return gt}function Yit(){return un(Wv)}function Zit(r){return un($0)}const ro="Authorization",Hz=["/","/screen2","/screen2/"];function Wz(r){return encodeURIComponent(r||"/platform")}function fx(){const r=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(`${ro}=`));return r?decodeURIComponent(r.slice(ro.length+1)):""}function zI(){const r=window.location.hostname;Hz.forEach(t=>{document.cookie=`${ro}=; Max-Age=0; path=${t}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}`,r&&(document.cookie=`${ro}=; Max-Age=0; path=${t}; domain=${r}`,document.cookie=`${ro}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${r}`)})}function Ly(r=window.location.hash.replace(/^#/,"")||"/platform"){return`/login?redirect=${Wz(r)}`}function $z(r){zI();const t=Ly(r);window.location.hash.replace(/^#/,"")!==t&&(window.location.hash=t)}function Xit(r,t){return vl(this,null,function*(){var i;zI();const e=yield fetch("/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","Content-Language":"zh_CN"},body:JSON.stringify({username:r,password:t})}),n=yield e.json().catch(()=>({}));if(!e.ok||(n==null?void 0:n.code)!==200){const a=new Error((n==null?void 0:n.msg)||"登录失败,请检查用户名或密码。");throw a.status=e.status,a.code=n==null?void 0:n.code,a}return(i=n==null?void 0:n.data)!=null&&i.token&&(document.cookie=`${ro}=${encodeURIComponent(n.data.token)}; path=/`),n})}function qit(){return vl(this,null,function*(){yield fetch("/logout",{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","Content-Language":"zh_CN"},body:"{}"}).catch(()=>null),$z("/platform")})}function Uz(){return vl(this,null,function*(){const r=yield fetch("/getInfo",{credentials:"include",headers:{Accept:"application/json","Content-Language":"zh_CN"}}),t=yield r.json().catch(()=>({}));if(!r.ok||(t==null?void 0:t.code)!==200){const e=new Error((t==null?void 0:t.msg)||"用户未登录或授权已过期。");throw e.status=r.status||401,e.code=(t==null?void 0:t.code)||401,e}return t.data})}const cx=()=>H0(()=>import("./index-636a3fb1-1783264824576.js"),["./index-636a3fb1-1783264824576.js","./chartTheme-3259b6f8-1783264824576.js","./chartTheme-812dab15-balabala-1783264824576.css","./index-8cfc31f2-balabala-1783264824576.css"],import.meta.url),Yz=()=>H0(()=>import("./index-fa14e23f-1783264824576.js"),["./index-fa14e23f-1783264824576.js","./index-34a7150e-balabala-1783264824576.css"],import.meta.url),Zz=()=>H0(()=>import("./index-9516394f-1783264824576.js"),["./index-9516394f-1783264824576.js","./chartTheme-3259b6f8-1783264824576.js","./chartTheme-812dab15-balabala-1783264824576.css","./index-8d752fbe-balabala-1783264824576.css"],import.meta.url),GI=Fz({history:_z(),routes:[{path:"/",redirect:"/platform"},{path:"/login",component:Yz,meta:{public:!0}},{path:"/platform",component:cx},{path:"/forest-grass-wet",component:cx},{path:"/chart-style-guide",component:Zz},{path:"/:pathMatch(.*)",redirect:"/"}]});let du=null;GI.beforeEach(r=>vl(void 0,null,function*(){if(r.meta.public){if(fx())try{return yield hx(),r.query.redirect?decodeURIComponent(r.query.redirect):"/platform"}catch(t){du=null}return!0}if(!fx())return Ly(r.fullPath);try{return yield hx(),!0}catch(t){return du=null,Ly(r.fullPath)}}));function hx(){return du||(du=Uz()),du}const Xz=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},qz={};function Kz(r,t){const e=dV("router-view");return Ch(),Dh(e)}const jz=Xz(qz,[["render",Kz]]);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
@@ -35,8 +35,8 @@ 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 Cy=function(r,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Cy(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cy(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Hz=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Wz=function(){function r(){this.browser=new Hz,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!="undefined"}return r}(),Vi=new Wz;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vi.wxa=!0,Vi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Vi.worker=!0:!Vi.hasGlobalWindow||"Deno"in window?(Vi.node=!0,Vi.svgSupported=!0):$z(navigator.userAgent,Vi);function $z(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const zt=Vi;var z0=12,RI="sans-serif",na=z0+"px "+RI,Uz=20,Yz=100,Zz="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xz(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e=0)s=o*e.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",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function y5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?lx(s,o):lx(o,s))}function zI(r){return r.nodeName.toUpperCase()==="CANVAS"}var m5=/([&<>"'])/g,_5={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xe(r){return r==null?"":(r+"").replace(m5,function(t,e){return _5[e]})}var S5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hd=[],x5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function Ey(r,t,e,n){return e=e||{},n?fx(r,t,e):x5&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):fx(r,t,e),e}function fx(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(zI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Ry(Hd,r,n,i)){e.zrX=Hd[0],e.zrY=Hd[1];return}}e.zrX=e.zrY=0}function Y0(r){return r||window.event}function Or(r,t,e){if(t=Y0(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ey(r,o,t,e)}else{Ey(r,t,t,e);var a=b5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&S5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function b5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function ky(r,t,e,n){r.addEventListener(t,e,n)}function w5(r,t,e,n){r.removeEventListener(t,e,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function cx(r){return r.which===2||r.which===3}var T5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=hx(n)/hx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=A5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function $v(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Z0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function li(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Hn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Eo(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function X0(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function js(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function C5(r){var t=Cr();return Z0(t,r),t}var M5=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ct=M5;var Hf=Math.min,Wf=Math.max,_a=new Ct,Sa=new Ct,xa=new Ct,ba=new Ct,ml=new Ct,_l=new Ct,D5=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Hf(t.x,this.x),n=Hf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Wf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Wf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Cr();return Hn(a,a,[-e.x,-e.y]),X0(a,a,[n,i]),Hn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(ad&&(d=_,pd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},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(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_a.x=xa.x=e.x,_a.y=ba.y=e.y,Sa.x=ba.x=e.x+e.width,Sa.y=xa.y=e.y+e.height,_a.transform(n),ba.transform(n),Sa.transform(n),xa.transform(n),t.x=Hf(_a.x,Sa.x,xa.x,ba.x),t.y=Hf(_a.y,Sa.y,xa.y,ba.y);var l=Wf(_a.x,Sa.x,xa.x,ba.x),u=Wf(_a.y,Sa.y,xa.y,ba.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=D5;var GI="silent";function I5(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:L5}}function L5(){gi(this.event)}var P5=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zr),Sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),R5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$d=new Mt(0,0,0,0),FI=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Sl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new P5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new h5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(R5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=HI(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Sl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Sl(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=I5(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Sl(e,n);if(vx(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&($d.copy(h.getBoundingRect()),h.transform&&$d.applyTransform(h.transform),$d.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function E5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?GI:!0}return!1}function vx(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=E5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==GI)){t.target=o;break}}}function HI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const k5=FI;var WI=32,xl=7;function O5(r){for(var t=0;r>=WI;)t|=r&1,r>>=1;return r+t}function dx(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function N5(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-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]=a}}function Ud(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Yd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function V5(r,t){var e=xl,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=xl||w>=xl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,A=0,C=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){C=!0;break}while((T|A)=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(A=g-Ud(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,x=_+1,y=0;y=xl||A>=xl);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),px(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var br=1,Xl=2,vs=4,gx=!1;function Zd(){gx||(gx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function yx(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var B5=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yx}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Zd(),f.z=0),isNaN(f.z2)&&(Zd(),f.z2=0),isNaN(f.zlevel)&&(Zd(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,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}();const z5=B5;var $I;$I=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Oy=$I;var th={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 t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-th.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?th.bounceIn(r*2)*.5:th.bounceOut(r*2-1)*.5+.5}};const UI=th;var $f=Math.pow,Qi=Math.sqrt,Ph=1e-8,YI=1e-4,mx=Qi(3),Uf=1/3,Rn=Ro(),Gr=Ro(),Ds=Ro();function Zi(r){return r>-Ph&&rPh||r<-Ph}function Ae(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function _x(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Rh(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Zi(f)&&Zi(c))if(Zi(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(Zi(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Qi(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-$f(-_,Uf):_=$f(_,Uf),S<0?S=-$f(-S,Uf):S=$f(S,Uf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*Qi(f*f*f)),b=Math.acos(x)/3,w=Qi(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+mx*Math.sin(b)))/(3*o),A=(-s+w*(T-mx*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function XI(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Zi(o)){if(ZI(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Zi(f))i[0]=-a/(2*o);else if(f>0){var c=Qi(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function aa(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function qI(r,t,e,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;Rn[0]=l,Rn[1]=u;for(var m=0;m<1;m+=.05)Gr[0]=Ae(r,e,i,o,m),Gr[1]=Ae(t,n,a,s,m),g=po(Rn,Gr),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Zi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Qi(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function KI(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Bu(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function jI(r,t,e,n,i,a,o,s,l){var u,f=.005,c=1/0;Rn[0]=o,Rn[1]=s;for(var h=0;h<1;h+=.05){Gr[0]=Le(r,e,i,h),Gr[1]=Le(t,n,a,h);var v=po(Rn,Gr);v=0&&v=1?1:Rh(0,n,a,1,l,s)&&Ae(0,i,o,1,s[0])}}}var $5=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||de,this.ondestroy=t.ondestroy||de,this.onrestart=t.onrestart||de,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-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(t){this.easing=t,this.easingFunc=vt(t)?t:UI[t]||q0(t)},r}();const U5=$5;var JI=function(){function r(t){this.value=t}return r}(),Y5=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new JI(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Z5=function(){function r(t){this._list=new Y5,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new JI(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const yf=Z5;var Sx={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 fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function X5(r){return r=Math.round(r),r<0?0:r>360?360:r}function zu(r){return r<0?0:r>1?1:r}function Xd(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?fn(parseFloat(t)/100*255):fn(parseInt(t,10))}function go(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?zu(parseFloat(t)/100):zu(parseFloat(t))}function qd(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Xi(r,t,e){return r+(t-r)*e}function kr(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Vy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var QI=new yf(20),Yf=null;function $o(r,t){Yf&&Vy(Yf,t),Yf=QI.put(r,Yf||t.slice())}function Mr(r,t){if(r){t=t||[];var e=QI.get(r);if(e)return Vy(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Sx)return Vy(t,Sx[n]),$o(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){kr(t,0,0,0,1);return}return kr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),$o(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){kr(t,0,0,0,1);return}return kr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),$o(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?kr(t,+u[0],+u[1],+u[2],1):kr(t,0,0,0,1);f=go(u.pop());case"rgb":if(u.length>=3)return kr(t,Xd(u[0]),Xd(u[1]),Xd(u[2]),u.length===3?f:go(u[3])),$o(r,t),t;kr(t,0,0,0,1);return;case"hsla":if(u.length!==4){kr(t,0,0,0,1);return}return u[3]=go(u[3]),By(u,t),$o(r,t),t;case"hsl":if(u.length!==3){kr(t,0,0,0,1);return}return By(u,t),$o(r,t),t;default:return}}kr(t,0,0,0,1)}}function By(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=go(r[1]),i=go(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],kr(t,fn(qd(o,a,e+1/3)*255),fn(qd(o,a,e)*255),fn(qd(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function q5(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-e)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-c:e===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function zy(r,t){var e=Mr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return ui(e,e.length===4?"rgba":"rgb")}}function Kd(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=fn(Xi(o[0],s[0],l)),e[1]=fn(Xi(o[1],s[1],l)),e[2]=fn(Xi(o[2],s[2],l)),e[3]=zu(Xi(o[3],s[3],l)),e}}function K5(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Mr(t[i]),s=Mr(t[a]),l=n-i,u=ui([fn(Xi(o[0],s[0],l)),fn(Xi(o[1],s[1],l)),fn(Xi(o[2],s[2],l)),zu(Xi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function pu(r,t,e,n){var i=Mr(r);if(r)return i=q5(i),t!=null&&(i[0]=X5(t)),e!=null&&(i[1]=go(e)),n!=null&&(i[2]=go(n)),ui(By(i),"rgba")}function Eh(r,t){var e=Mr(r);if(e&&t!=null)return e[3]=zu(t),ui(e,"rgba")}function ui(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function kh(r,t){var e=Mr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var xx=new yf(100);function Gy(r){if(nt(r)){var t=xx.get(r);return t||(t=zy(r,-.1),xx.put(r,t)),t}else if(Hv(r)){var e=F({},r);return e.colorStops=Z(r.colorStops,function(n){return{offset:n.offset,color:zy(n.color,-.1)}}),e}return r}var Oh=Math.round;function Gu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Mr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var bx=1e-4;function qi(r){return r-bx}function Zf(r){return Oh(r*1e3)/1e3}function Fy(r){return Oh(r*1e4)/1e4}function j5(r){return"matrix("+Zf(r[0])+","+Zf(r[1])+","+Zf(r[2])+","+Zf(r[3])+","+Fy(r[4])+","+Fy(r[5])+")"}var J5={left:"start",right:"end",center:"middle",middle:"middle"};function Q5(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function tG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function eG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function tL(r){return r&&!!r.image}function rG(r){return r&&!!r.svgElement}function K0(r){return tL(r)||rG(r)}function eL(r){return r.type==="linear"}function rL(r){return r.type==="radial"}function nL(r){return r&&(r.type==="linear"||r.type==="radial")}function Uv(r){return"url(#"+r+")"}function iL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function aL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Kc,i=xt(r.scaleX,1),a=xt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Oh(o*Kc)+"deg, "+Oh(s*Kc)+"deg)"),l.join(" ")}var nG=function(){return zt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Hy=Array.prototype.slice;function ti(r,t,e){return(t-r)*e+r}function jd(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ax,l=e;if(qe(e)){var u=sG(e);s=u,(u===1&&!Ft(e[0])||u===2&&!Ft(e[0][0]))&&(o=!0)}else if(Ft(e)&&!Nu(e))s=qf;else if(nt(e))if(!isNaN(+e))s=qf;else{var f=Mr(e);f&&(l=f,s=ql)}else if(Hv(e)){var c=F({},l);c.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Mr(v.color)}}),eL(e)?s=Wy:rL(e)&&(s=$y),l=c}a===0?this.valType=s:(s!==this.valType||s===Ax)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=vt(n)?n:UI[n]||q0(n)),i.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Kf(i),u=Cx(i),f=0;f=0&&!(o[f].percent<=e);f--);f=h(f,s-2)}else{for(f=c;fe);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:h((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?bl:t[l];if((Kf(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Kf(a))a===rh?jd(m,v[i],d[i],y):iG(m,v[i],d[i],y);else if(Cx(a)){var _=v[i],S=d[i],x=a===Wy;t[l]={type:x?"linear":"radial",x:ti(_.x,S.x,y),y:ti(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var A=S.colorStops[T];return{offset:ti(w.offset,A.offset,y),color:eh(jd([],w.color,A.color,y))}}),global:S.global},x?(t[l].x2=ti(_.x2,S.x2,y),t[l].y2=ti(_.y2,S.y2,y)):t[l].r=ti(_.r,S.r,y)}else if(u)jd(m,v[i],d[i],y),n||(t[l]=eh(m));else{var b=ti(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===qf?t[n]=t[n]+i:e===ql?(Mr(t[n],bl),Xf(bl,bl,i,1),t[n]=eh(bl)):e===rh?Xf(t[n],t[n],i,1):e===oL&&Tx(t[n],t[n],i,1)},r}(),j0=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){H0("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,kt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,gu(u),i),this._trackKeys.push(s)}l.addKeyframe(t,gu(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function ms(){return new Date().getTime()}var uG=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ms()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Oy(n),!e._paused&&e.update())}Oy(n)},t.prototype.start=function(){this._running||(this._time=ms(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ms(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ms()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new j0(e,n.loop);return this.addAnimator(i),i},t}(Zr);const fG=uG;var cG=300,Jd=zt.domSupported,Qd=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Mx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dx=!1;function Uy(r){var t=r.pointerType;return t==="pen"||t==="touch"}function hG(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 tp(r){r&&(r.zrByTouch=!0)}function vG(r,t){return Or(r.dom,new dG(r,t),!0)}function sL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var dG=function(){function r(t,e){this.stopPropagation=de,this.stopImmediatePropagation=de,this.preventDefault=de,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),tn={mousedown:function(r){r=Or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Or(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Or(this.dom,r);var t=r.toElement||r.relatedTarget;sL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Dx=!0,r=Or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Dx||(r=Or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Or(this.dom,r),tp(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=Or(this.dom,r),tp(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=Or(this.dom,r),tp(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentPx||r<-Px}var Ta=[],Uo=[],rp=Cr(),np=Math.abs,SG=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return wa(this.rotation)||wa(this.x)||wa(this.y)||wa(this.scaleX-1)||wa(this.scaleY-1)||wa(this.skewX)||wa(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Lx(n),this.invTransform=null);return}n=n||Cr(),e?this.getLocalTransform(n):Lx(n),t&&(e?li(n,t,n):Z0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ta);var n=Ta[0]<0?-1:1,i=Ta[1]<0?-1:1,a=((Ta[0]-n)*e+n)/Ta[0]||0,o=((Ta[1]-i)*e+i)/Ta[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),js(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Cr(),li(Uo,t.invTransform,e),e=Uo);var n=this.originX,i=this.originY;(n||i)&&(rp[4]=n,rp[5]=i,li(Uo,e,rp),Uo[4]-=n,Uo[5]-=i,e=Uo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Be(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Be(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&np(t[0]-1)>1e-10&&np(t[3]-1)>1e-10?Math.sqrt(np(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){uL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-h*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=h*o,u&&Eo(e,e,u),e[4]+=n+f,e[5]+=i+c,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function uL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Vh(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=dn(n[0],e.width),u+=dn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var ip="__zr_normal__",ap=Wn.concat(["ignore"]),xG=Fn(Wn,function(r,t){return r[t]=!0,r},{ignore:!1}),Yo={},bG=new Mt(0,0,0,0),J0=function(){function r(t){this.id=OI(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,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(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=bG;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yo,n,f):Vh(Yo,n,f),a.x=Yo.x,a.y=Yo.y,o=Yo.align,s=Yo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=dn(c[0],f.width),v=dn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.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,e.setDefaultTextStyle(g)),e.__dirty|=br,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qy:Xy},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Mr(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ui(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},F(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,i=kt(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ip,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===ip,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Dt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){H0("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,f),h&&h.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=Dt(i,t),o=Dt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var h=0;h0||i.force&&!o.length){var T=void 0,A=void 0,C=void 0;if(s){A={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=e[y],h?T[y]=n[y]:e[y]=n[y]}}else if(h){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=gu(e[y]),TG(e,n,y)}}var x=new j0(e,!1,!1,c?$t(d,function(I){return I.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),h&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u==null?500:u,s?A:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const cL=J0;var hL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=Dt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=Dt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const zt=Vi;var U0=12,FI="sans-serif",na=U0+"px "+FI,e5=20,r5=100,n5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function i5(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e=0)s=o*e.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",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function M5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?gx(s,o):gx(o,s))}function XI(r){return r.nodeName.toUpperCase()==="CANVAS"}var D5=/([&<>"'])/g,I5={"&":"&","<":"<",">":">",'"':""","'":"'"};function qe(r){return r==null?"":(r+"").replace(D5,function(t,e){return I5[e]})}var L5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ud=[],P5=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function By(r,t,e,n){return e=e||{},n?mx(r,t,e):P5&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):mx(r,t,e),e}function mx(r,t,e){if(zt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(XI(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Vy(Ud,r,n,i)){e.zrX=Ud[0],e.zrY=Ud[1];return}}e.zrX=e.zrY=0}function J0(r){return r||window.event}function Or(r,t,e){if(t=J0(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&By(r,o,t,e)}else{By(r,t,t,e);var a=R5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&L5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function R5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function zy(r,t,e,n){r.addEventListener(t,e,n)}function E5(r,t,e,n){r.removeEventListener(t,e,n)}var gi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function _x(r){return r.which===2||r.which===3}var k5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Sx(n)/Sx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=O5(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function Zv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Q0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function li(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Hn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Eo(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=i*c+s*f,r[1]=-i*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function t_(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function js(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function N5(r){var t=Cr();return Q0(t,r),t}var V5=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ct=V5;var $f=Math.min,Uf=Math.max,_a=new Ct,Sa=new Ct,xa=new Ct,ba=new Ct,ml=new Ct,_l=new Ct,B5=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=$f(t.x,this.x),n=$f(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Cr();return Hn(a,a,[-e.x,-e.y]),t_(a,a,[n,i]),Hn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(ad&&(d=_,pd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},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(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_a.x=xa.x=e.x,_a.y=ba.y=e.y,Sa.x=ba.x=e.x+e.width,Sa.y=xa.y=e.y+e.height,_a.transform(n),ba.transform(n),Sa.transform(n),xa.transform(n),t.x=$f(_a.x,Sa.x,xa.x,ba.x),t.y=$f(_a.y,Sa.y,xa.y,ba.y);var l=Uf(_a.x,Sa.x,xa.x,ba.x),u=Uf(_a.y,Sa.y,xa.y,ba.y);t.width=l-t.x,t.height=u-t.y},r}();const Mt=B5;var qI="silent";function z5(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:G5}}function G5(){gi(this.event)}var F5=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zr),Sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),H5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zd=new Mt(0,0,0,0),KI=function(r){B(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Sl(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new F5,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new b5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(H5,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=jI(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Sl(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Sl(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=z5(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Sl(e,n);if(xx(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Zd.copy(h.getBoundingRect()),h.transform&&Zd.applyTransform(h.transform),Zd.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function W5(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?qI:!0}return!1}function xx(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=W5(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==qI)){t.target=o;break}}}function jI(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const $5=KI;var JI=32,xl=7;function U5(r){for(var t=0;r>=JI;)t|=r&1,r>>=1;return r+t}function bx(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function Y5(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-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]=a}}function Xd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function qd(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l