pixifact-cli 0.15.0 → 0.17.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.
@@ -0,0 +1,5 @@
1
+ import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,_ as x,a as S,b as C,i as w,j as ee,k as T,m as E,n as te,o as ne,q as D,r as re,s as ie,t as ae,v as oe,w as se,x as ce,z as le}from"./captureCompilerScenePreview-BYHGr0JS.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={},ue=[],de=()=>{},fe=()=>!1,pe=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),me=e=>e.startsWith(`onUpdate:`),A=Object.assign,he=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},ge=Object.prototype.hasOwnProperty,j=(e,t)=>ge.call(e,t),M=Array.isArray,_e=e=>we(e)===`[object Map]`,ve=e=>we(e)===`[object Set]`,ye=e=>we(e)===`[object Date]`,be=e=>we(e)===`[object RegExp]`,N=e=>typeof e==`function`,P=e=>typeof e==`string`,xe=e=>typeof e==`symbol`,F=e=>typeof e==`object`&&!!e,Se=e=>(F(e)||N(e))&&N(e.then)&&N(e.catch),Ce=Object.prototype.toString,we=e=>Ce.call(e),Te=e=>we(e).slice(8,-1),Ee=e=>we(e)===`[object Object]`,De=e=>P(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,Oe=O(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ke=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ae=/-\w/g,I=ke(e=>e.replace(Ae,e=>e.slice(1).toUpperCase())),je=/\B([A-Z])/g,L=ke(e=>e.replace(je,`-$1`).toLowerCase()),Me=ke(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ne=ke(e=>e?`on${Me(e)}`:``),Pe=(e,t)=>!Object.is(e,t),Fe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ie=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},Re=e=>{let t=P(e)?Number(e):NaN;return isNaN(t)?e:t},ze,Be=()=>ze||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},Ve=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 He(e){if(M(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=P(r)?Ke(r):He(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(P(e)||F(e))return e}var Ue=/;(?![^(]*\))/g,We=/:([^]+)/,Ge=/\/\*[^]*?\*\//g;function Ke(e){let t={};return e.replace(Ge,``).split(Ue).forEach(e=>{if(e){let n=e.split(We);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function qe(e){let t=``;if(P(e))t=e;else if(M(e))for(let n=0;n<e.length;n++){let r=qe(e[n]);r&&(t+=r+` `)}else if(F(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Je(e){if(!e)return null;let{class:t,style:n}=e;return t&&!P(t)&&(e.class=qe(t)),n&&(e.style=He(n)),e}var Ye=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Xe=O(Ye);Ye+``;function Ze(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=$e(e[r],t[r]);return n}function $e(e,t){if(e===t)return!0;let n=ye(e),r=ye(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=xe(e),r=xe(t),n||r)return e===t;if(n=M(e),r=M(t),n||r)return n&&r?Qe(e,t):!1;if(n=F(e),r=F(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||!$e(e[n],t[n]))return!1}}return String(e)===String(t)}function et(e,t){return e.findIndex(e=>$e(e,t))}var tt=e=>!!(e&&e.__v_isRef===!0),R=e=>P(e)?e:e==null?``:M(e)||F(e)&&(e.toString===Ce||!N(e.toString))?tt(e)?R(e.value):JSON.stringify(e,nt,2):String(e),nt=(e,t)=>tt(t)?nt(e,t.value):_e(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[rt(t,r)+` =>`]=n,e),{})}:ve(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>rt(e))}:xe(t)?rt(t):F(t)&&!M(t)&&!Ee(t)?String(t):t,rt=(e,t=``)=>xe(e)?`Symbol(${e.description??t})`:e;function it(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var at,ot=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&&at&&(at.active?(this.parent=at,this.index=(at.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=at;try{return at=this,e()}finally{at=t}}}on(){++this._on===1&&(this.prevScope=at,at=this)}off(){if(this._on>0&&--this._on===0){if(at===this)at=this.prevScope;else{let e=at;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 st(e){return new ot(e)}function ct(){return at}function lt(e,t=!1){at&&at.cleanups.push(e)}var ut,dt=new WeakSet,ft=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,at&&(at.active?at.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,dt.has(this)&&(dt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,jt(this),yt(this);let e=ut,t=Dt;ut=this,Dt=!0;try{return this.fn()}finally{bt(this),ut=e,Dt=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ct(e);this.deps=this.depsTail=void 0,jt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?dt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xt(this)&&this.run()}get dirty(){return xt(this)}},pt=0,mt,ht;function gt(e,t=!1){if(e.flags|=8,t){e.next=ht,ht=e;return}e.next=mt,mt=e}function _t(){pt++}function vt(){if(--pt>0)return;if(ht){let e=ht;for(ht=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;mt;){let t=mt;for(mt=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 yt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bt(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ct(r),wt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function xt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(St(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function St(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mt)||(e.globalVersion=Mt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xt(e))))return;e.flags|=2;let t=e.dep,n=ut,r=Dt;ut=e,Dt=!0;try{yt(e);let n=e.fn(e._value);(t.version===0||Pe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ut=n,Dt=r,bt(e),e.flags&=-3}}function Ct(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)Ct(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function wt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Tt(e,t){e.effect instanceof ft&&(e=e.effect.fn);let n=new ft(e);t&&A(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function Et(e){e.effect.stop()}var Dt=!0,Ot=[];function kt(){Ot.push(Dt),Dt=!1}function At(){let e=Ot.pop();Dt=e===void 0?!0:e}function jt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=ut;ut=void 0;try{t()}finally{ut=e}}}var Mt=0,Nt=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}},Pt=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(!ut||!Dt||ut===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ut)t=this.activeLink=new Nt(ut,this),ut.deps?(t.prevDep=ut.depsTail,ut.depsTail.nextDep=t,ut.depsTail=t):ut.deps=ut.depsTail=t,Ft(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=ut.depsTail,t.nextDep=void 0,ut.depsTail.nextDep=t,ut.depsTail=t,ut.deps===t&&(ut.deps=e)}return t}trigger(e){this.version++,Mt++,this.notify(e)}notify(e){_t();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{vt()}}};function Ft(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)Ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var It=new WeakMap,Lt=Symbol(``),Rt=Symbol(``),zt=Symbol(``);function Bt(e,t,n){if(Dt&&ut){let t=It.get(e);t||It.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Pt),r.map=t,r.key=n),r.track()}}function Vt(e,t,n,r,i,a){let o=It.get(e);if(!o){Mt++;return}let s=e=>{e&&e.trigger()};if(_t(),t===`clear`)o.forEach(s);else{let i=M(e),a=i&&De(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===zt||!xe(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(zt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Lt)),_e(e)&&s(o.get(Rt)));break;case`delete`:i||(s(o.get(Lt)),_e(e)&&s(o.get(Rt)));break;case`set`:_e(e)&&s(o.get(Lt));break}}vt()}function Ht(e,t){let n=It.get(e);return n&&n.get(t)}function Ut(e){let t=z(e);return t===e?t:(Bt(t,`iterate`,zt),Mn(e)?t:t.map(Fn))}function Wt(e){return Bt(e=z(e),`iterate`,zt),e}function Gt(e,t){return jn(e)?In(An(e)?Fn(t):t):Fn(t)}var Kt={__proto__:null,[Symbol.iterator](){return qt(this,Symbol.iterator,e=>Gt(this,e))},concat(...e){return Ut(this).concat(...e.map(e=>M(e)?Ut(e):e))},entries(){return qt(this,`entries`,e=>(e[1]=Gt(this,e[1]),e))},every(e,t){return Yt(this,`every`,e,t,void 0,arguments)},filter(e,t){return Yt(this,`filter`,e,t,e=>e.map(e=>Gt(this,e)),arguments)},find(e,t){return Yt(this,`find`,e,t,e=>Gt(this,e),arguments)},findIndex(e,t){return Yt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Yt(this,`findLast`,e,t,e=>Gt(this,e),arguments)},findLastIndex(e,t){return Yt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Yt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Zt(this,`includes`,e)},indexOf(...e){return Zt(this,`indexOf`,e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Zt(this,`lastIndexOf`,e)},map(e,t){return Yt(this,`map`,e,t,void 0,arguments)},pop(){return Qt(this,`pop`)},push(...e){return Qt(this,`push`,e)},reduce(e,...t){return Xt(this,`reduce`,e,t)},reduceRight(e,...t){return Xt(this,`reduceRight`,e,t)},shift(){return Qt(this,`shift`)},some(e,t){return Yt(this,`some`,e,t,void 0,arguments)},splice(...e){return Qt(this,`splice`,e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return Qt(this,`unshift`,e)},values(){return qt(this,`values`,e=>Gt(this,e))}};function qt(e,t,n){let r=Wt(e),i=r[t]();return r!==e&&!Mn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Jt=Array.prototype;function Yt(e,t,n,r,i,a){let o=Wt(e),s=o!==e&&!Mn(e),c=o[t];if(c!==Jt[t]){let t=c.apply(e,a);return s?Fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,Gt(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 Xt(e,t,n,r){let i=Wt(e),a=i!==e&&!Mn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=Gt(e,t)),n.call(this,t,Gt(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?Gt(e,c):c}function Zt(e,t,n){let r=z(e);Bt(r,`iterate`,zt);let i=r[t](...n);return(i===-1||i===!1)&&Nn(n[0])?(n[0]=z(n[0]),r[t](...n)):i}function Qt(e,t,n=[]){kt(),_t();let r=z(e)[t].apply(e,n);return vt(),At(),r}var $t=O(`__proto__,__v_isRef,__isVue`),en=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(xe));function tn(e){xe(e)||(e=String(e));let t=z(this);return Bt(t,`has`,e),t.hasOwnProperty(e)}var nn=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?Cn:Sn:i?xn:bn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=M(e);if(!r){let e;if(a&&(e=Kt[t]))return e;if(t===`hasOwnProperty`)return tn}let o=Reflect.get(e,t,Ln(e)?e:n);if((xe(t)?en.has(t):$t(t))||(r||Bt(e,`get`,t),i))return o;if(Ln(o)){let e=a&&De(t)?o:o.value;return r&&F(e)?Dn(e):e}return F(o)?r?Dn(o):Tn(o):o}},rn=class extends nn{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=M(e)&&De(t);if(!this._isShallow){let e=jn(i);if(!Mn(n)&&!jn(n)&&(i=z(i),n=z(n)),!a&&Ln(i)&&!Ln(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:j(e,t),s=Reflect.set(e,t,n,Ln(e)?e:r);return e===z(r)&&s&&(o?Pe(n,i)&&Vt(e,`set`,t,n,i):Vt(e,`add`,t,n)),s}deleteProperty(e,t){let n=j(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Vt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!xe(t)||!en.has(t))&&Bt(e,`has`,t),n}ownKeys(e){return Bt(e,`iterate`,M(e)?`length`:Lt),Reflect.ownKeys(e)}},an=class extends nn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},on=new rn,sn=new an,cn=new rn(!0),ln=new an(!0),un=e=>e,dn=e=>Reflect.getPrototypeOf(e);function fn(e,t,n){return function(...r){let i=this.__v_raw,a=z(i),o=_e(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?un:t?In:Fn;return!t&&Bt(a,`iterate`,c?Rt:Lt),A(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 pn(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function mn(e,t){let n={get(n){let r=this.__v_raw,i=z(r),a=z(n);e||(Pe(n,a)&&Bt(i,`get`,n),Bt(i,`get`,a));let{has:o}=dn(i),s=t?un:e?In:Fn;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&&Bt(z(t),`iterate`,Lt),t.size},has(t){let n=this.__v_raw,r=z(n),i=z(t);return e||(Pe(t,i)&&Bt(r,`has`,t),Bt(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=z(a),s=t?un:e?In:Fn;return!e&&Bt(o,`iterate`,Lt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return A(n,e?{add:pn(`add`),set:pn(`set`),delete:pn(`delete`),clear:pn(`clear`)}:{add(e){let n=z(this),r=dn(n),i=z(e),a=!t&&!Mn(e)&&!jn(e)?i:e;return r.has.call(n,a)||Pe(e,a)&&r.has.call(n,e)||Pe(i,a)&&r.has.call(n,i)||(n.add(a),Vt(n,`add`,a,a)),this},set(e,n){!t&&!Mn(n)&&!jn(n)&&(n=z(n));let r=z(this),{has:i,get:a}=dn(r),o=i.call(r,e);o||=(e=z(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?Pe(n,s)&&Vt(r,`set`,e,n,s):Vt(r,`add`,e,n),this},delete(e){let t=z(this),{has:n,get:r}=dn(t),i=n.call(t,e);i||=(e=z(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Vt(t,`delete`,e,void 0,a),o},clear(){let e=z(this),t=e.size!==0,n=e.clear();return t&&Vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=fn(r,e,t)}),n}function hn(e,t){let n=mn(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(j(n,r)&&r in t?n:t,r,i)}var gn={get:hn(!1,!1)},_n={get:hn(!1,!0)},vn={get:hn(!0,!1)},yn={get:hn(!0,!0)},bn=new WeakMap,xn=new WeakMap,Sn=new WeakMap,Cn=new WeakMap;function wn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Tn(e){return jn(e)?e:kn(e,!1,on,gn,bn)}function En(e){return kn(e,!1,cn,_n,xn)}function Dn(e){return kn(e,!0,sn,vn,Sn)}function On(e){return kn(e,!0,ln,yn,Cn)}function kn(e,t,n,r,i){if(!F(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=wn(Te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function An(e){return jn(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function jn(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return!!(e&&e.__v_isShallow)}function Nn(e){return e?!!e.__v_raw:!1}function z(e){let t=e&&e.__v_raw;return t?z(t):e}function Pn(e){return!j(e,`__v_skip`)&&Object.isExtensible(e)&&Ie(e,`__v_skip`,!0),e}var Fn=e=>F(e)?Tn(e):e,In=e=>F(e)?Dn(e):e;function Ln(e){return e?e.__v_isRef===!0:!1}function B(e){return zn(e,!1)}function Rn(e){return zn(e,!0)}function zn(e,t){return Ln(e)?e:new Bn(e,t)}var Bn=class{constructor(e,t){this.dep=new Pt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:z(e),this._value=t?e:Fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Mn(e)||jn(e);e=n?e:z(e),Pe(e,t)&&(this._rawValue=e,this._value=n?e:Fn(e),this.dep.trigger())}};function Vn(e){e.dep&&e.dep.trigger()}function V(e){return Ln(e)?e.value:e}function Hn(e){return N(e)?e():V(e)}var Un={get:(e,t,n)=>t===`__v_raw`?e:V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Ln(i)&&!Ln(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Wn(e){return An(e)?e:new Proxy(e,Un)}var Gn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Pt,{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 Kn(e){return new Gn(e)}function qn(e){let t=M(e)?Array(e.length):{};for(let n in e)t[n]=Zn(e,n);return t}var Jn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=xe(t)?t:String(t),this._raw=z(e);let r=!0,i=e;if(!M(e)||xe(this._key)||!De(this._key))do r=!Nn(i)||Mn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=V(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Ln(this._raw[this._key])){let t=this._object[this._key];if(Ln(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Ht(this._raw,this._key)}},Yn=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 Xn(e,t,n){return Ln(e)?e:N(e)?new Yn(e):F(e)&&arguments.length>1?Zn(e,t,n):B(e)}function Zn(e,t,n){return new Jn(e,t,n)}var Qn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Pt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ut!==this)return gt(this,!0),!0}get value(){let e=this.dep.track();return St(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function $n(e,t,n=!1){let r,i;return N(e)?r=e:(r=e.get,i=e.set),new Qn(r,i,n)}var er={GET:`get`,HAS:`has`,ITERATE:`iterate`},tr={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},nr={},rr=new WeakMap,ir=void 0;function ar(){return ir}function or(e,t=!1,n=ir){if(n){let t=rr.get(n);t||rr.set(n,t=[]),t.push(e)}}function sr(e,t,n=k){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Mn(e)||i===!1||i===0?cr(e,1):cr(e),u,d,f,p,m=!1,h=!1;if(Ln(e)?(d=()=>e.value,m=Mn(e)):An(e)?(d=()=>l(e),m=!0):M(e)?(h=!0,m=e.some(e=>An(e)||Mn(e)),d=()=>e.map(e=>{if(Ln(e))return e.value;if(An(e))return l(e);if(N(e))return c?c(e,2):e()})):d=N(e)?t?c?()=>c(e,2):e:()=>{if(f){kt();try{f()}finally{At()}}let t=ir;ir=u;try{return c?c(e,3,[p]):e(p)}finally{ir=t}}:de,t&&i){let e=d,t=i===!0?1/0:i;d=()=>cr(e(),t)}let g=ct(),_=()=>{u.stop(),g&&g.active&&he(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return _(),n}}let v=h?Array(e.length).fill(nr):nr,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let n=u.run();if(e||i||m||(h?n.some((e,t)=>Pe(e,v[t])):Pe(n,v))){f&&f();let e=ir;ir=u;try{let e=[n,v===nr?void 0:h&&v[0]===nr?[]:v,p];v=n,c?c(t,3,e):t(...e)}finally{ir=e}}}else u.run()};return s&&s(y),u=new ft(d),u.scheduler=o?()=>o(y,!1):y,p=e=>or(e,!1,u),f=u.onStop=()=>{let e=rr.get(u);if(e){if(c)c(e,4);else for(let t of e)t();rr.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 cr(e,t=1/0,n){if(t<=0||!F(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ln(e))cr(e.value,t,n);else if(M(e))for(let r=0;r<e.length;r++)cr(e[r],t,n);else if(ve(e)||_e(e))e.forEach(e=>{cr(e,t,n)});else if(Ee(e)){for(let r in e)cr(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&cr(e[r],t,n)}return e}var lr=[];function ur(e){lr.push(e)}function dr(){lr.pop()}function fr(e,t){}var pr={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`},mr={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 hr(e,t,n,r){try{return r?e(...r):e()}catch(e){_r(e,t,n)}}function gr(e,t,n,r){if(N(e)){let i=hr(e,t,n,r);return i&&Se(i)&&i.catch(e=>{_r(e,t,n)}),i}if(M(e)){let i=[];for(let a=0;a<e.length;a++)i.push(gr(e[a],t,n,r));return i}}function _r(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){kt(),hr(a,null,10,[e,i,o]),At();return}}vr(e,n,i,r,o)}function vr(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var yr=[],br=-1,xr=[],Sr=null,Cr=0,wr=Promise.resolve(),Tr=null;function Er(e){let t=Tr||wr;return e?t.then(this?e.bind(this):e):t}function Dr(e){let t=br+1,n=yr.length;for(;t<n;){let r=t+n>>>1,i=yr[r],a=Nr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Or(e){if(!(e.flags&1)){let t=Nr(e),n=yr[yr.length-1];!n||!(e.flags&2)&&t>=Nr(n)?yr.push(e):yr.splice(Dr(t),0,e),e.flags|=1,kr()}}function kr(){Tr||=wr.then(Pr)}function Ar(e){M(e)?xr.push(...e):Sr&&e.id===-1?Sr.splice(Cr+1,0,e):e.flags&1||(xr.push(e),e.flags|=1),kr()}function jr(e,t,n=br+1){for(;n<yr.length;n++){let t=yr[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;yr.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Mr(e){if(xr.length){let e=[...new Set(xr)].sort((e,t)=>Nr(e)-Nr(t));if(xr.length=0,Sr){Sr.push(...e);return}for(Sr=e,Cr=0;Cr<Sr.length;Cr++){let e=Sr[Cr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Sr=null,Cr=0}}var Nr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pr(e){try{for(br=0;br<yr.length;br++){let e=yr[br];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;br<yr.length;br++){let e=yr[br];e&&(e.flags&=-2)}br=-1,yr.length=0,Mr(e),Tr=null,(yr.length||xr.length)&&Pr(e)}}var Fr,Ir=[];function Lr(e,t){Fr=e,Fr?(Fr.enabled=!0,Ir.forEach(({event:e,args:t})=>Fr.emit(e,...t)),Ir=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{Lr(e,t)}),setTimeout(()=>{Fr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ir=[])},3e3)):Ir=[]}var Rr=null,zr=null;function Br(e){let t=Rr;return Rr=e,zr=e&&e.type.__scopeId||null,t}function Vr(e){zr=e}function Hr(){zr=null}var Ur=e=>H;function H(e,t=Rr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&zs(-1);let i=Br(t),a=Fs.length,o;try{o=e(...n)}finally{for(let e=Fs.length;e>a;e--)Ls();Br(i),r._d&&zs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Wr(e,t){if(Rr===null)return e;let n=wc(Rr),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=k]=t[e];i&&(N(i)&&(i={mounted:i,updated:i}),i.deep&&cr(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Gr(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&&(kt(),gr(c,n,8,[e.el,s,e,t]),At())}}function Kr(e,t){if(oc){let n=oc.provides,r=oc.parent&&oc.parent.provides;r===n&&(n=oc.provides=Object.create(r)),n[e]=t}}function qr(e,t,n=!1){let r=sc();if(r||Oo){let i=Oo?Oo._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&&N(t)?t.call(r&&r.proxy):t}}function Jr(){return!!(sc()||Oo)}var Yr=Symbol.for(`v-scx`),Xr=()=>qr(Yr);function Zr(e,t){return ei(e,null,t)}function Qr(e,t){return ei(e,null,{flush:`post`})}function $r(e,t){return ei(e,null,{flush:`sync`})}function U(e,t,n){return ei(e,t,n)}function ei(e,t,n=k){let{immediate:r,deep:i,flush:a,once:o}=n,s=A({},n),c=t&&r||!t&&a!==`post`,l;if(pc){if(a===`sync`){let e=Xr();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=de,e.resume=de,e.pause=de,e}}let u=oc;s.call=(e,t,n)=>gr(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{ss(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Or(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=sr(e,t,s);return pc&&(l?l.push(f):c&&f()),f}function ti(e,t,n){let r=this.proxy,i=P(e)?e.includes(`.`)?ni(r,e):()=>r[e]:e.bind(r,r),a;N(t)?a=t:(a=t.handler,n=t);let o=uc(this),s=ei(i,a.bind(r),n);return o(),s}function ni(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 ri=new WeakMap,ii=Symbol(`_vte`),ai=e=>e.__isTeleport,oi=e=>e&&(e.disabled||e.disabled===``),si=e=>e&&(e.defer||e.defer===``),ci=e=>typeof SVGElement<`u`&&e instanceof SVGElement,li=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ui=(e,t)=>{let n=e&&e.to;return P(n)?t?t(n):null:n},di={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=oi(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=oi(e.props),r=e.target=ui(e.props,m),a=gi(r,e,h,p);r&&(o!==`svg`&&ci(r)?o=`svg`:o!==`mathml`&&li(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),hi(e,!1)))},S=e=>{let t=()=>{ri.get(e)===t&&(ri.delete(e),oi(e.props)&&(b(e,_(e.el)||n,e.anchor),hi(e,!0)),x(e))};ri.set(e,t),ss(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),si(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),hi(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=ri.get(e);if(u){u.flags|=8,ri.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=oi(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||ci(p)?o=`svg`:(o===`mathml`||li(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),ms(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):fi(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ui(t.props,m);e&&(t.target=e,fi(t,e,null,l,0))}else g&&fi(t,p,h,l,1);hi(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=oi(f),m=a||!p,h=ri.get(e);if(h&&(h.flags|=8,ri.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:fi,hydrate:pi};function fi(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),!ri.has(e)&&(!d||oi(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function pi(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=ui(t.props,c),h=oi(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||gi(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||gi(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),hi(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var mi=di;function hi(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 gi(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[ii]=o,e&&(r(a,e,i),r(o,e,i)),o}var _i=Symbol(`_leaveCb`),vi=Symbol(`_enterCb`);function yi(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Sa(()=>{e.isMounted=!0}),Ta(()=>{e.isUnmounting=!0}),e}var bi=[Function,Array],xi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bi,onEnter:bi,onAfterEnter:bi,onEnterCancelled:bi,onBeforeLeave:bi,onLeave:bi,onAfterLeave:bi,onLeaveCancelled:bi,onBeforeAppear:bi,onAppear:bi,onAfterAppear:bi,onAppearCancelled:bi},Si=e=>{let t=e.subTree;return t.component?Si(t.component):t},Ci={name:`BaseTransition`,props:xi,setup(e,{slots:t}){let n=sc(),r=yi();return()=>{let i=t.default&&ji(t.default(),!0),a=i&&i.length?wi(i):n.subTree?Zs():void 0;if(!a)return;let o=z(e),{mode:s}=o;if(r.isLeaving)return Oi(a);let c=ki(a);if(!c)return Oi(a);let l=Di(c,o,r,n,e=>l=e);c.type!==Ns&&Ai(c,l);let u=n.subTree&&ki(n.subTree);if(u&&u.type!==Ns&&!Hs(u,c)&&Si(n).type!==Ns){let e=Di(u,o,r,n);if(Ai(u,e),s===`out-in`&&c.type!==Ns)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Oi(a);s===`in-out`&&c.type!==Ns?e.delayLeave=(e,t,n)=>{let i=Ei(r,u);i[String(u.key)]=u,e[_i]=()=>{t(),e[_i]=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 wi(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ns){t=n;break}}return t}var Ti=Ci;function Ei(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Di(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=Ei(n,e),S=(e,t)=>{e&&gr(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),M(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[_i]&&t[_i](!0);let i=x[b];i&&Hs(e,i)&&i.el[_i]&&i.el[_i](),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[vi]=e=>{s||(s=!0,S(e?o:i,[t]),w.delayedLeave&&w.delayedLeave(),t[vi]=void 0)};let c=t[vi].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[vi]&&t[vi](!0),n.isUnmounting)return r();S(f,[t]);let a=!1;t[_i]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[_i]=void 0,x[i]===e&&delete x[i])};let o=t[_i].bind(null,!1);x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=Di(e,t,n,r,i);return i&&i(a),a}};return w}function Oi(e){if(ua(e))return e=Js(e),e.children=null,e}function ki(e){if(!ua(e))return ai(e.type)&&e.children?wi(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&&N(n.default))return n.default()}}function Ai(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ai(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 ji(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(ji(o.children,t,s))):(t||o.type!==Ns)&&r.push(s==null?o:Js(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function W(e,t){return N(e)?A({name:e.name},t,{setup:e}):e}function Mi(){let e=sc();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Ni(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Pi(e){let t=sc(),n=Rn(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 Fi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Ii=new WeakMap;function Li(e,t,n,r,i=!1){if(M(e)){e.forEach((e,a)=>Li(e,t&&(M(t)?t[a]:t),n,r,i));return}if(sa(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Li(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?wc(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=z(d),p=d===k?fe:e=>Fi(u,e)?!1:j(f,e),m=(e,t)=>!(t&&Fi(u,t));if(l!=null&&l!==c){if(Ri(t),P(l))u[l]=null,p(l)&&(d[l]=null);else if(Ln(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(N(c))hr(c,s,12,[o,u]);else{let t=P(c),r=Ln(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)M(n)&&he(n,a);else if(M(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(),Ii.delete(e)};t.id=-1,Ii.set(e,t),ss(t,n)}else Ri(e),s()}}}function Ri(e){let t=Ii.get(e);t&&(t.flags|=8,Ii.delete(e))}var zi=!1,Bi=()=>{zi||=(console.error(`Hydration completed but contains mismatches.`),!0)},Vi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Hi=e=>e.namespaceURI.includes(`MathML`),Ui=e=>{if(e.nodeType===1){if(Vi(e))return`svg`;if(Hi(e))return`mathml`}},Wi=e=>e.nodeType===8;function Gi(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),Mr(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Mr(),t._vnode=e},d=(n,r,s,l,u,y=!1)=>{y||=!!r.dynamicChildren;let b=Wi(n)&&n.data===`[`,x=()=>h(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:ee}=r,T=n.nodeType;r.el=n,ee===-2&&(y=!1,r.dynamicChildren=null);let E=null;switch(S){case Ms:T===3?(n.data!==r.children&&(Bi(),n.data=r.children),E=a(n)):r.children===``?(c(r.el=i(``),o(n),n),E=n):E=x();break;case Ns:v(n)?(E=a(n),_(r.el=n.content.firstChild,n,s)):E=T!==8||b?x():a(n);break;case Ps:if(b&&(n=a(n),T=n.nodeType),T===1||T===3){E=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.nodeType===1?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=a(E);return b?a(E):E}else x();break;case K:E=b?m(n,r,s,l,u,y):x();break;default:if(w&1)E=(T!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!v(n)?x():f(n,r,s,l,u,y);else if(w&6){r.slotScopeIds=u;let e=o(n);if(E=b?g(n):Wi(n)&&n.data===`teleport start`?g(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,Ui(e),y),sa(r)&&!r.type.__asyncResolved){let t;b?(t=Z(K),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?Ys(``):Z(`div`),t.el=n,r.component.subTree=t}}else w&64?E=T===8?r.type.hydrate(n,r,s,l,u,y,e,p):x():w&128&&(E=r.type.hydrate(n,r,s,l,Ui(o(n)),u,y,e,d))}return C!=null&&Li(C,null,l,r),E},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&&Gr(t,null,n,`created`);let c=!1;if(v(e)){c=ps(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&&!Ji(e,1)&&Bi();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
+ `)&&(Ji(e,0)||Bi(),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`)||pe(a)&&!Oe(a)||a[0]===`.`||t&&!Oe(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&&An(u.style))for(let e in u.style)u.style[e]}let b;(b=u&&u.onVnodeBeforeMount)&&nc(b,n,t),m&&Gr(t,null,n,`beforeMount`),((b=u&&u.onVnodeMounted)||m||c)&&ks(()=>{b&&nc(b,n,t),c&&h.enter(e),m&&Gr(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]=Qs(f[t]),g=h.type===Ms;e?(g&&!u&&t+1<p&&Qs(f[t+1]).type===Ms&&(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,Ji(r,1)||Bi()),n(null,h,r,null,o,s,Ui(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&&Wi(f)&&f.data===`]`?a(t.anchor=f):(Bi(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(Xi(e,t)||Bi(),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,Ui(d),c),r&&(r.vnode.el=t.el,Ho(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Wi(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 Ki=`data-allow-mismatch`,qi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ji(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ki);)e=e.parentElement;return Yi(e&&e.getAttribute(Ki),t)}function Yi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(qi[t])}}function Xi(e,t){return Ji(e.parentElement,1)||Zi(e)||Qi(t)}function Zi(e){return e.nodeType===1&&Yi(e.getAttribute(Ki),1)}function Qi({props:e}){let t=e&&e[Ki];return typeof t==`string`&&Yi(t,1)}var $i=Be().requestIdleCallback||(e=>setTimeout(e,1)),ea=Be().cancelIdleCallback||(e=>clearTimeout(e)),ta=(e=1e4)=>t=>{let n=$i(t,{timeout:e});return()=>ea(n)};function na(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 ra=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(na(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},ia=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},aa=(e=[])=>(t,n)=>{P(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 oa(e,t){if(Wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Wi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var sa=e=>!!e.type.__asyncLoader;function ca(e){N(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 W({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=>oa(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=oc;if(Ni(e),u)return()=>la(u,e);let t=t=>{l=null,_r(t,e,13,!r)};if(s&&e.suspense||pc)return p().then(t=>()=>la(t,e)).catch(e=>(t(e),()=>r?Z(r,{error:e}):null));let a=B(!1),c=B(),d=B(!!i),f,m;return Ea(()=>{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&&ua(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return la(u,e);if(c.value&&r)return Z(r,{error:c.value});if(n&&!d.value)return la(n,e)}}})}function la(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 ua=e=>e.type.__isKeepAlive,da={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=sc(),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),ss(()=>{a.isDeactivated=!1,a.a&&Fe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&nc(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;_s(t.m),_s(t.a),l(e,f,null,1,s),ss(()=>{t.da&&Fe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&nc(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){_a(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Tc(sa(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Hs(t,o))?p(t):o&&_a(o),i.delete(e),a.delete(e)}U(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>fa(e,t)),t&&m(e=>!fa(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ys(n.subTree.type)?ss(()=>{i.set(g,va(n.subTree))},n.subTree.suspense):i.set(g,va(n.subTree)))};return Sa(_),wa(_),Ta(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=va(t);if(e.type===i.type&&e.key===i.key){_a(i);let e=i.component.da;e&&ss(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(!Vs(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=va(r);if(s.type===Ns)return o=null,s;let c=s.type,l=Tc(sa(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!fa(u,l))||d&&l&&fa(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=Js(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Ai(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,ys(r.type)?r:s}}};function fa(e,t){return M(e)?e.some(e=>fa(e,t)):P(e)?e.split(`,`).includes(t):be(e)?(e.lastIndex=0,e.test(t)):!1}function pa(e,t){ha(e,`a`,t)}function ma(e,t){ha(e,`da`,t)}function ha(e,t,n=oc){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ya(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ua(e.parent.vnode)&&ga(r,t,n,e),e=e.parent}}function ga(e,t,n,r){let i=ya(t,e,r,!0);Ea(()=>{he(r[t],i)},n)}function _a(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function va(e){return e.shapeFlag&128?e.ssContent:e}function ya(e,t,n=oc,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{kt();let i=uc(n),a=gr(t,n,e,r);return i(),At(),a};return r?i.unshift(a):i.push(a),a}}var ba=e=>(t,n=oc)=>{(!pc||e===`sp`)&&ya(e,(...e)=>t(...e),n)},xa=ba(`bm`),Sa=ba(`m`),Ca=ba(`bu`),wa=ba(`u`),Ta=ba(`bum`),Ea=ba(`um`),Da=ba(`sp`),Oa=ba(`rtg`),ka=ba(`rtc`);function Aa(e,t=oc){ya(`ec`,e,t)}var ja=`components`,Ma=`directives`;function Na(e,t){return La(ja,e,!0,t)||e}var Pa=Symbol.for(`v-ndc`);function Fa(e){return P(e)?La(ja,e,!1)||e:e||Pa}function Ia(e){return La(Ma,e)}function La(e,t,n=!0,r=!1){let i=Rr||oc;if(i){let n=i.type;if(e===ja){let e=Tc(n,!1);if(e&&(e===t||e===I(t)||e===Me(I(t))))return n}let a=Ra(i[e]||n[e],t)||Ra(i.appContext[e],t);return!a&&r?n:a}}function Ra(e,t){return e&&(e[t]||e[I(t)]||e[Me(I(t))])}function za(e,t,n,r){let i,a=n&&n[r],o=M(e);if(o||P(e)){let n=o&&An(e),r=!1,s=!1;n&&(r=!Mn(e),s=jn(e),e=Wt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?In(Fn(e[n])):Fn(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(F(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 Ba(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(M(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 G(e,t,n={},r,i,a){if(Rr.ce||Rr.parent&&sa(Rr.parent)&&Rr.parent.ce){let e=a!=null&&n.key==null?A({},n,{key:a}):n,i=Object.keys(e).length>0;return t!==`default`&&(e.name=t),q(),Y(K,null,[Z(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=Fs.length;q();let c;try{let i=o&&Va(o(n)),s=n.key||a||i&&i.key;c=Y(K,{key:(s&&!xe(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Fs.length;e>s;e--)Ls();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Va(e){return e.some(e=>Vs(e)?!(e.type===Ns||e.type===K&&!Va(e.children)):!0)?e:null}function Ha(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ne(r)]=e[r];return n}var Ua=e=>e?fc(e)?wc(e):Ua(e.parent):null,Wa=A(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=>Ua(e.parent),$root:e=>Ua(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ho(e),$forceUpdate:e=>e.f||=()=>{Or(e.update)},$nextTick:e=>e.n||=Er.bind(e.proxy),$watch:e=>ti.bind(e)}),Ga=(e,t)=>e!==k&&!e.__isScriptSetup&&j(e,t),Ka={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(Ga(r,t))return o[t]=1,r[t];else if(i!==k&&j(i,t))return o[t]=2,i[t];else if(j(a,t))return o[t]=3,a[t];else if(n!==k&&j(n,t))return o[t]=4,n[t];else lo&&(o[t]=0)}let l=Wa[t],u,d;if(l)return t===`$attrs`&&Bt(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==k&&j(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,j(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Ga(i,t)?(i[t]=n,!0):r!==k&&j(r,t)?(r[t]=n,!0):j(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]!==`$`&&j(e,s)||Ga(t,s)||j(a,s)||j(r,s)||j(Wa,s)||j(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?j(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},qa=A({},Ka,{get(e,t){if(t!==Symbol.unscopables)return Ka.get(e,t,e)},has(e,t){return t[0]!==`_`&&!Ve(t)}});function Ja(){return null}function Ya(){return null}function Xa(e){}function Za(e){}function Qa(){return null}function $a(){}function eo(e,t){return null}function to(){return ro(`useSlots`).slots}function no(){return ro(`useAttrs`).attrs}function ro(e){let t=sc();return t.setupContext||=Cc(t)}function io(e){return M(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ao(e,t){let n=io(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?M(r)||N(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 oo(e,t){return!e||!t?e||t:M(e)&&M(t)?e.concat(t):A({},io(e),io(t))}function so(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function co(e){let t=sc(),n=pc,r=e();dc(),n&&lc(!1);let i=()=>{uc(t),n&&lc(!0)},a=()=>{sc()!==t&&t.scope.off(),dc(),n&&lc(!1)};return Se(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var lo=!0;function uo(e){let t=ho(e),n=e.proxy,r=e.ctx;lo=!1,t.beforeCreate&&po(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:w,serverPrefetch:ee,expose:T,inheritAttrs:E,components:te,directives:ne,filters:D}=t;if(l&&fo(l,r,null),o)for(let e in o){let t=o[e];N(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);F(t)&&(e.data=Tn(t))}if(lo=!0,a)for(let e in a){let t=a[e],i=Q({get:N(t)?t.bind(n,n):N(t.get)?t.get.bind(n,n):de,set:!N(t)&&N(t.set)?t.set.bind(n):de});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)mo(s[e],r,n,e);if(c){let e=N(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Kr(t,e[t])})}u&&po(u,e,`c`);function re(e,t){M(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(re(xa,d),re(Sa,f),re(Ca,p),re(wa,m),re(pa,h),re(ma,g),re(Aa,w),re(ka,S),re(Oa,C),re(Ta,v),re(Ea,b),re(Da,ee),M(T))if(T.length){let t=e.exposed||={};T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};x&&e.render===de&&(e.render=x),E!=null&&(e.inheritAttrs=E),te&&(e.components=te),ne&&(e.directives=ne),ee&&Ni(e)}function fo(e,t,n=de){M(e)&&(e=bo(e));for(let n in e){let r=e[n],i;i=F(r)?`default`in r?qr(r.from||n,r.default,!0):qr(r.from||n):qr(r),Ln(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function po(e,t,n){gr(M(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function mo(e,t,n,r){let i=r.includes(`.`)?ni(n,r):()=>n[r];if(P(e)){let n=t[e];N(n)&&U(i,n)}else if(N(e))U(i,e.bind(n));else if(F(e))if(M(e))e.forEach(e=>mo(e,t,n,r));else{let r=N(e.handler)?e.handler.bind(n):t[e.handler];N(r)&&U(i,r,e)}}function ho(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=>go(c,e,o,!0)),go(c,t,o)),F(t)&&a.set(t,c),c}function go(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&go(e,a,n,!0),i&&i.forEach(t=>go(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=_o[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var _o={data:vo,props:Co,emits:Co,methods:So,computed:So,beforeCreate:xo,created:xo,beforeMount:xo,mounted:xo,beforeUpdate:xo,updated:xo,beforeDestroy:xo,beforeUnmount:xo,destroyed:xo,unmounted:xo,activated:xo,deactivated:xo,errorCaptured:xo,serverPrefetch:xo,components:So,directives:So,watch:wo,provide:vo,inject:yo};function vo(e,t){return t?e?function(){return A(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function yo(e,t){return So(bo(e),bo(t))}function bo(e){if(M(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xo(e,t){return e?[...new Set([].concat(e,t))]:t}function So(e,t){return e?A(Object.create(null),e,t):t}function Co(e,t){return e?M(e)&&M(t)?[...new Set([...e,...t])]:A(Object.create(null),io(e),io(t??{})):t}function wo(e,t){if(!e)return t;if(!t)return e;let n=A(Object.create(null),e);for(let r in t)n[r]=xo(e[r],t[r]);return n}function To(){return{app:null,config:{isNativeTag:fe,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 Eo=0;function Do(e,t){return function(n,r=null){N(n)||(n=A({},n)),r!=null&&!F(r)&&(r=null);let i=To(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Eo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:jc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&N(e.install)?(a.add(e),e.install(c,...t)):N(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,wc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(gr(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=Oo;Oo=c;try{return e()}finally{Oo=t}}};return c}}var Oo=null;function ko(e,t,n=k){let r=sc(),i=I(t),a=L(t),o=Ao(e,i),s=Kn((o,s)=>{let c,l=k,u;return $r(()=>{let t=e[i];Pe(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(!Pe(o,c)&&!(l!==k&&Pe(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),Pe(e,l)&&(Pe(e,o)&&!Pe(o,u)||f&&l!==k&&!Pe(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 Ao=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${I(t)}Modifiers`]||e[`${L(t)}Modifiers`];function jo(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||k,i=n,a=t.startsWith(`update:`),o=a&&Ao(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>P(e)?e.trim():e)),o.number&&(i=n.map(Le)));let s,c=r[s=Ne(t)]||r[s=Ne(I(t))];!c&&a&&(c=r[s=Ne(L(t))]),c&&gr(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,gr(l,e,6,i)}}var Mo=new WeakMap;function No(e,t,n=!1){let r=n?Mo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!N(e)){let r=e=>{let n=No(e,t,!0);n&&(s=!0,A(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(F(e)&&r.set(e,null),null):(M(a)?a.forEach(e=>o[e]=null):A(o,a),F(e)&&r.set(e,o),o)}function Po(e,t){return!e||!pe(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),j(e,t[0].toLowerCase()+t.slice(1))||j(e,L(t))||j(e,t))}function Fo(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=Br(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Qs(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Qs(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Lo(s)}}catch(t){Fs.length=0,_r(t,e,1),_=Z(Ns)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(me)&&(v=Ro(v,a)),y=Js(y,v,!1,!0))}return n.dirs&&(y=Js(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Ai(y,n.transition),_=y,Br(g),_}function Io(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Vs(r)){if(r.type!==Ns||r.children===`v-if`){if(n)return;n=r}}else return}return n}var Lo=e=>{let t;for(let n in e)(n===`class`||n===`style`||pe(n))&&((t||={})[n]=e[n]);return t},Ro=(e,t)=>{let n={};for(let r in e)(!me(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zo(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?Bo(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Vo(o,r,n)&&!Po(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Bo(r,o,l):!0:!!o;return!1}function Bo(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(Vo(t,e,a)&&!Po(n,a))return!0}return!1}function Vo(e,t,n){let r=e[n],i=t[n];return n===`style`&&F(r)&&F(i)?!$e(r,i):r!==i}function Ho({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 Uo={},Wo=()=>Object.create(Uo),Go=e=>Object.getPrototypeOf(e)===Uo;function Ko(e,t,n,r=!1){let i={},a=Wo();e.propsDefaults=Object.create(null),Jo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:En(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function qo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=z(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(Po(e.emitsOptions,o))continue;let u=t[o];if(c)if(j(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=I(o);i[t]=Yo(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Jo(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!j(t,a)&&((r=L(a))===a||!j(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Yo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!j(t,e))&&(delete a[e],l=!0)}l&&Vt(e.attrs,`set`,``)}function Jo(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(Oe(c))continue;let l=t[c],u;i&&j(i,u=I(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Po(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=z(n),r=s||k;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Yo(i,t,s,r[s],e,!j(r,s))}}return o}function Yo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=j(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&N(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=uc(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===L(n))&&(r=!0))}return r}var Xo=new WeakMap;function Zo(e,t,n=!1){let r=n?Xo:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!N(e)){let r=e=>{c=!0;let[n,r]=Zo(e,t,!0);A(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 F(e)&&r.set(e,ue),ue;if(M(a))for(let e=0;e<a.length;e++){let t=I(a[e]);Qo(t)&&(o[t]=k)}else if(a)for(let e in a){let t=I(e);if(Qo(t)){let n=a[e],r=o[t]=M(n)||N(n)?{type:n}:A({},n),i=r.type,c=!1,l=!0;if(M(i))for(let e=0;e<i.length;++e){let t=i[e],n=N(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=N(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||j(r,`default`))&&s.push(t)}}let l=[o,s];return F(e)&&r.set(e,l),l}function Qo(e){return e[0]!==`$`&&!Oe(e)}var $o=e=>e===`_`||e===`_ctx`||e===`$stable`,es=e=>M(e)?e.map(Qs):[Qs(e)],ts=(e,t,n)=>{if(t._n)return t;let r=H((...e)=>es(t(...e)),n);return r._c=!1,r},ns=(e,t,n)=>{let r=e._ctx;for(let n in e){if($o(n))continue;let i=e[n];if(N(i))t[n]=ts(n,i,r);else if(i!=null){let e=es(i);t[n]=()=>e}}},rs=(e,t)=>{let n=es(t);e.slots.default=()=>n},is=(e,t,n)=>{for(let r in t)(n||!$o(r))&&(e[r]=t[r])},as=(e,t,n)=>{let r=e.slots=Wo();if(e.vnode.shapeFlag&32){let e=t._;e?(is(r,t,n),n&&Ie(r,`_`,e,!0)):ns(t,r)}else t&&rs(e,t)},os=(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:is(i,t,n):(a=!t.$stable,ns(t,i)),o=t}else t&&(rs(e,t),o={default:1});if(a)for(let e in i)!$o(e)&&o[e]==null&&delete i[e]},ss=ks;function cs(e){return us(e)}function ls(e){return us(e,Gi)}function us(e,t){let n=Be();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=de,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&&!Hs(e,t)&&(r=he(e),O(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 Ms:g(e,t,n,r);break;case Ns:_(e,t,n,r);break;case Ps:e??v(t,n,r,o);break;case K:te(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?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,M)}u!=null&&i?Li(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Li(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(),ee(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&&w(e.children,f,null,i,s,ds(e,c),l,d),_&&Gr(e,null,i,`created`),C(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!Oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&nc(p,i,e)}_&&Gr(e,null,i,`beforeMount`);let v=ps(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&ss(()=>{try{p&&nc(p,i,e),v&&g.enter(f),_&&Gr(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||ys(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;C(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},w=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)h(null,e[l]=s?$s(e[l]):Qs(e[l]),t,n,r,i,a,o,s)},ee=(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&&fs(n,!1),(h=m.onVnodeBeforeUpdate)&&nc(h,n,t,e),f&&Gr(t,e,n,`beforeUpdate`),n&&fs(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?T(e.dynamicChildren,d,c,n,r,ds(t,i),o):s||oe(e,t,c,null,n,r,ds(t,i),o,!1),l>0){if(l&16)E(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&&E(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&ss(()=>{h&&nc(h,n,t,e),f&&Gr(t,e,n,`updated`)},r)},T=(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||!Hs(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},E=(e,t,n,r,i)=>{if(t!==n){if(t!==k)for(let o in t)!Oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(Oe(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)}},te=(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),w(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(T(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&ms(e,t,!0)):oe(e,t,n,f,a,o,c,l,u)},ne=(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):D(t,n,r,i,a,o,c):re(e,t,c)},D=(e,t,n,r,i,a,o)=>{let s=e.component=ac(e,r,i);if(ua(e)&&(s.ctx.renderer=M),mc(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=Z(Ns);_(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},re=(e,t,n)=>{let r=t.component=e.component;if(zo(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ie=(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=gs(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{ss(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;fs(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&Fe(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&nc(f,s,t,c),fs(e,!0);let p=Fo(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),he(m),e,i,a),t.el=p.el,u===null&&Ho(e,p.el),r&&ss(r,i),(f=t.props&&t.props.onVnodeUpdated)&&ss(()=>nc(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=sa(t);if(fs(e,!1),l&&Fe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&nc(o,d,t),fs(e,!0),s&&ve){let t=()=>{e.subTree=Fo(e),ve(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=Fo(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&ss(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ss(()=>nc(o,d,e),i)}(t.shapeFlag&256||d&&sa(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ss(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ft(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=()=>Or(u),fs(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,qo(e,t.props,r,n),os(e,t.children,n),kt(),jr(e),At()},oe=(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&&A(l,i,a),f!==l&&u(n,f)):d&16?m&16?ce(l,f,n,r,i,a,o,s,c):A(l,i,a,!0):(d&8&&u(n,``),m&16&&w(f,n,r,i,a,o,s,c))},se=(e,t,n,r,i,a,o,s,c)=>{e||=ue,t||=ue;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?$s(t[f]):Qs(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?A(e,i,a,!0,!1,d):w(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?$s(t[l]):Qs(t[l]);if(Hs(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?$s(t[f]):Qs(t[f]);if(Hs(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?$s(t[l]):Qs(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)O(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?$s(t[l]):Qs(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){O(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&Hs(r,t[_])){u=_;break}u===void 0?O(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?hs(S):ue;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||vs(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,M);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===Ps){y(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.persisted&&!s[_i]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),ss(()=>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[_i];s._isLeaving&&s[_i](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},O=(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&&(kt(),Li(s,null,n,e,!0),At()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!sa(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&nc(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Gr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,M,r):l&&!l.hasOnce&&(a!==K||d>0&&d&64)?A(l,t,n,!1,!0):(a===K&&d&384||!i&&u&16)&&A(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ss(()=>{_&&nc(_,t,e),h&&Gr(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===K){pe(n,r);return}if(t===Ps){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()},pe=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;_s(c),_s(l),r&&Fe(r),i.stop(),a&&(a.flags|=8,O(o,e,t,n)),s&&ss(s,t),ss(()=>{e.isUnmounted=!0},t)},A=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)O(e[o],t,n,r,i)},he=e=>{if(e.shapeFlag&6)return he(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[ii];return n?f(n):t},ge=!1,j=(e,t,n)=>{let r;e==null?t._vnode&&(O(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ge||=(ge=!0,jr(r),Mr(),!1)},M={p:h,um:O,m:le,r:fe,mt:D,mc:w,pc:oe,pbc:T,n:he,o:e},_e,ve;return t&&([_e,ve]=t(M)),{render:j,hydrate:_e,createApp:Do(j,_e)}}function ds({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 fs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ps(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ms(e,t,n=!1){let r=e.children,i=t.children;if(M(r)&&M(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]=$s(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&ms(t,a)),a.type===Ms&&(a.patchFlag===-1&&(a=i[e]=$s(a)),a.el=t.el),a.type===Ns&&!a.el&&(a.el=t.el)}}function hs(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 gs(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gs(t)}function _s(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vs(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?vs(t.subTree):null}var ys=e=>e.__isSuspense,bs=0,xs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Cs(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}ws(e,t,n,r,i,o,s,c,l)}},hydrate:Es,normalize:Ds};function Ss(e,t){let n=e.props&&e.props[t];N(n)&&n()}function Cs(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ts(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?(Ss(e,`onPending`),Ss(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),As(f,e.ssFallback)):f.resolve(!1,!0)}function ws(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,Hs(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),As(d,p)))):(d.pendingId=bs++,_?(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),As(d,p))):m&&Hs(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&&Hs(m,f))c(m,f,n,r,i,d,a,o,s),As(d,f);else if(Ss(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=bs++,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 Ts(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=js(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?Re(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:bs++,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),Ar(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&&ss(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,As(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&&Ar(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Ss(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Ss(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),As(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=>{_r(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;dc(),e.asyncResolved=!0;let{vnode:s}=e;gc(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)),Ho(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 Es(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ts(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 Ds(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Os(r?n.default:n),e.ssFallback=r?Os(n.fallback):Z(Ns)}function Os(e){let t;if(N(e)){let n=Rs&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=Is,Ls())}return M(e)&&(e=Io(e)),e=Qs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ks(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Ar(e)}function As(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,Ho(r,i))}function js(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var K=Symbol.for(`v-fgt`),Ms=Symbol.for(`v-txt`),Ns=Symbol.for(`v-cmt`),Ps=Symbol.for(`v-stc`),Fs=[],Is=null;function q(e=!1){Fs.push(Is=e?null:[])}function Ls(){Fs.pop(),Is=Fs[Fs.length-1]||null}var Rs=1;function zs(e,t=!1){Rs+=e,e<0&&Is&&t&&(Is.hasOnce=!0)}function Bs(e){return e.dynamicChildren=Rs>0?Is||ue:null,Ls(),Rs>0&&Is&&Is.push(e),e}function J(e,t,n,r,i,a){return Bs(X(e,t,n,r,i,a,!0))}function Y(e,t,n,r,i){return Bs(Z(e,t,n,r,i,!0))}function Vs(e){return e?e.__v_isVNode===!0:!1}function Hs(e,t){return e.type===t.type&&e.key===t.key}function Us(e){}var Ws=({key:e})=>e??null,Gs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:P(e)||Ln(e)||N(e)?{i:Rr,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&&Ws(t),ref:t&&Gs(t),scopeId:zr,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:Rr};return s?(ec(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=P(n)?8:16),Rs>0&&!o&&Is&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Is.push(c),c}var Z=Ks;function Ks(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Pa)&&(e=Ns),Vs(e)){let r=Js(e,t,!0);return n&&ec(r,n),Rs>0&&!a&&Is&&(r.shapeFlag&6?Is[Is.indexOf(e)]=r:Is.push(r)),r.patchFlag=-2,r}if(Ec(e)&&(e=e.__vccOpts),t){t=qs(t);let{class:e,style:n}=t;e&&!P(e)&&(t.class=qe(e)),F(n)&&(Nn(n)&&!M(n)&&(n=A({},n)),t.style=He(n))}let o=P(e)?1:ys(e)?128:ai(e)?64:F(e)?4:N(e)?2:0;return X(e,t,n,r,i,o,a,!0)}function qs(e){return e?Nn(e)||Go(e)?A({},e):e:null}function Js(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?tc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ws(l),ref:t&&t.ref?n&&a?M(a)?a.concat(Gs(t)):[a,Gs(t)]:Gs(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&&Js(e.ssContent),ssFallback:e.ssFallback&&Js(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Ai(u,c.clone(u)),u}function Ys(e=` `,t=0){return Z(Ms,null,e,t)}function Xs(e,t){let n=Z(Ps,null,e);return n.staticCount=t,n}function Zs(e=``,t=!1){return t?(q(),Y(Ns,null,e)):Z(Ns,null,e)}function Qs(e){return e==null||typeof e==`boolean`?Z(Ns):M(e)?Z(K,null,e.slice()):Vs(e)?$s(e):Z(Ms,null,String(e))}function $s(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Js(e)}function ec(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),ec(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Go(t)?t._ctx=Rr:r===3&&Rr&&(Rr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(N(t)){if(r&65){ec(e,{default:t});return}t={default:t,_ctx:Rr},n=32}else t=String(t),r&64?(n=16,t=[Ys(t)]):n=8;e.children=t,e.shapeFlag|=n}function tc(...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=qe([t.class,r.class]));else if(e===`style`)t.style=He([t.style,r.style]);else if(pe(e)){let n=t[e],i=r[e];i&&n!==i&&!(M(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!me(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function nc(e,t,n,r=null){gr(e,t,7,[n,r])}var rc=To(),ic=0;function ac(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||rc,a={uid:ic++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ot(!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:Zo(r,i),emitsOptions:No(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=jo.bind(null,a),e.ce&&e.ce(a),a}var oc=null,sc=()=>oc||Rr,cc,lc;{let e=Be(),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)}};cc=t(`__VUE_INSTANCE_SETTERS__`,e=>oc=e),lc=t(`__VUE_SSR_SETTERS__`,e=>pc=e)}var uc=e=>{let t=oc;return cc(e),e.scope.on(),()=>{e.scope.off(),cc(t)}},dc=()=>{oc&&oc.scope.off(),cc(null)};function fc(e){return e.vnode.shapeFlag&4}var pc=!1;function mc(e,t=!1,n=!1){t&&lc(t);let{props:r,children:i}=e.vnode,a=fc(e);Ko(e,r,a,t),as(e,i,n||t);let o=a?hc(e,t):void 0;return t&&lc(!1),o}function hc(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ka);let{setup:r}=n;if(r){kt();let n=e.setupContext=r.length>1?Cc(e):null,i=uc(e),a=hr(r,e,0,[e.props,n]),o=Se(a);if(At(),i(),(o||e.sp)&&!sa(e)&&Ni(e),o){if(a.then(dc,dc),t)return a.then(n=>{gc(e,n,t)}).catch(t=>{_r(t,e,0)});e.asyncDep=a}else gc(e,a,t)}else xc(e,t)}function gc(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:F(t)&&(e.setupState=Wn(t)),xc(e,n)}var _c,vc;function yc(e){_c=e,vc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qa))}}var bc=()=>!_c;function xc(e,t,n){let r=e.type;if(!e.render){if(!t&&_c&&!r.render){let t=r.template||ho(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=A(A({isCustomElement:n,delimiters:a},i),o);r.render=_c(t,s)}}e.render=r.render||de,vc&&vc(e)}{let t=uc(e);kt();try{uo(e)}finally{At(),t()}}}var Sc={get(e,t){return Bt(e,`get`,``),e[t]}};function Cc(e){return{attrs:new Proxy(e.attrs,Sc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function wc(e){return e.exposed?e.exposeProxy||=new Proxy(Wn(Pn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wa)return Wa[n](e)},has(e,t){return t in e||t in Wa}}):e.proxy}function Tc(e,t=!0){return N(e)?e.displayName||e.name:e.name||t&&e.__name}function Ec(e){return N(e)&&`__vccOpts`in e}var Q=(e,t)=>$n(e,t,pc);function Dc(e,t,n){try{zs(-1);let r=arguments.length;return r===2?F(t)&&!M(t)?Vs(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vs(n)&&(n=[n]),Z(e,t,n))}finally{zs(1)}}function Oc(){return;function e(t,n,r){let i=t[r];if(M(i)&&i.includes(n)||F(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function kc(e,t,n,r){let i=n[r];if(i&&Ac(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Ac(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(Pe(n[e],t[e]))return!1;return Rs>0&&Is&&Is.push(e),!0}var jc=`3.5.40`,Mc=de,Nc=mr,Pc=Fr,Fc=Lr,Ic={createComponentInstance:ac,setupComponent:mc,renderComponentRoot:Fo,setCurrentRenderingInstance:Br,isVNode:Vs,normalizeVNode:Qs,getComponentPublicInstance:wc,ensureValidVNode:Va,pushWarningContext:ur,popWarningContext:dr},Lc=void 0,Rc=typeof window<`u`&&window.trustedTypes;if(Rc)try{Lc=Rc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var zc=Lc?e=>Lc.createHTML(e):e=>e,Bc=`http://www.w3.org/2000/svg`,Vc=`http://www.w3.org/1998/Math/MathML`,Hc=typeof document<`u`?document:null,Uc=Hc&&Hc.createElement(`template`),Wc={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`?Hc.createElementNS(Bc,e):t===`mathml`?Hc.createElementNS(Vc,e):n?Hc.createElement(e,{is:n}):Hc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Hc.createTextNode(e),createComment:e=>Hc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hc.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{Uc.innerHTML=zc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Uc.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]}},Gc=`transition`,Kc=`animation`,qc=Symbol(`_vtc`),Jc={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},Yc=A({},xi,Jc),Xc=(e=>(e.displayName=`Transition`,e.props=Yc,e))((e,{slots:t})=>Dc(Ti,$c(e),t)),Zc=(e,t=[])=>{M(e)?e.forEach(e=>e(...t)):e&&e(...t)},Qc=e=>e?M(e)?e.some(e=>e.length>1):e.length>1:!1;function $c(e){let t={};for(let n in e)n in Jc||(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=el(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,rl(e,t?u:s),rl(e,t?l:o),n&&n()},T=(e,t)=>{e._isLeaving=!1,rl(e,d),rl(e,p),rl(e,f),t&&t()},E=e=>(t,n)=>{let i=e?C:v,o=()=>ee(t,e,n);Zc(i,[t,o]),il(()=>{rl(t,e?c:a),nl(t,e?u:s),Qc(i)||ol(t,r,h,o)})};return A(t,{onBeforeEnter(e){Zc(_,[e]),nl(e,a),nl(e,o)},onBeforeAppear(e){Zc(S,[e]),nl(e,c),nl(e,l)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>T(e,t);nl(e,d),e._enterCancelled?(nl(e,f),ul(e)):(ul(e),nl(e,f)),il(()=>{e._isLeaving&&(rl(e,d),nl(e,p),Qc(b)||ol(e,r,g,n))}),Zc(b,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),Zc(y,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),Zc(w,[e])},onLeaveCancelled(e){T(e),Zc(x,[e])}})}function el(e){if(e==null)return null;if(F(e))return[tl(e.enter),tl(e.leave)];{let t=tl(e);return[t,t]}}function tl(e){return Re(e)}function nl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[qc]||(e[qc]=new Set)).add(t)}function rl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[qc];n&&(n.delete(t),n.size||(e[qc]=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var al=0;function ol(e,t,n,r){let i=e._endId=++al,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=sl(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 sl(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Gc}Delay`),a=r(`${Gc}Duration`),o=cl(i,a),s=r(`${Kc}Delay`),c=r(`${Kc}Duration`),l=cl(s,c),u=null,d=0,f=0;t===Gc?o>0&&(u=Gc,d=o,f=a.length):t===Kc?l>0&&(u=Kc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Gc:Kc:null,f=u?u===Gc?a.length:c.length:0);let p=u===Gc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Gc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function cl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ll(t)+ll(e[n])))}function ll(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function ul(e){return(e?e.ownerDocument:document).body.offsetHeight}function dl(e,t,n){let r=e[qc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var fl=Symbol(`_vod`),pl=Symbol(`_vsh`),ml={name:`show`,beforeMount(e,{value:t},{transition:n}){e[fl]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):hl(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),hl(e,!0),r.enter(e)):r.leave(e,()=>{hl(e,!1)}):hl(e,t))},beforeUnmount(e,{value:t}){hl(e,t)}};function hl(e,t){e.style.display=t?e[fl]:`none`,e[pl]=!t}function gl(){ml.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var _l=Symbol(``);function vl(e){let t=sc();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>bl(e,n))},r=()=>{let r=e(t.proxy);t.ce?bl(t.ce,r):yl(t.subTree,r),n(r)};Ca(()=>{Ar(r)}),Sa(()=>{U(r,de,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Ea(()=>e.disconnect())})}function yl(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{yl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)bl(e.el,t);else if(e.type===K)e.children.forEach(e=>yl(e,t));else if(e.type===Ps){let{el:n,anchor:r}=e;for(;n&&(bl(n,t),n!==r);)n=n.nextSibling}}function bl(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=it(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[_l]=r}}var xl=/(?:^|;)\s*display\s*:/;function Sl(e,t,n){let r=e.style,i=P(n),a=!1;if(n&&!i){if(t)if(P(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??wl(r,t,``)}else for(let e in t)n[e]??wl(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?wl(r,i,``):Ol(e,i,!P(t)&&t?t[i]:void 0,o)||wl(r,i,o)}}else if(i){if(t!==n){let e=r[_l];e&&(n+=`;`+e),r.cssText=n,a=xl.test(n)}}else t&&e.removeAttribute(`style`);fl in e&&(e[fl]=a?r.display:``,e[pl]&&(r.display=`none`))}var Cl=/\s*!important$/;function wl(e,t,n){if(M(n))n.forEach(n=>wl(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Dl(e,t);Cl.test(n)?e.setProperty(L(r),n.replace(Cl,``),`important`):e[r]=n}}var Tl=[`Webkit`,`Moz`,`ms`],El={};function Dl(e,t){let n=El[t];if(n)return n;let r=I(t);if(r!==`filter`&&r in e)return El[t]=r;r=Me(r);for(let n=0;n<Tl.length;n++){let i=Tl[n]+r;if(i in e)return El[t]=i}return t}function Ol(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&P(r)&&n===r}var kl=`http://www.w3.org/1999/xlink`;function Al(e,t,n,r,i,a=Xe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(kl,t.slice(6,t.length)):e.setAttributeNS(kl,t,n):n==null||a&&!Ze(n)?e.removeAttribute(t):e.setAttribute(t,a?``:xe(n)?String(n):n)}function jl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?zc(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=Ze(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 Ml(e,t,n,r){e.addEventListener(t,n,r)}function Nl(e,t,n,r){e.removeEventListener(t,n,r)}var Pl=Symbol(`_vei`);function Fl(e,t,n,r,i=null){let a=e[Pl]||(e[Pl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Rl(t);r?Ml(e,n,a[t]=Hl(r,i),s):o&&(Nl(e,n,o,s),a[t]=void 0)}}var Il=/(Once|Passive|Capture)$/,Ll=/^on:?(?:Once|Passive|Capture)$/;function Rl(e){let t,n;for(;(n=e.match(Il))&&!Ll.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):L(e.slice(2)),t]}var zl=0,Bl=Promise.resolve(),Vl=()=>zl||=(Bl.then(()=>zl=0),Date.now());function Hl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(M(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&&gr(e,t,5,a)}}else gr(r,t,5,[e])};return n.value=e,n.attached=Vl(),n}var Ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?dl(e,r,o):t===`style`?Sl(e,n,r):pe(t)?me(t)||Fl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Gl(e,t,r,o))?(jl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Al(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Kl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!P(r)))?jl(e,I(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Al(e,t,r,o))};function Gl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ul(t)&&N(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 Ul(t)&&P(n)?!1:t in e}function Kl(e,t){let n=e._def.props;if(!n)return!1;let r=I(t);return Array.isArray(n)?n.some(e=>I(e)===r):Object.keys(n).some(e=>I(e)===r)}var ql={};function Jl(e,t,n){let r=W(e,t);Ee(r)&&(r=A({},r,t));class i extends Zl{constructor(e){super(r,e,n)}}return i.def=r,i}var Yl=((e,t)=>Jl(e,t,Vu)),Xl=typeof HTMLElement<`u`?HTMLElement:class{},Zl=class e extends Xl{constructor(e,t={},n=Bu){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!==Bu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(A({},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,Er(()=>{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&&!M(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=Re(this._props[e])),(i||=Object.create(null))[I(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)j(this,e)||Object.defineProperty(this,e,{get:()=>V(t[e])})}_resolveProps(e){let{props:t}=e,n=M(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(I))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):ql,r=I(e);t&&this._numberProps&&this._numberProps[r]&&(n=Re(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===ql?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(L(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(L(e),t+``):t||this.removeAttribute(L(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Ru(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Z(this._def,A(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,Ee(t[0])?A({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(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 Ql(e){let t=sc();return t&&t.ce||null}function $l(){let e=Ql();return e&&e.shadowRoot}function eu(e=`$style`){{let t=sc();if(!t)return k;let n=t.type.__cssModules;return n&&n[e]||k}}var tu=new WeakMap,nu=new WeakMap,ru=Symbol(`_moveCb`),iu=Symbol(`_enterCb`),au=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:A({},Yc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=sc(),r=yi(),i,a;return wa(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!uu(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(ou),i.forEach(su);let r=i.filter(cu);ul(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;nl(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[ru]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[ru]=null,rl(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=z(e),s=$c(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[pl]&&(i.push(t),Ai(t,Di(t,s,r,n)),tu.set(t,lu(t.el)))}a=t.default?ji(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Ai(t,Di(t,s,r,n))}return Z(c,null,a)}}});function ou(e){let t=e.el;t[ru]&&t[ru](),t[iu]&&t[iu]()}function su(e){nu.set(e,lu(e.el))}function cu(e){let t=tu.get(e),n=nu.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 lu(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function uu(e,t,n){let r=e.cloneNode(),i=e[qc];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}=sl(r);return a.removeChild(r),o}var du=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return M(t)?e=>Fe(t,e):t};function fu(e){e.target.composing=!0}function pu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var mu=Symbol(`_assign`);function hu(e,t,n){return t&&(e=e.trim()),n&&(e=Le(e)),e}var gu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[mu]=du(i);let a=r||i.props&&i.props.type===`number`;Ml(e,t?`change`:`input`,t=>{t.target.composing||e[mu](hu(e.value,n,a))}),(n||a)&&Ml(e,`change`,()=>{e.value=hu(e.value,n,a)}),t||(Ml(e,`compositionstart`,fu),Ml(e,`compositionend`,pu),Ml(e,`change`,pu))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[mu]=du(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Le(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)}},_u={deep:!0,created(e,t,n){e[mu]=du(n),Ml(e,`change`,()=>{let t=e._modelValue,n=Su(e),r=e.checked,i=e[mu];if(M(t)){let e=et(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(ve(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Cu(e,r))})},mounted:vu,beforeUpdate(e,t,n){e[mu]=du(n),vu(e,t,n)}};function vu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(M(t))i=et(t,r.props.value)>-1;else if(ve(t))i=t.has(r.props.value);else{if(t===n)return;i=$e(t,Cu(e,!0))}e.checked!==i&&(e.checked=i)}var yu={created(e,{value:t},n){e.checked=$e(t,n.props.value),e[mu]=du(n),Ml(e,`change`,()=>{e[mu](Su(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[mu]=du(r),t!==n&&(e.checked=$e(t,r.props.value))}},bu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Ml(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Le(Su(e)):Su(e));e[mu](e.multiple?ve(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,Er(()=>{e._assigning=!1})}),e[mu]=du(r)},mounted(e,{value:t}){xu(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[mu]=du(n)},updated(e,{value:t}){e._assigning||xu(e,t)}};function xu(e,t){let n=e.multiple,r=M(t);if(!(n&&!r&&!ve(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Su(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=et(t,o)>-1}else a.selected=t.has(o);else if($e(Su(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Su(e){return`_value`in e?e._value:e.value}function Cu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var wu={created(e,t,n){Eu(e,t,n,null,`created`)},mounted(e,t,n){Eu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Eu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Eu(e,t,n,r,`updated`)}};function Tu(e,t){switch(e){case`SELECT`:return bu;case`TEXTAREA`:return gu;default:switch(t){case`checkbox`:return _u;case`radio`:return yu;default:return gu}}}function Eu(e,t,n,r,i){let a=Tu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Du(){gu.getSSRProps=({value:e})=>({value:e}),yu.getSSRProps=({value:e},t)=>{if(t.props&&$e(t.props.value,e))return{checked:!0}},_u.getSSRProps=({value:e},t)=>{if(M(e)){if(t.props&&et(e,t.props.value)>-1)return{checked:!0}}else if(ve(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},wu.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Tu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Ou=[`ctrl`,`shift`,`alt`,`meta`],ku={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)=>Ou.some(n=>e[`${n}Key`]&&!t.includes(n))},Au=(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=ku[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},ju={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Mu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=L(n.key);if(t.some(e=>e===r||ju[e]===r))return e(n)}))},Nu=A({patchProp:Wl},Wc),Pu,Fu=!1;function Iu(){return Pu||=cs(Nu)}function Lu(){return Pu=Fu?Pu:ls(Nu),Fu=!0,Pu}var Ru=((...e)=>{Iu().render(...e)}),zu=((...e)=>{Lu().hydrate(...e)}),Bu=((...e)=>{let t=Iu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Uu(e);if(!r)return;let i=t._component;!N(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Hu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Vu=((...e)=>{let t=Lu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Uu(e);if(t)return n(t,!0,Hu(t))},t});function Hu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Uu(e){return P(e)?document.querySelector(e):e}var Wu=!1,Gu=()=>{Wu||(Wu=!0,Du(),gl())},Ku=D({BaseTransition:()=>Ti,BaseTransitionPropsValidators:()=>xi,Comment:()=>Ns,DeprecationTypes:()=>null,EffectScope:()=>ot,ErrorCodes:()=>pr,ErrorTypeStrings:()=>Nc,Fragment:()=>K,KeepAlive:()=>da,ReactiveEffect:()=>ft,Static:()=>Ps,Suspense:()=>xs,Teleport:()=>mi,Text:()=>Ms,TrackOpTypes:()=>er,Transition:()=>Xc,TransitionGroup:()=>au,TriggerOpTypes:()=>tr,VueElement:()=>Zl,assertNumber:()=>fr,callWithAsyncErrorHandling:()=>gr,callWithErrorHandling:()=>hr,camelize:()=>I,capitalize:()=>Me,cloneVNode:()=>Js,compatUtils:()=>null,compile:()=>qu,computed:()=>Q,createApp:()=>Bu,createBlock:()=>Y,createCommentVNode:()=>Zs,createElementBlock:()=>J,createElementVNode:()=>X,createHydrationRenderer:()=>ls,createPropsRestProxy:()=>so,createRenderer:()=>cs,createSSRApp:()=>Vu,createSlots:()=>Ba,createStaticVNode:()=>Xs,createTextVNode:()=>Ys,createVNode:()=>Z,customRef:()=>Kn,defineAsyncComponent:()=>ca,defineComponent:()=>W,defineCustomElement:()=>Jl,defineEmits:()=>Ya,defineExpose:()=>Xa,defineModel:()=>$a,defineOptions:()=>Za,defineProps:()=>Ja,defineSSRCustomElement:()=>Yl,defineSlots:()=>Qa,devtools:()=>Pc,effect:()=>Tt,effectScope:()=>st,getCurrentInstance:()=>sc,getCurrentScope:()=>ct,getCurrentWatcher:()=>ar,getTransitionRawChildren:()=>ji,guardReactiveProps:()=>qs,h:()=>Dc,handleError:()=>_r,hasInjectionContext:()=>Jr,hydrate:()=>zu,hydrateOnIdle:()=>ta,hydrateOnInteraction:()=>aa,hydrateOnMediaQuery:()=>ia,hydrateOnVisible:()=>ra,initCustomFormatter:()=>Oc,initDirectivesForSSR:()=>Gu,inject:()=>qr,isMemoSame:()=>Ac,isProxy:()=>Nn,isReactive:()=>An,isReadonly:()=>jn,isRef:()=>Ln,isRuntimeOnly:()=>bc,isShallow:()=>Mn,isVNode:()=>Vs,markRaw:()=>Pn,mergeDefaults:()=>ao,mergeModels:()=>oo,mergeProps:()=>tc,nextTick:()=>Er,nodeOps:()=>Wc,normalizeClass:()=>qe,normalizeProps:()=>Je,normalizeStyle:()=>He,onActivated:()=>pa,onBeforeMount:()=>xa,onBeforeUnmount:()=>Ta,onBeforeUpdate:()=>Ca,onDeactivated:()=>ma,onErrorCaptured:()=>Aa,onMounted:()=>Sa,onRenderTracked:()=>ka,onRenderTriggered:()=>Oa,onScopeDispose:()=>lt,onServerPrefetch:()=>Da,onUnmounted:()=>Ea,onUpdated:()=>wa,onWatcherCleanup:()=>or,openBlock:()=>q,patchProp:()=>Wl,popScopeId:()=>Hr,provide:()=>Kr,proxyRefs:()=>Wn,pushScopeId:()=>Vr,queuePostFlushCb:()=>Ar,reactive:()=>Tn,readonly:()=>Dn,ref:()=>B,registerRuntimeCompiler:()=>yc,render:()=>Ru,renderList:()=>za,renderSlot:()=>G,resolveComponent:()=>Na,resolveDirective:()=>Ia,resolveDynamicComponent:()=>Fa,resolveFilter:()=>null,resolveTransitionHooks:()=>Di,setBlockTracking:()=>zs,setDevtoolsHook:()=>Fc,setTransitionHooks:()=>Ai,shallowReactive:()=>En,shallowReadonly:()=>On,shallowRef:()=>Rn,ssrContextKey:()=>Yr,ssrUtils:()=>Ic,stop:()=>Et,toDisplayString:()=>R,toHandlerKey:()=>Ne,toHandlers:()=>Ha,toRaw:()=>z,toRef:()=>Xn,toRefs:()=>qn,toValue:()=>Hn,transformVNodeArgs:()=>Us,triggerRef:()=>Vn,unref:()=>V,useAttrs:()=>no,useCssModule:()=>eu,useCssVars:()=>vl,useHost:()=>Ql,useId:()=>Mi,useModel:()=>ko,useSSRContext:()=>Xr,useShadowRoot:()=>$l,useSlots:()=>to,useTemplateRef:()=>Pi,useTransitionState:()=>yi,vModelCheckbox:()=>_u,vModelDynamic:()=>wu,vModelRadio:()=>yu,vModelSelect:()=>bu,vModelText:()=>gu,vShow:()=>ml,version:()=>jc,warn:()=>Mc,watch:()=>U,watchEffect:()=>Zr,watchPostEffect:()=>Qr,watchSyncEffect:()=>$r,withAsyncContext:()=>co,withCtx:()=>H,withDefaults:()=>eo,withDirectives:()=>Wr,withKeys:()=>Mu,withMemo:()=>kc,withModifiers:()=>Au,withScopeId:()=>Ur}),qu=()=>{},Ju=typeof window<`u`,Yu,Xu=e=>Yu=e,Zu=Symbol();function Qu(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var $u=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 ed(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 td(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){od(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function nd(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function rd(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 id=typeof navigator==`object`?navigator:{userAgent:``},ad=/Macintosh/.test(id.userAgent)&&/AppleWebKit/.test(id.userAgent)&&!/Safari/.test(id.userAgent),od=Ju?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ad?sd:`msSaveOrOpenBlob`in id?cd:ld:()=>{};function sd(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?rd(r):nd(r.href)?td(e,t,n):(r.target=`_blank`,rd(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){rd(r)},0))}function cd(e,t=`download`,n){if(typeof e==`string`)if(nd(e))td(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){rd(t)})}else navigator.msSaveOrOpenBlob(ed(e,n),t)}function ld(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return td(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String($u.HTMLElement))||`safari`in $u,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ad)&&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:ud}=Object;function dd(){let e=st(!0),t=e.run(()=>B({})),n=[],r=[],i=Pn({install(e){Xu(i),i._a=e,e.provide(Zu,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 fd=()=>{};function pd(e,t,n,r=fd){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ct()&&lt(i),i}function md(e,...t){e.forEach(e=>{e(...t)})}var hd=e=>e(),gd=Symbol(),_d=Symbol();function vd(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];Qu(i)&&Qu(r)&&Object.hasOwn(e,n)&&!Ln(r)&&!An(r)?e[n]=vd(i,r):e[n]=r}return e}var yd=Symbol();function bd(e){return!e||typeof e!=`object`||!Object.hasOwn(e,yd)}var{assign:xd}=Object;function Sd(e){return!!(Ln(e)&&e.effect)}function Cd(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():{}),xd(qn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Pn(Q(()=>{Xu(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=wd(e,l,t,n,r,!0),c}function wd(e,t,n={},r,i,a){let o,s=xd({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}):(vd(r.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:void 0});let i=m=Symbol();Er().then(()=>{m===i&&(l=!0)}),u=!0,md(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{xd(e,t)})}:fd;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(gd in t)return t[_d]=n,t;let i=function(){Xu(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}md(f,{args:n,name:i[_d],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw md(o,e),e}return l instanceof Promise?l.then(e=>(md(a,e),e)).catch(e=>(md(o,e),Promise.reject(e))):(md(a,l),l)};return i[gd]=!0,i[_d]=n,i},y=Tn({_p:r,$id:e,$onAction:pd.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){if(d.has(t))return fd;let i=pd(d,t,n.detached,()=>a()),a=o.run(()=>U(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:`direct`,events:void 0},r)},xd({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||hd)(()=>r._e.run(()=>(o=st()).run(()=>t({action:v}))));for(let t in b){let n=b[t];Ln(n)&&!Sd(n)||An(n)?a||(p&&bd(n)&&(Ln(n)?n.value=p[t]:vd(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return xd(y,b),xd(z(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{xd(t,e)})}}),r._p.forEach(e=>{xd(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 Td(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Jr();return n||=o?qr(Zu,null):null,n&&Xu(n),n=Yu,n._s.has(e)||(i?wd(e,t,r,n):Cd(e,r,n)),n._s.get(e)}return a.$id=e,a}function Ed(e){let t=z(e),n={};for(let r in t){let i=t[r];i?.effect?n[r]=Q({get:()=>e[r],set(t){e[r]=t}}):(Ln(i)||An(i))&&(n[r]=Xn(e,r))}return n}var Dd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Od=e=>e===``,kd=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ad=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),jd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Md=e=>{let t=jd(e);return t.charAt(0).toUpperCase()+t.slice(1)},Nd={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`},Pd=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:i,"stroke-width":a,size:o=Nd.width,color:s=Nd.stroke,...c},{slots:l})=>Dc(`svg`,{...Nd,...c,width:o,height:o,stroke:s,"stroke-width":Od(n)||Od(r)||n===!0||r===!0?Number(i||a||Nd[`stroke-width`])*24/Number(o):i||a||Nd[`stroke-width`],class:kd(`lucide`,c.class,...e?[`lucide-${Ad(Md(e))}-icon`,`lucide-${Ad(e)}`]:[`lucide-icon`]),...!l.default&&!Dd(c)&&{"aria-hidden":`true`}},[...t.map(e=>Dc(...e)),...l.default?[l.default()]:[]]),$=(e,t)=>(n,{slots:r,attrs:i})=>Dc(Pd,{...i,...n,iconNode:t,name:e},r),Fd=$(`align-center-horizontal`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4`,key:`11f1s0`}],[`path`,{d:`M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4`,key:`t14dx9`}],[`path`,{d:`M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1`,key:`1w07xs`}],[`path`,{d:`M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1`,key:`1apec2`}]]),Id=$(`align-center-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]),Ld=$(`align-end-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`2`,rx:`2`,key:`z5wdxg`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`9`,rx:`2`,key:`um7a8w`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}]]),Rd=$(`align-end-vertical`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`10wcwx`}],[`rect`,{width:`9`,height:`6`,x:`9`,y:`14`,rx:`2`,key:`4p5bwg`}],[`path`,{d:`M22 22V2`,key:`12ipfv`}]]),zd=$(`align-horizontal-distribute-center`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M17 22v-5`,key:`4b6g73`}],[`path`,{d:`M17 7V2`,key:`hnrr36`}],[`path`,{d:`M7 22v-3`,key:`1r4jpn`}],[`path`,{d:`M7 5V2`,key:`liy1u9`}]]),Bd=$(`align-horizontal-distribute-start`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M4 2v20`,key:`gtpd5x`}],[`path`,{d:`M14 2v20`,key:`tg6bpw`}]]),Vd=$(`align-horizontal-distribute-end`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M10 2v20`,key:`uyc634`}],[`path`,{d:`M20 2v20`,key:`1tx262`}]]),Hd=$(`align-horizontal-space-between`,[[`rect`,{width:`6`,height:`14`,x:`3`,y:`5`,rx:`2`,key:`j77dae`}],[`rect`,{width:`6`,height:`10`,x:`15`,y:`7`,rx:`2`,key:`bq30hj`}],[`path`,{d:`M3 2v20`,key:`1d2pfg`}],[`path`,{d:`M21 2v20`,key:`p059bm`}]]),Ud=$(`align-start-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`6`,rx:`2`,key:`1n4dg1`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`6`,rx:`2`,key:`17khns`}],[`path`,{d:`M22 2H2`,key:`fhrpnj`}]]),Wd=$(`align-start-vertical`,[[`rect`,{width:`9`,height:`6`,x:`6`,y:`14`,rx:`2`,key:`lpm2y7`}],[`rect`,{width:`16`,height:`6`,x:`6`,y:`4`,rx:`2`,key:`rdj6ps`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]),Gd=$(`align-vertical-distribute-center`,[[`path`,{d:`M22 17h-3`,key:`1lwga1`}],[`path`,{d:`M22 7h-5`,key:`o2endc`}],[`path`,{d:`M5 17H2`,key:`1gx9xc`}],[`path`,{d:`M7 7H2`,key:`6bq26l`}],[`rect`,{x:`5`,y:`14`,width:`14`,height:`6`,rx:`2`,key:`1qrzuf`}],[`rect`,{x:`7`,y:`4`,width:`10`,height:`6`,rx:`2`,key:`we8e9z`}]]),Kd=$(`align-vertical-distribute-end`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 20h20`,key:`owomy5`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),qd=$(`align-vertical-distribute-start`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M2 4h20`,key:`mda7wb`}]]),Jd=$(`align-vertical-space-between`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`15`,rx:`2`,key:`1w91an`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`3`,rx:`2`,key:`17wqzy`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M2 3h20`,key:`91anmk`}]]),Yd=$(`arrow-down-up`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]),Xd=$(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Zd=$(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Qd=$(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),$d=$(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ef=$(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),tf=$(`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`}]]),nf=$(`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`}]]),rf=$(`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`}]]),af=$(`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`}]]),of=$(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),sf=$(`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`}]]),cf=$(`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`}]]),lf=$(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),uf=$(`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`}]]),df=$(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),ff=$(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),pf=$(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),mf=$(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),hf=$(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),gf=$(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),_f=$(`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`}]]),vf=$(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),yf=$(`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`}]]),bf=$(`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`}]]),xf=$(`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`}]]),Sf=$(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Cf=$(`scaling`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M14 15H9v-5`,key:`pi4jk9`}],[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M21 3 9 15`,key:`15kdhq`}]]),wf=$(`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`}]]),Tf=$(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Ef=$(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Df=$(`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`}]]),Of=$(`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`}]]),kf=$(`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`}]]),Af=$(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]),jf=$(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Mf(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=qr(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=>(Kr(r,e),e)]}function Nf(){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}function Pf(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Ff(e){return e==null}function If(e,t){return ct()?(lt(e,t),!0):!1}function Lf(e){let t=!1,n,r=st(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var Rf=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var zf=e=>e!==void 0,Bf=Object.prototype.toString,Vf=e=>Bf.call(e)===`[object Object]`,Hf=Uf();function Uf(){var e,t;return Rf&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Wf(e){return Array.isArray(e)?e:[e]}function Gf(e){return e||sc()}function Kf(e){if(!Rf)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=st(!0),n=r.run(()=>e(...a))),If(i),n))}function qf(e){return Tn(Ln(e)?new Proxy({},{get(t,n,r){return V(Reflect.get(e.value,n,r))},set(t,n,r){return Ln(e.value[n])&&!Ln(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function Jf(e){return qf(Q(e))}function Yf(e,...t){let n=t.flat(),r=n[0];return Jf(()=>Object.fromEntries(typeof r==`function`?Object.entries(qn(e)).filter(([e,t])=>!r(Hn(t),e)):Object.entries(qn(e)).filter(e=>!n.includes(e[0]))))}function Xf(e,t=1e4){return Kn((n,r)=>{let i=Hn(e),a,o=()=>setTimeout(()=>{i=Hn(e),r()},Hn(t));return If(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Zf(e,t){Gf(t)&&Ta(e,t)}function Qf(e,t,n){return U(e,t,{...n,immediate:!0})}var $f=Rf?window:void 0;Rf&&window.document,Rf&&window.navigator,Rf&&window.location;function ep(e){let t=Hn(e);return t?.$el??t}function tp(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=Q(()=>{let t=Wf(Hn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Qf(()=>[n.value?.map(e=>ep(e))??[$f].filter(e=>e!=null),Wf(Hn(n.value?e[1]:e[0])),Wf(V(n.value?e[2]:e[1])),Hn(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Vf(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function np(){let e=Rn(!1),t=sc();return t&&Sa(()=>{e.value=!0},t),e}function rp(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ip(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=$f,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=rp(t);return tp(i,a,e=>{e.repeat&&Hn(s)||c(e)&&n(e)},o)}function ap(e){return JSON.parse(JSON.stringify(e))}function op(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=sc(),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):ap(e):e,g=()=>zf(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=B(g()),r=!1;return U(()=>e[t],e=>{r||(r=!0,n.value=h(e),Er(()=>r=!1))}),U(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}else return Q({get(){return g()},set(e){_(e)}})}function sp(e){return e?e.flatMap(e=>e.type===K?sp(e.children):[e]):[]}var cp=[`INPUT`,`TEXTAREA`];function lp(e,t,n,r={}){if(!t||r.enableIgnoredElement&&cp.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;return v||_?b=up(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function up(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;let i=e.indexOf(t),a;if(a=i===-1?n.goForward?0:e.length-1:n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;let o=e[(a+e.length)%e.length];return o?o.hasAttribute(`disabled`)&&o.getAttribute(`disabled`)!==`false`?up(e,o,n,r):o:null}var[dp,fp]=Mf(`ConfigProvider`);function pp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function mp(e,t,n=`.`,r){if(!pp(t))return mp(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:pp(a)&&pp(i[t])?i[t]=mp(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function hp(e){return(...t)=>t.reduce((t,n)=>mp(t,n,``,e),{})}var gp=hp(),_p=Kf(()=>{let e=B(new Map),t=B(),n=Q(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=dp({scrollBody:B(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,Hf&&i?.(),t.value=void 0};return U(n,(e,o)=>{if(!Rf)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?gp({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),Hf&&(i=tp(document,`touchmove`,e=>bp(e),{passive:!1})),Er(()=>{n.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function vp(e){let t=Math.random().toString(36).substring(2,7),n=_p();n.value.set(t,e??!1);let r=Q({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return Zf(()=>{n.value.delete(t)}),r}function yp(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:yp(t)}}function bp(e){let t=e||window.event,n=t.target;return n instanceof Element&&yp(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function xp(e){let t=dp({dir:B(`ltr`)});return Q(()=>e?.value||t.dir?.value||`ltr`)}function Sp(e){let t=sc(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[Ne(I(t))]=(...n)=>e(t,...n)}),r}var Cp=0;function wp(){Zr(e=>{if(!Rf)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??Tp()),document.body.insertAdjacentElement(`beforeend`,t[1]??Tp()),Cp++,e(()=>{Cp===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),Cp--})})}function Tp(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function Ep(){let e=sc(),t=B(),n=Q(()=>r());wa(()=>{n.value!==r()&&Vn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:ep(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}}function Dp(e){let t=sc(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=Xn(e);return Q(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[I(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function Op(e,t){let n=Dp(e),r=t?Sp(t):{};return Q(()=>({...n.value,...r}))}var kp=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ap=new WeakMap,jp=new WeakMap,Mp={},Np=0,Pp=function(e){return e&&(e.host||Pp(e.parentNode))},Fp=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Pp(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ip=function(e,t,n,r){var i=Fp(t,Array.isArray(e)?e:[e]);Mp[n]||(Mp[n]=new WeakMap);var a=Mp[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ap.get(e)||0)+1,l=(a.get(e)||0)+1;Ap.set(e,c),a.set(e,l),o.push(e),c===1&&i&&jp.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Np++,function(){o.forEach(function(e){var t=Ap.get(e)-1,i=a.get(e)-1;Ap.set(e,t),a.set(e,i),t||(jp.has(e)||e.removeAttribute(r),jp.delete(e)),i||e.removeAttribute(n)}),Np--,Np||(Ap=new WeakMap,Ap=new WeakMap,jp=new WeakMap,Mp={})}},Lp=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||kp(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ip(r,i,n,`aria-hidden`)):function(){return null}};function Rp(e){let t;U(()=>ep(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Lp(e):t&&t()}),Ea(()=>{t&&t()})}var zp=0;function Bp(e,t=`reka`){if(e)return e;let n,r=dp({useId:void 0});return n=r.useId?r.useId():`useId`in Ku?Mi?.():`${++zp}`,t?`${t}-${n}`:n}function Vp(e){let t=B(),n=Q(()=>t.value?.width??0),r=Q(()=>t.value?.height??0),i;return Sa(()=>{let n=ep(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),Ea(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function Hp(e,t){let n=B(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Up(e){let t=Xf(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=Nf(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=Gp(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Wp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Gp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Wp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Kp(e,t){let n=B({}),r=B(`none`),i=B(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??$f,{state:c,dispatch:l}=Hp(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(Rf){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};U(e,async(e,i)=>{let a=i!==e;if(await Er(),a){let a=r.value,o=qp(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=qp(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=qp(t.value))},p=U(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=U(c,()=>{let e=qp(t.value);r.value=c.value===`mounted`?e:`none`});return Ea(()=>{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 qp(e){return e&&getComputedStyle(e).animationName||`none`}var Jp=W({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=qn(e),a=B(),{isPresent:o}=Kp(r,a);n({present:o});let s=t.default({present:o.value});s=sp(s||[]);let c=sc();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?Dc(t.default({present:o.value})[0],{ref:e=>{let t=ep(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Yp=W({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=sp(n.default()),r=e.findIndex(e=>e.type!==Ns);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?tc(t,i.props):t,o=Js({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Xp=[`area`,`img`,`input`],Zp=W({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`&&Xp.includes(r)?()=>Dc(r,t):r===`template`?()=>Dc(Yp,t,{default:n.default}):()=>Dc(e.as,t,{default:n.default})}});function Qp(){let e=B();return{primitiveElement:e,currentElement:Q(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:ep(e))}}var $p=`dismissableLayer.pointerDownOutside`,em=`dismissableLayer.focusOutside`;function tm(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function nm(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=B(!1),a=B(()=>{});return Zr(o=>{if(!Rf||!Hn(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(tm(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){Pf($p,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{Hn(n)&&(i.value=!0)}}}function rm(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=B(!1);return Zr(a=>{if(!Rf||!Hn(n))return;let o=async n=>{if(!t?.value)return;await Er(),await Er();let r=n.target;!t.value||!r||tm(t.value,r)||n.target&&!i.value&&Pf(em,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{Hn(n)&&(i.value=!0)},onBlurCapture:()=>{Hn(n)&&(i.value=!1)}}}var im=Tn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),am=W({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Ep(),o=Q(()=>a.value?.ownerDocument??globalThis.document),s=Q(()=>im.layersRoot),c=Q(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=Q(()=>im.layersWithOutsidePointerEventsDisabled.size>0),u=Q(()=>{let e=Array.from(s.value),[t]=[...im.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=nm(async e=>{let t=[...im.branches].some(t=>t?.contains(e.target));!n.present||!u.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await Er(),e.defaultPrevented||r(`dismiss`))},a),f=rm(e=>{let t=[...im.branches].some(t=>t?.contains(e.target));!n.present||t||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return ip(`Escape`,e=>{n.present&&c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),U([a,()=>n.disableOutsidePointerEvents,()=>n.present],([e,t,n],r,i)=>{!e||!n||t&&(im.layersWithOutsidePointerEventsDisabled.size===0&&(im.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),im.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{im.layersWithOutsidePointerEventsDisabled.delete(e),im.layersWithOutsidePointerEventsDisabled.size===0&&!Ff(im.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=im.originalBodyPointerEvents)}))},{immediate:!0}),U([a,()=>n.present],([e,t],n,r)=>{!e||!t||(s.value.add(e),r(()=>{s.value.delete(e)}))},{immediate:!0}),Zr(e=>{e(()=>{a.value&&(s.value.delete(a.value),im.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(q(),Y(V(Zp),{ref:V(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:He({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:V(f).onFocusCapture,onBlurCapture:V(f).onBlurCapture,onPointerdownCapture:V(d).onPointerDownCapture},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),om=Lf(()=>B([]));function sm(){let e=om();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=cm(e.value,t),e.value.unshift(t)},remove(t){e.value=cm(e.value,t),e.value[0]?.resume()}}}function cm(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var lm=`focusScope.autoFocusOnMount`,um=`focusScope.autoFocusOnUnmount`,dm={bubbles:!1,cancelable:!0};function fm(e,{select:t=!1}={}){let n=Nf();for(let r of e)if(vm(r,{select:t}),Nf()!==n)return!0}function pm(e){let t=mm(e);return[hm(t,e),hm(t.reverse(),e)]}function mm(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hm(e,t){for(let n of e)if(!gm(n,{upTo:t}))return n}function gm(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function _m(e){return e instanceof HTMLInputElement&&`select`in e}function vm(e,{select:t=!1}={}){if(e&&e.focus){let n=Nf();e.focus({preventScroll:!0}),e!==n&&_m(e)&&t&&e.select()}}var ym=W({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=Ep(),o=B(null),s=sm(),c=Tn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Zr(e=>{if(!Rf)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:vm(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||vm(o.value,{select:!0}))}function s(e){let n=o.value;n!==null&&e.some(e=>e.removedNodes.length>0)&&(t.contains(n)||vm(t))}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})});function l(e,t){let n=new CustomEvent(lm,dm),i=e=>r(`mountAutoFocus`,e);e.addEventListener(lm,i),e.dispatchEvent(n),e.removeEventListener(lm,i),n.defaultPrevented||(fm(mm(e),{select:!0}),Nf()===t&&vm(e))}Zr(async e=>{let t=a.value;if(await Er(),!t)return;n.present!==!1&&s.add(c);let i=Nf();!t.contains(i)&&n.present!==!1&&l(t,i),e(()=>{let e=new CustomEvent(um,dm),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(um,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||vm(i??document.body,{select:!0}),t.removeEventListener(um,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),U(()=>n.present,async(e,t)=>{if(!Rf)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await Er();let n=a.value;if(!n)return;let r=Nf();n.contains(r)||l(n,r)});function u(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Nf();if(t&&r){let t=e.currentTarget,[i,a]=pm(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&vm(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&vm(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(q(),Y(V(Zp),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:u},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),bm=`menu.itemSelect`,xm=[`Enter`,` `],Sm=[`ArrowDown`,`PageUp`,`Home`],Cm=[`ArrowUp`,`PageDown`,`End`],wm=[...Sm,...Cm],Tm={ltr:[...xm,`ArrowRight`],rtl:[...xm,`ArrowLeft`]},Em={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]};function Dm(e){return e?`open`:`closed`}function Om(e){let t=Nf();for(let n of e)if(n===t||(n.focus(),Nf()!==t))return}function km(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function Am(e,t){return t?km({x:e.clientX,y:e.clientY},t):!1}function jm(e){return e.pointerType===`mouse`}var Mm=W({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=dp({}),r=Q(()=>t.to??n.teleportTo?.value??`body`),i=np();return(e,t)=>V(i)||e.forceMount?(q(),Y(mi,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[G(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):Zs(`v-if`,!0)}}),Nm=`data-reka-collection-item`;function Pm(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:B(),itemMap:B(new Map)},Kr(r,i)):i=qr(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${Nm}]`)),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=W({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Qp();return U(a,()=>{i.collectionRef.value=a.value}),()=>Dc(Yp,{ref:r,...n},t)}}),s=W({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Qp();return Zr(t=>{if(a.value){let n=Pn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Dc(Yp,{...n,[Nm]:``,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 Fm=`rovingFocusGroup.onEntryFocus`,Im={bubbles:!1,cancelable:!0};function Lm(e,t=!1){let n=Nf();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Nf()!==n))return}var[Rm,zm]=Mf(`PopperRoot`),Bm=W({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=B();return zm({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>G(e.$slots,`default`)}}),Vm=W({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Ep(),i=Rm();return Qr(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(q(),Y(V(Zp),{ref:V(n),as:e.as,"as-child":e.asChild},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function Hm(e){return e!==null}function Um(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Wm(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function Wm(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Gm=[`top`,`right`,`bottom`,`left`],Km=Math.min,qm=Math.max,Jm=Math.round,Ym=Math.floor,Xm=e=>({x:e,y:e}),Zm={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qm(e,t,n){return qm(e,Km(t,n))}function $m(e,t){return typeof e==`function`?e(t):e}function eh(e){return e.split(`-`)[0]}function th(e){return e.split(`-`)[1]}function nh(e){return e===`x`?`y`:`x`}function rh(e){return e===`y`?`height`:`width`}function ih(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ah(e){return nh(ih(e))}function oh(e,t,n){n===void 0&&(n=!1);let r=th(e),i=ah(e),a=rh(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=hh(o)),[o,hh(o)]}function sh(e){let t=hh(e);return[ch(e),t,ch(t)]}function ch(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var lh=[`left`,`right`],uh=[`right`,`left`],dh=[`top`,`bottom`],fh=[`bottom`,`top`];function ph(e,t,n){switch(e){case`top`:case`bottom`:return n?t?uh:lh:t?lh:uh;case`left`:case`right`:return t?dh:fh;default:return[]}}function mh(e,t,n,r){let i=th(e),a=ph(eh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ch)))),a}function hh(e){let t=eh(e);return Zm[t]+e.slice(t.length)}function gh(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function _h(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:gh(e)}function vh(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yh(e,t,n){let{reference:r,floating:i}=e,a=ih(t),o=ah(t),s=rh(o),c=eh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=th(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function bh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$m(t,e),p=_h(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=vh(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=vh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xh=50,Sh=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:bh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yh(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xh&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=yh(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ch=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$m(e,t)||{};if(l==null)return{};let d=_h(u),f={x:n,y:r},p=ah(i),m=rh(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,ee=C/2-h[m]/2-1,T=Km(d[_],ee),E=Km(d[v],ee),te=C-h[m]-E,ne=C/2-h[m]/2+w,D=Qm(T,ne,te),re=!c.arrow&&th(i)!=null&&ne!==D&&a.reference[m]/2-(ne<T?T:E)-h[m]/2<0,ie=re?ne<T?ne-T:ne-te:0;return{[p]:f[p]+ie,data:{[p]:D,centerOffset:ne-D-ie,...re&&{alignmentOffset:ie}},reset:re}}}),wh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$m(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=eh(r),_=ih(o),v=eh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[hh(o)]:sh(o)),x=p!==`none`;!d&&x&&b.push(...mh(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],ee=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=oh(r,a,y);w.push(C[e[0]],C[e[1]])}if(ee=[...ee,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==ih(t))||ee.every(e=>ih(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:ee},reset:{placement:t}};let n=ee.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=ee.filter(e=>{if(x){let t=ih(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Th(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eh(e){return Gm.some(t=>e[t]>=0)}var Dh=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$m(e,t);switch(i){case`referenceHidden`:{let e=Th(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Eh(e)}}}case`escaped`:{let e=Th(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Eh(e)}}}default:return{}}}}},Oh=new Set([`left`,`top`]);async function kh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=eh(n),s=th(n),c=ih(n)===`y`,l=Oh.has(o)?-1:1,u=a&&c?-1:1,d=$m(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ah=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await kh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},jh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$m(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ih(i),p=nh(f),m=u[p],h=u[f],g=(e,t)=>Qm(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Mh=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$m(e,t),u={x:n,y:r},d=ih(i),f=nh(d),p=u[f],m=u[d],h=$m(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Oh.has(eh(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Nh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=$m(e,t),c=await i.detectOverflow(t,s),l=eh(n),u=th(n),d=ih(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Km(p-c[m],g),y=Km(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*qm(c.left,c.right):S=p-2*qm(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ph(){return typeof window<`u`}function Fh(e){return Rh(e)?(e.nodeName||``).toLowerCase():`#document`}function Ih(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lh(e){return((Rh(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Rh(e){return Ph()?e instanceof Node||e instanceof Ih(e).Node:!1}function zh(e){return Ph()?e instanceof Element||e instanceof Ih(e).Element:!1}function Bh(e){return Ph()?e instanceof HTMLElement||e instanceof Ih(e).HTMLElement:!1}function Vh(e){return!Ph()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ih(e).ShadowRoot}function Hh(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$h(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Uh(e){return/^(table|td|th)$/.test(Fh(e))}function Wh(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Gh=/transform|translate|scale|rotate|perspective|filter/,Kh=/paint|layout|strict|content/,qh=e=>!!e&&e!==`none`,Jh;function Yh(e){let t=zh(e)?$h(e):e;return qh(t.transform)||qh(t.translate)||qh(t.scale)||qh(t.rotate)||qh(t.perspective)||!Zh()&&(qh(t.backdropFilter)||qh(t.filter))||Gh.test(t.willChange||``)||Kh.test(t.contain||``)}function Xh(e){let t=tg(e);for(;Bh(t)&&!Qh(t);){if(Yh(t))return t;if(Wh(t))return null;t=tg(t)}return null}function Zh(){return Jh??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Jh}function Qh(e){return/^(html|body|#document)$/.test(Fh(e))}function $h(e){return Ih(e).getComputedStyle(e)}function eg(e){return zh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tg(e){if(Fh(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Vh(e)&&e.host||Lh(e);return Vh(t)?t.host:t}function ng(e){let t=tg(e);return Qh(t)?(e.ownerDocument||e).body:Bh(t)&&Hh(t)?t:ng(t)}function rg(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ng(e),i=r===e.ownerDocument?.body,a=Ih(r);if(i){let e=ig(a);return t.concat(a,a.visualViewport||[],Hh(r)?r:[],e&&n?rg(e):[])}else return t.concat(r,rg(r,[],n))}function ig(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ag(e){let t=$h(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Bh(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Jm(n)!==a||Jm(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function og(e){return zh(e)?e:e.contextElement}function sg(e){let t=og(e);if(!Bh(t))return Xm(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ag(t),o=(a?Jm(n.width):n.width)/r,s=(a?Jm(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var cg=Xm(0);function lg(e){let t=Ih(e);return!Zh()||!t.visualViewport?cg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ug(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ih(e)}function dg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=og(e),o=Xm(1);t&&(r?zh(r)&&(o=sg(r)):o=sg(e));let s=ug(a,n,r)?lg(a):Xm(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ih(a),t=zh(r)?Ih(r):r,n=e,i=ig(n);for(;i&&t!==n;){let e=sg(i),t=i.getBoundingClientRect(),r=$h(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ih(i),i=ig(n)}}return vh({width:u,height:d,x:c,y:l})}function fg(e,t){let n=eg(e).scrollLeft;return t?t.left+n:dg(Lh(e)).left+n}function pg(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fg(e,n),y:n.top+t.scrollTop}}function mg(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Lh(r),s=t?Wh(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xm(1),u=Xm(0),d=Bh(r);if((d||!a)&&((Fh(r)!==`body`||Hh(o))&&(c=eg(r)),d)){let e=dg(r);l=sg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?pg(o,c):Xm(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hg(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function gg(e){let t=eg(e),n=e.ownerDocument.body,r=qm(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=qm(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+fg(e),o=-t.scrollTop;return $h(n).direction===`rtl`&&(a+=qm(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var _g=25;function vg(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ih(e),a=Lh(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Zh()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(fg(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=_g&&(s-=o)}return{width:s,height:c,x:l,y:u}}function yg(e,t){let n=dg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=sg(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bg(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=vg(e,n,t);else if(t===`document`)r=gg(Lh(e));else if(zh(t))r=yg(t,n);else{let n=lg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vh(r)}function xg(e,t){let n=t.get(e);if(n)return n;let r=rg(e,[],!1).filter(e=>zh(e)&&Fh(e)!==`body`),i=null,a=$h(e).position===`fixed`,o=a?tg(e):e;for(;zh(o)&&!Qh(o);){let e=$h(o),t=Yh(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=tg(o)}return t.set(e,r),r}function Sg(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wh(t)?[]:xg(t,this._c):[].concat(n),r],o=bg(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=bg(t,a[e],i);s=qm(n.top,s),c=Km(n.right,c),l=Km(n.bottom,l),u=qm(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Cg(e){let{width:t,height:n}=ag(e);return{width:t,height:n}}function wg(e,t,n){let r=Bh(t),i=Lh(t),a=n===`fixed`,o=dg(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xm(0);if((r||!a)&&((Fh(t)!==`body`||Hh(i))&&(s=eg(t)),r)){let e=dg(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=fg(i));let l=i&&!r&&!a?pg(i,s):Xm(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Tg(e){return $h(e).position===`static`}function Eg(e,t){if(!Bh(e)||$h(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Lh(e)===n&&(n=n.ownerDocument.body),n}function Dg(e,t){let n=Ih(e);if(Wh(e))return n;if(!Bh(e)){let t=tg(e);for(;t&&!Qh(t);){if(zh(t)&&!Tg(t))return t;t=tg(t)}return n}let r=Eg(e,t);for(;r&&Uh(r)&&Tg(r);)r=Eg(r,t);return r&&Qh(r)&&Tg(r)&&!Yh(r)?n:r||Xh(e)||n}var Og=async function(e){let t=this.getOffsetParent||Dg,n=this.getDimensions,r=await n(e.floating);return{reference:wg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kg(e){return $h(e).direction===`rtl`}var Ag={convertOffsetParentRelativeRectToViewportRelativeRect:mg,getDocumentElement:Lh,getClippingRect:Sg,getOffsetParent:Dg,getElementRects:Og,getClientRects:hg,getDimensions:Cg,getScale:sg,isElement:zh,isRTL:kg};function jg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mg(e,t,n){let r=null,i,a=Lh(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Ym(d),h=Ym(a.clientWidth-(u+f)),g=Ym(a.clientHeight-(d+p)),_=Ym(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qm(0,Km(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!jg(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ih(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ng(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=og(e),u=i||a?[...l?rg(l):[],...t?rg(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Mg(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?dg(e):null;c&&g();function g(){let t=dg(e);h&&!jg(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Pg=Ah,Fg=jh,Ig=wh,Lg=Nh,Rg=Dh,zg=Ch,Bg=Mh,Vg=(e,t,n)=>{let r=new Map,i=n??{},a={...Ag,...i.platform,_c:r};return Sh(e,t,{...i,platform:a})};function Hg(e){return typeof e==`object`&&!!e&&`$el`in e}function Ug(e){if(Hg(e)){let t=e.$el;return Rh(t)&&Fh(t)===`#comment`?null:t}return e}function Wg(e){return typeof e==`function`?e():V(e)}function Gg(e){return{name:`arrow`,options:e,fn(t){let n=Ug(Wg(e.element));return n==null?{}:zg({element:n,padding:e.padding}).fn(t)}}}function Kg(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qg(e,t){let n=Kg(e);return Math.round(t*n)/n}function Jg(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=Q(()=>Wg(n.open)??!0),a=Q(()=>Wg(n.middleware)),o=Q(()=>Wg(n.placement)??`bottom`),s=Q(()=>Wg(n.strategy)??`absolute`),c=Q(()=>Wg(n.transform)??!0),l=Q(()=>Ug(e.value)),u=Q(()=>Ug(t.value)),d=B(0),f=B(0),p=B(s.value),m=B(o.value),h=Rn({}),g=B(!1),_=Q(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=qg(u.value,d.value),n=qg(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Kg(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;Vg(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){if(b(),r===void 0){y();return}if(l.value!=null&&u.value!=null){v=r(l.value,u.value,y);return}}function S(){i.value||(g.value=!1)}return U([a,o,s,i],y,{flush:`sync`}),U([l,u],x,{flush:`sync`}),U(i,S,{flush:`sync`}),ct()&&lt(b),{x:On(d),y:On(f),strategy:On(p),placement:On(m),middlewareData:On(h),isPositioned:On(g),floatingStyles:_,update:y}}var Yg=[`dir`],Xg={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[Zg,Qg]=Mf(`PopperContent`),$g=W({inheritAttrs:!1,__name:`PopperContent`,props:ao({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Xg}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=Rm(),{forwardRef:a,currentElement:o}=Ep(),s=xp(Q(()=>n.dir)),c=B(),l=B(),{width:u,height:d}=Vp(l),f=Q(()=>n.side+(n.align===`center`?``:`-${n.align}`)),p=Q(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),m=Q(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=Q(()=>({padding:p.value,boundary:m.value.filter(Hm),altBoundary:m.value.length>0})),g=Q(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),_=Q(()=>[Pg({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Ig({...h.value,...g.value}),n.avoidCollisions&&Fg({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?Bg():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Ig({...h.value,...g.value}),Lg({...h.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),l.value&&Gg({element:l.value,padding:n.arrowPadding}),Um({arrowWidth:u.value,arrowHeight:d.value,dir:s.value}),n.hideWhenDetached&&Rg({strategy:`referenceHidden`,...h.value})]),{floatingStyles:v,placement:y,isPositioned:b,middlewareData:x,update:S}=Jg(Q(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...e)=>Ng(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:_}),C=Q(()=>Wm(y.value)[0]),w=Q(()=>Wm(y.value)[1]);Qr(()=>{b.value&&r(`placed`)});let ee=Q(()=>{let e=x.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),T=B(``);return Zr(()=>{o.value&&(T.value=window.getComputedStyle(o.value).zIndex)}),Qg({placedSide:C,onArrowChange:e=>l.value=e,arrowX:Q(()=>x.value.arrow?.x??0),arrowY:Q(()=>x.value.arrow?.y??0),shouldHideArrow:ee}),(e,t)=>(q(),J(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,dir:V(s),style:He({...V(v),transform:V(b)?V(v).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:T.value,"--reka-popper-transform-origin":[V(x).transformOrigin?.x,V(x).transformOrigin?.y].join(` `),...V(x).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?kc([n.asChild,n.as,C.value,w.value,V(b),...Object.values(e.$attrs),...n.memoDependencies],()=>(q(),Y(V(Zp),tc({key:0,ref:V(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,style:{animation:V(b)?void 0:`none`}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(q(),Y(V(Zp),tc({key:1,ref:V(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":C.value,"data-align":w.value,dir:V(s),style:{animation:V(b)?void 0:`none`}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,Yg))}}),[e_,t_]=Mf(`RovingFocusGroup`),n_=W({__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}=qn(r),c=xp(s),l=op(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=B(!1),d=B(!1),f=B(0),{getItems:p,CollectionSlot:m}=Pm({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(Fm,Im);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Lm([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}),t_({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)=>(q(),Y(V(m),null,{default:H(()=>[Z(V(Zp),{tabindex:u.value||f.value===0?-1:0,"data-orientation":V(o),as:e.as,"as-child":e.asChild,dir:V(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),r_=W({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(q(),Y(V(Vm),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}});function i_(){let e=B(!1);return Sa(()=>{tp(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),tp([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}var a_=Kf(i_),[o_,s_]=Mf([`MenuRoot`,`MenuSub`],`MenuContext`),[c_,l_]=Mf(`MenuRoot`),u_=W({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=qn(n),o=xp(a),s=op(n,`open`,r),c=B(),l=a_();return s_({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),l_({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(q(),Y(V(Bm),null,{default:H(()=>[G(e.$slots,`default`)]),_:3}))}}),[d_,f_]=Mf(`MenuContent`),p_=W({__name:`MenuContentImpl`,props:ao({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Xg}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=o_(),a=c_(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=qn(n);wp(),vp(s.value);let l=B(``),u=B(0),d=B(0),f=B(null),p=B(`right`),m=B(0),h=B(null),g=B(),{forwardRef:_,currentElement:v}=Ep(),{handleTypeaheadSearch:y}=Up(),b=B();function x(e){let t=lp(e,b.value||Nf(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!1,attributeName:`[data-reka-collection-item]:not([data-disabled])`});t&&(b.value=t,t.scrollIntoView({block:`nearest`}))}function S(){b.value&&b.value.click()}let C=B(),w=B();U(b,e=>{if(w.value&&(e===void 0||e!==w.value.trigger.value)){if(e===void 0)return;w.value.onOpenChange(!1),w.value=void 0}}),U(v,e=>{i.onContentChange(e)}),Ea(()=>{window.clearTimeout(u.value)});function ee(e){return p.value===f.value?.side&&Am(e,f.value?.area)}async function T(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function E(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=[`input`,`textarea`].includes(t.tagName.toLowerCase()),i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1,s=lp(e,Nf(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(s)return s?.focus();if(e.code===`Space`)return;let l=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&a.modal.value&&e.preventDefault(),!i&&o&&!r&&y(e.key,l)),e.target!==v.value||!wm.includes(e.key))return;e.preventDefault();let u=[...l.map(e=>e.ref)];Cm.includes(e.key)&&u.reverse(),Om(u)}function te(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ne(e){if(!jm(e))return;let t=e.target,n=m.value!==e.clientX;(e?.currentTarget)?.contains(t)&&n&&(p.value=e.clientX>m.value?`right`:`left`,m.value=e.clientX)}function D(e){jm(e)&&C.value&&C.value.focus()}return f_({onItemEnter:e=>!!ee(e),onItemLeave:e=>ee(e)?!0:([`INPUT`,`TEXTAREA`].includes(Nf()?.tagName||``)||v.value?.focus(),h.value=null,!1),onTriggerLeave:e=>!!ee(e),searchRef:l,highlightedElement:b,onKeydownNavigation:x,onKeydownEnter:S,filterElement:C,onFilterElementChange:e=>{C.value=e},activeSubmenuContext:w,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(e,t)=>(q(),Y(V(ym),{"as-child":``,trapped:V(o),onMountAutoFocus:T,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:H(()=>[Z(V(am),{"as-child":``,"disable-outside-pointer-events":V(s),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:H(()=>[Z(V(n_),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":t[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:V(a).dir.value,loop:V(c),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),V(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:H(()=>[Z(V($g),{ref:V(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":V(Dm)(V(i).open.value),dir:V(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:E,onBlur:te,onPointermove:ne,onPointerenter:D},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),m_=W({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=d_(),{forwardRef:r,currentElement:i}=Ep(),{CollectionItem:a}=Pm(),o=B(!1),s=Q(()=>o.value||i.value!=null&&n.highlightedElement.value===i.value);async function c(e){if(!(e.defaultPrevented||!jm(e))){if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){let t=e.currentTarget;n.highlightedElement.value=t,[`INPUT`,`TEXTAREA`].includes(Nf()?.tagName||``)||t.focus({preventScroll:!0})}}}async function l(e){await Er(),!e.defaultPrevented&&jm(e)&&n.highlightedElement.value===i.value&&!n.onItemLeave(e)&&n.highlightedElement.value===i.value&&(n.highlightedElement.value=void 0)}return(e,t)=>(q(),Y(V(a),{value:{textValue:e.textValue}},{default:H(()=>[Z(V(Zp),tc({ref:V(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":s.value?``:void 0,onPointermove:c,onPointerleave:l,onFocus:t[0]||=async t=>{await Er(),!(t.defaultPrevented||e.disabled)&&(o.value=!0,V(n).highlightedElement.value=t.currentTarget)},onBlur:t[1]||=async e=>{await Er(),!e.defaultPrevented&&(o.value=!1)}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),h_=W({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=Ep(),o=c_(),s=d_(),c=B(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(bm,{bubbles:!0,cancelable:!0});r(`select`,e),await Er(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(q(),Y(m_,tc(n,{ref:V(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await Er(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=V(s).searchRef.value!==``;e.disabled||n&&t.key===` `||V(xm).includes(t.key)&&(t.currentTarget?.click(),t.preventDefault())}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),g_=W({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Op(n,r),a=o_(),{forwardRef:o,currentElement:s}=Ep();return Rp(s),(e,t)=>(q(),Y(p_,tc(V(i),{ref:V(o),"trap-focus":V(a).open.value,"disable-outside-pointer-events":V(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>V(a).onOpenChange(!1),onFocusOutside:t[1]||=Au(e=>r(`focusOutside`,e),[`prevent`])}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),__=W({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Op(e,t),r=o_();return(e,t)=>(q(),Y(p_,tc(V(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>V(r).onOpenChange(!1)}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),v_=W({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Op(e,t),r=o_(),i=c_();return(e,t)=>(q(),Y(V(Jp),{present:e.forceMount||V(r).open.value},{default:H(()=>[V(i).modal.value?(q(),Y(g_,Je(tc({key:0},{...e.$attrs,...V(n)})),{default:H(()=>[G(e.$slots,`default`)]),_:3},16)):(q(),Y(__,Je(tc({key:1},{...e.$attrs,...V(n)})),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),[y_,b_]=Mf(`MenuGroup`),x_=W({__name:`MenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=y_({id:``});return(e,r)=>(q(),Y(V(Zp),tc(t,{id:V(n).id||void 0}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`id`]))}}),S_=W({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(q(),Y(V(Mm),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),C_=W({__name:`MenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(q(),Y(V(Zp),tc(t,{role:`separator`,"aria-orientation":`horizontal`}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),[w_,T_]=Mf(`MenuSub`),E_=W({__name:`MenuSub`,props:{open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=op(n,`open`,t,{defaultValue:!1,passive:n.open===void 0}),i=o_(),a=B(),o=B();return Zr(e=>{i?.open.value===!1&&(r.value=!1),e(()=>r.value=!1)}),s_({open:r,onOpenChange:e=>{r.value=e},content:o,onContentChange:e=>{o.value=e}}),T_({triggerId:``,contentId:``,trigger:a,onTriggerChange:e=>{a.value=e}}),(e,t)=>(q(),Y(V(Bm),null,{default:H(()=>[G(e.$slots,`default`)]),_:3}))}}),D_=W({__name:`MenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1,default:!0},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Op(e,t),r=o_(),i=c_(),a=w_(),o=d_(),{forwardRef:s,currentElement:c}=Ep();return a.contentId||=Bp(void 0,`reka-menu-sub-content`),(e,t)=>(q(),Y(V(Jp),{present:e.forceMount||V(r).open.value},{default:H(()=>[Z(p_,tc(V(n),{id:V(a).contentId,ref:V(s),"aria-labelledby":V(a).triggerId,align:`start`,side:V(i).dir.value===`rtl`?`left`:`right`,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:t[0]||=Au(e=>{V(i).isUsingKeyboardRef.value&&V(c)?.focus()},[`prevent`]),onCloseAutoFocus:t[1]||=Au(()=>{},[`prevent`]),onFocusOutside:t[2]||=e=>{if(e.defaultPrevented)return;let t=V(o).filterElement.value?.contains(e.target);e.target!==V(a).trigger.value&&!t&&V(r).onOpenChange(!1)},onEscapeKeyDown:t[3]||=e=>{V(i).onClose(),e.preventDefault()},onKeydown:t[4]||=e=>{let t=e.currentTarget?.contains(e.target),n=V(Em)[V(i).dir.value].includes(e.key);t&&n&&(V(r).onOpenChange(!1),V(o).filterElement.value?(V(o).filterElement.value.focus(),V(o).highlightedElement.value=V(a).trigger.value,V(a).trigger.value?.scrollIntoView({block:`nearest`})):V(a).trigger.value?.focus(),e.preventDefault())}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`side`])]),_:3},8,[`present`]))}}),O_=W({__name:`MenuSubTrigger`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=o_(),r=c_(),i=w_(),a=d_();U(n.open,e=>{e?a.activeSubmenuContext.value={onOpenChange:n.onOpenChange,trigger:i.trigger}:a.activeSubmenuContext.value?.trigger.value===i.trigger.value&&(a.activeSubmenuContext.value=void 0)});let o=B(null);i.triggerId||=Bp(void 0,`reka-menu-sub-trigger`);function s(){o.value&&window.clearTimeout(o.value),o.value=null}Ea(()=>{s()});function c(e){jm(e)&&(a.onItemEnter(e)||!t.disabled&&!n.open.value&&!o.value&&(a.onPointerGraceIntentChange(null),o.value=window.setTimeout(()=>{n.onOpenChange(!0),s()},100)))}async function l(e){if(!jm(e))return;s();let t=n.content.value?.getBoundingClientRect();if(t?.width){let r=n.content.value?.dataset.side,i=r===`right`,o=i?-5:5,s=t[i?`left`:`right`],c=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(a.pointerGraceTimerRef.value),a.pointerGraceTimerRef.value=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e))return;a.onPointerGraceIntentChange(null)}}async function u(e){let i=a.searchRef.value!==``;t.disabled||i&&e.key===` `||Tm[r.dir.value].includes(e.key)&&(n.onOpenChange(!0),await Er(),n.content.value?.focus(),e.preventDefault())}return(e,r)=>(q(),Y(r_,{"as-child":``},{default:H(()=>[Z(m_,tc(t,{id:V(i).triggerId,ref:e=>{e&&V(i)?.onTriggerChange(e?.$el)},"aria-haspopup":`menu`,"aria-expanded":V(n).open.value,"aria-controls":V(i).contentId,"data-state":V(Dm)(V(n).open.value),onClick:r[0]||=async e=>{t.disabled||e.defaultPrevented||(e.currentTarget?.focus(),V(n).open.value||V(n).onOpenChange(!0))},onPointermove:c,onPointerleave:l,onKeydown:u}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`id`,`aria-expanded`,`aria-controls`,`data-state`])]),_:3}))}}),[k_,A_]=Mf(`ContextMenuRoot`),j_=W({inheritAttrs:!1,__name:`ContextMenuRoot`,props:{pressOpenDelay:{type:Number,required:!1,default:700},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{dir:i,modal:a,pressOpenDelay:o}=qn(n);Ep();let s=xp(i),c=B(!1);return A_({open:c,onOpenChange:e=>{c.value=e},dir:s,modal:a,triggerElement:B(),pressOpenDelay:o}),U(c,e=>{r(`update:open`,e)}),(e,t)=>(q(),Y(V(u_),{open:c.value,"onUpdate:open":t[0]||=e=>c.value=e,dir:V(s),modal:V(a)},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`open`,`dir`,`modal`]))}}),M_=W({__name:`ContextMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1,default:0},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1,default:`partial`},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let n=Op(e,t);Ep();let r=k_(),i=B(!1);return(e,t)=>(q(),Y(V(v_),tc(V(n),{side:`right`,"side-offset":2,align:`start`,"update-position-strategy":`always`,style:{"--reka-context-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-context-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-context-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-context-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-context-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:t[0]||=e=>{!e.defaultPrevented&&i.value&&e.preventDefault(),i.value=!1},onInteractOutside:t[1]||=e=>{e.detail.originalEvent.button===2&&e.target===V(r).triggerElement.value&&e.preventDefault(),!e.defaultPrevented&&!V(r).modal.value&&(i.value=!0)}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),N_=W({__name:`ContextMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=Sp(t);return Ep(),(e,t)=>(q(),Y(V(h_),Je(qs({...n,...V(r)})),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),P_=W({__name:`ContextMenuLabel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Ep(),(e,n)=>(q(),Y(V(x_),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),F_=W({__name:`ContextMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(q(),Y(V(S_),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),I_=W({__name:`ContextMenuSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Ep(),(e,n)=>(q(),Y(V(C_),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),L_=W({__name:`ContextMenuSub`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;Ep();let i=op(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(e,t)=>(q(),Y(V(E_),{open:V(i),"onUpdate:open":t[0]||=e=>Ln(i)?i.value=e:null},{default:H(()=>[G(e.$slots,`default`,{open:V(i)})]),_:3},8,[`open`]))}}),R_=W({__name:`ContextMenuSubContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=Op(e,t);return Ep(),(e,t)=>(q(),Y(V(D_),tc(V(n),{style:{"--reka-context-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-context-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-context-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-context-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-context-menu-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),z_=W({__name:`ContextMenuSubTrigger`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Ep(),(e,n)=>(q(),Y(V(O_),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}});function B_(e){return e.pointerType!==`mouse`}var V_=W({inheritAttrs:!1,__name:`ContextMenuTrigger`,props:{disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{disabled:t}=qn(e),{forwardRef:n,currentElement:r}=Ep(),i=k_(),a=B({x:0,y:0}),o=Q(()=>({getBoundingClientRect:()=>({width:0,height:0,left:a.value.x,right:a.value.x,top:a.value.y,bottom:a.value.y,...a.value})})),s=B(0);function c(){window.clearTimeout(s.value)}function l(e){a.value={x:e.clientX,y:e.clientY},i.onOpenChange(!0)}async function u(e){t.value||(await Er(),e.defaultPrevented||(c(),l(e),e.preventDefault()))}async function d(e){t.value||(await Er(),B_(e)&&!e.defaultPrevented&&(c(),s.value=window.setTimeout(l,i.pressOpenDelay.value,e)))}async function f(e){t.value||(await Er(),B_(e)&&!e.defaultPrevented&&c())}return Sa(()=>{r.value&&(i.triggerElement.value=r.value)}),(e,r)=>(q(),J(K,null,[Z(V(r_),{as:`template`,reference:o.value},null,8,[`reference`]),Z(V(Zp),tc({ref:V(n),as:e.as,"as-child":e.asChild,"data-state":V(i).open.value?`open`:`closed`,"data-disabled":V(t)?``:void 0,style:{WebkitTouchCallout:`none`,pointerEvents:`auto`}},e.$attrs,{onContextmenu:u,onPointerdown:d,onPointermove:f,onPointercancel:f,onPointerup:f}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`data-state`,`data-disabled`])],64))}}),[H_,U_]=Mf(`PopoverRoot`),W_=W({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=qn(n),a=op(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return U_({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:B(),hasCustomAnchor:B(!1)}),(e,t)=>(q(),Y(V(Bm),null,{default:H(()=>[G(e.$slots,`default`,{open:V(a),close:()=>a.value=!1})]),_:3}))}}),G_=W({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Dp(Yf(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=Ep(),o=H_();return wp(),(e,t)=>(q(),Y(V(ym),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:H(()=>[Z(V(am),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:t[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:t[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[3]||=e=>r(`focusOutside`,e),onDismiss:t[4]||=e=>V(o).onOpenChange(!1)},{default:H(()=>[Z(V($g),tc(V(i),{id:V(o).contentId,ref:V(a),"data-state":V(o).open.value?`open`:`closed`,"aria-labelledby":V(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),K_=W({__name:`PopoverContentModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=H_(),a=B(!1);vp(!0);let o=Op(n,r),{forwardRef:s,currentElement:c}=Ep();return Rp(c),(e,t)=>(q(),Y(G_,tc(V(o),{ref:V(s),"trap-focus":V(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=Au(e=>{r(`closeAutoFocus`,e),a.value||V(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.value=t.button===2||n},onFocusOutside:t[2]||=Au(()=>{},[`prevent`])}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),q_=W({__name:`PopoverContentNonModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=H_(),a=B(!1),o=B(!1),s=Op(n,r);return(e,t)=>(q(),Y(G_,tc(V(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||V(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;V(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),J_=W({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=H_(),a=Op(n,r),{forwardRef:o}=Ep();return i.contentId||=Bp(void 0,`reka-popover-content`),(e,t)=>(q(),Y(V(Jp),{present:e.forceMount||V(i).open.value},{default:H(()=>[V(i).modal.value?(q(),Y(K_,tc({key:0},V(a),{ref:V(o)}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16)):(q(),Y(q_,tc({key:1},V(a),{ref:V(o)}),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Y_=W({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(q(),Y(V(Mm),Je(qs(t)),{default:H(()=>[G(e.$slots,`default`)]),_:3},16))}}),X_=W({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=H_(),{forwardRef:r,currentElement:i}=Ep();return n.triggerId||=Bp(void 0,`reka-popover-trigger`),Sa(()=>{n.triggerElement.value=i.value}),(e,i)=>(q(),Y(Fa(V(n).hasCustomAnchor.value?V(Zp):V(Vm)),{"as-child":``},{default:H(()=>[Z(V(Zp),{id:V(n).triggerId,ref:V(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":V(n).open.value,"aria-controls":V(n).contentId,"data-state":V(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:V(n).onOpenToggle},{default:H(()=>[G(e.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),Z_={key:0,class:`asset-empty`},Q_=[`data-asset-directory`,`aria-expanded`,`onClick`],$_=[`data-asset-path`,`data-asset-draggable`,`title`,`onDblclick`,`onPointerdown`],ev=[`data-asset-path`,`title`,`onPointerdown`,`onPointerup`,`onClick`],tv=[`src`],nv=W({__name:`AssetsPanel`,props:{currentScene:{},expandedDirectories:{},focusAsset:{},previewImage:{},project:{}},emits:[`assetDragStart`,`assetTreeExpansionChange`,`openScene`,`previewImage`],setup(e,{emit:t}){let n=e,r=t,i=Tn(new Set),a=B(),o=B(0),s=B(),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 Er(),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&&(w(),l={asset:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY},window.addEventListener(`pointermove`,S),window.addEventListener(`pointerup`,w,{once:!0}),window.addEventListener(`pointercancel`,w,{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;w(),r(`assetDragStart`,n)}function C(e,t){e.button===0&&l?.pointerId===e.pointerId&&r(`previewImage`,t)}function w(){window.removeEventListener(`pointermove`,S),window.removeEventListener(`pointerup`,w),window.removeEventListener(`pointercancel`,w),l=void 0}return U([()=>n.project?.root,()=>n.currentScene,()=>n.expandedDirectories],v,{immediate:!0}),U(()=>n.focusAsset,e=>{e&&_(e.path)},{immediate:!0}),U(()=>n.project,()=>o.value+=1),Ta(w),(t,n)=>e.project?(q(),J(`div`,{key:0,ref_key:`assetList`,ref:s,class:`asset-list`},[m.value.length===0?(q(),J(`div`,Z_,`暂无 Scene 或图片`)):Zs(``,!0),(q(!0),J(K,null,za(m.value,t=>(q(),J(K,{key:t.node.type+`:`+t.node.path},[t.node.type===`directory`?(q(),J(`button`,{key:0,class:`asset-row asset-directory`,style:He({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)?(q(),Y(V($d),{key:1,size:14})):(q(),Y(V(ef),{key:0,size:14})),i.has(t.node.path)?(q(),Y(V(rf),{key:3,size:15})):(q(),Y(V(af),{key:2,size:15})),X(`span`,null,R(t.node.name),1)],12,Q_)):t.node.kind===`scene`?(q(),J(`button`,{key:1,class:qe([`asset-row`,{"asset-draggable":t.node.path!==e.currentScene,selected:t.node.path===e.currentScene,focused:t.node.path===a.value}]),style:He({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]||=Au(()=>{},[`prevent`])},[n[2]||=X(`span`,{class:`asset-row-spacer`},null,-1),Z(V(_f),{size:15}),X(`span`,null,R(t.node.name),1)],46,$_)):(q(),J(`button`,{key:2,class:qe([`asset-row asset-draggable`,{focused:t.node.path===a.value,selected:t.node.path===e.previewImage}]),style:He({paddingLeft:`${8+t.level*16}px`}),"data-asset-path":t.node.path,"data-asset-draggable":`true`,title:t.node.path,type:`button`,onPointerdown:e=>x(e,{kind:`image`,path:t.node.path}),onPointerup:e=>C(e,t.node.path),onClick:e=>e.detail===0&&r(`previewImage`,t.node.path),onSelectstart:n[1]||=Au(()=>{},[`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,tv),X(`span`,null,R(t.node.name),1)],46,ev))],64))),128))],512)):Zs(``,!0)}}),rv={class:`asset-preview-panel`,"aria-label":`素材预览`,"data-asset-preview":``},iv={class:`asset-preview-heading`},av={class:`asset-preview-image`},ov={key:0},sv={key:1},cv=[`src`,`alt`],lv={class:`asset-preview-details`},uv=[`title`],dv={key:0},fv=W({__name:`AssetPreviewPanel`,props:{path:{},project:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=B(),a=B(!0),o=B(``);function s(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return U([()=>n.path,()=>n.project],async([e],t,n)=>{let r=!1,s;n(()=>{r=!0,s&&URL.revokeObjectURL(s)}),i.value=void 0,a.value=!0,o.value=``;try{let t=await(await se(e)).blob();if(r)return;s=URL.createObjectURL(t);let n=new Image;if(n.src=s,await n.decode(),r)return;i.value={url:s,bytes:t.size,width:n.naturalWidth,height:n.naturalHeight}}catch(e){r||(o.value=e instanceof Error?e.message:String(e))}finally{r||(a.value=!1)}},{immediate:!0}),(t,n)=>(q(),J(`section`,rv,[X(`header`,iv,[n[1]||=X(`strong`,null,`素材预览`,-1),X(`button`,{type:`button`,title:`关闭素材预览`,"aria-label":`关闭素材预览`,onClick:n[0]||=e=>r(`close`)},[Z(V(jf),{size:14})])]),X(`div`,av,[a.value?(q(),J(`span`,ov,`正在加载图片…`)):o.value?(q(),J(`span`,sv,R(o.value),1)):i.value?(q(),J(`img`,{key:2,src:i.value.url,alt:e.path.split(`/`).at(-1),draggable:`false`},null,8,cv)):Zs(``,!0)]),X(`div`,lv,[X(`strong`,{title:e.path},R(e.path),9,uv),i.value?(q(),J(`span`,dv,R(e.path.toLowerCase().endsWith(`.svg`)?`矢量图`:`${i.value.width} × ${i.value.height} px`)+` · `+R(s(i.value.bytes)),1)):Zs(``,!0)])]))}});function pv(e,t){if(e.acceptsChildren&&t>=.25&&t<=.75)return{index:e.children.length,locator:e.locator,mode:`inside`,parent:e.locator};let n=t>.5;return{index:e.index+ +!!n,locator:e.locator,mode:n?`after`:`before`,parent:e.parentLocator}}function mv(e,t=`__scene__`){return e.map((e,n)=>{let r=a(e,t===`__scene__`?String(n):`${t}/${n}`),i=e.kind===`pixi`?mv(e.children,r):e.kind===`sceneInstance`?Object.entries(e.slots).flatMap(([e,t])=>mv(t,`${r}/slot:${e}`)):[];return{acceptsChildren:e.kind===`pixi`&&v(e.type),children:i,index:n,locator:r,node:e,parentLocator:t}})}function hv(e,t){return gv(e,t)?.node}function gv(e,t){let n=[...mv(e)];for(;n.length>0;){let e=n.shift();if(e.locator===t)return e;n.unshift(...e.children)}}function _v(e,t,n=`__scene__`,r=[]){for(let[i,o]of e.entries()){let e=a(o,n===`__scene__`?String(i):`${n}/${i}`),s=[...r,{kind:`child`,index:i}];if(e===t)return s;if(o.kind===`pixi`){let n=_v(o.children,t,e,s);if(n)return n}else if(o.kind===`sceneInstance`)for(let[n,r]of Object.entries(o.slots)){let i=_v(r,t,`${e}/slot:${n}`,[...s,{kind:`slot`,name:n}]);if(i)return i}}}function vv(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 yv(e,t){return vv(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 bv(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 xv(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&&!yv(r[e],i[e]))return!1;if(a=r[t.index],o=i[t.index],!a||!o||!vv(a,o)||e!==n.length-1&&!yv(a,o))return!1;r=a.kind===`pixi`?a.children:[],i=o.kind===`pixi`?o.children:[]}return!0}function Sv(e,t){let n=[...mv(e.children)];for(;n.length>0;){let e=n.shift();if(e.node===t)return e.locator;n.unshift(...e.children)}}function Cv(e,t,n){let r=[],i=[...mv(e.children)];for(;i.length>0;){let e=i.shift();e.node.kind!==`slotOutlet`&&e.node.id===t&&vv(n,e.node)&&r.push(e.locator),i.unshift(...e.children)}return r}function wv(e,t,n){if(!n)return;if(gv(t.children,n))return n;let r=gv(e.children,n)?.node,i=_v(e.children,n);if(!r||!i)return;let a=bv(t,i);if(a&&xv(e,t,i))return Sv(t,a);if(r.kind!==`slotOutlet`&&r.id){let e=Cv(t,r.id,r);if(e.length===1)return e[0]}}function Tv(e,t){let n=Av(e.children);return{kind:`pixi`,type:t,id:Mv(Nv(t),n),props:b(t),children:[]}}function Ev(e,t,n){let r=n?{x:n.x,y:n.y}:{};if(t.kind===`image`){let n=Tv(e,`Image`);return n.props={...r,...n.props,texture:t.path},n}let i=f(t.path);return{kind:`sceneInstance`,type:i,id:Mv(Nv(i),Av(e.children)),scene:t.path,props:r,events:{},slots:{}}}function Dv(e,t){let n=Av(e.children);return t.map(e=>{let t=structuredClone(e);return jv(t,n,!0),t})}function Ov(e,t){let n=new Set(t),r=[],i=(e,t)=>{for(let a of e){let e=n.has(a.locator);e&&!t&&r.push(a),i(a.children,t||e)}};return i(mv(e),!1),r}function kv(e,t){let n=[],r=e=>{for(let i of e)i.node.kind!==`slotOutlet`&&i.node.id&&t.has(i.node.id)&&n.push(i.locator),r(i.children)};return r(mv(e)),n}function Av(e){let t=new Set;return Pv(e,e=>{e.kind!==`slotOutlet`&&e.id&&t.add(e.id)}),t}function jv(e,t,n){if(e.kind!==`slotOutlet`){if((e.id||n)&&(e.id=Mv(e.id??Nv(e.type),t)),e.kind===`pixi`){for(let n of e.children)jv(n,t,!1);return}for(let n of Object.values(e.slots))for(let e of n)jv(e,t,!1)}}function Mv(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 Nv(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function Pv(e,t){for(let n of e)if(t(n),n.kind===`pixi`)Pv(n.children,t);else if(n.kind===`sceneInstance`)for(let e of Object.values(n.slots))Pv(e,t)}var Fv=[`data-locator`],Iv={class:`tree-label`},Lv={key:0,class:`tree-list`},Rv=W({__name:`HierarchyNode`,props:{entry:{},level:{},assetDragging:{type:Boolean},dropTarget:{},dragging:{type:Boolean},searching:{type:Boolean},selections:{}},emits:[`dragOver`,`dragStart`,`assetDrop`,`openScene`,`select`],setup(e,{emit:t}){let n=e,r=t,i=B(!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`?tf:e.kind===`pixi`&&[`Image`,`NineImage`,`TileImage`,`Sprite`].includes(e.type)?sf:e.kind===`pixi`&&[`Label`,`BitmapLabel`,`Text`,`BitmapText`,`HTMLText`].includes(e.type)?Of:cf});function c(e){let t=e.currentTarget.getBoundingClientRect(),r=t.height||27,i=(e.clientY-t.top)/r;return pv(n.entry,i)}function l(e){e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||n.assetDragging||n.searching||r(`dragStart`,n.entry.locator,e)}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=Na(`HierarchyNode`,!0);return q(),J(`li`,null,[X(`button`,{class:qe([`tree-row`,{selected:e.selections.includes(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:He({paddingLeft:`${8+e.level*16}px`}),type:`button`,onClick:c[2]||=t=>r(`select`,e.entry.locator,t),onDblclick:c[3]||=t=>e.entry.node.kind===`sceneInstance`&&r(`openScene`,e.entry.node.scene),onPointerdown:l,onPointermove:Au(u,[`stop`]),onPointerup:d},[X(`span`,{class:qe([`tree-disclosure`,{empty:!a.value}]),onClick:c[0]||=Au(e=>a.value&&(i.value=!i.value),[`stop`]),onPointerdown:c[1]||=Au(()=>{},[`stop`])},[a.value&&(i.value||e.searching)?(q(),Y(V($d),{key:0,size:13})):a.value?(q(),Y(V(ef),{key:1,size:13})):Zs(``,!0)],34),(q(),Y(Fa(s.value),{size:14,class:`tree-icon`})),X(`span`,Iv,R(o.value),1),X(`small`,null,R(e.entry.node.kind===`sceneInstance`?`Scene`:e.entry.node.kind===`pixi`?e.entry.node.type:`Slot`),1)],46,Fv),a.value&&(i.value||e.searching)?(q(),J(`ul`,Lv,[(q(!0),J(K,null,za(e.entry.children,t=>(q(),Y(f,{key:t.locator,entry:t,level:e.level+1,"asset-dragging":n.assetDragging,"drop-target":n.dropTarget,dragging:n.dragging,searching:n.searching,selections:e.selections,onDragOver:c[4]||=e=>r(`dragOver`,e),onDragStart:c[5]||=(e,t)=>r(`dragStart`,e,t),onAssetDrop:c[6]||=e=>r(`assetDrop`,e),onOpenScene:c[7]||=e=>r(`openScene`,e),onSelect:c[8]||=(e,t)=>r(`select`,e,t)},null,8,[`entry`,`level`,`asset-dragging`,`drop-target`,`dragging`,`searching`,`selections`]))),128))])):Zs(``,!0)])}}}),zv={class:`hierarchy-search`},Bv={title:`添加节点`,"aria-label":`添加节点`},Vv={class:`add-node-options`},Hv=[`aria-label`,`onClick`],Uv=[`disabled`],Wv=[`disabled`],Gv={class:`tree-label`},Kv={class:`tree-list`},qv={key:0,class:`panel-empty compact`},Jv={key:0,class:`inline-error`},Yv={key:1,class:`panel-empty`},Xv=W({__name:`HierarchyPanel`,props:{document:{},draggedAsset:{},revision:{},selected:{},selections:{}},emits:[`assetDrop`,`openScene`,`select`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=B(``),o=B(),s=B(),c=B(),l=B(),u=B(),d=Rn([]),f=B(),p=B(``),m=Q(()=>(r.revision,r.document?mv(r.document.template.children):[])),h=Q(()=>{let e=new Map,t=n=>{for(let r of n)e.set(r.locator,r),t(r.children)};return t(m.value),e}),g=Q(()=>{let e=a.value.trim().toLocaleLowerCase();if(!e)return m.value;let t=n=>{let r=n.node;if((r.kind===`slotOutlet`?`${r.name} slot`:`${r.id??``} ${r.type} ${r.kind===`sceneInstance`?r.scene:``}`).toLocaleLowerCase().includes(e))return n;let i=n.children.flatMap(e=>{let n=t(e);return n?[n]:[]});return i.length?{...n,children:i}:void 0};return m.value.flatMap(e=>{let n=t(e);return n?[n]:[]})}),_=Q(()=>r.document?Ov(r.document.template.children,r.selections):[]),v=Q(()=>_.value.some(e=>e.node.kind!==`slotOutlet`)),y=Q(()=>_.value.length>0),b=Q(()=>d.value.length>0),x=Q(()=>v.value),S=Q(()=>y.value),C=Q(()=>!!l.value||!!r.draggedAsset),w=[{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`]}],ee,T,E,te,ne=0;function D(e){if(e===void 0)return{parent:`__scene__`,index:m.value.length};let t=r.document&&gv(r.document.template.children,e);if(!t){p.value=`目标节点已变化,请重新操作`;return}return t.acceptsChildren?{parent:t.locator,index:t.children.length}:{parent:t.parentLocator,index:t.index+1}}async function re(e,t){if(!r.document||!le.includes(e))return;o.value&&(o.value.open=!1);let n=D(t);n&&await xe({op:`insertNode`,parent:n.parent,index:n.index,node:Tv(r.document.template,e)})}async function ie(){let e=r.document;if(!e)return;let t=_.value.filter(e=>e.node.kind!==`slotOutlet`),n=Dv(e.template,t.map(e=>e.node));n.length!==0&&await xe({op:`batch`,commands:t.map((e,t)=>({op:`insertNode`,parent:e.parentLocator,index:e.index+1,node:n[t]})).reverse()})}function ae(){d.value=_.value.filter(e=>e.node.kind!==`slotOutlet`).map(e=>structuredClone(e.node))}async function oe(e){let t=r.document;if(!t||d.value.length===0)return;let n=D(e);n&&await xe({op:`batch`,commands:Dv(t.template,d.value).map((e,t)=>({op:`insertNode`,parent:n.parent,index:n.index+t,node:e}))})}async function se(){let e=_.value;e.length!==0&&await xe({op:`batch`,commands:[...e].reverse().map(e=>({op:`deleteNode`,node:e.locator}))})}function ce(e){let t=e.target instanceof Element?e.target.closest(`[data-locator]`):null;if(!t){e.preventDefault();return}f.value=t.dataset.locator===`__scene__`?void 0:t.dataset.locator,!(f.value&&r.selections.includes(f.value))&&i(`select`,{locators:f.value?[f.value]:[],primary:f.value})}function O(e,t){if(t.shiftKey&&r.selected){let n=Array.from(t.currentTarget instanceof Element?t.currentTarget.closest(`.hierarchy-tree`)?.querySelectorAll(`.tree-row[data-locator]`)??[]:[]).map(e=>e.dataset.locator).filter(e=>!!e&&e!==`__scene__`),a=n.indexOf(r.selected),o=n.indexOf(e);if(a>=0&&o>=0){let s=n.slice(Math.min(a,o),Math.max(a,o)+1);i(`select`,{locators:t.metaKey||t.ctrlKey?[...new Set([...r.selections,...s])]:s,primary:e});return}}if(t.metaKey||t.ctrlKey){let t=r.selections.includes(e)?r.selections.filter(t=>t!==e):[...r.selections,e];i(`select`,{locators:t,primary:t.includes(e)?e:t.at(-1)});return}i(`select`,{locators:[e],primary:e})}function k(){ae()}function ue(){oe(r.selected)}function de(e,t){he(),l.value=e,u.value=void 0,ee=t.pointerId,T={x:t.clientX,y:t.clientY},E=T,r.selections.includes(e)||i(`select`,{locators:[e],primary:e}),window.addEventListener(`pointermove`,be,!0),window.addEventListener(`pointerup`,P),window.addEventListener(`pointercancel`,N),window.addEventListener(`blur`,he)}function fe(e){u.value=r.draggedAsset||pe(e)?e:void 0}function pe(e){if(!r.document||!l.value)return!1;let t=h.value.get(l.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 me(e){let t=l.value;if(!t||!pe(e)){he();return}he(),await xe({op:`moveNode`,node:t,parent:e.parent,index:e.index})}async function A(e){let t=r.draggedAsset;!r.document||!t||(u.value=void 0,await xe({op:`insertNode`,parent:e.parent,index:e.index,node:Ev(r.document.template,t)}),i(`assetDrop`))}function he(){ve(),window.removeEventListener(`pointermove`,be,!0),window.removeEventListener(`pointerup`,P),window.removeEventListener(`pointercancel`,N),window.removeEventListener(`blur`,he),ee=void 0,T=void 0,E=void 0,l.value=void 0,u.value=void 0}function ge(){let e=!!l.value;return he(),e}t({cancelCurrentDrag:ge,copySelection:k,duplicateSelection:ie,deleteSelection:se,pasteSelection:ue});function j(){let e=s.value,t=E;if(!e||!t){u.value=void 0;return}let n=document.elementFromPoint(t.x,t.y),r=n instanceof Element?n.closest(`.tree-row[data-locator]`):null;if(!r||!e.contains(r)){u.value=void 0;return}let i=r.dataset.locator;if(i===`__scene__`){fe({parent:`__scene__`,index:m.value.length,locator:i,mode:`inside`});return}let a=i&&h.value.get(i);if(!a){u.value=void 0;return}let o=r.getBoundingClientRect();fe(pv(a,(t.y-o.top)/(o.height||27)))}function M(){return s.value?.closest(`.hierarchy-panel-content`)}function _e(){let e=M(),t=E;if(!e||!t||!c.value)return 0;let n=e.getBoundingClientRect(),r=c.value.getBoundingClientRect().bottom;if(t.x<n.left||t.x>n.right||t.y<r||t.y>n.bottom)return 0;let i=t.y-r,a=n.bottom-t.y;return i<32?-(40+800*(1-i/32)**2):a<32?40+800*(1-a/32)**2:0}function ve(){te!==void 0&&cancelAnimationFrame(te),te=void 0,ne=0}function ye(e){te=void 0;let t=M(),n=_e();if(!t||!n||!l.value)return;let r=ne?Math.min(e-ne,32):16;ne=e;let i=t.scrollTop;t.scrollTop+=n*r/1e3,t.scrollTop!==i&&(j(),te=requestAnimationFrame(ye))}function be(e){if(e.pointerId!==ee)return;E={x:e.clientX,y:e.clientY},j();let t=T;Math.hypot(E.x-t.x,E.y-t.y)>=4&&_e()!==0?te===void 0&&(te=requestAnimationFrame(ye)):ve()}function N(e){e.pointerId===ee&&he()}function P(e){if(e.pointerId!==ee)return;E={x:e.clientX,y:e.clientY},j();let t=u.value;if(!t){he();return}me(t)}async function xe(e){if(r.document){p.value=``;try{await r.document.commitCommand(e)}catch(e){p.value=e instanceof Error?e.message:String(e)}}}return Ta(he),U(()=>r.draggedAsset,e=>{!e&&!l.value&&(u.value=void 0)}),(t,n)=>e.document?(q(),J(`div`,{key:0,class:qe([`hierarchy-panel`,{"is-dragging":C.value,"is-asset-dragging":!!e.draggedAsset}])},[X(`div`,{ref_key:`hierarchyToolbar`,ref:c,class:`hierarchy-toolbar`},[X(`label`,zv,[Z(V(Tf),{size:14}),Wr(X(`input`,{"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`search`,"aria-label":`搜索节点`,placeholder:`搜索节点`},null,512),[[gu,a.value]])]),X(`details`,{ref_key:`addMenu`,ref:o,class:`add-node-menu`},[X(`summary`,Bv,[Z(V(vf),{size:15})]),X(`div`,Vv,[(q(),J(K,null,za(w,t=>X(`div`,{key:t.label,class:`add-node-group`},[X(`span`,null,R(t.label),1),(q(!0),J(K,null,za(t.types,t=>(q(),J(`button`,{key:t,type:`button`,"aria-label":`添加 ${t}`,onClick:n=>re(t,e.selected)},R(t),9,Hv))),128))])),64))])],512),X(`button`,{type:`button`,title:`复制节点`,"aria-label":`复制节点`,disabled:!v.value,onClick:ie},[Z(V(nf),{size:14})],8,Uv),X(`button`,{type:`button`,title:`删除节点`,"aria-label":`删除节点`,disabled:!y.value,onClick:se},[Z(V(Df),{size:14})],8,Wv)],512),Z(V(j_),null,{default:H(()=>[Z(V(V_),{"as-child":``},{default:H(()=>[X(`div`,{ref_key:`hierarchyTree`,ref:s,class:`hierarchy-tree`,onContextmenuCapture:ce},[X(`button`,{class:qe([`tree-row scene-root`,{selected:e.selections.length===0,"drop-inside":u.value?.locator===`__scene__`}]),"data-locator":`__scene__`,type:`button`,onClick:n[1]||=e=>i(`select`,{locators:[]}),onPointermove:n[2]||=Au(e=>C.value&&fe({parent:`__scene__`,index:m.value.length,locator:`__scene__`,mode:`inside`}),[`stop`]),onPointerup:n[3]||=t=>e.draggedAsset&&A({parent:`__scene__`,index:m.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`,Gv,R(e.document.template.name),1),n[8]||=X(`small`,null,`Scene`,-1)],34),X(`ul`,Kv,[(q(!0),J(K,null,za(g.value,t=>(q(),Y(Rv,{key:t.locator,entry:t,level:0,"asset-dragging":!!e.draggedAsset,"drop-target":u.value,dragging:!!l.value,searching:!!a.value.trim(),selections:e.selections,onDragOver:fe,onDragStart:de,onAssetDrop:A,onOpenScene:n[4]||=e=>i(`openScene`,e),onSelect:O},null,8,[`entry`,`asset-dragging`,`drop-target`,`dragging`,`searching`,`selections`]))),128))]),a.value.trim()&&g.value.length===0?(q(),J(`p`,qv,`没有匹配的节点`)):Zs(``,!0)],544)]),_:1}),Z(V(F_),null,{default:H(()=>[Z(V(M_),{class:`hierarchy-context-menu`,"aria-label":`节点操作`,"collision-padding":8},{default:H(()=>[Z(V(L_),null,{default:H(()=>[Z(V(z_),{class:`hierarchy-context-item`},{default:H(()=>[n[9]||=Ys(` 添加 `,-1),Z(V(ef),{size:13,"aria-hidden":`true`})]),_:1}),Z(V(F_),null,{default:H(()=>[Z(V(R_),{class:`hierarchy-context-menu hierarchy-context-submenu`,"aria-label":`添加节点`,"side-offset":4,"collision-padding":8},{default:H(()=>[(q(),J(K,null,za(w,e=>(q(),J(K,{key:e.label},[Z(V(P_),{class:`hierarchy-context-label`},{default:H(()=>[Ys(R(e.label),1)]),_:2},1024),(q(!0),J(K,null,za(e.types,e=>(q(),Y(V(N_),{key:e,class:`hierarchy-context-item`,onSelect:t=>re(e,f.value)},{default:H(()=>[Ys(R(e),1)]),_:2},1032,[`onSelect`]))),128))],64))),64))]),_:1})]),_:1})]),_:1}),Z(V(N_),{class:`hierarchy-context-item`,disabled:!x.value,onSelect:ae},{default:H(()=>[...n[10]||=[Ys(`复制`,-1)]]),_:1},8,[`disabled`]),Z(V(N_),{class:`hierarchy-context-item`,disabled:!b.value,onSelect:n[5]||=e=>oe(f.value)},{default:H(()=>[...n[11]||=[Ys(`粘贴`,-1)]]),_:1},8,[`disabled`]),Z(V(I_),{class:`hierarchy-context-separator`}),Z(V(N_),{class:`hierarchy-context-item`,disabled:!S.value,onSelect:se},{default:H(()=>[...n[12]||=[Ys(`删除`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1}),p.value?(q(),J(`p`,Jv,R(p.value),1)):Zs(``,!0)],2)):(q(),J(`div`,Yv,`项目中没有可打开的 Scene`))}}),Zv={class:`inspector-panel`},Qv={class:`inspector-heading`},$v={key:0,class:`panel-empty compact`},ey={key:1,class:`panel-empty compact`},ty={key:2,class:`panel-empty compact`},ny={key:3,class:`inspector-fields`},ry={key:0,class:`inspector-section`,"data-inspector-section":`identity`},iy={class:`property-row`},ay={class:`property-field`},oy={key:1,class:`inspector-section`,"data-inspector-section":`identity`},sy={class:`property-row`},cy={class:`property-field`},ly={class:`property-control node-id-control`},uy={class:`property-value`},dy=[`aria-invalid`],fy=[`data-inspector-section`,`open`],py={class:`inspector-section-title`},my={key:0,class:`layout-constraints`},hy={class:`layout-presets`,role:`group`,"aria-label":`快捷约束`},gy=[`data-layout-preset`,`disabled`,`aria-label`,`title`,`onClick`],_y={class:`constraint-grid`},vy={class:`constraint-diagram`,"aria-label":`父子容器约束示意图`,role:`img`},yy=[`data-layout-axis`],by=[`title`],xy=[`data-layout-toggle`,`aria-label`,`checked`,`indeterminate`,`disabled`,`onChange`],Sy=[`onUpdate:modelValue`,`data-prop`,`aria-label`,`title`,`disabled`,`placeholder`,`onInput`,`onChange`,`onBlur`,`onKeydown`],Cy=[`aria-label`],wy=[`data-unbind-prop`,`title`,`aria-label`,`onClick`],Ty={key:0,class:`constraint-warning`},Ey={key:1,class:`layout-control-note`},Dy=[`data-field-row`],Oy=[`data-asset-drop-prop`,`onPointerup`],ky=[`title`],Ay={class:`property-control`},jy={class:`property-value`},My=[`data-prop`,`onUpdate:modelValue`,`disabled`,`title`,`placeholder`,`onInput`,`onChange`,`onBlur`,`onKeydown`],Ny=[`data-prop`,`onUpdate:modelValue`,`disabled`,`type`,`placeholder`,`onInput`,`onChange`,`onBlur`],Py=[`data-prop`,`onUpdate:modelValue`,`disabled`,`indeterminate`,`onChange`],Fy=[`data-prop`,`onUpdate:modelValue`,`disabled`,`onChange`],Iy={key:0,value:``,disabled:``},Ly=[`value`],Ry=[`data-prop`,`onUpdate:modelValue`,`disabled`,`title`,`placeholder`,`onClick`,`onInput`,`onChange`,`onBlur`,`onKeydown`],zy=[`data-binding-source`],By=[`data-unbind-prop`,`title`,`aria-label`,`onClick`],Vy=[`disabled`,`title`,`aria-label`,`onClick`],Hy={key:2,class:`inspector-section`,"data-inspector-section":`events`},Uy={class:`inspector-section-title`},Wy=[`data-event-row`],Gy={class:`property-field`},Ky={class:`property-control`},qy={class:`property-value`},Jy=[`onUpdate:modelValue`,`aria-label`,`data-event`,`onChange`,`onBlur`,`onKeydown`],Yy=[`disabled`,`title`,`aria-label`,`onClick`],Xy={key:4,class:`inline-error`},Zy=W({__name:`InspectorPanel`,props:{document:{},draggedAsset:{},revision:{},readLayoutFrame:{type:Function},sceneDefaults:{},sceneInterfaces:{},selected:{},selections:{}},emits:[`assetDrop`,`locateAsset`],setup(e,{emit:n}){let r=[{key:`transform`,title:`变换`},{key:`layout`,title:`布局`},{key:`node`,title:`节点属性`},{key:`props`,title:`Scene Props`},{key:`display`,title:`显示与交互`}],i=new Set(l),a=new Set(s),f={left:`左边距`,right:`右边距`,top:`上边距`,bottom:`下边距`,horizontal:`水平偏移`,vertical:`垂直偏移`},p=[{key:`x`,label:`横向`,keys:[`left`,`right`,`horizontal`]},{key:`y`,label:`纵向`,keys:[`top`,`bottom`,`vertical`]}],m=[{key:`left`,label:`靠左`,axes:[`x`],active:[`left`],icon:Wd},{key:`horizontal`,label:`水平居中`,axes:[`x`],active:[`horizontal`],icon:Id},{key:`right`,label:`靠右`,axes:[`x`],active:[`right`],icon:Rd},{key:`top`,label:`靠上`,axes:[`y`],active:[`top`],icon:Ud},{key:`vertical`,label:`垂直居中`,axes:[`y`],active:[`vertical`],icon:Fd},{key:`bottom`,label:`靠下`,axes:[`y`],active:[`bottom`],icon:Ld},{key:`stretchX`,label:`横向铺满`,axes:[`x`],active:[`left`,`right`],icon:Xd},{key:`stretchY`,label:`纵向铺满`,axes:[`y`],active:[`top`,`bottom`],icon:Yd},{key:`stretch`,label:`四边铺满`,axes:[`x`,`y`],active:[`left`,`right`,`top`,`bottom`],icon:df},{key:`clear`,label:`清除布局约束`,axes:[`x`,`y`],active:[],icon:xf}];function g(e,t){let[n,r,i]=t.keys;return e[n]!==void 0&&e[r]!==void 0?`stretch`:e[n]===void 0?e[r]===void 0?e[i]===void 0?`free`:`center`:`end`:`start`}function _(e,t){return t===`horizontal`?e.left!==void 0||e.right!==void 0:t===`vertical`?e.top!==void 0||e.bottom!==void 0:!1}let v=new Set(t),x=[[`x`,`y`],[`width`,`height`],[`scaleX`,`scaleY`],[`pivotX`,`pivotY`],[`skewX`,`skewY`],[`left`,`right`],[`top`,`bottom`],[`horizontal`,`vertical`],[`anchorX`,`anchorY`]],S=new Map;for(let e of x)S.set(e[0],e),S.set(e[1],e);function C(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 w=e,ee=n,T=Tn({}),E=new Set,te=B(``),ne=B(``),D=Tn({message:``}),re=Tn({}),ie=Q(()=>!!w.document&&!w.selected&&w.selections.length===0),ae=Q(()=>(w.revision,w.document&&w.selected?hv(w.document.template.children,w.selected):void 0)),oe=Q(()=>(w.revision,w.document?w.selections.flatMap(e=>{let t=hv(w.document.template.children,e);return t?[{locator:e,node:t}]:[]}):[])),se=Q(()=>oe.value.length>1),ce=Q(()=>(w.revision,ie.value&&w.document?[{locator:void 0,values:w.document.template.props}]:oe.value.flatMap(({locator:e,node:t})=>t.kind===`slotOutlet`?[]:[{locator:e,values:t.props}]))),le=Q(()=>p.map(e=>{let t=ce.value.map(({values:t})=>g(t,e)),n=t.every(e=>e===t[0])?t[0]:`mixed`,r=ce.value.some(({values:t})=>e.keys.some(e=>c(t[e])));return{...e,mode:n,bound:r}}));function O(e){return le.value.some(t=>e.axes.includes(t.key)&&t.bound)}function k(e,t,n){return e===void 0?{op:`setSceneProp`,prop:t,value:n}:{op:`setNodeProp`,node:e,prop:t,value:n}}async function ue(e){if(!(!e.length||!w.document)){D.message=``;try{await w.document.commitCommand({op:`batch`,commands:e})}catch(e){D.message=e instanceof Error?e.message:String(e)}}}async function de(e){if(O(e))return;let t=p.filter(t=>e.axes.includes(t.key)).flatMap(e=>[...e.keys]);await ue(ce.value.flatMap(({locator:n,values:r})=>t.flatMap(t=>{let i=e.active.includes(t)?0:void 0;return r[t]===i?[]:[k(n,t,i)]})))}async function fe(e,t,n){if(N.value.find(t=>t.key===e.key).disabled)return;let[r,i,a]=e.keys,o=[];for(let{locator:s,values:c}of ce.value){if(n===(c[t]!==void 0))continue;let l=w.readLayoutFrame(s),u=e.key===`x`?l.x:l.y,d=e.key===`x`?l.width:l.height,f=e.key===`x`?l.parentWidth:l.parentHeight,p=n?t===r?u:t===i?f-u-d:u-(f-d)/2:void 0;o.push(k(s,t,p)),n||(c[r]!==void 0&&c[i]!==void 0&&t!==a&&o.push(k(s,e.key===`x`?`width`:`height`,d)),e.keys.some(e=>e!==t&&c[e]!==void 0)||o.push(k(s,e.key,u)))}await ue(o)}let pe=Q(()=>{if(!w.document)return`未打开 Scene`;if(se.value)return`${oe.value.length} 个节点`;if(!ae.value)return w.document.template.name;let e=ae.value;return e.kind===`slotOutlet`?`Slot · ${e.name}`:e.id||(e.kind,e.type)}),me=Q(()=>{if(se.value)return`多选`;let e=ae.value;return e?e.kind===`slotOutlet`?`Slot`:e.kind===`sceneInstance`?`Scene · ${e.type}`:e.type:`Scene · Group`}),A=Q(()=>{w.revision;let e=ae.value;if(!e||e.kind===`slotOutlet`||se.value)return``;let t=e.props,n=[`left`,`right`,`horizontal`].filter(e=>t[e]!==void 0&&!_(t,e)),r=[`top`,`bottom`,`vertical`].filter(e=>t[e]!==void 0&&!_(t,e)),i=[];return n.length&&i.push(`X${t.left!==void 0&&t.right!==void 0?`、宽度`:``} 由 ${n.map(e=>f[e]).join(` / `)} 控制`),r.length&&i.push(`Y${t.top!==void 0&&t.bottom!==void 0?`、高度`:``} 由 ${r.map(e=>f[e]).join(` / `)} 控制`),i.join(`;`)}),he=Q(()=>{let e=ae.value;return w.document&&e?.kind===`sceneInstance`?d(w.document.path,e.scene):void 0}),ge=Q(()=>he.value?w.sceneInterfaces?.[he.value]:void 0),j=Q(()=>w.document?w.sceneInterfaces?.[w.document.path]:void 0),M={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:``};function _e(e,n,r=!1,i={}){if(!e||e.kind===`slotOutlet`)return[];let u=e.kind===`pixi`&&h(e.type)?{...M,...b(e.type),...r?{width:960,height:540}:{}}:{...M};return Object.keys(e.events??{}).length>0&&e.props.eventMode===void 0&&(u.eventMode=`static`),(e.kind===`pixi`&&h(e.type)?[...new Set([...l,...s,...t,...o(e.type)])]:[...new Set([...l,...s,...t,...Object.keys(n?.props??{}),...Object.keys(e.props)])]).flatMap(t=>{let r=n?.props[t],o=r?void 0:y(t),s=r?Ce(r):o,l=e.props[t],d=c(l)?l:void 0,p=(d?Te(d,s?.type,u[t]):l??(r?i[t]??we(r):u[t]))??(o?.resource===`image`?``:void 0);return!s||p===void 0||typeof p==`object`?[]:[{binding:d,explicit:l!==void 0,key:t,label:f[t],hint:a.has(t)?`${t} · ${_(e.props,t)?`当前未生效:同轴边距优先;切换到居中可移除边距约束`:t===`horizontal`||t===`vertical`?`相对父容器中心的偏移,0 为居中`:`距父容器对应边缘的距离`};留空移除约束`:void 0,overridden:l!==void 0&&_(e.props,t),layoutControlled:C(e.props,t),resource:o?.resource,type:s.type,options:s.options,value:p}]})}let ve=Q(()=>w.document?{kind:`pixi`,type:`Group`,props:w.document.template.props,events:w.document.template.events??{},children:[]}:void 0);function ye(){let e=w.document?.template;return e?Object.entries(j.value?.props??{}).flatMap(([t,n])=>{let r=e.propDefaults?.[t];if(n.type===`struct`)return Object.entries(n.fields).map(([e,n])=>{let i=r&&typeof r==`object`&&!c(r)?r[e]:void 0;return{explicit:i!==void 0,key:`default.${t}.${e}`,label:`${t}.${e}`,layoutControlled:!1,type:n.type,value:i??n.default}});let i=Ce(n),a=we(n);return a===void 0?[]:[{explicit:r!==void 0,key:`default.${t}`,label:t,layoutControlled:!1,type:i.type,options:i.options,value:r!==void 0&&typeof r!=`object`?r:a}]}):[]}let be=Q(()=>{if(w.revision,ie.value)return[..._e(ve.value,void 0,!0),...ye()];let e=ae.value;if(!e)return[];let t=_e(e,ge.value,!1,he.value?w.sceneDefaults?.[he.value]:void 0);if(!se.value)return t;let n=oe.value.filter(({locator:e})=>e!==w.selected).map(({node:e})=>new Map(_e(e,e.kind===`sceneInstance`&&w.document?w.sceneInterfaces?.[d(w.document.path,e.scene)]:void 0,!1,e.kind===`sceneInstance`&&w.document?w.sceneDefaults?.[d(w.document.path,e.scene)]:void 0).map(e=>[e.key,e])));return t.flatMap(e=>{if(e.binding||e.layoutControlled)return[];let t=n.map(t=>t.get(e.key));return t.some(t=>!t||t.type!==e.type||t.resource!==e.resource||t.binding||t.layoutControlled||JSON.stringify(t.options)!==JSON.stringify(e.options))?[]:[{...e,explicit:e.explicit||t.some(e=>e.explicit),mixed:t.some(t=>t.value!==e.value)}]})}),N=Q(()=>le.value.map(e=>{let[t,n,r]=e.keys,i=e.bound||ce.value.some(({values:t})=>[e.key,e.key===`x`?`width`:`height`].some(e=>c(t[e]))),a=i||!w.readLayoutFrame||ce.value.some(({locator:e})=>e===void 0||!w.readLayoutFrame(e));return{...e,disabled:a,hint:i?`此轴含绑定,请先解除绑定`:a?`需要可用的父容器预览,且节点位置未被排列容器接管`:`勾选或取消约束,保持当前位置和尺寸`,items:[t,r,n].map((t,n)=>{let r=ce.value.map(({values:e})=>e[t]!==void 0);return{key:t,label:e.key===`x`?[`左`,`中`,`右`][n]:[`上`,`中`,`下`][n],checked:r.length>0&&r.every(Boolean),mixed:r.some(Boolean)&&!r.every(Boolean),field:be.value.find(e=>e.key===t)}})}})),P=Q(()=>{let e=ae.value??(ie.value?ve.value:void 0);if(!e||e.kind===`slotOutlet`)return[];let t={transform:[],layout:[],display:[],node:[],props:[]};for(let n of be.value){let r;r=n.key.startsWith(`default.`)||e.kind===`sceneInstance`&&ge.value?.props[n.key]?`props`:i.has(n.key)?`transform`:a.has(n.key)?`layout`:v.has(n.key)?`display`:e.kind===`sceneInstance`?`props`:`node`,t[r].push(n)}return r.flatMap(({key:e,title:n})=>{let r=Se(t[e]);return r.length>0?[{key:e,title:n,rows:r}]:[]})}),xe=Q(()=>ie.value||ae.value?.kind===`pixi`?[...u]:ae.value?.kind===`sceneInstance`?Object.keys(ge.value?.events??{}):[]),F=Q(()=>ie.value?w.document?.template.events??{}:ae.value?.kind===`slotOutlet`?{}:ae.value?.events??{});function Se(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=S.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 Ce(e){if(e.type!==`struct`)return e.type===`variant`?{type:`enum`,options:Object.keys(e.variants)}:{type:e.type}}function we(e){if(e.type!==`struct`)return e.default===void 0?e.type===`number`?0:e.type===`boolean`?!1:``:e.default}function Te(e,t,n){let[r,i]=e.path,a=j.value?.props[r],o=w.document?.template.propDefaults?.[r],s;return i&&a?.type===`variant`?s=a.variants[typeof o==`string`?o:a.default]?.[i]:!i&&a&&a.type!==`struct`&&(s=o!==void 0&&typeof o!=`object`?o:we(a)),s===void 0&&[`string`,`number`,`boolean`].includes(typeof n)&&(s=n),t===`color`&&typeof s==`string`&&/^#[0-9a-fA-F]{6}$/.test(s)?Number.parseInt(s.slice(1),16):t===`string`?String(s??``):s}U([()=>w.selected,()=>w.revision,be],()=>{for(let e of Object.keys(T))delete T[e];E.clear();for(let e of be.value)T[e.key]=e.mixed?``:Ee(e,e.value);let e=ae.value;te.value=e&&e.kind!==`slotOutlet`?e.id??``:``,ne.value=``,D.message=``;for(let e of Object.keys(re))delete re[e];for(let e of xe.value)re[e]=F.value[e]??``},{immediate:!0,flush:`post`});function Ee(e,t){return e.type===`color`?`#${Number(t).toString(16).padStart(6,`0`).slice(-6)}`:t}function De(e){let t=T[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 Oe(e){if(E.add(e.key),!(!w.document||e.resource||e.layoutControlled||e.type===`number`&&T[e.key]===``)&&!(e.type===`color`&&!Number.isFinite(De(e))))for(let{locator:t}of oe.value)w.document.previewNodeProp(t,e.key,De(e))}function ke(e){e.resource!==`image`||typeof e.value!=`string`||!e.value||ee(`locateAsset`,e.value)}async function Ae(){let e=ae.value,t=w.selected;if(!w.document||!t||!e||e.kind===`slotOutlet`||se.value)return;let n=te.value.trim();if(ne.value=``,n===(e.id??``)){te.value=n;return}if(D.message=``,!n){te.value=e.id??``,ne.value=`节点 ID 不能为空。`;return}try{await w.document.commitNodeId(t,n)}catch(t){te.value=e.id??``,ne.value=t instanceof Error?t.message:String(t)}}function I(){ne.value=``}async function je(e){await Ae(),e.blur()}async function L(e,t){if(!w.document||!ie.value&&oe.value.length===0||e.layoutControlled||e.type===`number`&&(t?.currentTarget)?.validity.badInput||se.value&&!E.has(e.key))return;if(a.has(e.key)&&T[e.key]===``&&E.has(e.key)){await Me(e),E.delete(e.key);return}D.message=``;let n=De(e);if(!(e.type===`number`&&(T[e.key]===``||!Number.isFinite(n)))&&!(e.type===`color`&&!Number.isFinite(n))&&!(ie.value&&n===e.value))try{let t=Ne(e.key,n);await Er(),T[e.key]=Ee(e,n),await t,E.delete(e.key)}catch(e){D.message=e instanceof Error?e.message:String(e)}}async function Me(e){if(!(!w.document||!ie.value&&oe.value.length===0)){D.message=``;try{for(let{locator:t}of oe.value)w.document.previewNodeProp(t,e.key,void 0);await Ne(e.key,void 0)}catch(e){D.message=e instanceof Error?e.message:String(e)}}}function Ne(e,t){let n=w.document;if(ie.value)return n.commitCommand(e.startsWith(`default.`)?{op:`setSceneDefaultProp`,prop:e.slice(8),value:t}:{op:`setSceneProp`,prop:e,value:t});if(!se.value)return n.commitNodeProp(w.selected,e,t);let r=oe.value.flatMap(({locator:n,node:r})=>r.kind!==`slotOutlet`&&r.props[e]!==t?[{op:`setNodeProp`,node:n,prop:e,value:t}]:[]);return r.length===0?Promise.resolve():n.commitCommand({op:`batch`,commands:r})}async function Pe(e){if(!w.document||!ie.value&&(!w.selected||se.value))return;let t=re[e]?.trim()||void 0;if(t!==F.value[e]){D.message=``;try{await w.document.commitCommand(ie.value?{op:`setSceneEvent`,event:e,value:t}:{op:`setNodeEvent`,node:w.selected,event:e,value:t})}catch(e){D.message=e instanceof Error?e.message:String(e)}}}async function Fe(e){if(!(!w.document||!w.selected||!e.binding)){D.message=``;try{await w.document.commitNodeProp(w.selected,e.key,e.value)}catch(e){D.message=e instanceof Error?e.message:String(e)}}}function Ie(e){return e.resource===`image`&&!e.binding&&w.draggedAsset?.kind===`image`}async function Le(e){let t=w.draggedAsset;if(!(!w.document||oe.value.length===0||!t||t.kind!==`image`||!Ie(e))){ee(`assetDrop`),D.message=``;try{let n=Ne(e.key,t.path);await Er(),T[e.key]=t.path,await n}catch(e){D.message=e instanceof Error?e.message:String(e)}}}return(t,n)=>(q(),J(`div`,Zv,[X(`header`,Qv,[X(`div`,null,[X(`strong`,null,R(pe.value),1),X(`small`,null,[Ys(R(me.value),1),e.selected&&!se.value?(q(),J(K,{key:0},[Ys(` · `+R(e.selected),1)],64)):Zs(``,!0)])])]),!ae.value&&!ie.value?(q(),J(`div`,$v,`选择一个节点以编辑属性`)):se.value&&be.value.length===0?(q(),J(`div`,ey,`所选节点没有共有的可编辑属性`)):ae.value?.kind===`slotOutlet`?(q(),J(`div`,ty,`Slot 内容通过层级树编辑`)):(q(),J(`div`,ny,[ie.value?(q(),J(`section`,ry,[n[3]||=X(`div`,{class:`inspector-section-title`},`Scene`,-1),X(`div`,iy,[X(`span`,ay,[n[2]||=X(`span`,null,`路径`,-1),X(`span`,null,R(e.document?.path),1)])])])):se.value?Zs(``,!0):(q(),J(`section`,oy,[n[5]||=X(`div`,{class:`inspector-section-title`},`节点`,-1),X(`div`,sy,[X(`label`,cy,[n[4]||=X(`span`,null,`id`,-1),X(`div`,ly,[X(`div`,uy,[Wr(X(`input`,{"onUpdate:modelValue":n[0]||=e=>te.value=e,"aria-label":`节点 ID`,"data-node-id":``,"aria-invalid":ne.value?`true`:void 0,class:qe({"is-invalid":!!ne.value}),type:`text`,autocomplete:`off`,spellcheck:`false`,onInput:I,onBlur:Ae,onKeydown:n[1]||=Mu(Au(e=>je(e.currentTarget),[`prevent`]),[`enter`])},null,42,dy),[[gu,te.value]])])])])])])),(q(!0),J(K,null,za(P.value,e=>(q(),J(`details`,{key:e.key,class:`inspector-section`,"data-inspector-section":e.key,open:e.key!==`display`},[X(`summary`,py,R(e.title),1),e.key===`layout`?(q(),J(`div`,my,[X(`div`,hy,[(q(),J(K,null,za(m,e=>X(`button`,{key:e.key,type:`button`,"data-layout-preset":e.key,disabled:O(e),"aria-label":e.label,title:O(e)?`此轴含绑定,请先解除绑定`:e.label,onClick:t=>de(e)},[(q(),Y(Fa(e.icon),{size:15}))],8,gy)),64))]),X(`div`,_y,[X(`div`,vy,[X(`div`,{class:qe([`constraint-child`,le.value.map(e=>`constraint-${e.key}-${e.mode}`)])},[...n[6]||=[X(`span`,null,null,-1)]],2),(q(!0),J(K,null,za(N.value,e=>(q(),J(K,{key:e.key},[(q(!0),J(K,null,za(e.items,e=>(q(),J(`div`,{key:e.key,class:qe([`constraint-guide`,[`constraint-guide-${e.key}`,{"is-active":e.checked,"is-mixed":e.mixed}]])},null,2))),128))],64))),128))]),(q(!0),J(K,null,za(N.value,e=>(q(),J(K,{key:e.key},[X(`div`,{class:qe([`constraint-toggles`,`constraint-toggles-${e.key}`]),"data-layout-axis":e.key},[(q(!0),J(K,null,za(e.items,t=>(q(),J(`label`,{key:t.key,title:`${f[t.key]} · ${e.hint}`},[X(`input`,{type:`checkbox`,"data-layout-toggle":t.key,"aria-label":`启用${f[t.key]}约束`,checked:t.checked,indeterminate:t.mixed,disabled:e.disabled,onChange:n=>fe(e,t.key,n.target.checked)},null,40,xy),X(`span`,null,R(t.label),1)],8,by))),128))],10,yy),X(`div`,{class:qe([`constraint-values`,`constraint-values-${e.key}`])},[(q(!0),J(K,null,za(e.items,e=>(q(),J(`div`,{key:e.key,class:`property-value`},[e.field?Wr((q(),J(`input`,{key:0,"onUpdate:modelValue":t=>T[e.key]=t,type:`number`,step:`any`,"data-prop":e.key,"aria-label":f[e.key],title:e.field.hint,class:qe({"is-overridden":e.field.overridden}),disabled:!!e.field.binding,placeholder:e.field.mixed?`混合值`:`未设置`,onInput:t=>Oe(e.field),onChange:t=>L(e.field,t),onBlur:t=>L(e.field,t),onKeydown:Mu(t=>{L(e.field,t),t.currentTarget.blur()},[`enter`])},null,42,Sy)),[[gu,T[e.key]]]):(q(),J(`input`,{key:1,type:`text`,disabled:``,placeholder:`绑定`,"aria-label":f[e.key]},null,8,Cy)),e.field?.binding?(q(),J(`button`,{key:2,type:`button`,class:`constraint-unbind`,"data-unbind-prop":e.key,title:`解除 ${e.key} 的绑定:${e.field.binding.path.join(`.`)}`,"aria-label":`解除 ${e.key} 的绑定`,onClick:t=>Fe(e.field)},[Z(V(Af),{size:11})],8,wy)):Zs(``,!0)]))),128))],2)],64))),128))]),n[7]||=X(`p`,{class:`constraint-help`},`勾选保持位置 · 快捷按钮贴边 / 居中 / 铺满`,-1),be.value.some(e=>e.overridden)?(q(),J(`p`,Ty,`居中偏移未生效:同轴边距优先`)):Zs(``,!0)])):Zs(``,!0),e.key===`transform`&&A.value?(q(),J(`div`,Ey,[n[8]||=X(`strong`,null,`布局已接管`,-1),X(`span`,null,R(A.value)+`。请在「布局」中调整对应约束。`,1)])):Zs(``,!0),(q(!0),J(K,null,za(e.key===`layout`?[]:e.rows,e=>(q(),J(`div`,{key:e.key,class:qe([`property-row`,{"is-paired":e.fields.length===2}]),"data-field-row":e.key},[(q(!0),J(K,null,za(e.fields,e=>(q(),J(`label`,{key:e.key,class:qe([`property-field`,{"is-image-drop-candidate":Ie(e)}]),"data-asset-drop-prop":e.resource===`image`?e.key:void 0,onPointerup:t=>Le(e)},[X(`span`,{class:qe({inherited:!e.explicit}),title:e.layoutControlled?`由布局属性控制,请修改布局字段`:void 0},R(e.label??e.key),11,ky),X(`div`,Ay,[X(`div`,jy,[e.type===`number`?Wr((q(),J(`input`,{key:0,"data-prop":e.key,"onUpdate:modelValue":t=>T[e.key]=t,disabled:!!e.binding||e.layoutControlled,title:e.layoutControlled?`由布局属性控制,请修改布局字段`:void 0,placeholder:e.mixed?`混合值`:void 0,type:`number`,step:`any`,onInput:t=>Oe(e),onChange:t=>L(e),onBlur:t=>L(e),onKeydown:Mu(t=>{L(e),t.currentTarget.blur()},[`enter`])},null,40,My)),[[gu,T[e.key]]]):e.type===`color`?Wr((q(),J(`input`,{key:1,"data-prop":e.key,"onUpdate:modelValue":t=>T[e.key]=t,disabled:!!e.binding||e.layoutControlled,type:e.mixed?`text`:`color`,placeholder:e.mixed?`混合值(#RRGGBB)`:void 0,onInput:t=>Oe(e),onChange:t=>L(e),onBlur:t=>L(e)},null,40,Ny)),[[wu,T[e.key]]]):e.type===`boolean`?Wr((q(),J(`input`,{key:2,"data-prop":e.key,"onUpdate:modelValue":t=>T[e.key]=t,disabled:!!e.binding||e.layoutControlled,type:`checkbox`,indeterminate:e.mixed&&!V(E).has(e.key),onChange:t=>{Oe(e),L(e)}},null,40,Py)),[[_u,T[e.key]]]):e.type===`enum`?Wr((q(),J(`select`,{key:3,"data-prop":e.key,"onUpdate:modelValue":t=>T[e.key]=t,disabled:!!e.binding||e.layoutControlled,onChange:t=>{Oe(e),L(e)}},[e.mixed&&!V(E).has(e.key)?(q(),J(`option`,Iy,`混合值`)):Zs(``,!0),(q(!0),J(K,null,za(e.options,e=>(q(),J(`option`,{key:e,value:e},R(e),9,Ly))),128))],40,Fy)),[[bu,T[e.key]]]):Wr((q(),J(`input`,{key:4,"data-prop":e.key,"onUpdate:modelValue":t=>T[e.key]=t,disabled:!!e.binding||e.layoutControlled,class:qe({"resource-reference":e.resource===`image`&&typeof e.value==`string`&&!!e.value}),title:e.resource===`image`&&typeof e.value==`string`&&e.value?`点击定位素材`:void 0,placeholder:e.mixed?`混合值`:void 0,type:`text`,onClick:t=>ke(e),onInput:t=>Oe(e),onChange:t=>L(e),onBlur:t=>L(e),onKeydown:Mu(t=>{L(e),t.currentTarget.blur()},[`enter`])},null,42,Ry)),[[gu,T[e.key]]]),e.binding?(q(),J(`span`,{key:5,class:`binding-source`,"data-binding-source":e.key},[Z(V(uf),{size:11}),Ys(`绑定:`+R(e.binding.path.join(`.`)),1)],8,zy)):Zs(``,!0)]),e.binding?(q(),J(`button`,{key:0,class:`reset-button`,type:`button`,"data-unbind-prop":e.key,title:`解除 ${e.key} 的绑定`,"aria-label":`解除 ${e.key} 的绑定`,onClick:t=>Fe(e)},[Z(V(Af),{size:13})],8,By)):(q(),J(`button`,{key:1,class:`reset-button`,disabled:!e.explicit||e.layoutControlled,type:`button`,title:`重置 ${e.key}`,"aria-label":`重置 ${e.key}`,onClick:t=>Me(e)},[Z(V(xf),{size:13})],8,Vy))])],42,Oy))),128))],10,Dy))),128))],8,fy))),128)),xe.value.length&&!se.value?(q(),J(`details`,Hy,[X(`summary`,Uy,R(ae.value?.kind===`sceneInstance`?`对外事件`:`节点事件`),1),(q(!0),J(K,null,za(xe.value,e=>(q(),J(`div`,{key:e,class:`property-row`,"data-event-row":e},[X(`label`,Gy,[X(`span`,{class:qe({inherited:!F.value[e]})},R(e),3),X(`div`,Ky,[X(`div`,qy,[Wr(X(`input`,{"onUpdate:modelValue":t=>re[e]=t,"aria-label":`${e} Action`,"data-event":e,type:`text`,autocomplete:`off`,spellcheck:`false`,placeholder:`Action 名称`,onChange:t=>Pe(e),onBlur:t=>Pe(e),onKeydown:Mu(t=>{Pe(e),t.currentTarget.blur()},[`enter`])},null,40,Jy),[[gu,re[e]]])]),X(`button`,{type:`button`,class:`reset-button`,disabled:!F.value[e],title:`清除 ${e} 绑定`,"aria-label":`清除 ${e} 绑定`,onClick:t=>{re[e]=``,Pe(e)}},[Z(V(xf),{size:13})],8,Yy)])])],8,Wy))),128))])):Zs(``,!0)])),ne.value||D.message?(q(),J(`p`,Xy,R(ne.value||D.message),1)):Zs(``,!0)]))}});function Qy(e,t,n=[]){return e===t||e!==void 0&&n.includes(t)&&n.includes(e)}function $y(e,t){let n=t;for(;n;){if(n===e)return!0;n=n.parent}return!1}function eb(e,t,n){let r=new Map;for(let[e,n]of t)r.set(n,e);let i=[];return Sb(e,n,r,i),i}function tb(e,t,n,r){if(e.length===0)return;let i=n!==void 0&&wb(n.point,t)&&Eb(n.candidates,e)&&r===n.candidates[n.index]?(n.index+1)%e.length:0;return{locator:e[i],cycle:{candidates:[...e],index:i,point:Tb(t)}}}var nb={center:`horizontal`,end:`right`,position:`x`,size:`width`,start:`left`},rb={center:`vertical`,end:`bottom`,position:`y`,size:`height`,start:`top`},ib=new Set([`GridContainer`,`HBoxContainer`,`VBoxContainer`]),ab=.1,ob=4,sb=.002;function cb(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 lb(e,t){return{scale:e.scale,x:e.x+t.x,y:e.y+t.y}}function ub(e,t,n){return lb(e,{x:(n.width-t.width)/2,y:(n.height-t.height)/2})}function db(e,t,n){let r=Math.min(ob,Math.max(ab,e.scale*Math.exp(-n*sb))),i=r/e.scale;return{scale:r,x:t.x-(t.x-e.x)*i,y:t.y-(t.y-e.y)*i}}function fb(e,t,n,r){let i=r===`y`?0:n.x,a=r===`x`?0:n.y,o=vb(e,nb,t.x,t.width,t.x+i,t.width),s=vb(e,rb,t.y,t.height,t.y+a,t.height);return o&&s?[...o,...s]:void 0}function pb(e,t,n,r){let i=_b(t.x,t.width,n.includes(`w`)?r.x:0,n.includes(`e`)?r.x:0),a=_b(t.y,t.height,n.includes(`n`)?r.y:0,n.includes(`s`)?r.y:0),o=vb(e,nb,t.x,t.width,i.position,i.size),s=vb(e,rb,t.y,t.height,a.position,a.size);return o&&s?[...o,...s]:void 0}function mb(e,t,n){let r=vb(e,nb,t.x,t.width,n.x,n.width),i=vb(e,rb,t.y,t.height,n.y,n.height);return r&&i?[...r,...i]:void 0}function hb(e,t,n,r){if(n!==`e`&&n!==`s`&&n!==`se`)return;let i=[];if(!(n.includes(`e`)&&!bb(i,e,`width`,Math.max(1,t.width+r.x),t.width))&&!(n.includes(`s`)&&!bb(i,e,`height`,Math.max(1,t.height+r.y),t.height)))return i}function gb(e,t){let n=gv(e.children,t);if(!n||n.parentLocator===`__scene__`)return!1;let r=gv(e.children,n.parentLocator)?.node;return r?.kind===`pixi`&&ib.has(r.type)}function _b(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 vb(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&&!yb(f,e,t.start,o)?void 0:u?c!==0&&!yb(f,e,t.end,-c)?void 0:f:s!==0&&!bb(f,e,t.size,a,r)?void 0:f;if(u)return c!==0&&!yb(f,e,t.end,-c)||s!==0&&!bb(f,e,t.size,a,r)?void 0:f;if(d){let n=o+s/2;return n!==0&&!yb(f,e,t.center,n)||s!==0&&!bb(f,e,t.size,a,r)?void 0:f}if(!(o!==0&&!bb(f,e,t.position,i,n))&&!(s!==0&&!bb(f,e,t.size,a,r)))return f}function yb(e,t,n,r){let i=t[n];if(typeof i!=`number`)return!1;let a=xb(i+r);return a!==i&&e.push({prop:n,value:a}),!0}function bb(e,t,n,r,i){let a=t[n];if(c(a))return!1;let o=xb(r);return o!==xb(i)&&e.push({prop:n,value:o}),!0}function xb(e){return Math.round(e*100)/100}function Sb(e,t,n,r){if(e.destroyed||!e.visible||!e.renderable||!e.measurable||e.hitArea&&!Cb(e,t))return;e.sortableChildren&&e.sortChildren();for(let i=e.children.length-1;i>=0;--i)Sb(e.children[i],t,n,r);let i=n.get(e);i&&Cb(e,t)&&r.push(i)}function Cb(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 wb(e,t){return Tb(e).x===Tb(t).x&&Tb(e).y===Tb(t).y}function Tb(e){return{x:Math.round(e.x*100)/100,y:Math.round(e.y*100)/100}}function Eb(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var Db=new Set([`width`,`height`,`shape`,`radius`,`fill`,`fillAlpha`,`strokeColor`,`strokeWidth`,`strokeAlpha`]);function Ob(e,t,n){let r={...b(`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 kb(e,t){let n=e=>e[t.axis],r=e=>t.axis===`x`?e.width:e.height,i=e=>n(e)+(t.kind===`space`||t.anchor===`start`?0:t.anchor===`center`?r(e)/2:r(e)),a=e.map(()=>0);if(t.kind===`align`){let o=Math.min(...e.map(n)),s=Math.max(...e.map(e=>n(e)+r(e))),c=t.anchor===`start`?o:t.anchor===`center`?(o+s)/2:s;e.forEach((e,t)=>{a[t]=c-i(e)})}else{let o=e.map((e,t)=>({item:e,index:t})).sort((e,r)=>(t.kind===`space`?n(e.item)-n(r.item):i(e.item)-i(r.item))||e.index-r.index);if(t.kind===`distribute`){let e=i(o[0].item),t=(i(o.at(-1).item)-e)/(o.length-1);o.slice(1,-1).forEach(({item:n,index:r},o)=>{a[r]=e+t*(o+1)-i(n)})}else{let e=o[0].item,t=o.at(-1).item,i=(n(t)+r(t)-n(e)-o.reduce((e,{item:t})=>e+r(t),0))/(o.length-1),s=n(e)+r(e)+i;o.slice(1,-1).forEach(({item:e,index:t})=>{a[t]=s-n(e),s+=r(e)+i})}}return a.map(e=>t.axis===`x`?{x:e,y:0}:{x:0,y:e})}function Ab(e,t){let n=jb(e),r=jb(t);if(!(!n||!r)&&!n.some(e=>e.value===void 0&&s.some(t=>t===e.prop))&&![...n,...r].some(e=>c(e.value)||y(e.prop)?.resource!==void 0))return n}function jb(e){if(e.op===`setNodeProp`)return[e];if(!(e.op!==`batch`||!e.commands.every(e=>e.op===`setNodeProp`)))return e.commands}var Mb={key:0,class:`canvas-status`},Nb={class:`canvas-tools canvas-mode-tools`,role:`group`,"aria-label":`画布工具`},Pb=[`aria-pressed`],Fb=[`aria-pressed`],Ib=[`aria-pressed`],Lb={class:`canvas-layout-heading`},Rb=[`aria-label`],zb=[`title`],Bb=[`aria-label`,`disabled`,`onClick`],Vb={class:`canvas-tools canvas-view-tools`},Hb={key:0,class:`canvas-view-size`,title:`Scene 设计尺寸`},Ub={key:1,class:`canvas-view-zoom`,title:`画布缩放比例`},Wb=[`disabled`],Gb=W({__name:`SceneCanvas`,props:{document:{},draggedAsset:{},projectTree:{},sceneInterfaces:{},selected:{},selections:{},revision:{}},emits:[`assetDrop`,`openScene`,`previewState`,`select`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=B(),o=B(!1),s=B(!1),c=B(!1),l=B(`resize`),u=B(`正在初始化画布`),f=B(100),p=B(``),m=B(!1),g=[{label:`对齐`,actions:[{kind:`align`,axis:`y`,anchor:`start`,label:`顶部对齐`,icon:Ud},{kind:`align`,axis:`y`,anchor:`center`,label:`垂直居中对齐`,icon:Fd},{kind:`align`,axis:`y`,anchor:`end`,label:`底部对齐`,icon:Ld},{kind:`align`,axis:`x`,anchor:`start`,label:`左侧对齐`,icon:Wd},{kind:`align`,axis:`x`,anchor:`center`,label:`水平居中对齐`,icon:Id},{kind:`align`,axis:`x`,anchor:`end`,label:`右侧对齐`,icon:Rd}]},{label:`按线分布`,actions:[{kind:`distribute`,axis:`y`,anchor:`start`,label:`按顶部边缘均匀分布`,icon:qd},{kind:`distribute`,axis:`y`,anchor:`center`,label:`按垂直中心线均匀分布`,icon:Gd},{kind:`distribute`,axis:`y`,anchor:`end`,label:`按底部边缘均匀分布`,icon:Kd},{kind:`distribute`,axis:`x`,anchor:`start`,label:`按左侧边缘均匀分布`,icon:Bd},{kind:`distribute`,axis:`x`,anchor:`center`,label:`按水平中心线均匀分布`,icon:zd},{kind:`distribute`,axis:`x`,anchor:`end`,label:`按右侧边缘均匀分布`,icon:Vd}]},{label:`等空白间距`,actions:[{kind:`space`,axis:`y`,label:`垂直空白等间距`,icon:Jd},{kind:`space`,axis:`x`,label:`水平空白等间距`,icon:Hd}]}],_,v,y,C,ee,T,D,se,ce,le=0,O,k,ue,de,fe,pe=!1,me,A=new Map,he=new Map,ge=[`nw`,`n`,`ne`,`e`,`se`,`s`,`sw`,`w`],j={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 M(){let e=a.value.getBoundingClientRect();return{width:Math.max(1,Math.floor(e.width||960)),height:Math.max(1,Math.floor(e.height||540))}}function _e(){!y||!D||(y.root.scale.set(D.scale),y.root.position.set(D.x,D.y),f.value=Math.round(D.scale*100),mt())}function ve(){return D?{...D}:void 0}function ye(e){D={...e},_e()}async function be(){if(!_||!y||!C)throw Error(`Authoring preview is not ready.`);let e=y,t=C;return{path:t.path,revision:t.version,width:e.width,height:e.height,dataUrl:await ae(_,e)}}function N(e){let t=y?.nodes.get(e);if(!(!t?.parent||!r.document||gb(r.document.template,e)))return{...I(t),parentWidth:t.parent.width,parentHeight:t.parent.height}}t({cancelCurrentInteraction:$e,captureScreenshot:be,captureView:ve,restoreView:ye,readLayoutFrame:N});function P(){!y||!a.value||(D=cb(ce??M(),y),_e())}function xe(e,t){if(!_||!a.value)return;let n=a.value.getBoundingClientRect();return{x:(e-n.left)*_.screen.width/n.width,y:(t-n.top)*_.screen.height/n.height}}function F(e){if(!y||!a.value||!D)return;let t=a.value.getBoundingClientRect(),n=xe(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;D=db(D,n,r),_e()}async function Se(){let e=++le,t=r.document,n=r.projectTree;if(!(!_||!t||!n)){se!==t.path&&(se=t.path,D=void 0,p.value=``),u.value=`正在构建 Scene`,i(`previewState`,`loading`);try{let a=await te({document:{template:t.template,sceneInterfaces:r.sceneInterfaces??{}},projectTree:n,scenePath:t.path});if(e!==le){re(a);return}y&&(_.stage.removeChild(y.root),re(y)),y=a,p.value=`${a.width} × ${a.height}`,C=t,me=void 0;for(let[e,n]of y.nodes)n.eventMode=`static`,n.cursor=je(e,n,`xy`)?`move`:`default`,n.on(`pointerdown`,t=>Ue(e,n,t)),n.on(`click`,n=>Ce(e,n,t));_.stage.addChild(y.root),O&&_.stage.addChild(O),D?_e():P(),u.value=``,i(`previewState`,`ready`)}catch(t){if(e!==le)return;u.value=t instanceof Error?t.message:String(t),i(`previewState`,`error`)}}}function Ce(e,t,n){if(l.value===`pan`)return;if(pe){t.stopPropagation();return}t.stopPropagation();let a={x:t.global.x,y:t.global.y},o=y?eb(y.root,y.nodes,a):[],s=tb(o.length>0?o:[e],a,me,r.selected);if(!s)return;if(me=s.cycle,t.metaKey||t.ctrlKey){let e=r.selections.includes(s.locator)?r.selections.filter(e=>e!==s.locator):[...r.selections,s.locator];i(`select`,{locators:e,primary:e.includes(s.locator)?s.locator:e.at(-1)})}else i(`select`,{locators:[s.locator],primary:s.locator});let c=hv(n.template.children,s.locator);t.detail===2&&s.locator===r.selected&&c?.kind===`sceneInstance`&&i(`openScene`,c.scene)}function we(e,t,n){if(n!==void 0||!r.document)return n;let i=hv(r.document.template.children,e);if(i?.kind===`pixi`&&h(i.type))return b(i.type)[t]??Te(t);if(i?.kind===`sceneInstance`){let e=r.sceneInterfaces?.[d(r.document.path,i.scene)]?.props[t];if(e)return e.type===`struct`?void 0:e.default}return Te(t)}function Te(e){return e===`visible`?!0:e===`alpha`||e===`scaleX`||e===`scaleY`?1:e===`cursor`?`default`:e===`eventMode`?`passive`:0}function Ee(e,t,n){let i=y?.nodes.get(e);if(!i)return;let a=we(e,t,n),o=r.document?hv(r.document.template.children,e):void 0;if(i instanceof ie&&o?.kind===`pixi`&&o.type===`Graphics`&&Db.has(t))Ob(i,o.props,{[t]:a});else if(t===`x`||t===`y`)i.position[t]=Number(a);else if(t===`scaleX`||t===`scaleY`)i.scale[t===`scaleX`?`x`:`y`]=Number(a);else if(t===`pivotX`||t===`pivotY`)i.pivot[t===`pivotX`?`x`:`y`]=Number(a);else if(t===`skewX`||t===`skewY`)i.skew[t===`skewX`?`x`:`y`]=Number(a);else if([`left`,`right`,`top`,`bottom`,`horizontal`,`vertical`].includes(t))ne(i,{...w(i),[t]:n});else if([`fontSize`,`fontFamily`,`fontWeight`,`fill`].includes(t)&&`style`in i){let e=i.style;e[t]=a}else if(t===`anchorX`||t===`anchorY`){let e=i.anchor;e&&(e[t===`anchorX`?`x`:`y`]=Number(a))}else if(t===`tilePositionX`||t===`tilePositionY`){let e=i.tilePosition;e&&(e[t===`tilePositionX`?`x`:`y`]=Number(a))}else if(t===`tileScaleX`||t===`tileScaleY`){let e=i.tileScale;e&&(e[t===`tileScaleX`?`x`:`y`]=Number(a))}else i[t]=a;i.parent&&S(i.parent),mt()}function De(e,t){let n=Ab(e,t);if(!n){Se();return}for(let e of n)Ee(e.node,e.prop,e.value)}function Oe(e){e.type===`nodePropPreview`?Ee(e.locator,e.prop,e.value):e.type===`commandApplied`&&De(e.command,e.inverse)}function ke(e=r.selected){return e?y?.nodes.get(e):void 0}function Ae(e=r.selected){return r.document&&e?hv(r.document.template.children,e):void 0}function I(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}function je(e,t,n){let i=Ae(e);return!r.document||!i||i.kind===`slotOutlet`||gb(r.document.template,e)?!1:fb(i.props,I(t),{x:1,y:1},n)!==void 0}function L(e,t,n){let i=Ae(e);if(!r.document||!i||i.kind===`slotOutlet`||t.rotation!==0||t.skew.x!==0||t.skew.y!==0)return!1;let a={x:n.includes(`w`)||n.includes(`e`)?1:0,y:n.includes(`n`)||n.includes(`s`)?1:0};return(gb(r.document.template,e)?hb:pb)(i.props,I(t),n,a)!==void 0}function Me(){return!r.document||!y?[]:Ov(r.document.template.children,r.selections).flatMap(e=>{let t=y.nodes.get(e.locator);return t?[{locator:e.locator,target:t}]:[]})}function Ne(e){let t=e.map(({target:e})=>e.getBounds());if(t.length===0)return;let n=Math.min(...t.map(e=>e.minX)),r=Math.min(...t.map(e=>e.minY)),i=Math.max(...t.map(e=>e.maxX)),a=Math.max(...t.map(e=>e.maxY));if([n,r,i,a].every(Number.isFinite))return{x:n,y:r,width:i-n,height:a-r}}function Pe(e){let t=r.document;if(!t||!y||C!==t||u.value)return{commands:[],reason:`画布预览尚未就绪`};let n=Ov(t.template.children,r.selections),i=e.kind===`align`?2:3;if(n.length<i)return{commands:[],reason:`需要至少选择 ${i} 个可独立移动的节点`};let a=n.map(({locator:e,node:t})=>({locator:e,node:t,target:y.nodes.get(e)}));if(a.some(({locator:e,node:n,target:r})=>!r||!r.parent||n.kind===`slotOutlet`||gb(t.template,e)))return{commands:[],reason:`选区包含无法独立移动的节点`};let o=a.map(({target:e})=>e.getBounds());if(o.some(({minX:e,minY:t,maxX:n,maxY:r})=>![e,t,n,r].every(Number.isFinite)))return{commands:[],reason:`无法获取选中节点的画布边界`};let s=kb(o.map(({minX:e,minY:t,maxX:n,maxY:r})=>({x:e,y:t,width:n-e,height:r-t})),e),c=[];for(let[e,{locator:t,node:n,target:r}]of a.entries()){if(!r||!r.parent||n.kind===`slotOutlet`)return{commands:[],reason:`选区包含无法独立移动的节点`};let i=s[e];if(i.x===0&&i.y===0)continue;let a=r.parent.toGlobal(r.position),o=r.parent.toLocal({x:a.x+i.x,y:a.y+i.y}),l={x:o.x-r.x,y:o.y-r.y};if(![l.x,l.y].every(Number.isFinite))return{commands:[],reason:`无法换算节点的位置`};let u=fb(n.props,I(r),l,`xy`);if(!u)return{commands:[],reason:`选区包含无法修改位置属性的节点`};c.push(...u.map(({prop:e,value:n})=>({op:`setNodeProp`,node:t,prop:e,value:n})))}return c.length?{commands:c}:{commands:c,reason:`节点已在目标位置`}}async function Fe(e){let t=Pe(e);if(!(t.reason||!r.document)){m.value=!1;try{await r.document.commitCommand({op:`batch`,commands:t.commands})}catch(e){u.value=e instanceof Error?e.message:String(e)}}}function Ie(){let e=Me();return e.length>0&&e.length===Ov(r.document.template.children,r.selections).length&&e.every(({locator:e,target:t})=>je(e,t,`xy`))}function Le(e){let t=Me(),n=Ne(t);return t.length>0&&t.length===Ov(r.document.template.children,r.selections).length&&!!n&&n.width>0&&n.height>0&&t.every(({locator:t,target:n})=>{let i=n.parent,a=Ae(t);return!!i&&!!a&&a.kind!==`slotOutlet`&&Math.abs(i.worldTransform.b)<1e-6&&Math.abs(i.worldTransform.c)<1e-6&&!gb(r.document.template,t)&&L(t,n,e)&&mb(a.props,I(n),{x:n.x+(e.includes(`w`)||e.includes(`e`)?1:0),y:n.y+(e.includes(`n`)||e.includes(`s`)?1:0),width:n.width+(e.includes(`w`)||e.includes(`e`)?1:0),height:n.height+(e.includes(`n`)||e.includes(`s`)?1:0)})!==void 0})}function Re(e,t){let n=r.document;if(!n||!_||(t.mode===`move`?!Ie():!Le(t.handle)))return;let i=Me(),a=Ne(i);a&&(Qe(),fe={document:n,mode:t.mode,axis:t.mode===`move`?t.axis:void 0,handle:t.mode===`resize`?t.handle:void 0,pointerId:e.pointerId,start:{x:e.global.x,y:e.global.y},bounds:a,targets:i.map(({locator:e,target:t})=>({locator:e,target:t,geometry:I(t),props:{...Ae(e).props},origin:t.parent.toGlobal(t.position),previewed:new Set,changes:[]}))},_.canvas.style.cursor=t.mode===`resize`?j[t.handle]:t.axis===`x`?`ew-resize`:t.axis===`y`?`ns-resize`:`move`)}function ze(e){let t=fe;if(!t||e.pointerId!==t.pointerId)return;let n=e.global.x-t.start.x,r=e.global.y-t.start.y;(n!==0||r!==0)&&(pe=!0);let i=t.bounds,a=i.x,o=i.y,s=i.x+i.width,c=i.y+i.height;t.mode===`resize`&&(t.handle.includes(`w`)&&(a=Math.min(s-1,a+n)),t.handle.includes(`e`)&&(s=Math.max(a+1,s+n)),t.handle.includes(`n`)&&(o=Math.min(c-1,o+r)),t.handle.includes(`s`)&&(c=Math.max(o+1,c+r)));let l=(s-a)/i.width,u=(c-o)/i.height;for(let e of t.targets){let s=e.target.parent,c;if(t.mode===`move`){let i=t.axis===`y`?0:n,a=t.axis===`x`?0:r,o=s.toLocal(t.start),l=s.toLocal({x:t.start.x+i,y:t.start.y+a});c=fb(e.props,e.geometry,{x:l.x-o.x,y:l.y-o.y},`xy`)}else{let t=s.toLocal({x:a+(e.origin.x-i.x)*l,y:o+(e.origin.y-i.y)*u});c=mb(e.props,e.geometry,{x:t.x,y:t.y,width:e.geometry.width*l,height:e.geometry.height*u})}if(!c)return;let d=new Set(c.map(e=>e.prop));for(let n of e.previewed)d.has(n)||t.document.previewNodeProp(e.locator,n,Be(e,n));for(let n of c)t.document.previewNodeProp(e.locator,n.prop,n.value);e.previewed=d,e.changes=c}mt()}function Be(e,t){let n=e.props[t];return n===void 0?t===`x`?e.geometry.x:t===`y`?e.geometry.y:t===`width`?e.geometry.width:t===`height`?e.geometry.height:void 0:n}async function Ve(){let e=fe;if(!e)return;fe=void 0,et(),window.setTimeout(()=>{pe=!1},0);let t=e.targets.flatMap(e=>e.changes.map(t=>({op:`setNodeProp`,node:e.locator,prop:t.prop,value:t.value})));if(t.length!==0)try{await e.document.commitCommand({op:`batch`,commands:t})}catch(e){u.value=e instanceof Error?e.message:String(e)}}function He(){let e=fe;if(e){fe=void 0,window.setTimeout(()=>{pe=!1},0);for(let t of e.targets)for(let n of t.previewed)e.document.previewNodeProp(t.locator,n,Be(t,n));et(),mt()}}function Ue(e,t,n){if(l.value===`pan`||c.value||s.value||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||!$y(t,n.target))return;let i={x:n.global.x,y:n.global.y},a=y?eb(y.root,y.nodes,i):[];if(r.selections.length>1&&r.selections.includes(e)){n.stopPropagation(),Re(n,{mode:`move`,axis:`xy`});return}if(!Qy(r.selected,e,a))return;n.stopPropagation();let o=r.selected;if(!o)return;let u=ke(o);if(!u||!je(o,u,`xy`)){mt(o);return}Ke(o,u,n,{mode:`move`,axis:`xy`})}function We(e,t){if(l.value!==`move`||c.value||s.value||(t.stopPropagation(),t.button!==0||!r.selected))return;if(r.selections.length>1){Re(t,{mode:`move`,axis:e});return}let n=ke();!n||!je(r.selected,n,e)||Ke(r.selected,n,t,{mode:`move`,axis:e})}function Ge(e,t){if(l.value!==`resize`||c.value||s.value||(t.stopPropagation(),t.button!==0||!r.selected))return;if(r.selections.length>1){Re(t,{mode:`resize`,handle:e});return}let n=ke();!n||!L(r.selected,n,e)||Ke(r.selected,n,t,{mode:`resize`,handle:e})}function Ke(e,t,n,i){let a=r.document,o=Ae(e);if(!a||!o||o.kind===`slotOutlet`||!t.parent||!_)return;Qe();let s=t.parent.toLocal(n.global);de={changes:[],document:a,geometry:I(t),...i,locator:e,parent:t.parent,pointerId:n.pointerId,positionManaged:gb(a.template,e),previewed:new Set,props:{...o.props},start:{x:s.x,y:s.y}},_.canvas.style.cursor=i.mode===`move`?i.axis===`x`?`ew-resize`:i.axis===`y`?`ns-resize`:`move`:j[i.handle]}function Je(e){if(fe){ze(e);return}let t=de;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`?fb(t.props,t.geometry,r,t.axis):t.positionManaged?hb(t.props,t.geometry,t.handle,r):pb(t.props,t.geometry,t.handle,r);i&&Ye(t,i)}function Ye(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,Xe(e,t));for(let n of t)e.document.previewNodeProp(e.locator,n.prop,n.value);e.previewed=n,e.changes=t,mt(e.locator)}function Xe(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 Ze(){let e=de;if(!e||(de=void 0,et(),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){u.value=e instanceof Error?e.message:String(e)}}function Qe(){He();let e=de;if(e){de=void 0;for(let t of e.previewed)e.document.previewNodeProp(e.locator,t,Xe(e,t));et(),mt()}}function $e(){let e=!!de||!!fe||!!v||c.value;return Qe(),at(),c.value=!1,e}function et(){_&&(_.canvas.style.cursor=``)}function tt(e){l.value!==e&&(Qe(),at(),l.value=e,mt())}function nt(e){let t=e.target;t instanceof Element&&t.closest(`.canvas-tools`)||!(e.button===1||e.button===2||e.button===0&&(c.value||l.value===`pan`))||!D||(e.preventDefault(),e.stopPropagation(),Qe(),v={pointerId:e.pointerId,start:xe(e.clientX,e.clientY),view:{...D}},s.value=!0,a.value.setPointerCapture(e.pointerId))}function rt(e){let t=e.target;t instanceof Element&&t.closest(`.canvas-tools`)||e.preventDefault()}function it(e){let t=v;if(!t||e.pointerId!==t.pointerId)return;let n=xe(e.clientX,e.clientY);D=lb(t.view,{x:n.x-t.start.x,y:n.y-t.start.y}),_e()}function at(){let e=v;e&&(a.value?.hasPointerCapture(e.pointerId)&&a.value.releasePointerCapture(e.pointerId),v=void 0,s.value=!1)}function ot(e){if(e.code!==`Space`||!o.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(),c.value=!0)}function st(e){e.code!==`Space`||!c.value||(e.preventDefault(),c.value=!1)}function ct(){c.value=!1,at(),Qe()}function lt(e){if(!y)return;let t=y.root.toLocal(xe(e.clientX,e.clientY));if(!(t.x<0||t.y<0||t.x>y.width||t.y>y.height))return{x:Math.round(t.x*100)/100,y:Math.round(t.y*100)/100}}async function ut(e){let t=e.target;if(t instanceof Element&&t.closest(`.canvas-tools`)||e.pointerId===v?.pointerId)return;let n=r.draggedAsset,a=r.document,o=lt(e);if(!n||!a||!o){i(`assetDrop`);return}try{await a.commitCommand({op:`insertNode`,parent:`__scene__`,node:Ev(a.template,n,o)})}catch(e){u.value=e instanceof Error?e.message:String(e)}finally{i(`assetDrop`)}}function dt(e){e.pointerId===v?.pointerId?at():e.pointerId===fe?.pointerId?Ve():e.pointerId===de?.pointerId&&Ze()}function ft(e){e.pointerId===v?.pointerId?at():(e.pointerId===fe?.pointerId||e.pointerId===de?.pointerId)&&Qe()}function pt(){O=new x,O.eventMode=`passive`,k=new ie,k.eventMode=`none`,O.addChild(k),ue=new ie,ue.eventMode=`none`,O.addChild(ue);for(let e of ge){let t=new ie().rect(-4,-4,8,8).fill(855827).stroke({color:5017087,width:1});t.eventMode=`static`,t.cursor=j[e],t.visible=!1,t.on(`pointerdown`,t=>Ge(e,t)),A.set(e,t),O.addChild(t)}let e=new ie().moveTo(10,0).lineTo(54,0).stroke({color:15690084,width:3,cap:`round`}).poly([54,-7,68,0,54,7],!0).fill(15690084);e.hitArea=new oe(8,-11,62,22);let t=new ie().moveTo(0,-10).lineTo(0,-54).stroke({color:6408832,width:3,cap:`round`}).poly([-7,-54,0,-68,7,-54],!0).fill(6408832);t.hitArea=new oe(-11,-70,22,62);let n=new ie().rect(-8,-8,16,16).fill(16054268).stroke({color:2502974,width:2});for(let[r,i]of[[`x`,e],[`y`,t],[`xy`,n]])i.eventMode=`static`,i.cursor=r===`x`?`ew-resize`:r===`y`?`ns-resize`:`move`,i.visible=!1,i.on(`pointerdown`,e=>We(r,e)),he.set(r,i),O.addChild(i);_.stage.addChild(O)}function mt(e=r.selected){if(!k)return;if(ue?.clear(),r.selections.length>1){let e=Ne(Me());if(!e){k.visible=!1;for(let e of A.values())e.visible=!1;for(let e of he.values())e.visible=!1;return}for(let e of r.selections){let t=ke(e);if(!t)continue;let n=t.getBounds();ue?.rect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY).stroke({color:5017087,width:1,alpha:.6})}let{x:t,y:n,width:i,height:a}=e;k.clear().rect(t,n,i,a).stroke({color:5017087,width:1}),k.visible=!0;let o={nw:{x:t,y:n},n:{x:t+i/2,y:n},ne:{x:t+i,y:n},e:{x:t+i,y:n+a/2},se:{x:t+i,y:n+a},s:{x:t+i/2,y:n+a},sw:{x:t,y:n+a},w:{x:t,y:n+a/2}};for(let[e,t]of A)t.position.copyFrom(o[e]),t.visible=l.value===`resize`&&Le(e);for(let e of he.values())e.position.set(t+i/2,n+a/2),e.visible=l.value===`move`&&Ie();return}let t=ke(e);if(!t||!e||t.destroyed){k.visible=!1;for(let e of A.values())e.visible=!1;for(let e of he.values())e.visible=!1;return}let n=t.getBounds(),i=n.minX,a=n.minY,o=n.maxX-n.minX,s=n.maxY-n.minY;if(![i,a,o,s].every(Number.isFinite))return;k.clear().rect(i,a,o,s).stroke({color:5017087,width:1}),k.visible=!0;let c={nw:{x:i,y:a},n:{x:i+o/2,y:a},ne:{x:i+o,y:a},e:{x:i+o,y:a+s/2},se:{x:i+o,y:a+s},s:{x:i+o/2,y:a+s},sw:{x:i,y:a+s},w:{x:i,y:a+s/2}};for(let[n,r]of A)r.position.copyFrom(c[n]),r.visible=l.value===`resize`&&L(e,t,n);let u=t.parent?.toGlobal(t.position);for(let[n,r]of he)u&&r.position.copyFrom(u),r.visible=l.value===`move`&&!!u&&je(e,t,n)}return U(()=>r.document,e=>{Qe(),at(),T?.(),T=e?.subscribe(Oe),Se()},{immediate:!0}),U([()=>r.projectTree,()=>r.sceneInterfaces],()=>void Se()),U([()=>r.selected,()=>r.selections],()=>mt()),Sa(async()=>{_=new E;let e=M();ce=e,await _.init({width:e.width,height:e.height,backgroundAlpha:0,antialias:!0,autoDensity:!0,resolution:Math.min(window.devicePixelRatio||1,2)}),_.canvas.className=`scene-canvas`,a.value.appendChild(_.canvas),_.renderer.events.features.globalMove=!0,_.stage.eventMode=`static`,_.stage.hitArea=_.screen,_.stage.on(`globalpointermove`,Je),pt(),window.addEventListener(`pointermove`,it),window.addEventListener(`pointerup`,dt),window.addEventListener(`pointercancel`,ft),window.addEventListener(`keydown`,ot),window.addEventListener(`keyup`,st),window.addEventListener(`blur`,ct),ee=new ResizeObserver(()=>{if(!_)return;let e=M(),t=ce??e;ce=e,_.renderer.resize(e.width,e.height),_.stage.hitArea=_.screen,D&&=ub(D,t,e),_e()}),ee.observe(a.value),await Se()}),Ta(()=>{le+=1,de=void 0,fe=void 0,at(),window.removeEventListener(`pointermove`,it),window.removeEventListener(`pointerup`,dt),window.removeEventListener(`pointercancel`,ft),window.removeEventListener(`keydown`,ot),window.removeEventListener(`keyup`,st),window.removeEventListener(`blur`,ct),T?.(),ee?.disconnect(),y&&re(y),_?.destroy({removeView:!0},{children:!0})}),(t,n)=>(q(),J(`div`,{ref_key:`host`,ref:a,class:qe([`scene-canvas-host`,{"is-asset-drop-target":!!e.draggedAsset,"is-pan-ready":c.value||l.value===`pan`,"is-panning":s.value}]),onPointerdownCapture:nt,onPointerenter:n[4]||=e=>o.value=!0,onPointerleave:n[5]||=e=>o.value=!1,onPointerup:ut,onContextmenu:rt,onWheel:Au(F,[`prevent`])},[n[6]||=X(`div`,{class:`canvas-grid`},null,-1),u.value?(q(),J(`div`,Mb,R(u.value),1)):Zs(``,!0),X(`div`,Nb,[X(`button`,{type:`button`,title:`拖动画布`,"aria-label":`拖动画布`,"aria-pressed":l.value===`pan`,onClick:n[0]||=e=>tt(`pan`)},[Z(V(of),{size:15})],8,Pb),X(`button`,{type:`button`,title:`移动节点`,"aria-label":`移动节点`,"aria-pressed":l.value===`move`,onClick:n[1]||=e=>tt(`move`)},[Z(V(ff),{size:15})],8,Fb),X(`button`,{type:`button`,title:`调整大小(可拖动节点)`,"aria-label":`调整大小`,"aria-pressed":l.value===`resize`,onClick:n[2]||=e=>tt(`resize`)},[Z(V(Cf),{size:15})],8,Ib),Z(V(W_),{open:m.value,"onUpdate:open":n[3]||=e=>m.value=e},{default:H(()=>[Z(V(X_),{class:`canvas-layout-trigger`,type:`button`,title:`快捷布局`,"aria-label":`快捷布局`},{default:H(()=>[Z(V(lf),{size:15}),Z(V($d),{size:10})]),_:1}),Z(V(Y_),null,{default:H(()=>[Z(V(J_),{class:`canvas-layout-popover`,side:`bottom`,align:`start`,"side-offset":8},{default:H(()=>[(q(),J(K,null,za(g,e=>X(`div`,{key:e.label,class:`canvas-layout-group`},[X(`div`,Lb,R(e.label),1),X(`div`,{class:`canvas-layout-actions`,role:`group`,"aria-label":e.label},[(q(!0),J(K,null,za(e.actions,e=>(q(),J(`span`,{key:e.label,title:Pe(e).reason??e.label},[X(`button`,{type:`button`,"aria-label":e.label,disabled:!!Pe(e).reason,onClick:t=>Fe(e)},[(q(),Y(Fa(e.icon),{size:17}))],8,Bb)],8,zb))),128))],8,Rb)])),64))]),_:1})]),_:1})]),_:1},8,[`open`])]),X(`div`,Vb,[e.document&&p.value?(q(),J(`span`,Hb,R(p.value),1)):Zs(``,!0),e.document&&p.value?(q(),J(`span`,Ub,R(f.value)+`%`,1)):Zs(``,!0),X(`button`,{type:`button`,title:`适应窗口`,"aria-label":`适应窗口`,disabled:!e.document,onClick:P},[Z(V(wf),{size:15})],8,Wb)])],34))}}),Kb=class t{path;template;#e;#t=new m;#n=new Set;#r=Promise.resolve();#i=`synced`;#a;#o;#s=0;#c;constructor(t,n,r,i,a){this.path=t,this.template=e(n),this.#a=this.source,this.#o=a,this.#c=r,this.#e=i}static async open(e,n,r={}){let i=await n.readScene(e);return new t(i.path,i.source,i.version,n,r.autoSave??!1)}get source(){return T(this.template)}get syncState(){return this.#i}get dirty(){return this.source!==this.#a}get version(){return this.#c}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.#p({type:`nodePropPreview`,locator:e,prop:t,value:n})}async commitNodeProp(e,t,n){let r=hv(this.template.children,e);if(!r||r.kind===`slotOutlet`)throw Error(`Scene node "${e}" was not found.`);if(qb(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=hv(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={}){if((e.op===`setSceneProp`||e.op===`setSceneDefaultProp`)&&qb((e.op===`setSceneProp`?this.template.props:this.template.propDefaults)??{},e.prop)===e.value)return;let n=this.#t.execute(this.template,e,{},t);if(!n.ok)throw Error(n.error);return this.#p({type:`commandApplied`,command:n.command,inverse:n.inverse,selection:n.selection}),await this.#l(),n.selection}async undo(){let e=this.#t.undo(this.template);e?.ok&&(this.#p({type:`commandApplied`,command:e.command,inverse:e.inverse,selection:e.selection}),await this.#l())}async redo(){let e=this.#t.redo(this.template);e?.ok&&(this.#p({type:`commandApplied`,command:e.command,inverse:e.inverse,selection:e.selection}),await this.#l())}async setAutoSave(e){this.#o=e,e&&this.#i!==`conflict`&&(this.dirty||this.#s>0)&&await this.save()}async save(){!this.dirty&&this.#s===0||await this.#u()}async saveOverVersion(e){if(this.#i!==`conflict`)throw Error(`Scene is not in conflict.`);await this.#u(e)}async reloadIfChanged(){for(;;){let e=this.#r;if(await e,e!==this.#r)continue;if(this.#i!==`synced`)return;let n=await this.#e.readScene(this.path);if(e===this.#r)return this.#i!==`synced`||n.version===this.#c?void 0:new t(n.path,n.source,n.version,this.#e,this.#o)}}async#l(){this.#s===0&&(!this.dirty||this.#i!==`conflict`&&this.#i!==`error`)&&this.#f(this.dirty?`unsaved`:`synced`),this.#o&&this.#i!==`conflict`&&(this.dirty||this.#s>0)&&await this.save()}#u(e){let t=this.source;this.#s+=1,this.#f(`saving`);let n=this.#r.then(async()=>{try{await this.#d(t,e)}finally{--this.#s}});return this.#r=n.catch(()=>{}),n}async#d(e,t){try{let n=await this.#e.writeScene(this.path,e,t??this.#c);this.#c=n.version,this.#a=e,this.dirty||this.#t.markSaved(),this.#f(this.#s>1?`saving`:this.dirty?`unsaved`:`synced`)}catch(e){let t=typeof e==`object`&&e&&`status`in e?e.status:void 0;throw this.#f(t===409?`conflict`:`error`),e}}#f(e){this.#i=e,this.#p({type:`syncStateChanged`,state:e})}#p(e){for(let t of this.#n)t(e)}};function qb(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`&&!c(a)?a[r]:void 0}function Jb(e,t){if(!t)return{kind:`scene`};let n=gv(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 Yb=Td(`editorUi`,{state:()=>({currentScenePath:void 0,selectedLocator:void 0,selectedLocators:[],syncState:`synced`})}),Xb={key:0,class:`editor-session-standby`},Zb={class:`standby-context`},Qb=[`aria-label`,`disabled`],$b={key:0,class:`standby-error`},ex={class:`topbar`},tx={class:`brand`},nx=[`title`],rx={class:`history-tools`},ix=[`disabled`],ax=[`disabled`],ox=[`disabled`],sx=[`disabled`],cx=[`disabled`],lx=[`disabled`],ux=[`data-state`],dx=[`data-scene-tab`],fx=[`aria-label`,`aria-current`,`title`,`onClick`,`onPointerdown`],px={key:0,class:`scene-tab-status error`},mx={key:1,class:`scene-tab-status`},hx=[`aria-label`,`title`,`disabled`,`onClick`],gx={class:`workspace`},_x={class:`panel-title`},vx={class:`asset-panel-content`},yx={class:`left-panel-footer`},bx={class:`settings-option`},xx=[`checked`],Sx={class:`settings-theme`},Cx={class:`settings-theme-options`,role:`group`,"aria-label":`外观主题`},wx=[`aria-pressed`],Tx=[`aria-pressed`],Ex=[`aria-pressed`],Dx=[`tabindex`,`aria-disabled`,`aria-valuenow`],Ox={class:`panel-title`},kx={class:`hierarchy-panel-content`},Ax=[`tabindex`,`aria-disabled`,`aria-valuenow`],jx={class:`canvas-panel`,"aria-label":`Scene 画布`},Mx=[`tabindex`,`aria-disabled`,`aria-valuenow`],Nx={key:1,class:`panel-title`},Px={key:0,class:`global-error`},Fx={key:1,class:`editor-modal-backdrop`},Ix={class:`editor-modal-actions`},Lx=[`disabled`],Rx=[`disabled`],zx={key:2,class:`editor-modal-backdrop`},Bx={class:`conflict-sources`},Vx={class:`editor-modal-actions`};Bu(W({__name:`EditorApp`,setup(t){let{currentScenePath:a,selectedLocator:o,selectedLocators:s,syncState:c}=Ed(Yb()),l=B(),u=B(),f=B({}),m=Rn({}),h=B(0),v=B(),y=B(!1),b=B(`dark`),x=B(),S=Rn([]),w=B(),T=B(),E=B(),te,ne,D=!1,re,ie,ae=0,oe=B(0),se=Q(()=>{oe.value;let e=x.value,t=e&&o.value?hv(e.template.children,o.value):void 0;return t?.kind===`sceneInstance`?d(e.path,t.scene):void 0}),le=Q(()=>(oe.value,{...m.value,...Object.fromEntries(S.value.map(e=>[e.path,e.document.template.propDefaults??{}]))}));U([se,h],async([t])=>{if(!t||m.value[t]||S.value.some(e=>e.path===t))return;let n=je,r=h.value;try{let i=await _(t);if(n!==je||r!==h.value)return;m.value={...m.value,[t]:e(i.source).propDefaults??{}}}catch(e){n===je&&(O.value=e instanceof Error?e.message:String(e))}});let O=B(``),k=B(),ue=[],de=[{scope:`current`,label:`关闭当前`},{scope:`others`,label:`关闭其它`},{scope:`left`,label:`关闭左边`},{scope:`right`,label:`关闭右边`}],fe=B(),pe=B(),me=B(),A=B(),he=B(),ge=B(),j=B(!1),M=B(`loading`),_e=B(`connecting`),ve=B(``),ye=B(),be=B(),N=B(!1),P=B(),xe=B(),F=B([]),Se=B(-1),Ce=B(!1),we=B(220),Te=B(244),Ee=B(360),De=B(!1),Oe=B(!1),ke=B(!1),Ae,I,je=0,L,Me=0,Ne=!1,Pe=!1,Fe=0,Ie=0,Le=!1,Re=0,ze=new Set,Be=Q(()=>({synced:`已同步`,unsaved:`未保存`,saving:`正在写入`,conflict:`同步冲突`,error:`写入失败`})[c.value]),Ve=Q(()=>Se.value>0&&!Ce.value),Ue=Q(()=>Se.value>=0&&Se.value<F.value.length-1&&!Ce.value);function We(e,t){t.button!==0||(e===`left`?De.value:e===`hierarchy`?Oe.value:ke.value)||(t.preventDefault(),Ae={side:e,startX:t.clientX,startWidth:e===`left`?we.value:e===`hierarchy`?Te.value:Ee.value},globalThis.document.documentElement.classList.add(`is-resizing-panel`),window.addEventListener(`pointermove`,Ge),window.addEventListener(`pointerup`,Je),window.addEventListener(`pointercancel`,Je),window.addEventListener(`blur`,Je))}function Ge(e){if(!Ae)return;let t=e.clientX-Ae.startX;Ae.side===`left`?we.value=Math.max(160,Math.min(360,Ae.startWidth+t)):Ae.side===`hierarchy`?Te.value=Math.max(190,Math.min(420,Ae.startWidth+t)):Ee.value=Math.max(280,Math.min(520,Ae.startWidth-t))}function Ke(e,t){if(t.key!==`ArrowLeft`&&t.key!==`ArrowRight`)return;t.preventDefault();let n=t.key===`ArrowRight`?16:-16;e===`left`&&!De.value?we.value=Math.max(160,Math.min(360,we.value+n)):e===`hierarchy`&&!Oe.value?Te.value=Math.max(190,Math.min(420,Te.value+n)):e===`right`&&!ke.value&&(Ee.value=Math.max(280,Math.min(520,Ee.value-n)))}function Je(){Ae=void 0,globalThis.document.documentElement.classList.remove(`is-resizing-panel`),window.removeEventListener(`pointermove`,Ge),window.removeEventListener(`pointerup`,Je),window.removeEventListener(`pointercancel`,Je),window.removeEventListener(`blur`,Je)}function Ye(e){return S.value.find(t=>t.path===e)}function Xe(e,t=e.at(-1)){s.value=[...new Set(e)],o.value=t&&s.value.includes(t)?t:s.value.at(-1)}function Ze(e,t){let n=[...new Set(e.selectedLocators.flatMap(n=>{let r=wv(e.document.template,t.template,n);return r?[r]:[]}))],r=wv(e.document.template,t.template,e.selectedLocator);return{selections:n,primary:r&&n.includes(r)?r:n.at(-1)}}function Qe(e){e.unsubscribe=e.document.subscribe(t=>{if(t.type===`syncStateChanged`&&(e.syncState=t.state,Vn(S),a.value===e.path&&(c.value=t.state),ft(),t.state===`conflict`&&bt(e),t.state===`synced`&&e.pendingExternalReload&&lt(e)),t.type===`commandApplied`){let n=e.selectedLocators.filter(t=>!!gv(e.document.template.children,t)),r=t.command.op===`batch`&&t.command.commands.every(e=>e.op===`insertNode`)?kv(e.document.template.children,new Set(t.command.commands.flatMap(e=>e.op===`insertNode`&&e.node.kind!==`slotOutlet`&&e.node.id?[e.node.id]:[]))):[],i=t.command.op===`setNodeProp`||t.command.op===`batch`&&t.command.commands.every(e=>e.op===`setNodeProp`),c=t.command.op===`batch`&&t.command.commands.every(e=>e.op===`deleteNode`);r.length>0?e.selectedLocators=r:i?e.selectedLocators=n:!c&&t.selection?.type===`node`&&gv(e.document.template.children,t.selection.node)?e.selectedLocators=[t.selection.node]:e.selectedLocators=[],e.selectedLocator=e.selectedLocators.includes(e.selectedLocator??``)?e.selectedLocator:e.selectedLocators.at(-1),a.value===e.path&&(oe.value+=1,s.value=[...e.selectedLocators],o.value=e.selectedLocator)}})}function $e(e,t,n,r=n?[n]:[]){e.unsubscribe(),e.document=Pn(t),e.selectedLocator=n,e.selectedLocators=r,e.syncState=t.syncState,e.pendingExternalReload=!1,Qe(e),Vn(S),a.value===e.path&&(M.value=`loading`,x.value=e.document,o.value=n,s.value=[...r],c.value=t.syncState,oe.value+=1)}async function et(e){if(a.value===e.path)return;let t=a.value&&Ye(a.value);t&&(t.selectedLocator=o.value,t.selectedLocators=[...s.value],t.view=xe.value?.captureView?.()??t.view),M.value=`loading`,x.value=e.document,a.value=e.path,o.value=e.selectedLocator,s.value=[...e.selectedLocators],c.value=e.syncState,oe.value+=1,Xt(),await Er(),a.value===e.path&&e.view&&xe.value?.restoreView?.(e.view)}async function tt(e,t){let n=je,r=++Fe;O.value=``;try{let i=Ye(e),a=i?void 0:await Kb.open(e,g,{autoSave:y.value});return!(_e.value!==`active`||n!==je||r!==Fe||(i||(i={path:e,document:Pn(a),selectedLocator:t,selectedLocators:t?[t]:[],syncState:a.syncState,pendingExternalReload:!1,unsubscribe:()=>{}},Qe(i),S.value=[...S.value,i]),await et(i),r!==Fe))}catch(e){return _e.value===`active`&&n===je&&r===Fe&&(O.value=e instanceof Error?e.message:String(e)),!1}}function nt(e){F.value=[{path:e}],Se.value=0}async function rt(e){if(!(Ce.value||e===x.value?.path)){Ce.value=!0;try{if(!await tt(e))return;F.value=[...F.value.slice(0,Se.value+1),{path:e}],Se.value+=1}finally{Ce.value=!1}}}async function it(e){if(Ce.value)return;let t=Se.value+e,n=F.value[t];if(n){Ce.value=!0;try{if(!await tt(n.path))return;Se.value=t}finally{Ce.value=!1}}}function at(e){let t=x.value;t&&rt(d(t.path,e))}async function ot(){let e=await i();return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.interface]))}function st(e){return!Pe&&_e.value===`active`&&e===Me}async function ct(e,t){if(!st(t))return;let r=e.filter(e=>m.value[e]!==void 0);r.length>0&&(m.value=Object.fromEntries(Object.entries(m.value).filter(([e])=>!r.includes(e))),h.value+=1);let i=x.value,a=l.value,o=new Map(a?.files.map(e=>[e.path,e])),s=new Set(e.filter(e=>!o.has(e))),c=a;if(s.size>0&&(c=await n(),!st(t)))return;let d=new Map(c?.files.map(e=>[e.path,e])),p=e.flatMap(e=>{let t=o.get(e)??d.get(e);return t?[t]:[]}),g=new Set(c?.scenes.map(ee)),_=p.some(e=>e.kind===`script`&&g.has(e.path)),v=p.some(e=>e.kind===`image`||e.kind===`scene`&&e.path!==i?.path||e.kind===`script`&&g.has(e.path)&&s.has(e.path)),y=S.value.filter(t=>e.includes(t.path));for(let e of y)e.document.dirty&&(e.pendingExternalReload=!0);let[b,C,w]=await Promise.all([v?c===a?n():c:void 0,_?ot():void 0,Promise.all(y.map(async e=>({tab:e,previous:e.document,latest:await e.document.reloadIfChanged()})))]);if(st(t)){b&&(l.value=b,u.value=ce(b)),C&&(f.value=C);for(let{tab:e,previous:t,latest:n}of w){if(!n||e.document!==t||!S.value.includes(e))continue;let{selections:r,primary:i}=Ze(e,n);$e(e,n,i,r)}O.value=``}}async function lt(e){let t=e.document;try{let n=await t.reloadIfChanged();if(Ye(e.path)!==e||e.document!==t||t.syncState!==`synced`)return;if(e.pendingExternalReload=!1,n){let{selections:t,primary:r}=Ze(e,n);$e(e,n,r,t)}}catch(e){O.value=e instanceof Error?e.message:String(e)}}async function ut(){if(!Ne){Ne=!0;try{for(;ze.size>0;){let e=[...ze];ze.clear();let t=Me;try{await ct(e,t)}catch(e){st(t)&&(O.value=e instanceof Error?e.message:String(e))}if(t!==Me&&st(Me))for(let t of e)ze.add(t)}}finally{Ne=!1}}}function dt(e){ze.add(e),Me+=1,L&&clearTimeout(L),L=window.setTimeout(()=>{L=void 0,ut()},30)}function ft(){let e=x.value;!e||!I||I.publishContext({scene:{path:e.path,revision:e.version,syncState:c.value,previewState:M.value},selection:Jb(e.template,o.value),openScenes:S.value.map(e=>({path:e.path,syncState:e.syncState}))})}U([x,oe,o,s,c,M,S],ft,{flush:`post`}),U([o,s],([e,t])=>{let n=a.value&&Ye(a.value);n&&(n.selectedLocator=e,n.selectedLocators=[...t])}),U([k,fe],async()=>{await Er(),(me.value??pe.value)?.querySelector(`button`)?.focus()});function pt(e){if(e.key!==`Tab`)return;let t=me.value??pe.value;if(!t)return;let n=Array.from(t.querySelectorAll(`button:not(:disabled)`)),r=n[0],i=n.at(-1);e.shiftKey&&window.document.activeElement===r?(e.preventDefault(),i?.focus()):!e.shiftKey&&window.document.activeElement===i&&(e.preventDefault(),r?.focus())}async function mt(e){let t=x.value;if(_e.value!==`active`||!t||t.path!==e.path||t.version!==e.revision||c.value!==`synced`||M.value!==`ready`)throw Error(`Authoring preview is not ready for the requested Scene revision.`);let n=xe.value?.captureScreenshot;if(!n)throw Error(`Authoring preview screenshot capture is unavailable.`);let r=await n();if(_e.value!==`active`||x.value!==t||t.path!==e.path||t.version!==e.revision||c.value!==`synced`||M.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 ht(){let e=x.value;if(!(!e||j.value||c.value!==`synced`)){O.value=``,j.value=!0;try{let[t,r,i]=await Promise.all([n(),ot(),e.reloadIfChanged()]);if(x.value!==e||e.syncState!==`synced`)return;if(l.value=t,u.value=ce(t),f.value=r,m.value={},h.value+=1,i){let t=Ye(e.path);if(t&&t.document===e){let{selections:e,primary:n}=Ze(t,i);$e(t,i,n,e)}}}catch(e){O.value=e instanceof Error?e.message:String(e)}finally{j.value=!1}}}async function gt(){O.value=``;try{await x.value?.undo()}catch(e){O.value=e instanceof Error?e.message:String(e)}}async function _t(){O.value=``;try{await x.value?.redo()}catch(e){O.value=e instanceof Error?e.message:String(e)}}async function vt(){let e=a.value&&Ye(a.value);e&&await yt(e)}async function yt(e){O.value=``;try{return await e.document.save(),!0}catch(t){return e.document.syncState!==`conflict`&&(O.value=t instanceof Error?t.message:String(t)),!1}}async function bt(e){let t=e.document;try{let n=await _(e.path);if(Ye(e.path)!==e||e.document!==t||e.syncState!==`conflict`)return;fe.value={path:e.path,localSource:e.document.source,diskSource:n.source,diskVersion:n.version},Pt()}catch(e){O.value=e instanceof Error?e.message:String(e)}}async function xt(){let e=fe.value,t=e&&Ye(e.path);if(!(!e||!t)){O.value=``;try{await t.document.saveOverVersion(e.diskVersion),fe.value=void 0}catch(e){t.document.syncState===`conflict`?await bt(t):O.value=e instanceof Error?e.message:String(e)}}}async function St(){let e=fe.value,t=e&&Ye(e.path);if(!(!e||!t)){O.value=``;try{let e=await Kb.open(t.path,g,{autoSave:y.value});if(Ye(t.path)!==t)return;let{selections:n,primary:r}=Ze(t,e);$e(t,e,r,n),fe.value=void 0}catch(e){O.value=e instanceof Error?e.message:String(e)}}}function Ct(e){let t=S.value.indexOf(e);if(t<0)return;e.unsubscribe(),S.value=S.value.filter(t=>t!==e);let n=F.value[Se.value];if(F.value=F.value.filter(t=>t.path!==e.path),Se.value=n?F.value.findIndex(e=>e===n):-1,Se.value<0&&(Se.value=F.value.length-1),a.value===e.path){let e=S.value[Math.min(t,S.value.length-1)];e?et(e):(x.value=void 0,a.value=void 0,o.value=void 0,s.value=[],c.value=`synced`,M.value=`loading`,I?.clearContext(),Xt())}else Xt();k.value=void 0,fe.value?.path===e.path&&(fe.value=void 0)}function wt(e,t){t.button===0&&(ne={path:e,pointerId:t.pointerId,x:t.clientX,y:t.clientY},window.addEventListener(`pointermove`,At),window.addEventListener(`pointerup`,jt),window.addEventListener(`pointercancel`,Dt),window.addEventListener(`blur`,Dt))}function Tt(e){D&&(e.preventDefault(),e.stopPropagation())}function Et(){ie!==void 0&&cancelAnimationFrame(ie),ie=void 0,ae=0}function Dt(){T.value&&(D=!0,clearTimeout(re),re=setTimeout(()=>{D=!1},0)),window.removeEventListener(`pointermove`,At),window.removeEventListener(`pointerup`,jt),window.removeEventListener(`pointercancel`,Dt),window.removeEventListener(`blur`,Dt),ne=void 0,Et(),T.value=void 0,te=void 0,E.value=void 0}function Ot(){let e=w.value,t=te,n=e.getBoundingClientRect();if(t.x<n.left||t.x>n.right||t.y<n.top||t.y>n.bottom){E.value=void 0;return}let r=Array.from(e.querySelectorAll(`[data-scene-tab]`)),i=r.find(e=>{let n=e.getBoundingClientRect();return t.x<n.left+n.width/2});E.value={path:(i??r.at(-1)).dataset.sceneTab,before:!!i}}function kt(e){if(ie=void 0,!E.value||!te)return;let t=w.value,n=t.getBoundingClientRect(),r=te.x-n.left,i=n.right-te.x,a=r<32?-600*(1-r/32):i<32?600*(1-i/32):0;if(!a)return;let o=ae?Math.min(e-ae,32):16;ae=e;let s=t.scrollLeft;t.scrollLeft+=a*o/1e3,t.scrollLeft!==s&&(Ot(),ie=requestAnimationFrame(kt))}function At(e){let t=ne;!t||t.pointerId!==e.pointerId||!T.value&&Math.hypot(e.clientX-t.x,e.clientY-t.y)<4||(T.value=t.path,te={x:e.clientX,y:e.clientY},Ot(),E.value?ie===void 0&&(ae=0,ie=requestAnimationFrame(kt)):Et())}function jt(e){if(ne?.pointerId!==e.pointerId)return;if(!T.value){Dt();return}te={x:e.clientX,y:e.clientY},Ot();let t=Ye(T.value),n=E.value;if(n&&n.path!==t.path){let e=S.value.filter(e=>e!==t),r=e.findIndex(e=>e.path===n.path)+ +!n.before;e.splice(r,0,t),e.some((e,t)=>e!==S.value[t])&&(S.value=e,Xt())}Dt()}function Mt(e,t){let n=S.value.findIndex(t=>t.path===e);switch(t){case`current`:return S.value.slice(n,n+1);case`others`:return S.value.filter(t=>t.path!==e);case`left`:return S.value.slice(0,n);case`right`:return S.value.slice(n+1)}}function Nt(e,t){let n=Mt(e,t);return n.length>0&&n.every(e=>e.syncState!==`saving`)}function Pt(){ue=[],k.value=void 0}function Ft(){for(;ue.length>0;){let e=Ye(ue.shift());if(e){if(e.syncState===`saving`){Pt();return}if(e.document.dirty){k.value=e.path;return}Ct(e)}}}function It(e,t=`current`){ue=Mt(e,t).map(e=>e.path),Ft()}function Lt(){let e=k.value&&Ye(k.value);e&&Ct(e),Ft()}async function Rt(){let e=k.value&&Ye(k.value);if(!e)return;let t=await yt(e);if(k.value===e.path){if(!t){ue=[];return}Ct(e),Ft()}}async function zt(){await Er(),await vt()}function Bt(e){let t=e.target;return t instanceof Element&&!!t.closest(`input, textarea, select, [contenteditable]:not([contenteditable="false"])`)}function Vt(){let e=!!A.value,t=P.value?.cancelCurrentDrag?.()??!1,n=xe.value?.cancelCurrentInteraction?.()??!1;Qt(),!e&&!t&&!n&&Xe([])}function Ht(e){if(T.value){e.code===`Escape`&&Dt();return}if(e.target instanceof Element&&e.target.closest(`.scene-tab-context-menu`))return;if(k.value||fe.value){e.code===`Escape`&&(e.preventDefault(),Pt(),fe.value=void 0);return}if(_e.value!==`active`||!x.value||e.repeat||e.altKey)return;let t=e.metaKey||e.ctrlKey;if(t&&!e.shiftKey&&e.code===`KeyS`){e.preventDefault(),Bt(e)&&e.target instanceof HTMLElement&&e.target.blur(),zt();return}if(!Bt(e)){if(t&&e.code===`KeyZ`){e.preventDefault(),e.shiftKey?_t():gt();return}if(t&&!e.shiftKey&&e.code===`KeyD`){e.preventDefault(),P.value?.duplicateSelection?.();return}if(t&&!e.shiftKey&&e.code===`KeyC`){e.preventDefault(),P.value?.copySelection?.();return}if(t&&!e.shiftKey&&e.code===`KeyV`){e.preventDefault(),P.value?.pasteSelection?.();return}if(!t&&!e.shiftKey&&(e.code===`Delete`||e.code===`Backspace`)){e.preventDefault(),P.value?.deleteSelection?.();return}!t&&!e.shiftKey&&e.code===`Escape`&&(e.preventDefault(),Vt())}}function Ut(e){S.value.some(e=>e.document.dirty||e.syncState===`saving`)&&(e.preventDefault(),e.returnValue=``)}function Wt(e){A.value=e}function Gt(e){De.value=!1,he.value={generation:++Re,path:e}}function Kt(e){ge.value=e,ke.value=!1}function qt(e){v.value=e,Xt()}function Jt(e){y.value=e,Xt();for(let t of S.value)t.document.setAutoSave(e).catch(e=>{O.value=`${t.path}: ${e instanceof Error?e.message:String(e)}`})}function Yt(e){b.value=e,Xt()}U(b,e=>{globalThis.document.documentElement.dataset.theme=e},{immediate:!0});function Xt(){Ie+=1,Le||Zt()}async function Zt(){Le=!0;try{for(;;){if(Pe||_e.value!==`active`)return;let e=Ie;if(await p({assetTreeExpandedDirectories:v.value??[],autoSave:y.value,theme:b.value,openScenePaths:S.value.map(e=>e.path),activeScenePath:a.value}),e===Ie)return}}catch(e){O.value=e instanceof Error?e.message:String(e)}finally{Le=!1}}function Qt(){A.value=void 0}function $t(){Dt(),Me+=1,Fe+=1;for(let e of S.value)e.unsubscribe();S.value=[],x.value=void 0,Pt(),fe.value=void 0,v.value=void 0,y.value=!1,b.value=`dark`,u.value=void 0,f.value={},m.value={},a.value=void 0,o.value=void 0,s.value=[],c.value=`synced`,oe.value+=1,A.value=void 0,he.value=void 0,ge.value=void 0,j.value=!1,M.value=`loading`,F.value=[],Se.value=-1,Ce.value=!1,ze.clear(),L&&=(clearTimeout(L),void 0)}async function en(e){let t=je;O.value=``;let[i,a,o]=await Promise.all([n(),ot(),r()]);if(_e.value!==`active`||t!==je)return;l.value=i,u.value=ce(i),f.value=a,v.value=o.assetTreeExpandedDirectories,y.value=o.autoSave??!1,b.value=o.theme;let s=(o.openScenePaths??[]).filter(e=>i.scenes.includes(e)),c=e?.scenePath??o.activeScenePath??s[0]??(o.openScenePaths?void 0:i.scenes[0]),d=[...new Set([...s,...c?[c]:[]])];for(let t of d)await tt(t,t===e?.scenePath?e?.selectedLocator:void 0);c&&await tt(c)?nt(c):d.length===0&&I?.clearContext()}async function tn(e){if(je+=1,N.value=!1,ve.value=e.error??``,be.value=e.resume?.scenePath,e.status===`standby`){if((e.reason||_e.value!==`standby`)&&(ye.value=e.reason),_e.value=`standby`,$t(),!l.value){let e=je;try{let t=await n();_e.value===`standby`&&e===je&&(l.value=t)}catch(e){ve.value=e instanceof Error?e.message:String(e)}}return}ye.value=void 0,_e.value=`active`;try{await en(e.resume)}catch(e){O.value=e instanceof Error?e.message:String(e)}}function nn(){!I||N.value||(N.value=!0,ve.value=``,I.requestTakeover())}return Sa(async()=>{window.addEventListener(`pointerup`,Qt),window.addEventListener(`pointercancel`,Qt),window.addEventListener(`keydown`,Ht),window.addEventListener(`beforeunload`,Ut);try{let e=await C(dt,()=>{I=void 0,N.value=!1;let e=`Editor 与本地项目服务的连接已断开。`;_e.value===`standby`?ve.value=e:O.value=e},e=>void tn(e),mt);I=e,await tn(e.initialState)}catch(e){O.value=e instanceof Error?e.message:String(e)}}),Ta(()=>{Dt(),clearTimeout(re),globalThis.document.documentElement.removeAttribute(`data-theme`),Je(),Pe=!0,Fe+=1,window.removeEventListener(`pointerup`,Qt),window.removeEventListener(`pointercancel`,Qt),window.removeEventListener(`keydown`,Ht),window.removeEventListener(`beforeunload`,Ut),L&&clearTimeout(L),Me+=1,ze.clear();for(let e of S.value)e.unsubscribe();I?.close()}),(e,t)=>_e.value===`standby`?(q(),J(`main`,Xb,[X(`section`,null,[t[27]||=X(`span`,{class:`standby-product`},`PIXIFACT EDITOR`,-1),X(`h1`,null,R(ye.value===`takenOver`?`此标签页已停止编辑`:`项目已在另一个标签页中打开`),1),X(`div`,Zb,[t[25]||=X(`span`,null,`项目`,-1),X(`strong`,null,R(l.value?.name),1),t[26]||=X(`span`,null,`当前 Scene`,-1),X(`strong`,null,R(be.value??`尚未打开 Scene`),1)]),X(`button`,{type:`button`,class:`takeover-button`,"aria-label":ye.value===`takenOver`?`重新接管`:`在此接管`,disabled:N.value,onClick:nn},R(N.value?`正在接管…`:ye.value===`takenOver`?`重新接管`:`在此接管`),9,Qb),ve.value?(q(),J(`p`,$b,R(ve.value),1)):Zs(``,!0),t[28]||=X(`p`,{class:`standby-note`},`接管后,另一个标签页将停止编辑。Undo / Redo 和画布视图不会迁移。`,-1)])])):(q(),J(`main`,{key:1,class:`editor-shell`,style:He({"--left-width":De.value?`40px`:`${we.value}px`,"--hierarchy-width":Oe.value?`40px`:`${Te.value}px`,"--right-width":ke.value?`40px`:`${Ee.value}px`})},[X(`header`,ex,[X(`div`,tx,[t[29]||=X(`strong`,null,`PIXIFACT`,-1),l.value?.name?(q(),J(`span`,{key:0,class:`project-name`,title:l.value?.root},R(l.value.name),9,nx)):Zs(``,!0)]),X(`div`,rx,[X(`button`,{type:`button`,title:`返回`,"aria-label":`返回`,disabled:!Ve.value,onClick:t[0]||=e=>it(-1)},[Z(V(Zd),{size:16})],8,ix),X(`button`,{type:`button`,title:`前进`,"aria-label":`前进`,disabled:!Ue.value,onClick:t[1]||=e=>it(1)},[Z(V(Qd),{size:16})],8,ax),X(`button`,{type:`button`,title:`刷新`,"aria-label":`刷新`,disabled:!x.value||V(c)!==`synced`||j.value,onClick:ht},[Z(V(bf),{size:16})],8,ox),X(`button`,{type:`button`,title:`撤销`,"aria-label":`撤销`,disabled:!x.value?.canUndo,onClick:gt},[Z(V(kf),{size:16})],8,sx),X(`button`,{type:`button`,title:`重做`,"aria-label":`重做`,disabled:!x.value?.canRedo,onClick:_t},[Z(V(yf),{size:16})],8,cx),X(`button`,{type:`button`,class:`save-button`,title:`保存 Scene(Ctrl/Cmd+S)`,"aria-label":`保存 Scene`,disabled:!x.value?.dirty||V(c)===`saving`,onClick:vt},[Z(V(Sf),{size:15}),t[30]||=Ys(` 保存 `,-1)],8,lx)]),X(`div`,{class:`sync-state`,"data-state":V(c)},[t[31]||=X(`span`,null,null,-1),Ys(R(Be.value),1)],8,ux)]),X(`nav`,{ref_key:`sceneTabBar`,ref:w,class:`scene-tabs`,"aria-label":`打开的 Scene`,onClickCapture:Tt},[(q(!0),J(K,null,za(S.value,e=>(q(),Y(V(j_),{key:e.path,modal:!1},{default:H(()=>[Z(V(V_),{"as-child":``},{default:H(()=>[X(`div`,{class:qe([`scene-tab`,{active:V(a)===e.path,dragging:T.value===e.path,"drop-before":E.value?.path===e.path&&E.value.before,"drop-after":E.value?.path===e.path&&!E.value.before}]),"data-scene-tab":e.path},[X(`button`,{type:`button`,class:`scene-tab-activate`,"aria-label":`切换到 ${e.path}`,"aria-current":V(a)===e.path?`page`:void 0,title:e.path,onClick:t=>rt(e.path),onPointerdown:t=>wt(e.path,t),onDragstart:t[2]||=Au(()=>{},[`prevent`])},[X(`span`,null,R(e.path.split(`/`).at(-1)),1),e.syncState===`conflict`||e.syncState===`error`?(q(),J(`span`,px,`!`)):e.document.dirty?(q(),J(`span`,mx,`●`)):Zs(``,!0)],40,fx),X(`button`,{type:`button`,class:`scene-tab-close`,"aria-label":`关闭 ${e.path}`,title:`关闭 ${e.path}`,disabled:e.syncState===`saving`,onClick:t=>It(e.path)},[Z(V(jf),{size:13})],8,hx)],10,dx)]),_:2},1024),Z(V(F_),null,{default:H(()=>[Z(V(M_),{class:`scene-tab-context-menu`,"aria-label":`标签页操作`,"collision-padding":8,onCloseAutoFocus:t[3]||=e=>k.value&&e.preventDefault()},{default:H(()=>[(q(),J(K,null,za(de,t=>Z(V(N_),{key:t.scope,class:`scene-tab-context-item`,disabled:!Nt(e.path,t.scope),onSelect:n=>It(e.path,t.scope)},{default:H(()=>[Ys(R(t.label),1)]),_:2},1032,[`disabled`,`onSelect`])),64))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))],544),X(`section`,gx,[X(`aside`,{class:qe([`left-panel`,{collapsed:De.value}])},[De.value?(q(),J(`button`,{key:0,class:`panel-rail-toggle`,type:`button`,title:`展开资产面板`,"aria-label":`展开资产面板`,onClick:t[4]||=e=>De.value=!1},[Z(V(mf),{size:17})])):Zs(``,!0),Wr(X(`div`,_x,[t[32]||=Ys(` 资产 `,-1),X(`button`,{class:`panel-collapse-button`,type:`button`,title:`收起资产面板`,"aria-label":`收起资产面板`,onClick:t[5]||=e=>De.value=!0},[Z(V(pf),{size:15})])],512),[[ml,!De.value]]),Wr(X(`div`,vx,[Z(nv,{project:l.value,"current-scene":V(a),"expanded-directories":v.value,"focus-asset":he.value,"preview-image":ge.value,onAssetDragStart:Wt,onAssetTreeExpansionChange:qt,onOpenScene:rt,onPreviewImage:Kt},null,8,[`project`,`current-scene`,`expanded-directories`,`focus-asset`,`preview-image`])],512),[[ml,!De.value]]),Wr(X(`div`,yx,[Z(V(W_),null,{default:H(()=>[Z(V(X_),{class:`settings-trigger`,type:`button`,"aria-label":`设置`,title:`设置`},{default:H(()=>[Z(V(Ef),{size:16}),t[33]||=X(`span`,null,`设置`,-1)]),_:1}),Z(V(Y_),null,{default:H(()=>[Z(V(J_),{class:`editor-settings-popover`,side:`top`,align:`start`,"side-offset":8},{default:H(()=>[t[36]||=X(`div`,{class:`settings-heading`},`设置`,-1),X(`label`,bx,[t[34]||=X(`span`,null,[X(`strong`,null,`自动保存`),X(`small`,null,`编辑 Scene 后立即写入文件`)],-1),X(`input`,{class:`settings-switch`,type:`checkbox`,checked:y.value,"aria-label":`自动保存`,onChange:t[6]||=e=>Jt(e.target.checked)},null,40,xx)]),X(`div`,Sx,[t[35]||=X(`strong`,null,`外观`,-1),X(`div`,Cx,[X(`button`,{type:`button`,"aria-label":`跟随系统主题`,"aria-pressed":b.value===`system`,onClick:t[7]||=e=>Yt(`system`)},`跟随系统`,8,wx),X(`button`,{type:`button`,"aria-label":`浅色主题`,"aria-pressed":b.value===`light`,onClick:t[8]||=e=>Yt(`light`)},`浅色`,8,Tx),X(`button`,{type:`button`,"aria-label":`深色主题`,"aria-pressed":b.value===`dark`,onClick:t[9]||=e=>Yt(`dark`)},`深色`,8,Ex)])])]),_:1})]),_:1})]),_:1})],512),[[ml,!De.value]])],2),X(`div`,{class:qe([`panel-resizer asset-resizer`,{disabled:De.value}]),role:`separator`,tabindex:De.value?-1:0,"aria-label":`调整资产面板宽度`,"aria-orientation":`vertical`,"aria-disabled":De.value,"aria-valuenow":De.value?40:we.value,"aria-valuemin":`160`,"aria-valuemax":`360`,onPointerdown:t[10]||=e=>We(`left`,e),onKeydown:t[11]||=e=>Ke(`left`,e)},null,42,Dx),X(`aside`,{class:qe([`hierarchy-sidebar`,{collapsed:Oe.value}])},[Oe.value?(q(),J(`button`,{key:0,class:`panel-rail-toggle`,type:`button`,title:`展开层级面板`,"aria-label":`展开层级面板`,onClick:t[12]||=e=>Oe.value=!1},[Z(V(mf),{size:17})])):Zs(``,!0),Wr(X(`div`,Ox,[t[37]||=Ys(` 层级 `,-1),X(`button`,{class:`panel-collapse-button`,type:`button`,title:`收起层级面板`,"aria-label":`收起层级面板`,onClick:t[13]||=e=>Oe.value=!0},[Z(V(pf),{size:15})])],512),[[ml,!Oe.value]]),Wr(X(`div`,kx,[Z(Xv,{ref_key:`hierarchyPanel`,ref:P,document:x.value,"dragged-asset":A.value,revision:oe.value,selected:V(o),selections:V(s),onSelect:t[14]||=e=>Xe(e.locators,e.primary),onOpenScene:at,onAssetDrop:Qt},null,8,[`document`,`dragged-asset`,`revision`,`selected`,`selections`])],512),[[ml,!Oe.value]])],2),X(`div`,{class:qe([`panel-resizer hierarchy-resizer`,{disabled:Oe.value}]),role:`separator`,tabindex:Oe.value?-1:0,"aria-label":`调整层级面板宽度`,"aria-orientation":`vertical`,"aria-disabled":Oe.value,"aria-valuenow":Oe.value?40:Te.value,"aria-valuemin":`190`,"aria-valuemax":`420`,onPointerdown:t[15]||=e=>We(`hierarchy`,e),onKeydown:t[16]||=e=>Ke(`hierarchy`,e)},null,42,Ax),X(`section`,jx,[Z(Gb,{ref_key:`sceneCanvas`,ref:xe,document:x.value,"dragged-asset":A.value,"project-tree":u.value,"scene-interfaces":f.value,selected:V(o),selections:V(s),revision:oe.value,onSelect:t[17]||=e=>Xe(e.locators,e.primary),onOpenScene:at,onAssetDrop:Qt,onPreviewState:t[18]||=e=>M.value=e},null,8,[`document`,`dragged-asset`,`project-tree`,`scene-interfaces`,`selected`,`selections`,`revision`])]),X(`div`,{class:qe([`panel-resizer inspector-resizer`,{disabled:ke.value}]),role:`separator`,tabindex:ke.value?-1:0,"aria-label":`调整右侧面板宽度`,"aria-orientation":`vertical`,"aria-disabled":ke.value,"aria-valuenow":ke.value?40:Ee.value,"aria-valuemin":`280`,"aria-valuemax":`520`,onPointerdown:t[19]||=e=>We(`right`,e),onKeydown:t[20]||=e=>Ke(`right`,e)},null,42,Mx),X(`aside`,{class:qe([`right-panel`,{collapsed:ke.value}])},[ke.value?(q(),J(`button`,{key:0,class:`panel-rail-toggle`,type:`button`,title:`展开检查器`,"aria-label":`展开检查器`,onClick:t[21]||=e=>ke.value=!1},[Z(V(gf),{size:17})])):(q(),J(`div`,Nx,[t[38]||=Ys(` 检查器 `,-1),X(`button`,{class:`panel-collapse-button`,type:`button`,title:`收起检查器`,"aria-label":`收起检查器`,onClick:t[22]||=e=>ke.value=!0},[Z(V(hf),{size:15})])])),Wr(Z(Zy,{document:x.value,"dragged-asset":A.value,revision:oe.value,"read-layout-frame":M.value===`ready`?xe.value?.readLayoutFrame:void 0,"scene-interfaces":f.value,"scene-defaults":le.value,selected:V(o),selections:V(s),onAssetDrop:Qt,onLocateAsset:Gt},null,8,[`document`,`dragged-asset`,`revision`,`read-layout-frame`,`scene-interfaces`,`scene-defaults`,`selected`,`selections`]),[[ml,!ke.value]]),ge.value&&!ke.value?(q(),Y(fv,{key:2,path:ge.value,project:l.value,onClose:t[23]||=e=>ge.value=void 0},null,8,[`path`,`project`])):Zs(``,!0)],2)]),O.value?(q(),J(`div`,Px,R(O.value),1)):Zs(``,!0),k.value?(q(),J(`div`,Fx,[X(`section`,{ref_key:`closeModal`,ref:pe,class:`editor-modal`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`close-scene-title`,onKeydown:pt},[t[39]||=X(`h2`,{id:`close-scene-title`},`保存对 Scene 的修改?`,-1),X(`p`,null,R(k.value)+` 有未保存的修改。`,1),X(`div`,Ix,[X(`button`,{type:`button`,onClick:Pt},`取消`),X(`button`,{type:`button`,disabled:Ye(k.value)?.syncState===`saving`,onClick:Lt},`放弃修改`,8,Lx),X(`button`,{type:`button`,class:`primary`,disabled:Ye(k.value)?.syncState===`saving`,onClick:Rt},`保存并关闭`,8,Rx)])],544)])):Zs(``,!0),fe.value?(q(),J(`div`,zx,[X(`section`,{ref_key:`conflictModal`,ref:me,class:`editor-modal conflict-modal`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`conflict-scene-title`,onKeydown:pt},[t[42]||=X(`h2`,{id:`conflict-scene-title`},`Scene 文件已在外部修改`,-1),X(`p`,null,R(fe.value.path)+`:请选择保留哪个版本。覆盖操作会再次检查磁盘版本。`,1),X(`div`,Bx,[X(`div`,null,[t[40]||=X(`strong`,null,`Editor 草稿`,-1),X(`pre`,null,R(fe.value.localSource),1)]),X(`div`,null,[t[41]||=X(`strong`,null,`磁盘版本`,-1),X(`pre`,null,R(fe.value.diskSource),1)])]),X(`div`,Vx,[X(`button`,{type:`button`,onClick:t[24]||=e=>fe.value=void 0},`继续编辑草稿`),X(`button`,{type:`button`,onClick:St},`放弃草稿并载入磁盘`),X(`button`,{type:`button`,class:`primary`,onClick:xt},`用草稿覆盖磁盘`)])],544)])):Zs(``,!0)],4))}})).use(dd()).mount(`#app`);