pixifact-cli 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/editor/assets/browserAll-DDpbpxbk.js +1 -0
- package/editor/assets/{capture-DkKec9UG.js → capture--KpnplUn.js} +1 -1
- package/editor/assets/{captureCompilerScenePreview-CeYQNPPP.js → captureCompilerScenePreview-CksQqv9T.js} +3 -3
- package/editor/assets/editor-CdMzlphb.js +5 -0
- package/editor/assets/editor-rwswALuA.css +1 -0
- package/editor/assets/{init-BTbgjve4.js → init-Cun-jBBV.js} +1 -1
- package/editor/assets/webworkerAll-CpwJPQ3Y.js +1 -0
- package/editor/capture.html +2 -2
- package/editor/index.html +3 -3
- package/package.json +2 -2
- package/src/editorServer.ts +25 -6
- package/src/editorSession.ts +26 -6
- package/editor/assets/browserAll-D1Wipsos.js +0 -1
- package/editor/assets/editor-B_YR_yGH.css +0 -1
- package/editor/assets/editor-CCOqWQMU.js +0 -5
- package/editor/assets/webworkerAll-Ch415gWo.js +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,M as s,N as c,O as l,P as u,R as d,S as f,T as p,U as m,V as h,W as g,a as _,d as v,f as y,h as b,i as x,j as S,k as C,l as ee,m as te,n as w,o as T,p as ne,r as re,s as ie,t as E,u as ae,z as D}from"./captureCompilerScenePreview-CeYQNPPP.js";function O(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var k={},oe=[],A=()=>{},se=()=>!1,ce=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),le=e=>e.startsWith(`onUpdate:`),j=Object.assign,ue=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},de=Object.prototype.hasOwnProperty,M=(e,t)=>de.call(e,t),N=Array.isArray,fe=e=>ye(e)===`[object Map]`,pe=e=>ye(e)===`[object Set]`,me=e=>ye(e)===`[object Date]`,he=e=>ye(e)===`[object RegExp]`,P=e=>typeof e==`function`,F=e=>typeof e==`string`,ge=e=>typeof e==`symbol`,I=e=>typeof e==`object`&&!!e,_e=e=>(I(e)||P(e))&&P(e.then)&&P(e.catch),ve=Object.prototype.toString,ye=e=>ve.call(e),be=e=>ye(e).slice(8,-1),xe=e=>ye(e)===`[object Object]`,Se=e=>F(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,Ce=O(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),we=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Te=/-\w/g,L=we(e=>e.replace(Te,e=>e.slice(1).toUpperCase())),Ee=/\B([A-Z])/g,De=we(e=>e.replace(Ee,`-$1`).toLowerCase()),Oe=we(e=>e.charAt(0).toUpperCase()+e.slice(1)),ke=we(e=>e?`on${Oe(e)}`:``),R=(e,t)=>!Object.is(e,t),Ae=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},je=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Me=e=>{let t=parseFloat(e);return isNaN(t)?e:t},Ne=e=>{let t=F(e)?Number(e):NaN;return isNaN(t)?e:t},Pe,Fe=()=>Pe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},Ie=O(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function Le(e){if(N(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=F(r)?Ve(r):Le(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(F(e)||I(e))return e}var Re=/;(?![^(]*\))/g,ze=/:([^]+)/,Be=/\/\*[^]*?\*\//g;function Ve(e){let t={};return e.replace(Be,``).split(Re).forEach(e=>{if(e){let n=e.split(ze);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function He(e){let t=``;if(F(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){let r=He(e[n]);r&&(t+=r+` `)}else if(I(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Ue(e){if(!e)return null;let{class:t,style:n}=e;return t&&!F(t)&&(e.class=He(t)),n&&(e.style=Le(n)),e}var We=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ge=O(We);We+``;function Ke(e){return!!e||e===``}function qe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Je(e[r],t[r]);return n}function Je(e,t){if(e===t)return!0;let n=me(e),r=me(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ge(e),r=ge(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return n&&r?qe(e,t):!1;if(n=I(e),r=I(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Je(e[n],t[n]))return!1}}return String(e)===String(t)}function Ye(e,t){return e.findIndex(e=>Je(e,t))}var Xe=e=>!!(e&&e.__v_isRef===!0),z=e=>F(e)?e:e==null?``:N(e)||I(e)&&(e.toString===ve||!P(e.toString))?Xe(e)?z(e.value):JSON.stringify(e,Ze,2):String(e),Ze=(e,t)=>Xe(t)?Ze(e,t.value):fe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Qe(t,r)+` =>`]=n,e),{})}:pe(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Qe(e))}:ge(t)?Qe(t):I(t)&&!N(t)&&!xe(t)?String(t):t,Qe=(e,t=``)=>ge(e)?`Symbol(${e.description??t})`:e;function $e(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var et,tt=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&et&&(et.active?(this.parent=et,this.index=(et.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=et;try{return et=this,e()}finally{et=t}}}on(){++this._on===1&&(this.prevScope=et,et=this)}off(){if(this._on>0&&--this._on===0){if(et===this)et=this.prevScope;else{let e=et;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function nt(e){return new tt(e)}function rt(){return et}function it(e,t=!1){et&&et.cleanups.push(e)}var B,at=new WeakSet,ot=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,et&&(et.active?et.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,at.has(this)&&(at.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ut(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tt(this),pt(this);let e=B,t=xt;B=this,xt=!0;try{return this.fn()}finally{mt(this),B=e,xt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)_t(e);this.deps=this.depsTail=void 0,Tt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?at.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ht(this)&&this.run()}get dirty(){return ht(this)}},st=0,ct,lt;function ut(e,t=!1){if(e.flags|=8,t){e.next=lt,lt=e;return}e.next=ct,ct=e}function dt(){st++}function ft(){if(--st>0)return;if(lt){let e=lt;for(lt=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ct;){let t=ct;for(ct=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function pt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mt(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),_t(r),vt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ht(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Et)||(e.globalVersion=Et,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ht(e))))return;e.flags|=2;let t=e.dep,n=B,r=xt;B=e,xt=!0;try{pt(e);let n=e.fn(e._value);(t.version===0||R(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{B=n,xt=r,mt(e),e.flags&=-3}}function _t(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)_t(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function vt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function yt(e,t){e.effect instanceof ot&&(e=e.effect.fn);let n=new ot(e);t&&j(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function bt(e){e.effect.stop()}var xt=!0,St=[];function Ct(){St.push(xt),xt=!1}function wt(){let e=St.pop();xt=e===void 0?!0:e}function Tt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=B;B=void 0;try{t()}finally{B=e}}}var Et=0,Dt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ot=class{constructor(e){this.computed=e,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(e){if(!B||!xt||B===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==B)t=this.activeLink=new Dt(B,this),B.deps?(t.prevDep=B.depsTail,B.depsTail.nextDep=t,B.depsTail=t):B.deps=B.depsTail=t,kt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=B.depsTail,t.nextDep=void 0,B.depsTail.nextDep=t,B.depsTail=t,B.deps===t&&(B.deps=e)}return t}trigger(e){this.version++,Et++,this.notify(e)}notify(e){dt();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ft()}}};function kt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)kt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var At=new WeakMap,jt=Symbol(``),Mt=Symbol(``),Nt=Symbol(``);function Pt(e,t,n){if(xt&&B){let t=At.get(e);t||At.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ot),r.map=t,r.key=n),r.track()}}function Ft(e,t,n,r,i,a){let o=At.get(e);if(!o){Et++;return}let s=e=>{e&&e.trigger()};if(dt(),t===`clear`)o.forEach(s);else{let i=N(e),a=i&&Se(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Nt||!ge(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Nt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(jt)),fe(e)&&s(o.get(Mt)));break;case`delete`:i||(s(o.get(jt)),fe(e)&&s(o.get(Mt)));break;case`set`:fe(e)&&s(o.get(jt));break}}ft()}function It(e,t){let n=At.get(e);return n&&n.get(t)}function Lt(e){let t=V(e);return t===e?t:(Pt(t,`iterate`,Nt),En(e)?t:t.map(kn))}function Rt(e){return Pt(e=V(e),`iterate`,Nt),e}function zt(e,t){return Tn(e)?An(wn(e)?kn(t):t):kn(t)}var Bt={__proto__:null,[Symbol.iterator](){return Vt(this,Symbol.iterator,e=>zt(this,e))},concat(...e){return Lt(this).concat(...e.map(e=>N(e)?Lt(e):e))},entries(){return Vt(this,`entries`,e=>(e[1]=zt(this,e[1]),e))},every(e,t){return Ut(this,`every`,e,t,void 0,arguments)},filter(e,t){return Ut(this,`filter`,e,t,e=>e.map(e=>zt(this,e)),arguments)},find(e,t){return Ut(this,`find`,e,t,e=>zt(this,e),arguments)},findIndex(e,t){return Ut(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Ut(this,`findLast`,e,t,e=>zt(this,e),arguments)},findLastIndex(e,t){return Ut(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Ut(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Gt(this,`includes`,e)},indexOf(...e){return Gt(this,`indexOf`,e)},join(e){return Lt(this).join(e)},lastIndexOf(...e){return Gt(this,`lastIndexOf`,e)},map(e,t){return Ut(this,`map`,e,t,void 0,arguments)},pop(){return Kt(this,`pop`)},push(...e){return Kt(this,`push`,e)},reduce(e,...t){return Wt(this,`reduce`,e,t)},reduceRight(e,...t){return Wt(this,`reduceRight`,e,t)},shift(){return Kt(this,`shift`)},some(e,t){return Ut(this,`some`,e,t,void 0,arguments)},splice(...e){return Kt(this,`splice`,e)},toReversed(){return Lt(this).toReversed()},toSorted(e){return Lt(this).toSorted(e)},toSpliced(...e){return Lt(this).toSpliced(...e)},unshift(...e){return Kt(this,`unshift`,e)},values(){return Vt(this,`values`,e=>zt(this,e))}};function Vt(e,t,n){let r=Rt(e),i=r[t]();return r!==e&&!En(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Ht=Array.prototype;function Ut(e,t,n,r,i,a){let o=Rt(e),s=o!==e&&!En(e),c=o[t];if(c!==Ht[t]){let t=c.apply(e,a);return s?kn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,zt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Wt(e,t,n,r){let i=Rt(e),a=i!==e&&!En(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=zt(e,t)),n.call(this,t,zt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?zt(e,c):c}function Gt(e,t,n){let r=V(e);Pt(r,`iterate`,Nt);let i=r[t](...n);return(i===-1||i===!1)&&Dn(n[0])?(n[0]=V(n[0]),r[t](...n)):i}function Kt(e,t,n=[]){Ct(),dt();let r=V(e)[t].apply(e,n);return ft(),wt(),r}var qt=O(`__proto__,__v_isRef,__isVue`),Jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(ge));function Yt(e){ge(e)||(e=String(e));let t=V(this);return Pt(t,`has`,e),t.hasOwnProperty(e)}var Xt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?_n:gn:i?hn:mn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=N(e);if(!r){let e;if(a&&(e=Bt[t]))return e;if(t===`hasOwnProperty`)return Yt}let o=Reflect.get(e,t,H(e)?e:n);if((ge(t)?Jt.has(t):qt(t))||(r||Pt(e,`get`,t),i))return o;if(H(o)){let e=a&&Se(t)?o:o.value;return r&&I(e)?xn(e):e}return I(o)?r?xn(o):yn(o):o}},Zt=class extends Xt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=N(e)&&Se(t);if(!this._isShallow){let e=Tn(i);if(!En(n)&&!Tn(n)&&(i=V(i),n=V(n)),!a&&H(i)&&!H(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:M(e,t),s=Reflect.set(e,t,n,H(e)?e:r);return e===V(r)&&s&&(o?R(n,i)&&Ft(e,`set`,t,n,i):Ft(e,`add`,t,n)),s}deleteProperty(e,t){let n=M(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Ft(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!ge(t)||!Jt.has(t))&&Pt(e,`has`,t),n}ownKeys(e){return Pt(e,`iterate`,N(e)?`length`:jt),Reflect.ownKeys(e)}},Qt=class extends Xt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},$t=new Zt,en=new Qt,tn=new Zt(!0),nn=new Qt(!0),rn=e=>e,an=e=>Reflect.getPrototypeOf(e);function on(e,t,n){return function(...r){let i=this.__v_raw,a=V(i),o=fe(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?rn:t?An:kn;return!t&&Pt(a,`iterate`,c?Mt:jt),j(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function sn(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function cn(e,t){let n={get(n){let r=this.__v_raw,i=V(r),a=V(n);e||(R(n,a)&&Pt(i,`get`,n),Pt(i,`get`,a));let{has:o}=an(i),s=t?rn:e?An:kn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&Pt(V(t),`iterate`,jt),t.size},has(t){let n=this.__v_raw,r=V(n),i=V(t);return e||(R(t,i)&&Pt(r,`has`,t),Pt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=V(a),s=t?rn:e?An:kn;return!e&&Pt(o,`iterate`,jt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return j(n,e?{add:sn(`add`),set:sn(`set`),delete:sn(`delete`),clear:sn(`clear`)}:{add(e){let n=V(this),r=an(n),i=V(e),a=!t&&!En(e)&&!Tn(e)?i:e;return r.has.call(n,a)||R(e,a)&&r.has.call(n,e)||R(i,a)&&r.has.call(n,i)||(n.add(a),Ft(n,`add`,a,a)),this},set(e,n){!t&&!En(n)&&!Tn(n)&&(n=V(n));let r=V(this),{has:i,get:a}=an(r),o=i.call(r,e);o||=(e=V(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?R(n,s)&&Ft(r,`set`,e,n,s):Ft(r,`add`,e,n),this},delete(e){let t=V(this),{has:n,get:r}=an(t),i=n.call(t,e);i||=(e=V(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Ft(t,`delete`,e,void 0,a),o},clear(){let e=V(this),t=e.size!==0,n=e.clear();return t&&Ft(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=on(r,e,t)}),n}function ln(e,t){let n=cn(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(M(n,r)&&r in t?n:t,r,i)}var un={get:ln(!1,!1)},dn={get:ln(!1,!0)},fn={get:ln(!0,!1)},pn={get:ln(!0,!0)},mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,_n=new WeakMap;function vn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function yn(e){return Tn(e)?e:Cn(e,!1,$t,un,mn)}function bn(e){return Cn(e,!1,tn,dn,hn)}function xn(e){return Cn(e,!0,en,fn,gn)}function Sn(e){return Cn(e,!0,nn,pn,_n)}function Cn(e,t,n,r,i){if(!I(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=vn(be(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function wn(e){return Tn(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function Tn(e){return!!(e&&e.__v_isReadonly)}function En(e){return!!(e&&e.__v_isShallow)}function Dn(e){return e?!!e.__v_raw:!1}function V(e){let t=e&&e.__v_raw;return t?V(t):e}function On(e){return!M(e,`__v_skip`)&&Object.isExtensible(e)&&je(e,`__v_skip`,!0),e}var kn=e=>I(e)?yn(e):e,An=e=>I(e)?xn(e):e;function H(e){return e?e.__v_isRef===!0:!1}function U(e){return Mn(e,!1)}function jn(e){return Mn(e,!0)}function Mn(e,t){return H(e)?e:new Nn(e,t)}var Nn=class{constructor(e,t){this.dep=new Ot,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:V(e),this._value=t?e:kn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||En(e)||Tn(e);e=n?e:V(e),R(e,t)&&(this._rawValue=e,this._value=n?e:kn(e),this.dep.trigger())}};function Pn(e){e.dep&&e.dep.trigger()}function W(e){return H(e)?e.value:e}function Fn(e){return P(e)?e():W(e)}var In={get:(e,t,n)=>t===`__v_raw`?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return H(i)&&!H(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ln(e){return wn(e)?e:new Proxy(e,In)}var Rn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Ot,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function zn(e){return new Rn(e)}function Bn(e){let t=N(e)?Array(e.length):{};for(let n in e)t[n]=Wn(e,n);return t}var Vn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=ge(t)?t:String(t),this._raw=V(e);let r=!0,i=e;if(!N(e)||ge(this._key)||!Se(this._key))do r=!Dn(i)||En(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=W(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&H(this._raw[this._key])){let t=this._object[this._key];if(H(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return It(this._raw,this._key)}},Hn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Un(e,t,n){return H(e)?e:P(e)?new Hn(e):I(e)&&arguments.length>1?Wn(e,t,n):U(e)}function Wn(e,t,n){return new Vn(e,t,n)}var Gn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ot(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Et-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&B!==this)return ut(this,!0),!0}get value(){let e=this.dep.track();return gt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Kn(e,t,n=!1){let r,i;return P(e)?r=e:(r=e.get,i=e.set),new Gn(r,i,n)}var qn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Jn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Yn={},Xn=new WeakMap,Zn=void 0;function Qn(){return Zn}function $n(e,t=!1,n=Zn){if(n){let t=Xn.get(n);t||Xn.set(n,t=[]),t.push(e)}}function er(e,t,n=k){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:En(e)||i===!1||i===0?tr(e,1):tr(e),u,d,f,p,m=!1,h=!1;if(H(e)?(d=()=>e.value,m=En(e)):wn(e)?(d=()=>l(e),m=!0):N(e)?(h=!0,m=e.some(e=>wn(e)||En(e)),d=()=>e.map(e=>{if(H(e))return e.value;if(wn(e))return l(e);if(P(e))return c?c(e,2):e()})):d=P(e)?t?c?()=>c(e,2):e:()=>{if(f){Ct();try{f()}finally{wt()}}let t=Zn;Zn=u;try{return c?c(e,3,[p]):e(p)}finally{Zn=t}}:A,t&&i){let e=d,t=i===!0?1/0:i;d=()=>tr(e(),t)}let g=rt(),_=()=>{u.stop(),g&&g.active&&ue(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return _(),n}}let v=h?Array(e.length).fill(Yn):Yn,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let n=u.run();if(e||i||m||(h?n.some((e,t)=>R(e,v[t])):R(n,v))){f&&f();let e=Zn;Zn=u;try{let e=[n,v===Yn?void 0:h&&v[0]===Yn?[]:v,p];v=n,c?c(t,3,e):t(...e)}finally{Zn=e}}}else u.run()};return s&&s(y),u=new ot(d),u.scheduler=o?()=>o(y,!1):y,p=e=>$n(e,!1,u),f=u.onStop=()=>{let e=Xn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();Xn.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function tr(e,t=1/0,n){if(t<=0||!I(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,H(e))tr(e.value,t,n);else if(N(e))for(let r=0;r<e.length;r++)tr(e[r],t,n);else if(pe(e)||fe(e))e.forEach(e=>{tr(e,t,n)});else if(xe(e)){for(let r in e)tr(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tr(e[r],t,n)}return e}var nr=[];function rr(e){nr.push(e)}function ir(){nr.pop()}function ar(e,t){}var or={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},sr={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function cr(e,t,n,r){try{return r?e(...r):e()}catch(e){ur(e,t,n)}}function lr(e,t,n,r){if(P(e)){let i=cr(e,t,n,r);return i&&_e(i)&&i.catch(e=>{ur(e,t,n)}),i}if(N(e)){let i=[];for(let a=0;a<e.length;a++)i.push(lr(e[a],t,n,r));return i}}function ur(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||k;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){Ct(),cr(a,null,10,[e,i,o]),wt();return}}dr(e,n,i,r,o)}function dr(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var fr=[],pr=-1,mr=[],hr=null,gr=0,_r=Promise.resolve(),vr=null;function yr(e){let t=vr||_r;return e?t.then(this?e.bind(this):e):t}function br(e){let t=pr+1,n=fr.length;for(;t<n;){let r=t+n>>>1,i=fr[r],a=Er(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function xr(e){if(!(e.flags&1)){let t=Er(e),n=fr[fr.length-1];!n||!(e.flags&2)&&t>=Er(n)?fr.push(e):fr.splice(br(t),0,e),e.flags|=1,Sr()}}function Sr(){vr||=_r.then(Dr)}function Cr(e){N(e)?mr.push(...e):hr&&e.id===-1?hr.splice(gr+1,0,e):e.flags&1||(mr.push(e),e.flags|=1),Sr()}function wr(e,t,n=pr+1){for(;n<fr.length;n++){let t=fr[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;fr.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Tr(e){if(mr.length){let e=[...new Set(mr)].sort((e,t)=>Er(e)-Er(t));if(mr.length=0,hr){hr.push(...e);return}for(hr=e,gr=0;gr<hr.length;gr++){let e=hr[gr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}hr=null,gr=0}}var Er=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Dr(e){try{for(pr=0;pr<fr.length;pr++){let e=fr[pr];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),cr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;pr<fr.length;pr++){let e=fr[pr];e&&(e.flags&=-2)}pr=-1,fr.length=0,Tr(e),vr=null,(fr.length||mr.length)&&Dr(e)}}var Or,kr=[];function Ar(e,t){Or=e,Or?(Or.enabled=!0,kr.forEach(({event:e,args:t})=>Or.emit(e,...t)),kr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Ar(e,t)}),setTimeout(()=>{Or||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,kr=[])},3e3)):kr=[]}var jr=null,Mr=null;function Nr(e){let t=jr;return jr=e,Mr=e&&e.type.__scopeId||null,t}function Pr(e){Mr=e}function Fr(){Mr=null}var Ir=e=>Lr;function Lr(e,t=jr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ps(-1);let i=Nr(t),a=As.length,o;try{o=e(...n)}finally{for(let e=As.length;e>a;e--)Ms();Nr(i),r._d&&Ps(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Rr(e,t){if(jr===null)return e;let n=bc(jr),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=k]=t[e];i&&(P(i)&&(i={mounted:i,updated:i}),i.deep&&tr(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function zr(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ct(),lr(c,n,8,[e.el,s,e,t]),wt())}}function Br(e,t){if(nc){let n=nc.provides,r=nc.parent&&nc.parent.provides;r===n&&(n=nc.provides=Object.create(r)),n[e]=t}}function Vr(e,t,n=!1){let r=rc();if(r||wo){let i=wo?wo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&P(t)?t.call(r&&r.proxy):t}}function Hr(){return!!(rc()||wo)}var Ur=Symbol.for(`v-scx`),Wr=()=>Vr(Ur);function Gr(e,t){return Jr(e,null,t)}function Kr(e,t){return Jr(e,null,{flush:`post`})}function qr(e,t){return Jr(e,null,{flush:`sync`})}function G(e,t,n){return Jr(e,t,n)}function Jr(e,t,n=k){let{immediate:r,deep:i,flush:a,once:o}=n,s=j({},n),c=t&&r||!t&&a!==`post`,l;if(lc){if(a===`sync`){let e=Wr();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=A,e.resume=A,e.pause=A,e}}let u=nc;s.call=(e,t,n)=>lr(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{rs(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():xr(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=er(e,t,s);return lc&&(l?l.push(f):c&&f()),f}function Yr(e,t,n){let r=this.proxy,i=F(e)?e.includes(`.`)?Xr(r,e):()=>r[e]:e.bind(r,r),a;P(t)?a=t:(a=t.handler,n=t);let o=oc(this),s=Jr(i,a.bind(r),n);return o(),s}function Xr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Zr=new WeakMap,Qr=Symbol(`_vte`),$r=e=>e.__isTeleport,ei=e=>e&&(e.disabled||e.disabled===``),ti=e=>e&&(e.defer||e.defer===``),ni=e=>typeof SVGElement<`u`&&e instanceof SVGElement,ri=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ii=(e,t)=>{let n=e&&e.to;return F(n)?t?t(n):null:n},ai={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=ei(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=ei(e.props),r=e.target=ii(e.props,m),a=ui(r,e,h,p);r&&(o!==`svg`&&ni(r)?o=`svg`:o!==`mathml`&&ri(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),li(e,!1)))},S=e=>{let t=()=>{Zr.get(e)===t&&(Zr.delete(e),ei(e.props)&&(b(e,_(e.el)||n,e.anchor),li(e,!0)),x(e))};Zr.set(e,t),rs(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),ti(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),li(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Zr.get(e);if(u){u.flags|=8,Zr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=ei(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||ni(p)?o=`svg`:(o===`mathml`||ri(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),us(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):oi(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ii(t.props,m);e&&(t.target=e,oi(t,e,null,l,0))}else g&&oi(t,p,h,l,1);li(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=ei(f),m=a||!p,h=Zr.get(e);if(h&&(h.flags|=8,Zr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:oi,hydrate:si};function oi(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Zr.has(e)&&(!d||ei(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function si(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=ii(t.props,c),h=ei(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||ui(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||ui(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),li(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var ci=ai;function li(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function ui(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Qr]=o,e&&(r(a,e,i),r(o,e,i)),o}var di=Symbol(`_leaveCb`),fi=Symbol(`_enterCb`);function pi(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _a(()=>{e.isMounted=!0}),ba(()=>{e.isUnmounting=!0}),e}var mi=[Function,Array],hi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mi,onEnter:mi,onAfterEnter:mi,onEnterCancelled:mi,onBeforeLeave:mi,onLeave:mi,onAfterLeave:mi,onLeaveCancelled:mi,onBeforeAppear:mi,onAppear:mi,onAfterAppear:mi,onAppearCancelled:mi},gi=e=>{let t=e.subTree;return t.component?gi(t.component):t},_i={name:`BaseTransition`,props:hi,setup(e,{slots:t}){let n=rc(),r=pi();return()=>{let i=t.default&&Ti(t.default(),!0),a=i&&i.length?vi(i):n.subTree?qs():void 0;if(!a)return;let o=V(e),{mode:s}=o;if(r.isLeaving)return Si(a);let c=Ci(a);if(!c)return Si(a);let l=xi(c,o,r,n,e=>l=e);c.type!==q&&wi(c,l);let u=n.subTree&&Ci(n.subTree);if(u&&u.type!==q&&!Rs(u,c)&&gi(n).type!==q){let e=xi(u,o,r,n);if(wi(u,e),s===`out-in`&&c.type!==q)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Si(a);s===`in-out`&&c.type!==q?e.delayLeave=(e,t,n)=>{let i=bi(r,u);i[String(u.key)]=u,e[di]=()=>{t(),e[di]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function vi(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==q){t=n;break}}return t}var yi=_i;function bi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function xi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=bi(n,e),S=(e,t)=>{e&&lr(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),N(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},ee={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[di]&&t[di](!0);let i=x[b];i&&Rs(e,i)&&i.el[di]&&i.el[di](),S(r,[t])},enter(t){if(x[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=_||l,i=v||u,o=y||d;else return;let s=!1;t[fi]=e=>{s||(s=!0,S(e?o:i,[t]),ee.delayedLeave&&ee.delayedLeave(),t[fi]=void 0)};let c=t[fi].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[fi]&&t[fi](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[di]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[di]=void 0,x[i]===e&&delete x[i])};let o=t[di].bind(null,!1);x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=xi(e,t,n,r,i);return i&&i(a),a}};return ee}function Si(e){if(aa(e))return e=Ws(e),e.children=null,e}function Ci(e){if(!aa(e))return $r(e.type)&&e.children?vi(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&P(n.default))return n.default()}}function wi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,wi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ti(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===K?(o.patchFlag&128&&i++,r=r.concat(Ti(o.children,t,s))):(t||o.type!==q)&&r.push(s==null?o:Ws(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Ei(e,t){return P(e)?j({name:e.name},t,{setup:e}):e}function Di(){let e=rc();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Oi(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function ki(e){let t=rc(),n=jn(null);if(t){let r=t.refs===k?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function Ai(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var ji=new WeakMap;function Mi(e,t,n,r,i=!1){if(N(e)){e.forEach((e,a)=>Mi(e,t&&(N(t)?t[a]:t),n,r,i));return}if(na(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Mi(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?bc(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===k?s.refs={}:s.refs,d=s.setupState,f=V(d),p=d===k?se:e=>Ai(u,e)?!1:M(f,e),m=(e,t)=>!(t&&Ai(u,t));if(l!=null&&l!==c){if(Ni(t),F(l))u[l]=null,p(l)&&(d[l]=null);else if(H(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(P(c))cr(c,s,12,[o,u]);else{let t=F(c),r=H(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)N(n)&&ue(n,a);else if(N(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),ji.delete(e)};t.id=-1,ji.set(e,t),rs(t,n)}else Ni(e),s()}}}function Ni(e){let t=ji.get(e);t&&(t.flags|=8,ji.delete(e))}var Pi=!1,Fi=()=>{Pi||=(console.error(`Hydration completed but contains mismatches.`),!0)},Ii=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Li=e=>e.namespaceURI.includes(`MathML`),Ri=e=>{if(e.nodeType===1){if(Ii(e))return`svg`;if(Li(e))return`mathml`}},zi=e=>e.nodeType===8;function Bi(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Tr(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Tr(),t._vnode=e},d=(n,r,s,l,u,y=!1)=>{y||=!!r.dynamicChildren;let b=zi(n)&&n.data===`[`,x=()=>h(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:ee,patchFlag:te}=r,w=n.nodeType;r.el=n,te===-2&&(y=!1,r.dynamicChildren=null);let T=null;switch(S){case Os:w===3?(n.data!==r.children&&(Fi(),n.data=r.children),T=a(n)):r.children===``?(c(r.el=i(``),o(n),n),T=n):T=x();break;case q:v(n)?(T=a(n),_(r.el=n.content.firstChild,n,s)):T=w!==8||b?x():a(n);break;case ks:if(b&&(n=a(n),w=n.nodeType),w===1||w===3){T=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=T.nodeType===1?T.outerHTML:T.data),t===r.staticCount-1&&(r.anchor=T),T=a(T);return b?a(T):T}else x();break;case K:T=b?m(n,r,s,l,u,y):x();break;default:if(ee&1)T=(w!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!v(n)?x():f(n,r,s,l,u,y);else if(ee&6){r.slotScopeIds=u;let e=o(n);if(T=b?g(n):zi(n)&&n.data===`teleport start`?g(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,Ri(e),y),na(r)&&!r.type.__asyncResolved){let t;b?(t=Z(K),t.anchor=T?T.previousSibling:e.lastChild):t=n.nodeType===3?Gs(``):Z(`div`),t.el=n,r.component.subTree=t}}else ee&64?T=w===8?r.type.hydrate(n,r,s,l,u,y,e,p):x():ee&128&&(T=r.type.hydrate(n,r,s,l,Ri(o(n)),u,y,e,d))}return C!=null&&Mi(C,null,l,r),T},f=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:c,dynamicProps:l,props:u,patchFlag:d,shapeFlag:f,dirs:m,transition:h}=t,g=c===`input`||c===`option`,y=!!l;if(g||y||d!==-1){m&&zr(t,null,n,`created`);let c=!1;if(v(e)){c=ls(null,h)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),h.beforeEnter(r)}_(r,e,n),t.el=e=r}if(f&16&&!(u&&(u.innerHTML||u.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(r&&!Ui(e,1)&&Fi();r;){let e=r;r=r.nextSibling,s(e)}}else if(f&8){let n=t.children;n[0]===`
|
|
2
|
-
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
|
3
|
-
`)&&(Ui(e,0)||Fi(),e.textContent=t.children)}if(u){if(g||y||!o||d&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in u)(g&&(a.endsWith(`value`)||a===`indeterminate`)||ce(a)&&!Ce(a)||a[0]===`.`||t&&!Ce(a)||l&&l.includes(a))&&r(e,a,null,u[a],i,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&wn(u.style))for(let e in u.style)u.style[e]}let b;(b=u&&u.onVnodeBeforeMount)&&Qs(b,n,t),m&&zr(t,null,n,`beforeMount`),((b=u&&u.onVnodeMounted)||m||c)&&Ts(()=>{b&&Qs(b,n,t),c&&h.enter(e),m&&zr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length,m=!1;for(let t=0;t<p;t++){let h=u?f[t]:f[t]=Js(f[t]),g=h.type===Os;e?(g&&!u&&t+1<p&&Js(f[t+1]).type===Os&&(c(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=d(e,h,o,s,l,u)):g&&!h.children?c(h.el=i(``),r):(m||(m=!0,Ui(r,1)||Fi()),n(null,h,r,null,o,s,Ri(r),l))}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&zi(f)&&f.data===`]`?a(t.anchor=f):(Fi(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(Gi(e,t)||Fi(),t.el=null,l){let t=g(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,Ri(d),c),r&&(r.vnode.el=t.el,Ro(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&zi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},_=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}var Vi=`data-allow-mismatch`,Hi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ui(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Vi);)e=e.parentElement;return Wi(e&&e.getAttribute(Vi),t)}function Wi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(Hi[t])}}function Gi(e,t){return Ui(e.parentElement,1)||Ki(e)||qi(t)}function Ki(e){return e.nodeType===1&&Wi(e.getAttribute(Vi),1)}function qi({props:e}){let t=e&&e[Vi];return typeof t==`string`&&Wi(t,1)}var Ji=Fe().requestIdleCallback||(e=>setTimeout(e,1)),Yi=Fe().cancelIdleCallback||(e=>clearTimeout(e)),Xi=(e=1e4)=>t=>{let n=Ji(t,{timeout:e});return()=>Yi(n)};function Zi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Qi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Zi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},$i=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},ea=(e=[])=>(t,n)=>{F(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function ta(e,t){if(zi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(zi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var na=e=>!!e.type.__asyncLoader;function ra(e){P(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return Ei({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>ta(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=nc;if(Oi(e),u)return()=>ia(u,e);let t=t=>{l=null,ur(t,e,13,!r)};if(s&&e.suspense||lc)return p().then(t=>()=>ia(t,e)).catch(e=>(t(e),()=>r?Z(r,{error:e}):null));let a=U(!1),c=U(),d=U(!!i),f,m;return xa(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&aa(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return ia(u,e);if(c.value&&r)return Z(r,{error:c.value});if(n&&!d.value)return ia(n,e)}}})}function ia(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=Z(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var aa=e=>e.type.__isKeepAlive,oa={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=rc(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),rs(()=>{a.isDeactivated=!1,a.a&&Ae(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Qs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;ps(t.m),ps(t.a),l(e,f,null,1,s),rs(()=>{t.da&&Ae(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Qs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){fa(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=xc(na(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Rs(t,o))?p(t):o&&fa(o),i.delete(e),a.delete(e)}G(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>sa(e,t)),t&&m(e=>!sa(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(hs(n.subTree.type)?rs(()=>{i.set(g,pa(n.subTree))},n.subTree.suspense):i.set(g,pa(n.subTree)))};return _a(_),ya(_),ba(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=pa(t);if(e.type===i.type&&e.key===i.key){fa(i);let e=i.component.da;e&&rs(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Ls(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=pa(r);if(s.type===q)return o=null,s;let c=s.type,l=xc(na(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!sa(u,l))||d&&l&&sa(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ws(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&wi(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,hs(r.type)?r:s}}};function sa(e,t){return N(e)?e.some(e=>sa(e,t)):F(e)?e.split(`,`).includes(t):he(e)?(e.lastIndex=0,e.test(t)):!1}function ca(e,t){ua(e,`a`,t)}function la(e,t){ua(e,`da`,t)}function ua(e,t,n=nc){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ma(t,r,n),n){let e=n.parent;for(;e&&e.parent;)aa(e.parent.vnode)&&da(r,t,n,e),e=e.parent}}function da(e,t,n,r){let i=ma(t,e,r,!0);xa(()=>{ue(r[t],i)},n)}function fa(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function pa(e){return e.shapeFlag&128?e.ssContent:e}function ma(e,t,n=nc,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ct();let i=oc(n),a=lr(t,n,e,r);return i(),wt(),a};return r?i.unshift(a):i.push(a),a}}var ha=e=>(t,n=nc)=>{(!lc||e===`sp`)&&ma(e,(...e)=>t(...e),n)},ga=ha(`bm`),_a=ha(`m`),va=ha(`bu`),ya=ha(`u`),ba=ha(`bum`),xa=ha(`um`),Sa=ha(`sp`),Ca=ha(`rtg`),wa=ha(`rtc`);function Ta(e,t=nc){ma(`ec`,e,t)}var Ea=`components`,Da=`directives`;function Oa(e,t){return Ma(Ea,e,!0,t)||e}var ka=Symbol.for(`v-ndc`);function Aa(e){return F(e)?Ma(Ea,e,!1)||e:e||ka}function ja(e){return Ma(Da,e)}function Ma(e,t,n=!0,r=!1){let i=jr||nc;if(i){let n=i.type;if(e===Ea){let e=xc(n,!1);if(e&&(e===t||e===L(t)||e===Oe(L(t))))return n}let a=Na(i[e]||n[e],t)||Na(i.appContext[e],t);return!a&&r?n:a}}function Na(e,t){return e&&(e[t]||e[L(t)]||e[Oe(L(t))])}function Pa(e,t,n,r){let i,a=n&&n[r],o=N(e);if(o||F(e)){let n=o&&wn(e),r=!1,s=!1;n&&(r=!En(e),s=Tn(e),e=Rt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?An(kn(e[n])):kn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(I(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Fa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(N(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ia(e,t,n={},r,i,a){if(jr.ce||jr.parent&&na(jr.parent)&&jr.parent.ce){let e=a!=null&&n.key==null?j({},n,{key:a}):n,i=Object.keys(e).length>0;return t!==`default`&&(e.name=t),J(),Is(K,null,[Z(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=As.length;J();let c;try{let i=o&&La(o(n)),s=n.key||a||i&&i.key;c=Is(K,{key:(s&&!ge(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=As.length;e>s;e--)Ms();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function La(e){return e.some(e=>Ls(e)?!(e.type===q||e.type===K&&!La(e.children)):!0)?e:null}function Ra(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ke(r)]=e[r];return n}var za=e=>e?cc(e)?bc(e):za(e.parent):null,Ba=j(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>za(e.parent),$root:e=>za(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uo(e),$forceUpdate:e=>e.f||=()=>{xr(e.update)},$nextTick:e=>e.n||=yr.bind(e.proxy),$watch:e=>Yr.bind(e)}),Va=(e,t)=>e!==k&&!e.__isScriptSetup&&M(e,t),Ha={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Va(r,t))return o[t]=1,r[t];else if(i!==k&&M(i,t))return o[t]=2,i[t];else if(M(a,t))return o[t]=3,a[t];else if(n!==k&&M(n,t))return o[t]=4,n[t];else ao&&(o[t]=0)}let l=Ba[t],u,d;if(l)return t===`$attrs`&&Pt(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==k&&M(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,M(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Va(i,t)?(i[t]=n,!0):r!==k&&M(r,t)?(r[t]=n,!0):M(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==k&&s[0]!==`$`&&M(e,s)||Va(t,s)||M(a,s)||M(r,s)||M(Ba,s)||M(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?M(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Ua=j({},Ha,{get(e,t){if(t!==Symbol.unscopables)return Ha.get(e,t,e)},has(e,t){return t[0]!==`_`&&!Ie(t)}});function Wa(){return null}function Ga(){return null}function Ka(e){}function qa(e){}function Ja(){return null}function Ya(){}function Xa(e,t){return null}function Za(){return $a(`useSlots`).slots}function Qa(){return $a(`useAttrs`).attrs}function $a(e){let t=rc();return t.setupContext||=yc(t)}function eo(e){return N(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function to(e,t){let n=eo(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?N(r)||P(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function no(e,t){return!e||!t?e||t:N(e)&&N(t)?e.concat(t):j({},eo(e),eo(t))}function ro(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function io(e){let t=rc(),n=lc,r=e();sc(),n&&ac(!1);let i=()=>{oc(t),n&&ac(!0)},a=()=>{rc()!==t&&t.scope.off(),sc(),n&&ac(!1)};return _e(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var ao=!0;function oo(e){let t=uo(e),n=e.proxy,r=e.ctx;ao=!1,t.beforeCreate&&co(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:x,renderTracked:S,renderTriggered:C,errorCaptured:ee,serverPrefetch:te,expose:w,inheritAttrs:T,components:ne,directives:re,filters:ie}=t;if(l&&so(l,r,null),o)for(let e in o){let t=o[e];P(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);I(t)&&(e.data=yn(t))}if(ao=!0,a)for(let e in a){let t=a[e],i=Q({get:P(t)?t.bind(n,n):P(t.get)?t.get.bind(n,n):A,set:!P(t)&&P(t.set)?t.set.bind(n):A});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)lo(s[e],r,n,e);if(c){let e=P(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Br(t,e[t])})}u&&co(u,e,`c`);function E(e,t){N(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(E(ga,d),E(_a,f),E(va,p),E(ya,m),E(ca,h),E(la,g),E(Ta,ee),E(wa,S),E(Ca,C),E(ba,v),E(xa,b),E(Sa,te),N(w))if(w.length){let t=e.exposed||={};w.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};x&&e.render===A&&(e.render=x),T!=null&&(e.inheritAttrs=T),ne&&(e.components=ne),re&&(e.directives=re),te&&Oi(e)}function so(e,t,n=A){N(e)&&(e=go(e));for(let n in e){let r=e[n],i;i=I(r)?`default`in r?Vr(r.from||n,r.default,!0):Vr(r.from||n):Vr(r),H(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function co(e,t,n){lr(N(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function lo(e,t,n,r){let i=r.includes(`.`)?Xr(n,r):()=>n[r];if(F(e)){let n=t[e];P(n)&&G(i,n)}else if(P(e))G(i,e.bind(n));else if(I(e))if(N(e))e.forEach(e=>lo(e,t,n,r));else{let r=P(e.handler)?e.handler.bind(n):t[e.handler];P(r)&&G(i,r,e)}}function uo(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>fo(c,e,o,!0)),fo(c,t,o)),I(t)&&a.set(t,c),c}function fo(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&fo(e,a,n,!0),i&&i.forEach(t=>fo(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=po[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var po={data:mo,props:yo,emits:yo,methods:vo,computed:vo,beforeCreate:_o,created:_o,beforeMount:_o,mounted:_o,beforeUpdate:_o,updated:_o,beforeDestroy:_o,beforeUnmount:_o,destroyed:_o,unmounted:_o,activated:_o,deactivated:_o,errorCaptured:_o,serverPrefetch:_o,components:vo,directives:vo,watch:bo,provide:mo,inject:ho};function mo(e,t){return t?e?function(){return j(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function ho(e,t){return vo(go(e),go(t))}function go(e){if(N(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _o(e,t){return e?[...new Set([].concat(e,t))]:t}function vo(e,t){return e?j(Object.create(null),e,t):t}function yo(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:j(Object.create(null),eo(e),eo(t??{})):t}function bo(e,t){if(!e)return t;if(!t)return e;let n=j(Object.create(null),e);for(let r in t)n[r]=_o(e[r],t[r]);return n}function xo(){return{app:null,config:{isNativeTag:se,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var So=0;function Co(e,t){return function(n,r=null){P(n)||(n=j({},n)),r!=null&&!I(r)&&(r=null);let i=xo(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:So++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Dc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&P(e.install)?(a.add(e),e.install(c,...t)):P(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||Z(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,bc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(lr(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=wo;wo=c;try{return e()}finally{wo=t}}};return c}}var wo=null;function To(e,t,n=k){let r=rc(),i=L(t),a=De(t),o=Eo(e,i),s=zn((o,s)=>{let c,l=k,u;return qr(()=>{let t=e[i];R(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!R(o,c)&&!(l!==k&&R(e,l)))return;let d=r.vnode.props,f=!!(d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d));f||(c=e,s()),r.emit(`update:${t}`,o),R(e,l)&&(R(e,o)&&!R(o,u)||f&&l!==k&&!R(o,c))&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||k:s,done:!1}:{done:!0}}}},s}var Eo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${L(t)}Modifiers`]||e[`${De(t)}Modifiers`];function Do(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||k,i=n,a=t.startsWith(`update:`),o=a&&Eo(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>F(e)?e.trim():e)),o.number&&(i=n.map(Me)));let s,c=r[s=ke(t)]||r[s=ke(L(t))];!c&&a&&(c=r[s=ke(De(t))]),c&&lr(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,lr(l,e,6,i)}}var Oo=new WeakMap;function ko(e,t,n=!1){let r=n?Oo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!P(e)){let r=e=>{let n=ko(e,t,!0);n&&(s=!0,j(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(I(e)&&r.set(e,null),null):(N(a)?a.forEach(e=>o[e]=null):j(o,a),I(e)&&r.set(e,o),o)}function Ao(e,t){return!e||!ce(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),M(e,t[0].toLowerCase()+t.slice(1))||M(e,De(t))||M(e,t))}function jo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Nr(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Js(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Js(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:No(s)}}catch(t){As.length=0,ur(t,e,1),_=Z(q)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(le)&&(v=Po(v,a)),y=Ws(y,v,!1,!0))}return n.dirs&&(y=Ws(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&wi(y,n.transition),_=y,Nr(g),_}function Mo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Ls(r)){if(r.type!==q||r.children===`v-if`){if(n)return;n=r}}else return}return n}var No=e=>{let t;for(let n in e)(n===`class`||n===`style`||ce(n))&&((t||={})[n]=e[n]);return t},Po=(e,t)=>{let n={};for(let r in e)(!le(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Io(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Lo(o,r,n)&&!Ao(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Io(r,o,l):!0:!!o;return!1}function Io(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Lo(t,e,a)&&!Ao(n,a))return!0}return!1}function Lo(e,t,n){let r=e[n],i=t[n];return n===`style`&&I(r)&&I(i)?!Je(r,i):r!==i}function Ro({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var zo={},Bo=()=>Object.create(zo),Vo=e=>Object.getPrototypeOf(e)===zo;function Ho(e,t,n,r=!1){let i={},a=Bo();e.propsDefaults=Object.create(null),Wo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:bn(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Uo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=V(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Ao(e.emitsOptions,o))continue;let u=t[o];if(c)if(M(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=L(o);i[t]=Go(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Wo(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!M(t,a)&&((r=De(a))===a||!M(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Go(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!M(t,e))&&(delete a[e],l=!0)}l&&Ft(e.attrs,`set`,``)}function Wo(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(Ce(c))continue;let l=t[c],u;i&&M(i,u=L(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Ao(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=V(n),r=s||k;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Go(i,t,s,r[s],e,!M(r,s))}}return o}function Go(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=M(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&P(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=oc(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===De(n))&&(r=!0))}return r}var Ko=new WeakMap;function qo(e,t,n=!1){let r=n?Ko:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!P(e)){let r=e=>{c=!0;let[n,r]=qo(e,t,!0);j(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return I(e)&&r.set(e,oe),oe;if(N(a))for(let e=0;e<a.length;e++){let t=L(a[e]);Jo(t)&&(o[t]=k)}else if(a)for(let e in a){let t=L(e);if(Jo(t)){let n=a[e],r=o[t]=N(n)||P(n)?{type:n}:j({},n),i=r.type,c=!1,l=!0;if(N(i))for(let e=0;e<i.length;++e){let t=i[e],n=P(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=P(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||M(r,`default`))&&s.push(t)}}let l=[o,s];return I(e)&&r.set(e,l),l}function Jo(e){return e[0]!==`$`&&!Ce(e)}var Yo=e=>e===`_`||e===`_ctx`||e===`$stable`,Xo=e=>N(e)?e.map(Js):[Js(e)],Zo=(e,t,n)=>{if(t._n)return t;let r=Lr((...e)=>Xo(t(...e)),n);return r._c=!1,r},Qo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Yo(n))continue;let i=e[n];if(P(i))t[n]=Zo(n,i,r);else if(i!=null){let e=Xo(i);t[n]=()=>e}}},$o=(e,t)=>{let n=Xo(t);e.slots.default=()=>n},es=(e,t,n)=>{for(let r in t)(n||!Yo(r))&&(e[r]=t[r])},ts=(e,t,n)=>{let r=e.slots=Bo();if(e.vnode.shapeFlag&32){let e=t._;e?(es(r,t,n),n&&je(r,`_`,e,!0)):Qo(t,r)}else t&&$o(e,t)},ns=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=k;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:es(i,t,n):(a=!t.$stable,Qo(t,i)),o=t}else t&&($o(e,t),o={default:1});if(a)for(let e in i)!Yo(e)&&o[e]==null&&delete i[e]},rs=Ts;function is(e){return os(e)}function as(e){return os(e,Bi)}function os(e,t){let n=Fe();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=A,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rs(e,t)&&(r=fe(e),j(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Os:g(e,t,n,r);break;case q:_(e,t,n,r);break;case ks:e??v(t,n,r,o);break;case K:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?x(e,t,n,r,i,a,o,s,c):d&6?re(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,he)}u!=null&&i?Mi(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Mi(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},x=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)S(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},S=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&ee(e.children,f,null,i,s,ss(e,c),l,d),_&&zr(e,null,i,`created`),C(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!Ce(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Qs(p,i,e)}_&&zr(e,null,i,`beforeMount`);let v=ls(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&rs(()=>{try{p&&Qs(p,i,e),v&&g.enter(f),_&&zr(e,null,i,`mounted`)}finally{}},s)},C=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||hs(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;C(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ee=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)h(null,e[l]=s?Ys(e[l]):Js(e[l]),t,n,r,i,a,o,s)},te=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||k,m=t.props||k,h;if(n&&cs(n,!1),(h=m.onVnodeBeforeUpdate)&&Qs(h,n,t,e),f&&zr(t,e,n,`beforeUpdate`),n&&cs(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(l=0,s=!1,d=null),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?w(e.dynamicChildren,d,c,n,r,ss(t,i),o):s||O(e,t,c,null,n,r,ss(t,i),o,!1),l>0){if(l&16)T(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&d==null&&T(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&rs(()=>{h&&Qs(h,n,t,e),f&&zr(t,e,n,`updated`)},r)},w=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];h(c,l,c.el&&(c.type===K||!Rs(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},T=(e,t,n,r,i)=>{if(t!==n){if(t!==k)for(let o in t)!Ce(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(Ce(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ne=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),ee(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(w(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&us(e,t,!0)):O(e,t,n,f,a,o,c,l,u)},re=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ie(t,n,r,i,a,o,c):E(e,t,c)},ie=(e,t,n,r,i,a,o)=>{let s=e.component=tc(e,r,i);if(aa(e)&&(s.ctx.renderer=he),uc(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=Z(q);_(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},E=(e,t,n)=>{let r=t.component=e.component;if(Fo(e,t,n))if(r.asyncDep&&!r.asyncResolved){D(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=fs(e);if(n){t&&(t.el=c.el,D(e,t,o)),n.asyncDep.then(()=>{rs(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;cs(e,!1),t?(t.el=c.el,D(e,t,o)):t=c,n&&Ae(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Qs(f,s,t,c),cs(e,!0);let p=jo(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),fe(m),e,i,a),t.el=p.el,u===null&&Ro(e,p.el),r&&rs(r,i),(f=t.props&&t.props.onVnodeUpdated)&&rs(()=>Qs(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=na(t);if(cs(e,!1),l&&Ae(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Qs(o,d,t),cs(e,!0),s&&F){let t=()=>{e.subTree=jo(e),F(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=jo(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&rs(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;rs(()=>Qs(o,d,e),i)}(t.shapeFlag&256||d&&na(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&rs(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ot(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>xr(u),cs(e,!0),l()},D=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Uo(e,t.props,r,n),ns(e,t.children,n),Ct(),wr(e),wt()},O=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ce(l,f,n,r,i,a,o,s,c);return}else if(p&256){se(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&N(l,i,a),f!==l&&u(n,f)):d&16?m&16?ce(l,f,n,r,i,a,o,s,c):N(l,i,a,!0):(d&8&&u(n,``),m&16&&ee(f,n,r,i,a,o,s,c))},se=(e,t,n,r,i,a,o,s,c)=>{e||=oe,t||=oe;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?Ys(t[f]):Js(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?N(e,i,a,!0,!1,d):ee(t,n,r,i,a,o,s,c,d)},ce=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?Ys(t[l]):Js(t[l]);if(Rs(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?Ys(t[f]):Js(t[f]);if(Rs(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?Ys(t[l]):Js(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)j(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?Ys(t[l]):Js(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,x=0,S=Array(y);for(l=0;l<y;l++)S[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){j(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&Rs(r,t[_])){u=_;break}u===void 0?j(r,i,a,!0):(S[u-m]=l+1,u>=x?x=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let C=b?ds(S):oe;for(_=C.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||ms(f):r;S[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==C[_]?le(d,n,p,2):_--)}}},le=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){le(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,he);return}if(c===K){r(s,t,n);for(let e=0;e<u.length;e++)le(u[e],t,n,a);r(e.anchor,t,n);return}if(c===ks){y(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.persisted&&!s[di]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),rs(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[di];s._isLeaving&&s[di](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},j=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ct(),Mi(s,null,n,e,!0),wt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!na(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Qs(_,t,e),u&6)M(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&zr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,he,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?N(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&N(c,t,n),r&&ue(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&rs(()=>{_&&Qs(_,t,e),h&&zr(e,null,t,`unmounted`),v&&(e.el=null)},n)},ue=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===K){de(n,r);return}if(t===ks){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},de=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},M=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ps(c),ps(l),r&&Ae(r),i.stop(),a&&(a.flags|=8,j(o,e,t,n)),s&&rs(s,t),rs(()=>{e.isUnmounted=!0},t)},N=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)j(e[o],t,n,r,i)},fe=e=>{if(e.shapeFlag&6)return fe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[Qr];return n?f(n):t},pe=!1,me=(e,t,n)=>{let r;e==null?t._vnode&&(j(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,pe||=(pe=!0,wr(r),Tr(),!1)},he={p:h,um:j,m:le,r:ue,mt:ie,mc:ee,pc:O,pbc:w,n:fe,o:e},P,F;return t&&([P,F]=t(he)),{render:me,hydrate:P,createApp:Co(me,P)}}function ss({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function cs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ls(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function us(e,t,n=!1){let r=e.children,i=t.children;if(N(r)&&N(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ys(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&us(t,a)),a.type===Os&&(a.patchFlag===-1&&(a=i[e]=Ys(a)),a.el=t.el),a.type===q&&!a.el&&(a.el=t.el)}}function ds(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function fs(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fs(t)}function ps(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ms(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ms(t.subTree):null}var hs=e=>e.__isSuspense,gs=0,_s={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)ys(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}bs(e,t,n,r,i,o,s,c,l)}},hydrate:Ss,normalize:Cs};function vs(e,t){let n=e.props&&e.props[t];P(n)&&n()}function ys(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=xs(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(vs(e,`onPending`),vs(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Es(f,e.ssFallback)):f.resolve(!1,!0)}function bs(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Rs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Es(d,p)))):(d.pendingId=gs++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Es(d,p))):m&&Rs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Rs(m,f))c(m,f,n,r,i,d,a,o,s),Es(d,f);else if(vs(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=gs++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function xs(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Ds(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?Ne(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:gs++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),Cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&rs(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,Es(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&Cr(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),vs(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;vs(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Es(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{ur(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;sc(),e.asyncResolved=!0;let{vnode:s}=e;fc(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),Ro(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Ss(e,t,n,r,i,a,o,s,c){let l=t.suspense=xs(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Cs(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ws(r?n.default:n),e.ssFallback=r?ws(n.fallback):Z(q)}function ws(e){let t;if(P(e)){let n=Ns&&e._c;n&&(e._d=!1,J()),e=e(),n&&(e._d=!0,t=js,Ms())}return N(e)&&(e=Mo(e)),e=Js(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ts(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Cr(e)}function Es(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Ro(r,i))}function Ds(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var K=Symbol.for(`v-fgt`),Os=Symbol.for(`v-txt`),q=Symbol.for(`v-cmt`),ks=Symbol.for(`v-stc`),As=[],js=null;function J(e=!1){As.push(js=e?null:[])}function Ms(){As.pop(),js=As[As.length-1]||null}var Ns=1;function Ps(e,t=!1){Ns+=e,e<0&&js&&t&&(js.hasOnce=!0)}function Fs(e){return e.dynamicChildren=Ns>0?js||oe:null,Ms(),Ns>0&&js&&js.push(e),e}function Y(e,t,n,r,i,a){return Fs(X(e,t,n,r,i,a,!0))}function Is(e,t,n,r,i){return Fs(Z(e,t,n,r,i,!0))}function Ls(e){return e?e.__v_isVNode===!0:!1}function Rs(e,t){return e.type===t.type&&e.key===t.key}function zs(e){}var Bs=({key:e})=>e??null,Vs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:F(e)||H(e)||P(e)?{i:jr,r:e,k:t,f:!!n}:e);function X(e,t=null,n=null,r=0,i=null,a=e===K?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bs(t),ref:t&&Vs(t),scopeId:Mr,slotScopeIds:null,children:n,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:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:jr};return s?(Xs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=F(n)?8:16),Ns>0&&!o&&js&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&js.push(c),c}var Z=Hs;function Hs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ka)&&(e=q),Ls(e)){let r=Ws(e,t,!0);return n&&Xs(r,n),Ns>0&&!a&&js&&(r.shapeFlag&6?js[js.indexOf(e)]=r:js.push(r)),r.patchFlag=-2,r}if(Sc(e)&&(e=e.__vccOpts),t){t=Us(t);let{class:e,style:n}=t;e&&!F(e)&&(t.class=He(e)),I(n)&&(Dn(n)&&!N(n)&&(n=j({},n)),t.style=Le(n))}let o=F(e)?1:hs(e)?128:$r(e)?64:I(e)?4:P(e)?2:0;return X(e,t,n,r,i,o,a,!0)}function Us(e){return e?Dn(e)||Vo(e)?j({},e):e:null}function Ws(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Zs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Bs(l),ref:t&&t.ref?n&&a?N(a)?a.concat(Vs(t)):[a,Vs(t)]:Vs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ws(e.ssContent),ssFallback:e.ssFallback&&Ws(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&wi(u,c.clone(u)),u}function Gs(e=` `,t=0){return Z(Os,null,e,t)}function Ks(e,t){let n=Z(ks,null,e);return n.staticCount=t,n}function qs(e=``,t=!1){return t?(J(),Is(q,null,e)):Z(q,null,e)}function Js(e){return e==null||typeof e==`boolean`?Z(q):N(e)?Z(K,null,e.slice()):Ls(e)?Ys(e):Z(Os,null,String(e))}function Ys(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ws(e)}function Xs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Xs(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Vo(t)?t._ctx=jr:r===3&&jr&&(jr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(P(t)){if(r&65){Xs(e,{default:t});return}t={default:t,_ctx:jr},n=32}else t=String(t),r&64?(n=16,t=[Gs(t)]):n=8;e.children=t,e.shapeFlag|=n}function Zs(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=He([t.class,r.class]));else if(e===`style`)t.style=Le([t.style,r.style]);else if(ce(e)){let n=t[e],i=r[e];i&&n!==i&&!(N(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!le(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Qs(e,t,n,r=null){lr(e,t,7,[n,r])}var $s=xo(),ec=0;function tc(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||$s,a={uid:ec++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new tt(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qo(r,i),emitsOptions:ko(r,i),emit:null,emitted:null,propsDefaults:k,inheritAttrs:r.inheritAttrs,ctx:k,data:k,props:k,attrs:k,slots:k,refs:k,setupState:k,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Do.bind(null,a),e.ce&&e.ce(a),a}var nc=null,rc=()=>nc||jr,ic,ac;{let e=Fe(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ic=t(`__VUE_INSTANCE_SETTERS__`,e=>nc=e),ac=t(`__VUE_SSR_SETTERS__`,e=>lc=e)}var oc=e=>{let t=nc;return ic(e),e.scope.on(),()=>{e.scope.off(),ic(t)}},sc=()=>{nc&&nc.scope.off(),ic(null)};function cc(e){return e.vnode.shapeFlag&4}var lc=!1;function uc(e,t=!1,n=!1){t&&ac(t);let{props:r,children:i}=e.vnode,a=cc(e);Ho(e,r,a,t),ts(e,i,n||t);let o=a?dc(e,t):void 0;return t&&ac(!1),o}function dc(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ha);let{setup:r}=n;if(r){Ct();let n=e.setupContext=r.length>1?yc(e):null,i=oc(e),a=cr(r,e,0,[e.props,n]),o=_e(a);if(wt(),i(),(o||e.sp)&&!na(e)&&Oi(e),o){if(a.then(sc,sc),t)return a.then(n=>{fc(e,n,t)}).catch(t=>{ur(t,e,0)});e.asyncDep=a}else fc(e,a,t)}else _c(e,t)}function fc(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:I(t)&&(e.setupState=Ln(t)),_c(e,n)}var pc,mc;function hc(e){pc=e,mc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ua))}}var gc=()=>!pc;function _c(e,t,n){let r=e.type;if(!e.render){if(!t&&pc&&!r.render){let t=r.template||uo(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=j(j({isCustomElement:n,delimiters:a},i),o);r.render=pc(t,s)}}e.render=r.render||A,mc&&mc(e)}{let t=oc(e);Ct();try{oo(e)}finally{wt(),t()}}}var vc={get(e,t){return Pt(e,`get`,``),e[t]}};function yc(e){return{attrs:new Proxy(e.attrs,vc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function bc(e){return e.exposed?e.exposeProxy||=new Proxy(Ln(On(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ba)return Ba[n](e)},has(e,t){return t in e||t in Ba}}):e.proxy}function xc(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return P(e)&&`__vccOpts`in e}var Q=(e,t)=>Kn(e,t,lc);function Cc(e,t,n){try{Ps(-1);let r=arguments.length;return r===2?I(t)&&!N(t)?Ls(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ls(n)&&(n=[n]),Z(e,t,n))}finally{Ps(1)}}function wc(){return;function e(t,n,r){let i=t[r];if(N(i)&&i.includes(n)||I(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function Tc(e,t,n,r){let i=n[r];if(i&&Ec(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Ec(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(R(n[e],t[e]))return!1;return Ns>0&&js&&js.push(e),!0}var Dc=`3.5.40`,Oc=A,kc=sr,Ac=Or,jc=Ar,Mc={createComponentInstance:tc,setupComponent:uc,renderComponentRoot:jo,setCurrentRenderingInstance:Nr,isVNode:Ls,normalizeVNode:Js,getComponentPublicInstance:bc,ensureValidVNode:La,pushWarningContext:rr,popWarningContext:ir},Nc=void 0,Pc=typeof window<`u`&&window.trustedTypes;if(Pc)try{Nc=Pc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Fc=Nc?e=>Nc.createHTML(e):e=>e,Ic=`http://www.w3.org/2000/svg`,Lc=`http://www.w3.org/1998/Math/MathML`,Rc=typeof document<`u`?document:null,zc=Rc&&Rc.createElement(`template`),Bc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Rc.createElementNS(Ic,e):t===`mathml`?Rc.createElementNS(Lc,e):n?Rc.createElement(e,{is:n}):Rc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Rc.createTextNode(e),createComment:e=>Rc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{zc.innerHTML=Fc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=zc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vc=`transition`,Hc=`animation`,Uc=Symbol(`_vtc`),Wc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Gc=j({},hi,Wc),Kc=(e=>(e.displayName=`Transition`,e.props=Gc,e))((e,{slots:t})=>Cc(yi,Yc(e),t)),qc=(e,t=[])=>{N(e)?e.forEach(e=>e(...t)):e&&e(...t)},Jc=e=>e?N(e)?e.some(e=>e.length>1):e.length>1:!1;function Yc(e){let t={};for(let n in e)n in Wc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Xc(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:ee=y}=t,te=(e,t,n,r)=>{e._enterCancelled=r,$c(e,t?u:s),$c(e,t?l:o),n&&n()},w=(e,t)=>{e._isLeaving=!1,$c(e,d),$c(e,p),$c(e,f),t&&t()},T=e=>(t,n)=>{let i=e?C:v,o=()=>te(t,e,n);qc(i,[t,o]),el(()=>{$c(t,e?c:a),Qc(t,e?u:s),Jc(i)||nl(t,r,h,o)})};return j(t,{onBeforeEnter(e){qc(_,[e]),Qc(e,a),Qc(e,o)},onBeforeAppear(e){qc(S,[e]),Qc(e,c),Qc(e,l)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>w(e,t);Qc(e,d),e._enterCancelled?(Qc(e,f),ol(e)):(ol(e),Qc(e,f)),el(()=>{e._isLeaving&&($c(e,d),Qc(e,p),Jc(b)||nl(e,r,g,n))}),qc(b,[e,n])},onEnterCancelled(e){te(e,!1,void 0,!0),qc(y,[e])},onAppearCancelled(e){te(e,!0,void 0,!0),qc(ee,[e])},onLeaveCancelled(e){w(e),qc(x,[e])}})}function Xc(e){if(e==null)return null;if(I(e))return[Zc(e.enter),Zc(e.leave)];{let t=Zc(e);return[t,t]}}function Zc(e){return Ne(e)}function Qc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Uc]||(e[Uc]=new Set)).add(t)}function $c(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Uc];n&&(n.delete(t),n.size||(e[Uc]=void 0))}function el(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var tl=0;function nl(e,t,n,r){let i=e._endId=++tl,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=rl(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function rl(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Vc}Delay`),a=r(`${Vc}Duration`),o=il(i,a),s=r(`${Hc}Delay`),c=r(`${Hc}Duration`),l=il(s,c),u=null,d=0,f=0;t===Vc?o>0&&(u=Vc,d=o,f=a.length):t===Hc?l>0&&(u=Hc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Vc:Hc:null,f=u?u===Vc?a.length:c.length:0);let p=u===Vc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Vc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function il(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>al(t)+al(e[n])))}function al(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function ol(e){return(e?e.ownerDocument:document).body.offsetHeight}function sl(e,t,n){let r=e[Uc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var cl=Symbol(`_vod`),ll=Symbol(`_vsh`),ul={name:`show`,beforeMount(e,{value:t},{transition:n}){e[cl]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):dl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),dl(e,!0),r.enter(e)):r.leave(e,()=>{dl(e,!1)}):dl(e,t))},beforeUnmount(e,{value:t}){dl(e,t)}};function dl(e,t){e.style.display=t?e[cl]:`none`,e[ll]=!t}function fl(){ul.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var pl=Symbol(``);function ml(e){let t=rc();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>gl(e,n))},r=()=>{let r=e(t.proxy);t.ce?gl(t.ce,r):hl(t.subTree,r),n(r)};va(()=>{Cr(r)}),_a(()=>{G(r,A,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),xa(()=>e.disconnect())})}function hl(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)gl(e.el,t);else if(e.type===K)e.children.forEach(e=>hl(e,t));else if(e.type===ks){let{el:n,anchor:r}=e;for(;n&&(gl(n,t),n!==r);)n=n.nextSibling}}function gl(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=$e(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[pl]=r}}var _l=/(?:^|;)\s*display\s*:/;function vl(e,t,n){let r=e.style,i=F(n),a=!1;if(n&&!i){if(t)if(F(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??bl(r,t,``)}else for(let e in t)n[e]??bl(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?bl(r,i,``):wl(e,i,!F(t)&&t?t[i]:void 0,o)||bl(r,i,o)}}else if(i){if(t!==n){let e=r[pl];e&&(n+=`;`+e),r.cssText=n,a=_l.test(n)}}else t&&e.removeAttribute(`style`);cl in e&&(e[cl]=a?r.display:``,e[ll]&&(r.display=`none`))}var yl=/\s*!important$/;function bl(e,t,n){if(N(n))n.forEach(n=>bl(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Cl(e,t);yl.test(n)?e.setProperty(De(r),n.replace(yl,``),`important`):e[r]=n}}var xl=[`Webkit`,`Moz`,`ms`],Sl={};function Cl(e,t){let n=Sl[t];if(n)return n;let r=L(t);if(r!==`filter`&&r in e)return Sl[t]=r;r=Oe(r);for(let n=0;n<xl.length;n++){let i=xl[n]+r;if(i in e)return Sl[t]=i}return t}function wl(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&F(r)&&n===r}var Tl=`http://www.w3.org/1999/xlink`;function El(e,t,n,r,i,a=Ge(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Tl,t.slice(6,t.length)):e.setAttributeNS(Tl,t,n):n==null||a&&!Ke(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ge(n)?String(n):n)}function Dl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Fc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ke(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Ol(e,t,n,r){e.addEventListener(t,n,r)}function kl(e,t,n,r){e.removeEventListener(t,n,r)}var Al=Symbol(`_vei`);function jl(e,t,n,r,i=null){let a=e[Al]||(e[Al]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Pl(t);r?Ol(e,n,a[t]=Rl(r,i),s):o&&(kl(e,n,o,s),a[t]=void 0)}}var Ml=/(Once|Passive|Capture)$/,Nl=/^on:?(?:Once|Passive|Capture)$/;function Pl(e){let t,n;for(;(n=e.match(Ml))&&!Nl.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):De(e.slice(2)),t]}var Fl=0,Il=Promise.resolve(),Ll=()=>Fl||=(Il.then(()=>Fl=0),Date.now());function Rl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(N(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&lr(e,t,5,a)}}else lr(r,t,5,[e])};return n.value=e,n.attached=Ll(),n}var zl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?sl(e,r,o):t===`style`?vl(e,n,r):ce(t)?le(t)||jl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Vl(e,t,r,o))?(Dl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&El(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Hl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!F(r)))?Dl(e,L(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),El(e,t,r,o))};function Vl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&zl(t)&&P(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return zl(t)&&F(n)?!1:t in e}function Hl(e,t){let n=e._def.props;if(!n)return!1;let r=L(t);return Array.isArray(n)?n.some(e=>L(e)===r):Object.keys(n).some(e=>L(e)===r)}var Ul={};function Wl(e,t,n){let r=Ei(e,t);xe(r)&&(r=j({},r,t));class i extends ql{constructor(e){super(r,e,n)}}return i.def=r,i}var Gl=((e,t)=>Wl(e,t,Lu)),Kl=typeof HTMLElement<`u`?HTMLElement:class{},ql=class e extends Kl{constructor(e,t={},n=Iu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Iu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(j({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,yr(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!N(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=Ne(this._props[e])),(i||=Object.create(null))[L(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)M(this,e)||Object.defineProperty(this,e,{get:()=>W(t[e])})}_resolveProps(e){let{props:t}=e,n=N(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(L))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Ul,r=L(e);t&&this._numberProps&&this._numberProps[r]&&(n=Ne(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Ul?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(De(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(De(e),t+``):t||this.removeAttribute(De(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Pu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Z(this._def,j(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,xe(t[0])?j({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),De(e)!==e&&t(De(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Jl(e){let t=rc();return t&&t.ce||null}function Yl(){let e=Jl();return e&&e.shadowRoot}function Xl(e=`$style`){{let t=rc();if(!t)return k;let n=t.type.__cssModules;return n&&n[e]||k}}var Zl=new WeakMap,Ql=new WeakMap,$l=Symbol(`_moveCb`),eu=Symbol(`_enterCb`),tu=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:j({},Gc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=rc(),r=pi(),i,a;return ya(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!ou(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(nu),i.forEach(ru);let r=i.filter(iu);ol(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Qc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[$l]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[$l]=null,$c(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=V(e),s=Yc(o),c=o.tag||K;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[ll]&&(i.push(t),wi(t,xi(t,s,r,n)),Zl.set(t,au(t.el)))}a=t.default?Ti(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&wi(t,xi(t,s,r,n))}return Z(c,null,a)}}});function nu(e){let t=e.el;t[$l]&&t[$l](),t[eu]&&t[eu]()}function ru(e){Ql.set(e,au(e.el))}function iu(e){let t=Zl.get(e),n=Ql.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function au(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function ou(e,t,n){let r=e.cloneNode(),i=e[Uc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=rl(r);return a.removeChild(r),o}var su=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return N(t)?e=>Ae(t,e):t};function cu(e){e.target.composing=!0}function lu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var uu=Symbol(`_assign`);function du(e,t,n){return t&&(e=e.trim()),n&&(e=Me(e)),e}var fu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[uu]=su(i);let a=r||i.props&&i.props.type===`number`;Ol(e,t?`change`:`input`,t=>{t.target.composing||e[uu](du(e.value,n,a))}),(n||a)&&Ol(e,`change`,()=>{e.value=du(e.value,n,a)}),t||(Ol(e,`compositionstart`,cu),Ol(e,`compositionend`,lu),Ol(e,`change`,lu))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[uu]=su(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Me(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},pu={deep:!0,created(e,t,n){e[uu]=su(n),Ol(e,`change`,()=>{let t=e._modelValue,n=vu(e),r=e.checked,i=e[uu];if(N(t)){let e=Ye(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(pe(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(yu(e,r))})},mounted:mu,beforeUpdate(e,t,n){e[uu]=su(n),mu(e,t,n)}};function mu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(N(t))i=Ye(t,r.props.value)>-1;else if(pe(t))i=t.has(r.props.value);else{if(t===n)return;i=Je(t,yu(e,!0))}e.checked!==i&&(e.checked=i)}var hu={created(e,{value:t},n){e.checked=Je(t,n.props.value),e[uu]=su(n),Ol(e,`change`,()=>{e[uu](vu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[uu]=su(r),t!==n&&(e.checked=Je(t,r.props.value))}},gu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Ol(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Me(vu(e)):vu(e));e[uu](e.multiple?pe(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,yr(()=>{e._assigning=!1})}),e[uu]=su(r)},mounted(e,{value:t}){_u(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[uu]=su(n)},updated(e,{value:t}){e._assigning||_u(e,t)}};function _u(e,t){let n=e.multiple,r=N(t);if(!(n&&!r&&!pe(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=vu(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=Ye(t,o)>-1}else a.selected=t.has(o);else if(Je(vu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vu(e){return`_value`in e?e._value:e.value}function yu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var bu={created(e,t,n){Su(e,t,n,null,`created`)},mounted(e,t,n){Su(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Su(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Su(e,t,n,r,`updated`)}};function xu(e,t){switch(e){case`SELECT`:return gu;case`TEXTAREA`:return fu;default:switch(t){case`checkbox`:return pu;case`radio`:return hu;default:return fu}}}function Su(e,t,n,r,i){let a=xu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Cu(){fu.getSSRProps=({value:e})=>({value:e}),hu.getSSRProps=({value:e},t)=>{if(t.props&&Je(t.props.value,e))return{checked:!0}},pu.getSSRProps=({value:e},t)=>{if(N(e)){if(t.props&&Ye(e,t.props.value)>-1)return{checked:!0}}else if(pe(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},bu.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=xu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var wu=[`ctrl`,`shift`,`alt`,`meta`],Tu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>wu.some(n=>e[`${n}Key`]&&!t.includes(n))},Eu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Tu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Du={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Ou=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=De(n.key);if(t.some(e=>e===r||Du[e]===r))return e(n)}))},ku=j({patchProp:Bl},Bc),Au,ju=!1;function Mu(){return Au||=is(ku)}function Nu(){return Au=ju?Au:as(ku),ju=!0,Au}var Pu=((...e)=>{Mu().render(...e)}),Fu=((...e)=>{Nu().hydrate(...e)}),Iu=((...e)=>{let t=Mu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=zu(e);if(!r)return;let i=t._component;!P(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ru(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Lu=((...e)=>{let t=Nu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=zu(e);if(t)return n(t,!0,Ru(t))},t});function Ru(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function zu(e){return F(e)?document.querySelector(e):e}var Bu=!1,Vu=()=>{Bu||(Bu=!0,Cu(),fl())},Hu=g({BaseTransition:()=>yi,BaseTransitionPropsValidators:()=>hi,Comment:()=>q,DeprecationTypes:()=>null,EffectScope:()=>tt,ErrorCodes:()=>or,ErrorTypeStrings:()=>kc,Fragment:()=>K,KeepAlive:()=>oa,ReactiveEffect:()=>ot,Static:()=>ks,Suspense:()=>_s,Teleport:()=>ci,Text:()=>Os,TrackOpTypes:()=>qn,Transition:()=>Kc,TransitionGroup:()=>tu,TriggerOpTypes:()=>Jn,VueElement:()=>ql,assertNumber:()=>ar,callWithAsyncErrorHandling:()=>lr,callWithErrorHandling:()=>cr,camelize:()=>L,capitalize:()=>Oe,cloneVNode:()=>Ws,compatUtils:()=>null,compile:()=>Uu,computed:()=>Q,createApp:()=>Iu,createBlock:()=>Is,createCommentVNode:()=>qs,createElementBlock:()=>Y,createElementVNode:()=>X,createHydrationRenderer:()=>as,createPropsRestProxy:()=>ro,createRenderer:()=>is,createSSRApp:()=>Lu,createSlots:()=>Fa,createStaticVNode:()=>Ks,createTextVNode:()=>Gs,createVNode:()=>Z,customRef:()=>zn,defineAsyncComponent:()=>ra,defineComponent:()=>Ei,defineCustomElement:()=>Wl,defineEmits:()=>Ga,defineExpose:()=>Ka,defineModel:()=>Ya,defineOptions:()=>qa,defineProps:()=>Wa,defineSSRCustomElement:()=>Gl,defineSlots:()=>Ja,devtools:()=>Ac,effect:()=>yt,effectScope:()=>nt,getCurrentInstance:()=>rc,getCurrentScope:()=>rt,getCurrentWatcher:()=>Qn,getTransitionRawChildren:()=>Ti,guardReactiveProps:()=>Us,h:()=>Cc,handleError:()=>ur,hasInjectionContext:()=>Hr,hydrate:()=>Fu,hydrateOnIdle:()=>Xi,hydrateOnInteraction:()=>ea,hydrateOnMediaQuery:()=>$i,hydrateOnVisible:()=>Qi,initCustomFormatter:()=>wc,initDirectivesForSSR:()=>Vu,inject:()=>Vr,isMemoSame:()=>Ec,isProxy:()=>Dn,isReactive:()=>wn,isReadonly:()=>Tn,isRef:()=>H,isRuntimeOnly:()=>gc,isShallow:()=>En,isVNode:()=>Ls,markRaw:()=>On,mergeDefaults:()=>to,mergeModels:()=>no,mergeProps:()=>Zs,nextTick:()=>yr,nodeOps:()=>Bc,normalizeClass:()=>He,normalizeProps:()=>Ue,normalizeStyle:()=>Le,onActivated:()=>ca,onBeforeMount:()=>ga,onBeforeUnmount:()=>ba,onBeforeUpdate:()=>va,onDeactivated:()=>la,onErrorCaptured:()=>Ta,onMounted:()=>_a,onRenderTracked:()=>wa,onRenderTriggered:()=>Ca,onScopeDispose:()=>it,onServerPrefetch:()=>Sa,onUnmounted:()=>xa,onUpdated:()=>ya,onWatcherCleanup:()=>$n,openBlock:()=>J,patchProp:()=>Bl,popScopeId:()=>Fr,provide:()=>Br,proxyRefs:()=>Ln,pushScopeId:()=>Pr,queuePostFlushCb:()=>Cr,reactive:()=>yn,readonly:()=>xn,ref:()=>U,registerRuntimeCompiler:()=>hc,render:()=>Pu,renderList:()=>Pa,renderSlot:()=>Ia,resolveComponent:()=>Oa,resolveDirective:()=>ja,resolveDynamicComponent:()=>Aa,resolveFilter:()=>null,resolveTransitionHooks:()=>xi,setBlockTracking:()=>Ps,setDevtoolsHook:()=>jc,setTransitionHooks:()=>wi,shallowReactive:()=>bn,shallowReadonly:()=>Sn,shallowRef:()=>jn,ssrContextKey:()=>Ur,ssrUtils:()=>Mc,stop:()=>bt,toDisplayString:()=>z,toHandlerKey:()=>ke,toHandlers:()=>Ra,toRaw:()=>V,toRef:()=>Un,toRefs:()=>Bn,toValue:()=>Fn,transformVNodeArgs:()=>zs,triggerRef:()=>Pn,unref:()=>W,useAttrs:()=>Qa,useCssModule:()=>Xl,useCssVars:()=>ml,useHost:()=>Jl,useId:()=>Di,useModel:()=>To,useSSRContext:()=>Wr,useShadowRoot:()=>Yl,useSlots:()=>Za,useTemplateRef:()=>ki,useTransitionState:()=>pi,vModelCheckbox:()=>pu,vModelDynamic:()=>bu,vModelRadio:()=>hu,vModelSelect:()=>gu,vModelText:()=>fu,vShow:()=>ul,version:()=>Dc,warn:()=>Oc,watch:()=>G,watchEffect:()=>Gr,watchPostEffect:()=>Kr,watchSyncEffect:()=>qr,withAsyncContext:()=>io,withCtx:()=>Lr,withDefaults:()=>Xa,withDirectives:()=>Rr,withKeys:()=>Ou,withMemo:()=>Tc,withModifiers:()=>Eu,withScopeId:()=>Ir}),Uu=()=>{},Wu=typeof window<`u`,Gu,Ku=e=>Gu=e,qu=Symbol();function Ju(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Yu=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Xu(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Zu(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){nd(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Qu(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function $u(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var ed=typeof navigator==`object`?navigator:{userAgent:``},td=/Macintosh/.test(ed.userAgent)&&/AppleWebKit/.test(ed.userAgent)&&!/Safari/.test(ed.userAgent),nd=Wu?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!td?rd:`msSaveOrOpenBlob`in ed?id:ad:()=>{};function rd(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?$u(r):Qu(r.href)?Zu(e,t,n):(r.target=`_blank`,$u(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){$u(r)},0))}function id(e,t=`download`,n){if(typeof e==`string`)if(Qu(e))Zu(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){$u(t)})}else navigator.msSaveOrOpenBlob(Xu(e,n),t)}function ad(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Zu(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Yu.HTMLElement))||`safari`in Yu,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||td)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:od}=Object;function sd(){let e=nt(!0),t=e.run(()=>U({})),n=[],r=[],i=On({install(e){Ku(i),i._a=e,e.provide(qu,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var cd=()=>{};function ld(e,t,n,r=cd){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&rt()&&it(i),i}function ud(e,...t){e.forEach(e=>{e(...t)})}var dd=e=>e(),fd=Symbol(),pd=Symbol();function md(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let r=t[n],i=e[n];Ju(i)&&Ju(r)&&Object.hasOwn(e,n)&&!H(r)&&!wn(r)?e[n]=md(i,r):e[n]=r}return e}var hd=Symbol();function gd(e){return!e||typeof e!=`object`||!Object.hasOwn(e,hd)}var{assign:_d}=Object;function vd(e){return!!(H(e)&&e.effect)}function yd(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),_d(Bn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=On(Q(()=>{Ku(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=bd(e,l,t,n,r,!0),c}function bd(e,t,n={},r,i,a){let o,s=_d({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:`patch function`,storeId:e,events:void 0}):(md(r.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:void 0});let i=m=Symbol();yr().then(()=>{m===i&&(l=!0)}),u=!0,ud(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{_d(e,t)})}:cd;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(fd in t)return t[pd]=n,t;let i=function(){Ku(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}ud(f,{args:n,name:i[pd],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw ud(o,e),e}return l instanceof Promise?l.then(e=>(ud(a,e),e)).catch(e=>(ud(o,e),Promise.reject(e))):(ud(a,l),l)};return i[fd]=!0,i[pd]=n,i},y=yn({_p:r,$id:e,$onAction:ld.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){if(d.has(t))return cd;let i=ld(d,t,n.detached,()=>a()),a=o.run(()=>G(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:`direct`,events:void 0},r)},_d({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||dd)(()=>r._e.run(()=>(o=nt()).run(()=>t({action:v}))));for(let t in b){let n=b[t];H(n)&&!vd(n)||wn(n)?a||(p&&gd(n)&&(H(n)?n.value=p[t]:md(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return _d(y,b),_d(V(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{_d(t,e)})}}),r._p.forEach(e=>{_d(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function xd(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Hr();return n||=o?Vr(qu,null):null,n&&Ku(n),n=Gu,n._s.has(e)||(i?bd(e,t,r,n):yd(e,r,n)),n._s.get(e)}return a.$id=e,a}function Sd(e){let t=V(e),n={};for(let r in t){let i=t[r];i?.effect?n[r]=Q({get:()=>e[r],set(t){e[r]=t}}):(H(i)||wn(i))&&(n[r]=Un(e,r))}return n}var Cd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},wd=e=>e===``,Td=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ed=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Dd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Od=e=>{let t=Dd(e);return t.charAt(0).toUpperCase()+t.slice(1)},kd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ad=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:i,"stroke-width":a,size:o=kd.width,color:s=kd.stroke,...c},{slots:l})=>Cc(`svg`,{...kd,...c,width:o,height:o,stroke:s,"stroke-width":wd(n)||wd(r)||n===!0||r===!0?Number(i||a||kd[`stroke-width`])*24/Number(o):i||a||kd[`stroke-width`],class:Td(`lucide`,c.class,...e?[`lucide-${Ed(Od(e))}-icon`,`lucide-${Ed(e)}`]:[`lucide-icon`]),...!l.default&&!Cd(c)&&{"aria-hidden":`true`}},[...t.map(e=>Cc(...e)),...l.default?[l.default()]:[]]),$=(e,t)=>(n,{slots:r,attrs:i})=>Cc(Ad,{...i,...n,iconNode:t,name:e},r),jd=$(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Md=$(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Nd=$(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Pd=$(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Fd=$(`component`,[[`path`,{d:`M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1uwlt4`}],[`path`,{d:`M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z`,key:`10291m`}],[`path`,{d:`M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z`,key:`1tqoq1`}],[`path`,{d:`M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1x6lto`}]]),Id=$(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ld=$(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Rd=$(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),zd=$(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Bd=$(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Vd=$(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Hd=$(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),Ud=$(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Wd=$(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),Gd=$(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Kd=$(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),qd=$(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Jd=$(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Yd=$(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Xd=$(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Zd=$(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]);function Qd(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=Vr(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(Br(r,e),e)]}function $d(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}var ef=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var tf=e=>e!==void 0,nf=ef?window:void 0;ef&&window.document,ef&&window.navigator,ef&&window.location;function rf(e){let t=Fn(e);return t?.$el??t}function af(e){return JSON.parse(JSON.stringify(e))}function of(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=rc(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):af(e):e,g=()=>tf(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=U(g()),r=!1;return G(()=>e[t],e=>{r||(r=!0,n.value=h(e),yr(()=>r=!1))}),G(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}else return Q({get(){return g()},set(e){_(e)}})}function sf(e){return e?e.flatMap(e=>e.type===K?sf(e.children):[e]):[]}var[cf,lf]=Qd(`ConfigProvider`);function uf(e){let t=cf({dir:U(`ltr`)});return Q(()=>e?.value||t.dir?.value||`ltr`)}function df(){let e=rc(),t=U(),n=Q(()=>r());ya(()=>{n.value!==r()&&Pn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:rf(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}var ff=0;function pf(e,t=`reka`){if(e)return e;let n,r=cf({useId:void 0});return n=r.useId?r.useId():`useId`in Hu?Di?.():`${++ff}`,t?`${t}-${n}`:n}function mf(e,t){let n=U(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function hf(e,t){let n=U({}),r=U(`none`),i=U(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??nf,{state:c,dispatch:l}=mf(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(ef){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};G(e,async(e,i)=>{let a=i!==e;if(await yr(),a){let a=r.value,o=gf(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{let n=gf(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=gf(t.value))},p=G(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=G(c,()=>{let e=gf(t.value);r.value=c.value===`mounted`?e:`none`});return xa(()=>{p(),m(),t.value&&(t.value.removeEventListener(`animationstart`,f),t.value.removeEventListener(`animationcancel`,d),t.value.removeEventListener(`animationend`,d)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:Q(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function gf(e){return e&&getComputedStyle(e).animationName||`none`}var _f=Ei({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=Bn(e),a=U(),{isPresent:o}=hf(r,a);n({present:o});let s=t.default({present:o.value});s=sf(s||[]);let c=rc();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
4
|
-
`)].join(`
|
|
5
|
-
`))}return()=>i.value||r.value||o.value?Cc(t.default({present:o.value})[0],{ref:e=>{let t=rf(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),vf=Ei({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=sf(n.default()),r=e.findIndex(e=>e.type!==q);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Zs(t,i.props):t,o=Ws({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),yf=[`area`,`img`,`input`],bf=Ei({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&yf.includes(r)?()=>Cc(r,t):r===`template`?()=>Cc(vf,t,{default:n.default}):()=>Cc(e.as,t,{default:n.default})}});function xf(){let e=U();return{primitiveElement:e,currentElement:Q(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:rf(e))}}var Sf=`data-reka-collection-item`;function Cf(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:U(),itemMap:U(new Map)},Br(r,i)):i=Vr(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${Sf}]`)),r=new Map(n.map((e,t)=>[e,t])),a=Array.from(i.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=Ei({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=xf();return G(a,()=>{i.collectionRef.value=a.value}),()=>Cc(vf,{ref:r,...n},t)}}),s=Ei({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=xf();return Gr(t=>{if(a.value){let n=On(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Cc(vf,{...n,[Sf]:``,ref:r},t)}});return{getItems:a,reactiveItems:Q(()=>Array.from(i.itemMap.value.values())),itemMapSize:Q(()=>i.itemMap.value.size),CollectionSlot:o,CollectionItem:s}}var wf=`rovingFocusGroup.onEntryFocus`,Tf={bubbles:!1,cancelable:!0},Ef={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Df(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Of(e,t,n){let r=Df(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ef[r]}function kf(e,t=!1){let n=$d();for(let r of e)if(r===n||(r.focus({preventScroll:t}),$d()!==n))return}function Af(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[jf,Mf]=Qd(`RovingFocusGroup`),Nf=Ei({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=Bn(r),c=uf(s),l=of(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=U(!1),d=U(!1),f=U(0),{getItems:p,CollectionSlot:m}=Cf({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(wf,Tf);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);kf([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Mf({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(J(),Is(W(m),null,{default:Lr(()=>[Z(W(bf),{tabindex:u.value||f.value===0?-1:0,"data-orientation":W(o),as:e.as,"as-child":e.asChild,dir:W(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:Lr(()=>[Ia(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Pf=Ei({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=jf(),r=pf(),i=Q(()=>t.tabStopId||r),a=Q(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=Cf();_a(()=>{t.focusable&&n.onFocusableItemAdd()}),xa(()=>{t.focusable&&n.onFocusableItemRemove()}),G(()=>t.focusable,(e,t)=>{e!==t&&(e?n.onFocusableItemAdd():n.onFocusableItemRemove())});function c(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=Of(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...o().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?Af(i,t+1):i.slice(t+1)}yr(()=>kf(i))}}return(e,t)=>(J(),Is(W(s),null,{default:Lr(()=>[Z(W(bf),{tabindex:a.value?0:-1,"data-orientation":W(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?W(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>W(n).onItemFocus(i.value),onKeydown:c},{default:Lr(()=>[Ia(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[Ff,If]=Qd(`TabsRoot`),Lf=Ei({__name:`TabsRoot`,props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:`automatic`},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{orientation:i,unmountOnHide:a,dir:o}=Bn(n),s=uf(o);df();let c=of(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=U(),u=jn(new Set);return If({modelValue:c,changeModelValue:e=>{c.value=e},orientation:i,dir:s,unmountOnHide:a,activationMode:n.activationMode,baseId:pf(void 0,`reka-tabs`),tabsList:l,contentIds:u,registerContent:e=>{u.value=new Set([...u.value,e])},unregisterContent:e=>{let t=new Set(u.value);t.delete(e),u.value=t}}),(e,t)=>(J(),Is(W(bf),{dir:W(s),"data-orientation":W(i),"as-child":e.asChild,as:e.as},{default:Lr(()=>[Ia(e.$slots,`default`,{modelValue:W(c)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function Rf(e,t){return`${e}-trigger-${t}`}function zf(e,t){return`${e}-content-${t}`}var Bf=Ei({__name:`TabsContent`,props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=df(),r=Ff(),i=Q(()=>Rf(r.baseId,t.value)),a=Q(()=>zf(r.baseId,t.value)),o=Q(()=>t.value===r.modelValue.value),s=U(o.value);return _a(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),ba(()=>{r.unregisterContent(t.value)}),(e,t)=>(J(),Is(W(_f),{present:e.forceMount||o.value,"force-mount":``},{default:Lr(({present:t})=>[Z(W(bf),{id:a.value,ref:W(n),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":o.value?`active`:`inactive`,"data-orientation":W(r).orientation.value,"aria-labelledby":i.value,hidden:!t,tabindex:`0`,style:Le({animationDuration:s.value?`0s`:void 0})},{default:Lr(()=>[!W(r).unmountOnHide.value||t?Ia(e.$slots,`default`,{key:0}):qs(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),Vf=Ei({__name:`TabsList`,props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{loop:t}=Bn(e),{forwardRef:n,currentElement:r}=df(),i=Ff();return i.tabsList=r,(e,r)=>(J(),Is(W(Nf),{"as-child":``,orientation:W(i).orientation.value,dir:W(i).dir.value,loop:W(t)},{default:Lr(()=>[Z(W(bf),{ref:W(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":W(i).orientation.value},{default:Lr(()=>[Ia(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),Hf=Ei({__name:`TabsTrigger`,props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n}=df(),r=Ff(),i=Q(()=>Rf(r.baseId,t.value)),a=Q(()=>r.contentIds.value.has(t.value)?zf(r.baseId,t.value):void 0),o=Q(()=>t.value===r.modelValue.value);return(e,t)=>(J(),Is(W(Pf),{"as-child":``,focusable:!e.disabled,active:o.value},{default:Lr(()=>[Z(W(bf),{id:i.value,ref:W(n),role:`tab`,type:e.as===`button`?`button`:void 0,as:e.as,"as-child":e.asChild,"aria-selected":o.value?`true`:`false`,"aria-controls":a.value,"data-state":o.value?`active`:`inactive`,disabled:e.disabled,"data-disabled":e.disabled?``:void 0,"data-orientation":W(r).orientation.value,onMousedown:t[0]||=Eu(t=>{!e.disabled&&t.ctrlKey===!1?W(r).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:t[1]||=Ou(t=>W(r).changeModelValue(e.value),[`enter`,`space`]),onFocus:t[2]||=()=>{let t=W(r).activationMode!==`manual`;!o.value&&!e.disabled&&t&&W(r).changeModelValue(e.value)}},{default:Lr(()=>[Ia(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as`,`as-child`,`aria-selected`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`data-orientation`])]),_:3},8,[`focusable`,`active`]))}}),Uf={key:0,class:`asset-empty`},Wf=[`data-asset-directory`,`aria-expanded`,`onClick`],Gf=[`data-asset-path`,`data-asset-draggable`,`title`,`onDblclick`,`onPointerdown`],Kf=[`data-asset-path`,`title`,`onPointerdown`],qf=[`src`],Jf=Ei({__name:`AssetsPanel`,props:{currentScene:{},expandedDirectories:{},focusAsset:{},project:{}},emits:[`assetDragStart`,`assetTreeExpansionChange`,`openScene`],setup(e,{emit:t}){let n=e,r=t,i=yn(new Set),a=U(),o=U(0),s=U(),c,l;function u(e,t){return{directories:new Map,files:[],name:e,path:t}}function d(e){let t=[...e.directories.values()].sort((e,t)=>e.name.localeCompare(t.name)).map(d),n=e.files.toSorted((e,t)=>e.name.localeCompare(t.name));return{children:[...t,...n],name:e.name,path:e.path,type:`directory`}}function f(e){let t=u(``,``);for(let n of e){if(n.kind!==`scene`&&n.kind!==`image`)continue;let e=n.path.split(`/`),r=e.pop(),i=t;for(let t of e){let e=i.path?`${i.path}/${t}`:t,n=i.directories.get(t);n||(n=u(t,e),i.directories.set(t,n)),i=n}i.files.push({kind:n.kind,name:r,path:n.path,type:`file`})}let n=[...t.directories.values()].sort((e,t)=>e.name.localeCompare(t.name)).map(d),r=t.files.toSorted((e,t)=>e.name.localeCompare(t.name));return[...n,...r]}let p=Q(()=>n.project?f(n.project.files):[]),m=Q(()=>{let e=[];function t(n,r){for(let a of n)e.push({level:r,node:a}),a.type===`directory`&&i.has(a.path)&&t(a.children,r+1)}return t(p.value,0),e});function h(e){let t=e.split(`/`);return t.pop(),t.map((e,n)=>t.slice(0,n+1).join(`/`))}function g(e){let t=e.split(`/`);return t.pop(),t.map((e,n)=>t.slice(0,n+1).join(`/`))}async function _(e){a.value=e;for(let t of g(e))i.add(t);r(`assetTreeExpansionChange`,[...i].toSorted()),await yr(),Array.from(s.value?.querySelectorAll(`[data-asset-path]`)??[]).find(t=>t.dataset.assetPath===e)?.scrollIntoView?.({block:`nearest`})}function v(){let e=n.project?.root;if(!e||c===e)return;let t=n.expandedDirectories;if(!(!t&&!n.currentScene)){i.clear();for(let e of t??h(n.currentScene))i.add(e);c=e}}function y(e){i.delete(e)||i.add(e),r(`assetTreeExpansionChange`,[...i].toSorted())}function b(e){return`/api/file?path=${encodeURIComponent(e)}&generation=${o.value}`}function x(e,t){e.button===0&&(C(),l={asset:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY},window.addEventListener(`pointermove`,S),window.addEventListener(`pointerup`,C,{once:!0}),window.addEventListener(`pointercancel`,C,{once:!0}))}function S(e){let t=l;if(!t||e.pointerId!==t.pointerId||Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<4)return;let n=t.asset;C(),r(`assetDragStart`,n)}function C(){window.removeEventListener(`pointermove`,S),window.removeEventListener(`pointerup`,C),window.removeEventListener(`pointercancel`,C),l=void 0}return G([()=>n.project?.root,()=>n.currentScene,()=>n.expandedDirectories],v,{immediate:!0}),G(()=>n.focusAsset,e=>{e&&_(e.path)},{immediate:!0}),G(()=>n.project,()=>o.value+=1),ba(C),(t,n)=>e.project?(J(),Y(`div`,{key:0,ref_key:`assetList`,ref:s,class:`asset-list`},[m.value.length===0?(J(),Y(`div`,Uf,`暂无 Scene 或图片`)):qs(``,!0),(J(!0),Y(K,null,Pa(m.value,t=>(J(),Y(K,{key:t.node.type+`:`+t.node.path},[t.node.type===`directory`?(J(),Y(`button`,{key:0,class:`asset-row asset-directory`,style:Le({paddingLeft:`${8+t.level*16}px`}),"data-asset-directory":t.node.path,"aria-expanded":i.has(t.node.path),type:`button`,onClick:e=>y(t.node.path)},[i.has(t.node.path)?(J(),Is(W(Nd),{key:1,size:14})):(J(),Is(W(Pd),{key:0,size:14})),i.has(t.node.path)?(J(),Is(W(Ld),{key:3,size:15})):(J(),Is(W(Rd),{key:2,size:15})),X(`span`,null,z(t.node.name),1)],12,Wf)):t.node.kind===`scene`?(J(),Y(`button`,{key:1,class:He([`asset-row`,{"asset-draggable":t.node.path!==e.currentScene,selected:t.node.path===e.currentScene,focused:t.node.path===a.value}]),style:Le({paddingLeft:`${8+t.level*16}px`}),"data-asset-path":t.node.path,"data-asset-draggable":t.node.path!==e.currentScene,title:t.node.path,type:`button`,onDblclick:e=>r(`openScene`,t.node.path),onPointerdown:n=>t.node.path!==e.currentScene&&x(n,{kind:`scene`,path:t.node.path}),onSelectstart:n[0]||=Eu(()=>{},[`prevent`])},[n[2]||=X(`span`,{class:`asset-row-spacer`},null,-1),Z(W(Hd),{size:15}),X(`span`,null,z(t.node.name),1)],46,Gf)):(J(),Y(`div`,{key:2,class:He([`asset-row asset-draggable`,{focused:t.node.path===a.value}]),style:Le({paddingLeft:`${8+t.level*16}px`}),"data-asset-path":t.node.path,"data-asset-draggable":`true`,title:t.node.path,onPointerdown:e=>x(e,{kind:`image`,path:t.node.path}),onSelectstart:n[1]||=Eu(()=>{},[`prevent`])},[n[3]||=X(`span`,{class:`asset-row-spacer`},null,-1),X(`img`,{class:`asset-thumbnail`,src:b(t.node.path),alt:``,draggable:`false`},null,8,qf),X(`span`,null,z(t.node.name),1)],46,Kf))],64))),128))],512)):qs(``,!0)}}),Yf=[`data-locator`],Xf={class:`tree-label`},Zf={key:0,class:`tree-list`},Qf=Ei({__name:`HierarchyNode`,props:{entry:{},level:{},assetDragging:{type:Boolean},dropTarget:{},dragging:{type:Boolean},selected:{}},emits:[`dragOver`,`dragStart`,`assetDrop`,`openScene`,`select`],setup(e,{emit:t}){let n=e,r=t,i=U(!0),a=Q(()=>n.entry.children.length>0),o=Q(()=>{let e=n.entry.node;return e.kind===`slotOutlet`?`Slot · ${e.name}`:e.id||(e.kind,e.type)}),s=Q(()=>{let e=n.entry.node;return e.kind===`sceneInstance`?Fd:e.kind===`pixi`&&[`Image`,`NineImage`,`TileImage`,`Sprite`].includes(e.type)?zd:e.kind===`pixi`&&[`Label`,`BitmapLabel`,`Text`,`BitmapText`,`HTMLText`].includes(e.type)?Yd:Bd});function c(e){let t=e.currentTarget.getBoundingClientRect(),r=t.height||27,i=(e.clientY-t.top)/r;if(n.entry.acceptsChildren&&i>=.25&&i<=.75)return{index:n.entry.children.length,locator:n.entry.locator,mode:`inside`,parent:n.entry.locator};let a=i>.5;return{index:n.entry.index+ +!!a,locator:n.entry.locator,mode:a?`after`:`before`,parent:n.entry.parentLocator}}function l(e){e.button!==0||n.assetDragging||r(`dragStart`,n.entry.locator)}function u(e){!n.dragging&&!n.assetDragging||r(`dragOver`,c(e))}function d(e){n.assetDragging&&r(`assetDrop`,c(e))}return(t,c)=>{let f=Oa(`HierarchyNode`,!0);return J(),Y(`li`,null,[X(`button`,{class:He([`tree-row`,{selected:e.selected===e.entry.locator,"drop-before":n.dropTarget?.locator===e.entry.locator&&n.dropTarget.mode===`before`,"drop-inside":n.dropTarget?.locator===e.entry.locator&&n.dropTarget.mode===`inside`,"drop-after":n.dropTarget?.locator===e.entry.locator&&n.dropTarget.mode===`after`}]),"data-locator":e.entry.locator,style:Le({paddingLeft:`${8+e.level*16}px`}),type:`button`,onClick:c[2]||=t=>r(`select`,e.entry.locator),onDblclick:c[3]||=t=>e.entry.node.kind===`sceneInstance`&&r(`openScene`,e.entry.node.scene),onPointerdown:l,onPointermove:Eu(u,[`stop`]),onPointerup:d},[X(`span`,{class:He([`tree-disclosure`,{empty:!a.value}]),onClick:c[0]||=Eu(e=>a.value&&(i.value=!i.value),[`stop`]),onPointerdown:c[1]||=Eu(()=>{},[`stop`])},[a.value&&i.value?(J(),Is(W(Nd),{key:0,size:13})):a.value?(J(),Is(W(Pd),{key:1,size:13})):qs(``,!0)],34),(J(),Is(Aa(s.value),{size:14,class:`tree-icon`})),X(`span`,Xf,z(o.value),1),X(`small`,null,z(e.entry.node.kind===`sceneInstance`?`Scene`:e.entry.node.kind===`pixi`?e.entry.node.type:`Slot`),1)],46,Yf),a.value&&i.value?(J(),Y(`ul`,Zf,[(J(!0),Y(K,null,Pa(e.entry.children,t=>(J(),Is(f,{key:t.locator,entry:t,level:e.level+1,"asset-dragging":n.assetDragging,"drop-target":n.dropTarget,dragging:n.dragging,selected:e.selected,onDragOver:c[4]||=e=>r(`dragOver`,e),onDragStart:c[5]||=e=>r(`dragStart`,e),onAssetDrop:c[6]||=e=>r(`assetDrop`,e),onOpenScene:c[7]||=e=>r(`openScene`,e),onSelect:c[8]||=e=>r(`select`,e)},null,8,[`entry`,`level`,`asset-dragging`,`drop-target`,`dragging`,`selected`]))),128))])):qs(``,!0)])}}});function $f(e,n=`__scene__`){return e.map((e,r)=>{let i=c(e,n===`__scene__`?String(r):`${n}/${r}`),a=e.kind===`pixi`?$f(e.children,i):e.kind===`sceneInstance`?Object.entries(e.slots).flatMap(([e,t])=>$f(t,`${i}/slot:${e}`)):[];return{acceptsChildren:e.kind===`pixi`&&t(e.type),children:a,index:r,locator:i,node:e,parentLocator:n}})}function ep(e,t){return tp(e,t)?.node}function tp(e,t){let n=[...$f(e)];for(;n.length>0;){let e=n.shift();if(e.locator===t)return e;n.unshift(...e.children)}}function np(e,t,n=`__scene__`,r=[]){for(let[i,a]of e.entries()){let e=c(a,n===`__scene__`?String(i):`${n}/${i}`),o=[...r,{kind:`child`,index:i}];if(e===t)return o;if(a.kind===`pixi`){let n=np(a.children,t,e,o);if(n)return n}else if(a.kind===`sceneInstance`)for(let[n,r]of Object.entries(a.slots)){let i=np(r,t,`${e}/slot:${n}`,[...o,{kind:`slot`,name:n}]);if(i)return i}}}function rp(e,t){return e.kind===t.kind?e.kind===`slotOutlet`&&t.kind===`slotOutlet`?!0:e.kind!==`slotOutlet`&&t.kind!==`slotOutlet`&&e.type===t.type:!1}function ip(e,t){return rp(e,t)?e.kind===`slotOutlet`&&t.kind===`slotOutlet`?e.name===t.name:e.kind===`sceneInstance`&&t.kind===`sceneInstance`?e.id===t.id&&e.scene===t.scene:e.kind===`pixi`&&t.kind===`pixi`&&e.id===t.id:!1}function ap(e,t){let n=e.children,r;for(let e of t){if(e.kind===`slot`){if(r?.kind!==`sceneInstance`)return;n=r.slots[e.name]??[],r=void 0;continue}if(r=n[e.index],!r)return;n=r.kind===`pixi`?r.children:[]}return r}function op(e,t,n){let r=e.children,i=t.children,a,o;for(let[e,t]of n.entries()){if(t.kind===`slot`){if(a?.kind!==`sceneInstance`||o?.kind!==`sceneInstance`)return!1;r=a.slots[t.name]??[],i=o.slots[t.name]??[],a=void 0,o=void 0;continue}if(r.length!==i.length)return!1;for(let e=0;e<r.length;e+=1)if(e!==t.index&&!ip(r[e],i[e]))return!1;if(a=r[t.index],o=i[t.index],!a||!o||!rp(a,o)||e!==n.length-1&&!ip(a,o))return!1;r=a.kind===`pixi`?a.children:[],i=o.kind===`pixi`?o.children:[]}return!0}function sp(e,t){let n=[...$f(e.children)];for(;n.length>0;){let e=n.shift();if(e.node===t)return e.locator;n.unshift(...e.children)}}function cp(e,t,n){let r=[],i=[...$f(e.children)];for(;i.length>0;){let e=i.shift();e.node.kind!==`slotOutlet`&&e.node.id===t&&rp(n,e.node)&&r.push(e.locator),i.unshift(...e.children)}return r}function lp(e,t,n){if(!n)return;if(tp(t.children,n))return n;let r=tp(e.children,n)?.node,i=np(e.children,n);if(!r||!i)return;let a=ap(t,i);if(a&&op(e,t,i))return sp(t,a);if(r.kind!==`slotOutlet`&&r.id){let e=cp(t,r.id,r);if(e.length===1)return e[0]}}function up(e,t){let n=pp(e.children);return{kind:`pixi`,type:t,id:hp(gp(t),n),props:h(t),children:[]}}function dp(e,t,n){let r=n?{x:n.x,y:n.y}:{};if(t.kind===`image`){let n=up(e,`Image`);return n.props={...r,...n.props,texture:t.path},n}let i=S(t.path);return{kind:`sceneInstance`,type:i,id:hp(gp(i),pp(e.children)),scene:t.path,props:r,events:{},slots:{}}}function fp(e,t){let n=structuredClone(t);return mp(n,pp(e.children),!0),n}function pp(e){let t=new Set;return _p(e,e=>{e.kind!==`slotOutlet`&&e.id&&t.add(e.id)}),t}function mp(e,t,n){if(e.kind!==`slotOutlet`){if((e.id||n)&&(e.id=hp(e.id??gp(e.type),t)),e.kind===`pixi`){for(let n of e.children)mp(n,t,!1);return}for(let n of Object.values(e.slots))for(let e of n)mp(e,t,!1)}}function hp(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}${n}`);)n+=1;let r=`${e}${n}`;return t.add(r),r}function gp(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function _p(e,t){for(let n of e)if(t(n),n.kind===`pixi`)_p(n.children,t);else if(n.kind===`sceneInstance`)for(let e of Object.values(n.slots))_p(e,t)}var vp={class:`hierarchy-toolbar`},yp=[`label`],bp=[`value`],xp=[`disabled`],Sp=[`disabled`],Cp={class:`tree-label`},wp={class:`tree-list`},Tp={key:0,class:`inline-error`},Ep={key:1,class:`panel-empty`},Dp=Ei({__name:`HierarchyPanel`,props:{document:{},draggedAsset:{},revision:{},selected:{}},emits:[`assetDrop`,`openScene`,`select`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=U(`Group`),s=U(),c=U(),l=U(``),u=Q(()=>(r.revision,r.document?$f(r.document.template.children):[])),d=Q(()=>r.document&&r.selected?tp(r.document.template.children,r.selected):void 0),f=Q(()=>!!d.value&&d.value.node.kind!==`slotOutlet`),p=Q(()=>!!d.value),m=Q(()=>!!s.value||!!r.draggedAsset),h=[{label:`容器`,types:[`Group`,`GridContainer`,`HBoxContainer`,`ScrollContainer`,`VBoxContainer`,`Container`]},{label:`绘制`,types:[`Rect`,`Graphics`]},{label:`文字`,types:[`Label`,`BitmapLabel`,`Text`,`BitmapText`,`HTMLText`]},{label:`图片`,types:[`Image`,`NineImage`,`TileImage`,`Sprite`,`NineSliceSprite`,`TilingSprite`]}];function g(){let e=d.value;return e?e.acceptsChildren?{parent:e.locator,index:e.children.length}:{parent:e.parentLocator,index:e.index+1}:{parent:`__scene__`,index:u.value.length}}async function _(){if(!r.document||!a.includes(o.value))return;let e=g();await re({op:`insertNode`,parent:e.parent,index:e.index,node:up(r.document.template,o.value)})}async function v(){if(!r.document||!d.value||d.value.node.kind===`slotOutlet`)return;let e=d.value;await re({op:`insertNode`,parent:e.parentLocator,index:e.index+1,node:fp(r.document.template,e.node)})}async function y(){r.selected&&await re({op:`deleteNode`,node:r.selected})}function b(e){te(),s.value=e,c.value=void 0,i(`select`,e),window.addEventListener(`pointermove`,T),window.addEventListener(`pointerup`,ne,{once:!0}),window.addEventListener(`pointercancel`,te,{once:!0})}function x(e){c.value=r.draggedAsset||S(e)?e:void 0}function S(e){if(!r.document||!s.value)return!1;let t=tp(r.document.template.children,s.value);if(!t||e.parent===t.locator||e.parent.startsWith(`${t.locator}/`)||t.node.kind===`slotOutlet`&&e.parent===`__scene__`)return!1;let n=e.index;return t.parentLocator===e.parent&&t.index<n&&--n,t.parentLocator!==e.parent||t.index!==n}async function C(e){let t=s.value;if(!t||!S(e)){te();return}te(),await re({op:`moveNode`,node:t,parent:e.parent,index:e.index})}async function ee(e){let t=r.draggedAsset;!r.document||!t||(c.value=void 0,await re({op:`insertNode`,parent:e.parent,index:e.index,node:dp(r.document.template,t)}),i(`assetDrop`))}function te(){window.removeEventListener(`pointermove`,T),window.removeEventListener(`pointerup`,ne),window.removeEventListener(`pointercancel`,te),s.value=void 0,c.value=void 0}function w(){let e=!!s.value;return te(),e}t({cancelCurrentDrag:w});function T(e){let t=e.target;(!(t instanceof Element)||!t.closest(`.hierarchy-panel [data-locator]`))&&(c.value=void 0)}function ne(){let e=c.value;if(!e){te();return}C(e)}async function re(e){if(r.document){l.value=``;try{await r.document.commitCommand(e)}catch(e){l.value=e instanceof Error?e.message:String(e)}}}return ba(te),G(()=>r.draggedAsset,e=>{!e&&!s.value&&(c.value=void 0)}),(t,n)=>e.document?(J(),Y(`div`,{key:0,class:He([`hierarchy-panel`,{"is-dragging":m.value,"is-asset-dragging":!!e.draggedAsset}])},[X(`div`,vp,[Rr(X(`select`,{"onUpdate:modelValue":n[0]||=e=>o.value=e,"aria-label":`节点类型`,title:`节点类型`},[(J(),Y(K,null,Pa(h,e=>X(`optgroup`,{key:e.label,label:e.label},[(J(!0),Y(K,null,Pa(e.types,e=>(J(),Y(`option`,{key:e,value:e},z(e),9,bp))),128))],8,yp)),64))],512),[[gu,o.value]]),X(`button`,{type:`button`,title:`添加节点`,"aria-label":`添加节点`,onClick:_},[Z(W(Ud),{size:15})]),X(`button`,{type:`button`,title:`复制节点`,"aria-label":`复制节点`,disabled:!f.value,onClick:v},[Z(W(Id),{size:14})],8,xp),X(`button`,{type:`button`,title:`删除节点`,"aria-label":`删除节点`,disabled:!p.value,onClick:y},[Z(W(Jd),{size:14})],8,Sp)]),X(`button`,{class:He([`tree-row scene-root`,{selected:e.selected===void 0,"drop-inside":c.value?.locator===`__scene__`}]),"data-locator":`__scene__`,type:`button`,onClick:n[1]||=e=>i(`select`,void 0),onPointermove:n[2]||=Eu(e=>m.value&&x({parent:`__scene__`,index:u.value.length,locator:`__scene__`,mode:`inside`}),[`stop`]),onPointerup:n[3]||=t=>e.draggedAsset&&ee({parent:`__scene__`,index:u.value.length,locator:`__scene__`,mode:`inside`})},[n[6]||=X(`span`,{class:`tree-disclosure empty`},null,-1),n[7]||=X(`span`,{class:`scene-mark`},`S`,-1),X(`span`,Cp,z(e.document.template.name),1),n[8]||=X(`small`,null,`Scene`,-1)],34),X(`ul`,wp,[(J(!0),Y(K,null,Pa(u.value,t=>(J(),Is(Qf,{key:t.locator,entry:t,level:0,"asset-dragging":!!e.draggedAsset,"drop-target":c.value,dragging:!!s.value,selected:e.selected,onDragOver:x,onDragStart:b,onAssetDrop:ee,onOpenScene:n[4]||=e=>i(`openScene`,e),onSelect:n[5]||=e=>i(`select`,e)},null,8,[`entry`,`asset-dragging`,`drop-target`,`dragging`,`selected`]))),128))]),l.value?(J(),Y(`p`,Tp,z(l.value),1)):qs(``,!0)],2)):(J(),Y(`div`,Ep,`项目中没有可打开的 Scene`))}}),Op={class:`inspector-panel`},kp={class:`inspector-heading`},Ap={key:0,class:`panel-empty compact`},jp={key:1,class:`panel-empty compact`},Mp={key:2,class:`inspector-fields`},Np={class:`inspector-section`,"data-inspector-section":`identity`},Pp={class:`property-row`},Fp={class:`property-field`},Ip={class:`property-control node-id-control`},Lp={class:`property-value`},Rp=[`aria-invalid`],zp=[`data-inspector-section`],Bp={class:`inspector-section-title`},Vp=[`data-field-row`],Hp=[`data-asset-drop-prop`,`onPointerup`],Up=[`title`],Wp={class:`property-control`},Gp={class:`property-value`},Kp=[`data-prop`,`onUpdate:modelValue`,`disabled`,`title`,`onInput`,`onChange`,`onBlur`,`onKeydown`],qp=[`data-prop`,`onUpdate:modelValue`,`disabled`,`onInput`,`onChange`,`onBlur`],Jp=[`data-prop`,`onUpdate:modelValue`,`disabled`,`onChange`],Yp=[`data-prop`,`onUpdate:modelValue`,`disabled`,`onChange`],Xp=[`value`],Zp=[`data-prop`,`onUpdate:modelValue`,`disabled`,`title`,`onClick`,`onInput`,`onChange`,`onBlur`,`onKeydown`],Qp=[`data-binding-source`],$p=[`data-unbind-prop`,`title`,`aria-label`,`onClick`],em=[`disabled`,`title`,`aria-label`,`onClick`],tm={key:3,class:`inline-error`},nm=Ei({__name:`InspectorPanel`,props:{document:{},draggedAsset:{},revision:{},sceneInterfaces:{},selected:{}},emits:[`assetDrop`,`locateAsset`],setup(t,{emit:n}){let a=[{key:`transform`,title:`变换`},{key:`layout`,title:`布局`},{key:`display`,title:`显示与交互`},{key:`node`,title:`节点属性`},{key:`props`,title:`Scene Props`}],s=new Set(m),c=new Set(D),l=new Set(o),f=[[`x`,`y`],[`width`,`height`],[`scaleX`,`scaleY`],[`pivotX`,`pivotY`],[`skewX`,`skewY`],[`left`,`right`],[`top`,`bottom`],[`horizontal`,`vertical`],[`anchorX`,`anchorY`]],p=new Map;for(let e of f)p.set(e[0],e),p.set(e[1],e);function g(e,t){return t===`x`?e.left!==void 0||e.right!==void 0||e.horizontal!==void 0:t===`width`?e.left!==void 0&&e.right!==void 0:t===`y`?e.top!==void 0||e.bottom!==void 0||e.vertical!==void 0:t===`height`?e.top!==void 0&&e.bottom!==void 0:!1}let _=t,v=n,y=yn({}),b=U(``),x=U(``),S=yn({message:``}),C=Q(()=>(_.revision,_.document&&_.selected?ep(_.document.template.children,_.selected):void 0)),ee=Q(()=>{if(!_.document)return`未打开 Scene`;if(!C.value)return _.document.template.name;let e=C.value;return e.kind===`slotOutlet`?`Slot · ${e.name}`:e.id||(e.kind,e.type)}),te=Q(()=>{let e=C.value;return e?e.kind===`slotOutlet`?`Slot`:e.kind===`sceneInstance`?`Scene · ${e.type}`:e.type:`Scene`}),w=Q(()=>{let t=C.value;if(!(!_.document||t?.kind!==`sceneInstance`))return _.sceneInterfaces?.[e(_.document.path,t.scene)]}),T=Q(()=>_.document?_.sceneInterfaces?.[_.document.path]:void 0),ne={x:0,y:0,width:0,height:0,scaleX:1,scaleY:1,rotation:0,pivotX:0,pivotY:0,skewX:0,skewY:0,left:``,right:``,top:``,bottom:``,horizontal:``,vertical:``,alpha:1,visible:!0,zIndex:0,eventMode:`passive`,cursor:`default`,label:``},re=Q(()=>{_.revision;let e=C.value;if(!e||e.kind===`slotOutlet`)return[];let t=e.kind===`pixi`&&r(e.type)?{...ne,...h(e.type)}:ne;return(e.kind===`pixi`&&r(e.type)?[...new Set([...m,...D,...o,...i(e.type)])]:[...new Set([...m,...D,...o,...Object.keys(w.value?.props??{}),...Object.keys(e.props)])]).flatMap(n=>{let r=w.value?.props[n],i=r?void 0:d(n),a=r?ae(r):i,o=e.props[n],s=u(o)?o:void 0,c=(s?k(s,a?.type,t[n]):o??(r?O(r):t[n]))??(i?.resource===`image`?``:void 0);return!a||c===void 0||typeof c==`object`?[]:[{binding:s,explicit:o!==void 0,key:n,layoutControlled:g(e.props,n),resource:i?.resource,type:a.type,options:a.options,value:c}]})}),ie=Q(()=>{let e=C.value;if(!e||e.kind===`slotOutlet`)return[];let t={transform:[],layout:[],display:[],node:[],props:[]};for(let n of re.value){let r;r=e.kind===`sceneInstance`&&w.value?.props[n.key]?`props`:s.has(n.key)?`transform`:c.has(n.key)?`layout`:l.has(n.key)?`display`:e.kind===`sceneInstance`?`props`:`node`,t[r].push(n)}return a.flatMap(({key:e,title:n})=>{let r=E(t[e]);return r.length>0?[{key:e,title:n,rows:r}]:[]})});function E(e){let t=new Map(e.map(e=>[e.key,e])),n=new Set,r=[];for(let i of e){if(n.has(i.key))continue;let e=p.get(i.key),a=e?t.get(e[0]):void 0,o=e?t.get(e[1]):void 0;if(e&&a&&o){r.push({key:`${e[0]}:${e[1]}`,fields:[a,o]}),n.add(e[0]),n.add(e[1]);continue}r.push({key:i.key,fields:[i]}),n.add(i.key)}return r}function ae(e){if(e.type!==`struct`)return e.type===`variant`?{type:`enum`,options:Object.keys(e.variants)}:{type:e.type}}function O(e){if(e.type!==`struct`)return e.default===void 0?e.type===`number`?0:e.type===`boolean`?!1:``:e.default}function k(e,t,n){let[r,i]=e.path,a=T.value?.props[r],o;return i&&a?.type===`variant`?o=a.variants[a.default]?.[i]:!i&&a&&a.type!==`struct`&&(o=O(a)),o===void 0&&[`string`,`number`,`boolean`].includes(typeof n)&&(o=n),t===`color`&&typeof o==`string`&&/^#[0-9a-fA-F]{6}$/.test(o)?Number.parseInt(o.slice(1),16):t===`string`?String(o??``):o}G([()=>_.selected,()=>_.revision,re],()=>{for(let e of Object.keys(y))delete y[e];for(let e of re.value)y[e.key]=oe(e,e.value);let e=C.value;b.value=e&&e.kind!==`slotOutlet`?e.id??``:``,x.value=``,S.message=``},{immediate:!0,flush:`post`});function oe(e,t){return e.type===`color`?`#${Number(t).toString(16).padStart(6,`0`).slice(-6)}`:t}function A(e){let t=y[e.key];if(e.type===`number`)return Number(t);if(e.type===`boolean`)return!!t;if(e.type===`color`)return Number.parseInt(String(t).slice(1),16);if(e.type===`enum`&&e.options?.some(e=>typeof e==`number`)){let n=Number(t);return e.options.includes(n)?n:String(t)}return String(t)}function se(e){!_.document||!_.selected||e.resource||e.layoutControlled||_.document.previewNodeProp(_.selected,e.key,A(e))}function ce(e){e.resource!==`image`||typeof e.value!=`string`||!e.value||v(`locateAsset`,e.value)}async function le(){let e=C.value,t=_.selected;if(!_.document||!t||!e||e.kind===`slotOutlet`)return;let n=b.value.trim();if(x.value=``,n===(e.id??``)){b.value=n;return}if(S.message=``,!n){b.value=e.id??``,x.value=`节点 ID 不能为空。`;return}try{await _.document.commitNodeId(t,n)}catch(t){b.value=e.id??``,x.value=t instanceof Error?t.message:String(t)}}function j(){x.value=``}async function ue(e){await le(),e.blur()}async function de(e){if(!_.document||!_.selected||e.layoutControlled)return;S.message=``;let t=A(e);try{let n=_.document.commitNodeProp(_.selected,e.key,t);await yr(),y[e.key]=oe(e,t),await n}catch(e){S.message=e instanceof Error?e.message:String(e)}}async function M(e){if(!(!_.document||!_.selected)){S.message=``;try{_.document.previewNodeProp(_.selected,e.key,void 0),await _.document.commitNodeProp(_.selected,e.key,void 0)}catch(e){S.message=e instanceof Error?e.message:String(e)}}}async function N(e){if(!(!_.document||!_.selected||!e.binding)){S.message=``;try{await _.document.commitNodeProp(_.selected,e.key,e.value)}catch(e){S.message=e instanceof Error?e.message:String(e)}}}function fe(e){return e.resource===`image`&&!e.binding&&_.draggedAsset?.kind===`image`}async function pe(e){let t=_.draggedAsset;if(!(!_.document||!_.selected||!t||t.kind!==`image`||!fe(e))){v(`assetDrop`),S.message=``;try{let n=_.document.commitNodeProp(_.selected,e.key,t.path);await yr(),y[e.key]=t.path,await n}catch(e){S.message=e instanceof Error?e.message:String(e)}}}return(e,t)=>(J(),Y(`div`,Op,[X(`header`,kp,[X(`div`,null,[X(`strong`,null,z(ee.value),1),X(`small`,null,z(te.value),1)])]),C.value?C.value.kind===`slotOutlet`?(J(),Y(`div`,jp,`Slot 内容通过层级树编辑`)):(J(),Y(`div`,Mp,[X(`section`,Np,[t[3]||=X(`div`,{class:`inspector-section-title`},`节点`,-1),X(`div`,Pp,[X(`label`,Fp,[t[2]||=X(`span`,null,`id`,-1),X(`div`,Ip,[X(`div`,Lp,[Rr(X(`input`,{"onUpdate:modelValue":t[0]||=e=>b.value=e,"aria-label":`节点 ID`,"data-node-id":``,"aria-invalid":x.value?`true`:void 0,class:He({"is-invalid":!!x.value}),type:`text`,autocomplete:`off`,spellcheck:`false`,onInput:j,onBlur:le,onKeydown:t[1]||=Ou(Eu(e=>ue(e.currentTarget),[`prevent`]),[`enter`])},null,42,Rp),[[fu,b.value]])])])])])]),(J(!0),Y(K,null,Pa(ie.value,e=>(J(),Y(`section`,{key:e.key,class:`inspector-section`,"data-inspector-section":e.key},[X(`div`,Bp,z(e.title),1),(J(!0),Y(K,null,Pa(e.rows,e=>(J(),Y(`div`,{key:e.key,class:He([`property-row`,{"is-paired":e.fields.length===2}]),"data-field-row":e.key},[(J(!0),Y(K,null,Pa(e.fields,e=>(J(),Y(`label`,{key:e.key,class:He([`property-field`,{"is-image-drop-candidate":fe(e)}]),"data-asset-drop-prop":e.resource===`image`?e.key:void 0,onPointerup:t=>pe(e)},[X(`span`,{class:He({inherited:!e.explicit}),title:e.layoutControlled?`由布局属性控制,请修改布局字段`:void 0},z(e.key),11,Up),X(`div`,Wp,[X(`div`,Gp,[e.type===`number`?Rr((J(),Y(`input`,{key:0,"data-prop":e.key,"onUpdate:modelValue":t=>y[e.key]=t,disabled:!!e.binding||e.layoutControlled,title:e.layoutControlled?`由布局属性控制,请修改布局字段`:void 0,type:`number`,step:`any`,onInput:t=>se(e),onChange:t=>de(e),onBlur:t=>de(e),onKeydown:Ou(t=>{de(e),t.currentTarget.blur()},[`enter`])},null,40,Kp)),[[fu,y[e.key]]]):e.type===`color`?Rr((J(),Y(`input`,{key:1,"data-prop":e.key,"onUpdate:modelValue":t=>y[e.key]=t,disabled:!!e.binding||e.layoutControlled,type:`color`,onInput:t=>se(e),onChange:t=>de(e),onBlur:t=>de(e)},null,40,qp)),[[fu,y[e.key]]]):e.type===`boolean`?Rr((J(),Y(`input`,{key:2,"data-prop":e.key,"onUpdate:modelValue":t=>y[e.key]=t,disabled:!!e.binding||e.layoutControlled,type:`checkbox`,onChange:t=>{se(e),de(e)}},null,40,Jp)),[[pu,y[e.key]]]):e.type===`enum`?Rr((J(),Y(`select`,{key:3,"data-prop":e.key,"onUpdate:modelValue":t=>y[e.key]=t,disabled:!!e.binding||e.layoutControlled,onChange:t=>{se(e),de(e)}},[(J(!0),Y(K,null,Pa(e.options,e=>(J(),Y(`option`,{key:e,value:e},z(e),9,Xp))),128))],40,Yp)),[[gu,y[e.key]]]):Rr((J(),Y(`input`,{key:4,"data-prop":e.key,"onUpdate:modelValue":t=>y[e.key]=t,disabled:!!e.binding||e.layoutControlled,class:He({"resource-reference":e.resource===`image`&&typeof e.value==`string`&&!!e.value}),title:e.resource===`image`&&typeof e.value==`string`&&e.value?`点击定位素材`:void 0,type:`text`,onClick:t=>ce(e),onInput:t=>se(e),onChange:t=>de(e),onBlur:t=>de(e),onKeydown:Ou(t=>{de(e),t.currentTarget.blur()},[`enter`])},null,42,Zp)),[[fu,y[e.key]]]),e.binding?(J(),Y(`span`,{key:5,class:`binding-source`,"data-binding-source":e.key},[Z(W(Vd),{size:11}),Gs(`绑定:`+z(e.binding.path.join(`.`)),1)],8,Qp)):qs(``,!0)]),e.binding?(J(),Y(`button`,{key:0,class:`reset-button`,type:`button`,"data-unbind-prop":e.key,title:`解除 ${e.key} 的绑定`,"aria-label":`解除 ${e.key} 的绑定`,onClick:t=>N(e)},[Z(W(Zd),{size:13})],8,$p)):(J(),Y(`button`,{key:1,class:`reset-button`,disabled:!e.explicit||e.layoutControlled,type:`button`,title:`重置 ${e.key}`,"aria-label":`重置 ${e.key}`,onClick:t=>M(e)},[Z(W(Kd),{size:13})],8,em))])],42,Hp))),128))],10,Vp))),128))],8,zp))),128))])):(J(),Y(`div`,Ap,`选择一个节点以编辑属性`)),x.value||S.message?(J(),Y(`p`,tm,z(x.value||S.message),1)):qs(``,!0)]))}});function rm(e,t,n=[]){return e===t||e!==void 0&&n.includes(t)&&n.includes(e)}function im(e,t){let n=t;for(;n;){if(n===e)return!0;n=n.parent}return!1}function am(e,t,n){let r=new Map;for(let[e,n]of t)r.set(n,e);let i=[];return Em(e,n,r,i),i}function om(e,t,n,r){if(e.length===0)return;let i=n!==void 0&&Om(n.point,t)&&Am(n.candidates,e)&&r===n.candidates[n.index]?(n.index+1)%e.length:0;return{locator:e[i],cycle:{candidates:[...e],index:i,point:km(t)}}}var sm={center:`horizontal`,end:`right`,position:`x`,size:`width`,start:`left`},cm={center:`vertical`,end:`bottom`,position:`y`,size:`height`,start:`top`},lm=new Set([`GridContainer`,`HBoxContainer`,`VBoxContainer`]),um=.1,dm=4,fm=.002;function pm(e,t){let n=Math.min(e.width/t.width,e.height/t.height,1);return{scale:n,x:(e.width-t.width*n)/2,y:(e.height-t.height*n)/2}}function mm(e,t){return{scale:e.scale,x:e.x+t.x,y:e.y+t.y}}function hm(e,t,n){return mm(e,{x:(n.width-t.width)/2,y:(n.height-t.height)/2})}function gm(e,t,n){let r=Math.min(dm,Math.max(um,e.scale*Math.exp(-n*fm))),i=r/e.scale;return{scale:r,x:t.x-(t.x-e.x)*i,y:t.y-(t.y-e.y)*i}}function _m(e,t,n){let r=Sm(e,sm,t.x,t.width,t.x+n.x,t.width),i=Sm(e,cm,t.y,t.height,t.y+n.y,t.height);return r&&i?[...r,...i]:void 0}function vm(e,t,n,r){let i=xm(t.x,t.width,n.includes(`w`)?r.x:0,n.includes(`e`)?r.x:0),a=xm(t.y,t.height,n.includes(`n`)?r.y:0,n.includes(`s`)?r.y:0),o=Sm(e,sm,t.x,t.width,i.position,i.size),s=Sm(e,cm,t.y,t.height,a.position,a.size);return o&&s?[...o,...s]:void 0}function ym(e,t,n,r){if(n!==`e`&&n!==`s`&&n!==`se`)return;let i=[];if(!(n.includes(`e`)&&!wm(i,e,`width`,Math.max(1,t.width+r.x),t.width))&&!(n.includes(`s`)&&!wm(i,e,`height`,Math.max(1,t.height+r.y),t.height)))return i}function bm(e,t){let n=tp(e.children,t);if(!n||n.parentLocator===`__scene__`)return!1;let r=tp(e.children,n.parentLocator)?.node;return r?.kind===`pixi`&&lm.has(r.type)}function xm(e,t,n,r){let i=e+n,a=e+t+r;return a-i<1&&(n===0?a=i+1:i=a-1),{position:i,size:a-i}}function Sm(e,t,n,r,i,a){let o=i-n,s=a-r,c=o+s;if(o===0&&s===0)return[];let l=e[t.start]!==void 0,u=e[t.end]!==void 0,d=e[t.center]!==void 0,f=[];if(l)return o!==0&&!Cm(f,e,t.start,o)?void 0:u?c!==0&&!Cm(f,e,t.end,-c)?void 0:f:s!==0&&!wm(f,e,t.size,a,r)?void 0:f;if(u)return c!==0&&!Cm(f,e,t.end,-c)||s!==0&&!wm(f,e,t.size,a,r)?void 0:f;if(d){let n=o+s/2;return n!==0&&!Cm(f,e,t.center,n)||s!==0&&!wm(f,e,t.size,a,r)?void 0:f}if(!(o!==0&&!wm(f,e,t.position,i,n))&&!(s!==0&&!wm(f,e,t.size,a,r)))return f}function Cm(e,t,n,r){let i=t[n];if(typeof i!=`number`)return!1;let a=Tm(i+r);return a!==i&&e.push({prop:n,value:a}),!0}function wm(e,t,n,r,i){let a=t[n];if(u(a))return!1;let o=Tm(r);return o!==Tm(i)&&e.push({prop:n,value:o}),!0}function Tm(e){return Math.round(e*100)/100}function Em(e,t,n,r){if(e.destroyed||!e.visible||!e.renderable||!e.measurable||e.hitArea&&!Dm(e,t))return;e.sortableChildren&&e.sortChildren();for(let i=e.children.length-1;i>=0;--i)Em(e.children[i],t,n,r);let i=n.get(e);i&&Dm(e,t)&&r.push(i)}function Dm(e,t){let n=e.toLocal(t);if(e.hitArea)return e.hitArea.contains(n.x,n.y);let r=e;return r.containsPoint?r.containsPoint(n):e.getBounds().containsPoint(t.x,t.y)}function Om(e,t){return km(e).x===km(t).x&&km(e).y===km(t).y}function km(e){return{x:Math.round(e.x*100)/100,y:Math.round(e.y*100)/100}}function Am(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var jm=new Set([`width`,`height`,`shape`,`radius`,`fill`,`fillAlpha`,`strokeColor`,`strokeWidth`,`strokeAlpha`]);function Mm(e,t,n){let r={...h(`Graphics`),...t,...n},i=Number(r.width??100),a=Number(r.height??60);e.clear(),r.shape===`rect`?e.rect(0,0,i,a):e.roundRect(0,0,i,a,Number(r.radius??0)),e.fill({color:Number(r.fill??15067115),alpha:Number(r.fillAlpha??1)}),Number(r.strokeWidth??0)>0&&e.stroke({color:Number(r.strokeColor??0),alpha:Number(r.strokeAlpha??1),width:Number(r.strokeWidth)})}function Nm(e,t){let n=Pm(e),r=Pm(t);if(!(!n||!r)&&![...n,...r].some(e=>u(e.value)||d(e.prop)?.resource!==void 0))return n}function Pm(e){if(e.op===`setNodeProp`)return[e];if(!(e.op!==`batch`||!e.commands.every(e=>e.op===`setNodeProp`)))return e.commands}var Fm={key:0,class:`canvas-status`},Im={class:`canvas-tools`},Lm=[`disabled`],Rm=Ei({__name:`SceneCanvas`,props:{document:{},draggedAsset:{},projectTree:{},sceneInterfaces:{},selected:{}},emits:[`assetDrop`,`openScene`,`previewState`,`select`],setup(t,{expose:n,emit:i}){let a=t,o=i,s=U(),c=U(!1),l=U(!1),u=U(!1),d=U(`正在初始化画布`),m,g,_,v,x,S,C,ee,T,ie=0,ae,D,O,k,oe=new Map,A=[`nw`,`n`,`ne`,`e`,`se`,`s`,`sw`,`w`],se={n:`ns-resize`,ne:`nesw-resize`,e:`ew-resize`,se:`nwse-resize`,s:`ns-resize`,sw:`nesw-resize`,w:`ew-resize`,nw:`nwse-resize`};function ce(){let e=s.value.getBoundingClientRect();return{width:Math.max(1,Math.floor(e.width||960)),height:Math.max(1,Math.floor(e.height||540))}}function le(){!_||!C||(_.root.scale.set(C.scale),_.root.position.set(C.x,C.y),Ve())}function j(){return C?{...C}:void 0}function ue(e){C={...e},le()}async function de(){if(!m||!_||!v)throw Error(`Authoring preview is not ready.`);let e=_,t=v;return{path:t.path,revision:t.version,width:e.width,height:e.height,dataUrl:await E(m,e)}}n({cancelCurrentInteraction:ke,captureScreenshot:de,captureView:j,restoreView:ue});function M(){!_||!s.value||(C=pm(T??ce(),_),le())}function N(e,t){if(!m||!s.value)return;let n=s.value.getBoundingClientRect();return{x:(e-n.left)*m.screen.width/n.width,y:(t-n.top)*m.screen.height/n.height}}function fe(e){if(!_||!s.value||!C)return;let t=s.value.getBoundingClientRect(),n=N(e.clientX,e.clientY),r=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*16:e.deltaMode===WheelEvent.DOM_DELTA_PAGE?e.deltaY*t.height:e.deltaY;C=gm(C,n,r),le()}async function pe(){let e=++ie,t=a.document,n=a.projectTree;if(!(!m||!t||!n)){ee!==t.path&&(ee=t.path,C=void 0),d.value=`正在构建 Scene`,o(`previewState`,`loading`);try{let r=await w({document:{template:t.template,sceneInterfaces:a.sceneInterfaces??{}},projectTree:n,scenePath:t.path});if(e!==ie){re(r);return}_&&(m.stage.removeChild(_.root),re(_)),_=r,v=t,k=void 0;for(let[e,n]of _.nodes)n.eventMode=`static`,n.cursor=be(e,n)?`move`:`default`,n.on(`pointerdown`,t=>Se(e,n,t)),n.on(`click`,n=>me(e,n,t));m.stage.addChild(_.root),ae&&m.stage.addChild(ae),C?le():M(),d.value=``,o(`previewState`,`ready`)}catch(t){if(e!==ie)return;d.value=t instanceof Error?t.message:String(t),o(`previewState`,`error`)}}}function me(e,t,n){t.stopPropagation();let r={x:t.global.x,y:t.global.y},i=_?am(_.root,_.nodes,r):[],s=om(i.length>0?i:[e],r,k,a.selected);if(!s)return;k=s.cycle,o(`select`,s.locator);let c=ep(n.template.children,s.locator);t.detail===2&&s.locator===a.selected&&c?.kind===`sceneInstance`&&o(`openScene`,c.scene)}function he(t,n,i){if(i!==void 0||!a.document)return i;let o=ep(a.document.template.children,t);if(o?.kind===`pixi`&&r(o.type))return h(o.type)[n]??P(n);if(o?.kind===`sceneInstance`){let t=a.sceneInterfaces?.[e(a.document.path,o.scene)]?.props[n];if(t)return t.type===`struct`?void 0:t.default}return P(n)}function P(e){return e===`visible`?!0:e===`alpha`||e===`scaleX`||e===`scaleY`?1:e===`cursor`?`default`:e===`eventMode`?`passive`:0}function F(e,t,n){let r=_?.nodes.get(e);if(!r)return;let i=he(e,t,n),o=a.document?ep(a.document.template.children,e):void 0;if(r instanceof b&&o?.kind===`pixi`&&o.type===`Graphics`&&jm.has(t))Mm(r,o.props,{[t]:i});else if(t===`x`||t===`y`)r.position[t]=Number(i);else if(t===`scaleX`||t===`scaleY`)r.scale[t===`scaleX`?`x`:`y`]=Number(i);else if(t===`pivotX`||t===`pivotY`)r.pivot[t===`pivotX`?`x`:`y`]=Number(i);else if(t===`skewX`||t===`skewY`)r.skew[t===`skewX`?`x`:`y`]=Number(i);else if([`left`,`right`,`top`,`bottom`,`horizontal`,`vertical`].includes(t))te(r,{...y(r),[t]:n});else if([`fontSize`,`fontFamily`,`fontWeight`,`fill`].includes(t)&&`style`in r){let e=r.style;e[t]=i}else if(t===`anchorX`||t===`anchorY`){let e=r.anchor;e&&(e[t===`anchorX`?`x`:`y`]=Number(i))}else if(t===`tilePositionX`||t===`tilePositionY`){let e=r.tilePosition;e&&(e[t===`tilePositionX`?`x`:`y`]=Number(i))}else if(t===`tileScaleX`||t===`tileScaleY`){let e=r.tileScale;e&&(e[t===`tileScaleX`?`x`:`y`]=Number(i))}else r[t]=i;r.parent&&ne(r.parent),Ve()}function ge(e,t){let n=Nm(e,t);if(!n){pe();return}for(let e of n)F(e.node,e.prop,e.value)}function I(e){e.type===`nodePropPreview`?F(e.locator,e.prop,e.value):e.type===`commandApplied`&&ge(e.command,e.inverse)}function _e(e=a.selected){return e?_?.nodes.get(e):void 0}function ve(e=a.selected){return a.document&&e?ep(a.document.template.children,e):void 0}function ye(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}function be(e,t){let n=ve(e);return!a.document||!n||n.kind===`slotOutlet`||bm(a.document.template,e)?!1:_m(n.props,ye(t),{x:1,y:1})!==void 0}function xe(e,t,n){let r=ve(e);if(!a.document||!r||r.kind===`slotOutlet`||t.rotation!==0||t.skew.x!==0||t.skew.y!==0)return!1;let i={x:n.includes(`w`)||n.includes(`e`)?1:0,y:n.includes(`n`)||n.includes(`s`)?1:0};return(bm(a.document.template,e)?ym:vm)(r.props,ye(t),n,i)!==void 0}function Se(e,t,n){if(u.value||l.value||n.button!==0||!im(t,n.target))return;let r={x:n.global.x,y:n.global.y},i=_?am(_.root,_.nodes,r):[];if(!rm(a.selected,e,i))return;n.stopPropagation();let o=a.selected;if(!o)return;let s=_e(o);if(!s||!be(o,s)){Ve(o);return}we(o,s,n,`move`)}function Ce(e,t){if(u.value||l.value||(t.stopPropagation(),t.button!==0||!a.selected))return;let n=_e();!n||!xe(a.selected,n,e)||we(a.selected,n,t,`resize`,e)}function we(e,t,n,r,i){let o=a.document,s=ve(e);if(!o||!s||s.kind===`slotOutlet`||!t.parent||!m)return;Oe();let c=t.parent.toLocal(n.global);O={changes:[],document:o,geometry:ye(t),handle:i,locator:e,mode:r,parent:t.parent,pointerId:n.pointerId,positionManaged:bm(o.template,e),previewed:new Set,props:{...s.props},start:{x:c.x,y:c.y}},m.canvas.style.cursor=r===`move`?`move`:se[i]}function Te(e){let t=O;if(!t||e.pointerId!==t.pointerId)return;let n=t.parent.toLocal(e.global),r={x:n.x-t.start.x,y:n.y-t.start.y},i=t.mode===`move`?_m(t.props,t.geometry,r):t.positionManaged?ym(t.props,t.geometry,t.handle,r):vm(t.props,t.geometry,t.handle,r);i&&L(t,i)}function L(e,t){let n=new Set(t.map(e=>e.prop));for(let t of e.previewed)n.has(t)||e.document.previewNodeProp(e.locator,t,Ee(e,t));for(let n of t)e.document.previewNodeProp(e.locator,n.prop,n.value);e.previewed=n,e.changes=t,Ve(e.locator)}function Ee(e,t){let n=e.props[t];if(n!==void 0)return n;if(t===`x`)return e.geometry.x;if(t===`y`)return e.geometry.y;if(t===`width`)return e.geometry.width;if(t===`height`)return e.geometry.height}async function De(){let e=O;if(!e||(O=void 0,R(),e.changes.length===0))return;let t=e.changes.map(t=>({op:`setNodeProp`,node:e.locator,prop:t.prop,value:t.value})),n=t.length===1?t[0]:{op:`batch`,commands:t};try{await e.document.commitCommand(n)}catch(e){d.value=e instanceof Error?e.message:String(e)}}function Oe(){let e=O;if(e){O=void 0;for(let t of e.previewed)e.document.previewNodeProp(e.locator,t,Ee(e,t));R(),Ve()}}function ke(){let e=!!O||!!g||u.value;return Oe(),Me(),u.value=!1,e}function R(){m&&(m.canvas.style.cursor=``)}function Ae(e){let t=e.target;t instanceof Element&&t.closest(`.canvas-tools`)||!(e.button===1||e.button===0&&u.value)||!C||(e.preventDefault(),e.stopPropagation(),Oe(),g={pointerId:e.pointerId,start:N(e.clientX,e.clientY),view:{...C}},l.value=!0,s.value.setPointerCapture(e.pointerId))}function je(e){let t=g;if(!t||e.pointerId!==t.pointerId)return;let n=N(e.clientX,e.clientY);C=mm(t.view,{x:n.x-t.start.x,y:n.y-t.start.y}),le()}function Me(){let e=g;e&&(s.value?.hasPointerCapture(e.pointerId)&&s.value.releasePointerCapture(e.pointerId),g=void 0,l.value=!1)}function Ne(e){if(e.code!==`Space`||!c.value||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;t instanceof Element&&t.closest(`input, textarea, select, button, [contenteditable="true"]`)||(e.preventDefault(),u.value=!0)}function Pe(e){e.code!==`Space`||!u.value||(e.preventDefault(),u.value=!1)}function Fe(){u.value=!1,Me(),Oe()}function Ie(e){if(!_)return;let t=_.root.toLocal(N(e.clientX,e.clientY));if(!(t.x<0||t.y<0||t.x>_.width||t.y>_.height))return{x:Math.round(t.x*100)/100,y:Math.round(t.y*100)/100}}async function Le(e){let t=e.target;if(t instanceof Element&&t.closest(`.canvas-tools`)||e.pointerId===g?.pointerId)return;let n=a.draggedAsset,r=a.document,i=Ie(e);if(!n||!r||!i){o(`assetDrop`);return}try{await r.commitCommand({op:`insertNode`,parent:`__scene__`,node:dp(r.template,n,i)})}catch(e){d.value=e instanceof Error?e.message:String(e)}finally{o(`assetDrop`)}}function Re(e){e.pointerId===g?.pointerId?Me():e.pointerId===O?.pointerId&&De()}function ze(e){e.pointerId===g?.pointerId?Me():e.pointerId===O?.pointerId&&Oe()}function Be(){ae=new p,ae.eventMode=`passive`,D=new b,D.eventMode=`none`,ae.addChild(D);for(let e of A){let t=new b().rect(-4,-4,8,8).fill(855827).stroke({color:5017087,width:1});t.eventMode=`static`,t.cursor=se[e],t.visible=!1,t.on(`pointerdown`,t=>Ce(e,t)),oe.set(e,t),ae.addChild(t)}m.stage.addChild(ae)}function Ve(e=a.selected){if(!D)return;let t=_e(e);if(!t||!e||t.destroyed){D.visible=!1;for(let e of oe.values())e.visible=!1;return}let n=t.getBounds(),r=n.minX,i=n.minY,o=n.maxX-n.minX,s=n.maxY-n.minY;if(![r,i,o,s].every(Number.isFinite))return;D.clear().rect(r,i,o,s).stroke({color:5017087,width:1}),D.visible=!0;let c={nw:{x:r,y:i},n:{x:r+o/2,y:i},ne:{x:r+o,y:i},e:{x:r+o,y:i+s/2},se:{x:r+o,y:i+s},s:{x:r+o/2,y:i+s},sw:{x:r,y:i+s},w:{x:r,y:i+s/2}};for(let[n,r]of oe)r.position.copyFrom(c[n]),r.visible=xe(e,t,n)}return G(()=>a.document,e=>{Oe(),Me(),S?.(),S=e?.subscribe(I),pe()},{immediate:!0}),G([()=>a.projectTree,()=>a.sceneInterfaces],()=>void pe()),G(()=>a.selected,()=>Ve()),_a(async()=>{m=new f;let e=ce();T=e,await m.init({width:e.width,height:e.height,backgroundAlpha:0,antialias:!0,autoDensity:!0,resolution:Math.min(window.devicePixelRatio||1,2)}),m.canvas.className=`scene-canvas`,s.value.appendChild(m.canvas),m.renderer.events.features.globalMove=!0,m.stage.eventMode=`static`,m.stage.hitArea=m.screen,m.stage.on(`globalpointermove`,Te),Be(),window.addEventListener(`pointermove`,je),window.addEventListener(`pointerup`,Re),window.addEventListener(`pointercancel`,ze),window.addEventListener(`keydown`,Ne),window.addEventListener(`keyup`,Pe),window.addEventListener(`blur`,Fe),x=new ResizeObserver(()=>{if(!m)return;let e=ce(),t=T??e;T=e,m.renderer.resize(e.width,e.height),m.stage.hitArea=m.screen,C&&=hm(C,t,e),le()}),x.observe(s.value),await pe()}),ba(()=>{ie+=1,O=void 0,Me(),window.removeEventListener(`pointermove`,je),window.removeEventListener(`pointerup`,Re),window.removeEventListener(`pointercancel`,ze),window.removeEventListener(`keydown`,Ne),window.removeEventListener(`keyup`,Pe),window.removeEventListener(`blur`,Fe),S?.(),x?.disconnect(),_&&re(_),m?.destroy({removeView:!0},{children:!0})}),(e,n)=>(J(),Y(`div`,{ref_key:`host`,ref:s,class:He([`scene-canvas-host`,{"is-asset-drop-target":!!t.draggedAsset,"is-pan-ready":u.value,"is-panning":l.value}]),onPointerdownCapture:Ae,onPointerenter:n[0]||=e=>c.value=!0,onPointerleave:n[1]||=e=>c.value=!1,onPointerup:Le,onWheel:Eu(fe,[`prevent`])},[n[2]||=X(`div`,{class:`canvas-grid`},null,-1),d.value?(J(),Y(`div`,Fm,z(d.value),1)):qs(``,!0),X(`div`,Im,[X(`button`,{type:`button`,title:`适应窗口`,"aria-label":`适应窗口`,disabled:!t.document,onClick:M},[Z(W(qd),{size:15})],8,Lm)])],34))}}),zm=class e{path;template;#e;#t=new s;#n=new Set;#r=Promise.resolve();#i=`synced`;#a;constructor(e,t,n,r){this.path=e,this.template=l(t),this.#a=n,this.#e=r}static async open(t,n){let r=await n.readScene(t);return new e(r.path,r.source,r.version,n)}get source(){return n(this.template)}get syncState(){return this.#i}get version(){return this.#a}get canUndo(){return this.#t.canUndo}get canRedo(){return this.#t.canRedo}subscribe(e){return this.#n.add(e),()=>this.#n.delete(e)}previewNodeProp(e,t,n){this.#l({type:`nodePropPreview`,locator:e,prop:t,value:n})}async commitNodeProp(e,t,n){let r=ep(this.template.children,e);if(!r||r.kind===`slotOutlet`)throw Error(`Scene node "${e}" was not found.`);if(Bm(r.props,t)===n)return;let i={op:`setNodeProp`,node:e,prop:t,value:n};await this.commitCommand(i)}async commitNodeId(e,t){let n=ep(this.template.children,e);if(!n||n.kind===`slotOutlet`)throw Error(`Scene node "${e}" was not found.`);let r=t.trim();if(!r)throw Error(`Node id cannot be empty.`);if(n.id===r)return;let i={op:`setNodeId`,node:e,value:r};return this.commitCommand(i)}async commitCommand(e,t={}){let n=this.#t.execute(this.template,e,{},t);if(!n.ok)throw Error(n.error);return this.#l({type:`commandApplied`,command:n.command,inverse:n.inverse,selection:n.selection}),await this.#o(),n.selection}async undo(){let e=this.#t.undo(this.template);e?.ok&&(this.#l({type:`commandApplied`,command:e.command,inverse:e.inverse,selection:e.selection}),await this.#o())}async redo(){let e=this.#t.redo(this.template);e?.ok&&(this.#l({type:`commandApplied`,command:e.command,inverse:e.inverse,selection:e.selection}),await this.#o())}async reloadIfChanged(){for(;;){let t=this.#r;if(await t,t!==this.#r)continue;if(this.#i!==`synced`)return;let n=await this.#e.readScene(this.path);if(t===this.#r)return this.#i!==`synced`||n.version===this.#a?void 0:new e(n.path,n.source,n.version,this.#e)}}#o(){let e=this.source,t=this.#r.then(()=>this.#s(e));return this.#r=t.catch(()=>{}),t}async#s(e){this.#c(`saving`);try{let t=await this.#e.writeScene(this.path,e,this.#a);this.#a=t.version,this.#t.markSaved(),this.#c(`synced`)}catch(e){let t=typeof e==`object`&&e&&`status`in e?e.status:void 0;throw this.#c(t===409?`conflict`:`error`),e}}#c(e){this.#i=e,this.#l({type:`syncStateChanged`,state:e})}#l(e){for(let t of this.#n)t(e)}};function Bm(e,t){let[n,r,...i]=t.split(`.`);if(!r||i.length>0)return e[t];let a=e[n];return a&&typeof a==`object`&&!u(a)?a[r]:void 0}function Vm(e,t){if(!t)return{kind:`scene`};let n=tp(e.children,t);if(!n)throw Error(`Scene node "${t}" was not found.`);let r=n.node;return r.kind===`slotOutlet`?{kind:`node`,locator:t,node:{kind:`slotOutlet`,name:r.name}}:r.kind===`sceneInstance`?{kind:`node`,locator:t,node:{kind:`sceneInstance`,type:r.type,id:r.id,scene:r.scene,props:structuredClone(r.props),events:{...r.events},slots:Object.fromEntries(Object.entries(r.slots).map(([e,t])=>[e,t.length]))}}:{kind:`node`,locator:t,node:{kind:`pixi`,type:r.type,id:r.id,props:structuredClone(r.props),childCount:r.children.length}}}var Hm=xd(`editorUi`,{state:()=>({activeLeftTab:`hierarchy`,currentScenePath:void 0,selectedLocator:void 0,syncState:`synced`})}),Um={key:0,class:`editor-session-standby`},Wm={class:`standby-context`},Gm=[`aria-label`,`disabled`],Km={key:0,class:`standby-error`},qm={key:1,class:`editor-shell`},Jm={class:`topbar`},Ym={class:`scene-identity`},Xm={class:`history-tools`},Zm=[`disabled`],Qm=[`disabled`],$m=[`disabled`],eh=[`disabled`],th=[`disabled`],nh=[`data-state`],rh={class:`workspace`},ih={class:`left-panel`},ah={class:`canvas-panel`,"aria-label":`Scene 画布`},oh={class:`right-panel`},sh={key:0,class:`global-error`};Iu(Ei({__name:`EditorApp`,setup(t){let{activeLeftTab:n,currentScenePath:r,selectedLocator:i,syncState:a}=Sd(Hm()),o=U(),s=U(),c=U({}),l=U(),u=U(),d=U(0),f=U(``),p=U(),m=U(),h=U(!1),g=U(`loading`),y=U(`connecting`),b=U(``),S=U(),te=U(),w=U(!1),ne=U(),re=U(),E=U([]),D=U(-1),O=U(!1),k,oe,A=0,se,ce=0,le=!1,j=!1,ue=0,de=0,M=!1,N=0,fe=new Set,pe=Q(()=>r.value?.split(`/`).at(-1)?.replace(/\.scene$/,``)??`未打开 Scene`),me=Q(()=>({synced:`已同步`,saving:`正在写入`,conflict:`同步冲突`,error:`写入失败`})[a.value]),he=Q(()=>D.value>0&&!O.value),P=Q(()=>D.value>=0&&D.value<E.value.length-1&&!O.value);function F(e,t){k?.(),g.value=`loading`,u.value=On(e),r.value=e.path,i.value=t,a.value=e.syncState,d.value+=1,k=e.subscribe(e=>{e.type===`syncStateChanged`&&(a.value=e.state),e.type===`commandApplied`&&(d.value+=1,i.value=e.selection?.type===`node`?e.selection.node:void 0)})}async function ge(e,t,n){let r=A,i=++ue;f.value=``;try{let a=await zm.open(e,T);return y.value!==`active`||r!==A||i!==ue||(F(a,t),await yr(),u.value!==a||i!==ue)?!1:(n&&re.value?.restoreView?.(n),!0)}catch(e){return y.value===`active`&&r===A&&i===ue&&(f.value=e instanceof Error?e.message:String(e)),!1}}function I(e,t){E.value=[{path:e,selectedLocator:t}],D.value=0}function _e(){let e=E.value[D.value];!e||e.path!==u.value?.path||(E.value[D.value]={...e,selectedLocator:i.value,view:re.value?.captureView?.()??e.view})}async function ve(e){if(!(O.value||e===u.value?.path)){O.value=!0,_e();try{if(!await ge(e))return;E.value=[...E.value.slice(0,D.value+1),{path:e}],D.value+=1}finally{O.value=!1}}}async function ye(e){if(O.value)return;let t=D.value+e,n=E.value[t];if(n){O.value=!0,_e();try{if(!await ge(n.path,n.selectedLocator,n.view))return;D.value=t}finally{O.value=!1}}}function be(t){let n=u.value;n&&ve(e(n.path,t))}async function xe(){let e=await ee();return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.interface]))}function Se(e){return!j&&y.value===`active`&&e===ce}async function Ce(e,t){if(!Se(t))return;let n=u.value,r=o.value,a=new Map(r?.files.map(e=>[e.path,e])),l=new Set(e.filter(e=>!a.has(e))),d=r;if(l.size>0&&(d=await ie(),!Se(t)))return;let p=new Map(d?.files.map(e=>[e.path,e])),m=e.flatMap(e=>{let t=a.get(e)??p.get(e);return t?[t]:[]}),h=new Set(d?.scenes.map(C)),g=m.some(e=>e.kind===`script`&&h.has(e.path)),v=m.some(e=>e.kind===`image`||e.kind===`scene`&&e.path!==n?.path||e.kind===`script`&&h.has(e.path)&&l.has(e.path)),y=n&&e.includes(n.path)&&n?n.reloadIfChanged().catch(e=>{throw Se(t)&&u.value===n&&(i.value=void 0),e}):void 0,[b,x,S]=await Promise.all([v?d===r?ie():d:void 0,g?xe():void 0,y]);Se(t)&&(b&&(o.value=b,s.value=_(b)),x&&(c.value=x),S&&n&&u.value===n&&F(S,lp(n.template,S.template,i.value)),f.value=``)}async function we(){if(!le){le=!0;try{for(;fe.size>0;){let e=[...fe];fe.clear();let t=ce;try{await Ce(e,t)}catch(e){Se(t)&&(f.value=e instanceof Error?e.message:String(e))}if(t!==ce&&Se(ce))for(let t of e)fe.add(t)}}finally{le=!1}}}function Te(e){fe.add(e),ce+=1,se&&clearTimeout(se),se=window.setTimeout(()=>{se=void 0,we()},30)}function L(){let e=u.value;!e||!oe||oe.publishContext({scene:{path:e.path,revision:e.version,syncState:a.value,previewState:g.value},selection:Vm(e.template,i.value)})}G([u,d,i,a,g],L,{flush:`post`});async function Ee(e){let t=u.value;if(y.value!==`active`||!t||t.path!==e.path||t.version!==e.revision||a.value!==`synced`||g.value!==`ready`)throw Error(`Authoring preview is not ready for the requested Scene revision.`);let n=re.value?.captureScreenshot;if(!n)throw Error(`Authoring preview screenshot capture is unavailable.`);let r=await n();if(y.value!==`active`||u.value!==t||t.path!==e.path||t.version!==e.revision||a.value!==`synced`||g.value!==`ready`||r.path!==e.path||r.revision!==e.revision)throw Error(`Authoring preview changed during screenshot capture.`);return{width:r.width,height:r.height,dataUrl:r.dataUrl}}async function De(){let e=u.value;if(!(!e||h.value||a.value!==`synced`)){f.value=``,h.value=!0;try{let[t,n,r]=await Promise.all([ie(),xe(),e.reloadIfChanged()]);if(u.value!==e||e.syncState!==`synced`)return;let a=r?lp(e.template,r.template,i.value):i.value;o.value=t,s.value=_(t),c.value=n,r&&F(r,a)}catch(e){f.value=e instanceof Error?e.message:String(e)}finally{h.value=!1}}}async function Oe(){f.value=``;try{await u.value?.undo()}catch(e){f.value=e instanceof Error?e.message:String(e)}}async function ke(){f.value=``;try{await u.value?.redo()}catch(e){f.value=e instanceof Error?e.message:String(e)}}function R(e){let t=e.target;return t instanceof Element&&!!t.closest(`input, textarea, select, [contenteditable]:not([contenteditable="false"])`)}async function Ae(e){let t=u.value;if(t){f.value=``;try{await t.commitCommand(e)}catch(e){f.value=e instanceof Error?e.message:String(e)}}}function je(){let e=u.value,t=i.value;if(!e||!t)return;let n=tp(e.template.children,t);!n||n.node.kind===`slotOutlet`||Ae({op:`insertNode`,parent:n.parentLocator,index:n.index+1,node:fp(e.template,n.node)})}function Me(){i.value&&Ae({op:`deleteNode`,node:i.value})}function Ne(){let e=!!p.value,t=ne.value?.cancelCurrentDrag?.()??!1,n=re.value?.cancelCurrentInteraction?.()??!1;ze(),!e&&!t&&!n&&(i.value=void 0)}function Pe(e){if(y.value!==`active`||!u.value||e.repeat||e.altKey||R(e))return;let t=e.metaKey||e.ctrlKey;if(t&&e.code===`KeyZ`){e.preventDefault(),e.shiftKey?ke():Oe();return}if(t&&!e.shiftKey&&e.code===`KeyD`){e.preventDefault(),je();return}if(!t&&!e.shiftKey&&(e.code===`Delete`||e.code===`Backspace`)){e.preventDefault(),Me();return}!t&&!e.shiftKey&&e.code===`Escape`&&(e.preventDefault(),Ne())}function Fe(e){p.value=e,n.value=`hierarchy`}function Ie(e){n.value=`assets`,m.value={generation:++N,path:e}}function Le(e){l.value=e,de+=1,M||Re()}async function Re(){M=!0;try{for(;;){let e=de;if(await v(l.value??[]),e===de)return}}catch(e){f.value=e instanceof Error?e.message:String(e)}finally{M=!1}}function ze(){p.value=void 0}function Be(){ce+=1,ue+=1,k?.(),k=void 0,u.value=void 0,l.value=void 0,s.value=void 0,c.value={},r.value=void 0,i.value=void 0,a.value=`synced`,d.value+=1,p.value=void 0,m.value=void 0,h.value=!1,g.value=`loading`,E.value=[],D.value=-1,O.value=!1,fe.clear(),se&&=(clearTimeout(se),void 0)}async function Ve(e){let t=A;f.value=``;let[n,r,i]=await Promise.all([ie(),xe(),ae()]);if(y.value!==`active`||t!==A)return;o.value=n,s.value=_(n),c.value=r,l.value=i.assetTreeExpandedDirectories;let a=e?.scenePath??n.scenes[0];a&&await ge(a,e?.selectedLocator)&&I(a,e?.selectedLocator)}async function He(e){if(A+=1,w.value=!1,b.value=e.error??``,te.value=e.resume?.scenePath,e.status===`standby`){if((e.reason||y.value!==`standby`)&&(S.value=e.reason),y.value=`standby`,Be(),!o.value){let e=A;try{let t=await ie();y.value===`standby`&&e===A&&(o.value=t)}catch(e){b.value=e instanceof Error?e.message:String(e)}}return}S.value=void 0,y.value=`active`;try{await Ve(e.resume)}catch(e){f.value=e instanceof Error?e.message:String(e)}}function Ue(){!oe||w.value||(w.value=!0,b.value=``,oe.requestTakeover())}return _a(async()=>{window.addEventListener(`pointerup`,ze),window.addEventListener(`pointercancel`,ze),window.addEventListener(`keydown`,Pe);try{let e=await x(Te,()=>{oe=void 0,w.value=!1;let e=`Editor 与本地项目服务的连接已断开。`;y.value===`standby`?b.value=e:f.value=e},e=>void He(e),Ee);oe=e,await He(e.initialState)}catch(e){f.value=e instanceof Error?e.message:String(e)}}),ba(()=>{j=!0,ue+=1,window.removeEventListener(`pointerup`,ze),window.removeEventListener(`pointercancel`,ze),window.removeEventListener(`keydown`,Pe),se&&clearTimeout(se),ce+=1,fe.clear(),k?.(),oe?.close()}),(e,t)=>y.value===`standby`?(J(),Y(`main`,Um,[X(`section`,null,[t[8]||=X(`span`,{class:`standby-product`},`PIXIFACT EDITOR`,-1),X(`h1`,null,z(S.value===`takenOver`?`此标签页已停止编辑`:`项目已在另一个标签页中打开`),1),X(`div`,Wm,[t[6]||=X(`span`,null,`项目`,-1),X(`strong`,null,z(o.value?.name),1),t[7]||=X(`span`,null,`当前 Scene`,-1),X(`strong`,null,z(te.value??`尚未打开 Scene`),1)]),X(`button`,{type:`button`,class:`takeover-button`,"aria-label":S.value===`takenOver`?`重新接管`:`在此接管`,disabled:w.value,onClick:Ue},z(w.value?`正在接管…`:S.value===`takenOver`?`重新接管`:`在此接管`),9,Gm),b.value?(J(),Y(`p`,Km,z(b.value),1)):qs(``,!0),t[9]||=X(`p`,{class:`standby-note`},`接管后,另一个标签页将停止编辑。Undo / Redo 和画布视图不会迁移。`,-1)])])):(J(),Y(`main`,qm,[X(`header`,Jm,[t[11]||=X(`div`,{class:`brand`},`PIXIFACT`,-1),X(`div`,Ym,[X(`strong`,null,z(pe.value),1),X(`span`,null,z(W(r)),1)]),X(`div`,Xm,[X(`button`,{type:`button`,title:`返回`,"aria-label":`返回`,disabled:!he.value,onClick:t[0]||=e=>ye(-1)},[Z(W(jd),{size:16})],8,Zm),X(`button`,{type:`button`,title:`前进`,"aria-label":`前进`,disabled:!P.value,onClick:t[1]||=e=>ye(1)},[Z(W(Md),{size:16})],8,Qm),X(`button`,{type:`button`,title:`刷新`,"aria-label":`刷新`,disabled:!u.value||W(a)!==`synced`||h.value,onClick:De},[Z(W(Gd),{size:16})],8,$m),X(`button`,{type:`button`,title:`撤销`,"aria-label":`撤销`,disabled:!u.value?.canUndo,onClick:Oe},[Z(W(Xd),{size:16})],8,eh),X(`button`,{type:`button`,title:`重做`,"aria-label":`重做`,disabled:!u.value?.canRedo,onClick:ke},[Z(W(Wd),{size:16})],8,th)]),X(`div`,{class:`sync-state`,"data-state":W(a)},[t[10]||=X(`span`,null,null,-1),Gs(z(me.value),1)],8,nh)]),X(`section`,rh,[X(`aside`,ih,[Z(W(Lf),{modelValue:W(n),"onUpdate:modelValue":t[3]||=e=>H(n)?n.value=e:null,class:`left-tabs`},{default:Lr(()=>[Z(W(Vf),{class:`tab-list`,"aria-label":`项目面板`},{default:Lr(()=>[Z(W(Hf),{class:`tab-trigger`,value:`hierarchy`},{default:Lr(()=>[...t[12]||=[Gs(`层级`,-1)]]),_:1}),Z(W(Hf),{class:`tab-trigger`,value:`assets`},{default:Lr(()=>[...t[13]||=[Gs(`资产`,-1)]]),_:1})]),_:1}),Z(W(Bf),{class:`tab-content`,value:`hierarchy`},{default:Lr(()=>[Z(Dp,{ref_key:`hierarchyPanel`,ref:ne,document:u.value,"dragged-asset":p.value,revision:d.value,selected:W(i),onSelect:t[2]||=e=>i.value=e,onOpenScene:be,onAssetDrop:ze},null,8,[`document`,`dragged-asset`,`revision`,`selected`])]),_:1}),Z(W(Bf),{class:`tab-content`,value:`assets`},{default:Lr(()=>[Z(Jf,{project:o.value,"current-scene":W(r),"expanded-directories":l.value,"focus-asset":m.value,onAssetDragStart:Fe,onAssetTreeExpansionChange:Le,onOpenScene:ve},null,8,[`project`,`current-scene`,`expanded-directories`,`focus-asset`])]),_:1})]),_:1},8,[`modelValue`])]),X(`section`,ah,[Z(Rm,{ref_key:`sceneCanvas`,ref:re,document:u.value,"dragged-asset":p.value,"project-tree":s.value,"scene-interfaces":c.value,selected:W(i),onSelect:t[4]||=e=>i.value=e,onOpenScene:be,onAssetDrop:ze,onPreviewState:t[5]||=e=>g.value=e},null,8,[`document`,`dragged-asset`,`project-tree`,`scene-interfaces`,`selected`])]),X(`aside`,oh,[t[14]||=X(`div`,{class:`panel-title`},`INSPECTOR`,-1),Z(nm,{document:u.value,"dragged-asset":p.value,revision:d.value,"scene-interfaces":c.value,selected:W(i),onAssetDrop:ze,onLocateAsset:Ie},null,8,[`document`,`dragged-asset`,`revision`,`scene-interfaces`,`selected`])])]),f.value?(J(),Y(`div`,sh,z(f.value),1)):qs(``,!0)]))}})).use(sd()).mount(`#app`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./captureCompilerScenePreview-CeYQNPPP.js";import"./init-BTbgjve4.js";
|