diff --git a/internal/plugin-gallery/dev-plugin.mjs b/internal/plugin-gallery/dev-plugin.mjs index b41ea1e1d..895f19c77 100644 --- a/internal/plugin-gallery/dev-plugin.mjs +++ b/internal/plugin-gallery/dev-plugin.mjs @@ -86,7 +86,18 @@ export function galleryModel(reg) { // and nothing else — the dev equivalent of the built tree's //index.html, which // is what this URL means in production. Same contract, so the studio behaves identically in both. const link = (...parts) => '/__leaf/' + parts.map(encodeURIComponent).join('/') - const bundles = [...reg].sort((a, b) => a.bundle.localeCompare(b.bundle)).map((b) => { + // GATED bundles (vite.doxa-maps-build-config.json `gatedProfiles`, e.g. key-cities) are withheld + // from every public surface the BUILD emits. The dev model listed them anyway, so the studio and the + // Research Gallery's Experimental shelf showed under the dev server — which is what DX runs first + // after cloning — a plugin the built tree deliberately hides. Same rule here, so dev == built. + let gated = new Set() + // Read from the config file itself, as generate-tree does: readBuildConfig() returns a projection + // that does not carry gatedProfiles. + try { + const cfg = JSON.parse(readFileSync(resolve(REPO_ROOT, 'vite.doxa-maps-build-config.json'), 'utf8')) + if (Array.isArray(cfg.gatedProfiles)) gated = new Set(cfg.gatedProfiles.map(String)) + } catch { /* no config: gate nothing */ } + const bundles = [...reg].filter((b) => !gated.has(b.bundle)).sort((a, b) => a.bundle.localeCompare(b.bundle)).map((b) => { const scriptUrl = `/plugin-designs/${b.bundle}/index.js` const presets = new Map() // profile → its preset instances (empty for every other kind) const typeOf = new Map() // profile → composition tier machine key (single … nested-mfe-spa) diff --git a/plugin-designs/plugin-studio/plugin-studio.vue b/plugin-designs/plugin-studio/plugin-studio.vue index 1cb001e93..9a4c063f9 100644 --- a/plugin-designs/plugin-studio/plugin-studio.vue +++ b/plugin-designs/plugin-studio/plugin-studio.vue @@ -767,6 +767,11 @@ export default defineComponent({ // own guess, so this lands through the existing config path with no new prop. if (this.base) pc.treeBase = this.base el.setAttribute('profile-config', JSON.stringify(pc)) + // …and as a plain `tree-base` ATTRIBUTE, for elements that take the base that way instead of + // through profile-config (golden-path-check does, deliberately — it has no ProfileLoader). + // Without it that check guessed the tree from the PAGE URL, which in the studio is the page + // root, and read /manifest.json: a 404 and an empty self-test. Unused attributes are inert. + if (this.base) el.setAttribute('tree-base', this.base.replace(/\/+$/, '')) el.style.cssText = 'display:block;position:absolute;inset:0;width:100%;height:100%;' slot.appendChild(el) row.state = 'ready' diff --git a/public/doxa-maps/manifest.json b/public/doxa-maps/manifest.json index acaa77c92..7c01555f0 100644 --- a/public/doxa-maps/manifest.json +++ b/public/doxa-maps/manifest.json @@ -799,7 +799,7 @@ "bundle": "plugin-studio", "scriptUrl": "./plugin-studio/plugin-studio.js", "output": "doxa-maps/plugin-studio/plugin-studio.js", - "integrity": "sha384-N70Sfwq4XTc7BHosJDT1r9/qUrzr1NZ5DiLb3QUYST8vY7+quBQzytqcpOs4Rp1E", + "integrity": "sha384-PWsWQsPshQsOrFOoSZ3rPg6231BJmKV/pvopXruEZgKovSfp8P2MEjfEEEuBWqMl", "elements": [ "plugin-studio" ], @@ -827,7 +827,7 @@ "scriptUrl": "./plugin-studio/plugin-studio.js", "embed": { "iframe": "", - "script": "\n\n" + "script": "\n\n" }, "instances": [ { diff --git a/public/doxa-maps/plugin-studio/plugin-studio.js b/public/doxa-maps/plugin-studio/plugin-studio.js index 572b36053..f2d76aeb9 100644 --- a/public/doxa-maps/plugin-studio/plugin-studio.js +++ b/public/doxa-maps/plugin-studio/plugin-studio.js @@ -2,23 +2,23 @@ * @vue/shared v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Is(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const z={},ot=[],_e=()=>{},Ci=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wt=e=>e.startsWith("onUpdate:"),Z=Object.assign,Ls=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},$o=Object.prototype.hasOwnProperty,D=(e,t)=>$o.call(e,t),R=Array.isArray,qe=e=>vt(e)==="[object Map]",qt=e=>vt(e)==="[object Set]",Oi=e=>vt(e)==="[object Date]",L=e=>typeof e=="function",G=e=>typeof e=="string",me=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",Ai=e=>(K(e)||L(e))&&L(e.then)&&L(e.catch),Mi=Object.prototype.toString,vt=e=>Mi.call(e),Do=e=>vt(e).slice(8,-1),Gt=e=>vt(e)==="[object Object]",Ps=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jt=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Fo=/-\w/g,ie=Jt(e=>e.replace(Fo,t=>t.slice(1).toUpperCase())),jo=/\B([A-Z])/g,be=Jt(e=>e.replace(jo,"-$1").toLowerCase()),Yt=Jt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Jt(e=>e?`on${Yt(e)}`:""),$e=(e,t)=>!Object.is(e,t),Xt=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Hs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ii=e=>{const t=G(e)?Number(e):NaN;return isNaN(t)?e:t};let Li;const Zt=()=>Li||(Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xt(e){if(R(e)){const t={};for(let s=0;s{if(s){const i=s.split(Uo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Se(e){let t="";if(G(e))t=e;else if(R(e))for(let s=0;s!!(e&&e.__v_isRef===!0),N=e=>G(e)?e:e==null?"":R(e)||K(e)&&(e.toString===Mi||!L(e.toString))?Hi(e)?N(e.value):JSON.stringify(e,$i,2):String(e),$i=(e,t)=>Hi(t)?$i(e,t.value):qe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,n],o)=>(s[$s(i,o)+" =>"]=n,s),{})}:qt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>$s(s))}:me(t)?$s(t):K(t)&&!R(t)&&!Gt(t)?String(t):t,$s=(e,t="")=>{var s;return me(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +**/function Is(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const z={},ot=[],_e=()=>{},Ci=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wt=e=>e.startsWith("onUpdate:"),Z=Object.assign,Ls=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ho=Object.prototype.hasOwnProperty,D=(e,t)=>Ho.call(e,t),R=Array.isArray,qe=e=>vt(e)==="[object Map]",qt=e=>vt(e)==="[object Set]",Oi=e=>vt(e)==="[object Date]",L=e=>typeof e=="function",G=e=>typeof e=="string",me=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",Ai=e=>(K(e)||L(e))&&L(e.then)&&L(e.catch),Mi=Object.prototype.toString,vt=e=>Mi.call(e),Do=e=>vt(e).slice(8,-1),Gt=e=>vt(e)==="[object Object]",Ps=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jt=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Fo=/-\w/g,ie=Jt(e=>e.replace(Fo,t=>t.slice(1).toUpperCase())),jo=/\B([A-Z])/g,be=Jt(e=>e.replace(jo,"-$1").toLowerCase()),Yt=Jt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Jt(e=>e?`on${Yt(e)}`:""),He=(e,t)=>!Object.is(e,t),Xt=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ii=e=>{const t=G(e)?Number(e):NaN;return isNaN(t)?e:t};let Li;const Zt=()=>Li||(Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xt(e){if(R(e)){const t={};for(let s=0;s{if(s){const i=s.split(Uo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Se(e){let t="";if(G(e))t=e;else if(R(e))for(let s=0;s!!(e&&e.__v_isRef===!0),N=e=>G(e)?e:e==null?"":R(e)||K(e)&&(e.toString===Mi||!L(e.toString))?$i(e)?N(e.value):JSON.stringify(e,Hi,2):String(e),Hi=(e,t)=>$i(t)?Hi(e,t.value):qe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,n],o)=>(s[Hs(i,o)+" =>"]=n,s),{})}:qt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Hs(s))}:me(t)?Hs(t):K(t)&&!R(t)&&!Gt(t)?String(t):t,Hs=(e,t="")=>{var s;return me(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** * @vue/reactivity v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let ne;class qo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ne&&(ne.active?(this.parent=ne,this.index=(ne.scopes||(ne.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(ne===this)ne=this.prevScope;else{let t=ne;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(wt){let t=wt;for(wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;yt;){let t=yt;for(yt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Ki(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ui(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),Us(i),Jo(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_t)||(e.globalVersion=_t,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,s=W,i=xe;W=e,xe=!0;try{Ki(e);const n=e.fn(e._value);(t.version===0||$e(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{W=s,xe=i,Ui(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Us(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Jo(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let xe=!0;const zi=[];function ke(){zi.push(xe),xe=!1}function Te(){const e=zi.pop();xe=e===void 0?!0:e}function Bi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let _t=0;class Yo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!W||!xe||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new Yo(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,qi(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=i)}return s}trigger(t){this.version++,_t++,this.notify(t)}notify(t){Fs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{js()}}}function qi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)qi(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,Xe=Symbol(""),zs=Symbol(""),St=Symbol("");function re(e,t,s){if(xe&&W){let i=Vs.get(e);i||Vs.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new Wi),n.map=i,n.key=s),n.track()}}function De(e,t,s,i,n,o){const l=Vs.get(e);if(!l){_t++;return}const r=a=>{a&&a.trigger()};if(Fs(),t==="clear")l.forEach(r);else{const a=R(e),p=a&&Ps(s);if(a&&s==="length"){const f=Number(i);l.forEach((h,y)=>{(y==="length"||y===St||!me(y)&&y>=f)&&r(h)})}else switch((s!==void 0||l.has(void 0))&&r(l.get(s)),p&&r(l.get(St)),t){case"add":a?p&&r(l.get("length")):(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"delete":a||(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"set":qe(e)&&r(l.get(Xe));break}}js()}function lt(e){const t=F(e);return t===e?t:(re(t,"iterate",St),ye(e)?t:t.map(je))}function es(e){return re(e=F(e),"iterate",St),e}function Ee(e,t){return Ge(e)?rt(Ze(e)?je(t):t):je(t)}const Xo={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,e=>Ee(this,e))},concat(...e){return lt(this).concat(...e.map(t=>R(t)?lt(t):t))},entries(){return Bs(this,"entries",e=>(e[1]=Ee(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,s=>s.map(i=>Ee(this,i)),arguments)},find(e,t){return Fe(this,"find",e,t,s=>Ee(this,s),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,s=>Ee(this,s),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ws(this,"includes",e)},indexOf(...e){return Ws(this,"indexOf",e)},join(e){return lt(this).join(e)},lastIndexOf(...e){return Ws(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return kt(this,"pop")},push(...e){return kt(this,"push",e)},reduce(e,...t){return Gi(this,"reduce",e,t)},reduceRight(e,...t){return Gi(this,"reduceRight",e,t)},shift(){return kt(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return kt(this,"splice",e)},toReversed(){return lt(this).toReversed()},toSorted(e){return lt(this).toSorted(e)},toSpliced(...e){return lt(this).toSpliced(...e)},unshift(...e){return kt(this,"unshift",e)},values(){return Bs(this,"values",e=>Ee(this,e))}};function Bs(e,t,s){const i=es(e),n=i[t]();return i!==e&&!ye(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.done||(o.value=s(o.value)),o}),n}const Zo=Array.prototype;function Fe(e,t,s,i,n,o){const l=es(e),r=l!==e&&!ye(e),a=l[t];if(a!==Zo[t]){const h=a.apply(e,o);return r?je(h):h}let p=s;l!==e&&(r?p=function(h,y){return s.call(this,Ee(e,h),y,e)}:s.length>2&&(p=function(h,y){return s.call(this,h,y,e)}));const f=a.call(l,p,i);return r&&n?n(f):f}function Gi(e,t,s,i){const n=es(e),o=n!==e&&!ye(e);let l=s,r=!1;n!==e&&(o?(r=i.length===0,l=function(p,f,h){return r&&(r=!1,p=Ee(e,p)),s.call(this,p,Ee(e,f),h,e)}):s.length>3&&(l=function(p,f,h){return s.call(this,p,f,h,e)}));const a=n[t](l,...i);return r?Ee(e,a):a}function Ws(e,t,s){const i=F(e);re(i,"iterate",St);const n=i[t](...s);return(n===-1||n===!1)&&Ys(s[0])?(s[0]=F(s[0]),i[t](...s)):n}function kt(e,t,s=[]){ke(),Fs();const i=F(e)[t].apply(e,s);return js(),Te(),i}const Qo=Is("__proto__,__v_isRef,__isVue"),Ji=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(me));function el(e){me(e)||(e=String(e));const t=F(this);return re(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(n?o?sn:tn:o?en:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=R(t);if(!n){let a;if(l&&(a=Xo[s]))return a;if(s==="hasOwnProperty")return el}const r=Reflect.get(t,s,ae(t)?t:i);if((me(s)?Ji.has(s):Qo(s))||(n||re(t,"get",s),o))return r;if(ae(r)){const a=l&&Ps(s)?r:r.value;return n&&K(a)?Js(a):a}return K(r)?n?Js(r):Gs(r):r}}class Xi extends Yi{constructor(t=!1){super(!1,t)}set(t,s,i,n){let o=t[s];const l=R(t)&&Ps(s);if(!this._isShallow){const p=Ge(o);if(!ye(i)&&!Ge(i)&&(o=F(o),i=F(i)),!l&&ae(o)&&!ae(i))return p||(o.value=i),!0}const r=l?Number(s)e,ts=e=>Reflect.getPrototypeOf(e);function ol(e,t,s){return function(...i){const n=this.__v_raw,o=F(n),l=qe(o),r=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,p=n[e](...i),f=s?qs:t?rt:je;return!t&&re(o,"iterate",a?zs:Xe),Z(Object.create(p),{next(){const{value:h,done:y}=p.next();return y?{value:h,done:y}:{value:r?[f(h[0]),f(h[1])]:f(h),done:y}}})}}function ss(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ll(e,t){const s={get(n){const o=this.__v_raw,l=F(o),r=F(n);e||($e(n,r)&&re(l,"get",n),re(l,"get",r));const{has:a}=ts(l),p=t?qs:e?rt:je;if(a.call(l,n))return p(o.get(n));if(a.call(l,r))return p(o.get(r));o!==l&&o.get(n)},get size(){const n=this.__v_raw;return!e&&re(F(n),"iterate",Xe),n.size},has(n){const o=this.__v_raw,l=F(o),r=F(n);return e||($e(n,r)&&re(l,"has",n),re(l,"has",r)),n===r?o.has(n):o.has(n)||o.has(r)},forEach(n,o){const l=this,r=l.__v_raw,a=F(r),p=t?qs:e?rt:je;return!e&&re(a,"iterate",Xe),r.forEach((f,h)=>n.call(o,p(f),p(h),l))}};return Z(s,e?{add:ss("add"),set:ss("set"),delete:ss("delete"),clear:ss("clear")}:{add(n){const o=F(this),l=ts(o),r=F(n),a=!t&&!ye(n)&&!Ge(n)?r:n;return l.has.call(o,a)||$e(n,a)&&l.has.call(o,n)||$e(r,a)&&l.has.call(o,r)||(o.add(a),De(o,"add",a,a)),this},set(n,o){!t&&!ye(o)&&!Ge(o)&&(o=F(o));const l=F(this),{has:r,get:a}=ts(l);let p=r.call(l,n);p||(n=F(n),p=r.call(l,n));const f=a.call(l,n);return l.set(n,o),p?$e(o,f)&&De(l,"set",n,o):De(l,"add",n,o),this},delete(n){const o=F(this),{has:l,get:r}=ts(o);let a=l.call(o,n);a||(n=F(n),a=l.call(o,n)),r&&r.call(o,n);const p=o.delete(n);return a&&De(o,"delete",n,void 0),p},clear(){const n=F(this),o=n.size!==0,l=n.clear();return o&&De(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ol(n,e,t)}),s}function is(e,t){const s=ll(e,t);return(i,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(D(s,n)&&n in i?s:i,n,o)}const rl={get:is(!1,!1)},al={get:is(!1,!0)},cl={get:is(!0,!1)},dl={get:is(!0,!0)},Qi=new WeakMap,en=new WeakMap,tn=new WeakMap,sn=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gs(e){return Ge(e)?e:ns(e,!1,tl,rl,Qi)}function pl(e){return ns(e,!1,il,al,en)}function Js(e){return ns(e,!0,sl,cl,tn)}function Td(e){return ns(e,!0,nl,dl,sn)}function ns(e,t,s,i,n){if(!K(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=n.get(e);if(o)return o;const l=fl(Do(e));if(l===0)return e;const r=new Proxy(e,l===2?i:s);return n.set(e,r),r}function Ze(e){return Ge(e)?Ze(e.__v_raw):!!(e&&e.__v_isReactive)}function Ge(e){return!!(e&&e.__v_isReadonly)}function ye(e){return!!(e&&e.__v_isShallow)}function Ys(e){return e?!!e.__v_raw:!1}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function ul(e){return!D(e,"__v_skip")&&Object.isExtensible(e)&&Ri(e,"__v_skip",!0),e}const je=e=>K(e)?Gs(e):e,rt=e=>K(e)?Js(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function nn(e){return ae(e)?e.value:e}const hl={get:(e,t,s)=>t==="__v_raw"?e:nn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return ae(n)&&!ae(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function on(e){return Ze(e)?e:new Proxy(e,hl)}class gl{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Wi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_t-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return ji(this,!0),!0}get value(){const t=this.dep.track();return Vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bl(e,t,s=!1){let i,n;return L(e)?i=e:(i=e.get,n=e.set),new gl(i,n,s)}const os={},ls=new WeakMap;let Qe;function vl(e,t=!1,s=Qe){if(s){let i=ls.get(s);i||ls.set(s,i=[]),i.push(e)}}function ml(e,t,s=z){const{immediate:i,deep:n,once:o,scheduler:l,augmentJob:r,call:a}=s,p=M=>n?M:ye(M)||n===!1||n===0?Ke(M,1):Ke(M);let f,h,y,k,j=!1,P=!1;if(ae(e)?(h=()=>e.value,j=ye(e)):Ze(e)?(h=()=>p(e),j=!0):R(e)?(P=!0,j=e.some(M=>Ze(M)||ye(M)),h=()=>e.map(M=>{if(ae(M))return M.value;if(Ze(M))return p(M);if(L(M))return a?a(M,2):M()})):L(e)?t?h=a?()=>a(e,2):e:h=()=>{if(y){ke();try{y()}finally{Te()}}const M=Qe;Qe=f;try{return a?a(e,3,[k]):e(k)}finally{Qe=M}}:h=_e,t&&n){const M=h,se=n===!0?1/0:n;h=()=>Ke(M(),se)}const ee=Go(),Y=()=>{f.stop(),ee&&ee.active&&Ls(ee.effects,f)};if(o&&t){const M=t;t=(...se)=>{const Re=M(...se);return Y(),Re}}let $=P?new Array(e.length).fill(os):os;const U=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const se=f.run();if(M||n||j||(P?se.some((Re,Ie)=>$e(Re,$[Ie])):$e(se,$))){y&&y();const Re=Qe;Qe=f;try{const Ie=[se,$===os?void 0:P&&$[0]===os?[]:$,k];$=se,a?a(t,3,Ie):t(...Ie)}finally{Qe=Re}}}else f.run()};return r&&r(U),f=new Di(h),f.scheduler=l?()=>l(U,!1):U,k=M=>vl(M,!1,f),y=f.onStop=()=>{const M=ls.get(f);if(M){if(a)a(M,4);else for(const se of M)se();ls.delete(f)}},t?i?U(!0):$=f.run():l?l(U.bind(null,!0),!0):f.run(),Y.pause=f.pause.bind(f),Y.resume=f.resume.bind(f),Y.stop=Y,Y}function Ke(e,t=1/0,s){if(t<=0||!K(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ae(e))Ke(e.value,t,s);else if(R(e))for(let i=0;i{Ke(i,t,s)});else if(Gt(e)){for(const i in e)Ke(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Ke(e[i],t,s)}return e}/** +**/let ne;class qo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ne&&(ne.active?(this.parent=ne,this.index=(ne.scopes||(ne.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(ne===this)ne=this.prevScope;else{let t=ne;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(wt){let t=wt;for(wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;yt;){let t=yt;for(yt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Ki(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ui(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),Us(i),Jo(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_t)||(e.globalVersion=_t,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,s=W,i=xe;W=e,xe=!0;try{Ki(e);const n=e.fn(e._value);(t.version===0||He(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{W=s,xe=i,Ui(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Us(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Jo(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let xe=!0;const zi=[];function ke(){zi.push(xe),xe=!1}function Te(){const e=zi.pop();xe=e===void 0?!0:e}function Bi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let _t=0;class Yo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!W||!xe||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new Yo(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,qi(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=i)}return s}trigger(t){this.version++,_t++,this.notify(t)}notify(t){Fs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{js()}}}function qi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)qi(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,Xe=Symbol(""),zs=Symbol(""),St=Symbol("");function re(e,t,s){if(xe&&W){let i=Vs.get(e);i||Vs.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new Wi),n.map=i,n.key=s),n.track()}}function De(e,t,s,i,n,o){const l=Vs.get(e);if(!l){_t++;return}const r=a=>{a&&a.trigger()};if(Fs(),t==="clear")l.forEach(r);else{const a=R(e),p=a&&Ps(s);if(a&&s==="length"){const f=Number(i);l.forEach((h,y)=>{(y==="length"||y===St||!me(y)&&y>=f)&&r(h)})}else switch((s!==void 0||l.has(void 0))&&r(l.get(s)),p&&r(l.get(St)),t){case"add":a?p&&r(l.get("length")):(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"delete":a||(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"set":qe(e)&&r(l.get(Xe));break}}js()}function lt(e){const t=F(e);return t===e?t:(re(t,"iterate",St),ye(e)?t:t.map(je))}function es(e){return re(e=F(e),"iterate",St),e}function Ee(e,t){return Ge(e)?rt(Ze(e)?je(t):t):je(t)}const Xo={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,e=>Ee(this,e))},concat(...e){return lt(this).concat(...e.map(t=>R(t)?lt(t):t))},entries(){return Bs(this,"entries",e=>(e[1]=Ee(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,s=>s.map(i=>Ee(this,i)),arguments)},find(e,t){return Fe(this,"find",e,t,s=>Ee(this,s),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,s=>Ee(this,s),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ws(this,"includes",e)},indexOf(...e){return Ws(this,"indexOf",e)},join(e){return lt(this).join(e)},lastIndexOf(...e){return Ws(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return kt(this,"pop")},push(...e){return kt(this,"push",e)},reduce(e,...t){return Gi(this,"reduce",e,t)},reduceRight(e,...t){return Gi(this,"reduceRight",e,t)},shift(){return kt(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return kt(this,"splice",e)},toReversed(){return lt(this).toReversed()},toSorted(e){return lt(this).toSorted(e)},toSpliced(...e){return lt(this).toSpliced(...e)},unshift(...e){return kt(this,"unshift",e)},values(){return Bs(this,"values",e=>Ee(this,e))}};function Bs(e,t,s){const i=es(e),n=i[t]();return i!==e&&!ye(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.done||(o.value=s(o.value)),o}),n}const Zo=Array.prototype;function Fe(e,t,s,i,n,o){const l=es(e),r=l!==e&&!ye(e),a=l[t];if(a!==Zo[t]){const h=a.apply(e,o);return r?je(h):h}let p=s;l!==e&&(r?p=function(h,y){return s.call(this,Ee(e,h),y,e)}:s.length>2&&(p=function(h,y){return s.call(this,h,y,e)}));const f=a.call(l,p,i);return r&&n?n(f):f}function Gi(e,t,s,i){const n=es(e),o=n!==e&&!ye(e);let l=s,r=!1;n!==e&&(o?(r=i.length===0,l=function(p,f,h){return r&&(r=!1,p=Ee(e,p)),s.call(this,p,Ee(e,f),h,e)}):s.length>3&&(l=function(p,f,h){return s.call(this,p,f,h,e)}));const a=n[t](l,...i);return r?Ee(e,a):a}function Ws(e,t,s){const i=F(e);re(i,"iterate",St);const n=i[t](...s);return(n===-1||n===!1)&&Ys(s[0])?(s[0]=F(s[0]),i[t](...s)):n}function kt(e,t,s=[]){ke(),Fs();const i=F(e)[t].apply(e,s);return js(),Te(),i}const Qo=Is("__proto__,__v_isRef,__isVue"),Ji=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(me));function el(e){me(e)||(e=String(e));const t=F(this);return re(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(n?o?sn:tn:o?en:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=R(t);if(!n){let a;if(l&&(a=Xo[s]))return a;if(s==="hasOwnProperty")return el}const r=Reflect.get(t,s,ae(t)?t:i);if((me(s)?Ji.has(s):Qo(s))||(n||re(t,"get",s),o))return r;if(ae(r)){const a=l&&Ps(s)?r:r.value;return n&&K(a)?Js(a):a}return K(r)?n?Js(r):Gs(r):r}}class Xi extends Yi{constructor(t=!1){super(!1,t)}set(t,s,i,n){let o=t[s];const l=R(t)&&Ps(s);if(!this._isShallow){const p=Ge(o);if(!ye(i)&&!Ge(i)&&(o=F(o),i=F(i)),!l&&ae(o)&&!ae(i))return p||(o.value=i),!0}const r=l?Number(s)e,ts=e=>Reflect.getPrototypeOf(e);function ol(e,t,s){return function(...i){const n=this.__v_raw,o=F(n),l=qe(o),r=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,p=n[e](...i),f=s?qs:t?rt:je;return!t&&re(o,"iterate",a?zs:Xe),Z(Object.create(p),{next(){const{value:h,done:y}=p.next();return y?{value:h,done:y}:{value:r?[f(h[0]),f(h[1])]:f(h),done:y}}})}}function ss(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ll(e,t){const s={get(n){const o=this.__v_raw,l=F(o),r=F(n);e||(He(n,r)&&re(l,"get",n),re(l,"get",r));const{has:a}=ts(l),p=t?qs:e?rt:je;if(a.call(l,n))return p(o.get(n));if(a.call(l,r))return p(o.get(r));o!==l&&o.get(n)},get size(){const n=this.__v_raw;return!e&&re(F(n),"iterate",Xe),n.size},has(n){const o=this.__v_raw,l=F(o),r=F(n);return e||(He(n,r)&&re(l,"has",n),re(l,"has",r)),n===r?o.has(n):o.has(n)||o.has(r)},forEach(n,o){const l=this,r=l.__v_raw,a=F(r),p=t?qs:e?rt:je;return!e&&re(a,"iterate",Xe),r.forEach((f,h)=>n.call(o,p(f),p(h),l))}};return Z(s,e?{add:ss("add"),set:ss("set"),delete:ss("delete"),clear:ss("clear")}:{add(n){const o=F(this),l=ts(o),r=F(n),a=!t&&!ye(n)&&!Ge(n)?r:n;return l.has.call(o,a)||He(n,a)&&l.has.call(o,n)||He(r,a)&&l.has.call(o,r)||(o.add(a),De(o,"add",a,a)),this},set(n,o){!t&&!ye(o)&&!Ge(o)&&(o=F(o));const l=F(this),{has:r,get:a}=ts(l);let p=r.call(l,n);p||(n=F(n),p=r.call(l,n));const f=a.call(l,n);return l.set(n,o),p?He(o,f)&&De(l,"set",n,o):De(l,"add",n,o),this},delete(n){const o=F(this),{has:l,get:r}=ts(o);let a=l.call(o,n);a||(n=F(n),a=l.call(o,n)),r&&r.call(o,n);const p=o.delete(n);return a&&De(o,"delete",n,void 0),p},clear(){const n=F(this),o=n.size!==0,l=n.clear();return o&&De(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ol(n,e,t)}),s}function is(e,t){const s=ll(e,t);return(i,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(D(s,n)&&n in i?s:i,n,o)}const rl={get:is(!1,!1)},al={get:is(!1,!0)},cl={get:is(!0,!1)},dl={get:is(!0,!0)},Qi=new WeakMap,en=new WeakMap,tn=new WeakMap,sn=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gs(e){return Ge(e)?e:ns(e,!1,tl,rl,Qi)}function pl(e){return ns(e,!1,il,al,en)}function Js(e){return ns(e,!0,sl,cl,tn)}function Td(e){return ns(e,!0,nl,dl,sn)}function ns(e,t,s,i,n){if(!K(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=n.get(e);if(o)return o;const l=fl(Do(e));if(l===0)return e;const r=new Proxy(e,l===2?i:s);return n.set(e,r),r}function Ze(e){return Ge(e)?Ze(e.__v_raw):!!(e&&e.__v_isReactive)}function Ge(e){return!!(e&&e.__v_isReadonly)}function ye(e){return!!(e&&e.__v_isShallow)}function Ys(e){return e?!!e.__v_raw:!1}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function ul(e){return!D(e,"__v_skip")&&Object.isExtensible(e)&&Ri(e,"__v_skip",!0),e}const je=e=>K(e)?Gs(e):e,rt=e=>K(e)?Js(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function nn(e){return ae(e)?e.value:e}const hl={get:(e,t,s)=>t==="__v_raw"?e:nn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return ae(n)&&!ae(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function on(e){return Ze(e)?e:new Proxy(e,hl)}class gl{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Wi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_t-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return ji(this,!0),!0}get value(){const t=this.dep.track();return Vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bl(e,t,s=!1){let i,n;return L(e)?i=e:(i=e.get,n=e.set),new gl(i,n,s)}const os={},ls=new WeakMap;let Qe;function vl(e,t=!1,s=Qe){if(s){let i=ls.get(s);i||ls.set(s,i=[]),i.push(e)}}function ml(e,t,s=z){const{immediate:i,deep:n,once:o,scheduler:l,augmentJob:r,call:a}=s,p=M=>n?M:ye(M)||n===!1||n===0?Ke(M,1):Ke(M);let f,h,y,k,j=!1,P=!1;if(ae(e)?(h=()=>e.value,j=ye(e)):Ze(e)?(h=()=>p(e),j=!0):R(e)?(P=!0,j=e.some(M=>Ze(M)||ye(M)),h=()=>e.map(M=>{if(ae(M))return M.value;if(Ze(M))return p(M);if(L(M))return a?a(M,2):M()})):L(e)?t?h=a?()=>a(e,2):e:h=()=>{if(y){ke();try{y()}finally{Te()}}const M=Qe;Qe=f;try{return a?a(e,3,[k]):e(k)}finally{Qe=M}}:h=_e,t&&n){const M=h,se=n===!0?1/0:n;h=()=>Ke(M(),se)}const ee=Go(),Y=()=>{f.stop(),ee&&ee.active&&Ls(ee.effects,f)};if(o&&t){const M=t;t=(...se)=>{const Re=M(...se);return Y(),Re}}let H=P?new Array(e.length).fill(os):os;const U=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const se=f.run();if(M||n||j||(P?se.some((Re,Ie)=>He(Re,H[Ie])):He(se,H))){y&&y();const Re=Qe;Qe=f;try{const Ie=[se,H===os?void 0:P&&H[0]===os?[]:H,k];H=se,a?a(t,3,Ie):t(...Ie)}finally{Qe=Re}}}else f.run()};return r&&r(U),f=new Di(h),f.scheduler=l?()=>l(U,!1):U,k=M=>vl(M,!1,f),y=f.onStop=()=>{const M=ls.get(f);if(M){if(a)a(M,4);else for(const se of M)se();ls.delete(f)}},t?i?U(!0):H=f.run():l?l(U.bind(null,!0),!0):f.run(),Y.pause=f.pause.bind(f),Y.resume=f.resume.bind(f),Y.stop=Y,Y}function Ke(e,t=1/0,s){if(t<=0||!K(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ae(e))Ke(e.value,t,s);else if(R(e))for(let i=0;i{Ke(i,t,s)});else if(Gt(e)){for(const i in e)Ke(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Ke(e[i],t,s)}return e}/** * @vue/runtime-core v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Tt=[];let Xs=!1;function Ed(e,...t){if(Xs)return;Xs=!0,ke();const s=Tt.length?Tt[Tt.length-1].component:null,i=s&&s.appContext.config.warnHandler,n=xl();if(i)at(i,s,11,[e+t.map(o=>{var l,r;return(r=(l=o.toString)==null?void 0:l.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,n.map(({vnode:o})=>`at <${lo(s,o.type)}>`).join(` `),n]);else{const o=[`[Vue warn]: ${e}`,...t];n.length&&o.push(` `,...yl(n)),console.warn(...o)}Te(),Xs=!1}function xl(){let e=Tt[Tt.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function yl(e){const t=[];return e.forEach((s,i)=>{t.push(...i===0?[]:[` -`],...wl(s))}),t}function wl({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,n=` at <${lo(e.component,e.type,i)}`,o=">"+s;return e.props?[n,..._l(e.props),o]:[n+o]}function _l(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(i=>{t.push(...ln(i,e[i]))}),s.length>3&&t.push(" ..."),t}function ln(e,t,s){return G(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ae(t)?(t=ln(e,F(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=F(t),s?t:[`${e}=`,t])}function at(e,t,s,i){try{return i?e(...i):e()}catch(n){rs(n,t,s)}}function we(e,t,s,i){if(L(e)){const n=at(e,t,s,i);return n&&Ai(n)&&n.catch(o=>{rs(o,t,s)}),n}if(R(e)){const n=[];for(let o=0;o>>1,n=de[i],o=Et(n);o=Et(s)?de.push(e):de.splice(kl(t),0,e),e.flags|=1,cn()}}function cn(){as||(as=rn.then(pn))}function Tl(e){if(!R(e))Je&&e.id===-1?Je.splice(dt+1,0,e):e.flags&1||(ct.push(e),e.flags|=1);else for(let t=0;tEt(s)-Et(i));if(ct.length=0,Je){for(let s=0;se.id==null?e.flags&2?-1:1/0:e.id;function pn(e){try{for(Ce=0;Ce{i._d&&Xn(-1);const o=cs(t),l=ze.length;let r;try{r=e(...n)}finally{for(let a=ze.length;a>l;a--)pi();cs(o),i._d&&Xn(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function ds(e,t){if(oe===null)return e;const s=_s(oe),i=e.dirs||(e.dirs=[]);for(let n=0;n1)return s&&L(t)?t.call(i&&i.proxy):t}}const Cl=Symbol.for("v-scx"),Ol=()=>Ct(Cl);function Qs(e,t,s){return hn(e,t,s)}function hn(e,t,s=z){const{immediate:i,deep:n,flush:o,once:l}=s,r=Z({},s),a=t&&i||!t&&o!=="post";let p;if(Ht){if(o==="sync"){const k=Ol();p=k.__watcherHandles||(k.__watcherHandles=[])}else if(!a){const k=()=>{};return k.stop=_e,k.resume=_e,k.pause=_e,k}}const f=ce;r.call=(k,j,P)=>we(k,f,j,P);let h=!1;o==="post"?r.scheduler=k=>{ue(k,f&&f.suspense)}:o!=="sync"&&(h=!0,r.scheduler=(k,j)=>{j?k():Zs(k)}),r.augmentJob=k=>{t&&(k.flags|=4),h&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const y=ml(e,t,r);return Ht&&(p?p.push(y):a&&y()),y}function Al(e,t,s){const i=this.proxy,n=G(e)?e.includes(".")?gn(i,e):()=>i[e]:e.bind(i,i);let o;L(t)?o=t:(o=t.handler,s=t);const l=Nt(this),r=hn(n,o.bind(i),s);return l(),r}function gn(e,t){const s=t.split(".");return()=>{let i=e;for(let n=0;ne.__isTeleport,ei=Symbol("_leaveCb");function Rl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Oe){t=s;break}}return t}function bn(e){if(!si(e))return fs(e.type)&&e.children?Rl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function ti(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;ti(fs(s.type)&&bn(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ps(e,t){return L(e)?Z({name:e.name},t,{setup:e}):e}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const us=new WeakMap;function Ot(e,t,s,i,n=!1){if(R(e)){e.forEach((P,ee)=>Ot(P,t&&(R(t)?t[ee]:t),s,i,n));return}if(pt(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ot(e,t,s,i.component.subTree);return}const o=i.shapeFlag&4?_s(i.component):i.el,l=n?null:o,{i:r,r:a}=e,p=t&&t.r,f=r.refs===z?r.refs={}:r.refs,h=r.setupState,y=F(h),k=h===z?Ci:P=>mn(f,P)?!1:D(y,P),j=(P,ee)=>!(ee&&mn(f,ee));if(p!=null&&p!==a){if(xn(t),G(p))f[p]=null,k(p)&&(h[p]=null);else if(ae(p)){const P=t;j(p,P.k)&&(p.value=null),P.k&&(f[P.k]=null)}}if(L(a))at(a,r,12,[l,f]);else{const P=G(a),ee=ae(a);if(P||ee){const Y=()=>{if(e.f){const $=P?k(a)?h[a]:f[a]:j()||!e.k?a.value:f[e.k];if(n)R($)&&Ls($,o);else if(R($))$.includes(o)||$.push(o);else if(P)f[a]=[o],k(a)&&(h[a]=f[a]);else{const U=[o];j(a,e.k)&&(a.value=U),e.k&&(f[e.k]=U)}}else P?(f[a]=l,k(a)&&(h[a]=l)):ee&&(j(a,e.k)&&(a.value=l),e.k&&(f[e.k]=l))};if(l){const $=()=>{Y(),us.delete(e)};$.id=-1,us.set(e,$),ue($,s)}else xn(e),Y()}}}function xn(e){const t=us.get(e);t&&(t.flags|=8,us.delete(e))}Zt().requestIdleCallback,Zt().cancelIdleCallback;const pt=e=>!!e.type.__asyncLoader,si=e=>e.type.__isKeepAlive;function Il(e,t){yn(e,"a",t)}function Ll(e,t){yn(e,"da",t)}function yn(e,t,s=ce){const i=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(hs(t,i,s),s){let n=s.parent;for(;n&&n.parent;)si(n.parent.vnode)&&Pl(i,t,s,n),n=n.parent}}function Pl(e,t,s,i){const n=hs(t,e,i,!0);_n(()=>{Ls(i[t],n)},s)}function hs(e,t,s=ce,i=!1){if(s){const n=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...l)=>{ke();const r=Nt(s),a=we(t,s,e,l);return r(),Te(),a});return i?n.unshift(o):n.push(o),o}}const Ue=e=>(t,s=ce)=>{(!Ht||e==="sp")&&hs(e,(...i)=>t(...i),s)},Nl=Ue("bm"),wn=Ue("m"),Hl=Ue("bu"),$l=Ue("u"),Dl=Ue("bum"),_n=Ue("um"),Fl=Ue("sp"),jl=Ue("rtg"),Kl=Ue("rtc");function Ul(e,t=ce){hs("ec",e,t)}const Vl="components";function Sn(e,t){return Bl(Vl,e,!0,t)||e}const zl=Symbol.for("v-ndc");function Bl(e,t,s=!0,i=!1){const n=oe||ce;if(n){const o=n.type;{const r=oo(o,!1);if(r&&(r===t||r===ie(t)||r===Yt(ie(t))))return o}const l=kn(n[e]||o[e],t)||kn(n.appContext[e],t);return!l&&i?o:l}}function kn(e,t){return e&&(e[t]||e[ie(t)]||e[Yt(ie(t))])}function Ve(e,t,s,i){let n;const o=s,l=R(e);if(l||G(e)){const r=l&&Ze(e);let a=!1,p=!1;r&&(a=!ye(e),p=Ge(e),e=es(e)),n=new Array(e.length);for(let f=0,h=e.length;ft(r,a,void 0,o));else{const r=Object.keys(e);n=new Array(r.length);for(let a=0,p=r.length;a0;return t!=="default"&&(p.name=t),E(),ms(J,null,[ve("slot",p,i)],f?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const r=ze.length;E();let a;try{const p=l&&Tn(l(s)),f=s.key||o||p&&p.key;a=ms(J,{key:(f&&!me(f)?f:`_${t}`)+(!p&&i?"_fb":"")},p||(i?i():[]),p&&e._===1?64:-2)}catch(p){for(let f=ze.length;f>r;f--)pi();throw p}finally{l&&l._c&&(l._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function Tn(e){return e.some(t=>ui(t)?!(t.type===Oe||t.type===J&&!Tn(t.children)):!0)?e:null}const ii=e=>e?so(e)?_s(e):ii(e.parent):null,Mt=Z(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=>ii(e.parent),$root:e=>ii(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>An(e),$forceUpdate:e=>e.f||(e.f=()=>{Zs(e.update)}),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>Al.bind(e)}),ni=(e,t)=>e!==z&&!e.__isScriptSetup&&D(e,t),Wl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:i,data:n,props:o,accessCache:l,type:r,appContext:a}=e;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return n[t];case 4:return s[t];case 3:return o[t]}else{if(ni(i,t))return l[t]=1,i[t];if(n!==z&&D(n,t))return l[t]=2,n[t];if(D(o,t))return l[t]=3,o[t];if(s!==z&&D(s,t))return l[t]=4,s[t];oi&&(l[t]=0)}}const p=Mt[t];let f,h;if(p)return t==="$attrs"&&re(e.attrs,"get",""),p(e);if((f=r.__cssModules)&&(f=f[t]))return f;if(s!==z&&D(s,t))return l[t]=4,s[t];if(h=a.config.globalProperties,D(h,t))return h[t]},set({_:e},t,s){const{data:i,setupState:n,ctx:o}=e;return ni(n,t)?(n[t]=s,!0):i!==z&&D(i,t)?(i[t]=s,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:n,props:o,type:l}},r){let a;return!!(s[r]||e!==z&&r[0]!=="$"&&D(e,r)||ni(t,r)||D(o,r)||D(i,r)||D(Mt,r)||D(n.config.globalProperties,r)||(a=l.__cssModules)&&a[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:D(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function En(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let oi=!0;function ql(e){const t=An(e),s=e.proxy,i=e.ctx;oi=!1,t.beforeCreate&&Cn(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:l,watch:r,provide:a,inject:p,created:f,beforeMount:h,mounted:y,beforeUpdate:k,updated:j,activated:P,deactivated:ee,beforeDestroy:Y,beforeUnmount:$,destroyed:U,unmounted:M,render:se,renderTracked:Re,renderTriggered:Ie,errorCaptured:Ye,serverPrefetch:Cs,expose:st,inheritAttrs:Kt,components:Os,directives:As,filters:Ti}=t;if(p&&Gl(p,i,null),l)for(const X in l){const q=l[X];L(q)&&(i[X]=q.bind(s))}if(n){const X=n.call(s,s);K(X)&&(e.data=Gs(X))}if(oi=!0,o)for(const X in o){const q=o[X],it=L(q)?q.bind(s,s):L(q.get)?q.get.bind(s,s):_e,Ms=!L(q)&&L(q.set)?q.set.bind(s):_e,nt=Rr({get:it,set:Ms});Object.defineProperty(i,X,{enumerable:!0,configurable:!0,get:()=>nt.value,set:Le=>nt.value=Le})}if(r)for(const X in r)On(r[X],i,s,X);if(a){const X=L(a)?a.call(s):a;Reflect.ownKeys(X).forEach(q=>{El(q,X[q])})}f&&Cn(f,e,"c");function pe(X,q){R(q)?q.forEach(it=>X(it.bind(s))):q&&X(q.bind(s))}if(pe(Nl,h),pe(wn,y),pe(Hl,k),pe($l,j),pe(Il,P),pe(Ll,ee),pe(Ul,Ye),pe(Kl,Re),pe(jl,Ie),pe(Dl,$),pe(_n,M),pe(Fl,Cs),R(st))if(st.length){const X=e.exposed||(e.exposed={});st.forEach(q=>{Object.defineProperty(X,q,{get:()=>s[q],set:it=>s[q]=it,enumerable:!0})})}else e.exposed||(e.exposed={});se&&e.render===_e&&(e.render=se),Kt!=null&&(e.inheritAttrs=Kt),Os&&(e.components=Os),As&&(e.directives=As),Cs&&vn(e)}function Gl(e,t,s=_e){R(e)&&(e=li(e));for(const i in e){const n=e[i];let o;K(n)?"default"in n?o=Ct(n.from||i,n.default,!0):o=Ct(n.from||i):o=Ct(n),ae(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[i]=o}}function Cn(e,t,s){we(R(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function On(e,t,s,i){let n=i.includes(".")?gn(s,i):()=>s[i];if(G(e)){const o=t[e];L(o)&&Qs(n,o)}else if(L(e))Qs(n,e.bind(s));else if(K(e))if(R(e))e.forEach(o=>On(o,t,s,i));else{const o=L(e.handler)?e.handler.bind(s):t[e.handler];L(o)&&Qs(n,o,e)}}function An(e){const t=e.type,{mixins:s,extends:i}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,r=o.get(t);let a;return r?a=r:!n.length&&!s&&!i?a=t:(a={},n.length&&n.forEach(p=>gs(a,p,l,!0)),gs(a,t,l)),K(t)&&o.set(t,a),a}function gs(e,t,s,i=!1){const{mixins:n,extends:o}=t;o&&gs(e,o,s,!0),n&&n.forEach(l=>gs(e,l,s,!0));for(const l in t)if(!(i&&l==="expose")){const r=Jl[l]||s&&s[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const Jl={data:Mn,props:Rn,emits:Rn,methods:Rt,computed:Rt,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:Rt,directives:Rt,watch:Xl,provide:Mn,inject:Yl};function Mn(e,t){return t?e?function(){return Z(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Yl(e,t){return Rt(li(e),li(t))}function li(e){if(R(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ie(t)}Modifiers`]||e[`${be(t)}Modifiers`];function tr(e,t,...s){if(e.isUnmounted)return;const i=e.vnode.props||z;let n=s;const o=t.startsWith("update:"),l=o&&er(i,t.slice(7));l&&(l.trim&&(n=s.map(f=>G(f)?f.trim():f)),l.number&&(n=n.map(Hs)));let r,a=i[r=Ns(t)]||i[r=Ns(ie(t))];!a&&o&&(a=i[r=Ns(be(t))]),a&&we(a,e,6,n);const p=i[r+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,we(p,e,6,n)}}const sr=new WeakMap;function Ln(e,t,s=!1){const i=s?sr:t.emitsCache,n=i.get(e);if(n!==void 0)return n;const o=e.emits;let l={},r=!1;if(!L(e)){const a=p=>{const f=Ln(p,t,!0);f&&(r=!0,Z(l,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!r?(K(e)&&i.set(e,null),null):(R(o)?o.forEach(a=>l[a]=null):Z(l,o),K(e)&&i.set(e,l),l)}function bs(e,t){return!e||!Bt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,be(t))||D(e,t))}function Cd(){}function Pn(e){const{type:t,vnode:s,proxy:i,withProxy:n,propsOptions:[o],slots:l,attrs:r,emit:a,render:p,renderCache:f,props:h,data:y,setupState:k,ctx:j,inheritAttrs:P}=e,ee=cs(e);let Y,$;try{if(s.shapeFlag&4){const M=n||i,se=M;Y=Ae(p.call(se,M,f,h,k,y,j)),$=r}else{const M=t;Y=Ae(M.length>1?M(h,{attrs:r,slots:l,emit:a}):M(h,null)),$=t.props?r:ir(r)}}catch(M){ze.length=0,rs(M,e,1),Y=ve(Oe)}let U=Y;if($&&P!==!1){const M=Object.keys($),{shapeFlag:se}=U;M.length&&se&7&&(o&&M.some(Wt)&&($=nr($,o)),U=ht(U,$,!1,!0))}if(s.dirs&&(U=ht(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const M=fs(U.type)&&bn(U)||U;ti(M,s.transition)}return Y=U,cs(ee),Y}const ir=e=>{let t;for(const s in e)(s==="class"||s==="style"||Bt(s))&&((t||(t={}))[s]=e[s]);return t},nr=(e,t)=>{const s={};for(const i in e)(!Wt(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function or(e,t,s){const{props:i,children:n,component:o}=e,{props:l,children:r,patchFlag:a}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return i?Nn(i,l,p):!!l;if(a&8){const f=t.dynamicProps;for(let h=0;hObject.create($n),Fn=e=>Object.getPrototypeOf(e)===$n;function rr(e,t,s,i=!1){const n={},o=Dn();e.propsDefaults=Object.create(null),jn(e,t,n,o);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);s?e.props=i?n:pl(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function ar(e,t,s,i){const{props:n,attrs:o,vnode:{patchFlag:l}}=e,r=F(n),[a]=e.propsOptions;let p=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[y,k]=Kn(h,t,!0);Z(l,y),k&&r.push(...k)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return K(e)&&i.set(e,ot),ot;if(R(o))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",ci=e=>R(e)?e.map(Ae):[Ae(e)],dr=(e,t,s)=>{if(t._n)return t;const i=ft((...n)=>ci(t(...n)),s);return i._c=!1,i},Vn=(e,t,s)=>{const i=e._ctx;for(const n in e){if(ai(n))continue;const o=e[n];if(L(o))t[n]=dr(n,o,i);else if(o!=null){const l=ci(o);t[n]=()=>l}}},zn=(e,t)=>{const s=ci(t);e.slots.default=()=>s},Bn=(e,t,s)=>{for(const i in t)(s||!ai(i))&&(e[i]=t[i])},fr=(e,t,s)=>{const i=e.slots=Dn();if(e.vnode.shapeFlag&32){const n=t._;n?(Bn(i,t,s),s&&Ri(i,"_",n,!0)):Vn(t,i)}else t&&zn(e,t)},pr=(e,t,s)=>{const{vnode:i,slots:n}=e;let o=!0,l=z;if(i.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Bn(n,t,s):(o=!t.$stable,Vn(t,n)),l=t}else t&&(zn(e,t),l={default:1});if(o)for(const r in n)!ai(r)&&l[r]==null&&delete n[r]},ue=vr;function ur(e){return hr(e)}function hr(e,t){const s=Zt();s.__VUE__=!0;const{insert:i,remove:n,patchProp:o,createElement:l,createText:r,createComment:a,setText:p,setElementText:f,parentNode:h,nextSibling:y,setScopeId:k=_e,insertStaticContent:j}=e,P=(c,d,u,m=null,v=null,g=null,_=void 0,w=null,x=!!d.dynamicChildren)=>{if(c===d)return;c&&!Lt(c,d)&&(m=Rs(c),Le(c,v,g,!0),c=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:b,ref:A,shapeFlag:S}=d;switch(b){case vs:ee(c,d,u,m);break;case Oe:Y(c,d,u,m);break;case fi:c==null&&$(d,u,m,_);break;case J:Os(c,d,u,m,v,g,_,w,x);break;default:S&1?se(c,d,u,m,v,g,_,w,x):S&6?As(c,d,u,m,v,g,_,w,x):(S&64||S&128)&&b.process(c,d,u,m,v,g,_,w,x,Vt)}A!=null&&v?Ot(A,c&&c.ref,g,d||c,!d):A==null&&c&&c.ref!=null&&Ot(c.ref,null,g,c,!0)},ee=(c,d,u,m)=>{if(c==null)i(d.el=r(d.children),u,m);else{const v=d.el=c.el;d.children!==c.children&&p(v,d.children)}},Y=(c,d,u,m)=>{c==null?i(d.el=a(d.children||""),u,m):d.el=c.el},$=(c,d,u,m)=>{[c.el,c.anchor]=j(c.children,d,u,m,c.el,c.anchor)},U=({el:c,anchor:d},u,m)=>{let v;for(;c&&c!==d;)v=y(c),i(c,u,m),c=v;i(d,u,m)},M=({el:c,anchor:d})=>{let u;for(;c&&c!==d;)u=y(c),n(c),c=u;n(d)},se=(c,d,u,m,v,g,_,w,x)=>{if(d.type==="svg"?_="svg":d.type==="math"&&(_="mathml"),c==null)Re(d,u,m,v,g,_,w,x);else{const b=c.el&&c.el._isVueCE?c.el:null;try{b&&b._beginPatch(),Cs(c,d,v,g,_,w,x)}finally{b&&b._endPatch()}}},Re=(c,d,u,m,v,g,_,w)=>{let x,b;const{props:A,shapeFlag:S,transition:O,dirs:I}=c;if(x=c.el=l(c.type,g,A&&A.is,A),S&8?f(x,c.children):S&16&&Ye(c.children,x,null,m,v,di(c,g),_,w),I&&et(c,null,m,"created"),Ie(x,c,c.scopeId,_,m),A){for(const B in A)B!=="value"&&!mt(B)&&o(x,B,null,A[B],g,m);"value"in A&&o(x,"value",null,A.value,g),(b=A.onVnodeBeforeMount)&&Me(b,m,c)}I&&et(c,null,m,"beforeMount");const H=gr(v,O);H&&O.beforeEnter(x),i(x,d,u),((b=A&&A.onVnodeMounted)||H||I)&&ue(()=>{try{b&&Me(b,m,c),H&&O.enter(x),I&&et(c,null,m,"mounted")}finally{}},v)},Ie=(c,d,u,m,v)=>{if(u&&k(c,u),m)for(let g=0;g{for(let b=x;b{const w=d.el=c.el;let{patchFlag:x,dynamicChildren:b,dirs:A}=d;x|=c.patchFlag&16;const S=c.props||z,O=d.props||z;let I;if(u&&tt(u,!1),(I=O.onVnodeBeforeUpdate)&&Me(I,u,d,c),A&&et(d,c,u,"beforeUpdate"),u&&tt(u,!0),b&&(!c.dynamicChildren||c.dynamicChildren.length!==b.length)&&(x=0,_=!1,b=null),(S.innerHTML&&O.innerHTML==null||S.textContent&&O.textContent==null)&&f(w,""),b?st(c.dynamicChildren,b,w,u,m,di(d,v),g):_||q(c,d,w,null,u,m,di(d,v),g,!1),x>0){if(x&16)Kt(w,S,O,u,v);else if(x&2&&S.class!==O.class&&o(w,"class",null,O.class,v),x&4&&o(w,"style",S.style,O.style,v),x&8){const H=d.dynamicProps;for(let B=0;B{I&&Me(I,u,d,c),A&&et(d,c,u,"updated")},m)},st=(c,d,u,m,v,g,_)=>{for(let w=0;w{if(d!==u){if(d!==z)for(const g in d)!mt(g)&&!(g in u)&&o(c,g,d[g],null,v,m);for(const g in u){if(mt(g))continue;const _=u[g],w=d[g];_!==w&&g!=="value"&&o(c,g,w,_,v,m)}"value"in u&&o(c,"value",d.value,u.value,v)}},Os=(c,d,u,m,v,g,_,w,x)=>{const b=d.el=c?c.el:r(""),A=d.anchor=c?c.anchor:r("");let{patchFlag:S,dynamicChildren:O,slotScopeIds:I}=d;I&&(w=w?w.concat(I):I),c==null?(i(b,u,m),i(A,u,m),Ye(d.children||[],u,A,v,g,_,w,x)):S>0&&S&64&&O&&c.dynamicChildren&&c.dynamicChildren.length===O.length?(st(c.dynamicChildren,O,u,v,g,_,w),(d.key!=null||v&&d===v.subTree)&&Wn(c,d,!0)):q(c,d,u,A,v,g,_,w,x)},As=(c,d,u,m,v,g,_,w,x)=>{d.slotScopeIds=w,c==null?d.shapeFlag&512?v.ctx.activate(d,u,m,_,x):Ti(d,u,m,v,g,_,x):Ro(c,d,x)},Ti=(c,d,u,m,v,g,_)=>{const w=c.component=Sr(c,m,v);if(si(c)&&(w.ctx.renderer=Vt),kr(w,!1,_),w.asyncDep){if(v&&v.registerDep(w,pe,_),!c.el){const x=w.subTree=ve(Oe);Y(null,x,d,u),c.placeholder=x.el}}else pe(w,c,d,u,v,g,_)},Ro=(c,d,u)=>{const m=d.component=c.component;if(or(c,d,u))if(m.asyncDep&&!m.asyncResolved){X(m,d,u);return}else m.next=d,m.update();else d.el=c.el,m.vnode=d},pe=(c,d,u,m,v,g,_)=>{const w=()=>{if(c.isMounted){let{next:S,bu:O,u:I,parent:H,vnode:B}=c;{const Ne=qn(c);if(Ne){S&&(S.el=B.el,X(c,S,_)),Ne.asyncDep.then(()=>{ue(()=>{c.isUnmounted||b()},v)});return}}let V=S,te;tt(c,!1),S?(S.el=B.el,X(c,S,_)):S=B,O&&Xt(O),(te=S.props&&S.props.onVnodeBeforeUpdate)&&Me(te,H,S,B),tt(c,!0);const le=Pn(c),Pe=c.subTree;c.subTree=le,P(Pe,le,h(Pe.el),Rs(Pe),c,v,g),S.el=le.el,V===null&&lr(c,le.el),I&&ue(I,v),(te=S.props&&S.props.onVnodeUpdated)&&ue(()=>Me(te,H,S,B),v)}else{let S;const{el:O,props:I}=d,{bm:H,m:B,parent:V,root:te,type:le}=c,Pe=pt(d);tt(c,!1),H&&Xt(H),!Pe&&(S=I&&I.onVnodeBeforeMount)&&Me(S,V,d),tt(c,!0);{te.ce&&te.ce._hasShadowRoot()&&te.ce._injectChildStyle(le,c.parent?c.parent.type:void 0);const Ne=c.subTree=Pn(c);P(null,Ne,u,m,c,v,g),d.el=Ne.el}if(B&&ue(B,v),!Pe&&(S=I&&I.onVnodeMounted)){const Ne=d;ue(()=>Me(S,V,Ne),v)}(d.shapeFlag&256||V&&pt(V.vnode)&&V.vnode.shapeFlag&256)&&c.a&&ue(c.a,v),c.isMounted=!0,d=u=m=null}};c.scope.on();const x=c.effect=new Di(w);c.scope.off();const b=c.update=x.run.bind(x),A=c.job=x.runIfDirty.bind(x);A.i=c,A.id=c.uid,x.scheduler=()=>Zs(A),tt(c,!0),b()},X=(c,d,u)=>{d.component=c;const m=c.vnode.props;c.vnode=d,c.next=null,ar(c,d.props,m,u),pr(c,d.children,u),ke(),dn(c),Te()},q=(c,d,u,m,v,g,_,w,x=!1)=>{const b=c&&c.children,A=c?c.shapeFlag:0,S=d.children,{patchFlag:O,shapeFlag:I}=d;if(O>0){if(O&128){Ms(b,S,u,m,v,g,_,w,x);return}else if(O&256){it(b,S,u,m,v,g,_,w,x);return}}I&8?(A&16&&Ut(b,v,g),S!==b&&f(u,S)):A&16?I&16?Ms(b,S,u,m,v,g,_,w,x):Ut(b,v,g,!0):(A&8&&f(u,""),I&16&&Ye(S,u,m,v,g,_,w,x))},it=(c,d,u,m,v,g,_,w,x)=>{c=c||ot,d=d||ot;const b=c.length,A=d.length,S=Math.min(b,A);let O;for(O=0;OA?Ut(c,v,g,!0,!1,S):Ye(d,u,m,v,g,_,w,x,S)},Ms=(c,d,u,m,v,g,_,w,x)=>{let b=0;const A=d.length;let S=c.length-1,O=A-1;for(;b<=S&&b<=O;){const I=c[b],H=d[b]=x?Be(d[b]):Ae(d[b]);if(Lt(I,H))P(I,H,u,null,v,g,_,w,x);else break;b++}for(;b<=S&&b<=O;){const I=c[S],H=d[O]=x?Be(d[O]):Ae(d[O]);if(Lt(I,H))P(I,H,u,null,v,g,_,w,x);else break;S--,O--}if(b>S){if(b<=O){const I=O+1,H=IO)for(;b<=S;)Le(c[b],v,g,!0),b++;else{const I=b,H=b,B=new Map;for(b=H;b<=O;b++){const ge=d[b]=x?Be(d[b]):Ae(d[b]);ge.key!=null&&B.set(ge.key,b)}let V,te=0;const le=O-H+1;let Pe=!1,Ne=0;const zt=new Array(le);for(b=0;b=le){Le(ge,v,g,!0);continue}let He;if(ge.key!=null)He=B.get(ge.key);else for(V=H;V<=O;V++)if(zt[V-H]===0&&Lt(ge,d[V])){He=V;break}He===void 0?Le(ge,v,g,!0):(zt[He-H]=b+1,He>=Ne?Ne=He:Pe=!0,P(ge,d[He],u,null,v,g,_,w,x),te++)}const Po=Pe?br(zt):ot;for(V=Po.length-1,b=le-1;b>=0;b--){const ge=H+b,He=d[ge],No=d[ge+1],Ho=ge+1{const{el:g,type:_,transition:w,children:x,shapeFlag:b}=c;if(b&6){nt(c.component.subTree,d,u,m);return}if(b&128){c.suspense.move(d,u,m);return}if(b&64){_.move(c,d,u,Vt);return}if(_===J){i(g,d,u);for(let S=0;Sw.enter(g),v));else{const{leave:S,delayLeave:O,afterLeave:I}=w,H=()=>{c.ctx.isUnmounted?n(g):i(g,d,u)},B=()=>{const V=g._isLeaving||!!g[ei];g._isLeaving&&g[ei](!0),w.persisted&&!V?H():S(g,()=>{H(),I&&I()})};O?O(g,H,B):B()}else i(g,d,u)},Le=(c,d,u,m=!1,v=!1)=>{const{type:g,props:_,ref:w,children:x,dynamicChildren:b,shapeFlag:A,patchFlag:S,dirs:O,cacheIndex:I,memo:H}=c;if(S===-2&&(v=!1),w!=null&&(ke(),Ot(w,null,u,c,!0),Te()),I!=null&&(d.renderCache[I]=void 0),A&256){d.ctx.deactivate(c);return}const B=A&1&&O,V=!pt(c);let te;if(V&&(te=_&&_.onVnodeBeforeUnmount)&&Me(te,d,c),A&6)Sd(c.component,u,m);else{if(A&128){c.suspense.unmount(u,m);return}B&&et(c,null,d,"beforeUnmount"),A&64?c.type.remove(c,d,u,Vt,m):b&&!b.hasOnce&&(g!==J||S>0&&S&64)?Ut(b,d,u,!1,!0):(g===J&&S&384||!v&&A&16)&&Ut(x,d,u),m&&Io(c)}const le=H!=null&&I==null;(V&&(te=_&&_.onVnodeUnmounted)||B||le)&&ue(()=>{te&&Me(te,d,c),B&&et(c,null,d,"unmounted"),le&&(c.el=null)},u)},Io=c=>{const{type:d,el:u,anchor:m,transition:v}=c;if(d===J){_d(u,m);return}if(d===fi){M(c);return}const g=()=>{n(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(c.shapeFlag&1&&v&&!v.persisted){const{leave:_,delayLeave:w}=v,x=()=>_(u,g);w?w(c.el,g,x):x()}else g()},_d=(c,d)=>{let u;for(;c!==d;)u=y(c),n(c),c=u;n(d)},Sd=(c,d,u)=>{const{bum:m,scope:v,job:g,subTree:_,um:w,m:x,a:b}=c;Gn(x),Gn(b),m&&Xt(m),v.stop(),g&&(g.flags|=8,Le(_,c,d,u)),w&&ue(w,d),ue(()=>{c.isUnmounted=!0},d)},Ut=(c,d,u,m=!1,v=!1,g=0)=>{for(let _=g;_{if(c.shapeFlag&6)return Rs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=y(c.anchor||c.el),u=d&&d[Ml];return u?y(u):d};let Ei=!1;const Lo=(c,d,u)=>{let m;c==null?d._vnode&&(Le(d._vnode,null,null,!0),m=d._vnode.component):P(d._vnode||null,c,d,null,null,null,u),d._vnode=c,Ei||(Ei=!0,dn(m),fn(),Ei=!1)},Vt={p:P,um:Le,m:nt,r:Io,mt:Ti,mc:Ye,pc:q,pbc:st,n:Rs,o:e};return{render:Lo,hydrate:void 0,createApp:Ql(Lo)}}function di({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wn(e,t,s=!1){const i=e.children,n=t.children;if(R(i)&&R(n))for(let o=0;o>1,e[s[r]]0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,l=s[o-1];o-- >0;)s[o]=l,l=t[l];return s}function qn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qn(t)}function Gn(e){if(e)for(let t=0;te.__isSuspense;function vr(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Tl(e)}const J=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),ze=[];let he=null;function E(e=!1){ze.push(he=e?null:[])}function pi(){ze.pop(),he=ze[ze.length-1]||null}let It=1;function Xn(e,t=!1){It+=e,e<0&&he&&t&&(he.hasOnce=!0)}function Zn(e){return e.dynamicChildren=It>0?he||ot:null,pi(),It>0&&he&&he.push(e),e}function C(e,t,s,i,n,o){return Zn(T(e,t,s,i,n,o,!0))}function ms(e,t,s,i,n){return Zn(ve(e,t,s,i,n,!0))}function ui(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Qn=({key:e})=>e??null,xs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||ae(e)||L(e)?{i:oe,r:e,k:t,f:!!s}:e:null);function T(e,t=null,s=null,i=0,n=null,o=e===J?0:1,l=!1,r=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qn(t),ref:t&&xs(t),scopeId:un,slotScopeIds:null,children:s,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:o,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:oe};return r?(ys(a,s),o&128&&e.normalize(a)):s&&(a.shapeFlag|=G(s)?8:16),It>0&&!l&&he&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&he.push(a),a}const ve=mr;function mr(e,t=null,s=null,i=0,n=null,o=!1){if((!e||e===zl)&&(e=Oe),ui(e)){const r=ht(e,t,!0);return s&&ys(r,s),It>0&&!o&&he&&(r.shapeFlag&6?he[he.indexOf(e)]=r:he.push(r)),r.patchFlag=-2,r}if(Mr(e)&&(e=e.__vccOpts),t){t=xr(t);let{class:r,style:a}=t;r&&!G(r)&&(t.class=Se(r)),K(a)&&(Ys(a)&&!R(a)&&(a=Z({},a)),t.style=xt(a))}const l=G(e)?1:Yn(e)?128:fs(e)?64:K(e)?4:L(e)?2:0;return T(e,t,s,i,n,l,o,!0)}function xr(e){return e?Ys(e)||Fn(e)?Z({},e):e:null}function ht(e,t,s=!1,i=!1){const{props:n,ref:o,patchFlag:l,children:r,transition:a}=e,p=t?yr(n||{},t):n,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Qn(p),ref:t&&t.ref?s&&o?R(o)?o.concat(xs(t)):[o,xs(t)]:xs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==J?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&ti(f,a.clone(f)),f}function gt(e=" ",t=0){return ve(vs,null,e,t)}function Q(e="",t=!1){return t?(E(),ms(Oe,null,e)):ve(Oe,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ve(Oe):R(e)?ve(J,null,e.slice()):ui(e)?Be(e):ve(vs,null,String(e))}function Be(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function ys(e,t){let s=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),ys(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!Fn(t)?t._ctx=oe:n===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(L(t)){if(i&65){ys(e,{default:t});return}t={default:t,_ctx:oe},s=32}else t=String(t),i&64?(s=16,t=[gt(t)]):s=8;e.children=t,e.shapeFlag|=s}function yr(...e){const t={};for(let s=0;sce||oe;let ws,Pt;{const e=Zt(),t=(s,i)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(i),o=>{n.length>1?n.forEach(l=>l(o)):n[0](o)}};ws=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),Pt=t("__VUE_SSR_SETTERS__",s=>Ht=s)}const Nt=e=>{const t=ce;return ws(e),e.scope.on(),()=>{e.scope.off(),ws(t)}},to=()=>{ce&&ce.scope.off(),ws(null)};function so(e){return e.vnode.shapeFlag&4}let Ht=!1;function kr(e,t=!1,s=!1){t&&Pt(t);const{props:i,children:n}=e.vnode,o=so(e);rr(e,i,o,t),fr(e,n,s||t);const l=o?Tr(e,t):void 0;return t&&Pt(!1),l}function Tr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wl);const{setup:i}=s;if(i){ke();const n=e.setupContext=i.length>1?Cr(e):null,o=Nt(e),l=at(i,e,0,[e.props,n]),r=Ai(l);if(Te(),o(),(r||e.sp)&&!pt(e)&&vn(e),r){if(l.then(to,to),t)return l.then(a=>{Pt(!0);try{io(e,a,t)}finally{Pt(!1)}}).catch(a=>{rs(a,e,0)});e.asyncDep=l}else io(e,l)}else no(e)}function io(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:K(t)&&(e.setupState=on(t)),no(e)}function no(e,t,s){const i=e.type;e.render||(e.render=i.render||_e);{const n=Nt(e);ke();try{ql(e)}finally{Te(),n()}}}const Er={get(e,t){return re(e,"get",""),e[t]}};function Cr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Er),slots:e.slots,emit:e.emit,expose:t}}function _s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(on(ul(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Mt)return Mt[s](e)},has(t,s){return s in t||s in Mt}})):e.proxy}const Or=/(?:^|[-_])\w/g,Ar=e=>e.replace(Or,t=>t.toUpperCase()).replace(/[-_]/g,"");function oo(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function lo(e,t,s=!1){let i=oo(t);if(!i&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(i=n[1])}if(!i&&e){const n=o=>{for(const l in o)if(o[l]===t)return l};i=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return i?Ar(i):s?"App":"Anonymous"}function Mr(e){return L(e)&&"__vccOpts"in e}const Rr=(e,t)=>bl(e,t,Ht),Ir="3.5.42";/** +`],...wl(s))}),t}function wl({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,n=` at <${lo(e.component,e.type,i)}`,o=">"+s;return e.props?[n,..._l(e.props),o]:[n+o]}function _l(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(i=>{t.push(...ln(i,e[i]))}),s.length>3&&t.push(" ..."),t}function ln(e,t,s){return G(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ae(t)?(t=ln(e,F(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=F(t),s?t:[`${e}=`,t])}function at(e,t,s,i){try{return i?e(...i):e()}catch(n){rs(n,t,s)}}function we(e,t,s,i){if(L(e)){const n=at(e,t,s,i);return n&&Ai(n)&&n.catch(o=>{rs(o,t,s)}),n}if(R(e)){const n=[];for(let o=0;o>>1,n=de[i],o=Et(n);o=Et(s)?de.push(e):de.splice(kl(t),0,e),e.flags|=1,cn()}}function cn(){as||(as=rn.then(pn))}function Tl(e){if(!R(e))Je&&e.id===-1?Je.splice(dt+1,0,e):e.flags&1||(ct.push(e),e.flags|=1);else for(let t=0;tEt(s)-Et(i));if(ct.length=0,Je){for(let s=0;se.id==null?e.flags&2?-1:1/0:e.id;function pn(e){try{for(Ce=0;Ce{i._d&&Xn(-1);const o=cs(t),l=ze.length;let r;try{r=e(...n)}finally{for(let a=ze.length;a>l;a--)pi();cs(o),i._d&&Xn(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function ds(e,t){if(oe===null)return e;const s=_s(oe),i=e.dirs||(e.dirs=[]);for(let n=0;n1)return s&&L(t)?t.call(i&&i.proxy):t}}const Cl=Symbol.for("v-scx"),Ol=()=>Ct(Cl);function Qs(e,t,s){return hn(e,t,s)}function hn(e,t,s=z){const{immediate:i,deep:n,flush:o,once:l}=s,r=Z({},s),a=t&&i||!t&&o!=="post";let p;if($t){if(o==="sync"){const k=Ol();p=k.__watcherHandles||(k.__watcherHandles=[])}else if(!a){const k=()=>{};return k.stop=_e,k.resume=_e,k.pause=_e,k}}const f=ce;r.call=(k,j,P)=>we(k,f,j,P);let h=!1;o==="post"?r.scheduler=k=>{ue(k,f&&f.suspense)}:o!=="sync"&&(h=!0,r.scheduler=(k,j)=>{j?k():Zs(k)}),r.augmentJob=k=>{t&&(k.flags|=4),h&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const y=ml(e,t,r);return $t&&(p?p.push(y):a&&y()),y}function Al(e,t,s){const i=this.proxy,n=G(e)?e.includes(".")?gn(i,e):()=>i[e]:e.bind(i,i);let o;L(t)?o=t:(o=t.handler,s=t);const l=Nt(this),r=hn(n,o.bind(i),s);return l(),r}function gn(e,t){const s=t.split(".");return()=>{let i=e;for(let n=0;ne.__isTeleport,ei=Symbol("_leaveCb");function Rl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Oe){t=s;break}}return t}function bn(e){if(!si(e))return fs(e.type)&&e.children?Rl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function ti(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;ti(fs(s.type)&&bn(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ps(e,t){return L(e)?Z({name:e.name},t,{setup:e}):e}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const us=new WeakMap;function Ot(e,t,s,i,n=!1){if(R(e)){e.forEach((P,ee)=>Ot(P,t&&(R(t)?t[ee]:t),s,i,n));return}if(pt(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ot(e,t,s,i.component.subTree);return}const o=i.shapeFlag&4?_s(i.component):i.el,l=n?null:o,{i:r,r:a}=e,p=t&&t.r,f=r.refs===z?r.refs={}:r.refs,h=r.setupState,y=F(h),k=h===z?Ci:P=>mn(f,P)?!1:D(y,P),j=(P,ee)=>!(ee&&mn(f,ee));if(p!=null&&p!==a){if(xn(t),G(p))f[p]=null,k(p)&&(h[p]=null);else if(ae(p)){const P=t;j(p,P.k)&&(p.value=null),P.k&&(f[P.k]=null)}}if(L(a))at(a,r,12,[l,f]);else{const P=G(a),ee=ae(a);if(P||ee){const Y=()=>{if(e.f){const H=P?k(a)?h[a]:f[a]:j()||!e.k?a.value:f[e.k];if(n)R(H)&&Ls(H,o);else if(R(H))H.includes(o)||H.push(o);else if(P)f[a]=[o],k(a)&&(h[a]=f[a]);else{const U=[o];j(a,e.k)&&(a.value=U),e.k&&(f[e.k]=U)}}else P?(f[a]=l,k(a)&&(h[a]=l)):ee&&(j(a,e.k)&&(a.value=l),e.k&&(f[e.k]=l))};if(l){const H=()=>{Y(),us.delete(e)};H.id=-1,us.set(e,H),ue(H,s)}else xn(e),Y()}}}function xn(e){const t=us.get(e);t&&(t.flags|=8,us.delete(e))}Zt().requestIdleCallback,Zt().cancelIdleCallback;const pt=e=>!!e.type.__asyncLoader,si=e=>e.type.__isKeepAlive;function Il(e,t){yn(e,"a",t)}function Ll(e,t){yn(e,"da",t)}function yn(e,t,s=ce){const i=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(hs(t,i,s),s){let n=s.parent;for(;n&&n.parent;)si(n.parent.vnode)&&Pl(i,t,s,n),n=n.parent}}function Pl(e,t,s,i){const n=hs(t,e,i,!0);_n(()=>{Ls(i[t],n)},s)}function hs(e,t,s=ce,i=!1){if(s){const n=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...l)=>{ke();const r=Nt(s),a=we(t,s,e,l);return r(),Te(),a});return i?n.unshift(o):n.push(o),o}}const Ue=e=>(t,s=ce)=>{(!$t||e==="sp")&&hs(e,(...i)=>t(...i),s)},Nl=Ue("bm"),wn=Ue("m"),$l=Ue("bu"),Hl=Ue("u"),Dl=Ue("bum"),_n=Ue("um"),Fl=Ue("sp"),jl=Ue("rtg"),Kl=Ue("rtc");function Ul(e,t=ce){hs("ec",e,t)}const Vl="components";function Sn(e,t){return Bl(Vl,e,!0,t)||e}const zl=Symbol.for("v-ndc");function Bl(e,t,s=!0,i=!1){const n=oe||ce;if(n){const o=n.type;{const r=oo(o,!1);if(r&&(r===t||r===ie(t)||r===Yt(ie(t))))return o}const l=kn(n[e]||o[e],t)||kn(n.appContext[e],t);return!l&&i?o:l}}function kn(e,t){return e&&(e[t]||e[ie(t)]||e[Yt(ie(t))])}function Ve(e,t,s,i){let n;const o=s,l=R(e);if(l||G(e)){const r=l&&Ze(e);let a=!1,p=!1;r&&(a=!ye(e),p=Ge(e),e=es(e)),n=new Array(e.length);for(let f=0,h=e.length;ft(r,a,void 0,o));else{const r=Object.keys(e);n=new Array(r.length);for(let a=0,p=r.length;a0;return t!=="default"&&(p.name=t),E(),ms(J,null,[ve("slot",p,i)],f?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const r=ze.length;E();let a;try{const p=l&&Tn(l(s)),f=s.key||o||p&&p.key;a=ms(J,{key:(f&&!me(f)?f:`_${t}`)+(!p&&i?"_fb":"")},p||(i?i():[]),p&&e._===1?64:-2)}catch(p){for(let f=ze.length;f>r;f--)pi();throw p}finally{l&&l._c&&(l._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function Tn(e){return e.some(t=>ui(t)?!(t.type===Oe||t.type===J&&!Tn(t.children)):!0)?e:null}const ii=e=>e?so(e)?_s(e):ii(e.parent):null,Mt=Z(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=>ii(e.parent),$root:e=>ii(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>An(e),$forceUpdate:e=>e.f||(e.f=()=>{Zs(e.update)}),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>Al.bind(e)}),ni=(e,t)=>e!==z&&!e.__isScriptSetup&&D(e,t),Wl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:i,data:n,props:o,accessCache:l,type:r,appContext:a}=e;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return n[t];case 4:return s[t];case 3:return o[t]}else{if(ni(i,t))return l[t]=1,i[t];if(n!==z&&D(n,t))return l[t]=2,n[t];if(D(o,t))return l[t]=3,o[t];if(s!==z&&D(s,t))return l[t]=4,s[t];oi&&(l[t]=0)}}const p=Mt[t];let f,h;if(p)return t==="$attrs"&&re(e.attrs,"get",""),p(e);if((f=r.__cssModules)&&(f=f[t]))return f;if(s!==z&&D(s,t))return l[t]=4,s[t];if(h=a.config.globalProperties,D(h,t))return h[t]},set({_:e},t,s){const{data:i,setupState:n,ctx:o}=e;return ni(n,t)?(n[t]=s,!0):i!==z&&D(i,t)?(i[t]=s,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:n,props:o,type:l}},r){let a;return!!(s[r]||e!==z&&r[0]!=="$"&&D(e,r)||ni(t,r)||D(o,r)||D(i,r)||D(Mt,r)||D(n.config.globalProperties,r)||(a=l.__cssModules)&&a[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:D(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function En(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let oi=!0;function ql(e){const t=An(e),s=e.proxy,i=e.ctx;oi=!1,t.beforeCreate&&Cn(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:l,watch:r,provide:a,inject:p,created:f,beforeMount:h,mounted:y,beforeUpdate:k,updated:j,activated:P,deactivated:ee,beforeDestroy:Y,beforeUnmount:H,destroyed:U,unmounted:M,render:se,renderTracked:Re,renderTriggered:Ie,errorCaptured:Ye,serverPrefetch:Cs,expose:st,inheritAttrs:Kt,components:Os,directives:As,filters:Ti}=t;if(p&&Gl(p,i,null),l)for(const X in l){const q=l[X];L(q)&&(i[X]=q.bind(s))}if(n){const X=n.call(s,s);K(X)&&(e.data=Gs(X))}if(oi=!0,o)for(const X in o){const q=o[X],it=L(q)?q.bind(s,s):L(q.get)?q.get.bind(s,s):_e,Ms=!L(q)&&L(q.set)?q.set.bind(s):_e,nt=Rr({get:it,set:Ms});Object.defineProperty(i,X,{enumerable:!0,configurable:!0,get:()=>nt.value,set:Le=>nt.value=Le})}if(r)for(const X in r)On(r[X],i,s,X);if(a){const X=L(a)?a.call(s):a;Reflect.ownKeys(X).forEach(q=>{El(q,X[q])})}f&&Cn(f,e,"c");function pe(X,q){R(q)?q.forEach(it=>X(it.bind(s))):q&&X(q.bind(s))}if(pe(Nl,h),pe(wn,y),pe($l,k),pe(Hl,j),pe(Il,P),pe(Ll,ee),pe(Ul,Ye),pe(Kl,Re),pe(jl,Ie),pe(Dl,H),pe(_n,M),pe(Fl,Cs),R(st))if(st.length){const X=e.exposed||(e.exposed={});st.forEach(q=>{Object.defineProperty(X,q,{get:()=>s[q],set:it=>s[q]=it,enumerable:!0})})}else e.exposed||(e.exposed={});se&&e.render===_e&&(e.render=se),Kt!=null&&(e.inheritAttrs=Kt),Os&&(e.components=Os),As&&(e.directives=As),Cs&&vn(e)}function Gl(e,t,s=_e){R(e)&&(e=li(e));for(const i in e){const n=e[i];let o;K(n)?"default"in n?o=Ct(n.from||i,n.default,!0):o=Ct(n.from||i):o=Ct(n),ae(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[i]=o}}function Cn(e,t,s){we(R(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function On(e,t,s,i){let n=i.includes(".")?gn(s,i):()=>s[i];if(G(e)){const o=t[e];L(o)&&Qs(n,o)}else if(L(e))Qs(n,e.bind(s));else if(K(e))if(R(e))e.forEach(o=>On(o,t,s,i));else{const o=L(e.handler)?e.handler.bind(s):t[e.handler];L(o)&&Qs(n,o,e)}}function An(e){const t=e.type,{mixins:s,extends:i}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,r=o.get(t);let a;return r?a=r:!n.length&&!s&&!i?a=t:(a={},n.length&&n.forEach(p=>gs(a,p,l,!0)),gs(a,t,l)),K(t)&&o.set(t,a),a}function gs(e,t,s,i=!1){const{mixins:n,extends:o}=t;o&&gs(e,o,s,!0),n&&n.forEach(l=>gs(e,l,s,!0));for(const l in t)if(!(i&&l==="expose")){const r=Jl[l]||s&&s[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const Jl={data:Mn,props:Rn,emits:Rn,methods:Rt,computed:Rt,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:Rt,directives:Rt,watch:Xl,provide:Mn,inject:Yl};function Mn(e,t){return t?e?function(){return Z(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Yl(e,t){return Rt(li(e),li(t))}function li(e){if(R(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ie(t)}Modifiers`]||e[`${be(t)}Modifiers`];function tr(e,t,...s){if(e.isUnmounted)return;const i=e.vnode.props||z;let n=s;const o=t.startsWith("update:"),l=o&&er(i,t.slice(7));l&&(l.trim&&(n=s.map(f=>G(f)?f.trim():f)),l.number&&(n=n.map($s)));let r,a=i[r=Ns(t)]||i[r=Ns(ie(t))];!a&&o&&(a=i[r=Ns(be(t))]),a&&we(a,e,6,n);const p=i[r+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,we(p,e,6,n)}}const sr=new WeakMap;function Ln(e,t,s=!1){const i=s?sr:t.emitsCache,n=i.get(e);if(n!==void 0)return n;const o=e.emits;let l={},r=!1;if(!L(e)){const a=p=>{const f=Ln(p,t,!0);f&&(r=!0,Z(l,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!r?(K(e)&&i.set(e,null),null):(R(o)?o.forEach(a=>l[a]=null):Z(l,o),K(e)&&i.set(e,l),l)}function bs(e,t){return!e||!Bt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,be(t))||D(e,t))}function Cd(){}function Pn(e){const{type:t,vnode:s,proxy:i,withProxy:n,propsOptions:[o],slots:l,attrs:r,emit:a,render:p,renderCache:f,props:h,data:y,setupState:k,ctx:j,inheritAttrs:P}=e,ee=cs(e);let Y,H;try{if(s.shapeFlag&4){const M=n||i,se=M;Y=Ae(p.call(se,M,f,h,k,y,j)),H=r}else{const M=t;Y=Ae(M.length>1?M(h,{attrs:r,slots:l,emit:a}):M(h,null)),H=t.props?r:ir(r)}}catch(M){ze.length=0,rs(M,e,1),Y=ve(Oe)}let U=Y;if(H&&P!==!1){const M=Object.keys(H),{shapeFlag:se}=U;M.length&&se&7&&(o&&M.some(Wt)&&(H=nr(H,o)),U=ht(U,H,!1,!0))}if(s.dirs&&(U=ht(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const M=fs(U.type)&&bn(U)||U;ti(M,s.transition)}return Y=U,cs(ee),Y}const ir=e=>{let t;for(const s in e)(s==="class"||s==="style"||Bt(s))&&((t||(t={}))[s]=e[s]);return t},nr=(e,t)=>{const s={};for(const i in e)(!Wt(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function or(e,t,s){const{props:i,children:n,component:o}=e,{props:l,children:r,patchFlag:a}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return i?Nn(i,l,p):!!l;if(a&8){const f=t.dynamicProps;for(let h=0;hObject.create(Hn),Fn=e=>Object.getPrototypeOf(e)===Hn;function rr(e,t,s,i=!1){const n={},o=Dn();e.propsDefaults=Object.create(null),jn(e,t,n,o);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);s?e.props=i?n:pl(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function ar(e,t,s,i){const{props:n,attrs:o,vnode:{patchFlag:l}}=e,r=F(n),[a]=e.propsOptions;let p=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[y,k]=Kn(h,t,!0);Z(l,y),k&&r.push(...k)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return K(e)&&i.set(e,ot),ot;if(R(o))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",ci=e=>R(e)?e.map(Ae):[Ae(e)],dr=(e,t,s)=>{if(t._n)return t;const i=ft((...n)=>ci(t(...n)),s);return i._c=!1,i},Vn=(e,t,s)=>{const i=e._ctx;for(const n in e){if(ai(n))continue;const o=e[n];if(L(o))t[n]=dr(n,o,i);else if(o!=null){const l=ci(o);t[n]=()=>l}}},zn=(e,t)=>{const s=ci(t);e.slots.default=()=>s},Bn=(e,t,s)=>{for(const i in t)(s||!ai(i))&&(e[i]=t[i])},fr=(e,t,s)=>{const i=e.slots=Dn();if(e.vnode.shapeFlag&32){const n=t._;n?(Bn(i,t,s),s&&Ri(i,"_",n,!0)):Vn(t,i)}else t&&zn(e,t)},pr=(e,t,s)=>{const{vnode:i,slots:n}=e;let o=!0,l=z;if(i.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Bn(n,t,s):(o=!t.$stable,Vn(t,n)),l=t}else t&&(zn(e,t),l={default:1});if(o)for(const r in n)!ai(r)&&l[r]==null&&delete n[r]},ue=vr;function ur(e){return hr(e)}function hr(e,t){const s=Zt();s.__VUE__=!0;const{insert:i,remove:n,patchProp:o,createElement:l,createText:r,createComment:a,setText:p,setElementText:f,parentNode:h,nextSibling:y,setScopeId:k=_e,insertStaticContent:j}=e,P=(c,d,u,m=null,v=null,g=null,_=void 0,w=null,x=!!d.dynamicChildren)=>{if(c===d)return;c&&!Lt(c,d)&&(m=Rs(c),Le(c,v,g,!0),c=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:b,ref:A,shapeFlag:S}=d;switch(b){case vs:ee(c,d,u,m);break;case Oe:Y(c,d,u,m);break;case fi:c==null&&H(d,u,m,_);break;case J:Os(c,d,u,m,v,g,_,w,x);break;default:S&1?se(c,d,u,m,v,g,_,w,x):S&6?As(c,d,u,m,v,g,_,w,x):(S&64||S&128)&&b.process(c,d,u,m,v,g,_,w,x,Vt)}A!=null&&v?Ot(A,c&&c.ref,g,d||c,!d):A==null&&c&&c.ref!=null&&Ot(c.ref,null,g,c,!0)},ee=(c,d,u,m)=>{if(c==null)i(d.el=r(d.children),u,m);else{const v=d.el=c.el;d.children!==c.children&&p(v,d.children)}},Y=(c,d,u,m)=>{c==null?i(d.el=a(d.children||""),u,m):d.el=c.el},H=(c,d,u,m)=>{[c.el,c.anchor]=j(c.children,d,u,m,c.el,c.anchor)},U=({el:c,anchor:d},u,m)=>{let v;for(;c&&c!==d;)v=y(c),i(c,u,m),c=v;i(d,u,m)},M=({el:c,anchor:d})=>{let u;for(;c&&c!==d;)u=y(c),n(c),c=u;n(d)},se=(c,d,u,m,v,g,_,w,x)=>{if(d.type==="svg"?_="svg":d.type==="math"&&(_="mathml"),c==null)Re(d,u,m,v,g,_,w,x);else{const b=c.el&&c.el._isVueCE?c.el:null;try{b&&b._beginPatch(),Cs(c,d,v,g,_,w,x)}finally{b&&b._endPatch()}}},Re=(c,d,u,m,v,g,_,w)=>{let x,b;const{props:A,shapeFlag:S,transition:O,dirs:I}=c;if(x=c.el=l(c.type,g,A&&A.is,A),S&8?f(x,c.children):S&16&&Ye(c.children,x,null,m,v,di(c,g),_,w),I&&et(c,null,m,"created"),Ie(x,c,c.scopeId,_,m),A){for(const B in A)B!=="value"&&!mt(B)&&o(x,B,null,A[B],g,m);"value"in A&&o(x,"value",null,A.value,g),(b=A.onVnodeBeforeMount)&&Me(b,m,c)}I&&et(c,null,m,"beforeMount");const $=gr(v,O);$&&O.beforeEnter(x),i(x,d,u),((b=A&&A.onVnodeMounted)||$||I)&&ue(()=>{try{b&&Me(b,m,c),$&&O.enter(x),I&&et(c,null,m,"mounted")}finally{}},v)},Ie=(c,d,u,m,v)=>{if(u&&k(c,u),m)for(let g=0;g{for(let b=x;b{const w=d.el=c.el;let{patchFlag:x,dynamicChildren:b,dirs:A}=d;x|=c.patchFlag&16;const S=c.props||z,O=d.props||z;let I;if(u&&tt(u,!1),(I=O.onVnodeBeforeUpdate)&&Me(I,u,d,c),A&&et(d,c,u,"beforeUpdate"),u&&tt(u,!0),b&&(!c.dynamicChildren||c.dynamicChildren.length!==b.length)&&(x=0,_=!1,b=null),(S.innerHTML&&O.innerHTML==null||S.textContent&&O.textContent==null)&&f(w,""),b?st(c.dynamicChildren,b,w,u,m,di(d,v),g):_||q(c,d,w,null,u,m,di(d,v),g,!1),x>0){if(x&16)Kt(w,S,O,u,v);else if(x&2&&S.class!==O.class&&o(w,"class",null,O.class,v),x&4&&o(w,"style",S.style,O.style,v),x&8){const $=d.dynamicProps;for(let B=0;B<$.length;B++){const V=$[B],te=S[V],le=O[V];(le!==te||V==="value")&&o(w,V,te,le,v,u)}}x&1&&c.children!==d.children&&f(w,d.children)}else!_&&b==null&&Kt(w,S,O,u,v);((I=O.onVnodeUpdated)||A)&&ue(()=>{I&&Me(I,u,d,c),A&&et(d,c,u,"updated")},m)},st=(c,d,u,m,v,g,_)=>{for(let w=0;w{if(d!==u){if(d!==z)for(const g in d)!mt(g)&&!(g in u)&&o(c,g,d[g],null,v,m);for(const g in u){if(mt(g))continue;const _=u[g],w=d[g];_!==w&&g!=="value"&&o(c,g,w,_,v,m)}"value"in u&&o(c,"value",d.value,u.value,v)}},Os=(c,d,u,m,v,g,_,w,x)=>{const b=d.el=c?c.el:r(""),A=d.anchor=c?c.anchor:r("");let{patchFlag:S,dynamicChildren:O,slotScopeIds:I}=d;I&&(w=w?w.concat(I):I),c==null?(i(b,u,m),i(A,u,m),Ye(d.children||[],u,A,v,g,_,w,x)):S>0&&S&64&&O&&c.dynamicChildren&&c.dynamicChildren.length===O.length?(st(c.dynamicChildren,O,u,v,g,_,w),(d.key!=null||v&&d===v.subTree)&&Wn(c,d,!0)):q(c,d,u,A,v,g,_,w,x)},As=(c,d,u,m,v,g,_,w,x)=>{d.slotScopeIds=w,c==null?d.shapeFlag&512?v.ctx.activate(d,u,m,_,x):Ti(d,u,m,v,g,_,x):Ro(c,d,x)},Ti=(c,d,u,m,v,g,_)=>{const w=c.component=Sr(c,m,v);if(si(c)&&(w.ctx.renderer=Vt),kr(w,!1,_),w.asyncDep){if(v&&v.registerDep(w,pe,_),!c.el){const x=w.subTree=ve(Oe);Y(null,x,d,u),c.placeholder=x.el}}else pe(w,c,d,u,v,g,_)},Ro=(c,d,u)=>{const m=d.component=c.component;if(or(c,d,u))if(m.asyncDep&&!m.asyncResolved){X(m,d,u);return}else m.next=d,m.update();else d.el=c.el,m.vnode=d},pe=(c,d,u,m,v,g,_)=>{const w=()=>{if(c.isMounted){let{next:S,bu:O,u:I,parent:$,vnode:B}=c;{const Ne=qn(c);if(Ne){S&&(S.el=B.el,X(c,S,_)),Ne.asyncDep.then(()=>{ue(()=>{c.isUnmounted||b()},v)});return}}let V=S,te;tt(c,!1),S?(S.el=B.el,X(c,S,_)):S=B,O&&Xt(O),(te=S.props&&S.props.onVnodeBeforeUpdate)&&Me(te,$,S,B),tt(c,!0);const le=Pn(c),Pe=c.subTree;c.subTree=le,P(Pe,le,h(Pe.el),Rs(Pe),c,v,g),S.el=le.el,V===null&&lr(c,le.el),I&&ue(I,v),(te=S.props&&S.props.onVnodeUpdated)&&ue(()=>Me(te,$,S,B),v)}else{let S;const{el:O,props:I}=d,{bm:$,m:B,parent:V,root:te,type:le}=c,Pe=pt(d);tt(c,!1),$&&Xt($),!Pe&&(S=I&&I.onVnodeBeforeMount)&&Me(S,V,d),tt(c,!0);{te.ce&&te.ce._hasShadowRoot()&&te.ce._injectChildStyle(le,c.parent?c.parent.type:void 0);const Ne=c.subTree=Pn(c);P(null,Ne,u,m,c,v,g),d.el=Ne.el}if(B&&ue(B,v),!Pe&&(S=I&&I.onVnodeMounted)){const Ne=d;ue(()=>Me(S,V,Ne),v)}(d.shapeFlag&256||V&&pt(V.vnode)&&V.vnode.shapeFlag&256)&&c.a&&ue(c.a,v),c.isMounted=!0,d=u=m=null}};c.scope.on();const x=c.effect=new Di(w);c.scope.off();const b=c.update=x.run.bind(x),A=c.job=x.runIfDirty.bind(x);A.i=c,A.id=c.uid,x.scheduler=()=>Zs(A),tt(c,!0),b()},X=(c,d,u)=>{d.component=c;const m=c.vnode.props;c.vnode=d,c.next=null,ar(c,d.props,m,u),pr(c,d.children,u),ke(),dn(c),Te()},q=(c,d,u,m,v,g,_,w,x=!1)=>{const b=c&&c.children,A=c?c.shapeFlag:0,S=d.children,{patchFlag:O,shapeFlag:I}=d;if(O>0){if(O&128){Ms(b,S,u,m,v,g,_,w,x);return}else if(O&256){it(b,S,u,m,v,g,_,w,x);return}}I&8?(A&16&&Ut(b,v,g),S!==b&&f(u,S)):A&16?I&16?Ms(b,S,u,m,v,g,_,w,x):Ut(b,v,g,!0):(A&8&&f(u,""),I&16&&Ye(S,u,m,v,g,_,w,x))},it=(c,d,u,m,v,g,_,w,x)=>{c=c||ot,d=d||ot;const b=c.length,A=d.length,S=Math.min(b,A);let O;for(O=0;OA?Ut(c,v,g,!0,!1,S):Ye(d,u,m,v,g,_,w,x,S)},Ms=(c,d,u,m,v,g,_,w,x)=>{let b=0;const A=d.length;let S=c.length-1,O=A-1;for(;b<=S&&b<=O;){const I=c[b],$=d[b]=x?Be(d[b]):Ae(d[b]);if(Lt(I,$))P(I,$,u,null,v,g,_,w,x);else break;b++}for(;b<=S&&b<=O;){const I=c[S],$=d[O]=x?Be(d[O]):Ae(d[O]);if(Lt(I,$))P(I,$,u,null,v,g,_,w,x);else break;S--,O--}if(b>S){if(b<=O){const I=O+1,$=IO)for(;b<=S;)Le(c[b],v,g,!0),b++;else{const I=b,$=b,B=new Map;for(b=$;b<=O;b++){const ge=d[b]=x?Be(d[b]):Ae(d[b]);ge.key!=null&&B.set(ge.key,b)}let V,te=0;const le=O-$+1;let Pe=!1,Ne=0;const zt=new Array(le);for(b=0;b=le){Le(ge,v,g,!0);continue}let $e;if(ge.key!=null)$e=B.get(ge.key);else for(V=$;V<=O;V++)if(zt[V-$]===0&&Lt(ge,d[V])){$e=V;break}$e===void 0?Le(ge,v,g,!0):(zt[$e-$]=b+1,$e>=Ne?Ne=$e:Pe=!0,P(ge,d[$e],u,null,v,g,_,w,x),te++)}const Po=Pe?br(zt):ot;for(V=Po.length-1,b=le-1;b>=0;b--){const ge=$+b,$e=d[ge],No=d[ge+1],$o=ge+1{const{el:g,type:_,transition:w,children:x,shapeFlag:b}=c;if(b&6){nt(c.component.subTree,d,u,m);return}if(b&128){c.suspense.move(d,u,m);return}if(b&64){_.move(c,d,u,Vt);return}if(_===J){i(g,d,u);for(let S=0;Sw.enter(g),v));else{const{leave:S,delayLeave:O,afterLeave:I}=w,$=()=>{c.ctx.isUnmounted?n(g):i(g,d,u)},B=()=>{const V=g._isLeaving||!!g[ei];g._isLeaving&&g[ei](!0),w.persisted&&!V?$():S(g,()=>{$(),I&&I()})};O?O(g,$,B):B()}else i(g,d,u)},Le=(c,d,u,m=!1,v=!1)=>{const{type:g,props:_,ref:w,children:x,dynamicChildren:b,shapeFlag:A,patchFlag:S,dirs:O,cacheIndex:I,memo:$}=c;if(S===-2&&(v=!1),w!=null&&(ke(),Ot(w,null,u,c,!0),Te()),I!=null&&(d.renderCache[I]=void 0),A&256){d.ctx.deactivate(c);return}const B=A&1&&O,V=!pt(c);let te;if(V&&(te=_&&_.onVnodeBeforeUnmount)&&Me(te,d,c),A&6)Sd(c.component,u,m);else{if(A&128){c.suspense.unmount(u,m);return}B&&et(c,null,d,"beforeUnmount"),A&64?c.type.remove(c,d,u,Vt,m):b&&!b.hasOnce&&(g!==J||S>0&&S&64)?Ut(b,d,u,!1,!0):(g===J&&S&384||!v&&A&16)&&Ut(x,d,u),m&&Io(c)}const le=$!=null&&I==null;(V&&(te=_&&_.onVnodeUnmounted)||B||le)&&ue(()=>{te&&Me(te,d,c),B&&et(c,null,d,"unmounted"),le&&(c.el=null)},u)},Io=c=>{const{type:d,el:u,anchor:m,transition:v}=c;if(d===J){_d(u,m);return}if(d===fi){M(c);return}const g=()=>{n(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(c.shapeFlag&1&&v&&!v.persisted){const{leave:_,delayLeave:w}=v,x=()=>_(u,g);w?w(c.el,g,x):x()}else g()},_d=(c,d)=>{let u;for(;c!==d;)u=y(c),n(c),c=u;n(d)},Sd=(c,d,u)=>{const{bum:m,scope:v,job:g,subTree:_,um:w,m:x,a:b}=c;Gn(x),Gn(b),m&&Xt(m),v.stop(),g&&(g.flags|=8,Le(_,c,d,u)),w&&ue(w,d),ue(()=>{c.isUnmounted=!0},d)},Ut=(c,d,u,m=!1,v=!1,g=0)=>{for(let _=g;_{if(c.shapeFlag&6)return Rs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=y(c.anchor||c.el),u=d&&d[Ml];return u?y(u):d};let Ei=!1;const Lo=(c,d,u)=>{let m;c==null?d._vnode&&(Le(d._vnode,null,null,!0),m=d._vnode.component):P(d._vnode||null,c,d,null,null,null,u),d._vnode=c,Ei||(Ei=!0,dn(m),fn(),Ei=!1)},Vt={p:P,um:Le,m:nt,r:Io,mt:Ti,mc:Ye,pc:q,pbc:st,n:Rs,o:e};return{render:Lo,hydrate:void 0,createApp:Ql(Lo)}}function di({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wn(e,t,s=!1){const i=e.children,n=t.children;if(R(i)&&R(n))for(let o=0;o>1,e[s[r]]0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,l=s[o-1];o-- >0;)s[o]=l,l=t[l];return s}function qn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qn(t)}function Gn(e){if(e)for(let t=0;te.__isSuspense;function vr(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Tl(e)}const J=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),ze=[];let he=null;function E(e=!1){ze.push(he=e?null:[])}function pi(){ze.pop(),he=ze[ze.length-1]||null}let It=1;function Xn(e,t=!1){It+=e,e<0&&he&&t&&(he.hasOnce=!0)}function Zn(e){return e.dynamicChildren=It>0?he||ot:null,pi(),It>0&&he&&he.push(e),e}function C(e,t,s,i,n,o){return Zn(T(e,t,s,i,n,o,!0))}function ms(e,t,s,i,n){return Zn(ve(e,t,s,i,n,!0))}function ui(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Qn=({key:e})=>e??null,xs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||ae(e)||L(e)?{i:oe,r:e,k:t,f:!!s}:e:null);function T(e,t=null,s=null,i=0,n=null,o=e===J?0:1,l=!1,r=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qn(t),ref:t&&xs(t),scopeId:un,slotScopeIds:null,children:s,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:o,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:oe};return r?(ys(a,s),o&128&&e.normalize(a)):s&&(a.shapeFlag|=G(s)?8:16),It>0&&!l&&he&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&he.push(a),a}const ve=mr;function mr(e,t=null,s=null,i=0,n=null,o=!1){if((!e||e===zl)&&(e=Oe),ui(e)){const r=ht(e,t,!0);return s&&ys(r,s),It>0&&!o&&he&&(r.shapeFlag&6?he[he.indexOf(e)]=r:he.push(r)),r.patchFlag=-2,r}if(Mr(e)&&(e=e.__vccOpts),t){t=xr(t);let{class:r,style:a}=t;r&&!G(r)&&(t.class=Se(r)),K(a)&&(Ys(a)&&!R(a)&&(a=Z({},a)),t.style=xt(a))}const l=G(e)?1:Yn(e)?128:fs(e)?64:K(e)?4:L(e)?2:0;return T(e,t,s,i,n,l,o,!0)}function xr(e){return e?Ys(e)||Fn(e)?Z({},e):e:null}function ht(e,t,s=!1,i=!1){const{props:n,ref:o,patchFlag:l,children:r,transition:a}=e,p=t?yr(n||{},t):n,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Qn(p),ref:t&&t.ref?s&&o?R(o)?o.concat(xs(t)):[o,xs(t)]:xs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==J?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&ti(f,a.clone(f)),f}function gt(e=" ",t=0){return ve(vs,null,e,t)}function Q(e="",t=!1){return t?(E(),ms(Oe,null,e)):ve(Oe,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ve(Oe):R(e)?ve(J,null,e.slice()):ui(e)?Be(e):ve(vs,null,String(e))}function Be(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function ys(e,t){let s=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),ys(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!Fn(t)?t._ctx=oe:n===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(L(t)){if(i&65){ys(e,{default:t});return}t={default:t,_ctx:oe},s=32}else t=String(t),i&64?(s=16,t=[gt(t)]):s=8;e.children=t,e.shapeFlag|=s}function yr(...e){const t={};for(let s=0;sce||oe;let ws,Pt;{const e=Zt(),t=(s,i)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(i),o=>{n.length>1?n.forEach(l=>l(o)):n[0](o)}};ws=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),Pt=t("__VUE_SSR_SETTERS__",s=>$t=s)}const Nt=e=>{const t=ce;return ws(e),e.scope.on(),()=>{e.scope.off(),ws(t)}},to=()=>{ce&&ce.scope.off(),ws(null)};function so(e){return e.vnode.shapeFlag&4}let $t=!1;function kr(e,t=!1,s=!1){t&&Pt(t);const{props:i,children:n}=e.vnode,o=so(e);rr(e,i,o,t),fr(e,n,s||t);const l=o?Tr(e,t):void 0;return t&&Pt(!1),l}function Tr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wl);const{setup:i}=s;if(i){ke();const n=e.setupContext=i.length>1?Cr(e):null,o=Nt(e),l=at(i,e,0,[e.props,n]),r=Ai(l);if(Te(),o(),(r||e.sp)&&!pt(e)&&vn(e),r){if(l.then(to,to),t)return l.then(a=>{Pt(!0);try{io(e,a,t)}finally{Pt(!1)}}).catch(a=>{rs(a,e,0)});e.asyncDep=l}else io(e,l)}else no(e)}function io(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:K(t)&&(e.setupState=on(t)),no(e)}function no(e,t,s){const i=e.type;e.render||(e.render=i.render||_e);{const n=Nt(e);ke();try{ql(e)}finally{Te(),n()}}}const Er={get(e,t){return re(e,"get",""),e[t]}};function Cr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Er),slots:e.slots,emit:e.emit,expose:t}}function _s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(on(ul(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Mt)return Mt[s](e)},has(t,s){return s in t||s in Mt}})):e.proxy}const Or=/(?:^|[-_])\w/g,Ar=e=>e.replace(Or,t=>t.toUpperCase()).replace(/[-_]/g,"");function oo(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function lo(e,t,s=!1){let i=oo(t);if(!i&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(i=n[1])}if(!i&&e){const n=o=>{for(const l in o)if(o[l]===t)return l};i=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return i?Ar(i):s?"App":"Anonymous"}function Mr(e){return L(e)&&"__vccOpts"in e}const Rr=(e,t)=>bl(e,t,$t),Ir="3.5.42";/** * @vue/runtime-dom v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let hi;const ro=typeof window<"u"&&window.trustedTypes;if(ro)try{hi=ro.createPolicy("vue",{createHTML:e=>e})}catch{}const ao=hi?e=>hi.createHTML(e):e=>e,Lr="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1998/Math/MathML",We=typeof document<"u"?document:null,co=We&&We.createElement("template"),Nr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{const n=t==="svg"?We.createElementNS(Lr,e):t==="mathml"?We.createElementNS(Pr,e):s?We.createElement(e,{is:s}):We.createElement(e);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>We.createTextNode(e),createComment:e=>We.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>We.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,n,o){const l=s?s.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===o||!(n=n.nextSibling)););else{co.innerHTML=ao(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);const r=co.content;if(i==="svg"||i==="mathml"){const a=r.firstChild;for(;a.firstChild;)r.appendChild(a.firstChild);r.removeChild(a)}t.insertBefore(r,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Hr=Symbol("_vtc");function $r(e,t,s){const i=e[Hr];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),fo=Symbol("_vsh"),gi={name:"show",beforeMount(e,{value:t},{transition:s}){e[Ss]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):$t(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),$t(e,!0),i.enter(e)):i.leave(e,()=>{$t(e,!1)}):$t(e,t))},beforeUnmount(e,{value:t}){$t(e,t)}};function $t(e,t){e.style.display=t?e[Ss]:"none",e[fo]=!t}const Dr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function jr(e,t,s){const i=e.style,n=G(s);let o=!1;if(s&&!n){if(t)if(G(t))for(const l of t.split(";")){const r=l.slice(0,l.indexOf(":")).trim();s[r]==null&&Dt(i,r,"")}else for(const l in t)s[l]==null&&Dt(i,l,"");for(const l in s){l==="display"&&(o=!0);const r=s[l];r!=null?Ur(e,l,!G(t)&&t?t[l]:void 0,r)||Dt(i,l,r):Dt(i,l,"")}}else if(n){if(t!==s){const l=i[Dr];l&&(s+=";"+l),i.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=o?i.display:"",e[fo]&&(i.display="none"))}const ks=/\s*!important$/;function Dt(e,t,s){if(R(s))s.forEach(i=>Dt(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))ks.test(s)?e.setProperty(t,s.replace(ks,""),"important"):e.setProperty(t,s);else{const i=Kr(e,t);ks.test(s)?e.setProperty(be(i),s.replace(ks,""),"important"):e[i]=s}}const po=["Webkit","Moz","ms"],bi={};function Kr(e,t){const s=bi[t];if(s)return s;let i=ie(t);if(i!=="filter"&&i in e)return bi[t]=i;i=Yt(i);for(let n=0;nvi||(Gr.then(()=>vi=0),vi=Date.now());function Yr(e,t){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;const n=s.value;if(R(n)){const o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};const l=n.slice(),r=[i];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xr=(e,t,s,i,n,o)=>{const l=n==="svg";t==="class"?$r(e,i,l):t==="style"?jr(e,s,i):Bt(t)?Wt(t)||zr(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zr(e,t,i,l))?(go(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ho(e,t,i,l,o,t!=="value")):e._isVueCE&&(Qr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!G(i)))?go(e,ie(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),ho(e,t,i,l))};function Zr(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&vo(t)&&L(s));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"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return vo(t)&&G(s)?!1:t in e}function Qr(e,t){const s=e._def.props;if(!s)return!1;const i=ie(t);return Array.isArray(s)?s.some(n=>ie(n)===i):Object.keys(s).some(n=>ie(n)===i)}const mo={};function ea(e,t,s){let i=ps(e,t);Gt(i)&&(i=Z({},i,t));class n extends mi{constructor(l){super(i,l,s)}}return n.def=i,n}const ta=typeof HTMLElement<"u"?HTMLElement:class{};class mi extends ta{constructor(t,s={},i=So){super(),this._def=t,this._props=s,this._createApp=i,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&&i!==So?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Z({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof mi){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,an(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let i=0;i{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:l}=i;let r;if(o&&!R(o))for(const a in o){const p=o[a];(p===Number||p&&p.type===Number)&&(a in this._props&&(this._props[a]=Ii(this._props[a])),(r||(r=Object.create(null)))[ie(a)]=!0)}this._numberProps=r,this._resolveProps(i),this.shadowRoot&&this._applyStyles(l),this._mount(i)},s=this._def.__asyncLoader;if(s)return this._pendingResolve=s().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}),this._pendingResolve;t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const i in s)D(this,i)||Object.defineProperty(this,i,{get:()=>nn(s[i])})}_resolveProps(t){const{props:s}=t,i=R(s)?s:Object.keys(s||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n]);for(const n of i.map(ie))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(o){this._setProp(n,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let i=s?this.getAttribute(t):mo;const n=ie(t);s&&this._numberProps&&this._numberProps[n]&&(i=Ii(i)),this._setProp(n,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,i=!0,n=!1){if(s!==this._props[t]&&(this._dirty=!0,s===mo?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),n&&this._instance&&this._update(),i)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(be(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(be(t),s+""):s||this.removeAttribute(be(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),aa(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=ve(this._def,Z(t,this._props));return this._instance||(s.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const n=(o,l)=>{this.dispatchEvent(new CustomEvent(o,Gt(l[0])?Z({detail:l},l[0]):{detail:l}))};i.emit=(o,...l)=>{n(o,l),be(o)!==o&&n(be(o),l)},this._setParent()}),s}_applyStyles(t,s,i){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce,o=this.shadowRoot,l=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let r=null;for(let a=t.length-1;a>=0;a--){const p=document.createElement("style");n&&p.setAttribute("nonce",n),p.textContent=t[a],o.insertBefore(p,r||l),r=p,a===0&&(i||this._styleAnchors.set(this._def,p),s&&this._styleAnchors.set(s,p))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?s=>Xt(t,s):t};function sa(e){e.target.composing=!0}function yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),Es=Symbol("_initialValue");function xi(e,t,s){return t&&(e=e.trim()),s&&(e=Hs(e)),e}const ia={created(e,{modifiers:{lazy:t,trim:s,number:i}},n){e.parentNode&&(e.type==="text"?e[Es]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Es]=e.defaultValue.replace(/\r\n?/g,` -`))),e[Ts]=xo(n);const o=i||n.props&&n.props.type==="number";bt(e,t?"change":"input",l=>{l.target.composing||e[Ts](xi(e.value,s,o))}),(s||o)&&bt(e,"change",()=>{e.value=xi(e.value,s,o)}),t||(bt(e,"compositionstart",sa),bt(e,"compositionend",yo),bt(e,"change",yo))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){const n=t??"",o=e[Es];delete e[Es],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Ts](xi(e.value,s,i)):e.value=n},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:n,number:o}},l){if(e[Ts]=xo(l),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hs(e.value):e.value,a=t??"";if(r===a)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(i&&t===s||n&&e.value.trim()===a)||(e.value=a)}},na=["ctrl","shift","alt","meta"],oa={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)=>na.some(s=>e[`${s}Key`]&&!t.includes(s))},la=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=(n,...o)=>{for(let l=0;l{_o().render(...e)},So=(...e)=>{const t=_o().createApp(...e),{mount:s}=t;return t.mount=i=>{const n=da(i);if(!n)return;const o=t._component;!L(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=s(n,!1,ca(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t};function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function da(e){return G(e)?document.querySelector(e):e}function yi(e,t){const s=t||fa(e);wn(()=>{var r;const i=eo();if(!i)return;const n=(r=i.proxy)==null?void 0:r.$el;if(!n)return;const o=n.getRootNode();if(!(o instanceof ShadowRoot)||o.querySelector(`style[data-shadow-styles="${s}"]`))return;const l=document.createElement("style");l.setAttribute("data-shadow-styles",s),l.textContent=e,o.appendChild(l)})}function fa(e){let t=0;for(let s=0;s',map:'',globe:'',heart:'',prayer:'',list:'',users:'',flag:'',target:'',pin:'',monitor:'',chart:'',layers:'',flask:'',share:'',beaker:'',chevron:'',grid:'',tree:'',dots:'',embed:'',send:'',poster:'',search:'',book:'',wifi:''};function To(e,t=""){const s=ko[e]||ko.map;return`e})}catch{}const ao=hi?e=>hi.createHTML(e):e=>e,Lr="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1998/Math/MathML",We=typeof document<"u"?document:null,co=We&&We.createElement("template"),Nr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{const n=t==="svg"?We.createElementNS(Lr,e):t==="mathml"?We.createElementNS(Pr,e):s?We.createElement(e,{is:s}):We.createElement(e);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>We.createTextNode(e),createComment:e=>We.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>We.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,n,o){const l=s?s.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===o||!(n=n.nextSibling)););else{co.innerHTML=ao(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);const r=co.content;if(i==="svg"||i==="mathml"){const a=r.firstChild;for(;a.firstChild;)r.appendChild(a.firstChild);r.removeChild(a)}t.insertBefore(r,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},$r=Symbol("_vtc");function Hr(e,t,s){const i=e[$r];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),fo=Symbol("_vsh"),gi={name:"show",beforeMount(e,{value:t},{transition:s}){e[Ss]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Ht(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),Ht(e,!0),i.enter(e)):i.leave(e,()=>{Ht(e,!1)}):Ht(e,t))},beforeUnmount(e,{value:t}){Ht(e,t)}};function Ht(e,t){e.style.display=t?e[Ss]:"none",e[fo]=!t}const Dr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function jr(e,t,s){const i=e.style,n=G(s);let o=!1;if(s&&!n){if(t)if(G(t))for(const l of t.split(";")){const r=l.slice(0,l.indexOf(":")).trim();s[r]==null&&Dt(i,r,"")}else for(const l in t)s[l]==null&&Dt(i,l,"");for(const l in s){l==="display"&&(o=!0);const r=s[l];r!=null?Ur(e,l,!G(t)&&t?t[l]:void 0,r)||Dt(i,l,r):Dt(i,l,"")}}else if(n){if(t!==s){const l=i[Dr];l&&(s+=";"+l),i.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=o?i.display:"",e[fo]&&(i.display="none"))}const ks=/\s*!important$/;function Dt(e,t,s){if(R(s))s.forEach(i=>Dt(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))ks.test(s)?e.setProperty(t,s.replace(ks,""),"important"):e.setProperty(t,s);else{const i=Kr(e,t);ks.test(s)?e.setProperty(be(i),s.replace(ks,""),"important"):e[i]=s}}const po=["Webkit","Moz","ms"],bi={};function Kr(e,t){const s=bi[t];if(s)return s;let i=ie(t);if(i!=="filter"&&i in e)return bi[t]=i;i=Yt(i);for(let n=0;nvi||(Gr.then(()=>vi=0),vi=Date.now());function Yr(e,t){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;const n=s.value;if(R(n)){const o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};const l=n.slice(),r=[i];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xr=(e,t,s,i,n,o)=>{const l=n==="svg";t==="class"?Hr(e,i,l):t==="style"?jr(e,s,i):Bt(t)?Wt(t)||zr(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zr(e,t,i,l))?(go(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ho(e,t,i,l,o,t!=="value")):e._isVueCE&&(Qr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!G(i)))?go(e,ie(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),ho(e,t,i,l))};function Zr(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&vo(t)&&L(s));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"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return vo(t)&&G(s)?!1:t in e}function Qr(e,t){const s=e._def.props;if(!s)return!1;const i=ie(t);return Array.isArray(s)?s.some(n=>ie(n)===i):Object.keys(s).some(n=>ie(n)===i)}const mo={};function ea(e,t,s){let i=ps(e,t);Gt(i)&&(i=Z({},i,t));class n extends mi{constructor(l){super(i,l,s)}}return n.def=i,n}const ta=typeof HTMLElement<"u"?HTMLElement:class{};class mi extends ta{constructor(t,s={},i=So){super(),this._def=t,this._props=s,this._createApp=i,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&&i!==So?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Z({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof mi){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,an(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let i=0;i{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:l}=i;let r;if(o&&!R(o))for(const a in o){const p=o[a];(p===Number||p&&p.type===Number)&&(a in this._props&&(this._props[a]=Ii(this._props[a])),(r||(r=Object.create(null)))[ie(a)]=!0)}this._numberProps=r,this._resolveProps(i),this.shadowRoot&&this._applyStyles(l),this._mount(i)},s=this._def.__asyncLoader;if(s)return this._pendingResolve=s().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}),this._pendingResolve;t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const i in s)D(this,i)||Object.defineProperty(this,i,{get:()=>nn(s[i])})}_resolveProps(t){const{props:s}=t,i=R(s)?s:Object.keys(s||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n]);for(const n of i.map(ie))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(o){this._setProp(n,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let i=s?this.getAttribute(t):mo;const n=ie(t);s&&this._numberProps&&this._numberProps[n]&&(i=Ii(i)),this._setProp(n,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,i=!0,n=!1){if(s!==this._props[t]&&(this._dirty=!0,s===mo?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),n&&this._instance&&this._update(),i)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(be(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(be(t),s+""):s||this.removeAttribute(be(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),aa(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=ve(this._def,Z(t,this._props));return this._instance||(s.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const n=(o,l)=>{this.dispatchEvent(new CustomEvent(o,Gt(l[0])?Z({detail:l},l[0]):{detail:l}))};i.emit=(o,...l)=>{n(o,l),be(o)!==o&&n(be(o),l)},this._setParent()}),s}_applyStyles(t,s,i){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce,o=this.shadowRoot,l=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let r=null;for(let a=t.length-1;a>=0;a--){const p=document.createElement("style");n&&p.setAttribute("nonce",n),p.textContent=t[a],o.insertBefore(p,r||l),r=p,a===0&&(i||this._styleAnchors.set(this._def,p),s&&this._styleAnchors.set(s,p))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?s=>Xt(t,s):t};function sa(e){e.target.composing=!0}function yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),Es=Symbol("_initialValue");function xi(e,t,s){return t&&(e=e.trim()),s&&(e=$s(e)),e}const ia={created(e,{modifiers:{lazy:t,trim:s,number:i}},n){e.parentNode&&(e.type==="text"?e[Es]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Es]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Ts]=xo(n);const o=i||n.props&&n.props.type==="number";bt(e,t?"change":"input",l=>{l.target.composing||e[Ts](xi(e.value,s,o))}),(s||o)&&bt(e,"change",()=>{e.value=xi(e.value,s,o)}),t||(bt(e,"compositionstart",sa),bt(e,"compositionend",yo),bt(e,"change",yo))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){const n=t??"",o=e[Es];delete e[Es],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Ts](xi(e.value,s,i)):e.value=n},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:n,number:o}},l){if(e[Ts]=xo(l),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,a=t??"";if(r===a)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(i&&t===s||n&&e.value.trim()===a)||(e.value=a)}},na=["ctrl","shift","alt","meta"],oa={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)=>na.some(s=>e[`${s}Key`]&&!t.includes(s))},la=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=(n,...o)=>{for(let l=0;l{_o().render(...e)},So=(...e)=>{const t=_o().createApp(...e),{mount:s}=t;return t.mount=i=>{const n=da(i);if(!n)return;const o=t._component;!L(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=s(n,!1,ca(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t};function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function da(e){return G(e)?document.querySelector(e):e}function yi(e,t){const s=t||fa(e);wn(()=>{var r;const i=eo();if(!i)return;const n=(r=i.proxy)==null?void 0:r.$el;if(!n)return;const o=n.getRootNode();if(!(o instanceof ShadowRoot)||o.querySelector(`style[data-shadow-styles="${s}"]`))return;const l=document.createElement("style");l.setAttribute("data-shadow-styles",s),l.textContent=e,o.appendChild(l)})}function fa(e){let t=0;for(let s=0;s',map:'',globe:'',heart:'',prayer:'',list:'',users:'',flag:'',target:'',pin:'',monitor:'',chart:'',layers:'',flask:'',share:'',beaker:'',chevron:'',grid:'',tree:'',dots:'',embed:'',send:'',poster:'',search:'',book:'',wifi:''};function To(e,t=""){const s=ko[e]||ko.map;return``}const pa=".vtl{position:absolute;top:0;right:0;bottom:0;left:0;display:grid!important;grid-template-rows:auto 1fr;height:100%;width:100%;min-height:420px;background:#f3f3f1;color:#3b463d;font-family:Public Sans,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;-webkit-font-smoothing:antialiased;--vtl-accent:#92b195;--vtl-border:#d1d4cd;--vtl-elevated:#ffffff;--vtl-accented:#d1d4cd;--vtl-muted:#6d766e;--vtl-rail:256px}.vtl.no-header{grid-template-rows:1fr}.vtl-top{flex:0 0 auto;display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:64px;padding:8px 16px;border-bottom:1px solid var(--vtl-border);background:#fff}.vtl-menu{display:none;font:16px/1 system-ui;color:#3b463d;background:#d1d4cd;border:1px solid #d1d4cd;border-radius:8px;padding:5px 10px;cursor:pointer}.vtl-fab{position:absolute;z-index:15;left:calc(12px + env(safe-area-inset-left));bottom:calc(12px + env(safe-area-inset-bottom));width:44px;height:44px;display:flex;align-items:center;justify-content:center;font:18px/1 system-ui;color:#3b463d;background:#fff;border:1px solid var(--vtl-border);border-radius:50%;box-shadow:0 2px 10px #0000002e;cursor:pointer}.vtl-fab:hover{background:#d1d4cd}.vtl-fab:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:2px}.vtl-menu:hover{background:#d1d4cd}.vtl-brand{display:inline-flex;align-items:center}.vtl-brand:empty{display:none}.vtl-title{font-size:15px;font-weight:600;letter-spacing:-.01em;color:#3b463d}.vtl-meta{color:var(--vtl-muted);font-size:12px;margin-left:auto;display:inline-flex;align-items:center;gap:8px}.vtl-body{min-height:0;position:relative;display:flex}.vtl-nav{position:absolute;top:0;bottom:0;left:0;z-index:5;width:256px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;border-right:1px solid var(--vtl-border);padding:12px 12px 20px;background:#fff;scrollbar-width:thin;scrollbar-color:#c4c8c0 transparent;contain:layout paint;transform:translate(0);transition:transform .2s cubic-bezier(.4,0,.2,1);will-change:transform}.vtl-nav::-webkit-scrollbar{width:8px;height:8px}.vtl-nav::-webkit-scrollbar-track{background:transparent}.vtl-nav::-webkit-scrollbar-thumb{background:#c4c8c0;border-radius:8px}.vtl-nav::-webkit-scrollbar-thumb:hover{background:#9aa197}.vtl-collapse{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;margin:0 0 8px;padding:7px 10px;border:1px solid var(--vtl-border);border-radius:8px;background:#d1d4cd;color:var(--vtl-muted);font:inherit;font-size:12px;cursor:pointer}.vtl-collapse:hover{background:var(--vtl-accented);color:#3b463d}.vtl-collapse:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-collapse-ic{flex:0 0 auto;display:inline-flex;transition:transform .16s ease;transform:rotate(180deg)}.vtl-collapse-ic svg{width:16px;height:16px}.vtl-collapse-tx{white-space:nowrap}.vtl-grp{margin-bottom:2px}.vtl-grp+.vtl-grp{margin-top:8px;padding-top:8px;border-top:1px solid var(--vtl-border)}.vtl-tier{width:100%;padding:8px 8px 6px;display:flex;align-items:center;gap:8px;box-sizing:border-box}.vtl-tier-btn{border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left;border-radius:8px}.vtl-tier-btn:hover{background:var(--vtl-accented)}.vtl-tier-btn:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-tier-ic{flex:0 0 auto;display:inline-flex;color:var(--vtl-muted)}.vtl-tier-ic svg{width:15px;height:15px}.vtl-cap{font:700 10px/1 system-ui;letter-spacing:.4px;color:#052e16;background:var(--vtl-accent);border-radius:999px;padding:3px 7px}.vtl-tl{font-weight:600;font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--vtl-muted)}.vtl-td{color:#6b6b6b;font-size:11px;margin-left:auto}.vtl-chev{margin-left:auto;display:inline-flex;color:var(--vtl-muted);transition:transform .16s ease}.vtl-chev svg{width:15px;height:15px}.vtl-chev.open{transform:rotate(90deg)}.vtl-rows{display:flex;flex-direction:column;gap:1px}.vtl-tab{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;text-align:left;border:0;background:none;color:var(--vtl-muted);padding:8px 12px;cursor:pointer;border-radius:var(--vtl-radius,8px);font:inherit;margin:0;transition:background .13s ease,color .13s ease}.vtl-tab:hover{background:var(--vtl-accented);color:#3b463d}.vtl-tab:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-tab.active{background:var(--vtl-accented);color:#3b463d;font-weight:500}.vtl-tab.active .vtl-tab-ic{color:var(--vtl-accent)}.vtl-tab-ic{flex:0 0 auto;display:inline-flex;color:var(--vtl-muted)}.vtl-tab-ic svg{width:20px;height:20px}.vtl-tab-emoji{font-size:17px;line-height:1;flex:0 0 auto}.vtl-tab-fallback{display:none;flex:0 0 auto;width:20px;height:20px;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--vtl-muted);background:var(--vtl-accented);border-radius:6px}.vtl-tab.active .vtl-tab-fallback{color:var(--vtl-accent)}.vtl-tab-text{display:flex;flex-direction:column;min-width:0}.vtl-tab-label{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.vtl-tab-badge{font:600 9px/1 system-ui;letter-spacing:.3px;text-transform:uppercase;color:var(--vtl-accent);border:1px solid var(--vtl-accent);border-radius:var(--vtl-radius,8px);padding:2px 5px}.vtl-tab-sub{font-size:11px;color:#6b6b6b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vtl-tab-sub code{font-family:ui-monospace,Menlo,monospace}.vtl-tab.active .vtl-tab-sub{color:var(--vtl-muted)}.vtl-main{position:absolute;top:0;bottom:0;right:0;left:256px;min-width:0;display:flex;flex-direction:column}.vtl-content{flex:1 1 auto;position:relative;min-height:0}.vtl-host{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h:0}.vtl-host-slot{position:relative;min-height:100%}.vtl-host-slot>*{min-height:0;max-height:none}.vtl-host-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:var(--dx-muted, #6d766e);font-size:13px;padding:20px}.vtl-host-hint.err{color:#f87171}.vtl-host-hint small{color:var(--dx-muted, #6d766e)}.vtl.rail-collapsed .vtl-nav{transform:translate(-184px)}.vtl.rail-collapsed .vtl-main{left:72px}.vtl.rail-collapsed .vtl-collapse{padding-left:184px;justify-content:flex-start}.vtl.rail-collapsed .vtl-collapse-ic{transform:rotate(0)}.vtl.rail-collapsed .vtl-collapse-tx{display:none}.vtl.rail-collapsed .vtl-tab{padding-left:188px;gap:0}.vtl.rail-collapsed .vtl-tab-text{display:none}.vtl.rail-collapsed .vtl-tab-emoji{font-size:19px}.vtl.rail-collapsed .vtl-tab-fallback{display:inline-flex}.vtl.rail-collapsed .vtl-tier{padding-left:196px}.vtl.rail-collapsed .vtl-tl,.vtl.rail-collapsed .vtl-td,.vtl.rail-collapsed .vtl-cap,.vtl.rail-collapsed .vtl-chev{display:none}.vtl.rail-collapsed .vtl-grp+.vtl-grp{margin-top:6px;padding-top:6px}@media (max-width: 760px){.vtl-top{min-height:56px}.vtl-menu{display:inline-block}.vtl-meta{display:none}.vtl-nav{z-index:20;width:256px;box-shadow:0 0 28px #0000008c;transform:translate(-100%)}.vtl.nav-open .vtl-nav{transform:translate(0)}.vtl-main{left:0}.vtl.rail-collapsed .vtl-nav{transform:translate(-100%)}.vtl.rail-collapsed.nav-open .vtl-nav{transform:translate(0)}.vtl.rail-collapsed .vtl-main{left:0}.vtl.rail-collapsed .vtl-collapse{padding-left:10px;justify-content:flex-start}.vtl.rail-collapsed .vtl-collapse-ic{transform:rotate(180deg)}.vtl.rail-collapsed .vtl-collapse-tx{display:inline}.vtl.rail-collapsed .vtl-tab{padding-left:10px;gap:11px}.vtl.rail-collapsed .vtl-tab-text{display:flex}.vtl.rail-collapsed .vtl-tab-fallback{display:none}.vtl.rail-collapsed .vtl-tier{padding-left:8px}.vtl.rail-collapsed .vtl-tl,.vtl.rail-collapsed .vtl-td,.vtl.rail-collapsed .vtl-cap,.vtl.rail-collapsed .vtl-chev{display:inline}}",wi=(e,t)=>{const s=e.__vccOpts||e;for(const[i,n]of t)s[i]=n;return s},Ft={};function ua(e){return e?(Ft[e]||(Ft[e]=new Promise((t,s)=>{const i=document.createElement("script");i.src=e,i.onload=()=>t(),i.onerror=()=>{delete Ft[e],s(new Error("failed to load "+e))},document.head.appendChild(i)})),Ft[e]):Promise.resolve()}function ha(e,t=5e3){return typeof customElements>"u"||customElements.get(e)?Promise.resolve():customElements.whenDefined?Promise.race([customElements.whenDefined(e),new Promise((s,i)=>setTimeout(()=>i(new Error("timeout waiting for <"+e+">")),t))]):Promise.resolve()}const ga=` /* STRUCTURAL DISPLAY — the !important is deliberate, not a hack. This layout's display mode is load-bearing: it CANNOT function as a block. As a library/ (high-bar) component it ships across @@ -239,7 +239,7 @@ .vtl.rail-collapsed .vtl-tier { padding-left:8px; } .vtl.rail-collapsed .vtl-tl, .vtl.rail-collapsed .vtl-td, .vtl.rail-collapsed .vtl-cap, .vtl.rail-collapsed .vtl-chev { display:inline; } } -`,ba=ps({name:"VerticalTabsLayout",props:{active:{type:String,default:""},title:{type:String,default:""},items:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},navLabel:{type:String,default:"Sections"},initialNavOpen:{type:Boolean,default:!0},header:{type:Boolean,default:!0},initialRailCollapsed:{type:Boolean,default:!1}},emits:["update:active"],setup(){yi(ga,"vertical-tabs-layout")},data(){return{navOpen:this.initialNavOpen,railCollapsed:this.initialRailCollapsed,_tabEls:{},folderOverride:{},narrow:!1,_mql:null,_onMedia:null,activatedKeys:{},hostState:{},hostError:{},_hostSlots:{},_hostMounted:{}}},computed:{railShown(){return this.narrow?this.navOpen:!0},allRows(){if(this.groups&&this.groups.length){const e=[];for(const t of this.groups)for(const s of t.rows||[])e.push(s);return e}return this.items},orderedKeys(){return this.allRows.map(e=>e.key)},elementRows(){return this.allRows.filter(e=>e&&e.element)},mountedElementRows(){return this.elementRows.filter(e=>this.activatedKeys[e.key])}},watch:{active:{immediate:!0,handler(e){this.activateElement(e)}}},mounted(){try{window.matchMedia&&(this._mql=window.matchMedia("(max-width: 760px)"),this.narrow=this._mql.matches,this.reconcileForWidth(),this._onMedia=e=>{this.narrow=e.matches,this.reconcileForWidth()},this._mql.addEventListener?this._mql.addEventListener("change",this._onMedia):this._mql.addListener&&this._mql.addListener(this._onMedia))}catch{}this.$nextTick(()=>this.activateElement(this.active))},beforeUnmount(){try{this._mql&&this._onMedia&&(this._mql.removeEventListener?this._mql.removeEventListener("change",this._onMedia):this._mql.removeListener&&this._mql.removeListener(this._onMedia))}catch{}this._mql=null,this._onMedia=null},methods:{registerTab(e,t){t&&(this._tabEls[e]=t)},isNarrow(){return this.narrow},reconcileForWidth(){this.narrow?(this.navOpen=!1,this.railCollapsed=!1):this.navOpen=!0},expandRail(){!this.narrow&&this.railCollapsed&&(this.railCollapsed=!1)},toggleRail(){this.narrow?this.navOpen=!this.navOpen:this.railCollapsed=!this.railCollapsed},setHostSlot(e,t){t&&(this._hostSlots[e]=t,this.$nextTick(()=>this.mountHostElement(e)))},activateElement(e){!e||!this.elementRows.find(s=>s.key===e)||(this.activatedKeys[e]||(this.activatedKeys={...this.activatedKeys,[e]:!0},this.hostState={...this.hostState,[e]:"loading"}),this.$nextTick(()=>this.mountHostElement(e)))},mountHostElement(e){if(this._hostMounted[e])return;const t=this.elementRows.find(i=>i.key===e),s=this._hostSlots[e];!t||!s||(this._hostMounted[e]=!0,this.hostState={...this.hostState,[e]:"loading"},ua(t.src).then(()=>ha(t.element)).then(()=>{s.innerHTML="";const i=document.createElement(t.element),n=t.attrs||{};for(const o in n){const l=n[o],r=l!=null&&typeof l=="object"?JSON.stringify(l):String(l);try{i[o]=l}catch{}try{i.setAttribute(o,r)}catch{}}i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),this.hostState={...this.hostState,[e]:"ready"}}).catch(i=>{this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"error"},this.hostError={...this.hostError,[e]:i&&i.message||String(i)}}))},iconSvg(e){return e?To(e):""},initial(e){const t=(e||"").trim();return t?t.charAt(0).toUpperCase():"•"},isFolderClosed(e){const t=this.folderOverride[e.key];return t!=null?!t:e.open!==!0},toggleFolder(e){const t=this.folderOverride[e],s=(this.groups||[]).find(n=>n.key===e),i=t??(s&&s.open===!0);this.folderOverride={...this.folderOverride,[e]:!i}},pick(e){this.$emit("update:active",e),this.narrow&&(this.navOpen=!1)},onKey(e){const t=this.orderedKeys;if(!t.length)return;const s=t.indexOf(this.active);let i=-1;if(e.key==="ArrowDown"||e.key==="ArrowRight")i=(s+1)%t.length;else if(e.key==="ArrowUp"||e.key==="ArrowLeft")i=(s-1+t.length)%t.length;else if(e.key==="Home")i=0;else if(e.key==="End")i=t.length-1;else return;e.preventDefault();const n=t[i];this.pick(n),this.$nextTick(()=>{const o=this._tabEls[n];o&&o.focus&&o.focus()})}}}),va={key:0,class:"vtl-top"},ma=["aria-expanded"],xa={class:"vtl-brand"},ya={class:"vtl-title"},wa={class:"vtl-meta"},_a=["aria-expanded"],Sa={class:"vtl-body"},ka=["aria-label","aria-hidden","role","aria-orientation"],Ta=["aria-expanded","aria-label"],Ea=["innerHTML"],Ca=["aria-expanded","onClick"],Oa={key:0,class:"vtl-cap"},Aa={class:"vtl-tl"},Ma={key:1,class:"vtl-td"},Ra=["innerHTML"],Ia={key:1,class:"vtl-tier"},La={key:0,class:"vtl-cap"},Pa={class:"vtl-tl"},Na={key:1,class:"vtl-td"},Ha={class:"vtl-rows"},$a=["aria-selected","tabindex","onClick"],Da=["innerHTML"],Fa={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ka={class:"vtl-tab-text"},Ua={class:"vtl-tab-label"},Va={key:0,class:"vtl-tab-badge"},za={key:0,class:"vtl-tab-sub"},Ba=["innerHTML"],Wa=["aria-selected","tabindex","onClick"],qa=["innerHTML"],Ga={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},Ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ya={class:"vtl-tab-text"},Xa={class:"vtl-tab-label"},Za={key:0,class:"vtl-tab-sub"},Qa={class:"vtl-main"},ec={class:"vtl-content"},tc=["hidden"],sc={key:0,class:"vtl-host-hint"},ic={key:1,class:"vtl-host-hint err"};function nc(e,t,s,i,n,o){return E(),C("div",{class:Se(["vtl",{"nav-open":e.navOpen,"rail-collapsed":e.railCollapsed,"no-header":!e.header}])},[e.header?(E(),C("header",va,[T("button",{class:"vtl-menu",type:"button","aria-expanded":String(e.navOpen),onClick:t[0]||(t[0]=l=>e.navOpen=!e.navOpen),"aria-label":"Toggle list"},"☰",8,ma),T("span",xa,[At(e.$slots,"brand")]),T("b",ya,N(e.title),1),T("span",wa,[At(e.$slots,"meta")])])):Q("",!0),e.narrow&&!e.header&&!e.navOpen?(E(),C("button",{key:1,class:"vtl-fab",type:"button","aria-expanded":String(e.navOpen),onClick:t[1]||(t[1]=l=>e.navOpen=!0),"aria-label":"Open the list of views"},"☰",8,_a)):Q("",!0),T("div",Sa,[T("nav",{class:"vtl-nav","aria-label":e.navLabel,"aria-hidden":String(!e.railShown),role:e.$slots.rail?null:"tablist","aria-orientation":e.$slots.rail?null:"vertical"},[T("button",{type:"button",class:"vtl-collapse","aria-expanded":String(!e.railCollapsed),"aria-label":e.railCollapsed?"Expand list":"Collapse list",onClick:t[2]||(t[2]=(...l)=>e.toggleRail&&e.toggleRail(...l))},[T("span",{class:"vtl-collapse-ic","aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,8,Ea),t[5]||(t[5]=T("span",{class:"vtl-collapse-tx"},"Collapse",-1))],8,Ta),e.$slots.rail?At(e.$slots,"rail",{collapsed:e.railCollapsed&&!e.narrow,expand:e.expandRail,pick:e.pick},void 0,void 0,0):e.groups&&e.groups.length?(E(!0),C(J,{key:1},Ve(e.groups,l=>(E(),C("div",{class:"vtl-grp",key:l.key},[l.folder?(E(),C("button",{key:0,type:"button",class:"vtl-tier vtl-tier-btn","aria-expanded":String(!e.isFolderClosed(l)),onClick:r=>e.toggleFolder(l.key)},[l.badge?(E(),C("span",Oa,N(l.badge),1)):Q("",!0),T("span",Aa,N(l.label),1),l.count!=null?(E(),C("span",Ma,N(l.count),1)):Q("",!0),T("span",{class:Se(["vtl-chev",{open:!e.isFolderClosed(l)}]),"aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,10,Ra)],8,Ca)):(E(),C("div",Ia,[l.badge?(E(),C("span",La,N(l.badge),1)):Q("",!0),T("span",Pa,N(l.label),1),l.count!=null?(E(),C("span",Na,N(l.count),1)):Q("",!0)])),ds(T("div",Ha,[(E(!0),C(J,null,Ve(l.rows,r=>(E(),C("button",{key:r.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:r.key===e.active}]),"aria-selected":String(r.key===e.active),tabindex:r.key===e.active?0:-1,ref_for:!0,ref:a=>e.registerTab(r.key,a),onClick:a=>e.pick(r.key),onKeydown:t[3]||(t[3]=a=>e.onKey(a))},[r.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(r.icon)},null,8,Da)):r.emoji?(E(),C("span",Fa,N(r.emoji),1)):(E(),C("span",ja,N(e.initial(r.label)),1)),T("span",Ka,[T("span",Ua,[gt(N(r.label),1),r.badge?(E(),C("span",Va,N(r.badge),1)):Q("",!0)]),r.sub?(E(),C("span",za,[T("span",{innerHTML:r.sub},null,8,Ba)])):Q("",!0)])],42,$a))),128))],512),[[gi,!l.folder||!e.isFolderClosed(l)]])]))),128)):(E(!0),C(J,{key:2},Ve(e.items,l=>(E(),C("button",{key:l.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:l.key===e.active}]),"aria-selected":String(l.key===e.active),tabindex:l.key===e.active?0:-1,ref_for:!0,ref:r=>e.registerTab(l.key,r),onClick:r=>e.pick(l.key),onKeydown:t[4]||(t[4]=r=>e.onKey(r))},[l.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(l.icon)},null,8,qa)):l.emoji?(E(),C("span",Ga,N(l.emoji),1)):(E(),C("span",Ja,N(e.initial(l.label)),1)),T("span",Ya,[T("span",Xa,N(l.label),1),l.sub?(E(),C("span",Za,N(l.sub),1)):Q("",!0)])],42,Wa))),128))],8,ka),T("main",Qa,[e.header?At(e.$slots,"toolbar",{},void 0,void 0,0):Q("",!0),T("div",ec,[(E(!0),C(J,null,Ve(e.mountedElementRows,l=>ds((E(),C("section",{key:l.key,class:"vtl-host",hidden:l.key!==e.active},[T("div",{class:"vtl-host-slot",ref_for:!0,ref:r=>e.setHostSlot(l.key,r)},null,512),e.hostState[l.key]==="loading"?(E(),C("div",sc,"Loading "+N(l.label)+"…",1)):e.hostState[l.key]==="error"?(E(),C("div",ic,[gt(" Could not load "+N(l.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(e.hostError[l.key]),1)])):Q("",!0)],8,tc)),[[gi,l.key===e.active]])),128)),At(e.$slots,"default")])])])],2)}const oc=wi(ba,[["render",nc],["styles",[pa]]]),lc='.st{display:flex;flex-direction:column;margin:0 -12px}.st-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 12px;background:#fff}.st-find{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;height:30px;padding:0 8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1;color:#6d766e}.st-find:focus-within{border-color:#92b195;background:#fff}.st-find-ic{display:inline-flex}.st-find-ic svg{width:14px;height:14px}.st-find-in{flex:1 1 auto;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:13px;color:#3b463d}.st-tool{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:none;color:#6d766e;cursor:pointer}.st-tool:hover{background:#f3f3f1;color:#3b463d}.st-tool:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-tool svg{width:16px;height:16px}.st-tree{display:flex;flex-direction:column;padding:0 0 8px;outline:0}.st-row{position:relative;display:flex;align-items:center;gap:6px;height:28px;box-sizing:border-box;padding:0 10px 0 calc(8px + var(--st-depth) * 14px);font-size:13px;color:#3b463d;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;outline:0}.st-row:hover{background:#f3f3f1}.st-row:focus-visible{box-shadow:inset 0 0 0 1px #92b195}.st-row.active{background:#92b1953d}.st-row.active:after{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:0 3px 3px 0;background:#92b195}.st-row.alias.active{background:#92b1951f}.st-sec{position:sticky;top:46px;z-index:2;height:30px;margin-top:6px;background:#fff;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#6d766e;border-top:1px solid #eceee9}.st-sec:first-child{margin-top:0;border-top:0}.st-sec:hover{background:#fff;color:#3b463d}.st-cap{flex:0 0 auto;font:700 10px/1 system-ui,sans-serif;letter-spacing:.3px;padding:3px 6px;border-radius:999px;background:#92b195;color:#1d2a1f}.st-sec-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-twisty,.st-twisty-sp{flex:0 0 16px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:#6d766e}.st-twisty svg{width:14px;height:14px;transition:transform .12s ease}.st-row[aria-expanded=true]>.st-twisty svg{transform:rotate(90deg)}.st-ic{flex:0 0 16px;display:inline-flex;color:#6d766e}.st-ic svg{width:16px;height:16px}.st-row.active .st-ic{color:#5f8a63}.st-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-desc{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;font:11px/1 ui-monospace,Menlo,monospace;color:#8a928b}.st-part{flex:0 0 auto;font:600 9px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.3px;padding:2px 4px;border:1px solid #92b195;border-radius:4px;color:#5f8a63}.st-count{flex:0 0 auto;margin-left:auto;min-width:18px;text-align:right;font-size:11px;font-weight:500;letter-spacing:0;color:#6d766e}.st-guide{position:absolute;top:0;bottom:0;left:calc(15px + var(--st-g) * 14px);border-left:1px solid #dfe2db;pointer-events:none}.st-row:hover>.st-guide{border-left-color:#c4c8c0}.st-empty{margin:12px;font-size:13px;color:#6d766e}.st-activity{display:flex;flex-direction:column;gap:4px}.st-act{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:44px;margin-left:172px;padding:0;border:0;border-radius:10px;background:none;color:#6d766e;cursor:pointer}.st-act:hover,.st-act.active{background:#f3f3f1;color:#3b463d}.st-act:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-act-ic{display:inline-flex}.st-act-ic svg{width:20px;height:20px}.st-act-n{position:absolute;right:6px;bottom:5px;font:700 9px/1 system-ui,sans-serif;color:#5f8a63}',rc='.st { display:flex; flex-direction:column; margin:0 -12px; }.st-bar { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:6px; padding:8px 12px 8px; background:#ffffff; }.st-find { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:6px; height:30px; padding:0 8px; border:1px solid #d1d4cd; border-radius:8px; background:#f3f3f1; color:#6d766e; }.st-find:focus-within { border-color:#92b195; background:#ffffff; }.st-find-ic { display:inline-flex; } .st-find-ic svg { width:14px; height:14px; }.st-find-in { flex:1 1 auto; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:13px; color:#3b463d; }.st-tool { flex:0 0 auto; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:none; color:#6d766e; cursor:pointer; }.st-tool:hover { background:#f3f3f1; color:#3b463d; } .st-tool:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-tool svg { width:16px; height:16px; }.st-tree { display:flex; flex-direction:column; padding:0 0 8px; outline:0; }.st-row { position:relative; display:flex; align-items:center; gap:6px; height:28px; box-sizing:border-box; padding:0 10px 0 calc(8px + var(--st-depth) * 14px); font-size:13px; color:#3b463d; cursor:pointer; white-space:nowrap; user-select:none; outline:0; }.st-row:hover { background:#f3f3f1; }.st-row:focus-visible { box-shadow:inset 0 0 0 1px #92b195; }.st-row.active { background:rgba(146,177,149,.24); }.st-row.active::after { content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; border-radius:0 3px 3px 0; background:#92b195; }.st-row.alias.active { background:rgba(146,177,149,.12); }.st-sec { position:sticky; top:46px; z-index:2; height:30px; margin-top:6px; background:#ffffff; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6d766e; border-top:1px solid #eceee9; }.st-sec:first-child { margin-top:0; border-top:0; }.st-sec:hover { background:#ffffff; color:#3b463d; }.st-cap { flex:0 0 auto; font:700 10px/1 system-ui,sans-serif; letter-spacing:.3px; padding:3px 6px; border-radius:999px; background:#92b195; color:#1d2a1f; }.st-sec-label { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-twisty, .st-twisty-sp { flex:0 0 16px; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; color:#6d766e; }.st-twisty svg { width:14px; height:14px; transition:transform .12s ease; }.st-row[aria-expanded="true"] > .st-twisty svg { transform:rotate(90deg); }.st-ic { flex:0 0 16px; display:inline-flex; color:#6d766e; } .st-ic svg { width:16px; height:16px; }.st-row.active .st-ic { color:#5f8a63; }.st-label { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-desc { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; font:11px/1 ui-monospace,Menlo,monospace; color:#8a928b; }.st-part { flex:0 0 auto; font:600 9px/1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.3px; padding:2px 4px; border:1px solid #92b195; border-radius:4px; color:#5f8a63; }.st-count { flex:0 0 auto; margin-left:auto; min-width:18px; text-align:right; font-size:11px; font-weight:500; letter-spacing:0; color:#6d766e; }.st-guide { position:absolute; top:0; bottom:0; left:calc(15px + var(--st-g) * 14px); border-left:1px solid #dfe2db; pointer-events:none; }.st-row:hover > .st-guide { border-left-color:#c4c8c0; }.st-empty { margin:12px; font-size:13px; color:#6d766e; }.st-activity { display:flex; flex-direction:column; gap:4px; }.st-act { position:relative; display:flex; align-items:center; justify-content:center; width:48px; height:44px; margin-left:172px; padding:0; border:0; border-radius:10px; background:none; color:#6d766e; cursor:pointer; }.st-act:hover, .st-act.active { background:#f3f3f1; color:#3b463d; }.st-act:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-act-ic { display:inline-flex; } .st-act-ic svg { width:20px; height:20px; }.st-act-n { position:absolute; right:6px; bottom:5px; font:700 9px/1 system-ui,sans-serif; color:#5f8a63; }',ac='',cc='',dc=ps({name:"StudioTree",props:{sections:{type:Array,default:()=>[]},active:{type:String,default:""},collapsed:{type:Boolean,default:!1},pick:{type:Function,default:null},expand:{type:Function,default:null}},emits:["select"],setup(){yi(rc,"studio-tree")},data(){const e=this.readState();return{query:"",focusId:"",secClosed:e.sec||{},nodeOpen:e.node||{},chev:cc,collapseAllSvg:ac}},computed:{byId(){const e=new Map;for(const t of this.sections)for(const s of t.nodes)e.set(s.id,s);return e},q(){return this.query.trim().toLowerCase()},kept(){if(!this.q)return null;const e=new Set;for(const t of this.sections)for(const s of t.nodes){if(!(s.label.toLowerCase().includes(this.q)||String(s.desc||"").toLowerCase().includes(this.q)))continue;e.add(s.id);let n=s.parent;for(;n;)e.add(n),n=this.byId.get(n)&&this.byId.get(n).parent}return e},visible(){const e=[];for(const t of this.sections){const s=this.kept?t.nodes.filter(i=>this.kept.has(i.id)):t.nodes;if(!(this.kept&&!s.length)&&(e.push({id:"sec:"+t.id,section:!0,sectionId:t.id,level:1,depth:0,expandable:!0,cap:t.cap,label:t.label,title:t.title||"",count:t.nodes.filter(i=>i.depth===0).length}),!(!this.kept&&this.secClosed[t.id])))for(const i of s)!this.kept&&!this.ancestorsOpen(i)||e.push({...i,sectionId:t.id,level:i.depth+2,expandable:!!i.kids,alias:i.depth>0})}return e},activeSectionId(){for(const e of this.sections)if(e.nodes.some(t=>t.depth===0&&t.target===this.active))return e.id;return""}},watch:{active:{handler(){this.reveal()},immediate:!0},sections(){this.reveal()},query(e){e&&this.visible.length&&(this.focusId=this.visible[0].id)}},methods:{svg(e){return e?To(e):""},storageKey(){return"dx-studio-tree:"+(typeof location<"u"&&location.pathname||"")},readState(){try{return JSON.parse(window.localStorage.getItem(this.storageKey())||"{}")||{}}catch{return{}}},saveState(){try{window.localStorage.setItem(this.storageKey(),JSON.stringify({sec:this.secClosed,node:this.nodeOpen}))}catch{}},ancestorsOpen(e){let t=e.parent;for(;t;){if(!this.nodeOpen[t])return!1;t=this.byId.get(t)&&this.byId.get(t).parent}return!0},isOpen(e){return this.kept?!0:e.section?!this.secClosed[e.sectionId]:!!this.nodeOpen[e.id]},setOpen(e,t){e.section?this.secClosed={...this.secClosed,[e.sectionId]:!t}:this.nodeOpen={...this.nodeOpen,[e.id]:t},this.saveState()},toggle(e){e.expandable&&this.setOpen(e,!this.isOpen(e))},collapseAll(){this.nodeOpen={},this.saveState();const e=this.visible.find(t=>!t.section&&t.target===this.active&&t.depth===0);e&&(this.focusId=e.id)},rowClass(e){return{"st-row":!0,"st-sec":!!e.section,active:!e.section&&e.target===this.active,alias:!!e.alias}},setRow(e,t){this._rows||(this._rows={}),t?this._rows[e]=t:delete this._rows[e]},activate(e){if(e.section){this.toggle(e);return}e.expandable&&!this.isOpen(e)&&this.setOpen(e,!0),e.target&&(this.pick?this.pick(e.target):this.$emit("select",e.target))},onRowClick(e){this.focusId=e.id,this.activate(e)},focusRow(e){e&&(this.focusId=e,this.$nextTick(()=>{const t=this._rows&&this._rows[e];t&&(t.focus({preventScroll:!0}),t.scrollIntoView({block:"nearest"}))}))},onTreeKey(e){const t=this.visible;if(!t.length)return;const s=Math.max(0,t.findIndex(o=>o.id===this.focusId)),i=t[s],n=o=>o.section?"":o.parent||"sec:"+o.sectionId;switch(e.key){case"ArrowDown":this.focusRow((t[s+1]||i).id);break;case"ArrowUp":this.focusRow((t[s-1]||i).id);break;case"Home":this.focusRow(t[0].id);break;case"End":this.focusRow(t[t.length-1].id);break;case"ArrowRight":if(!i.expandable)break;this.isOpen(i)?t[s+1]&&t[s+1].level>i.level&&this.focusRow(t[s+1].id):this.setOpen(i,!0);break;case"ArrowLeft":i.expandable&&this.isOpen(i)&&!this.kept?this.setOpen(i,!1):this.focusRow(n(i));break;case"Enter":case" ":this.activate(i);break;default:if(e.key.length===1&&/\S/.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){const o=e.key.toLowerCase(),r=t.slice(s+1).concat(t.slice(0,s+1)).find(a=>String(a.label).toLowerCase().startsWith(o));r&&this.focusRow(r.id);break}return}e.preventDefault()},onFindKey(e){e.key==="Escape"?(this.query="",e.preventDefault()):e.key==="ArrowDown"&&this.visible.length&&(this.focusRow(this.visible[0].id),e.preventDefault())},reveal(){if(!this.active||!this.sections.length)return;let e=null;for(const t of this.sections)if(e=t.nodes.find(s=>s.depth===0&&s.target===this.active),e){this.secClosed[t.id]&&(this.secClosed={...this.secClosed,[t.id]:!1},this.saveState());break}e&&((!this.focusId||!this.byId.has(this.focusId)||this.byId.get(this.focusId).target!==this.active)&&(this.focusId=e.id),this.$nextTick(()=>{const t=this._rows&&this._rows[e.id];t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest"})}))},openSectionFromActivity(e){this.secClosed[e]&&(this.secClosed={...this.secClosed,[e]:!1},this.saveState()),this.expand&&this.expand(),this.$nextTick(()=>this.focusRow("sec:"+e))}}}),fc={key:0,class:"st-activity"},pc=["aria-label","onClick"],uc=["innerHTML"],hc={class:"st-act-n","aria-hidden":"true"},gc={key:1,class:"st"},bc={class:"st-bar"},vc={class:"st-find"},mc=["innerHTML"],xc=["innerHTML"],yc=["aria-level","aria-expanded","aria-selected","tabindex","title","onClick","onFocus"],wc=["innerHTML"],_c={class:"st-cap"},Sc={class:"st-sec-label"},kc={class:"st-count"},Tc=["innerHTML","onClick"],Ec={key:1,class:"st-twisty-sp","aria-hidden":"true"},Cc=["innerHTML"],Oc={class:"st-label"},Ac={key:2,class:"st-part"},Mc={class:"st-desc"},Rc={key:3,class:"st-count"},Ic={key:0,class:"st-empty"};function Lc(e,t,s,i,n,o){return e.collapsed?(E(),C("div",fc,[(E(!0),C(J,null,Ve(e.sections,l=>(E(),C("button",{key:l.id,type:"button",class:Se(["st-act",{active:l.id===e.activeSectionId}]),"aria-label":"Open CAP "+l.cap+", "+l.label,onClick:r=>e.openSectionFromActivity(l.id)},[T("span",{class:"st-act-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,uc),T("span",hc,N(l.cap),1)],10,pc))),128))])):(E(),C("div",gc,[T("div",bc,[T("label",vc,[T("span",{class:"st-find-ic","aria-hidden":"true",innerHTML:e.svg("search")},null,8,mc),ds(T("input",{ref:"find",type:"search",class:"st-find-in","onUpdate:modelValue":t[0]||(t[0]=l=>e.query=l),placeholder:"Filter plugins","aria-label":"Filter plugins",onKeydown:t[1]||(t[1]=(...l)=>e.onFindKey&&e.onFindKey(...l))},null,544),[[ia,e.query]])]),T("button",{type:"button",class:"st-tool","aria-label":"Collapse all",title:"Collapse all",onClick:t[2]||(t[2]=(...l)=>e.collapseAll&&e.collapseAll(...l))},[T("span",{"aria-hidden":"true",innerHTML:e.collapseAllSvg},null,8,xc)])]),T("div",{class:"st-tree",role:"tree","aria-label":"Plugins by capability",onKeydown:t[3]||(t[3]=(...l)=>e.onTreeKey&&e.onTreeKey(...l))},[(E(!0),C(J,null,Ve(e.visible,l=>(E(),C("div",{key:l.id,ref_for:!0,ref:r=>e.setRow(l.id,r),role:"treeitem","aria-level":l.level,"aria-expanded":l.expandable?String(e.isOpen(l)):null,"aria-selected":l.section?null:String(l.target===e.active),tabindex:l.id===e.focusId?0:-1,class:Se(e.rowClass(l)),style:xt({"--st-depth":l.depth}),title:l.title||null,onClick:r=>e.onRowClick(l),onFocus:r=>e.focusId=l.id},[l.section?(E(),C(J,{key:0},[T("span",{class:"st-twisty","aria-hidden":"true",innerHTML:e.chev},null,8,wc),T("span",_c,"CAP "+N(l.cap),1),T("span",Sc,N(l.label),1),T("span",kc,N(l.count),1)],64)):(E(),C(J,{key:1},[(E(!0),C(J,null,Ve(l.depth,r=>(E(),C("span",{key:r,class:"st-guide",style:xt({"--st-g":r-1}),"aria-hidden":"true"},null,4))),128)),l.expandable?(E(),C("span",{key:0,class:"st-twisty","aria-hidden":"true",innerHTML:e.chev,onClick:la(r=>e.toggle(l),["stop"])},null,8,Tc)):(E(),C("span",Ec)),T("span",{class:"st-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,Cc),T("span",Oc,N(l.label),1),l.part?(E(),C("span",Ac,"part")):Q("",!0),T("span",Mc,N(l.desc),1),l.expandable?(E(),C("span",Rc,N(l.kids),1)):Q("",!0)],64))],46,yc))),128)),e.query&&!e.visible.length?(E(),C("p",Ic,"No plugin matches “"+N(e.query)+"”.",1)):Q("",!0)],32)]))}const Pc=wi(dc,[["render",Lc],["styles",[lc]]]),_i=[{code:"en",name:"English",nativeName:"English",flag:"🇺🇸"},{code:"es",name:"Spanish",nativeName:"Español",flag:"🇪🇸"},{code:"fr",name:"French",nativeName:"Français",flag:"🇫🇷"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"🇵🇹"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"🇸🇦",dir:"rtl"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"🇷🇺"},{code:"de",name:"German",nativeName:"Deutsch",flag:"🇩🇪",hideFromSwitcher:!0},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"🇮🇳",hideFromSwitcher:!0}],Nc=_i.filter(e=>!e.hideFromSwitcher);function Hc(e){return _i.find(t=>t.code===e)}function Eo(e){const t=String(e||"").split("-")[0].toLowerCase();return _i.some(s=>s.code===t)?t:"en"}const Co="doxa-maps:locale";function $c(){try{const e=localStorage.getItem(Co);if(e)return Eo(e)}catch{}return Eo(navigator==null?void 0:navigator.language)}function Dc(e){try{localStorage.setItem(Co,e)}catch{}}const Fc=":host{display:block;position:relative;height:var(--plugin-studio-height, 85vh);min-height:480px}:host([hidden]){display:none}.ps-logo{display:inline-flex;align-items:center}.ps-logo svg{display:block}.ps-count{color:#6d766e}.ps-locale{position:relative;display:inline-flex}.ps-locale-btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;padding:4px 9px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer}.ps-locale-btn:hover{background:#d1d4cd}.ps-flag{font-size:13px;line-height:1}.ps-locale-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ps-dots{color:#6d766e}.ps-locale-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:30;min-width:180px;list-style:none;padding:6px;border:1px solid #d1d4cd;border-radius:10px;background:#fff;box-shadow:0 12px 32px #00000080;max-height:320px;overflow:auto}.ps-locale-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;padding:7px 9px;border:0;border-radius:7px;background:none;color:#3b463d;cursor:pointer}.ps-locale-opt:hover,.ps-locale-opt.active{background:#d1d4cd;color:#3b463d}.ps-locale-opt.active .ps-locale-name{color:#92b195}.ps-locale-en{margin-left:auto;font-size:11px;color:#6d766e}.ps-toolbar{display:flex;flex-direction:column;gap:8px;padding:10px 12px 0}.ps-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ps-bar-t{flex:1 1 auto;min-width:0}.ps-bar-t b{font-size:15px;color:#3b463d}.ps-bar-sub{display:block;font-size:12px;color:#6d766e}.ps-btn{font:inherit;font-size:12px;padding:5px 10px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer;white-space:nowrap}.ps-btn:hover{background:#d1d4cd}.ps-embed{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1}.ps-embed label{font-size:12px;color:#6d766e;display:flex;justify-content:space-between;align-items:center}.ps-embed textarea{width:100%;height:58px;font:11px/1.35 ui-monospace,Menlo,monospace;border:1px solid #d1d4cd;border-radius:6px;background:#fff;color:#3b463d;padding:6px;resize:vertical}.ps-stage{position:absolute;top:10px;right:12px;bottom:12px;left:12px;border:1px solid #d1d4cd;border-radius:10px;overflow:hidden;background:#f3f3f1}.ps-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h: 0}.ps-slot{position:relative;min-height:100%}.ps-slot>*{min-height:0;max-height:none}.ps-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:#6d766e;font-size:13px;padding:20px}.ps-hint.err{color:#f87171}.ps-hint small{color:#6d766e}",jc=` +`,ba=ps({name:"VerticalTabsLayout",props:{active:{type:String,default:""},title:{type:String,default:""},items:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},navLabel:{type:String,default:"Sections"},initialNavOpen:{type:Boolean,default:!0},header:{type:Boolean,default:!0},initialRailCollapsed:{type:Boolean,default:!1}},emits:["update:active"],setup(){yi(ga,"vertical-tabs-layout")},data(){return{navOpen:this.initialNavOpen,railCollapsed:this.initialRailCollapsed,_tabEls:{},folderOverride:{},narrow:!1,_mql:null,_onMedia:null,activatedKeys:{},hostState:{},hostError:{},_hostSlots:{},_hostMounted:{}}},computed:{railShown(){return this.narrow?this.navOpen:!0},allRows(){if(this.groups&&this.groups.length){const e=[];for(const t of this.groups)for(const s of t.rows||[])e.push(s);return e}return this.items},orderedKeys(){return this.allRows.map(e=>e.key)},elementRows(){return this.allRows.filter(e=>e&&e.element)},mountedElementRows(){return this.elementRows.filter(e=>this.activatedKeys[e.key])}},watch:{active:{immediate:!0,handler(e){this.activateElement(e)}}},mounted(){try{window.matchMedia&&(this._mql=window.matchMedia("(max-width: 760px)"),this.narrow=this._mql.matches,this.reconcileForWidth(),this._onMedia=e=>{this.narrow=e.matches,this.reconcileForWidth()},this._mql.addEventListener?this._mql.addEventListener("change",this._onMedia):this._mql.addListener&&this._mql.addListener(this._onMedia))}catch{}this.$nextTick(()=>this.activateElement(this.active))},beforeUnmount(){try{this._mql&&this._onMedia&&(this._mql.removeEventListener?this._mql.removeEventListener("change",this._onMedia):this._mql.removeListener&&this._mql.removeListener(this._onMedia))}catch{}this._mql=null,this._onMedia=null},methods:{registerTab(e,t){t&&(this._tabEls[e]=t)},isNarrow(){return this.narrow},reconcileForWidth(){this.narrow?(this.navOpen=!1,this.railCollapsed=!1):this.navOpen=!0},expandRail(){!this.narrow&&this.railCollapsed&&(this.railCollapsed=!1)},toggleRail(){this.narrow?this.navOpen=!this.navOpen:this.railCollapsed=!this.railCollapsed},setHostSlot(e,t){t&&(this._hostSlots[e]=t,this.$nextTick(()=>this.mountHostElement(e)))},activateElement(e){!e||!this.elementRows.find(s=>s.key===e)||(this.activatedKeys[e]||(this.activatedKeys={...this.activatedKeys,[e]:!0},this.hostState={...this.hostState,[e]:"loading"}),this.$nextTick(()=>this.mountHostElement(e)))},mountHostElement(e){if(this._hostMounted[e])return;const t=this.elementRows.find(i=>i.key===e),s=this._hostSlots[e];!t||!s||(this._hostMounted[e]=!0,this.hostState={...this.hostState,[e]:"loading"},ua(t.src).then(()=>ha(t.element)).then(()=>{s.innerHTML="";const i=document.createElement(t.element),n=t.attrs||{};for(const o in n){const l=n[o],r=l!=null&&typeof l=="object"?JSON.stringify(l):String(l);try{i[o]=l}catch{}try{i.setAttribute(o,r)}catch{}}i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),this.hostState={...this.hostState,[e]:"ready"}}).catch(i=>{this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"error"},this.hostError={...this.hostError,[e]:i&&i.message||String(i)}}))},iconSvg(e){return e?To(e):""},initial(e){const t=(e||"").trim();return t?t.charAt(0).toUpperCase():"•"},isFolderClosed(e){const t=this.folderOverride[e.key];return t!=null?!t:e.open!==!0},toggleFolder(e){const t=this.folderOverride[e],s=(this.groups||[]).find(n=>n.key===e),i=t??(s&&s.open===!0);this.folderOverride={...this.folderOverride,[e]:!i}},pick(e){this.$emit("update:active",e),this.narrow&&(this.navOpen=!1)},onKey(e){const t=this.orderedKeys;if(!t.length)return;const s=t.indexOf(this.active);let i=-1;if(e.key==="ArrowDown"||e.key==="ArrowRight")i=(s+1)%t.length;else if(e.key==="ArrowUp"||e.key==="ArrowLeft")i=(s-1+t.length)%t.length;else if(e.key==="Home")i=0;else if(e.key==="End")i=t.length-1;else return;e.preventDefault();const n=t[i];this.pick(n),this.$nextTick(()=>{const o=this._tabEls[n];o&&o.focus&&o.focus()})}}}),va={key:0,class:"vtl-top"},ma=["aria-expanded"],xa={class:"vtl-brand"},ya={class:"vtl-title"},wa={class:"vtl-meta"},_a=["aria-expanded"],Sa={class:"vtl-body"},ka=["aria-label","aria-hidden","role","aria-orientation"],Ta=["aria-expanded","aria-label"],Ea=["innerHTML"],Ca=["aria-expanded","onClick"],Oa={key:0,class:"vtl-cap"},Aa={class:"vtl-tl"},Ma={key:1,class:"vtl-td"},Ra=["innerHTML"],Ia={key:1,class:"vtl-tier"},La={key:0,class:"vtl-cap"},Pa={class:"vtl-tl"},Na={key:1,class:"vtl-td"},$a={class:"vtl-rows"},Ha=["aria-selected","tabindex","onClick"],Da=["innerHTML"],Fa={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ka={class:"vtl-tab-text"},Ua={class:"vtl-tab-label"},Va={key:0,class:"vtl-tab-badge"},za={key:0,class:"vtl-tab-sub"},Ba=["innerHTML"],Wa=["aria-selected","tabindex","onClick"],qa=["innerHTML"],Ga={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},Ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ya={class:"vtl-tab-text"},Xa={class:"vtl-tab-label"},Za={key:0,class:"vtl-tab-sub"},Qa={class:"vtl-main"},ec={class:"vtl-content"},tc=["hidden"],sc={key:0,class:"vtl-host-hint"},ic={key:1,class:"vtl-host-hint err"};function nc(e,t,s,i,n,o){return E(),C("div",{class:Se(["vtl",{"nav-open":e.navOpen,"rail-collapsed":e.railCollapsed,"no-header":!e.header}])},[e.header?(E(),C("header",va,[T("button",{class:"vtl-menu",type:"button","aria-expanded":String(e.navOpen),onClick:t[0]||(t[0]=l=>e.navOpen=!e.navOpen),"aria-label":"Toggle list"},"☰",8,ma),T("span",xa,[At(e.$slots,"brand")]),T("b",ya,N(e.title),1),T("span",wa,[At(e.$slots,"meta")])])):Q("",!0),e.narrow&&!e.header&&!e.navOpen?(E(),C("button",{key:1,class:"vtl-fab",type:"button","aria-expanded":String(e.navOpen),onClick:t[1]||(t[1]=l=>e.navOpen=!0),"aria-label":"Open the list of views"},"☰",8,_a)):Q("",!0),T("div",Sa,[T("nav",{class:"vtl-nav","aria-label":e.navLabel,"aria-hidden":String(!e.railShown),role:e.$slots.rail?null:"tablist","aria-orientation":e.$slots.rail?null:"vertical"},[T("button",{type:"button",class:"vtl-collapse","aria-expanded":String(!e.railCollapsed),"aria-label":e.railCollapsed?"Expand list":"Collapse list",onClick:t[2]||(t[2]=(...l)=>e.toggleRail&&e.toggleRail(...l))},[T("span",{class:"vtl-collapse-ic","aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,8,Ea),t[5]||(t[5]=T("span",{class:"vtl-collapse-tx"},"Collapse",-1))],8,Ta),e.$slots.rail?At(e.$slots,"rail",{collapsed:e.railCollapsed&&!e.narrow,expand:e.expandRail,pick:e.pick},void 0,void 0,0):e.groups&&e.groups.length?(E(!0),C(J,{key:1},Ve(e.groups,l=>(E(),C("div",{class:"vtl-grp",key:l.key},[l.folder?(E(),C("button",{key:0,type:"button",class:"vtl-tier vtl-tier-btn","aria-expanded":String(!e.isFolderClosed(l)),onClick:r=>e.toggleFolder(l.key)},[l.badge?(E(),C("span",Oa,N(l.badge),1)):Q("",!0),T("span",Aa,N(l.label),1),l.count!=null?(E(),C("span",Ma,N(l.count),1)):Q("",!0),T("span",{class:Se(["vtl-chev",{open:!e.isFolderClosed(l)}]),"aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,10,Ra)],8,Ca)):(E(),C("div",Ia,[l.badge?(E(),C("span",La,N(l.badge),1)):Q("",!0),T("span",Pa,N(l.label),1),l.count!=null?(E(),C("span",Na,N(l.count),1)):Q("",!0)])),ds(T("div",$a,[(E(!0),C(J,null,Ve(l.rows,r=>(E(),C("button",{key:r.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:r.key===e.active}]),"aria-selected":String(r.key===e.active),tabindex:r.key===e.active?0:-1,ref_for:!0,ref:a=>e.registerTab(r.key,a),onClick:a=>e.pick(r.key),onKeydown:t[3]||(t[3]=a=>e.onKey(a))},[r.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(r.icon)},null,8,Da)):r.emoji?(E(),C("span",Fa,N(r.emoji),1)):(E(),C("span",ja,N(e.initial(r.label)),1)),T("span",Ka,[T("span",Ua,[gt(N(r.label),1),r.badge?(E(),C("span",Va,N(r.badge),1)):Q("",!0)]),r.sub?(E(),C("span",za,[T("span",{innerHTML:r.sub},null,8,Ba)])):Q("",!0)])],42,Ha))),128))],512),[[gi,!l.folder||!e.isFolderClosed(l)]])]))),128)):(E(!0),C(J,{key:2},Ve(e.items,l=>(E(),C("button",{key:l.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:l.key===e.active}]),"aria-selected":String(l.key===e.active),tabindex:l.key===e.active?0:-1,ref_for:!0,ref:r=>e.registerTab(l.key,r),onClick:r=>e.pick(l.key),onKeydown:t[4]||(t[4]=r=>e.onKey(r))},[l.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(l.icon)},null,8,qa)):l.emoji?(E(),C("span",Ga,N(l.emoji),1)):(E(),C("span",Ja,N(e.initial(l.label)),1)),T("span",Ya,[T("span",Xa,N(l.label),1),l.sub?(E(),C("span",Za,N(l.sub),1)):Q("",!0)])],42,Wa))),128))],8,ka),T("main",Qa,[e.header?At(e.$slots,"toolbar",{},void 0,void 0,0):Q("",!0),T("div",ec,[(E(!0),C(J,null,Ve(e.mountedElementRows,l=>ds((E(),C("section",{key:l.key,class:"vtl-host",hidden:l.key!==e.active},[T("div",{class:"vtl-host-slot",ref_for:!0,ref:r=>e.setHostSlot(l.key,r)},null,512),e.hostState[l.key]==="loading"?(E(),C("div",sc,"Loading "+N(l.label)+"…",1)):e.hostState[l.key]==="error"?(E(),C("div",ic,[gt(" Could not load "+N(l.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(e.hostError[l.key]),1)])):Q("",!0)],8,tc)),[[gi,l.key===e.active]])),128)),At(e.$slots,"default")])])])],2)}const oc=wi(ba,[["render",nc],["styles",[pa]]]),lc='.st{display:flex;flex-direction:column;margin:0 -12px}.st-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 12px;background:#fff}.st-find{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;height:30px;padding:0 8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1;color:#6d766e}.st-find:focus-within{border-color:#92b195;background:#fff}.st-find-ic{display:inline-flex}.st-find-ic svg{width:14px;height:14px}.st-find-in{flex:1 1 auto;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:13px;color:#3b463d}.st-tool{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:none;color:#6d766e;cursor:pointer}.st-tool:hover{background:#f3f3f1;color:#3b463d}.st-tool:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-tool svg{width:16px;height:16px}.st-tree{display:flex;flex-direction:column;padding:0 0 8px;outline:0}.st-row{position:relative;display:flex;align-items:center;gap:6px;height:28px;box-sizing:border-box;padding:0 10px 0 calc(8px + var(--st-depth) * 14px);font-size:13px;color:#3b463d;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;outline:0}.st-row:hover{background:#f3f3f1}.st-row:focus-visible{box-shadow:inset 0 0 0 1px #92b195}.st-row.active{background:#92b1953d}.st-row.active:after{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:0 3px 3px 0;background:#92b195}.st-row.alias.active{background:#92b1951f}.st-sec{position:sticky;top:46px;z-index:2;height:30px;margin-top:6px;background:#fff;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#6d766e;border-top:1px solid #eceee9}.st-sec:first-child{margin-top:0;border-top:0}.st-sec:hover{background:#fff;color:#3b463d}.st-cap{flex:0 0 auto;font:700 10px/1 system-ui,sans-serif;letter-spacing:.3px;padding:3px 6px;border-radius:999px;background:#92b195;color:#1d2a1f}.st-sec-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-twisty,.st-twisty-sp{flex:0 0 16px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:#6d766e}.st-twisty svg{width:14px;height:14px;transition:transform .12s ease}.st-row[aria-expanded=true]>.st-twisty svg{transform:rotate(90deg)}.st-ic{flex:0 0 16px;display:inline-flex;color:#6d766e}.st-ic svg{width:16px;height:16px}.st-row.active .st-ic{color:#5f8a63}.st-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-desc{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;font:11px/1 ui-monospace,Menlo,monospace;color:#8a928b}.st-part{flex:0 0 auto;font:600 9px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.3px;padding:2px 4px;border:1px solid #92b195;border-radius:4px;color:#5f8a63}.st-count{flex:0 0 auto;margin-left:auto;min-width:18px;text-align:right;font-size:11px;font-weight:500;letter-spacing:0;color:#6d766e}.st-guide{position:absolute;top:0;bottom:0;left:calc(15px + var(--st-g) * 14px);border-left:1px solid #dfe2db;pointer-events:none}.st-row:hover>.st-guide{border-left-color:#c4c8c0}.st-empty{margin:12px;font-size:13px;color:#6d766e}.st-activity{display:flex;flex-direction:column;gap:4px}.st-act{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:44px;margin-left:172px;padding:0;border:0;border-radius:10px;background:none;color:#6d766e;cursor:pointer}.st-act:hover,.st-act.active{background:#f3f3f1;color:#3b463d}.st-act:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-act-ic{display:inline-flex}.st-act-ic svg{width:20px;height:20px}.st-act-n{position:absolute;right:6px;bottom:5px;font:700 9px/1 system-ui,sans-serif;color:#5f8a63}',rc='.st { display:flex; flex-direction:column; margin:0 -12px; }.st-bar { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:6px; padding:8px 12px 8px; background:#ffffff; }.st-find { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:6px; height:30px; padding:0 8px; border:1px solid #d1d4cd; border-radius:8px; background:#f3f3f1; color:#6d766e; }.st-find:focus-within { border-color:#92b195; background:#ffffff; }.st-find-ic { display:inline-flex; } .st-find-ic svg { width:14px; height:14px; }.st-find-in { flex:1 1 auto; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:13px; color:#3b463d; }.st-tool { flex:0 0 auto; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:none; color:#6d766e; cursor:pointer; }.st-tool:hover { background:#f3f3f1; color:#3b463d; } .st-tool:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-tool svg { width:16px; height:16px; }.st-tree { display:flex; flex-direction:column; padding:0 0 8px; outline:0; }.st-row { position:relative; display:flex; align-items:center; gap:6px; height:28px; box-sizing:border-box; padding:0 10px 0 calc(8px + var(--st-depth) * 14px); font-size:13px; color:#3b463d; cursor:pointer; white-space:nowrap; user-select:none; outline:0; }.st-row:hover { background:#f3f3f1; }.st-row:focus-visible { box-shadow:inset 0 0 0 1px #92b195; }.st-row.active { background:rgba(146,177,149,.24); }.st-row.active::after { content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; border-radius:0 3px 3px 0; background:#92b195; }.st-row.alias.active { background:rgba(146,177,149,.12); }.st-sec { position:sticky; top:46px; z-index:2; height:30px; margin-top:6px; background:#ffffff; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6d766e; border-top:1px solid #eceee9; }.st-sec:first-child { margin-top:0; border-top:0; }.st-sec:hover { background:#ffffff; color:#3b463d; }.st-cap { flex:0 0 auto; font:700 10px/1 system-ui,sans-serif; letter-spacing:.3px; padding:3px 6px; border-radius:999px; background:#92b195; color:#1d2a1f; }.st-sec-label { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-twisty, .st-twisty-sp { flex:0 0 16px; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; color:#6d766e; }.st-twisty svg { width:14px; height:14px; transition:transform .12s ease; }.st-row[aria-expanded="true"] > .st-twisty svg { transform:rotate(90deg); }.st-ic { flex:0 0 16px; display:inline-flex; color:#6d766e; } .st-ic svg { width:16px; height:16px; }.st-row.active .st-ic { color:#5f8a63; }.st-label { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-desc { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; font:11px/1 ui-monospace,Menlo,monospace; color:#8a928b; }.st-part { flex:0 0 auto; font:600 9px/1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.3px; padding:2px 4px; border:1px solid #92b195; border-radius:4px; color:#5f8a63; }.st-count { flex:0 0 auto; margin-left:auto; min-width:18px; text-align:right; font-size:11px; font-weight:500; letter-spacing:0; color:#6d766e; }.st-guide { position:absolute; top:0; bottom:0; left:calc(15px + var(--st-g) * 14px); border-left:1px solid #dfe2db; pointer-events:none; }.st-row:hover > .st-guide { border-left-color:#c4c8c0; }.st-empty { margin:12px; font-size:13px; color:#6d766e; }.st-activity { display:flex; flex-direction:column; gap:4px; }.st-act { position:relative; display:flex; align-items:center; justify-content:center; width:48px; height:44px; margin-left:172px; padding:0; border:0; border-radius:10px; background:none; color:#6d766e; cursor:pointer; }.st-act:hover, .st-act.active { background:#f3f3f1; color:#3b463d; }.st-act:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-act-ic { display:inline-flex; } .st-act-ic svg { width:20px; height:20px; }.st-act-n { position:absolute; right:6px; bottom:5px; font:700 9px/1 system-ui,sans-serif; color:#5f8a63; }',ac='',cc='',dc=ps({name:"StudioTree",props:{sections:{type:Array,default:()=>[]},active:{type:String,default:""},collapsed:{type:Boolean,default:!1},pick:{type:Function,default:null},expand:{type:Function,default:null}},emits:["select"],setup(){yi(rc,"studio-tree")},data(){const e=this.readState();return{query:"",focusId:"",secClosed:e.sec||{},nodeOpen:e.node||{},chev:cc,collapseAllSvg:ac}},computed:{byId(){const e=new Map;for(const t of this.sections)for(const s of t.nodes)e.set(s.id,s);return e},q(){return this.query.trim().toLowerCase()},kept(){if(!this.q)return null;const e=new Set;for(const t of this.sections)for(const s of t.nodes){if(!(s.label.toLowerCase().includes(this.q)||String(s.desc||"").toLowerCase().includes(this.q)))continue;e.add(s.id);let n=s.parent;for(;n;)e.add(n),n=this.byId.get(n)&&this.byId.get(n).parent}return e},visible(){const e=[];for(const t of this.sections){const s=this.kept?t.nodes.filter(i=>this.kept.has(i.id)):t.nodes;if(!(this.kept&&!s.length)&&(e.push({id:"sec:"+t.id,section:!0,sectionId:t.id,level:1,depth:0,expandable:!0,cap:t.cap,label:t.label,title:t.title||"",count:t.nodes.filter(i=>i.depth===0).length}),!(!this.kept&&this.secClosed[t.id])))for(const i of s)!this.kept&&!this.ancestorsOpen(i)||e.push({...i,sectionId:t.id,level:i.depth+2,expandable:!!i.kids,alias:i.depth>0})}return e},activeSectionId(){for(const e of this.sections)if(e.nodes.some(t=>t.depth===0&&t.target===this.active))return e.id;return""}},watch:{active:{handler(){this.reveal()},immediate:!0},sections(){this.reveal()},query(e){e&&this.visible.length&&(this.focusId=this.visible[0].id)}},methods:{svg(e){return e?To(e):""},storageKey(){return"dx-studio-tree:"+(typeof location<"u"&&location.pathname||"")},readState(){try{return JSON.parse(window.localStorage.getItem(this.storageKey())||"{}")||{}}catch{return{}}},saveState(){try{window.localStorage.setItem(this.storageKey(),JSON.stringify({sec:this.secClosed,node:this.nodeOpen}))}catch{}},ancestorsOpen(e){let t=e.parent;for(;t;){if(!this.nodeOpen[t])return!1;t=this.byId.get(t)&&this.byId.get(t).parent}return!0},isOpen(e){return this.kept?!0:e.section?!this.secClosed[e.sectionId]:!!this.nodeOpen[e.id]},setOpen(e,t){e.section?this.secClosed={...this.secClosed,[e.sectionId]:!t}:this.nodeOpen={...this.nodeOpen,[e.id]:t},this.saveState()},toggle(e){e.expandable&&this.setOpen(e,!this.isOpen(e))},collapseAll(){this.nodeOpen={},this.saveState();const e=this.visible.find(t=>!t.section&&t.target===this.active&&t.depth===0);e&&(this.focusId=e.id)},rowClass(e){return{"st-row":!0,"st-sec":!!e.section,active:!e.section&&e.target===this.active,alias:!!e.alias}},setRow(e,t){this._rows||(this._rows={}),t?this._rows[e]=t:delete this._rows[e]},activate(e){if(e.section){this.toggle(e);return}e.expandable&&!this.isOpen(e)&&this.setOpen(e,!0),e.target&&(this.pick?this.pick(e.target):this.$emit("select",e.target))},onRowClick(e){this.focusId=e.id,this.activate(e)},focusRow(e){e&&(this.focusId=e,this.$nextTick(()=>{const t=this._rows&&this._rows[e];t&&(t.focus({preventScroll:!0}),t.scrollIntoView({block:"nearest"}))}))},onTreeKey(e){const t=this.visible;if(!t.length)return;const s=Math.max(0,t.findIndex(o=>o.id===this.focusId)),i=t[s],n=o=>o.section?"":o.parent||"sec:"+o.sectionId;switch(e.key){case"ArrowDown":this.focusRow((t[s+1]||i).id);break;case"ArrowUp":this.focusRow((t[s-1]||i).id);break;case"Home":this.focusRow(t[0].id);break;case"End":this.focusRow(t[t.length-1].id);break;case"ArrowRight":if(!i.expandable)break;this.isOpen(i)?t[s+1]&&t[s+1].level>i.level&&this.focusRow(t[s+1].id):this.setOpen(i,!0);break;case"ArrowLeft":i.expandable&&this.isOpen(i)&&!this.kept?this.setOpen(i,!1):this.focusRow(n(i));break;case"Enter":case" ":this.activate(i);break;default:if(e.key.length===1&&/\S/.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){const o=e.key.toLowerCase(),r=t.slice(s+1).concat(t.slice(0,s+1)).find(a=>String(a.label).toLowerCase().startsWith(o));r&&this.focusRow(r.id);break}return}e.preventDefault()},onFindKey(e){e.key==="Escape"?(this.query="",e.preventDefault()):e.key==="ArrowDown"&&this.visible.length&&(this.focusRow(this.visible[0].id),e.preventDefault())},reveal(){if(!this.active||!this.sections.length)return;let e=null;for(const t of this.sections)if(e=t.nodes.find(s=>s.depth===0&&s.target===this.active),e){this.secClosed[t.id]&&(this.secClosed={...this.secClosed,[t.id]:!1},this.saveState());break}e&&((!this.focusId||!this.byId.has(this.focusId)||this.byId.get(this.focusId).target!==this.active)&&(this.focusId=e.id),this.$nextTick(()=>{const t=this._rows&&this._rows[e.id];t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest"})}))},openSectionFromActivity(e){this.secClosed[e]&&(this.secClosed={...this.secClosed,[e]:!1},this.saveState()),this.expand&&this.expand(),this.$nextTick(()=>this.focusRow("sec:"+e))}}}),fc={key:0,class:"st-activity"},pc=["aria-label","onClick"],uc=["innerHTML"],hc={class:"st-act-n","aria-hidden":"true"},gc={key:1,class:"st"},bc={class:"st-bar"},vc={class:"st-find"},mc=["innerHTML"],xc=["innerHTML"],yc=["aria-level","aria-expanded","aria-selected","tabindex","title","onClick","onFocus"],wc=["innerHTML"],_c={class:"st-cap"},Sc={class:"st-sec-label"},kc={class:"st-count"},Tc=["innerHTML","onClick"],Ec={key:1,class:"st-twisty-sp","aria-hidden":"true"},Cc=["innerHTML"],Oc={class:"st-label"},Ac={key:2,class:"st-part"},Mc={class:"st-desc"},Rc={key:3,class:"st-count"},Ic={key:0,class:"st-empty"};function Lc(e,t,s,i,n,o){return e.collapsed?(E(),C("div",fc,[(E(!0),C(J,null,Ve(e.sections,l=>(E(),C("button",{key:l.id,type:"button",class:Se(["st-act",{active:l.id===e.activeSectionId}]),"aria-label":"Open CAP "+l.cap+", "+l.label,onClick:r=>e.openSectionFromActivity(l.id)},[T("span",{class:"st-act-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,uc),T("span",hc,N(l.cap),1)],10,pc))),128))])):(E(),C("div",gc,[T("div",bc,[T("label",vc,[T("span",{class:"st-find-ic","aria-hidden":"true",innerHTML:e.svg("search")},null,8,mc),ds(T("input",{ref:"find",type:"search",class:"st-find-in","onUpdate:modelValue":t[0]||(t[0]=l=>e.query=l),placeholder:"Filter plugins","aria-label":"Filter plugins",onKeydown:t[1]||(t[1]=(...l)=>e.onFindKey&&e.onFindKey(...l))},null,544),[[ia,e.query]])]),T("button",{type:"button",class:"st-tool","aria-label":"Collapse all",title:"Collapse all",onClick:t[2]||(t[2]=(...l)=>e.collapseAll&&e.collapseAll(...l))},[T("span",{"aria-hidden":"true",innerHTML:e.collapseAllSvg},null,8,xc)])]),T("div",{class:"st-tree",role:"tree","aria-label":"Plugins by capability",onKeydown:t[3]||(t[3]=(...l)=>e.onTreeKey&&e.onTreeKey(...l))},[(E(!0),C(J,null,Ve(e.visible,l=>(E(),C("div",{key:l.id,ref_for:!0,ref:r=>e.setRow(l.id,r),role:"treeitem","aria-level":l.level,"aria-expanded":l.expandable?String(e.isOpen(l)):null,"aria-selected":l.section?null:String(l.target===e.active),tabindex:l.id===e.focusId?0:-1,class:Se(e.rowClass(l)),style:xt({"--st-depth":l.depth}),title:l.title||null,onClick:r=>e.onRowClick(l),onFocus:r=>e.focusId=l.id},[l.section?(E(),C(J,{key:0},[T("span",{class:"st-twisty","aria-hidden":"true",innerHTML:e.chev},null,8,wc),T("span",_c,"CAP "+N(l.cap),1),T("span",Sc,N(l.label),1),T("span",kc,N(l.count),1)],64)):(E(),C(J,{key:1},[(E(!0),C(J,null,Ve(l.depth,r=>(E(),C("span",{key:r,class:"st-guide",style:xt({"--st-g":r-1}),"aria-hidden":"true"},null,4))),128)),l.expandable?(E(),C("span",{key:0,class:"st-twisty","aria-hidden":"true",innerHTML:e.chev,onClick:la(r=>e.toggle(l),["stop"])},null,8,Tc)):(E(),C("span",Ec)),T("span",{class:"st-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,Cc),T("span",Oc,N(l.label),1),l.part?(E(),C("span",Ac,"part")):Q("",!0),T("span",Mc,N(l.desc),1),l.expandable?(E(),C("span",Rc,N(l.kids),1)):Q("",!0)],64))],46,yc))),128)),e.query&&!e.visible.length?(E(),C("p",Ic,"No plugin matches “"+N(e.query)+"”.",1)):Q("",!0)],32)]))}const Pc=wi(dc,[["render",Lc],["styles",[lc]]]),_i=[{code:"en",name:"English",nativeName:"English",flag:"🇺🇸"},{code:"es",name:"Spanish",nativeName:"Español",flag:"🇪🇸"},{code:"fr",name:"French",nativeName:"Français",flag:"🇫🇷"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"🇵🇹"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"🇸🇦",dir:"rtl"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"🇷🇺"},{code:"de",name:"German",nativeName:"Deutsch",flag:"🇩🇪",hideFromSwitcher:!0},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"🇮🇳",hideFromSwitcher:!0}],Nc=_i.filter(e=>!e.hideFromSwitcher);function $c(e){return _i.find(t=>t.code===e)}function Eo(e){const t=String(e||"").split("-")[0].toLowerCase();return _i.some(s=>s.code===t)?t:"en"}const Co="doxa-maps:locale";function Hc(){try{const e=localStorage.getItem(Co);if(e)return Eo(e)}catch{}return Eo(navigator==null?void 0:navigator.language)}function Dc(e){try{localStorage.setItem(Co,e)}catch{}}const Fc=":host{display:block;position:relative;height:var(--plugin-studio-height, 85vh);min-height:480px}:host([hidden]){display:none}.ps-logo{display:inline-flex;align-items:center}.ps-logo svg{display:block}.ps-count{color:#6d766e}.ps-locale{position:relative;display:inline-flex}.ps-locale-btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;padding:4px 9px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer}.ps-locale-btn:hover{background:#d1d4cd}.ps-flag{font-size:13px;line-height:1}.ps-locale-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ps-dots{color:#6d766e}.ps-locale-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:30;min-width:180px;list-style:none;padding:6px;border:1px solid #d1d4cd;border-radius:10px;background:#fff;box-shadow:0 12px 32px #00000080;max-height:320px;overflow:auto}.ps-locale-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;padding:7px 9px;border:0;border-radius:7px;background:none;color:#3b463d;cursor:pointer}.ps-locale-opt:hover,.ps-locale-opt.active{background:#d1d4cd;color:#3b463d}.ps-locale-opt.active .ps-locale-name{color:#92b195}.ps-locale-en{margin-left:auto;font-size:11px;color:#6d766e}.ps-toolbar{display:flex;flex-direction:column;gap:8px;padding:10px 12px 0}.ps-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ps-bar-t{flex:1 1 auto;min-width:0}.ps-bar-t b{font-size:15px;color:#3b463d}.ps-bar-sub{display:block;font-size:12px;color:#6d766e}.ps-btn{font:inherit;font-size:12px;padding:5px 10px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer;white-space:nowrap}.ps-btn:hover{background:#d1d4cd}.ps-embed{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1}.ps-embed label{font-size:12px;color:#6d766e;display:flex;justify-content:space-between;align-items:center}.ps-embed textarea{width:100%;height:58px;font:11px/1.35 ui-monospace,Menlo,monospace;border:1px solid #d1d4cd;border-radius:6px;background:#fff;color:#3b463d;padding:6px;resize:vertical}.ps-stage{position:absolute;top:10px;right:12px;bottom:12px;left:12px;border:1px solid #d1d4cd;border-radius:10px;overflow:hidden;background:#f3f3f1}.ps-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h: 0}.ps-slot{position:relative;min-height:100%}.ps-slot>*{min-height:0;max-height:none}.ps-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:#6d766e;font-size:13px;padding:20px}.ps-hint.err{color:#f87171}.ps-hint small{color:#6d766e}",jc=` :host { display:block; position:relative; height:var(--plugin-studio-height, 85vh); min-height:480px; } :host([hidden]) { display:none; } .ps-logo { display:inline-flex; align-items:center; } @@ -314,4 +314,4 @@ .ps-hint { position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:#6d766e; font-size:13px; padding:20px; } .ps-hint.err { color:#f87171; } .ps-hint small { color:#6d766e; } -`,Si={5:"App shell · nested-mfe-spa",4:"Composite element",3:"Multi-view element",2:"Preset element",1:"Single element"},Oo={"nested-mfe-spa":0,"nested-elements-mfe":1,monolithic:2,parameterized:3,single:4},Kc=e=>Oo[e]!=null?5-Oo[e]:1,Uc={5:"App shell",4:"Composite",3:"Multi-view",2:"Preset",1:"Single"},ki={5:"monitor",4:"tree",3:"layers",2:"grid",1:"embed"},Ao=new Set(["doxa-research-map","doxa-simple-map","cities-internet-map","gospel-resources-map","my-upg-100-list-map","doxa-map","doxa-maps-spa","dashboard-plus-grid","research-dashboard-map","demo-map","all-people-groups","country-posters-map","key-cities-map","research-map-plus-grid"]),Mo=new Set(["big-picture"]),Vc={"doxa-maps-spa/doxa-maps-spa":"Research Gallery"},jt={};function zc(e,t){return jt[e]||(jt[e]=new Promise((s,i)=>{const n=document.createElement("script");n.src=e,(/^\/plugin-designs\//.test(e)||/\/index\.js(\?|$)/.test(e))&&(n.type="module"),n.onload=()=>s(),n.onerror=()=>{delete jt[e],i(new Error("failed to load "+e))},document.head.appendChild(n)})),jt[e]}function Bc(e,t){return typeof customElements>"u"||customElements.get(e)?Promise.resolve():Promise.race([customElements.whenDefined(e),new Promise((s,i)=>setTimeout(()=>{customElements.get(e)||i(new Error("<"+e+"> never registered (bundle loaded but defined no element)"))},15e3))])}const Wc=ps({name:"PluginStudio",components:{VerticalTabsLayout:oc,StudioTree:Pc},props:{treeBase:{type:String,default:""},profileConfig:{type:[String,Object],default:""},provider:{type:String,default:""},heading:{type:String,default:"Plugin Studio"},tokenUrl:{type:String,default:""},tk:{type:String,default:""}},setup(){return yi(jc,"plugin-studio"),{injectedBase:Ct("psTreeBase","")}},data(){return{activeKey:"",embedOpen:!1,locale:$c(),localeOpen:!1,switcherLangs:Nc,rows:[],manifestBundles:[]}},computed:{cfg(){let e=this.profileConfig;if(typeof e=="string")try{e=e?JSON.parse(e):{}}catch{e={}}return e&&typeof e=="object"?e:{}},base(){const e=(this.treeBase||this.cfg.treeBase||this.injectedBase||"").trim();return e?e.replace(/\/+$/,"")+"/":""},flatRows(){return this.rows},groups(){const e={};for(const t of this.rows)(e[t.cap]=e[t.cap]||[]).push(t);return[5,4,3,2,1].filter(t=>e[t]&&e[t].length).map(t=>({cap:t,label:Si[t]||"capability "+t,rows:e[t]}))},treeSections(){const e=new Map(this.compositionTrees.map(t=>[t.nodes[0].selects,t]));return this.groups.map(t=>{const s=[];for(const i of t.rows){const n=e.get(i.key);if(s.push({id:i.key,parent:"",depth:0,label:i.label,desc:i.tag,icon:i.icon,target:i.key,kids:n?n.nodes[0].kids:0,title:i.label+" · <"+i.tag+"> · CAP "+i.cap+" "+(Si[i.cap]||"")}),!n)continue;const o=l=>l===0?i.key:i.key+">"+l;for(const l of n.nodes.slice(1))s.push({id:o(l.id),parent:o(l.ancestors[l.ancestors.length-1]),depth:l.depth,label:l.label,part:!!l.part,target:l.selects||"",icon:l.part?"dots":ki[l.cap]||"embed",desc:l.part?"no standalone page":"cap "+l.cap+" · "+l.tag,kids:l.kids||0,title:l.part?l.label+" · part of "+i.label+", not published on its own":l.label+" · <"+l.tag+"> · CAP "+l.cap+" "+(Si[l.cap]||"")})}return{id:"cap-"+t.cap,cap:t.cap,label:Uc[t.cap]||t.label,title:t.label,icon:ki[t.cap]||"embed",nodes:s}})},compositionTrees(){const e=[],t=(s,i,n,o,l)=>{const r=this.manifestBundles.find(y=>y.bundle===s.bundle),a=s.cap>=4&&r&&r.composes||[],p=[],f=[],h=new Set;for(const y of a){const k=this.resolveRef(y,s.bundle);if(!k){f.push(y);continue}k.key===s.key||h.has(k.key)||(h.add(k.key),p.push(k))}p.sort((y,k)=>k.cap-y.cap||y.label.localeCompare(k.label));for(const y of p){const k={id:o.length,label:y.label,tag:y.tag,cap:y.cap,selects:y.key,depth:i+1,ancestors:l,kids:0};o.push(k);const j=o.length;n.has(y.key)||t(y,i+1,new Set([...n,y.key]),o,[...l,k.id]),k.kids=o.filter((P,ee)=>ee>=j&&P.depth===i+2).length}for(const y of f)o.push({id:o.length,label:y,part:!0,selects:s.key,depth:i+1,ancestors:l,kids:0})};for(const s of this.manifestBundles){if(!s.composes||!s.composes.length||Mo.has(s.bundle))continue;const i=this.rows.find(o=>o.bundle===s.bundle);if(!i)continue;const n=[{id:0,label:i.label,tag:i.tag,cap:i.cap,selects:i.key,depth:0,ancestors:[]}];t(i,0,new Set([i.key]),n,[0]),n[0].kids=n.filter(o=>o.depth===1).length,n.length>1&&e.push({bundle:s.bundle,nodes:n})}return e},active(){return this.rows.find(e=>e.key===this.activeKey)||null},countLabel(){return new Set(this.rows.map(t=>t.bundle)).size+" bundles · "+this.rows.length+" elements listed here"},activeLang(){return Hc(this.locale)||{code:this.locale,flag:"🌐",nativeName:this.locale}}},mounted(){this.loadManifest()},methods:{resolveRef(e,t){return t&&this.rows.find(s=>s.key===t+"/"+e)||this.rows.find(s=>s.key===e)||this.rows.find(s=>s.tag===e)||this.rows.find(s=>s.bundle===e)||null},setSlot(e,t){t&&(this._slots=Object.assign(this._slots||{},{[e]:t}))},setLocale(e){this.locale=e,this.localeOpen=!1,Dc(e);try{const t=this.active,s=this._slots&&this._slots[this.activeKey],i=s&&s.firstElementChild;if(i&&i.setAttribute&&t){const n={profile:t.profile,instanceId:"ps-"+this.activeKey.replace(/\//g,"-"),locale:e};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),i.setAttribute("profile-config",JSON.stringify(n))}}catch{}},resolve(e){const t=String(e);if(/^(https?:)?\/\//.test(t)||t.startsWith("/"))return t;const s=t.replace(/^\.\//,"");return this.base?this.base.replace(/\/+$/,"")+"/"+s:"../"+s},loadManifest(){const e=s=>{this.manifestBundles=s&&s.bundles||[],this.rows=this.rowsFromManifest(s),this.route()},t=typeof window<"u"&&window.__psBaked||null;if(typeof fetch=="function"&&typeof location<"u"&&location.protocol!=="file:"){const s=this.base?this.resolve("manifest.json"):"../manifest.json";fetch(s,{cache:"no-cache"}).then(i=>i.ok?i.json():null).then(i=>e(i||t||{bundles:[]})).catch(()=>e(t||{bundles:[]}))}else e(t||{bundles:[]})},rowsFromManifest(e){const t=[];for(const s of e.bundles||[])if(!(s.bundle==="plugin-studio"||Mo.has(s.bundle)))for(const i of s.profiles||[]){const n=i.element||s.elements&&s.elements[0]||s.bundle,o=Kc(i.type||"single"),l=Ao.has(n)||Ao.has(s.bundle);t.push({key:s.bundle+"/"+i.profile,bundle:s.bundle,label:Vc[s.bundle+"/"+i.profile]||i.profile,profile:i.profile,tag:n,cap:o,icon:ki[o]||"embed",description:i.description||"",heavy:l,bundleJs:s.scriptUrl||s.bundle+"/"+s.bundle+".js",embed:i.embed&&i.embed.script||"",mounted:!1,state:"idle",error:""})}return t.sort((s,i)=>i.cap-s.cap||s.bundle.localeCompare(i.bundle)||s.label.localeCompare(i.label)),t},route(){const e=(typeof location<"u"&&location.hash||"").replace(/^#\/?/,"");if(e&&this.rows.some(s=>s.key===e)){this.select(e);return}const t=this.readLastTab();if(t&&this.rows.some(s=>s.key===t)){this.select(t);return}this.rows.length&&this.select(this.rows[0].key)},storageKey(){return"dx-studio-tab:"+(typeof location<"u"&&location.pathname||"")},readLastTab(){try{return window.localStorage.getItem(this.storageKey())||""}catch{return""}},writeLastTab(e){try{window.localStorage.setItem(this.storageKey(),e)}catch{}},select(e){if(!this.rows.some(i=>i.key===e))return;const t=this.activeKey;if(this.activeKey=e,this.embedOpen=!1,t&&t!==e){const i=this.rows.find(n=>n.key===t);i&&i.heavy&&i.mounted&&this.releaseRow(i)}const s=this.rows.find(i=>i.key===e);s&&(this.writeLastTab(e),s.mounted||this.$nextTick(()=>{this.activeKey===s.key&&this.mountElement(s)}))},releaseRow(e){try{const t=this._slots&&this._slots[e.key];t&&(t.innerHTML="")}catch{}this._slots&&delete this._slots[e.key],e.mounted=!1,e.state="idle",e.error=""},mountElement(e){e.mounted=!0,e.state="loading";const t=this.resolve(e.bundleJs);zc(t).then(()=>Bc(e.tag)).then(()=>{try{if(e.heavy&&this.activeKey!==e.key){e.mounted=!1,e.state="idle";return}const s=this._slots&&this._slots[e.key];if(!s){e.state="error",e.error="no slot";return}s.innerHTML="";const i=document.createElement(e.tag),n={profile:e.profile,instanceId:"ps-"+e.key.replace(/\//g,"-"),locale:this.locale};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),(this.tokenUrl||this.cfg.tokenUrl)&&(n.tokenUrl=this.tokenUrl||this.cfg.tokenUrl);const o=this.provider||this.cfg.provider;(o==="maplibre"||o==="mapbox")&&(n.provider=o),this.base&&(n.treeBase=this.base),i.setAttribute("profile-config",JSON.stringify(n)),i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),e.state="ready"}catch(s){e.state="error",e.error="mount failed: "+(s&&s.message||String(s))}}).catch(s=>{e.state="error",e.error=s&&s.message||String(s)})},copyText(e,t){const s=()=>{const i=t.textContent;t.textContent="Copied",setTimeout(()=>{t.textContent=i},1200)};if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(s,()=>{});else try{const i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),s()}catch{}}}}),qc={class:"ps-count"},Gc={class:"ps-locale"},Jc=["aria-expanded"],Yc={class:"ps-flag"},Xc={class:"ps-locale-name"},Zc={key:0,class:"ps-locale-menu",role:"listbox"},Qc=["aria-selected"],ed=["onClick"],td={class:"ps-flag"},sd={class:"ps-locale-name"},id={class:"ps-locale-en"},nd={key:0,class:"ps-toolbar"},od={class:"ps-bar"},ld={class:"ps-bar-t"},rd={class:"ps-bar-sub"},ad={key:0},cd=["aria-expanded"],dd={key:0,class:"ps-embed"},fd=["value"],pd={class:"ps-stage"},ud=["hidden"],hd={key:0,class:"ps-hint"},gd={key:1,class:"ps-hint err"},bd={key:0,class:"ps-hint"};function vd(e,t,s,i,n,o){const l=Sn("StudioTree"),r=Sn("VerticalTabsLayout");return E(),ms(r,{title:e.heading,"nav-label":"Plugin elements · by capability 5 → 1",header:!0,active:e.activeKey,"onUpdate:active":e.select},{rail:ft(({collapsed:a,expand:p,pick:f})=>[ve(l,{sections:e.treeSections,active:e.activeKey,collapsed:a,expand:p,pick:f},null,8,["sections","active","collapsed","expand","pick"])]),brand:ft(()=>[...t[3]||(t[3]=[T("span",{class:"ps-logo","aria-hidden":"true"},[T("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"#92b195","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[T("path",{d:"M10 3v3M14 3v3M7 6h10v5a5 5 0 0 1-10 0V6Z"}),T("path",{d:"M12 16v5"})])],-1)])]),meta:ft(()=>[T("span",qc,N(e.countLabel),1),T("span",Gc,[T("button",{type:"button",class:"ps-locale-btn","aria-expanded":String(e.localeOpen),"aria-label":"Change language",onClick:t[0]||(t[0]=a=>e.localeOpen=!e.localeOpen)},[T("span",Yc,N(e.activeLang.flag),1),T("span",Xc,N(e.activeLang.nativeName),1),t[4]||(t[4]=T("span",{class:"ps-dots","aria-hidden":"true"},"⋮",-1))],8,Jc),e.localeOpen?(E(),C("ul",Zc,[(E(!0),C(J,null,Ve(e.switcherLangs,a=>(E(),C("li",{key:a.code,role:"option","aria-selected":String(a.code===e.locale)},[T("button",{type:"button",class:Se(["ps-locale-opt",{active:a.code===e.locale}]),onClick:p=>e.setLocale(a.code)},[T("span",td,N(a.flag),1),T("span",sd,N(a.nativeName),1),T("span",id,N(a.name),1)],10,ed)],8,Qc))),128))])):Q("",!0)])]),toolbar:ft(()=>[e.active?(E(),C("div",nd,[T("div",od,[T("div",ld,[T("b",null,N(e.active.label),1),T("span",rd,[gt(N(e.active.bundle)+" · <"+N(e.active.tag)+">",1),e.active.description?(E(),C("span",ad," · "+N(e.active.description),1)):Q("",!0)])]),e.active.embed?(E(),C("button",{key:0,type:"button",class:"ps-btn","aria-expanded":String(e.embedOpen),onClick:t[1]||(t[1]=a=>e.embedOpen=!e.embedOpen)},"Copy embed",8,cd)):Q("",!0)]),e.embedOpen&&e.active.embed?(E(),C("div",dd,[T("label",null,[t[5]||(t[5]=gt("script embed ",-1)),T("button",{type:"button",class:"ps-btn",onClick:t[2]||(t[2]=a=>e.copyText(e.active.embed,a.target))},"Copy")]),T("textarea",{readonly:"",value:e.active.embed},null,8,fd)])):Q("",!0)])):Q("",!0)]),default:ft(()=>[T("div",pd,[(E(!0),C(J,null,Ve(e.flatRows,a=>ds((E(),C("section",{key:a.key,class:"ps-pane",hidden:a.key!==e.activeKey},[!a.heavy||a.key===e.activeKey?(E(),C(J,{key:0},[T("div",{class:"ps-slot",ref_for:!0,ref:p=>e.setSlot(a.key,p)},null,512),a.state==="loading"?(E(),C("div",hd,"Loading "+N(a.label)+"…",1)):a.state==="error"?(E(),C("div",gd,[gt(" Could not load "+N(a.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(a.error),1)])):Q("",!0)],64)):Q("",!0)],8,ud)),[[gi,a.key===e.activeKey]])),128)),e.activeKey?Q("",!0):(E(),C("div",bd,"Choose an element from the list."))])]),_:1},8,["title","active","onUpdate:active"])}const md=wi(Wc,[["render",vd],["styles",[Fc]]]);function xd(){try{const e=typeof document<"u"&&document.currentScript&&document.currentScript.src||"";return e?e.replace(/[^/]+\/[^/]+$/,"").replace(/\/+$/,"")+"/":""}catch{return""}}const yd=xd(),wd=ea(md,{configureApp(e){e.provide("psTreeBase",yd)}});typeof customElements<"u"&&!customElements.get("plugin-studio")&&customElements.define("plugin-studio",wd)})(); +`,Si={5:"App shell · nested-mfe-spa",4:"Composite element",3:"Multi-view element",2:"Preset element",1:"Single element"},Oo={"nested-mfe-spa":0,"nested-elements-mfe":1,monolithic:2,parameterized:3,single:4},Kc=e=>Oo[e]!=null?5-Oo[e]:1,Uc={5:"App shell",4:"Composite",3:"Multi-view",2:"Preset",1:"Single"},ki={5:"monitor",4:"tree",3:"layers",2:"grid",1:"embed"},Ao=new Set(["doxa-research-map","doxa-simple-map","cities-internet-map","gospel-resources-map","my-upg-100-list-map","doxa-map","doxa-maps-spa","dashboard-plus-grid","research-dashboard-map","demo-map","all-people-groups","country-posters-map","key-cities-map","research-map-plus-grid"]),Mo=new Set(["big-picture"]),Vc={"doxa-maps-spa/doxa-maps-spa":"Research Gallery"},jt={};function zc(e,t){return jt[e]||(jt[e]=new Promise((s,i)=>{const n=document.createElement("script");n.src=e,(/^\/plugin-designs\//.test(e)||/\/index\.js(\?|$)/.test(e))&&(n.type="module"),n.onload=()=>s(),n.onerror=()=>{delete jt[e],i(new Error("failed to load "+e))},document.head.appendChild(n)})),jt[e]}function Bc(e,t){return typeof customElements>"u"||customElements.get(e)?Promise.resolve():Promise.race([customElements.whenDefined(e),new Promise((s,i)=>setTimeout(()=>{customElements.get(e)||i(new Error("<"+e+"> never registered (bundle loaded but defined no element)"))},15e3))])}const Wc=ps({name:"PluginStudio",components:{VerticalTabsLayout:oc,StudioTree:Pc},props:{treeBase:{type:String,default:""},profileConfig:{type:[String,Object],default:""},provider:{type:String,default:""},heading:{type:String,default:"Plugin Studio"},tokenUrl:{type:String,default:""},tk:{type:String,default:""}},setup(){return yi(jc,"plugin-studio"),{injectedBase:Ct("psTreeBase","")}},data(){return{activeKey:"",embedOpen:!1,locale:Hc(),localeOpen:!1,switcherLangs:Nc,rows:[],manifestBundles:[]}},computed:{cfg(){let e=this.profileConfig;if(typeof e=="string")try{e=e?JSON.parse(e):{}}catch{e={}}return e&&typeof e=="object"?e:{}},base(){const e=(this.treeBase||this.cfg.treeBase||this.injectedBase||"").trim();return e?e.replace(/\/+$/,"")+"/":""},flatRows(){return this.rows},groups(){const e={};for(const t of this.rows)(e[t.cap]=e[t.cap]||[]).push(t);return[5,4,3,2,1].filter(t=>e[t]&&e[t].length).map(t=>({cap:t,label:Si[t]||"capability "+t,rows:e[t]}))},treeSections(){const e=new Map(this.compositionTrees.map(t=>[t.nodes[0].selects,t]));return this.groups.map(t=>{const s=[];for(const i of t.rows){const n=e.get(i.key);if(s.push({id:i.key,parent:"",depth:0,label:i.label,desc:i.tag,icon:i.icon,target:i.key,kids:n?n.nodes[0].kids:0,title:i.label+" · <"+i.tag+"> · CAP "+i.cap+" "+(Si[i.cap]||"")}),!n)continue;const o=l=>l===0?i.key:i.key+">"+l;for(const l of n.nodes.slice(1))s.push({id:o(l.id),parent:o(l.ancestors[l.ancestors.length-1]),depth:l.depth,label:l.label,part:!!l.part,target:l.selects||"",icon:l.part?"dots":ki[l.cap]||"embed",desc:l.part?"no standalone page":"cap "+l.cap+" · "+l.tag,kids:l.kids||0,title:l.part?l.label+" · part of "+i.label+", not published on its own":l.label+" · <"+l.tag+"> · CAP "+l.cap+" "+(Si[l.cap]||"")})}return{id:"cap-"+t.cap,cap:t.cap,label:Uc[t.cap]||t.label,title:t.label,icon:ki[t.cap]||"embed",nodes:s}})},compositionTrees(){const e=[],t=(s,i,n,o,l)=>{const r=this.manifestBundles.find(y=>y.bundle===s.bundle),a=s.cap>=4&&r&&r.composes||[],p=[],f=[],h=new Set;for(const y of a){const k=this.resolveRef(y,s.bundle);if(!k){f.push(y);continue}k.key===s.key||h.has(k.key)||(h.add(k.key),p.push(k))}p.sort((y,k)=>k.cap-y.cap||y.label.localeCompare(k.label));for(const y of p){const k={id:o.length,label:y.label,tag:y.tag,cap:y.cap,selects:y.key,depth:i+1,ancestors:l,kids:0};o.push(k);const j=o.length;n.has(y.key)||t(y,i+1,new Set([...n,y.key]),o,[...l,k.id]),k.kids=o.filter((P,ee)=>ee>=j&&P.depth===i+2).length}for(const y of f)o.push({id:o.length,label:y,part:!0,selects:s.key,depth:i+1,ancestors:l,kids:0})};for(const s of this.manifestBundles){if(!s.composes||!s.composes.length||Mo.has(s.bundle))continue;const i=this.rows.find(o=>o.bundle===s.bundle);if(!i)continue;const n=[{id:0,label:i.label,tag:i.tag,cap:i.cap,selects:i.key,depth:0,ancestors:[]}];t(i,0,new Set([i.key]),n,[0]),n[0].kids=n.filter(o=>o.depth===1).length,n.length>1&&e.push({bundle:s.bundle,nodes:n})}return e},active(){return this.rows.find(e=>e.key===this.activeKey)||null},countLabel(){return new Set(this.rows.map(t=>t.bundle)).size+" bundles · "+this.rows.length+" elements listed here"},activeLang(){return $c(this.locale)||{code:this.locale,flag:"🌐",nativeName:this.locale}}},mounted(){this.loadManifest()},methods:{resolveRef(e,t){return t&&this.rows.find(s=>s.key===t+"/"+e)||this.rows.find(s=>s.key===e)||this.rows.find(s=>s.tag===e)||this.rows.find(s=>s.bundle===e)||null},setSlot(e,t){t&&(this._slots=Object.assign(this._slots||{},{[e]:t}))},setLocale(e){this.locale=e,this.localeOpen=!1,Dc(e);try{const t=this.active,s=this._slots&&this._slots[this.activeKey],i=s&&s.firstElementChild;if(i&&i.setAttribute&&t){const n={profile:t.profile,instanceId:"ps-"+this.activeKey.replace(/\//g,"-"),locale:e};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),i.setAttribute("profile-config",JSON.stringify(n))}}catch{}},resolve(e){const t=String(e);if(/^(https?:)?\/\//.test(t)||t.startsWith("/"))return t;const s=t.replace(/^\.\//,"");return this.base?this.base.replace(/\/+$/,"")+"/"+s:"../"+s},loadManifest(){const e=s=>{this.manifestBundles=s&&s.bundles||[],this.rows=this.rowsFromManifest(s),this.route()},t=typeof window<"u"&&window.__psBaked||null;if(typeof fetch=="function"&&typeof location<"u"&&location.protocol!=="file:"){const s=this.base?this.resolve("manifest.json"):"../manifest.json";fetch(s,{cache:"no-cache"}).then(i=>i.ok?i.json():null).then(i=>e(i||t||{bundles:[]})).catch(()=>e(t||{bundles:[]}))}else e(t||{bundles:[]})},rowsFromManifest(e){const t=[];for(const s of e.bundles||[])if(!(s.bundle==="plugin-studio"||Mo.has(s.bundle)))for(const i of s.profiles||[]){const n=i.element||s.elements&&s.elements[0]||s.bundle,o=Kc(i.type||"single"),l=Ao.has(n)||Ao.has(s.bundle);t.push({key:s.bundle+"/"+i.profile,bundle:s.bundle,label:Vc[s.bundle+"/"+i.profile]||i.profile,profile:i.profile,tag:n,cap:o,icon:ki[o]||"embed",description:i.description||"",heavy:l,bundleJs:s.scriptUrl||s.bundle+"/"+s.bundle+".js",embed:i.embed&&i.embed.script||"",mounted:!1,state:"idle",error:""})}return t.sort((s,i)=>i.cap-s.cap||s.bundle.localeCompare(i.bundle)||s.label.localeCompare(i.label)),t},route(){const e=(typeof location<"u"&&location.hash||"").replace(/^#\/?/,"");if(e&&this.rows.some(s=>s.key===e)){this.select(e);return}const t=this.readLastTab();if(t&&this.rows.some(s=>s.key===t)){this.select(t);return}this.rows.length&&this.select(this.rows[0].key)},storageKey(){return"dx-studio-tab:"+(typeof location<"u"&&location.pathname||"")},readLastTab(){try{return window.localStorage.getItem(this.storageKey())||""}catch{return""}},writeLastTab(e){try{window.localStorage.setItem(this.storageKey(),e)}catch{}},select(e){if(!this.rows.some(i=>i.key===e))return;const t=this.activeKey;if(this.activeKey=e,this.embedOpen=!1,t&&t!==e){const i=this.rows.find(n=>n.key===t);i&&i.heavy&&i.mounted&&this.releaseRow(i)}const s=this.rows.find(i=>i.key===e);s&&(this.writeLastTab(e),s.mounted||this.$nextTick(()=>{this.activeKey===s.key&&this.mountElement(s)}))},releaseRow(e){try{const t=this._slots&&this._slots[e.key];t&&(t.innerHTML="")}catch{}this._slots&&delete this._slots[e.key],e.mounted=!1,e.state="idle",e.error=""},mountElement(e){e.mounted=!0,e.state="loading";const t=this.resolve(e.bundleJs);zc(t).then(()=>Bc(e.tag)).then(()=>{try{if(e.heavy&&this.activeKey!==e.key){e.mounted=!1,e.state="idle";return}const s=this._slots&&this._slots[e.key];if(!s){e.state="error",e.error="no slot";return}s.innerHTML="";const i=document.createElement(e.tag),n={profile:e.profile,instanceId:"ps-"+e.key.replace(/\//g,"-"),locale:this.locale};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),(this.tokenUrl||this.cfg.tokenUrl)&&(n.tokenUrl=this.tokenUrl||this.cfg.tokenUrl);const o=this.provider||this.cfg.provider;(o==="maplibre"||o==="mapbox")&&(n.provider=o),this.base&&(n.treeBase=this.base),i.setAttribute("profile-config",JSON.stringify(n)),this.base&&i.setAttribute("tree-base",this.base.replace(/\/+$/,"")),i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),e.state="ready"}catch(s){e.state="error",e.error="mount failed: "+(s&&s.message||String(s))}}).catch(s=>{e.state="error",e.error=s&&s.message||String(s)})},copyText(e,t){const s=()=>{const i=t.textContent;t.textContent="Copied",setTimeout(()=>{t.textContent=i},1200)};if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(s,()=>{});else try{const i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),s()}catch{}}}}),qc={class:"ps-count"},Gc={class:"ps-locale"},Jc=["aria-expanded"],Yc={class:"ps-flag"},Xc={class:"ps-locale-name"},Zc={key:0,class:"ps-locale-menu",role:"listbox"},Qc=["aria-selected"],ed=["onClick"],td={class:"ps-flag"},sd={class:"ps-locale-name"},id={class:"ps-locale-en"},nd={key:0,class:"ps-toolbar"},od={class:"ps-bar"},ld={class:"ps-bar-t"},rd={class:"ps-bar-sub"},ad={key:0},cd=["aria-expanded"],dd={key:0,class:"ps-embed"},fd=["value"],pd={class:"ps-stage"},ud=["hidden"],hd={key:0,class:"ps-hint"},gd={key:1,class:"ps-hint err"},bd={key:0,class:"ps-hint"};function vd(e,t,s,i,n,o){const l=Sn("StudioTree"),r=Sn("VerticalTabsLayout");return E(),ms(r,{title:e.heading,"nav-label":"Plugin elements · by capability 5 → 1",header:!0,active:e.activeKey,"onUpdate:active":e.select},{rail:ft(({collapsed:a,expand:p,pick:f})=>[ve(l,{sections:e.treeSections,active:e.activeKey,collapsed:a,expand:p,pick:f},null,8,["sections","active","collapsed","expand","pick"])]),brand:ft(()=>[...t[3]||(t[3]=[T("span",{class:"ps-logo","aria-hidden":"true"},[T("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"#92b195","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[T("path",{d:"M10 3v3M14 3v3M7 6h10v5a5 5 0 0 1-10 0V6Z"}),T("path",{d:"M12 16v5"})])],-1)])]),meta:ft(()=>[T("span",qc,N(e.countLabel),1),T("span",Gc,[T("button",{type:"button",class:"ps-locale-btn","aria-expanded":String(e.localeOpen),"aria-label":"Change language",onClick:t[0]||(t[0]=a=>e.localeOpen=!e.localeOpen)},[T("span",Yc,N(e.activeLang.flag),1),T("span",Xc,N(e.activeLang.nativeName),1),t[4]||(t[4]=T("span",{class:"ps-dots","aria-hidden":"true"},"⋮",-1))],8,Jc),e.localeOpen?(E(),C("ul",Zc,[(E(!0),C(J,null,Ve(e.switcherLangs,a=>(E(),C("li",{key:a.code,role:"option","aria-selected":String(a.code===e.locale)},[T("button",{type:"button",class:Se(["ps-locale-opt",{active:a.code===e.locale}]),onClick:p=>e.setLocale(a.code)},[T("span",td,N(a.flag),1),T("span",sd,N(a.nativeName),1),T("span",id,N(a.name),1)],10,ed)],8,Qc))),128))])):Q("",!0)])]),toolbar:ft(()=>[e.active?(E(),C("div",nd,[T("div",od,[T("div",ld,[T("b",null,N(e.active.label),1),T("span",rd,[gt(N(e.active.bundle)+" · <"+N(e.active.tag)+">",1),e.active.description?(E(),C("span",ad," · "+N(e.active.description),1)):Q("",!0)])]),e.active.embed?(E(),C("button",{key:0,type:"button",class:"ps-btn","aria-expanded":String(e.embedOpen),onClick:t[1]||(t[1]=a=>e.embedOpen=!e.embedOpen)},"Copy embed",8,cd)):Q("",!0)]),e.embedOpen&&e.active.embed?(E(),C("div",dd,[T("label",null,[t[5]||(t[5]=gt("script embed ",-1)),T("button",{type:"button",class:"ps-btn",onClick:t[2]||(t[2]=a=>e.copyText(e.active.embed,a.target))},"Copy")]),T("textarea",{readonly:"",value:e.active.embed},null,8,fd)])):Q("",!0)])):Q("",!0)]),default:ft(()=>[T("div",pd,[(E(!0),C(J,null,Ve(e.flatRows,a=>ds((E(),C("section",{key:a.key,class:"ps-pane",hidden:a.key!==e.activeKey},[!a.heavy||a.key===e.activeKey?(E(),C(J,{key:0},[T("div",{class:"ps-slot",ref_for:!0,ref:p=>e.setSlot(a.key,p)},null,512),a.state==="loading"?(E(),C("div",hd,"Loading "+N(a.label)+"…",1)):a.state==="error"?(E(),C("div",gd,[gt(" Could not load "+N(a.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(a.error),1)])):Q("",!0)],64)):Q("",!0)],8,ud)),[[gi,a.key===e.activeKey]])),128)),e.activeKey?Q("",!0):(E(),C("div",bd,"Choose an element from the list."))])]),_:1},8,["title","active","onUpdate:active"])}const md=wi(Wc,[["render",vd],["styles",[Fc]]]);function xd(){try{const e=typeof document<"u"&&document.currentScript&&document.currentScript.src||"";return e?e.replace(/[^/]+\/[^/]+$/,"").replace(/\/+$/,"")+"/":""}catch{return""}}const yd=xd(),wd=ea(md,{configureApp(e){e.provide("psTreeBase",yd)}});typeof customElements<"u"&&!customElements.get("plugin-studio")&&customElements.define("plugin-studio",wd)})(); diff --git a/public/doxa-maps/plugin-studio/plugin-studio/index.html b/public/doxa-maps/plugin-studio/plugin-studio/index.html index e0f072d17..e24b50ce6 100644 --- a/public/doxa-maps/plugin-studio/plugin-studio/index.html +++ b/public/doxa-maps/plugin-studio/plugin-studio/index.html @@ -26,7 +26,7 @@ - +